Home
last modified time | relevance | path

Searched refs:serio (Results 1 – 25 of 77) sorted by relevance

1234

/drivers/input/serio/
Dserio.c54 static void serio_add_port(struct serio *serio);
55 static int serio_reconnect_port(struct serio *serio);
56 static void serio_disconnect_port(struct serio *serio);
57 static void serio_reconnect_subtree(struct serio *serio);
60 static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) in serio_connect_driver() argument
64 mutex_lock(&serio->drv_mutex); in serio_connect_driver()
65 retval = drv->connect(serio, drv); in serio_connect_driver()
66 mutex_unlock(&serio->drv_mutex); in serio_connect_driver()
71 static int serio_reconnect_driver(struct serio *serio) in serio_reconnect_driver() argument
75 mutex_lock(&serio->drv_mutex); in serio_reconnect_driver()
[all …]
Dps2mult.c29 struct serio *serio; member
39 struct serio *mx_serio;
65 MODULE_DEVICE_TABLE(serio, ps2mult_serio_ids);
69 struct serio *mx_serio = psm->mx_serio; in ps2mult_select_port()
76 static int ps2mult_serio_write(struct serio *serio, unsigned char data) in ps2mult_serio_write() argument
78 struct serio *mx_port = serio->parent; in ps2mult_serio_write()
80 struct ps2mult_port *port = serio->port_data; in ps2mult_serio_write()
91 dev_dbg(&serio->dev, in ps2mult_serio_write()
104 static int ps2mult_serio_start(struct serio *serio) in ps2mult_serio_start() argument
106 struct ps2mult *psm = serio_get_drvdata(serio->parent); in ps2mult_serio_start()
[all …]
Drpckbd.c52 static int rpckbd_write(struct serio *port, unsigned char val) in rpckbd_write()
64 struct serio *port = dev_id; in rpckbd_rx()
82 static int rpckbd_open(struct serio *port) in rpckbd_open()
105 static void rpckbd_close(struct serio *port) in rpckbd_close()
120 struct serio *serio; in rpckbd_probe() local
131 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in rpckbd_probe()
133 if (!serio || !rpckbd) { in rpckbd_probe()
135 kfree(serio); in rpckbd_probe()
142 serio->id.type = SERIO_8042; in rpckbd_probe()
143 serio->write = rpckbd_write; in rpckbd_probe()
[all …]
Di8042.c110 struct serio *serio; member
133 struct serio *serio);
148 struct serio *serio)) in i8042_install_filter() argument
169 struct serio *port)) in i8042_remove_filter()
310 static int i8042_kbd_write(struct serio *port, unsigned char c) in i8042_kbd_write()
331 static int i8042_aux_write(struct serio *serio, unsigned char c) in i8042_aux_write() argument
333 struct i8042_port *port = serio->port_data; in i8042_aux_write()
346 static void i8042_port_close(struct serio *serio) in i8042_port_close() argument
352 if (serio == i8042_ports[I8042_AUX_PORT_NO].serio) { in i8042_port_close()
385 static int i8042_start(struct serio *serio) in i8042_start() argument
[all …]
Dserport.c37 struct serio *serio; member
47 static int serport_serio_write(struct serio *serio, unsigned char data) in serport_serio_write() argument
49 struct serport *serport = serio->port_data; in serport_serio_write()
53 static int serport_serio_open(struct serio *serio) in serport_serio_open() argument
55 struct serport *serport = serio->port_data; in serport_serio_open()
66 static void serport_serio_close(struct serio *serio) in serport_serio_close() argument
68 struct serport *serport = serio->port_data; in serport_serio_close()
150 serio_interrupt(serport->serio, cp[i], ch_flags); in serport_ldisc_receive()
166 struct serio *serio; in serport_ldisc_read() local
172 serport->serio = serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in serport_ldisc_read()
[all …]
Dserio_raw.c38 struct serio *serio; member
110 serio_pause_rx(serio_raw->serio); in serio_raw_open()
112 serio_continue_rx(serio_raw->serio); in serio_raw_open()
124 put_device(&serio_raw->serio->dev); in serio_raw_free()
133 serio_pause_rx(serio_raw->serio); in serio_raw_release()
135 serio_continue_rx(serio_raw->serio); in serio_raw_release()
148 serio_pause_rx(serio_raw->serio); in serio_raw_fetch_byte()
156 serio_continue_rx(serio_raw->serio); in serio_raw_fetch_byte()
228 if (serio_write(serio_raw->serio, c)) { in serio_raw_write()
274 static irqreturn_t serio_raw_interrupt(struct serio *serio, unsigned char data, in serio_raw_interrupt() argument
[all …]
Dmaceps2.c55 static struct serio *maceps2_port[2];
58 static int maceps2_write(struct serio *dev, unsigned char val) in maceps2_write()
76 struct serio *dev = dev_id; in maceps2_interrupt()
88 static int maceps2_open(struct serio *dev) in maceps2_open()
109 static void maceps2_close(struct serio *dev) in maceps2_close()
119 static struct serio *maceps2_allocate_port(int idx) in maceps2_allocate_port()
121 struct serio *serio; in maceps2_allocate_port() local
123 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in maceps2_allocate_port()
124 if (serio) { in maceps2_allocate_port()
125 serio->id.type = SERIO_8042; in maceps2_allocate_port()
[all …]
Daltera_ps2.c27 struct serio *io;
54 static int altera_ps2_write(struct serio *io, unsigned char val) in altera_ps2_write()
62 static int altera_ps2_open(struct serio *io) in altera_ps2_open()
74 static void altera_ps2_close(struct serio *io) in altera_ps2_close()
87 struct serio *serio; in altera_ps2_probe() local
91 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in altera_ps2_probe()
92 if (!ps2if || !serio) { in altera_ps2_probe()
97 serio->id.type = SERIO_8042; in altera_ps2_probe()
98 serio->write = altera_ps2_write; in altera_ps2_probe()
99 serio->open = altera_ps2_open; in altera_ps2_probe()
[all …]
/drivers/input/keyboard/
Dsunkbd.c79 struct serio *serio; member
95 static irqreturn_t sunkbd_interrupt(struct serio *serio, in sunkbd_interrupt() argument
98 struct sunkbd *sunkbd = serio_get_drvdata(serio); in sunkbd_interrupt()
163 serio_write(sunkbd->serio, SUNKBD_CMD_SETLED); in sunkbd_event()
164 serio_write(sunkbd->serio, in sunkbd_event()
176 serio_write(sunkbd->serio, SUNKBD_CMD_NOCLICK - value); in sunkbd_event()
180 serio_write(sunkbd->serio, SUNKBD_CMD_BELLOFF - value); in sunkbd_event()
198 serio_write(sunkbd->serio, SUNKBD_CMD_RESET); in sunkbd_initialize()
207 serio_write(sunkbd->serio, SUNKBD_CMD_LAYOUT); in sunkbd_initialize()
230 serio_write(sunkbd->serio, SUNKBD_CMD_SETLED); in sunkbd_reinit()
[all …]
Dxtkbd.c60 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 …]
Dlkkbd.c282 struct serio *serio; member
439 static irqreturn_t lkkbd_interrupt(struct serio *serio, in lkkbd_interrupt() argument
442 struct lkkbd *lk = serio_get_drvdata(serio); in lkkbd_interrupt()
503 struct serio *serio = lk->serio; in lkkbd_toggle_leds() local
512 serio_write(serio, LK_CMD_LED_ON); in lkkbd_toggle_leds()
513 serio_write(serio, leds_on); in lkkbd_toggle_leds()
516 serio_write(serio, LK_CMD_LED_OFF); in lkkbd_toggle_leds()
517 serio_write(serio, leds_off); in lkkbd_toggle_leds()
523 struct serio *serio = lk->serio; in lkkbd_toggle_keyclick() local
527 serio_write(serio, LK_CMD_ENABLE_KEYCLICK); in lkkbd_toggle_keyclick()
[all …]
Dnewtonkbd.c63 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 …]
/drivers/input/joystick/iforce/
Diforce-serio.c52 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/
Dtsc40.c19 struct serio *serio; member
42 static irqreturn_t tsc_interrupt(struct serio *serio, in tsc_interrupt() argument
45 struct tsc_ser *ptsc = serio_get_drvdata(serio); in tsc_interrupt()
52 dev_dbg(&serio->dev, in tsc_interrupt()
65 dev_dbg(&serio->dev, in tsc_interrupt()
81 static int tsc_connect(struct serio *serio, struct serio_driver *drv) in tsc_connect() argument
94 ptsc->serio = serio; in tsc_connect()
96 snprintf(ptsc->phys, sizeof(ptsc->phys), "%s/input0", serio->phys); in tsc_connect()
104 input_dev->dev.parent = &serio->dev; in tsc_connect()
111 serio_set_drvdata(serio, ptsc); in tsc_connect()
[all …]
Dgunze.c55 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 …]
Dhampshire.c57 struct serio *serio; member
78 static irqreturn_t hampshire_interrupt(struct serio *serio, in hampshire_interrupt() argument
81 struct hampshire *phampshire = serio_get_drvdata(serio); in hampshire_interrupt()
88 dev_dbg(&serio->dev, "unknown/unsynchronized data: %x\n", in hampshire_interrupt()
94 static void hampshire_disconnect(struct serio *serio) in hampshire_disconnect() argument
96 struct hampshire *phampshire = serio_get_drvdata(serio); in hampshire_disconnect()
100 serio_close(serio); in hampshire_disconnect()
101 serio_set_drvdata(serio, NULL); in hampshire_disconnect()
112 static int hampshire_connect(struct serio *serio, struct serio_driver *drv) in hampshire_connect() argument
125 phampshire->serio = serio; in hampshire_connect()
[all …]
Ddynapro.c58 struct serio *serio; member
79 static irqreturn_t dynapro_interrupt(struct serio *serio, in dynapro_interrupt() argument
82 struct dynapro *pdynapro = serio_get_drvdata(serio); in dynapro_interrupt()
89 dev_dbg(&serio->dev, "unknown/unsynchronized data: %x\n", in dynapro_interrupt()
95 static void dynapro_disconnect(struct serio *serio) in dynapro_disconnect() argument
97 struct dynapro *pdynapro = serio_get_drvdata(serio); in dynapro_disconnect()
101 serio_close(serio); in dynapro_disconnect()
102 serio_set_drvdata(serio, NULL); in dynapro_disconnect()
113 static int dynapro_connect(struct serio *serio, struct serio_driver *drv) in dynapro_connect() argument
126 pdynapro->serio = serio; in dynapro_connect()
[all …]
Dtouchwin.c55 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 …]
Dtouchit213.c80 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 …]
Dtouchright.c52 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 …]
Dfujitsu_ts.c34 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 …]
Dinexio.c60 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 …]
Dmtouch.c60 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 …]
Delo.c58 struct serio *serio; member
80 dev_dbg(&elo->serio->dev, in elo_process_data_10()
89 dev_dbg(&elo->serio->dev, in elo_process_data_10()
96 dev_dbg(&elo->serio->dev, in elo_process_data_10()
202 static irqreturn_t elo_interrupt(struct serio *serio, in elo_interrupt() argument
205 struct elo *elo = serio_get_drvdata(serio); in elo_interrupt()
233 serio_pause_rx(elo->serio); in elo_command_10()
236 serio_continue_rx(elo->serio); in elo_command_10()
238 if (serio_write(elo->serio, ELO10_LEAD_BYTE)) in elo_command_10()
243 if (serio_write(elo->serio, packet[i])) in elo_command_10()
[all …]
/drivers/i2c/busses/
Di2c-taos-evm.c74 struct serio *serio = adapter->algo_data; in taos_smbus_xfer() local
75 struct taos_data *taos = serio_get_drvdata(serio); in taos_smbus_xfer()
108 serio_write(serio, *p); in taos_smbus_xfer()
115 serio_write(serio, read_write == I2C_SMBUS_WRITE ? '>' : '<'); in taos_smbus_xfer()
155 static irqreturn_t taos_interrupt(struct serio *serio, unsigned char data, in taos_interrupt() argument
158 struct taos_data *taos = serio_get_drvdata(serio); in taos_interrupt()
205 static int taos_connect(struct serio *serio, struct serio_driver *drv) in taos_connect() argument
218 serio_set_drvdata(serio, taos); in taos_connect()
220 err = serio_open(serio, drv); in taos_connect()
227 adapter->algo_data = serio; in taos_connect()
[all …]

1234