Lines Matching refs:ps2dev
267 struct ps2dev *ps2dev = &psmouse->ps2dev; in focaltech_switch_protocol() local
271 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol()
274 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol()
277 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol()
281 if (ps2_command(ps2dev, param, 0x10f8)) in focaltech_switch_protocol()
284 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETSCALE11)) in focaltech_switch_protocol()
287 if (ps2_command(ps2dev, param, PSMOUSE_CMD_ENABLE)) in focaltech_switch_protocol()
295 ps2_command(&psmouse->ps2dev, NULL, PSMOUSE_CMD_RESET_DIS); in focaltech_reset()
347 static int focaltech_read_register(struct ps2dev *ps2dev, int reg, in focaltech_read_register() argument
350 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETSCALE11)) in focaltech_read_register()
354 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in focaltech_read_register()
357 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in focaltech_read_register()
360 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in focaltech_read_register()
364 if (ps2_command(ps2dev, param, PSMOUSE_CMD_SETRES)) in focaltech_read_register()
367 if (ps2_command(ps2dev, param, PSMOUSE_CMD_GETINFO)) in focaltech_read_register()
375 struct ps2dev *ps2dev = &psmouse->ps2dev; in focaltech_read_size() local
379 if (focaltech_read_register(ps2dev, 2, param)) in focaltech_read_size()