• Home
  • Raw
  • Download

Lines Matching refs:serio

285 	struct serio *serio;  member
450 lkkbd_interrupt (struct serio *serio, unsigned char data, unsigned int flags) in lkkbd_interrupt() argument
452 struct lkkbd *lk = serio_get_drvdata (serio); in lkkbd_interrupt()
528 lk->serio->write (lk->serio, LK_CMD_LED_ON); in lkkbd_event()
529 lk->serio->write (lk->serio, leds_on); in lkkbd_event()
532 lk->serio->write (lk->serio, LK_CMD_LED_OFF); in lkkbd_event()
533 lk->serio->write (lk->serio, leds_off); in lkkbd_event()
542 lk->serio->write (lk->serio, LK_CMD_DISABLE_KEYCLICK); in lkkbd_event()
543 lk->serio->write (lk->serio, LK_CMD_DISABLE_CTRCLICK); in lkkbd_event()
546 lk->serio->write (lk->serio, LK_CMD_ENABLE_KEYCLICK); in lkkbd_event()
547 lk->serio->write (lk->serio, volume_to_hw (lk->keyclick_volume)); in lkkbd_event()
548 lk->serio->write (lk->serio, LK_CMD_ENABLE_CTRCLICK); in lkkbd_event()
549 lk->serio->write (lk->serio, volume_to_hw (lk->ctrlclick_volume)); in lkkbd_event()
555 lk->serio->write (lk->serio, LK_CMD_SOUND_BELL); in lkkbd_event()
582 lk->serio->write (lk->serio, LK_CMD_REQUEST_ID); in lkkbd_reinit()
585 lk->serio->write (lk->serio, LK_CMD_SET_DEFAULTS); in lkkbd_reinit()
593 lk->serio->write (lk->serio, LK_CMD_LED_ON); in lkkbd_reinit()
594 lk->serio->write (lk->serio, leds_on); in lkkbd_reinit()
597 lk->serio->write (lk->serio, LK_CMD_LED_OFF); in lkkbd_reinit()
598 lk->serio->write (lk->serio, leds_off); in lkkbd_reinit()
606 lk->serio->write (lk->serio, LK_CMD_ENABLE_LK401); in lkkbd_reinit()
610 lk->serio->write (lk->serio, LK_CMD_SET_MODE (LK_MODE_UPDOWN, in lkkbd_reinit()
614 lk->serio->write (lk->serio, LK_CMD_ENABLE_BELL); in lkkbd_reinit()
615 lk->serio->write (lk->serio, volume_to_hw (lk->bell_volume)); in lkkbd_reinit()
619 lk->serio->write (lk->serio, LK_CMD_ENABLE_KEYCLICK); in lkkbd_reinit()
620 lk->serio->write (lk->serio, volume_to_hw (lk->keyclick_volume)); in lkkbd_reinit()
621 lk->serio->write (lk->serio, LK_CMD_ENABLE_CTRCLICK); in lkkbd_reinit()
622 lk->serio->write (lk->serio, volume_to_hw (lk->ctrlclick_volume)); in lkkbd_reinit()
624 lk->serio->write (lk->serio, LK_CMD_DISABLE_KEYCLICK); in lkkbd_reinit()
625 lk->serio->write (lk->serio, LK_CMD_DISABLE_CTRCLICK); in lkkbd_reinit()
630 lk->serio->write (lk->serio, LK_CMD_SOUND_BELL); in lkkbd_reinit()
637 lkkbd_connect (struct serio *serio, struct serio_driver *drv) in lkkbd_connect() argument
651 lk->serio = serio; in lkkbd_connect()
660 snprintf (lk->phys, sizeof(lk->phys), "%s/input0", serio->phys); in lkkbd_connect()
668 input_dev->dev.parent = &serio->dev; in lkkbd_connect()
690 serio_set_drvdata (serio, lk); in lkkbd_connect()
692 err = serio_open (serio, drv); in lkkbd_connect()
700 lk->serio->write (lk->serio, LK_CMD_POWERCYCLE_RESET); in lkkbd_connect()
704 fail3: serio_close (serio); in lkkbd_connect()
705 fail2: serio_set_drvdata (serio, NULL); in lkkbd_connect()
715 lkkbd_disconnect (struct serio *serio) in lkkbd_disconnect() argument
717 struct lkkbd *lk = serio_get_drvdata (serio); in lkkbd_disconnect()
721 serio_close (serio); in lkkbd_disconnect()
722 serio_set_drvdata (serio, NULL); in lkkbd_disconnect()
737 MODULE_DEVICE_TABLE(serio, lkkbd_serio_ids);