/drivers/input/serio/ |
D | serio.c | 65 static void serio_add_port(struct serio *serio); 66 static int serio_reconnect_port(struct serio *serio); 67 static void serio_disconnect_port(struct serio *serio); 68 static void serio_reconnect_chain(struct serio *serio); 71 static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) in serio_connect_driver() argument 75 mutex_lock(&serio->drv_mutex); in serio_connect_driver() 76 retval = drv->connect(serio, drv); in serio_connect_driver() 77 mutex_unlock(&serio->drv_mutex); in serio_connect_driver() 82 static int serio_reconnect_driver(struct serio *serio) in serio_reconnect_driver() argument 86 mutex_lock(&serio->drv_mutex); in serio_reconnect_driver() [all …]
|
D | rpckbd.c | 48 static int rpckbd_write(struct serio *port, unsigned char val) in rpckbd_write() 60 struct serio *port = dev_id; in rpckbd_rx() 78 static int rpckbd_open(struct serio *port) in rpckbd_open() 99 static void rpckbd_close(struct serio *port) in rpckbd_close() 111 struct serio *serio; in rpckbd_probe() local 113 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in rpckbd_probe() 114 if (!serio) in rpckbd_probe() 117 serio->id.type = SERIO_8042; in rpckbd_probe() 118 serio->write = rpckbd_write; in rpckbd_probe() 119 serio->open = rpckbd_open; in rpckbd_probe() [all …]
|
D | serport.c | 36 struct serio *serio; member 46 static int serport_serio_write(struct serio *serio, unsigned char data) in serport_serio_write() argument 48 struct serport *serport = serio->port_data; in serport_serio_write() 52 static int serport_serio_open(struct serio *serio) in serport_serio_open() argument 54 struct serport *serport = serio->port_data; in serport_serio_open() 65 static void serport_serio_close(struct serio *serio) in serport_serio_close() argument 67 struct serport *serport = serio->port_data; in serport_serio_close() 134 serio_interrupt(serport->serio, cp[i], 0); in serport_ldisc_receive() 149 struct serio *serio; in serport_ldisc_read() local 155 serport->serio = serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in serport_ldisc_read() [all …]
|
D | i8042.c | 90 struct serio *serio; member 234 static int i8042_kbd_write(struct serio *port, unsigned char c) in i8042_kbd_write() 255 static int i8042_aux_write(struct serio *serio, unsigned char c) in i8042_aux_write() argument 257 struct i8042_port *port = serio->port_data; in i8042_aux_write() 269 static int i8042_start(struct serio *serio) in i8042_start() argument 271 struct i8042_port *port = serio->port_data; in i8042_start() 283 static void i8042_stop(struct serio *serio) in i8042_stop() argument 285 struct i8042_port *port = serio->port_data; in i8042_stop() 296 port->serio = NULL; in i8042_stop() 386 serio_interrupt(port->serio, data, dfl); in i8042_interrupt() [all …]
|
D | serio_raw.c | 37 struct serio *serio; member 95 if (!serio_raw->serio) { in serio_raw_open() 149 spin_lock_irqsave(&serio_raw->serio->lock, flags); in serio_raw_fetch_byte() 157 spin_unlock_irqrestore(&serio_raw->serio->lock, flags); in serio_raw_fetch_byte() 169 if (!serio_raw->serio) in serio_raw_read() 176 serio_raw->head != serio_raw->tail || !serio_raw->serio); in serio_raw_read() 180 if (!serio_raw->serio) in serio_raw_read() 203 if (!list->serio_raw->serio) { in serio_raw_write() 216 if (serio_write(list->serio_raw->serio, c)) { in serio_raw_write() 255 static irqreturn_t serio_raw_interrupt(struct serio *serio, unsigned char data, in serio_raw_interrupt() argument [all …]
|
D | maceps2.c | 56 static struct serio *maceps2_port[2]; 59 static int maceps2_write(struct serio *dev, unsigned char val) in maceps2_write() 77 struct serio *dev = dev_id; in maceps2_interrupt() 89 static int maceps2_open(struct serio *dev) in maceps2_open() 110 static void maceps2_close(struct serio *dev) in maceps2_close() 120 static struct serio * __devinit maceps2_allocate_port(int idx) in maceps2_allocate_port() 122 struct serio *serio; in maceps2_allocate_port() local 124 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in maceps2_allocate_port() 125 if (serio) { in maceps2_allocate_port() 126 serio->id.type = SERIO_8042; in maceps2_allocate_port() [all …]
|
D | pcips2.c | 41 struct serio *io; 46 static int pcips2_write(struct serio *io, unsigned char val) in pcips2_write() 102 static int pcips2_open(struct serio *io) in pcips2_open() 120 static void pcips2_close(struct serio *io) in pcips2_close() 132 struct serio *serio; in pcips2_probe() local 144 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in pcips2_probe() 145 if (!ps2if || !serio) { in pcips2_probe() 151 serio->id.type = SERIO_8042; in pcips2_probe() 152 serio->write = pcips2_write; in pcips2_probe() 153 serio->open = pcips2_open; in pcips2_probe() [all …]
|
/drivers/input/keyboard/ |
D | hil_kbd.c | 72 struct serio *serio; member 215 static irqreturn_t hil_kbd_interrupt(struct serio *serio, in hil_kbd_interrupt() argument 222 kbd = serio_get_drvdata(serio); in hil_kbd_interrupt() 248 static void hil_kbd_disconnect(struct serio *serio) in hil_kbd_disconnect() argument 252 kbd = serio_get_drvdata(serio); in hil_kbd_disconnect() 255 serio_close(serio); in hil_kbd_disconnect() 260 static int hil_kbd_connect(struct serio *serio, struct serio_driver *drv) in hil_kbd_connect() argument 274 if (serio_open(serio, drv)) in hil_kbd_connect() 277 serio_set_drvdata(serio, kbd); in hil_kbd_connect() 278 kbd->serio = serio; in hil_kbd_connect() [all …]
|
D | lkkbd.c | 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() [all …]
|
D | sunkbd.c | 78 struct serio *serio; member 94 static irqreturn_t sunkbd_interrupt(struct serio *serio, in sunkbd_interrupt() argument 97 struct sunkbd* sunkbd = serio_get_drvdata(serio); in sunkbd_interrupt() 153 sunkbd->serio->write(sunkbd->serio, SUNKBD_CMD_SETLED); in sunkbd_event() 154 sunkbd->serio->write(sunkbd->serio, in sunkbd_event() 164 sunkbd->serio->write(sunkbd->serio, SUNKBD_CMD_NOCLICK - value); in sunkbd_event() 168 sunkbd->serio->write(sunkbd->serio, SUNKBD_CMD_BELLOFF - value); in sunkbd_event() 186 sunkbd->serio->write(sunkbd->serio, SUNKBD_CMD_RESET); in sunkbd_initialize() 195 sunkbd->serio->write(sunkbd->serio, SUNKBD_CMD_LAYOUT); in sunkbd_initialize() 215 sunkbd->serio->write(sunkbd->serio, SUNKBD_CMD_SETLED); in sunkbd_reinit() [all …]
|
D | xtkbd.c | 60 struct serio *serio; member 64 static irqreturn_t xtkbd_interrupt(struct serio *serio, in xtkbd_interrupt() argument 67 struct xtkbd *xtkbd = serio_get_drvdata(serio); in xtkbd_interrupt() 86 static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) in xtkbd_connect() argument 98 xtkbd->serio = serio; in xtkbd_connect() 100 snprintf(xtkbd->phys, sizeof(xtkbd->phys), "%s/input0", serio->phys); in xtkbd_connect() 109 input_dev->dev.parent = &serio->dev; in xtkbd_connect() 120 serio_set_drvdata(serio, xtkbd); in xtkbd_connect() 122 err = serio_open(serio, drv); in xtkbd_connect() 132 fail3: serio_close(serio); in xtkbd_connect() [all …]
|
D | newtonkbd.c | 63 struct serio *serio; member 67 static irqreturn_t nkbd_interrupt(struct serio *serio, in nkbd_interrupt() argument 70 struct nkbd *nkbd = serio_get_drvdata(serio); in nkbd_interrupt() 79 printk(KERN_INFO "input: %s on %s\n", nkbd->dev->name, serio->phys); in nkbd_interrupt() 84 static int nkbd_connect(struct serio *serio, struct serio_driver *drv) in nkbd_connect() argument 96 nkbd->serio = serio; in nkbd_connect() 98 snprintf(nkbd->phys, sizeof(nkbd->phys), "%s/input0", serio->phys); in nkbd_connect() 107 input_dev->dev.parent = &serio->dev; in nkbd_connect() 117 serio_set_drvdata(serio, nkbd); in nkbd_connect() 119 err = serio_open(serio, drv); in nkbd_connect() [all …]
|
D | stowaway.c | 69 struct serio *serio; member 73 static irqreturn_t skbd_interrupt(struct serio *serio, unsigned char data, in skbd_interrupt() argument 76 struct skbd *skbd = serio_get_drvdata(serio); in skbd_interrupt() 88 static int skbd_connect(struct serio *serio, struct serio_driver *drv) in skbd_connect() argument 100 skbd->serio = serio; in skbd_connect() 102 snprintf(skbd->phys, sizeof(skbd->phys), "%s/input0", serio->phys); in skbd_connect() 111 input_dev->dev.parent = &serio->dev; in skbd_connect() 121 serio_set_drvdata(serio, skbd); in skbd_connect() 123 err = serio_open(serio, drv); in skbd_connect() 133 fail3: serio_close(serio); in skbd_connect() [all …]
|
/drivers/input/mouse/ |
D | hil_ptr.c | 59 struct serio *serio; member 202 static irqreturn_t hil_ptr_interrupt(struct serio *serio, in hil_ptr_interrupt() argument 209 ptr = serio_get_drvdata(serio); in hil_ptr_interrupt() 236 static void hil_ptr_disconnect(struct serio *serio) in hil_ptr_disconnect() argument 240 ptr = serio_get_drvdata(serio); in hil_ptr_disconnect() 243 serio_close(serio); in hil_ptr_disconnect() 248 static int hil_ptr_connect(struct serio *serio, struct serio_driver *driver) in hil_ptr_connect() argument 266 error = serio_open(serio, driver); in hil_ptr_connect() 270 serio_set_drvdata(serio, ptr); in hil_ptr_connect() 271 ptr->serio = serio; in hil_ptr_connect() [all …]
|
D | psmouse-base.c | 233 serio_pause_rx(psmouse->ps2dev.serio); in psmouse_set_state() 235 serio_continue_rx(psmouse->ps2dev.serio); in psmouse_set_state() 255 serio_reconnect(psmouse->ps2dev.serio); in psmouse_handle_byte() 282 static irqreturn_t psmouse_interrupt(struct serio *serio, in psmouse_interrupt() argument 285 struct psmouse *psmouse = serio_get_drvdata(serio); in psmouse_interrupt() 332 serio_reconnect(serio); in psmouse_interrupt() 887 printk(KERN_WARNING "psmouse.c: Failed to reset mouse on %s\n", ps2dev->serio->phys); in psmouse_probe() 950 psmouse->ps2dev.serio->phys); in psmouse_activate() 965 psmouse->ps2dev.serio->phys); in psmouse_deactivate() 989 struct serio *serio = psmouse->ps2dev.serio; in psmouse_resync() local [all …]
|
/drivers/input/joystick/iforce/ |
D | iforce-serio.c | 52 serio_write(iforce->serio, 0x2b); in iforce_serial_xmit() 54 serio_write(iforce->serio, iforce->xmit.buf[iforce->xmit.tail]); in iforce_serial_xmit() 59 serio_write(iforce->serio, iforce->xmit.buf[iforce->xmit.tail]); in iforce_serial_xmit() 64 serio_write(iforce->serio, cs); in iforce_serial_xmit() 74 static void iforce_serio_write_wakeup(struct serio *serio) in iforce_serio_write_wakeup() argument 76 struct iforce *iforce = serio_get_drvdata(serio); in iforce_serio_write_wakeup() 81 static irqreturn_t iforce_serio_irq(struct serio *serio, in iforce_serio_irq() argument 84 struct iforce *iforce = serio_get_drvdata(serio); in iforce_serio_irq() 127 static int iforce_serio_connect(struct serio *serio, struct serio_driver *drv) in iforce_serio_connect() argument 137 iforce->serio = serio; in iforce_serio_connect() [all …]
|
/drivers/input/touchscreen/ |
D | gunze.c | 55 struct serio *serio; member 77 static irqreturn_t gunze_interrupt(struct serio *serio, in gunze_interrupt() argument 80 struct gunze* gunze = serio_get_drvdata(serio); in gunze_interrupt() 96 static void gunze_disconnect(struct serio *serio) in gunze_disconnect() argument 98 struct gunze *gunze = serio_get_drvdata(serio); in gunze_disconnect() 102 serio_close(serio); in gunze_disconnect() 103 serio_set_drvdata(serio, NULL); in gunze_disconnect() 114 static int gunze_connect(struct serio *serio, struct serio_driver *drv) in gunze_connect() argument 127 gunze->serio = serio; in gunze_connect() 129 snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); in gunze_connect() [all …]
|
D | touchright.c | 52 struct serio *serio; member 58 static irqreturn_t tr_interrupt(struct serio *serio, in tr_interrupt() argument 61 struct tr *tr = serio_get_drvdata(serio); in tr_interrupt() 86 static void tr_disconnect(struct serio *serio) in tr_disconnect() argument 88 struct tr *tr = serio_get_drvdata(serio); in tr_disconnect() 92 serio_close(serio); in tr_disconnect() 93 serio_set_drvdata(serio, NULL); in tr_disconnect() 104 static int tr_connect(struct serio *serio, struct serio_driver *drv) in tr_connect() argument 117 tr->serio = serio; in tr_connect() 119 snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); in tr_connect() [all …]
|
D | penmount.c | 42 struct serio *serio; member 48 static irqreturn_t pm_interrupt(struct serio *serio, in pm_interrupt() argument 51 struct pm *pm = serio_get_drvdata(serio); in pm_interrupt() 73 static void pm_disconnect(struct serio *serio) in pm_disconnect() argument 75 struct pm *pm = serio_get_drvdata(serio); in pm_disconnect() 79 serio_close(serio); in pm_disconnect() 80 serio_set_drvdata(serio, NULL); in pm_disconnect() 91 static int pm_connect(struct serio *serio, struct serio_driver *drv) in pm_connect() argument 104 pm->serio = serio; in pm_connect() 106 snprintf(pm->phys, sizeof(pm->phys), "%s/input0", serio->phys); in pm_connect() [all …]
|
D | fujitsu_ts.c | 34 struct serio *serio; member 48 static irqreturn_t fujitsu_interrupt(struct serio *serio, in fujitsu_interrupt() argument 51 struct fujitsu *fujitsu = serio_get_drvdata(serio); in fujitsu_interrupt() 84 static void fujitsu_disconnect(struct serio *serio) in fujitsu_disconnect() argument 86 struct fujitsu *fujitsu = serio_get_drvdata(serio); in fujitsu_disconnect() 90 serio_close(serio); in fujitsu_disconnect() 91 serio_set_drvdata(serio, NULL); in fujitsu_disconnect() 101 static int fujitsu_connect(struct serio *serio, struct serio_driver *drv) in fujitsu_connect() argument 114 fujitsu->serio = serio; in fujitsu_connect() 117 "%s/input0", serio->phys); in fujitsu_connect() [all …]
|
D | touchit213.c | 80 struct serio *serio; member 87 static irqreturn_t touchit213_interrupt(struct serio *serio, in touchit213_interrupt() argument 90 struct touchit213 *touchit213 = serio_get_drvdata(serio); in touchit213_interrupt() 123 static void touchit213_disconnect(struct serio *serio) in touchit213_disconnect() argument 125 struct touchit213 *touchit213 = serio_get_drvdata(serio); in touchit213_disconnect() 129 serio_close(serio); in touchit213_disconnect() 130 serio_set_drvdata(serio, NULL); in touchit213_disconnect() 141 static int touchit213_connect(struct serio *serio, struct serio_driver *drv) in touchit213_connect() argument 154 touchit213->serio = serio; in touchit213_connect() 157 "%s/input0", serio->phys); in touchit213_connect() [all …]
|
D | touchwin.c | 55 struct serio *serio; member 62 static irqreturn_t tw_interrupt(struct serio *serio, in tw_interrupt() argument 65 struct tw *tw = serio_get_drvdata(serio); in tw_interrupt() 93 static void tw_disconnect(struct serio *serio) in tw_disconnect() argument 95 struct tw *tw = serio_get_drvdata(serio); in tw_disconnect() 99 serio_close(serio); in tw_disconnect() 100 serio_set_drvdata(serio, NULL); in tw_disconnect() 111 static int tw_connect(struct serio *serio, struct serio_driver *drv) in tw_connect() argument 124 tw->serio = serio; in tw_connect() 126 snprintf(tw->phys, sizeof(tw->phys), "%s/input0", serio->phys); in tw_connect() [all …]
|
D | inexio.c | 60 struct serio *serio; member 80 static irqreturn_t inexio_interrupt(struct serio *serio, in inexio_interrupt() argument 83 struct inexio* pinexio = serio_get_drvdata(serio); in inexio_interrupt() 99 static void inexio_disconnect(struct serio *serio) in inexio_disconnect() argument 101 struct inexio* pinexio = serio_get_drvdata(serio); in inexio_disconnect() 105 serio_close(serio); in inexio_disconnect() 106 serio_set_drvdata(serio, NULL); in inexio_disconnect() 117 static int inexio_connect(struct serio *serio, struct serio_driver *drv) in inexio_connect() argument 130 pinexio->serio = serio; in inexio_connect() 132 snprintf(pinexio->phys, sizeof(pinexio->phys), "%s/input0", serio->phys); in inexio_connect() [all …]
|
D | mtouch.c | 60 struct serio *serio; member 91 static irqreturn_t mtouch_interrupt(struct serio *serio, in mtouch_interrupt() argument 94 struct mtouch* mtouch = serio_get_drvdata(serio); in mtouch_interrupt() 112 static void mtouch_disconnect(struct serio *serio) in mtouch_disconnect() argument 114 struct mtouch* mtouch = serio_get_drvdata(serio); in mtouch_disconnect() 118 serio_close(serio); in mtouch_disconnect() 119 serio_set_drvdata(serio, NULL); in mtouch_disconnect() 130 static int mtouch_connect(struct serio *serio, struct serio_driver *drv) in mtouch_connect() argument 143 mtouch->serio = serio; in mtouch_connect() 145 snprintf(mtouch->phys, sizeof(mtouch->phys), "%s/input0", serio->phys); in mtouch_connect() [all …]
|
/drivers/i2c/busses/ |
D | i2c-taos-evm.c | 72 struct serio *serio = adapter->algo_data; in taos_smbus_xfer() local 73 struct taos_data *taos = serio_get_drvdata(serio); in taos_smbus_xfer() 107 serio_write(serio, taos->buffer[0]); in taos_smbus_xfer() 121 serio_write(serio, read_write == I2C_SMBUS_WRITE ? '>' : '<'); in taos_smbus_xfer() 161 static irqreturn_t taos_interrupt(struct serio *serio, unsigned char data, in taos_interrupt() argument 164 struct taos_data *taos = serio_get_drvdata(serio); in taos_interrupt() 178 serio_write(serio, taos->buffer[taos->pos]); in taos_interrupt() 215 static int taos_connect(struct serio *serio, struct serio_driver *drv) in taos_connect() argument 228 serio_set_drvdata(serio, taos); in taos_connect() 230 err = serio_open(serio, drv); in taos_connect() [all …]
|