Lines Matching refs:ps2dev
204 struct ps2dev ps2dev; member
423 if (unlikely(atkbd->ps2dev.flags & PS2_FLAG_ACK)) in atkbd_interrupt()
424 if (ps2_handle_ack(&atkbd->ps2dev, data)) in atkbd_interrupt()
427 if (unlikely(atkbd->ps2dev.flags & PS2_FLAG_CMD)) in atkbd_interrupt()
428 if (ps2_handle_response(&atkbd->ps2dev, data)) in atkbd_interrupt()
455 serio_reconnect(atkbd->ps2dev.serio); in atkbd_interrupt()
585 return ps2_command(&atkbd->ps2dev, ¶m, ATKBD_CMD_SETREP); in atkbd_set_repeat_rate()
596 if (ps2_command(&atkbd->ps2dev, param, ATKBD_CMD_SETLEDS)) in atkbd_set_leds()
606 if (ps2_command(&atkbd->ps2dev, param, ATKBD_CMD_EX_SETLEDS)) in atkbd_set_leds()
699 serio_pause_rx(atkbd->ps2dev.serio); in atkbd_enable()
701 serio_continue_rx(atkbd->ps2dev.serio); in atkbd_enable()
711 serio_pause_rx(atkbd->ps2dev.serio); in atkbd_disable()
713 serio_continue_rx(atkbd->ps2dev.serio); in atkbd_disable()
718 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_activate() local
724 if (ps2_command(ps2dev, NULL, ATKBD_CMD_ENABLE)) { in atkbd_activate()
725 dev_err(&ps2dev->serio->dev, in atkbd_activate()
727 ps2dev->serio->phys); in atkbd_activate()
741 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_deactivate() local
743 if (ps2_command(ps2dev, NULL, ATKBD_CMD_RESET_DIS)) in atkbd_deactivate()
744 dev_err(&ps2dev->serio->dev, in atkbd_deactivate()
746 ps2dev->serio->phys); in atkbd_deactivate()
755 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_probe() local
765 if (ps2_command(ps2dev, NULL, ATKBD_CMD_RESET_BAT)) in atkbd_probe()
766 dev_warn(&ps2dev->serio->dev, in atkbd_probe()
768 ps2dev->serio->phys); in atkbd_probe()
778 if (ps2_command(ps2dev, param, ATKBD_CMD_GETID)) { in atkbd_probe()
786 if (ps2_command(ps2dev, param, ATKBD_CMD_SETLEDS)) in atkbd_probe()
798 dev_err(&ps2dev->serio->dev, in atkbd_probe()
822 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_select_set() local
837 ps2_command(ps2dev, param, ATKBD_CMD_SSCANSET); in atkbd_select_set()
843 if (!ps2_command(ps2dev, param, ATKBD_CMD_EX_ENABLE)) { in atkbd_select_set()
850 ps2_command(ps2dev, param, ATKBD_CMD_SETALL_MB); in atkbd_select_set()
857 if (!ps2_command(ps2dev, param, ATKBD_CMD_OK_GETID)) { in atkbd_select_set()
863 if (ps2_command(ps2dev, param, ATKBD_CMD_SSCANSET)) in atkbd_select_set()
867 if (ps2_command(ps2dev, param, ATKBD_CMD_GSCANSET)) in atkbd_select_set()
872 if (ps2_command(ps2dev, param, ATKBD_CMD_SSCANSET)) in atkbd_select_set()
876 ps2_command(ps2dev, param, ATKBD_CMD_SETALL_MBR); in atkbd_select_set()
883 struct ps2dev *ps2dev = &atkbd->ps2dev; in atkbd_reset_state() local
891 if (ps2_command(ps2dev, param, ATKBD_CMD_SETLEDS)) in atkbd_reset_state()
899 if (ps2_command(ps2dev, param, ATKBD_CMD_SETREP)) in atkbd_reset_state()
915 ps2_command(&atkbd->ps2dev, NULL, ATKBD_CMD_RESET_DEF); in atkbd_cleanup()
1028 struct device *dev = &atkbd->ps2dev.serio->dev; in atkbd_get_keymap_from_fwnode()
1066 struct device *dev = &atkbd->ps2dev.serio->dev; in atkbd_set_keycode_table()
1134 "%s/input0", atkbd->ps2dev.serio->phys); in atkbd_set_device_attrs()
1143 input_dev->dev.parent = &atkbd->ps2dev.serio->dev; in atkbd_set_device_attrs()
1225 ps2_init(&atkbd->ps2dev, serio); in atkbd_connect()