Lines Matching refs:ps2dev

27 static int trackpoint_power_on_reset(struct ps2dev *ps2dev)  in trackpoint_power_on_reset()  argument
34 if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) || in trackpoint_power_on_reset()
35 ps2_command(ps2dev, results, MAKE_PS2_CMD(0, 2, TP_POR))) in trackpoint_power_on_reset()
49 static int trackpoint_read(struct ps2dev *ps2dev, in trackpoint_read() argument
52 if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) || in trackpoint_read()
53 ps2_command(ps2dev, results, MAKE_PS2_CMD(0, 1, loc))) { in trackpoint_read()
60 static int trackpoint_write(struct ps2dev *ps2dev, in trackpoint_write() argument
63 if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) || in trackpoint_write()
64 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_WRITE_MEM)) || in trackpoint_write()
65 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) || in trackpoint_write()
66 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, val))) { in trackpoint_write()
73 static int trackpoint_toggle_bit(struct ps2dev *ps2dev, in trackpoint_toggle_bit() argument
80 if (ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_COMMAND)) || in trackpoint_toggle_bit()
81 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, TP_TOGGLE)) || in trackpoint_toggle_bit()
82 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, loc)) || in trackpoint_toggle_bit()
83 ps2_command(ps2dev, NULL, MAKE_PS2_CMD(0, 0, mask))) { in trackpoint_toggle_bit()
90 static int trackpoint_update_bit(struct ps2dev *ps2dev, unsigned char loc, in trackpoint_update_bit() argument
96 trackpoint_read(ps2dev, loc, &data); in trackpoint_update_bit()
98 retval = trackpoint_toggle_bit(ps2dev, loc, mask); in trackpoint_update_bit()
140 trackpoint_write(&psmouse->ps2dev, attr->command, value); in trackpoint_set_int_attr()
176 trackpoint_toggle_bit(&psmouse->ps2dev, attr->command, attr->mask); in trackpoint_set_bit_attr()
200 trackpoint_update_bit(&_psmouse->ps2dev, \
209 trackpoint_write(&_psmouse->ps2dev, \
265 if (ps2_command(&psmouse->ps2dev, param, MAKE_PS2_CMD(0, 2, TP_READ_ID))) in trackpoint_start_protocol()
292 trackpoint_update_bit(&psmouse->ps2dev, TP_TOGGLE_TWOHAND, in trackpoint_sync()
295 trackpoint_update_bit(&psmouse->ps2dev, TP_TOGGLE_SOURCE_TAG, in trackpoint_sync()
298 trackpoint_update_bit(&psmouse->ps2dev, TP_TOGGLE_MB, in trackpoint_sync()
349 sysfs_remove_group(&psmouse->ps2dev.serio->dev.kobj, &trackpoint_attr_group); in trackpoint_disconnect()
362 reset_fail = trackpoint_power_on_reset(&psmouse->ps2dev); in trackpoint_reconnect()
371 struct ps2dev *ps2dev = &psmouse->ps2dev; in trackpoint_detect() local
382 if (trackpoint_read(&psmouse->ps2dev, TP_EXT_BTN, &button_info)) { in trackpoint_detect()
405 error = trackpoint_power_on_reset(&psmouse->ps2dev); in trackpoint_detect()
411 error = sysfs_create_group(&ps2dev->serio->dev.kobj, &trackpoint_attr_group); in trackpoint_detect()