Lines Matching +full:0 +full:xc0
138 bool relative_packet = packet[0] & 0x08; in lifebook_process_byte()
146 return (packet[0] & 0xf8) == 0x00 ? in lifebook_process_byte()
151 return ((packet[2] & 0x30) << 2) == (packet[2] & 0xc0) ? in lifebook_process_byte()
154 return (packet[3] & 0xf8) == 0xc0 ? in lifebook_process_byte()
157 return (packet[4] & 0xc0) == (packet[2] & 0xc0) ? in lifebook_process_byte()
160 if (((packet[5] & 0x30) << 2) != (packet[5] & 0xc0)) in lifebook_process_byte()
162 if ((packet[5] & 0xc0) != (packet[1] & 0xc0)) in lifebook_process_byte()
175 ((packet[1] & 0x3f) << 6) | (packet[2] & 0x3f)); in lifebook_process_byte()
177 4096 - (((packet[4] & 0x3f) << 6) | (packet[5] & 0x3f))); in lifebook_process_byte()
180 (packet[1] | ((packet[0] & 0x30) << 4))); in lifebook_process_byte()
182 1024 - (packet[2] | ((packet[0] & 0xC0) << 2))); in lifebook_process_byte()
184 input_report_key(dev1, BTN_TOUCH, packet[0] & 0x04); in lifebook_process_byte()
192 psmouse_report_standard_buttons(dev2, packet[0]); in lifebook_process_byte()
214 param = lifebook_use_6byte_proto ? 0x08 : 0x07; in lifebook_absolute_mode()
217 return 0; in lifebook_absolute_mode()
223 u8 param = 0x06; in lifebook_relative_mode()
230 static const u8 params[] = { 0, 1, 2, 2, 3 }; in lifebook_set_resolution()
233 if (resolution == 0 || resolution > 400) in lifebook_set_resolution()
267 return 0; in lifebook_detect()
288 dev2->id.vendor = 0x0002; in lifebook_create_relative_device()
290 dev2->id.version = 0x0000; in lifebook_create_relative_device()
303 return 0; in lifebook_create_relative_device()
327 input_set_abs_params(dev1, ABS_X, 0, max_coord, 0, 0); in lifebook_init()
328 input_set_abs_params(dev1, ABS_Y, 0, max_coord, 0, 0); in lifebook_init()
351 return 0; in lifebook_init()