/linux/drivers/input/serio/ |
H A D | serio.c | 66 serio->drv->disconnect(serio); in serio_disconnect_driver() 103 serio->phys, serio->name, in serio_bind_driver() 352 serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); in modalias_show() 537 serio->start(serio); in serio_add_port() 560 serio->stop(serio); in serio_destroy_port() 643 struct serio *s = serio; in serio_disconnect_port() 851 struct serio *serio; in serio_unregister_driver() local 900 const struct serio *serio; in serio_uevent() local 913 serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); in serio_uevent() 971 if (serio->open && serio->open(serio)) { in serio_open() [all …]
|
H A D | ps2mult.c | 26 struct serio *serio; member 75 struct serio *mx_port = serio->parent; in ps2mult_serio_write() 101 static int ps2mult_serio_start(struct serio *serio) in ps2mult_serio_start() argument 114 static void ps2mult_serio_stop(struct serio *serio) in ps2mult_serio_stop() argument 128 struct serio *serio; in ps2mult_create_port() local 130 serio = kzalloc(sizeof(*serio), GFP_KERNEL); in ps2mult_create_port() 135 snprintf(serio->phys, sizeof(serio->phys), in ps2mult_create_port() 144 psm->ports[i].serio = serio; in ps2mult_create_port() 196 struct serio *s = psm->ports[i].serio; in ps2mult_connect() 211 static void ps2mult_disconnect(struct serio *serio) in ps2mult_disconnect() argument [all …]
|
H A D | ams_delta_serio.c | 35 struct serio *serio; member 40 static int check_data(struct serio *serio, int data) in check_data() argument 56 dev_warn(&serio->dev, in check_data() 92 static int ams_delta_serio_open(struct serio *serio) in ams_delta_serio_open() argument 100 static void ams_delta_serio_close(struct serio *serio) in ams_delta_serio_close() argument 111 struct serio *serio; in ams_delta_serio_init() local 153 serio = kzalloc(sizeof(*serio), GFP_KERNEL); in ams_delta_serio_init() 154 if (!serio) in ams_delta_serio_init() 157 priv->serio = serio; in ams_delta_serio_init() 163 strscpy(serio->phys, dev_name(&pdev->dev), sizeof(serio->phys)); in ams_delta_serio_init() [all …]
|
H A D | i8042.c | 158 struct serio *serio; member 198 struct serio *serio)) in i8042_install_filter() argument 501 struct serio *serio) in i8042_filter() argument 529 struct serio *serio; in i8042_interrupt() local 1244 struct serio *serio = i8042_ports[i].serio; in i8042_pm_suspend() local 1267 struct serio *serio = i8042_ports[i].serio; in i8042_pm_resume() local 1333 struct serio *serio; in i8042_create_kbd_port() local 1354 port->serio = serio; in i8042_create_kbd_port() 1362 struct serio *serio; in i8042_create_aux_port() local 1390 port->serio = serio; in i8042_create_aux_port() [all …]
|
H A D | rpckbd.c | 44 struct serio *port = dev_id; in rpckbd_rx() 100 struct serio *serio; in rpckbd_probe() local 111 serio = kzalloc(sizeof(*serio), GFP_KERNEL); in rpckbd_probe() 113 if (!serio || !rpckbd) { in rpckbd_probe() 115 kfree(serio); in rpckbd_probe() 124 serio->open = rpckbd_open; in rpckbd_probe() 127 serio->port_data = rpckbd; in rpckbd_probe() 128 strscpy(serio->name, "RiscPC PS/2 kbd port", sizeof(serio->name)); in rpckbd_probe() 129 strscpy(serio->phys, "rpckbd/serio0", sizeof(serio->phys)); in rpckbd_probe() 132 serio_register_port(serio); in rpckbd_probe() [all …]
|
H A D | serport.c | 34 struct serio *serio; member 44 static int serport_serio_write(struct serio *serio, unsigned char data) in serport_serio_write() argument 50 static int serport_serio_open(struct serio *serio) in serport_serio_open() argument 63 static void serport_serio_close(struct serio *serio) in serport_serio_close() argument 165 struct serio *serio; in serport_ldisc_read() local 170 serport->serio = serio = kzalloc(sizeof(*serio), GFP_KERNEL); in serport_ldisc_read() 171 if (!serio) in serport_ldisc_read() 174 strscpy(serio->name, "Serial port", sizeof(serio->name)); in serport_ldisc_read() 175 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", tty_name(tty)); in serport_ldisc_read() 176 serio->id = serport->id; in serport_ldisc_read() [all …]
|
H A D | serio_raw.c | 34 struct serio *serio; member 270 static irqreturn_t serio_raw_interrupt(struct serio *serio, unsigned char data, in serio_raw_interrupt() argument 290 static int serio_raw_connect(struct serio *serio, struct serio_driver *drv) in serio_raw_connect() argument 308 serio_raw->serio = serio; in serio_raw_connect() 336 dev_err(&serio->dev, in serio_raw_connect() 338 serio->phys); in serio_raw_connect() 349 serio_close(serio); in serio_raw_connect() 356 static int serio_raw_reconnect(struct serio *serio) in serio_raw_reconnect() argument 362 dev_dbg(&serio->dev, in serio_raw_reconnect() 391 static void serio_raw_disconnect(struct serio *serio) in serio_raw_disconnect() argument [all …]
|
H A D | altera_ps2.c | 23 struct serio *io; 81 struct serio *serio; in altera_ps2_probe() local 103 serio = kzalloc(sizeof(*serio), GFP_KERNEL); in altera_ps2_probe() 104 if (!serio) in altera_ps2_probe() 107 serio->id.type = SERIO_8042; in altera_ps2_probe() 109 serio->open = altera_ps2_open; in altera_ps2_probe() 111 strscpy(serio->name, dev_name(&pdev->dev), sizeof(serio->name)); in altera_ps2_probe() 112 strscpy(serio->phys, dev_name(&pdev->dev), sizeof(serio->phys)); in altera_ps2_probe() 113 serio->port_data = ps2if; in altera_ps2_probe() 114 serio->dev.parent = &pdev->dev; in altera_ps2_probe() [all …]
|
H A D | maceps2.c | 73 struct serio *dev = dev_id; in maceps2_interrupt() 118 struct serio *serio; in maceps2_allocate_port() local 120 serio = kzalloc(sizeof(*serio), GFP_KERNEL); in maceps2_allocate_port() 121 if (serio) { in maceps2_allocate_port() 122 serio->id.type = SERIO_8042; in maceps2_allocate_port() 123 serio->write = maceps2_write; in maceps2_allocate_port() 124 serio->open = maceps2_open; in maceps2_allocate_port() 125 serio->close = maceps2_close; in maceps2_allocate_port() 126 snprintf(serio->name, sizeof(serio->name), "MACE PS/2 port%d", idx); in maceps2_allocate_port() 127 snprintf(serio->phys, sizeof(serio->phys), "mace/serio%d", idx); in maceps2_allocate_port() [all …]
|
/linux/include/linux/ |
H A D | serio.h | 20 struct serio { struct 86 void serio_close(struct serio *serio); 87 void serio_rescan(struct serio *serio); 88 void serio_reconnect(struct serio *serio); 97 void serio_unregister_port(struct serio *serio); 98 void serio_unregister_child_port(struct serio *serio); 125 return serio->write(serio, data); in serio_write() 132 if (serio->drv && serio->drv->write_wakeup) in serio_drv_write_wakeup() 133 serio->drv->write_wakeup(serio); in serio_drv_write_wakeup() 154 static inline void serio_pause_rx(struct serio *serio) in serio_pause_rx() argument [all …]
|
/linux/drivers/input/rmi4/ |
H A D | rmi_f03.c | 31 struct serio *serio; member 62 struct serio *serio = f03->serio; in rmi_f03_commit_buttons() local 66 serio->drv->interrupt(serio, PSMOUSE_OOB_EXTRA_BTNS, in rmi_f03_commit_buttons() 68 serio->drv->interrupt(serio, f03->overwrite_buttons, in rmi_f03_commit_buttons() 139 static int rmi_f03_pt_open(struct serio *serio) in rmi_f03_pt_open() argument 162 static void rmi_f03_pt_close(struct serio *serio) in rmi_f03_pt_close() argument 172 struct serio *serio; in rmi_f03_register_pt() local 174 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in rmi_f03_register_pt() 175 if (!serio) in rmi_f03_register_pt() 185 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", in rmi_f03_register_pt() [all …]
|
/linux/drivers/input/touchscreen/ |
H A D | tsc40.c | 18 struct serio *serio; member 41 static irqreturn_t tsc_interrupt(struct serio *serio, in tsc_interrupt() argument 51 dev_dbg(&serio->dev, in tsc_interrupt() 64 dev_dbg(&serio->dev, in tsc_interrupt() 80 static int tsc_connect(struct serio *serio, struct serio_driver *drv) in tsc_connect() argument 93 ptsc->serio = serio; in tsc_connect() 110 serio_set_drvdata(serio, ptsc); in tsc_connect() 112 error = serio_open(serio, drv); in tsc_connect() 123 serio_close(serio); in tsc_connect() 132 static void tsc_disconnect(struct serio *serio) in tsc_disconnect() argument [all …]
|
H A D | gunze.c | 35 struct serio *serio; member 57 static irqreturn_t gunze_interrupt(struct serio *serio, in gunze_interrupt() argument 76 static void gunze_disconnect(struct serio *serio) in gunze_disconnect() argument 82 serio_close(serio); in gunze_disconnect() 83 serio_set_drvdata(serio, NULL); in gunze_disconnect() 94 static int gunze_connect(struct serio *serio, struct serio_driver *drv) in gunze_connect() argument 107 gunze->serio = serio; in gunze_connect() 109 snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); in gunze_connect() 123 serio_set_drvdata(serio, gunze); in gunze_connect() 125 err = serio_open(serio, drv); in gunze_connect() [all …]
|
H A D | dynapro.c | 52 struct serio *serio; member 73 static irqreturn_t dynapro_interrupt(struct serio *serio, in dynapro_interrupt() argument 89 static void dynapro_disconnect(struct serio *serio) in dynapro_disconnect() argument 95 serio_close(serio); in dynapro_disconnect() 96 serio_set_drvdata(serio, NULL); in dynapro_disconnect() 107 static int dynapro_connect(struct serio *serio, struct serio_driver *drv) in dynapro_connect() argument 120 pdynapro->serio = serio; in dynapro_connect() 123 "%s/input0", serio->phys); in dynapro_connect() 139 serio_set_drvdata(serio, pdynapro); in dynapro_connect() 141 err = serio_open(serio, drv); in dynapro_connect() [all …]
|
H A D | egalax_ts_serial.c | 42 struct serio *serio; member 68 static irqreturn_t egalax_interrupt(struct serio *serio, in egalax_interrupt() argument 96 static int egalax_connect(struct serio *serio, struct serio_driver *drv) in egalax_connect() argument 109 egalax->serio = serio; in egalax_connect() 112 "%s/input0", serio->phys); in egalax_connect() 130 error = serio_open(serio, drv); in egalax_connect() 141 serio_close(serio); in egalax_connect() 143 serio_set_drvdata(serio, NULL); in egalax_connect() 150 static void egalax_disconnect(struct serio *serio) in egalax_disconnect() argument 154 serio_close(serio); in egalax_disconnect() [all …]
|
H A D | hampshire.c | 51 struct serio *serio; member 72 static irqreturn_t hampshire_interrupt(struct serio *serio, in hampshire_interrupt() argument 88 static void hampshire_disconnect(struct serio *serio) in hampshire_disconnect() argument 94 serio_close(serio); in hampshire_disconnect() 95 serio_set_drvdata(serio, NULL); in hampshire_disconnect() 106 static int hampshire_connect(struct serio *serio, struct serio_driver *drv) in hampshire_connect() argument 119 phampshire->serio = serio; in hampshire_connect() 122 "%s/input0", serio->phys); in hampshire_connect() 130 input_dev->dev.parent = &serio->dev; in hampshire_connect() 140 err = serio_open(serio, drv); in hampshire_connect() [all …]
|
H A D | touchit213.c | 75 struct serio *serio; member 82 static irqreturn_t touchit213_interrupt(struct serio *serio, in touchit213_interrupt() argument 118 static void touchit213_disconnect(struct serio *serio) in touchit213_disconnect() argument 124 serio_close(serio); in touchit213_disconnect() 125 serio_set_drvdata(serio, NULL); in touchit213_disconnect() 136 static int touchit213_connect(struct serio *serio, struct serio_driver *drv) in touchit213_connect() argument 149 touchit213->serio = serio; in touchit213_connect() 152 "%s/input0", serio->phys); in touchit213_connect() 160 input_dev->dev.parent = &serio->dev; in touchit213_connect() 170 err = serio_open(serio, drv); in touchit213_connect() [all …]
|
H A D | touchright.c | 47 struct serio *serio; member 53 static irqreturn_t tr_interrupt(struct serio *serio, in tr_interrupt() argument 81 static void tr_disconnect(struct serio *serio) in tr_disconnect() argument 87 serio_close(serio); in tr_disconnect() 88 serio_set_drvdata(serio, NULL); in tr_disconnect() 99 static int tr_connect(struct serio *serio, struct serio_driver *drv) in tr_connect() argument 112 tr->serio = serio; in tr_connect() 122 input_dev->dev.parent = &serio->dev; in tr_connect() 128 serio_set_drvdata(serio, tr); in tr_connect() 130 err = serio_open(serio, drv); in tr_connect() [all …]
|
H A D | touchwin.c | 50 struct serio *serio; member 57 static irqreturn_t tw_interrupt(struct serio *serio, in tw_interrupt() argument 88 static void tw_disconnect(struct serio *serio) in tw_disconnect() argument 94 serio_close(serio); in tw_disconnect() 95 serio_set_drvdata(serio, NULL); in tw_disconnect() 106 static int tw_connect(struct serio *serio, struct serio_driver *drv) in tw_connect() argument 119 tw->serio = serio; in tw_connect() 129 input_dev->dev.parent = &serio->dev; in tw_connect() 135 serio_set_drvdata(serio, tw); in tw_connect() 137 err = serio_open(serio, drv); in tw_connect() [all …]
|
H A D | fujitsu_ts.c | 29 struct serio *serio; member 43 static irqreturn_t fujitsu_interrupt(struct serio *serio, in fujitsu_interrupt() argument 79 static void fujitsu_disconnect(struct serio *serio) in fujitsu_disconnect() argument 85 serio_close(serio); in fujitsu_disconnect() 86 serio_set_drvdata(serio, NULL); in fujitsu_disconnect() 96 static int fujitsu_connect(struct serio *serio, struct serio_driver *drv) in fujitsu_connect() argument 109 fujitsu->serio = serio; in fujitsu_connect() 112 "%s/input0", serio->phys); in fujitsu_connect() 127 err = serio_open(serio, drv); in fujitsu_connect() 138 serio_close(serio); in fujitsu_connect() [all …]
|
H A D | inexio.c | 54 struct serio *serio; member 74 static irqreturn_t inexio_interrupt(struct serio *serio, in inexio_interrupt() argument 93 static void inexio_disconnect(struct serio *serio) in inexio_disconnect() argument 99 serio_close(serio); in inexio_disconnect() 100 serio_set_drvdata(serio, NULL); in inexio_disconnect() 111 static int inexio_connect(struct serio *serio, struct serio_driver *drv) in inexio_connect() argument 124 pinexio->serio = serio; in inexio_connect() 134 input_dev->dev.parent = &serio->dev; in inexio_connect() 140 serio_set_drvdata(serio, pinexio); in inexio_connect() 142 err = serio_open(serio, drv); in inexio_connect() [all …]
|
/linux/drivers/input/keyboard/ |
H A D | xtkbd.c | 40 struct serio *serio; member 44 static irqreturn_t xtkbd_interrupt(struct serio *serio, in xtkbd_interrupt() argument 66 static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) in xtkbd_connect() argument 78 xtkbd->serio = serio; in xtkbd_connect() 89 input_dev->dev.parent = &serio->dev; in xtkbd_connect() 100 serio_set_drvdata(serio, xtkbd); in xtkbd_connect() 102 err = serio_open(serio, drv); in xtkbd_connect() 112 fail3: serio_close(serio); in xtkbd_connect() 119 static void xtkbd_disconnect(struct serio *serio) in xtkbd_disconnect() argument 123 serio_close(serio); in xtkbd_disconnect() [all …]
|
H A D | sunkbd.c | 59 struct serio *serio; member 75 static irqreturn_t sunkbd_interrupt(struct serio *serio, in sunkbd_interrupt() argument 145 serio_write(sunkbd->serio, in sunkbd_event() 208 serio_write(sunkbd->serio, in sunkbd_set_leds_beeps() 213 serio_write(sunkbd->serio, in sunkbd_set_leds_beeps() 215 serio_write(sunkbd->serio, in sunkbd_set_leds_beeps() 259 static int sunkbd_connect(struct serio *serio, struct serio_driver *drv) in sunkbd_connect() argument 271 sunkbd->serio = serio; in sunkbd_connect() 326 fail3: serio_close(serio); in sunkbd_connect() 337 static void sunkbd_disconnect(struct serio *serio) in sunkbd_disconnect() argument [all …]
|
H A D | newtonkbd.c | 43 struct serio *serio; member 47 static irqreturn_t nkbd_interrupt(struct serio *serio, in nkbd_interrupt() argument 64 static int nkbd_connect(struct serio *serio, struct serio_driver *drv) in nkbd_connect() argument 76 nkbd->serio = serio; in nkbd_connect() 87 input_dev->dev.parent = &serio->dev; in nkbd_connect() 97 serio_set_drvdata(serio, nkbd); in nkbd_connect() 99 err = serio_open(serio, drv); in nkbd_connect() 109 fail3: serio_close(serio); in nkbd_connect() 116 static void nkbd_disconnect(struct serio *serio) in nkbd_disconnect() argument 120 serio_close(serio); in nkbd_disconnect() [all …]
|
/linux/drivers/input/joystick/iforce/ |
H A D | iforce-serio.c | 15 struct serio *serio; member 56 serio_write(iforce_serio->serio, in iforce_serio_xmit() 120 static void iforce_serio_write_wakeup(struct serio *serio) in iforce_serio_write_wakeup() argument 127 static irqreturn_t iforce_serio_irq(struct serio *serio, in iforce_serio_irq() argument 189 static int iforce_serio_connect(struct serio *serio, struct serio_driver *drv) in iforce_serio_connect() argument 200 iforce_serio->serio = serio; in iforce_serio_connect() 203 err = serio_open(serio, drv); in iforce_serio_connect() 213 fail2: serio_close(serio); in iforce_serio_connect() 219 static void iforce_serio_disconnect(struct serio *serio) in iforce_serio_disconnect() argument 224 serio_close(serio); in iforce_serio_disconnect() [all …]
|