Lines Matching +full:0 +full:xrrcckkkk

109 		return 0;  in cros_ec_read_state()
128 return 0; in cros_ec_read_state()
164 * @return actual image size in bytes, 0 if the image contains no content or
172 * Scan backwards looking for 0xea byte, which is by definition the in get_image_used()
177 size > 0 && ec->flash_data[entry->offset + size] != 0xea; in get_image_used()
181 return size ? size + 1 : 0; /* 0xea byte IS part of the image */ in get_image_used()
187 * Keymap entries in the fdt take the form of 0xRRCCKKKK where
192 * @return 0 if ok, -1 on error
209 for (upto = 0; upto < ec->matrix_count; upto++) { in keyscan_read_fdt_matrix()
215 matrix->col = (word >> 16) & 0xff; in keyscan_read_fdt_matrix()
216 matrix->keycode = word & 0xffff; in keyscan_read_fdt_matrix()
232 return 0; in keyscan_read_fdt_matrix()
251 memset(ec->keyscan, '\0', bytes); in cros_ec_keyscan()
255 for (i = 0, matrix = ec->matrix; i < ec->matrix_count; i++, matrix++) { in cros_ec_keyscan()
259 for (found = false, j = 0; j < count; j++) { in cros_ec_keyscan()
283 * @return length of response data, or 0 for no response data, or -1 on error
292 debug("EC command %#0x\n", req_hdr->command); in process_cmd()
299 resp->out_data = req->in_data + 0x01020304; in process_cmd()
326 len = 0; in process_cmd()
341 len = 0; in process_cmd()
345 len = 0; in process_cmd()
356 resp->mask = 0; in process_cmd()
388 resp->reserved0 = 0; in process_cmd()
407 if (req->flags == expect || req->flags == 0) { in process_cmd()
409 0; in process_cmd()
411 resp->writable_flags = 0; in process_cmd()
447 len = 0; in process_cmd()
454 len = 0; in process_cmd()
461 len = 0; in process_cmd()
482 if (len < 0) in cros_ec_sandbox_packet()
488 resp_hdr->reserved = 0; in cros_ec_sandbox_packet()
490 resp_hdr->checksum = 0; in cros_ec_sandbox_packet()
503 start = get_timer(0); in cros_ec_check_keyboard()