Lines Matching refs:psmouse
132 static psmouse_ret_t lifebook_process_byte(struct psmouse *psmouse) in lifebook_process_byte() argument
134 struct lifebook_data *priv = psmouse->private; in lifebook_process_byte()
135 struct input_dev *dev1 = psmouse->dev; in lifebook_process_byte()
137 u8 *packet = psmouse->packet; in lifebook_process_byte()
141 if (psmouse->pktcnt != 3) in lifebook_process_byte()
144 switch (psmouse->pktcnt) { in lifebook_process_byte()
170 psmouse_warn(psmouse, in lifebook_process_byte()
199 static int lifebook_absolute_mode(struct psmouse *psmouse) in lifebook_absolute_mode() argument
201 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_absolute_mode()
205 error = psmouse_reset(psmouse); in lifebook_absolute_mode()
220 static void lifebook_relative_mode(struct psmouse *psmouse) in lifebook_relative_mode() argument
222 struct ps2dev *ps2dev = &psmouse->ps2dev; in lifebook_relative_mode()
228 static void lifebook_set_resolution(struct psmouse *psmouse, unsigned int resolution) in lifebook_set_resolution() argument
237 ps2_command(&psmouse->ps2dev, &p, PSMOUSE_CMD_SETRES); in lifebook_set_resolution()
238 psmouse->resolution = 50 << p; in lifebook_set_resolution()
241 static void lifebook_disconnect(struct psmouse *psmouse) in lifebook_disconnect() argument
243 struct lifebook_data *priv = psmouse->private; in lifebook_disconnect()
245 psmouse_reset(psmouse); in lifebook_disconnect()
250 psmouse->private = NULL; in lifebook_disconnect()
253 int lifebook_detect(struct psmouse *psmouse, bool set_properties) in lifebook_detect() argument
259 strcmp(psmouse->ps2dev.serio->phys, desired_serio_phys)) in lifebook_detect()
263 psmouse->vendor = "Fujitsu"; in lifebook_detect()
264 psmouse->name = "Lifebook TouchScreen"; in lifebook_detect()
270 static int lifebook_create_relative_device(struct psmouse *psmouse) in lifebook_create_relative_device() argument
283 "%s/input1", psmouse->ps2dev.serio->phys); in lifebook_create_relative_device()
291 dev2->dev.parent = &psmouse->ps2dev.serio->dev; in lifebook_create_relative_device()
302 psmouse->private = priv; in lifebook_create_relative_device()
311 int lifebook_init(struct psmouse *psmouse) in lifebook_init() argument
313 struct input_dev *dev1 = psmouse->dev; in lifebook_init()
317 error = lifebook_absolute_mode(psmouse); in lifebook_init()
331 error = lifebook_create_relative_device(psmouse); in lifebook_init()
333 lifebook_relative_mode(psmouse); in lifebook_init()
338 psmouse->protocol_handler = lifebook_process_byte; in lifebook_init()
339 psmouse->set_resolution = lifebook_set_resolution; in lifebook_init()
340 psmouse->disconnect = lifebook_disconnect; in lifebook_init()
341 psmouse->reconnect = lifebook_absolute_mode; in lifebook_init()
343 psmouse->model = lifebook_use_6byte_proto ? 6 : 3; in lifebook_init()
349 psmouse->pktsize = 3; in lifebook_init()