serio 83 arch/arm/mach-omap1/ams-delta-fiq.c struct platform_device *serio) serio 202 arch/arm/mach-omap1/ams-delta-fiq.c serio->resource[0].start = gpiod_to_irq(clk); serio 203 arch/arm/mach-omap1/ams-delta-fiq.c serio->resource[0].end = serio->resource[0].start; serio 204 arch/arm/mach-omap1/ams-delta-fiq.c serio->dev.platform_data = fiq_buffer; serio 143 arch/mips/include/asm/sn/ioc3.h struct ioc3_serioregs serio; serio 62 drivers/i2c/busses/i2c-taos-evm.c struct serio *serio = adapter->algo_data; serio 63 drivers/i2c/busses/i2c-taos-evm.c struct taos_data *taos = serio_get_drvdata(serio); serio 96 drivers/i2c/busses/i2c-taos-evm.c serio_write(serio, *p); serio 103 drivers/i2c/busses/i2c-taos-evm.c serio_write(serio, read_write == I2C_SMBUS_WRITE ? '>' : '<'); serio 149 drivers/i2c/busses/i2c-taos-evm.c static irqreturn_t taos_interrupt(struct serio *serio, unsigned char data, serio 152 drivers/i2c/busses/i2c-taos-evm.c struct taos_data *taos = serio_get_drvdata(serio); serio 199 drivers/i2c/busses/i2c-taos-evm.c static int taos_connect(struct serio *serio, struct serio_driver *drv) serio 212 drivers/i2c/busses/i2c-taos-evm.c serio_set_drvdata(serio, taos); serio 214 drivers/i2c/busses/i2c-taos-evm.c err = serio_open(serio, drv); serio 221 drivers/i2c/busses/i2c-taos-evm.c adapter->algo_data = serio; serio 222 drivers/i2c/busses/i2c-taos-evm.c adapter->dev.parent = &serio->dev; serio 225 drivers/i2c/busses/i2c-taos-evm.c serio_write(serio, TAOS_CMD_RESET); serio 231 drivers/i2c/busses/i2c-taos-evm.c dev_err(&serio->dev, "TAOS EVM reset failed (state=%d, " serio 239 drivers/i2c/busses/i2c-taos-evm.c dev_err(&serio->dev, "TAOS EVM identification failed\n"); serio 246 drivers/i2c/busses/i2c-taos-evm.c serio_write(serio, TAOS_CMD_ECHO_OFF); serio 252 drivers/i2c/busses/i2c-taos-evm.c dev_err(&serio->dev, "TAOS EVM echo off failed " serio 260 drivers/i2c/busses/i2c-taos-evm.c dev_info(&serio->dev, "Connected to TAOS EVM\n"); serio 266 drivers/i2c/busses/i2c-taos-evm.c serio_close(serio); serio 273 drivers/i2c/busses/i2c-taos-evm.c static void taos_disconnect(struct serio *serio) serio 275 drivers/i2c/busses/i2c-taos-evm.c struct taos_data *taos = serio_get_drvdata(serio); serio 279 drivers/i2c/busses/i2c-taos-evm.c serio_close(serio); serio 282 drivers/i2c/busses/i2c-taos-evm.c dev_info(&serio->dev, "Disconnected from TAOS EVM\n"); serio 294 drivers/i2c/busses/i2c-taos-evm.c MODULE_DEVICE_TABLE(serio, taos_serio_ids); serio 62 drivers/input/joystick/fsia6b.c static irqreturn_t fsia6b_serio_irq(struct serio *serio, serio 65 drivers/input/joystick/fsia6b.c struct fsia6b *fsia6b = serio_get_drvdata(serio); serio 127 drivers/input/joystick/fsia6b.c static int fsia6b_serio_connect(struct serio *serio, struct serio_driver *drv) serio 143 drivers/input/joystick/fsia6b.c serio_set_drvdata(serio, fsia6b); serio 152 drivers/input/joystick/fsia6b.c snprintf(fsia6b->phys, sizeof(fsia6b->phys), "%s/input0", serio->phys); serio 158 drivers/input/joystick/fsia6b.c input_dev->id.product = serio->id.id; serio 160 drivers/input/joystick/fsia6b.c input_dev->dev.parent = &serio->dev; serio 181 drivers/input/joystick/fsia6b.c err = serio_open(serio, drv); serio 191 drivers/input/joystick/fsia6b.c fail3: serio_close(serio); serio 193 drivers/input/joystick/fsia6b.c fail1: serio_set_drvdata(serio, NULL); serio 198 drivers/input/joystick/fsia6b.c static void fsia6b_serio_disconnect(struct serio *serio) serio 200 drivers/input/joystick/fsia6b.c struct fsia6b *fsia6b = serio_get_drvdata(serio); serio 202 drivers/input/joystick/fsia6b.c serio_close(serio); serio 203 drivers/input/joystick/fsia6b.c serio_set_drvdata(serio, NULL); serio 218 drivers/input/joystick/fsia6b.c MODULE_DEVICE_TABLE(serio, fsia6b_serio_ids); serio 15 drivers/input/joystick/iforce/iforce-serio.c struct serio *serio; serio 49 drivers/input/joystick/iforce/iforce-serio.c serio_write(iforce_serio->serio, 0x2b); serio 51 drivers/input/joystick/iforce/iforce-serio.c serio_write(iforce_serio->serio, iforce->xmit.buf[iforce->xmit.tail]); serio 56 drivers/input/joystick/iforce/iforce-serio.c serio_write(iforce_serio->serio, serio 62 drivers/input/joystick/iforce/iforce-serio.c serio_write(iforce_serio->serio, cs); serio 120 drivers/input/joystick/iforce/iforce-serio.c static void iforce_serio_write_wakeup(struct serio *serio) serio 122 drivers/input/joystick/iforce/iforce-serio.c struct iforce *iforce = serio_get_drvdata(serio); serio 127 drivers/input/joystick/iforce/iforce-serio.c static irqreturn_t iforce_serio_irq(struct serio *serio, serio 130 drivers/input/joystick/iforce/iforce-serio.c struct iforce_serio *iforce_serio = serio_get_drvdata(serio); serio 189 drivers/input/joystick/iforce/iforce-serio.c static int iforce_serio_connect(struct serio *serio, struct serio_driver *drv) serio 200 drivers/input/joystick/iforce/iforce-serio.c iforce_serio->serio = serio; serio 201 drivers/input/joystick/iforce/iforce-serio.c serio_set_drvdata(serio, iforce_serio); serio 203 drivers/input/joystick/iforce/iforce-serio.c err = serio_open(serio, drv); serio 207 drivers/input/joystick/iforce/iforce-serio.c err = iforce_init_device(&serio->dev, BUS_RS232, &iforce_serio->iforce); serio 213 drivers/input/joystick/iforce/iforce-serio.c fail2: serio_close(serio); serio 214 drivers/input/joystick/iforce/iforce-serio.c fail1: serio_set_drvdata(serio, NULL); serio 219 drivers/input/joystick/iforce/iforce-serio.c static void iforce_serio_disconnect(struct serio *serio) serio 221 drivers/input/joystick/iforce/iforce-serio.c struct iforce_serio *iforce_serio = serio_get_drvdata(serio); serio 224 drivers/input/joystick/iforce/iforce-serio.c serio_close(serio); serio 225 drivers/input/joystick/iforce/iforce-serio.c serio_set_drvdata(serio, NULL); serio 239 drivers/input/joystick/iforce/iforce-serio.c MODULE_DEVICE_TABLE(serio, iforce_serio_ids); serio 96 drivers/input/joystick/magellan.c static irqreturn_t magellan_interrupt(struct serio *serio, serio 99 drivers/input/joystick/magellan.c struct magellan* magellan = serio_get_drvdata(serio); serio 115 drivers/input/joystick/magellan.c static void magellan_disconnect(struct serio *serio) serio 117 drivers/input/joystick/magellan.c struct magellan* magellan = serio_get_drvdata(serio); serio 119 drivers/input/joystick/magellan.c serio_close(serio); serio 120 drivers/input/joystick/magellan.c serio_set_drvdata(serio, NULL); serio 131 drivers/input/joystick/magellan.c static int magellan_connect(struct serio *serio, struct serio_driver *drv) serio 144 drivers/input/joystick/magellan.c snprintf(magellan->phys, sizeof(magellan->phys), "%s/input0", serio->phys); serio 152 drivers/input/joystick/magellan.c input_dev->dev.parent = &serio->dev; serio 162 drivers/input/joystick/magellan.c serio_set_drvdata(serio, magellan); serio 164 drivers/input/joystick/magellan.c err = serio_open(serio, drv); serio 174 drivers/input/joystick/magellan.c fail3: serio_close(serio); serio 175 drivers/input/joystick/magellan.c fail2: serio_set_drvdata(serio, NULL); serio 195 drivers/input/joystick/magellan.c MODULE_DEVICE_TABLE(serio, magellan_serio_ids); serio 132 drivers/input/joystick/spaceball.c static irqreturn_t spaceball_interrupt(struct serio *serio, serio 135 drivers/input/joystick/spaceball.c struct spaceball *spaceball = serio_get_drvdata(serio); serio 172 drivers/input/joystick/spaceball.c static void spaceball_disconnect(struct serio *serio) serio 174 drivers/input/joystick/spaceball.c struct spaceball* spaceball = serio_get_drvdata(serio); serio 176 drivers/input/joystick/spaceball.c serio_close(serio); serio 177 drivers/input/joystick/spaceball.c serio_set_drvdata(serio, NULL); serio 188 drivers/input/joystick/spaceball.c static int spaceball_connect(struct serio *serio, struct serio_driver *drv) serio 195 drivers/input/joystick/spaceball.c if ((id = serio->id.id) > SPACEBALL_MAX_ID) serio 204 drivers/input/joystick/spaceball.c snprintf(spaceball->phys, sizeof(spaceball->phys), "%s/input0", serio->phys); serio 212 drivers/input/joystick/spaceball.c input_dev->dev.parent = &serio->dev; serio 240 drivers/input/joystick/spaceball.c serio_set_drvdata(serio, spaceball); serio 242 drivers/input/joystick/spaceball.c err = serio_open(serio, drv); serio 252 drivers/input/joystick/spaceball.c fail3: serio_close(serio); serio 253 drivers/input/joystick/spaceball.c fail2: serio_set_drvdata(serio, NULL); serio 273 drivers/input/joystick/spaceball.c MODULE_DEVICE_TABLE(serio, spaceball_serio_ids); serio 112 drivers/input/joystick/spaceorb.c static irqreturn_t spaceorb_interrupt(struct serio *serio, serio 115 drivers/input/joystick/spaceorb.c struct spaceorb* spaceorb = serio_get_drvdata(serio); serio 130 drivers/input/joystick/spaceorb.c static void spaceorb_disconnect(struct serio *serio) serio 132 drivers/input/joystick/spaceorb.c struct spaceorb* spaceorb = serio_get_drvdata(serio); serio 134 drivers/input/joystick/spaceorb.c serio_close(serio); serio 135 drivers/input/joystick/spaceorb.c serio_set_drvdata(serio, NULL); serio 146 drivers/input/joystick/spaceorb.c static int spaceorb_connect(struct serio *serio, struct serio_driver *drv) serio 159 drivers/input/joystick/spaceorb.c snprintf(spaceorb->phys, sizeof(spaceorb->phys), "%s/input0", serio->phys); serio 167 drivers/input/joystick/spaceorb.c input_dev->dev.parent = &serio->dev; serio 177 drivers/input/joystick/spaceorb.c serio_set_drvdata(serio, spaceorb); serio 179 drivers/input/joystick/spaceorb.c err = serio_open(serio, drv); serio 189 drivers/input/joystick/spaceorb.c fail3: serio_close(serio); serio 190 drivers/input/joystick/spaceorb.c fail2: serio_set_drvdata(serio, NULL); serio 210 drivers/input/joystick/spaceorb.c MODULE_DEVICE_TABLE(serio, spaceorb_serio_ids); serio 80 drivers/input/joystick/stinger.c static irqreturn_t stinger_interrupt(struct serio *serio, serio 83 drivers/input/joystick/stinger.c struct stinger *stinger = serio_get_drvdata(serio); serio 102 drivers/input/joystick/stinger.c static void stinger_disconnect(struct serio *serio) serio 104 drivers/input/joystick/stinger.c struct stinger *stinger = serio_get_drvdata(serio); serio 106 drivers/input/joystick/stinger.c serio_close(serio); serio 107 drivers/input/joystick/stinger.c serio_set_drvdata(serio, NULL); serio 118 drivers/input/joystick/stinger.c static int stinger_connect(struct serio *serio, struct serio_driver *drv) serio 130 drivers/input/joystick/stinger.c snprintf(stinger->phys, sizeof(stinger->phys), "%s/serio0", serio->phys); serio 138 drivers/input/joystick/stinger.c input_dev->dev.parent = &serio->dev; serio 148 drivers/input/joystick/stinger.c serio_set_drvdata(serio, stinger); serio 150 drivers/input/joystick/stinger.c err = serio_open(serio, drv); serio 160 drivers/input/joystick/stinger.c fail3: serio_close(serio); serio 161 drivers/input/joystick/stinger.c fail2: serio_set_drvdata(serio, NULL); serio 181 drivers/input/joystick/stinger.c MODULE_DEVICE_TABLE(serio, stinger_serio_ids); serio 125 drivers/input/joystick/twidjoy.c static irqreturn_t twidjoy_interrupt(struct serio *serio, unsigned char data, unsigned int flags) serio 127 drivers/input/joystick/twidjoy.c struct twidjoy *twidjoy = serio_get_drvdata(serio); serio 153 drivers/input/joystick/twidjoy.c static void twidjoy_disconnect(struct serio *serio) serio 155 drivers/input/joystick/twidjoy.c struct twidjoy *twidjoy = serio_get_drvdata(serio); serio 157 drivers/input/joystick/twidjoy.c serio_close(serio); serio 158 drivers/input/joystick/twidjoy.c serio_set_drvdata(serio, NULL); serio 169 drivers/input/joystick/twidjoy.c static int twidjoy_connect(struct serio *serio, struct serio_driver *drv) serio 183 drivers/input/joystick/twidjoy.c snprintf(twidjoy->phys, sizeof(twidjoy->phys), "%s/input0", serio->phys); serio 191 drivers/input/joystick/twidjoy.c input_dev->dev.parent = &serio->dev; serio 201 drivers/input/joystick/twidjoy.c serio_set_drvdata(serio, twidjoy); serio 203 drivers/input/joystick/twidjoy.c err = serio_open(serio, drv); serio 213 drivers/input/joystick/twidjoy.c fail3: serio_close(serio); serio 214 drivers/input/joystick/twidjoy.c fail2: serio_set_drvdata(serio, NULL); serio 234 drivers/input/joystick/twidjoy.c MODULE_DEVICE_TABLE(serio, twidjoy_serio_ids); serio 82 drivers/input/joystick/warrior.c static irqreturn_t warrior_interrupt(struct serio *serio, serio 85 drivers/input/joystick/warrior.c struct warrior *warrior = serio_get_drvdata(serio); serio 108 drivers/input/joystick/warrior.c static void warrior_disconnect(struct serio *serio) serio 110 drivers/input/joystick/warrior.c struct warrior *warrior = serio_get_drvdata(serio); serio 112 drivers/input/joystick/warrior.c serio_close(serio); serio 113 drivers/input/joystick/warrior.c serio_set_drvdata(serio, NULL); serio 124 drivers/input/joystick/warrior.c static int warrior_connect(struct serio *serio, struct serio_driver *drv) serio 136 drivers/input/joystick/warrior.c snprintf(warrior->phys, sizeof(warrior->phys), "%s/input0", serio->phys); serio 144 drivers/input/joystick/warrior.c input_dev->dev.parent = &serio->dev; serio 157 drivers/input/joystick/warrior.c serio_set_drvdata(serio, warrior); serio 159 drivers/input/joystick/warrior.c err = serio_open(serio, drv); serio 169 drivers/input/joystick/warrior.c fail3: serio_close(serio); serio 170 drivers/input/joystick/warrior.c fail2: serio_set_drvdata(serio, NULL); serio 190 drivers/input/joystick/warrior.c MODULE_DEVICE_TABLE(serio, warrior_serio_ids); serio 87 drivers/input/joystick/zhenhua.c static irqreturn_t zhenhua_interrupt(struct serio *serio, unsigned char data, unsigned int flags) serio 89 drivers/input/joystick/zhenhua.c struct zhenhua *zhenhua = serio_get_drvdata(serio); serio 115 drivers/input/joystick/zhenhua.c static void zhenhua_disconnect(struct serio *serio) serio 117 drivers/input/joystick/zhenhua.c struct zhenhua *zhenhua = serio_get_drvdata(serio); serio 119 drivers/input/joystick/zhenhua.c serio_close(serio); serio 120 drivers/input/joystick/zhenhua.c serio_set_drvdata(serio, NULL); serio 131 drivers/input/joystick/zhenhua.c static int zhenhua_connect(struct serio *serio, struct serio_driver *drv) serio 143 drivers/input/joystick/zhenhua.c snprintf(zhenhua->phys, sizeof(zhenhua->phys), "%s/input0", serio->phys); serio 151 drivers/input/joystick/zhenhua.c input_dev->dev.parent = &serio->dev; serio 159 drivers/input/joystick/zhenhua.c serio_set_drvdata(serio, zhenhua); serio 161 drivers/input/joystick/zhenhua.c err = serio_open(serio, drv); serio 171 drivers/input/joystick/zhenhua.c fail3: serio_close(serio); serio 172 drivers/input/joystick/zhenhua.c fail2: serio_set_drvdata(serio, NULL); serio 192 drivers/input/joystick/zhenhua.c MODULE_DEVICE_TABLE(serio, zhenhua_serio_ids); serio 368 drivers/input/keyboard/atkbd.c static irqreturn_t atkbd_interrupt(struct serio *serio, unsigned char data, serio 371 drivers/input/keyboard/atkbd.c struct atkbd *atkbd = serio_get_drvdata(serio); serio 378 drivers/input/keyboard/atkbd.c dev_dbg(&serio->dev, "Received %02x flags %02x\n", data, flags); serio 382 drivers/input/keyboard/atkbd.c dev_warn(&serio->dev, "Frame/parity error: %02x\n", flags); serio 383 drivers/input/keyboard/atkbd.c serio_write(serio, ATKBD_CMD_RESEND); serio 400 drivers/input/keyboard/atkbd.c pm_wakeup_event(&serio->dev, 0); serio 424 drivers/input/keyboard/atkbd.c serio_reconnect(atkbd->ps2dev.serio); serio 438 drivers/input/keyboard/atkbd.c dev_warn(&serio->dev, serio 441 drivers/input/keyboard/atkbd.c data == ATKBD_RET_ACK ? "ACK" : "NAK", serio->phys); serio 445 drivers/input/keyboard/atkbd.c dev_dbg(&serio->dev, "Keyboard on %s reports too many keys pressed.\n", serio 446 drivers/input/keyboard/atkbd.c serio->phys); serio 465 drivers/input/keyboard/atkbd.c dev_warn(&serio->dev, serio 469 drivers/input/keyboard/atkbd.c atkbd->set, code, serio->phys); serio 470 drivers/input/keyboard/atkbd.c dev_warn(&serio->dev, serio 668 drivers/input/keyboard/atkbd.c serio_pause_rx(atkbd->ps2dev.serio); serio 670 drivers/input/keyboard/atkbd.c serio_continue_rx(atkbd->ps2dev.serio); serio 680 drivers/input/keyboard/atkbd.c serio_pause_rx(atkbd->ps2dev.serio); serio 682 drivers/input/keyboard/atkbd.c serio_continue_rx(atkbd->ps2dev.serio); serio 694 drivers/input/keyboard/atkbd.c dev_err(&ps2dev->serio->dev, serio 696 drivers/input/keyboard/atkbd.c ps2dev->serio->phys); serio 713 drivers/input/keyboard/atkbd.c dev_err(&ps2dev->serio->dev, serio 715 drivers/input/keyboard/atkbd.c ps2dev->serio->phys); serio 735 drivers/input/keyboard/atkbd.c dev_warn(&ps2dev->serio->dev, serio 737 drivers/input/keyboard/atkbd.c ps2dev->serio->phys); serio 767 drivers/input/keyboard/atkbd.c dev_err(&ps2dev->serio->dev, serio 879 drivers/input/keyboard/atkbd.c static void atkbd_cleanup(struct serio *serio) serio 881 drivers/input/keyboard/atkbd.c struct atkbd *atkbd = serio_get_drvdata(serio); serio 892 drivers/input/keyboard/atkbd.c static void atkbd_disconnect(struct serio *serio) serio 894 drivers/input/keyboard/atkbd.c struct atkbd *atkbd = serio_get_drvdata(serio); serio 896 drivers/input/keyboard/atkbd.c sysfs_remove_group(&serio->dev.kobj, &atkbd_attribute_group); serio 910 drivers/input/keyboard/atkbd.c serio_close(serio); serio 911 drivers/input/keyboard/atkbd.c serio_set_drvdata(serio, NULL); serio 1069 drivers/input/keyboard/atkbd.c "%s/input0", atkbd->ps2dev.serio->phys); serio 1078 drivers/input/keyboard/atkbd.c input_dev->dev.parent = &atkbd->ps2dev.serio->dev; serio 1131 drivers/input/keyboard/atkbd.c static int atkbd_connect(struct serio *serio, struct serio_driver *drv) serio 1143 drivers/input/keyboard/atkbd.c ps2_init(&atkbd->ps2dev, serio); serio 1147 drivers/input/keyboard/atkbd.c switch (serio->id.type) { serio 1154 drivers/input/keyboard/atkbd.c if (serio->write) serio 1166 drivers/input/keyboard/atkbd.c serio_set_drvdata(serio, atkbd); serio 1168 drivers/input/keyboard/atkbd.c err = serio_open(serio, drv); serio 1190 drivers/input/keyboard/atkbd.c err = sysfs_create_group(&serio->dev.kobj, &atkbd_attribute_group); serio 1195 drivers/input/keyboard/atkbd.c if (serio->write) serio 1204 drivers/input/keyboard/atkbd.c fail4: sysfs_remove_group(&serio->dev.kobj, &atkbd_attribute_group); serio 1205 drivers/input/keyboard/atkbd.c fail3: serio_close(serio); serio 1206 drivers/input/keyboard/atkbd.c fail2: serio_set_drvdata(serio, NULL); serio 1217 drivers/input/keyboard/atkbd.c static int atkbd_reconnect(struct serio *serio) serio 1219 drivers/input/keyboard/atkbd.c struct atkbd *atkbd = serio_get_drvdata(serio); serio 1220 drivers/input/keyboard/atkbd.c struct serio_driver *drv = serio->drv; serio 1224 drivers/input/keyboard/atkbd.c dev_dbg(&serio->dev, serio 1293 drivers/input/keyboard/atkbd.c MODULE_DEVICE_TABLE(serio, atkbd_serio_ids); serio 1311 drivers/input/keyboard/atkbd.c struct serio *serio = to_serio_port(dev); serio 1312 drivers/input/keyboard/atkbd.c struct atkbd *atkbd = serio_get_drvdata(serio); serio 1320 drivers/input/keyboard/atkbd.c struct serio *serio = to_serio_port(dev); serio 1321 drivers/input/keyboard/atkbd.c struct atkbd *atkbd = serio_get_drvdata(serio); serio 71 drivers/input/keyboard/hil_kbd.c struct serio *serio; serio 274 drivers/input/keyboard/hil_kbd.c static irqreturn_t hil_dev_interrupt(struct serio *serio, serio 281 drivers/input/keyboard/hil_kbd.c dev = serio_get_drvdata(serio); serio 314 drivers/input/keyboard/hil_kbd.c static void hil_dev_disconnect(struct serio *serio) serio 316 drivers/input/keyboard/hil_kbd.c struct hil_dev *dev = serio_get_drvdata(serio); serio 320 drivers/input/keyboard/hil_kbd.c serio_close(serio); serio 322 drivers/input/keyboard/hil_kbd.c serio_set_drvdata(serio, NULL); serio 443 drivers/input/keyboard/hil_kbd.c static int hil_dev_connect(struct serio *serio, struct serio_driver *drv) serio 457 drivers/input/keyboard/hil_kbd.c dev->serio = serio; serio 460 drivers/input/keyboard/hil_kbd.c error = serio_open(serio, drv); serio 464 drivers/input/keyboard/hil_kbd.c serio_set_drvdata(serio, dev); serio 468 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 469 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 470 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_PKT_CMD >> 8); serio 471 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_CMD_IDD); serio 477 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 478 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 479 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_PKT_CMD >> 8); serio 480 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_CMD_RSC); serio 486 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 487 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 488 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_PKT_CMD >> 8); serio 489 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_CMD_RNM); serio 495 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 496 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 497 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_PKT_CMD >> 8); serio 498 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_CMD_EXD); serio 536 drivers/input/keyboard/hil_kbd.c input_dev->dev.parent = &serio->dev; serio 539 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 540 drivers/input/keyboard/hil_kbd.c serio_write(serio, 0); serio 541 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_PKT_CMD >> 8); serio 543 drivers/input/keyboard/hil_kbd.c serio_write(serio, HIL_CMD_EK1); serio 554 drivers/input/keyboard/hil_kbd.c serio_close(serio); serio 555 drivers/input/keyboard/hil_kbd.c serio_set_drvdata(serio, NULL); serio 572 drivers/input/keyboard/hil_kbd.c MODULE_DEVICE_TABLE(serio, hil_dev_ids); serio 269 drivers/input/keyboard/lkkbd.c struct serio *serio; serio 426 drivers/input/keyboard/lkkbd.c static irqreturn_t lkkbd_interrupt(struct serio *serio, serio 429 drivers/input/keyboard/lkkbd.c struct lkkbd *lk = serio_get_drvdata(serio); serio 490 drivers/input/keyboard/lkkbd.c struct serio *serio = lk->serio; serio 499 drivers/input/keyboard/lkkbd.c serio_write(serio, LK_CMD_LED_ON); serio 500 drivers/input/keyboard/lkkbd.c serio_write(serio, leds_on); serio 503 drivers/input/keyboard/lkkbd.c serio_write(serio, LK_CMD_LED_OFF); serio 504 drivers/input/keyboard/lkkbd.c serio_write(serio, leds_off); serio 510 drivers/input/keyboard/lkkbd.c struct serio *serio = lk->serio; serio 514 drivers/input/keyboard/lkkbd.c serio_write(serio, LK_CMD_ENABLE_KEYCLICK); serio 515 drivers/input/keyboard/lkkbd.c serio_write(serio, volume_to_hw(lk->keyclick_volume)); serio 516 drivers/input/keyboard/lkkbd.c serio_write(serio, LK_CMD_ENABLE_CTRCLICK); serio 517 drivers/input/keyboard/lkkbd.c serio_write(serio, volume_to_hw(lk->ctrlclick_volume)); serio 520 drivers/input/keyboard/lkkbd.c serio_write(serio, LK_CMD_DISABLE_KEYCLICK); serio 521 drivers/input/keyboard/lkkbd.c serio_write(serio, LK_CMD_DISABLE_CTRCLICK); serio 547 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, LK_CMD_SOUND_BELL); serio 572 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, LK_CMD_REQUEST_ID); serio 575 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, LK_CMD_SET_DEFAULTS); serio 585 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, LK_CMD_ENABLE_LK401); serio 589 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, serio 593 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, LK_CMD_ENABLE_BELL); serio 594 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, volume_to_hw(lk->bell_volume)); serio 601 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, LK_CMD_SOUND_BELL); serio 607 drivers/input/keyboard/lkkbd.c static int lkkbd_connect(struct serio *serio, struct serio_driver *drv) serio 621 drivers/input/keyboard/lkkbd.c lk->serio = serio; serio 630 drivers/input/keyboard/lkkbd.c snprintf(lk->phys, sizeof(lk->phys), "%s/input0", serio->phys); serio 638 drivers/input/keyboard/lkkbd.c input_dev->dev.parent = &serio->dev; serio 662 drivers/input/keyboard/lkkbd.c serio_set_drvdata(serio, lk); serio 664 drivers/input/keyboard/lkkbd.c err = serio_open(serio, drv); serio 672 drivers/input/keyboard/lkkbd.c serio_write(lk->serio, LK_CMD_POWERCYCLE_RESET); serio 676 drivers/input/keyboard/lkkbd.c fail3: serio_close(serio); serio 677 drivers/input/keyboard/lkkbd.c fail2: serio_set_drvdata(serio, NULL); serio 686 drivers/input/keyboard/lkkbd.c static void lkkbd_disconnect(struct serio *serio) serio 688 drivers/input/keyboard/lkkbd.c struct lkkbd *lk = serio_get_drvdata(serio); serio 692 drivers/input/keyboard/lkkbd.c serio_close(serio); serio 693 drivers/input/keyboard/lkkbd.c serio_set_drvdata(serio, NULL); serio 708 drivers/input/keyboard/lkkbd.c MODULE_DEVICE_TABLE(serio, lkkbd_serio_ids); serio 46 drivers/input/keyboard/newtonkbd.c struct serio *serio; serio 50 drivers/input/keyboard/newtonkbd.c static irqreturn_t nkbd_interrupt(struct serio *serio, serio 53 drivers/input/keyboard/newtonkbd.c struct nkbd *nkbd = serio_get_drvdata(serio); serio 62 drivers/input/keyboard/newtonkbd.c printk(KERN_INFO "input: %s on %s\n", nkbd->dev->name, serio->phys); serio 67 drivers/input/keyboard/newtonkbd.c static int nkbd_connect(struct serio *serio, struct serio_driver *drv) serio 79 drivers/input/keyboard/newtonkbd.c nkbd->serio = serio; serio 81 drivers/input/keyboard/newtonkbd.c snprintf(nkbd->phys, sizeof(nkbd->phys), "%s/input0", serio->phys); serio 90 drivers/input/keyboard/newtonkbd.c input_dev->dev.parent = &serio->dev; serio 100 drivers/input/keyboard/newtonkbd.c serio_set_drvdata(serio, nkbd); serio 102 drivers/input/keyboard/newtonkbd.c err = serio_open(serio, drv); serio 112 drivers/input/keyboard/newtonkbd.c fail3: serio_close(serio); serio 113 drivers/input/keyboard/newtonkbd.c fail2: serio_set_drvdata(serio, NULL); serio 119 drivers/input/keyboard/newtonkbd.c static void nkbd_disconnect(struct serio *serio) serio 121 drivers/input/keyboard/newtonkbd.c struct nkbd *nkbd = serio_get_drvdata(serio); serio 123 drivers/input/keyboard/newtonkbd.c serio_close(serio); serio 124 drivers/input/keyboard/newtonkbd.c serio_set_drvdata(serio, NULL); serio 139 drivers/input/keyboard/newtonkbd.c MODULE_DEVICE_TABLE(serio, nkbd_serio_ids); serio 52 drivers/input/keyboard/stowaway.c struct serio *serio; serio 56 drivers/input/keyboard/stowaway.c static irqreturn_t skbd_interrupt(struct serio *serio, unsigned char data, serio 59 drivers/input/keyboard/stowaway.c struct skbd *skbd = serio_get_drvdata(serio); serio 71 drivers/input/keyboard/stowaway.c static int skbd_connect(struct serio *serio, struct serio_driver *drv) serio 83 drivers/input/keyboard/stowaway.c skbd->serio = serio; serio 85 drivers/input/keyboard/stowaway.c snprintf(skbd->phys, sizeof(skbd->phys), "%s/input0", serio->phys); serio 94 drivers/input/keyboard/stowaway.c input_dev->dev.parent = &serio->dev; serio 104 drivers/input/keyboard/stowaway.c serio_set_drvdata(serio, skbd); serio 106 drivers/input/keyboard/stowaway.c err = serio_open(serio, drv); serio 116 drivers/input/keyboard/stowaway.c fail3: serio_close(serio); serio 117 drivers/input/keyboard/stowaway.c fail2: serio_set_drvdata(serio, NULL); serio 123 drivers/input/keyboard/stowaway.c static void skbd_disconnect(struct serio *serio) serio 125 drivers/input/keyboard/stowaway.c struct skbd *skbd = serio_get_drvdata(serio); serio 127 drivers/input/keyboard/stowaway.c serio_close(serio); serio 128 drivers/input/keyboard/stowaway.c serio_set_drvdata(serio, NULL); serio 143 drivers/input/keyboard/stowaway.c MODULE_DEVICE_TABLE(serio, skbd_serio_ids); serio 62 drivers/input/keyboard/sunkbd.c struct serio *serio; serio 78 drivers/input/keyboard/sunkbd.c static irqreturn_t sunkbd_interrupt(struct serio *serio, serio 81 drivers/input/keyboard/sunkbd.c struct sunkbd *sunkbd = serio_get_drvdata(serio); serio 146 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, SUNKBD_CMD_SETLED); serio 147 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, serio 159 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, SUNKBD_CMD_NOCLICK - value); serio 163 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, SUNKBD_CMD_BELLOFF - value); serio 181 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, SUNKBD_CMD_RESET); serio 190 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, SUNKBD_CMD_LAYOUT); serio 213 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, SUNKBD_CMD_SETLED); serio 214 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, serio 219 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, serio 221 drivers/input/keyboard/sunkbd.c serio_write(sunkbd->serio, serio 227 drivers/input/keyboard/sunkbd.c serio_pause_rx(sunkbd->serio); serio 229 drivers/input/keyboard/sunkbd.c serio_continue_rx(sunkbd->serio); serio 237 drivers/input/keyboard/sunkbd.c static int sunkbd_connect(struct serio *serio, struct serio_driver *drv) serio 249 drivers/input/keyboard/sunkbd.c sunkbd->serio = serio; serio 253 drivers/input/keyboard/sunkbd.c snprintf(sunkbd->phys, sizeof(sunkbd->phys), "%s/input0", serio->phys); serio 255 drivers/input/keyboard/sunkbd.c serio_set_drvdata(serio, sunkbd); serio 257 drivers/input/keyboard/sunkbd.c err = serio_open(serio, drv); serio 276 drivers/input/keyboard/sunkbd.c input_dev->dev.parent = &serio->dev; serio 304 drivers/input/keyboard/sunkbd.c fail3: serio_close(serio); serio 305 drivers/input/keyboard/sunkbd.c fail2: serio_set_drvdata(serio, NULL); serio 315 drivers/input/keyboard/sunkbd.c static void sunkbd_disconnect(struct serio *serio) serio 317 drivers/input/keyboard/sunkbd.c struct sunkbd *sunkbd = serio_get_drvdata(serio); serio 321 drivers/input/keyboard/sunkbd.c serio_close(serio); serio 322 drivers/input/keyboard/sunkbd.c serio_set_drvdata(serio, NULL); serio 342 drivers/input/keyboard/sunkbd.c MODULE_DEVICE_TABLE(serio, sunkbd_serio_ids); serio 43 drivers/input/keyboard/xtkbd.c struct serio *serio; serio 47 drivers/input/keyboard/xtkbd.c static irqreturn_t xtkbd_interrupt(struct serio *serio, serio 50 drivers/input/keyboard/xtkbd.c struct xtkbd *xtkbd = serio_get_drvdata(serio); serio 69 drivers/input/keyboard/xtkbd.c static int xtkbd_connect(struct serio *serio, struct serio_driver *drv) serio 81 drivers/input/keyboard/xtkbd.c xtkbd->serio = serio; serio 83 drivers/input/keyboard/xtkbd.c snprintf(xtkbd->phys, sizeof(xtkbd->phys), "%s/input0", serio->phys); serio 92 drivers/input/keyboard/xtkbd.c input_dev->dev.parent = &serio->dev; serio 103 drivers/input/keyboard/xtkbd.c serio_set_drvdata(serio, xtkbd); serio 105 drivers/input/keyboard/xtkbd.c err = serio_open(serio, drv); serio 115 drivers/input/keyboard/xtkbd.c fail3: serio_close(serio); serio 116 drivers/input/keyboard/xtkbd.c fail2: serio_set_drvdata(serio, NULL); serio 122 drivers/input/keyboard/xtkbd.c static void xtkbd_disconnect(struct serio *serio) serio 124 drivers/input/keyboard/xtkbd.c struct xtkbd *xtkbd = serio_get_drvdata(serio); serio 126 drivers/input/keyboard/xtkbd.c serio_close(serio); serio 127 drivers/input/keyboard/xtkbd.c serio_set_drvdata(serio, NULL); serio 142 drivers/input/keyboard/xtkbd.c MODULE_DEVICE_TABLE(serio, xtkbd_serio_ids); serio 136 drivers/input/misc/ideapad_slidebar.c struct serio *port) serio 1420 drivers/input/mouse/alps.c psmouse->ps2dev.serio->phys, serio 1434 drivers/input/mouse/alps.c dev3->dev.parent = &psmouse->ps2dev.serio->dev; serio 1582 drivers/input/mouse/alps.c serio_pause_rx(psmouse->ps2dev.serio); serio 1603 drivers/input/mouse/alps.c serio_continue_rx(psmouse->ps2dev.serio); serio 3103 drivers/input/mouse/alps.c psmouse->ps2dev.serio->phys); serio 3116 drivers/input/mouse/alps.c dev2->dev.parent = &psmouse->ps2dev.serio->dev; serio 257 drivers/input/mouse/byd.c serio_pause_rx(psmouse->ps2dev.serio); serio 262 drivers/input/mouse/byd.c serio_continue_rx(psmouse->ps2dev.serio); serio 1418 drivers/input/mouse/elantech.c sysfs_remove_group(&psmouse->ps2dev.serio->dev.kobj, serio 1957 drivers/input/mouse/elantech.c error = sysfs_create_group(&psmouse->ps2dev.serio->dev.kobj, serio 1976 drivers/input/mouse/elantech.c psmouse->ps2dev.serio->phys); serio 1983 drivers/input/mouse/elantech.c tp_dev->dev.parent = &psmouse->ps2dev.serio->dev; serio 2008 drivers/input/mouse/elantech.c sysfs_remove_group(&psmouse->ps2dev.serio->dev.kobj, serio 761 drivers/input/mouse/hgpk.c if (psmouse->ps2dev.serio->dev.power.power_state.event != serio 901 drivers/input/mouse/hgpk.c device_remove_file(&psmouse->ps2dev.serio->dev, serio 903 drivers/input/mouse/hgpk.c device_remove_file(&psmouse->ps2dev.serio->dev, serio 907 drivers/input/mouse/hgpk.c device_remove_file(&psmouse->ps2dev.serio->dev, serio 942 drivers/input/mouse/hgpk.c err = device_create_file(&psmouse->ps2dev.serio->dev, serio 949 drivers/input/mouse/hgpk.c err = device_create_file(&psmouse->ps2dev.serio->dev, serio 959 drivers/input/mouse/hgpk.c err = device_create_file(&psmouse->ps2dev.serio->dev, serio 971 drivers/input/mouse/hgpk.c device_remove_file(&psmouse->ps2dev.serio->dev, serio 974 drivers/input/mouse/hgpk.c device_remove_file(&psmouse->ps2dev.serio->dev, serio 259 drivers/input/mouse/lifebook.c strcmp(psmouse->ps2dev.serio->phys, desired_serio_phys)) serio 283 drivers/input/mouse/lifebook.c "%s/input1", psmouse->ps2dev.serio->phys); serio 291 drivers/input/mouse/lifebook.c dev2->dev.parent = &psmouse->ps2dev.serio->dev; serio 203 drivers/input/mouse/logips2pp.c device_remove_file(&psmouse->ps2dev.serio->dev, serio 338 drivers/input/mouse/logips2pp.c error = device_create_file(&psmouse->ps2dev.serio->dev, serio 263 drivers/input/mouse/psmouse-base.c serio_pause_rx(psmouse->ps2dev.serio); serio 265 drivers/input/mouse/psmouse-base.c serio_continue_rx(psmouse->ps2dev.serio); serio 287 drivers/input/mouse/psmouse-base.c serio_reconnect(psmouse->ps2dev.serio); serio 338 drivers/input/mouse/psmouse-base.c static irqreturn_t psmouse_interrupt(struct serio *serio, serio 341 drivers/input/mouse/psmouse-base.c struct psmouse *psmouse = serio_get_drvdata(serio); serio 372 drivers/input/mouse/psmouse-base.c pm_wakeup_event(&serio->dev, 0); serio 400 drivers/input/mouse/psmouse-base.c serio_reconnect(serio); serio 517 drivers/input/mouse/psmouse-base.c struct serio *serio = psmouse->ps2dev.serio; serio 521 drivers/input/mouse/psmouse-base.c if (strncmp(serio->firmware_id, "PNP: ", 5)) serio 524 drivers/input/mouse/psmouse-base.c fw_id_copy = kstrndup(&serio->firmware_id[5], serio 525 drivers/input/mouse/psmouse-base.c sizeof(serio->firmware_id) - 5, serio 1001 drivers/input/mouse/psmouse-base.c if (psmouse->ps2dev.serio->id.type == SERIO_PS_PSTHRU && serio 1277 drivers/input/mouse/psmouse-base.c ps2dev->serio->phys, error); serio 1304 drivers/input/mouse/psmouse-base.c psmouse->ps2dev.serio->phys); serio 1323 drivers/input/mouse/psmouse-base.c psmouse->ps2dev.serio->phys, error); serio 1338 drivers/input/mouse/psmouse-base.c struct serio *serio = psmouse->ps2dev.serio; serio 1348 drivers/input/mouse/psmouse-base.c if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { serio 1349 drivers/input/mouse/psmouse-base.c parent = serio_get_drvdata(serio->parent); serio 1410 drivers/input/mouse/psmouse-base.c psmouse->ps2dev.serio->phys); serio 1418 drivers/input/mouse/psmouse-base.c serio_reconnect(serio); serio 1431 drivers/input/mouse/psmouse-base.c static void psmouse_cleanup(struct serio *serio) serio 1433 drivers/input/mouse/psmouse-base.c struct psmouse *psmouse = serio_get_drvdata(serio); serio 1438 drivers/input/mouse/psmouse-base.c if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { serio 1439 drivers/input/mouse/psmouse-base.c parent = serio_get_drvdata(serio->parent); serio 1450 drivers/input/mouse/psmouse-base.c psmouse->ps2dev.serio->phys); serio 1479 drivers/input/mouse/psmouse-base.c static void psmouse_disconnect(struct serio *serio) serio 1481 drivers/input/mouse/psmouse-base.c struct psmouse *psmouse = serio_get_drvdata(serio); serio 1484 drivers/input/mouse/psmouse-base.c sysfs_remove_group(&serio->dev.kobj, &psmouse_attribute_group); serio 1495 drivers/input/mouse/psmouse-base.c if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { serio 1496 drivers/input/mouse/psmouse-base.c parent = serio_get_drvdata(serio->parent); serio 1508 drivers/input/mouse/psmouse-base.c serio_close(serio); serio 1509 drivers/input/mouse/psmouse-base.c serio_set_drvdata(serio, NULL); serio 1529 drivers/input/mouse/psmouse-base.c input_dev->dev.parent = &psmouse->ps2dev.serio->dev; serio 1582 drivers/input/mouse/psmouse-base.c static int psmouse_connect(struct serio *serio, struct serio_driver *drv) serio 1594 drivers/input/mouse/psmouse-base.c if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { serio 1595 drivers/input/mouse/psmouse-base.c parent = serio_get_drvdata(serio->parent); serio 1604 drivers/input/mouse/psmouse-base.c ps2_init(&psmouse->ps2dev, serio); serio 1607 drivers/input/mouse/psmouse-base.c snprintf(psmouse->phys, sizeof(psmouse->phys), "%s/input0", serio->phys); serio 1611 drivers/input/mouse/psmouse-base.c serio_set_drvdata(serio, psmouse); serio 1613 drivers/input/mouse/psmouse-base.c error = serio_open(serio, drv); serio 1618 drivers/input/mouse/psmouse-base.c if (serio->id.type == SERIO_PS_PSTHRU) serio 1650 drivers/input/mouse/psmouse-base.c error = sysfs_create_group(&serio->dev.kobj, &psmouse_attribute_group); serio 1681 drivers/input/mouse/psmouse-base.c serio_close(serio); serio 1683 drivers/input/mouse/psmouse-base.c serio_set_drvdata(serio, NULL); serio 1692 drivers/input/mouse/psmouse-base.c static int __psmouse_reconnect(struct serio *serio, bool fast_reconnect) serio 1694 drivers/input/mouse/psmouse-base.c struct psmouse *psmouse = serio_get_drvdata(serio); serio 1712 drivers/input/mouse/psmouse-base.c if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { serio 1713 drivers/input/mouse/psmouse-base.c parent = serio_get_drvdata(serio->parent); serio 1764 drivers/input/mouse/psmouse-base.c static int psmouse_reconnect(struct serio *serio) serio 1766 drivers/input/mouse/psmouse-base.c return __psmouse_reconnect(serio, false); serio 1769 drivers/input/mouse/psmouse-base.c static int psmouse_fast_reconnect(struct serio *serio) serio 1771 drivers/input/mouse/psmouse-base.c return __psmouse_reconnect(serio, true); serio 1790 drivers/input/mouse/psmouse-base.c MODULE_DEVICE_TABLE(serio, psmouse_serio_ids); serio 1809 drivers/input/mouse/psmouse-base.c struct serio *serio = to_serio_port(dev); serio 1811 drivers/input/mouse/psmouse-base.c struct psmouse *psmouse = serio_get_drvdata(serio); serio 1823 drivers/input/mouse/psmouse-base.c struct serio *serio = to_serio_port(dev); serio 1832 drivers/input/mouse/psmouse-base.c psmouse = serio_get_drvdata(serio); serio 1846 drivers/input/mouse/psmouse-base.c if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { serio 1847 drivers/input/mouse/psmouse-base.c parent = serio_get_drvdata(serio->parent); serio 1900 drivers/input/mouse/psmouse-base.c struct serio *serio = psmouse->ps2dev.serio; serio 1918 drivers/input/mouse/psmouse-base.c while (!list_empty(&serio->children)) { serio 1927 drivers/input/mouse/psmouse-base.c serio_unregister_child_port(serio); serio 1930 drivers/input/mouse/psmouse-base.c if (serio->drv != &psmouse_drv) { serio 1941 drivers/input/mouse/psmouse-base.c if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) { serio 1942 drivers/input/mouse/psmouse-base.c parent = serio_get_drvdata(serio->parent); serio 54 drivers/input/mouse/psmouse-smbus.c serio_rescan(smbdev->psmouse->ps2dev.serio); serio 78 drivers/input/mouse/psmouse-smbus.c serio_rescan(smbdev->psmouse->ps2dev.serio); serio 199 drivers/input/mouse/psmouse.h dev_dbg(&(psmouse)->ps2dev.serio->dev, \ serio 202 drivers/input/mouse/psmouse.h dev_info(&(psmouse)->ps2dev.serio->dev, \ serio 205 drivers/input/mouse/psmouse.h dev_warn(&(psmouse)->ps2dev.serio->dev, \ serio 208 drivers/input/mouse/psmouse.h dev_err(&(psmouse)->ps2dev.serio->dev, \ serio 211 drivers/input/mouse/psmouse.h dev_notice(&(psmouse)->ps2dev.serio->dev, \ serio 215 drivers/input/mouse/psmouse.h &(psmouse)->ps2dev.serio->dev, \ serio 989 drivers/input/mouse/sentelic.c sysfs_remove_group(&psmouse->ps2dev.serio->dev.kobj, serio 1053 drivers/input/mouse/sentelic.c error = sysfs_create_group(&psmouse->ps2dev.serio->dev.kobj, serio 192 drivers/input/mouse/sermouse.c static irqreturn_t sermouse_interrupt(struct serio *serio, serio 195 drivers/input/mouse/sermouse.c struct sermouse *sermouse = serio_get_drvdata(serio); serio 215 drivers/input/mouse/sermouse.c static void sermouse_disconnect(struct serio *serio) serio 217 drivers/input/mouse/sermouse.c struct sermouse *sermouse = serio_get_drvdata(serio); serio 219 drivers/input/mouse/sermouse.c serio_close(serio); serio 220 drivers/input/mouse/sermouse.c serio_set_drvdata(serio, NULL); serio 230 drivers/input/mouse/sermouse.c static int sermouse_connect(struct serio *serio, struct serio_driver *drv) serio 234 drivers/input/mouse/sermouse.c unsigned char c = serio->id.extra; serio 243 drivers/input/mouse/sermouse.c snprintf(sermouse->phys, sizeof(sermouse->phys), "%s/input0", serio->phys); serio 244 drivers/input/mouse/sermouse.c sermouse->type = serio->id.proto; serio 252 drivers/input/mouse/sermouse.c input_dev->dev.parent = &serio->dev; serio 265 drivers/input/mouse/sermouse.c serio_set_drvdata(serio, sermouse); serio 267 drivers/input/mouse/sermouse.c err = serio_open(serio, drv); serio 277 drivers/input/mouse/sermouse.c fail3: serio_close(serio); serio 278 drivers/input/mouse/sermouse.c fail2: serio_set_drvdata(serio, NULL); serio 330 drivers/input/mouse/sermouse.c MODULE_DEVICE_TABLE(serio, sermouse_serio_ids); serio 625 drivers/input/mouse/synaptics.c static int synaptics_pt_write(struct serio *serio, u8 c) serio 627 drivers/input/mouse/synaptics.c struct psmouse *parent = serio_get_drvdata(serio->parent); serio 642 drivers/input/mouse/synaptics.c static int synaptics_pt_start(struct serio *serio) serio 644 drivers/input/mouse/synaptics.c struct psmouse *parent = serio_get_drvdata(serio->parent); serio 647 drivers/input/mouse/synaptics.c serio_pause_rx(parent->ps2dev.serio); serio 648 drivers/input/mouse/synaptics.c priv->pt_port = serio; serio 649 drivers/input/mouse/synaptics.c serio_continue_rx(parent->ps2dev.serio); serio 654 drivers/input/mouse/synaptics.c static void synaptics_pt_stop(struct serio *serio) serio 656 drivers/input/mouse/synaptics.c struct psmouse *parent = serio_get_drvdata(serio->parent); serio 659 drivers/input/mouse/synaptics.c serio_pause_rx(parent->ps2dev.serio); serio 661 drivers/input/mouse/synaptics.c serio_continue_rx(parent->ps2dev.serio); serio 669 drivers/input/mouse/synaptics.c static void synaptics_pass_pt_packet(struct serio *ptport, u8 *packet) serio 704 drivers/input/mouse/synaptics.c struct serio *serio; serio 706 drivers/input/mouse/synaptics.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 707 drivers/input/mouse/synaptics.c if (!serio) { serio 713 drivers/input/mouse/synaptics.c serio->id.type = SERIO_PS_PSTHRU; serio 714 drivers/input/mouse/synaptics.c strlcpy(serio->name, "Synaptics pass-through", sizeof(serio->name)); serio 715 drivers/input/mouse/synaptics.c strlcpy(serio->phys, "synaptics-pt/serio0", sizeof(serio->phys)); serio 716 drivers/input/mouse/synaptics.c serio->write = synaptics_pt_write; serio 717 drivers/input/mouse/synaptics.c serio->start = synaptics_pt_start; serio 718 drivers/input/mouse/synaptics.c serio->stop = synaptics_pt_stop; serio 719 drivers/input/mouse/synaptics.c serio->parent = psmouse->ps2dev.serio; serio 724 drivers/input/mouse/synaptics.c serio->name, psmouse->phys); serio 725 drivers/input/mouse/synaptics.c serio_register_port(serio); serio 1409 drivers/input/mouse/synaptics.c device_remove_file(&psmouse->ps2dev.serio->dev, serio 1639 drivers/input/mouse/synaptics.c err = device_create_file(&psmouse->ps2dev.serio->dev, serio 1791 drivers/input/mouse/synaptics.c psmouse->ps2dev.serio->firmware_id); serio 190 drivers/input/mouse/synaptics.h struct serio *pt_port; /* Pass-through serio port */ serio 216 drivers/input/mouse/trackpoint.c struct serio *serio = to_serio_port(dev); serio 217 drivers/input/mouse/trackpoint.c struct psmouse *psmouse = serio_get_drvdata(serio); serio 365 drivers/input/mouse/trackpoint.c device_remove_group(&psmouse->ps2dev.serio->dev, serio 454 drivers/input/mouse/trackpoint.c error = device_add_group(&ps2dev->serio->dev, &trackpoint_attr_group); serio 443 drivers/input/mouse/vmmouse.c psmouse->ps2dev.serio->phys); serio 454 drivers/input/mouse/vmmouse.c abs_dev->dev.parent = &psmouse->ps2dev.serio->dev; serio 103 drivers/input/mouse/vsxxxaa.c struct serio *serio; serio 368 drivers/input/mouse/vsxxxaa.c serio_write(mouse->serio, 'S'); /* Standard format */ serio 370 drivers/input/mouse/vsxxxaa.c serio_write(mouse->serio, 'R'); /* Incremental */ serio 372 drivers/input/mouse/vsxxxaa.c serio_write(mouse->serio, 'L'); /* 72 samples/sec */ serio 435 drivers/input/mouse/vsxxxaa.c static irqreturn_t vsxxxaa_interrupt(struct serio *serio, serio 438 drivers/input/mouse/vsxxxaa.c struct vsxxxaa *mouse = serio_get_drvdata(serio); serio 446 drivers/input/mouse/vsxxxaa.c static void vsxxxaa_disconnect(struct serio *serio) serio 448 drivers/input/mouse/vsxxxaa.c struct vsxxxaa *mouse = serio_get_drvdata(serio); serio 450 drivers/input/mouse/vsxxxaa.c serio_close(serio); serio 451 drivers/input/mouse/vsxxxaa.c serio_set_drvdata(serio, NULL); serio 456 drivers/input/mouse/vsxxxaa.c static int vsxxxaa_connect(struct serio *serio, struct serio_driver *drv) serio 468 drivers/input/mouse/vsxxxaa.c mouse->serio = serio; serio 471 drivers/input/mouse/vsxxxaa.c snprintf(mouse->phys, sizeof(mouse->phys), "%s/input0", serio->phys); serio 476 drivers/input/mouse/vsxxxaa.c input_dev->dev.parent = &serio->dev; serio 490 drivers/input/mouse/vsxxxaa.c serio_set_drvdata(serio, mouse); serio 492 drivers/input/mouse/vsxxxaa.c err = serio_open(serio, drv); serio 500 drivers/input/mouse/vsxxxaa.c serio_write(serio, 'T'); /* Test */ serio 508 drivers/input/mouse/vsxxxaa.c fail3: serio_close(serio); serio 509 drivers/input/mouse/vsxxxaa.c fail2: serio_set_drvdata(serio, NULL); serio 525 drivers/input/mouse/vsxxxaa.c MODULE_DEVICE_TABLE(serio, vsxxaa_serio_ids); serio 31 drivers/input/rmi4/rmi_f03.c struct serio *serio; serio 62 drivers/input/rmi4/rmi_f03.c struct serio *serio = f03->serio; serio 64 drivers/input/rmi4/rmi_f03.c serio_pause_rx(serio); serio 65 drivers/input/rmi4/rmi_f03.c if (serio->drv) { serio 66 drivers/input/rmi4/rmi_f03.c serio->drv->interrupt(serio, PSMOUSE_OOB_EXTRA_BTNS, serio 68 drivers/input/rmi4/rmi_f03.c serio->drv->interrupt(serio, f03->overwrite_buttons, serio 71 drivers/input/rmi4/rmi_f03.c serio_continue_rx(serio); serio 74 drivers/input/rmi4/rmi_f03.c static int rmi_f03_pt_write(struct serio *id, unsigned char val) serio 139 drivers/input/rmi4/rmi_f03.c static int rmi_f03_pt_open(struct serio *serio) serio 141 drivers/input/rmi4/rmi_f03.c struct f03_data *f03 = serio->port_data; serio 162 drivers/input/rmi4/rmi_f03.c static void rmi_f03_pt_close(struct serio *serio) serio 164 drivers/input/rmi4/rmi_f03.c struct f03_data *f03 = serio->port_data; serio 172 drivers/input/rmi4/rmi_f03.c struct serio *serio; serio 174 drivers/input/rmi4/rmi_f03.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 175 drivers/input/rmi4/rmi_f03.c if (!serio) serio 178 drivers/input/rmi4/rmi_f03.c serio->id.type = SERIO_PS_PSTHRU; serio 179 drivers/input/rmi4/rmi_f03.c serio->write = rmi_f03_pt_write; serio 180 drivers/input/rmi4/rmi_f03.c serio->open = rmi_f03_pt_open; serio 181 drivers/input/rmi4/rmi_f03.c serio->close = rmi_f03_pt_close; serio 182 drivers/input/rmi4/rmi_f03.c serio->port_data = f03; serio 184 drivers/input/rmi4/rmi_f03.c strlcpy(serio->name, "RMI4 PS/2 pass-through", sizeof(serio->name)); serio 185 drivers/input/rmi4/rmi_f03.c snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", serio 187 drivers/input/rmi4/rmi_f03.c serio->dev.parent = &f03->fn->dev; serio 189 drivers/input/rmi4/rmi_f03.c f03->serio = serio; serio 192 drivers/input/rmi4/rmi_f03.c serio->name, dev_name(&f03->fn->dev)); serio 193 drivers/input/rmi4/rmi_f03.c serio_register_port(serio); serio 277 drivers/input/rmi4/rmi_f03.c serio_interrupt(f03->serio, 0, SERIO_TIMEOUT); serio 301 drivers/input/rmi4/rmi_f03.c serio_interrupt(f03->serio, ob_data, serio_flags); serio 312 drivers/input/rmi4/rmi_f03.c serio_unregister_port(f03->serio); serio 23 drivers/input/serio/altera_ps2.c struct serio *io; serio 48 drivers/input/serio/altera_ps2.c static int altera_ps2_write(struct serio *io, unsigned char val) serio 56 drivers/input/serio/altera_ps2.c static int altera_ps2_open(struct serio *io) serio 68 drivers/input/serio/altera_ps2.c static void altera_ps2_close(struct serio *io) serio 82 drivers/input/serio/altera_ps2.c struct serio *serio; serio 105 drivers/input/serio/altera_ps2.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 106 drivers/input/serio/altera_ps2.c if (!serio) serio 109 drivers/input/serio/altera_ps2.c serio->id.type = SERIO_8042; serio 110 drivers/input/serio/altera_ps2.c serio->write = altera_ps2_write; serio 111 drivers/input/serio/altera_ps2.c serio->open = altera_ps2_open; serio 112 drivers/input/serio/altera_ps2.c serio->close = altera_ps2_close; serio 113 drivers/input/serio/altera_ps2.c strlcpy(serio->name, dev_name(&pdev->dev), sizeof(serio->name)); serio 114 drivers/input/serio/altera_ps2.c strlcpy(serio->phys, dev_name(&pdev->dev), sizeof(serio->phys)); serio 115 drivers/input/serio/altera_ps2.c serio->port_data = ps2if; serio 116 drivers/input/serio/altera_ps2.c serio->dev.parent = &pdev->dev; serio 117 drivers/input/serio/altera_ps2.c ps2if->io = serio; serio 27 drivers/input/serio/ambakmi.c struct serio *io; serio 50 drivers/input/serio/ambakmi.c static int amba_kmi_write(struct serio *io, unsigned char val) serio 64 drivers/input/serio/ambakmi.c static int amba_kmi_open(struct serio *io) serio 96 drivers/input/serio/ambakmi.c static void amba_kmi_close(struct serio *io) serio 110 drivers/input/serio/ambakmi.c struct serio *io; serio 118 drivers/input/serio/ambakmi.c io = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 35 drivers/input/serio/ams_delta_serio.c struct serio *serio; serio 40 drivers/input/serio/ams_delta_serio.c static int check_data(struct serio *serio, int data) serio 46 drivers/input/serio/ams_delta_serio.c dev_warn(&serio->dev, "invalid stop bit, data=0x%X\n", data); serio 56 drivers/input/serio/ams_delta_serio.c dev_warn(&serio->dev, serio 85 drivers/input/serio/ams_delta_serio.c dfl = check_data(priv->serio, data); serio 87 drivers/input/serio/ams_delta_serio.c serio_interrupt(priv->serio, scancode, dfl); serio 92 drivers/input/serio/ams_delta_serio.c static int ams_delta_serio_open(struct serio *serio) serio 94 drivers/input/serio/ams_delta_serio.c struct ams_delta_serio *priv = serio->port_data; serio 100 drivers/input/serio/ams_delta_serio.c static void ams_delta_serio_close(struct serio *serio) serio 102 drivers/input/serio/ams_delta_serio.c struct ams_delta_serio *priv = serio->port_data; serio 111 drivers/input/serio/ams_delta_serio.c struct serio *serio; serio 153 drivers/input/serio/ams_delta_serio.c serio = kzalloc(sizeof(*serio), GFP_KERNEL); serio 154 drivers/input/serio/ams_delta_serio.c if (!serio) serio 157 drivers/input/serio/ams_delta_serio.c priv->serio = serio; serio 159 drivers/input/serio/ams_delta_serio.c serio->id.type = SERIO_8042; serio 160 drivers/input/serio/ams_delta_serio.c serio->open = ams_delta_serio_open; serio 161 drivers/input/serio/ams_delta_serio.c serio->close = ams_delta_serio_close; serio 162 drivers/input/serio/ams_delta_serio.c strlcpy(serio->name, "AMS DELTA keyboard adapter", sizeof(serio->name)); serio 163 drivers/input/serio/ams_delta_serio.c strlcpy(serio->phys, dev_name(&pdev->dev), sizeof(serio->phys)); serio 164 drivers/input/serio/ams_delta_serio.c serio->dev.parent = &pdev->dev; serio 165 drivers/input/serio/ams_delta_serio.c serio->port_data = priv; serio 167 drivers/input/serio/ams_delta_serio.c serio_register_port(serio); serio 171 drivers/input/serio/ams_delta_serio.c dev_info(&serio->dev, "%s\n", serio->name); serio 180 drivers/input/serio/ams_delta_serio.c serio_unregister_port(priv->serio); serio 53 drivers/input/serio/apbps2.c struct serio *io; serio 82 drivers/input/serio/apbps2.c static int apbps2_write(struct serio *io, unsigned char val) serio 102 drivers/input/serio/apbps2.c static int apbps2_open(struct serio *io) serio 122 drivers/input/serio/apbps2.c static void apbps2_close(struct serio *io) serio 171 drivers/input/serio/apbps2.c priv->io = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 35 drivers/input/serio/arc_ps2.c struct serio *io; serio 87 drivers/input/serio/arc_ps2.c static int arc_ps2_write(struct serio *io, unsigned char val) serio 108 drivers/input/serio/arc_ps2.c static int arc_ps2_open(struct serio *io) serio 117 drivers/input/serio/arc_ps2.c static void arc_ps2_close(struct serio *io) serio 156 drivers/input/serio/arc_ps2.c struct serio *io; serio 158 drivers/input/serio/arc_ps2.c io = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 48 drivers/input/serio/ct82c710.c static struct serio *ct82c710_port; serio 82 drivers/input/serio/ct82c710.c static void ct82c710_close(struct serio *serio) serio 95 drivers/input/serio/ct82c710.c static int ct82c710_open(struct serio *serio) serio 130 drivers/input/serio/ct82c710.c static int ct82c710_write(struct serio *port, unsigned char c) serio 164 drivers/input/serio/ct82c710.c ct82c710_port = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 92 drivers/input/serio/gscps2.c struct serio *port; serio 282 drivers/input/serio/gscps2.c static int gscps2_write(struct serio *port, unsigned char data) serio 298 drivers/input/serio/gscps2.c static int gscps2_open(struct serio *port) serio 316 drivers/input/serio/gscps2.c static void gscps2_close(struct serio *port) serio 330 drivers/input/serio/gscps2.c struct serio *serio; serio 342 drivers/input/serio/gscps2.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 343 drivers/input/serio/gscps2.c if (!ps2port || !serio) { serio 350 drivers/input/serio/gscps2.c ps2port->port = serio; serio 358 drivers/input/serio/gscps2.c snprintf(serio->name, sizeof(serio->name), "gsc-ps2-%s", serio 360 drivers/input/serio/gscps2.c strlcpy(serio->phys, dev_name(&dev->dev), sizeof(serio->phys)); serio 361 drivers/input/serio/gscps2.c serio->id.type = SERIO_8042; serio 362 drivers/input/serio/gscps2.c serio->write = gscps2_write; serio 363 drivers/input/serio/gscps2.c serio->open = gscps2_open; serio 364 drivers/input/serio/gscps2.c serio->close = gscps2_close; serio 365 drivers/input/serio/gscps2.c serio->port_data = ps2port; serio 366 drivers/input/serio/gscps2.c serio->dev.parent = &dev->dev; serio 405 drivers/input/serio/gscps2.c kfree(serio); serio 167 drivers/input/serio/hil_mlc.c struct serio *serio; serio 172 drivers/input/serio/hil_mlc.c serio = did ? mlc->serio[mlc->di_map[did - 1]] : NULL; serio 173 drivers/input/serio/hil_mlc.c drv = (serio != NULL) ? serio->drv : NULL; serio 181 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); serio 182 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_ERR_INT >> 16, 0); serio 183 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_PKT_CMD >> 8, 0); serio 184 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_CMD_POL + cnt, 0); serio 188 drivers/input/serio/hil_mlc.c serio = did ? mlc->serio[mlc->di_map[did-1]] : NULL; serio 189 drivers/input/serio/hil_mlc.c drv = (serio != NULL) ? serio->drv : NULL; serio 197 drivers/input/serio/hil_mlc.c drv->interrupt(serio, (p >> 24), 0); serio 198 drivers/input/serio/hil_mlc.c drv->interrupt(serio, (p >> 16) & 0xff, 0); serio 199 drivers/input/serio/hil_mlc.c drv->interrupt(serio, (p >> 8) & ~HIL_PKT_ADDR_MASK, 0); serio 200 drivers/input/serio/hil_mlc.c drv->interrupt(serio, p & 0xff, 0); serio 257 drivers/input/serio/hil_mlc.c serio_rescan(mlc->serio[rc]); serio 792 drivers/input/serio/hil_mlc.c static int hil_mlc_serio_write(struct serio *serio, unsigned char c) serio 799 drivers/input/serio/hil_mlc.c map = serio->port_data; serio 835 drivers/input/serio/hil_mlc.c drv = serio->drv; serio 843 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); serio 844 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_ERR_INT >> 16, 0); serio 845 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); serio 846 drivers/input/serio/hil_mlc.c drv->interrupt(serio, *idx, 0); serio 849 drivers/input/serio/hil_mlc.c drv->interrupt(serio, 0, 0); serio 850 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_ERR_INT >> 16, 0); serio 851 drivers/input/serio/hil_mlc.c drv->interrupt(serio, HIL_PKT_CMD >> 8, 0); serio 852 drivers/input/serio/hil_mlc.c drv->interrupt(serio, *idx, 0); serio 860 drivers/input/serio/hil_mlc.c static int hil_mlc_serio_open(struct serio *serio) serio 865 drivers/input/serio/hil_mlc.c if (serio_get_drvdata(serio) != NULL) serio 868 drivers/input/serio/hil_mlc.c map = serio->port_data; serio 877 drivers/input/serio/hil_mlc.c static void hil_mlc_serio_close(struct serio *serio) serio 882 drivers/input/serio/hil_mlc.c map = serio->port_data; serio 888 drivers/input/serio/hil_mlc.c serio_set_drvdata(serio, NULL); serio 889 drivers/input/serio/hil_mlc.c serio->drv = NULL; serio 924 drivers/input/serio/hil_mlc.c struct serio *mlc_serio; serio 927 drivers/input/serio/hil_mlc.c mlc->serio[i] = mlc_serio; serio 928 drivers/input/serio/hil_mlc.c if (!mlc->serio[i]) { serio 930 drivers/input/serio/hil_mlc.c kfree(mlc->serio[i]); serio 983 drivers/input/serio/hil_mlc.c serio_unregister_port(mlc->serio[i]); serio 984 drivers/input/serio/hil_mlc.c mlc->serio[i] = NULL; serio 91 drivers/input/serio/hyperv-keyboard.c struct serio *hv_serio; serio 290 drivers/input/serio/hyperv-keyboard.c static int hv_kbd_start(struct serio *serio) serio 292 drivers/input/serio/hyperv-keyboard.c struct hv_kbd_dev *kbd_dev = serio->port_data; serio 302 drivers/input/serio/hyperv-keyboard.c static void hv_kbd_stop(struct serio *serio) serio 304 drivers/input/serio/hyperv-keyboard.c struct hv_kbd_dev *kbd_dev = serio->port_data; serio 316 drivers/input/serio/hyperv-keyboard.c struct serio *hv_serio; serio 320 drivers/input/serio/hyperv-keyboard.c hv_serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 147 drivers/input/serio/i8042.c struct serio *serio; serio 172 drivers/input/serio/i8042.c struct serio *serio); serio 187 drivers/input/serio/i8042.c struct serio *serio)) serio 208 drivers/input/serio/i8042.c struct serio *port)) serio 356 drivers/input/serio/i8042.c static int i8042_kbd_write(struct serio *port, unsigned char c) serio 377 drivers/input/serio/i8042.c static int i8042_aux_write(struct serio *serio, unsigned char c) serio 379 drivers/input/serio/i8042.c struct i8042_port *port = serio->port_data; serio 392 drivers/input/serio/i8042.c static void i8042_port_close(struct serio *serio) serio 398 drivers/input/serio/i8042.c if (serio == i8042_ports[I8042_AUX_PORT_NO].serio) { serio 431 drivers/input/serio/i8042.c static int i8042_start(struct serio *serio) serio 433 drivers/input/serio/i8042.c struct i8042_port *port = serio->port_data; serio 435 drivers/input/serio/i8042.c device_set_wakeup_capable(&serio->dev, true); serio 445 drivers/input/serio/i8042.c serio == i8042_ports[I8042_KBD_PORT_NO].serio) { serio 446 drivers/input/serio/i8042.c device_set_wakeup_enable(&serio->dev, true); serio 461 drivers/input/serio/i8042.c static void i8042_stop(struct serio *serio) serio 463 drivers/input/serio/i8042.c struct i8042_port *port = serio->port_data; serio 467 drivers/input/serio/i8042.c port->serio = NULL; serio 487 drivers/input/serio/i8042.c struct serio *serio) serio 498 drivers/input/serio/i8042.c if (i8042_platform_filter && i8042_platform_filter(data, str, serio)) { serio 515 drivers/input/serio/i8042.c struct serio *serio; serio 584 drivers/input/serio/i8042.c serio = port->exists ? port->serio : NULL; serio 591 drivers/input/serio/i8042.c filtered = i8042_filter(data, str, serio); serio 595 drivers/input/serio/i8042.c if (likely(serio && !filtered)) serio 596 drivers/input/serio/i8042.c serio_interrupt(serio, data, dfl); serio 1205 drivers/input/serio/i8042.c } else if (i8042_ports[I8042_AUX_PORT_NO].serio) serio 1208 drivers/input/serio/i8042.c if (i8042_ports[I8042_KBD_PORT_NO].serio) serio 1230 drivers/input/serio/i8042.c struct serio *serio = i8042_ports[i].serio; serio 1232 drivers/input/serio/i8042.c if (serio && device_may_wakeup(&serio->dev)) serio 1253 drivers/input/serio/i8042.c struct serio *serio = i8042_ports[i].serio; serio 1255 drivers/input/serio/i8042.c if (serio && device_may_wakeup(&serio->dev)) serio 1319 drivers/input/serio/i8042.c struct serio *serio; serio 1322 drivers/input/serio/i8042.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 1323 drivers/input/serio/i8042.c if (!serio) serio 1326 drivers/input/serio/i8042.c serio->id.type = i8042_direct ? SERIO_8042 : SERIO_8042_XL; serio 1327 drivers/input/serio/i8042.c serio->write = i8042_dumbkbd ? NULL : i8042_kbd_write; serio 1328 drivers/input/serio/i8042.c serio->start = i8042_start; serio 1329 drivers/input/serio/i8042.c serio->stop = i8042_stop; serio 1330 drivers/input/serio/i8042.c serio->close = i8042_port_close; serio 1331 drivers/input/serio/i8042.c serio->ps2_cmd_mutex = &i8042_mutex; serio 1332 drivers/input/serio/i8042.c serio->port_data = port; serio 1333 drivers/input/serio/i8042.c serio->dev.parent = &i8042_platform_device->dev; serio 1334 drivers/input/serio/i8042.c strlcpy(serio->name, "i8042 KBD port", sizeof(serio->name)); serio 1335 drivers/input/serio/i8042.c strlcpy(serio->phys, I8042_KBD_PHYS_DESC, sizeof(serio->phys)); serio 1336 drivers/input/serio/i8042.c strlcpy(serio->firmware_id, i8042_kbd_firmware_id, serio 1337 drivers/input/serio/i8042.c sizeof(serio->firmware_id)); serio 1339 drivers/input/serio/i8042.c port->serio = serio; serio 1347 drivers/input/serio/i8042.c struct serio *serio; serio 1351 drivers/input/serio/i8042.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 1352 drivers/input/serio/i8042.c if (!serio) serio 1355 drivers/input/serio/i8042.c serio->id.type = SERIO_8042; serio 1356 drivers/input/serio/i8042.c serio->write = i8042_aux_write; serio 1357 drivers/input/serio/i8042.c serio->start = i8042_start; serio 1358 drivers/input/serio/i8042.c serio->stop = i8042_stop; serio 1359 drivers/input/serio/i8042.c serio->ps2_cmd_mutex = &i8042_mutex; serio 1360 drivers/input/serio/i8042.c serio->port_data = port; serio 1361 drivers/input/serio/i8042.c serio->dev.parent = &i8042_platform_device->dev; serio 1363 drivers/input/serio/i8042.c strlcpy(serio->name, "i8042 AUX port", sizeof(serio->name)); serio 1364 drivers/input/serio/i8042.c strlcpy(serio->phys, I8042_AUX_PHYS_DESC, sizeof(serio->phys)); serio 1365 drivers/input/serio/i8042.c strlcpy(serio->firmware_id, i8042_aux_firmware_id, serio 1366 drivers/input/serio/i8042.c sizeof(serio->firmware_id)); serio 1367 drivers/input/serio/i8042.c serio->close = i8042_port_close; serio 1369 drivers/input/serio/i8042.c snprintf(serio->name, sizeof(serio->name), "i8042 AUX%d port", idx); serio 1370 drivers/input/serio/i8042.c snprintf(serio->phys, sizeof(serio->phys), I8042_MUX_PHYS_DESC, idx + 1); serio 1371 drivers/input/serio/i8042.c strlcpy(serio->firmware_id, i8042_aux_firmware_id, serio 1372 drivers/input/serio/i8042.c sizeof(serio->firmware_id)); serio 1375 drivers/input/serio/i8042.c port->serio = serio; serio 1384 drivers/input/serio/i8042.c kfree(i8042_ports[I8042_KBD_PORT_NO].serio); serio 1385 drivers/input/serio/i8042.c i8042_ports[I8042_KBD_PORT_NO].serio = NULL; serio 1393 drivers/input/serio/i8042.c kfree(i8042_ports[i].serio); serio 1394 drivers/input/serio/i8042.c i8042_ports[i].serio = NULL; serio 1403 drivers/input/serio/i8042.c struct serio *serio = i8042_ports[i].serio; serio 1405 drivers/input/serio/i8042.c if (!serio) serio 1409 drivers/input/serio/i8042.c serio->name, serio 1413 drivers/input/serio/i8042.c serio_register_port(serio); serio 1422 drivers/input/serio/i8042.c if (i8042_ports[i].serio) { serio 1423 drivers/input/serio/i8042.c serio_unregister_port(i8042_ports[i].serio); serio 1424 drivers/input/serio/i8042.c i8042_ports[i].serio = NULL; serio 1511 drivers/input/serio/i8042.c struct serio *serio = to_serio_port(dev); serio 1512 drivers/input/serio/i8042.c struct i8042_port *port = serio->port_data; serio 1514 drivers/input/serio/i8042.c if (serio != i8042_ports[I8042_KBD_PORT_NO].serio) serio 27 drivers/input/serio/libps2.c __releases(&ps2dev->serio->lock) __acquires(&ps2dev->serio->lock) serio 32 drivers/input/serio/libps2.c lockdep_assert_held(&ps2dev->serio->lock); serio 38 drivers/input/serio/libps2.c serio_continue_rx(ps2dev->serio); serio 40 drivers/input/serio/libps2.c error = serio_write(ps2dev->serio, byte); serio 42 drivers/input/serio/libps2.c dev_dbg(&ps2dev->serio->dev, serio 49 drivers/input/serio/libps2.c serio_pause_rx(ps2dev->serio); serio 71 drivers/input/serio/libps2.c dev_dbg(&ps2dev->serio->dev, serio 90 drivers/input/serio/libps2.c serio_pause_rx(ps2dev->serio); serio 93 drivers/input/serio/libps2.c dev_dbg(&ps2dev->serio->dev, "%02x - %x\n", byte, ps2dev->nak); serio 95 drivers/input/serio/libps2.c serio_continue_rx(ps2dev->serio); serio 103 drivers/input/serio/libps2.c struct mutex *m = ps2dev->serio->ps2_cmd_mutex ?: &ps2dev->cmd_mutex; serio 111 drivers/input/serio/libps2.c struct mutex *m = ps2dev->serio->ps2_cmd_mutex ?: &ps2dev->cmd_mutex; serio 131 drivers/input/serio/libps2.c serio_pause_rx(ps2dev->serio); serio 134 drivers/input/serio/libps2.c serio_continue_rx(ps2dev->serio); serio 194 drivers/input/serio/libps2.c serio_pause_rx(ps2dev->serio); serio 196 drivers/input/serio/libps2.c serio_continue_rx(ps2dev->serio); serio 205 drivers/input/serio/libps2.c serio_pause_rx(ps2dev->serio); serio 207 drivers/input/serio/libps2.c serio_continue_rx(ps2dev->serio); serio 247 drivers/input/serio/libps2.c serio_pause_rx(ps2dev->serio); serio 278 drivers/input/serio/libps2.c serio_continue_rx(ps2dev->serio); serio 295 drivers/input/serio/libps2.c serio_pause_rx(ps2dev->serio); serio 311 drivers/input/serio/libps2.c serio_continue_rx(ps2dev->serio); serio 313 drivers/input/serio/libps2.c dev_dbg(&ps2dev->serio->dev, serio 366 drivers/input/serio/libps2.c dev_dbg(&ps2dev->serio->dev, "%02x - %d\n", command, retval); serio 376 drivers/input/serio/libps2.c void ps2_init(struct ps2dev *ps2dev, struct serio *serio) serio 379 drivers/input/serio/libps2.c lockdep_set_subclass(&ps2dev->cmd_mutex, serio->depth); serio 381 drivers/input/serio/libps2.c ps2dev->serio = serio; serio 433 drivers/input/serio/libps2.c dev_dbg(&ps2dev->serio->dev, "unexpected %#02x\n", data); serio 52 drivers/input/serio/maceps2.c static struct serio *maceps2_port[2]; serio 55 drivers/input/serio/maceps2.c static int maceps2_write(struct serio *dev, unsigned char val) serio 73 drivers/input/serio/maceps2.c struct serio *dev = dev_id; serio 85 drivers/input/serio/maceps2.c static int maceps2_open(struct serio *dev) serio 106 drivers/input/serio/maceps2.c static void maceps2_close(struct serio *dev) serio 116 drivers/input/serio/maceps2.c static struct serio *maceps2_allocate_port(int idx) serio 118 drivers/input/serio/maceps2.c struct serio *serio; serio 120 drivers/input/serio/maceps2.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 121 drivers/input/serio/maceps2.c if (serio) { serio 122 drivers/input/serio/maceps2.c serio->id.type = SERIO_8042; serio 123 drivers/input/serio/maceps2.c serio->write = maceps2_write; serio 124 drivers/input/serio/maceps2.c serio->open = maceps2_open; serio 125 drivers/input/serio/maceps2.c serio->close = maceps2_close; serio 126 drivers/input/serio/maceps2.c snprintf(serio->name, sizeof(serio->name), "MACE PS/2 port%d", idx); serio 127 drivers/input/serio/maceps2.c snprintf(serio->phys, sizeof(serio->phys), "mace/serio%d", idx); serio 128 drivers/input/serio/maceps2.c serio->port_data = &port_data[idx]; serio 129 drivers/input/serio/maceps2.c serio->dev.parent = &maceps2_device->dev; serio 132 drivers/input/serio/maceps2.c return serio; serio 65 drivers/input/serio/olpc_apsp.c struct serio *kbio; serio 66 drivers/input/serio/olpc_apsp.c struct serio *padio; serio 72 drivers/input/serio/olpc_apsp.c static int olpc_apsp_write(struct serio *port, unsigned char val) serio 105 drivers/input/serio/olpc_apsp.c struct serio *serio; serio 121 drivers/input/serio/olpc_apsp.c serio = priv->kbio; serio 123 drivers/input/serio/olpc_apsp.c serio = priv->padio; serio 125 drivers/input/serio/olpc_apsp.c serio_interrupt(serio, w & DATA_MASK, 0); serio 135 drivers/input/serio/olpc_apsp.c static int olpc_apsp_open(struct serio *port) serio 156 drivers/input/serio/olpc_apsp.c static void olpc_apsp_close(struct serio *port) serio 170 drivers/input/serio/olpc_apsp.c struct serio *kb_serio, *pad_serio; serio 193 drivers/input/serio/olpc_apsp.c kb_serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 208 drivers/input/serio/olpc_apsp.c pad_serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 71 drivers/input/serio/parkbd.c static struct serio *parkbd_port; serio 83 drivers/input/serio/parkbd.c static int parkbd_write(struct serio *port, unsigned char c) serio 164 drivers/input/serio/parkbd.c static struct serio *parkbd_allocate_serio(void) serio 166 drivers/input/serio/parkbd.c struct serio *serio; serio 168 drivers/input/serio/parkbd.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 169 drivers/input/serio/parkbd.c if (serio) { serio 170 drivers/input/serio/parkbd.c serio->id.type = parkbd_mode; serio 171 drivers/input/serio/parkbd.c serio->write = parkbd_write, serio 172 drivers/input/serio/parkbd.c strlcpy(serio->name, "PARKBD AT/XT keyboard adapter", sizeof(serio->name)); serio 173 drivers/input/serio/parkbd.c snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", parkbd_dev->port->name); serio 176 drivers/input/serio/parkbd.c return serio; serio 38 drivers/input/serio/pcips2.c struct serio *io; serio 43 drivers/input/serio/pcips2.c static int pcips2_write(struct serio *io, unsigned char val) serio 99 drivers/input/serio/pcips2.c static int pcips2_open(struct serio *io) serio 117 drivers/input/serio/pcips2.c static void pcips2_close(struct serio *io) serio 129 drivers/input/serio/pcips2.c struct serio *serio; serio 141 drivers/input/serio/pcips2.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 142 drivers/input/serio/pcips2.c if (!ps2if || !serio) { serio 148 drivers/input/serio/pcips2.c serio->id.type = SERIO_8042; serio 149 drivers/input/serio/pcips2.c serio->write = pcips2_write; serio 150 drivers/input/serio/pcips2.c serio->open = pcips2_open; serio 151 drivers/input/serio/pcips2.c serio->close = pcips2_close; serio 152 drivers/input/serio/pcips2.c strlcpy(serio->name, pci_name(dev), sizeof(serio->name)); serio 153 drivers/input/serio/pcips2.c strlcpy(serio->phys, dev_name(&dev->dev), sizeof(serio->phys)); serio 154 drivers/input/serio/pcips2.c serio->port_data = ps2if; serio 155 drivers/input/serio/pcips2.c serio->dev.parent = &dev->dev; serio 156 drivers/input/serio/pcips2.c ps2if->io = serio; serio 167 drivers/input/serio/pcips2.c kfree(serio); serio 49 drivers/input/serio/ps2-gpio.c struct serio *serio; serio 64 drivers/input/serio/ps2-gpio.c static int ps2_gpio_open(struct serio *serio) serio 66 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; serio 72 drivers/input/serio/ps2-gpio.c static void ps2_gpio_close(struct serio *serio) serio 74 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; serio 80 drivers/input/serio/ps2-gpio.c static int __ps2_gpio_write(struct serio *serio, unsigned char val) serio 82 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; serio 95 drivers/input/serio/ps2-gpio.c static int ps2_gpio_write(struct serio *serio, unsigned char val) serio 97 drivers/input/serio/ps2-gpio.c struct ps2_gpio_data *drvdata = serio->port_data; serio 102 drivers/input/serio/ps2-gpio.c __ps2_gpio_write(serio, val); serio 108 drivers/input/serio/ps2-gpio.c __ps2_gpio_write(serio, val); serio 198 drivers/input/serio/ps2-gpio.c serio_interrupt(drvdata->serio, byte, rxflags); serio 221 drivers/input/serio/ps2-gpio.c __ps2_gpio_write(drvdata->serio, PS2_CMD_RESEND); serio 308 drivers/input/serio/ps2-gpio.c __ps2_gpio_write(drvdata->serio, drvdata->tx_byte); serio 348 drivers/input/serio/ps2-gpio.c struct serio *serio; serio 353 drivers/input/serio/ps2-gpio.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 354 drivers/input/serio/ps2-gpio.c if (!drvdata || !serio) { serio 387 drivers/input/serio/ps2-gpio.c serio->id.type = SERIO_8042; serio 388 drivers/input/serio/ps2-gpio.c serio->open = ps2_gpio_open; serio 389 drivers/input/serio/ps2-gpio.c serio->close = ps2_gpio_close; serio 393 drivers/input/serio/ps2-gpio.c serio->write = drvdata->write_enable ? ps2_gpio_write : NULL; serio 394 drivers/input/serio/ps2-gpio.c serio->port_data = drvdata; serio 395 drivers/input/serio/ps2-gpio.c serio->dev.parent = dev; serio 396 drivers/input/serio/ps2-gpio.c strlcpy(serio->name, dev_name(dev), sizeof(serio->name)); serio 397 drivers/input/serio/ps2-gpio.c strlcpy(serio->phys, dev_name(dev), sizeof(serio->phys)); serio 399 drivers/input/serio/ps2-gpio.c drvdata->serio = serio; serio 412 drivers/input/serio/ps2-gpio.c serio_register_port(serio); serio 418 drivers/input/serio/ps2-gpio.c kfree(serio); serio 426 drivers/input/serio/ps2-gpio.c serio_unregister_port(drvdata->serio); serio 26 drivers/input/serio/ps2mult.c struct serio *serio; serio 36 drivers/input/serio/ps2mult.c struct serio *mx_serio; serio 62 drivers/input/serio/ps2mult.c MODULE_DEVICE_TABLE(serio, ps2mult_serio_ids); serio 66 drivers/input/serio/ps2mult.c struct serio *mx_serio = psm->mx_serio; serio 73 drivers/input/serio/ps2mult.c static int ps2mult_serio_write(struct serio *serio, unsigned char data) serio 75 drivers/input/serio/ps2mult.c struct serio *mx_port = serio->parent; serio 77 drivers/input/serio/ps2mult.c struct ps2mult_port *port = serio->port_data; serio 88 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, serio 101 drivers/input/serio/ps2mult.c static int ps2mult_serio_start(struct serio *serio) serio 103 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio->parent); serio 104 drivers/input/serio/ps2mult.c struct ps2mult_port *port = serio->port_data; serio 114 drivers/input/serio/ps2mult.c static void ps2mult_serio_stop(struct serio *serio) serio 116 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio->parent); serio 117 drivers/input/serio/ps2mult.c struct ps2mult_port *port = serio->port_data; serio 127 drivers/input/serio/ps2mult.c struct serio *mx_serio = psm->mx_serio; serio 128 drivers/input/serio/ps2mult.c struct serio *serio; serio 130 drivers/input/serio/ps2mult.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 131 drivers/input/serio/ps2mult.c if (!serio) serio 134 drivers/input/serio/ps2mult.c strlcpy(serio->name, "TQC PS/2 Multiplexer", sizeof(serio->name)); serio 135 drivers/input/serio/ps2mult.c snprintf(serio->phys, sizeof(serio->phys), serio 137 drivers/input/serio/ps2mult.c serio->id.type = SERIO_8042; serio 138 drivers/input/serio/ps2mult.c serio->write = ps2mult_serio_write; serio 139 drivers/input/serio/ps2mult.c serio->start = ps2mult_serio_start; serio 140 drivers/input/serio/ps2mult.c serio->stop = ps2mult_serio_stop; serio 141 drivers/input/serio/ps2mult.c serio->parent = psm->mx_serio; serio 142 drivers/input/serio/ps2mult.c serio->port_data = &psm->ports[i]; serio 144 drivers/input/serio/ps2mult.c psm->ports[i].serio = serio; serio 163 drivers/input/serio/ps2mult.c static int ps2mult_connect(struct serio *serio, struct serio_driver *drv) serio 169 drivers/input/serio/ps2mult.c if (!serio->write) serio 177 drivers/input/serio/ps2mult.c psm->mx_serio = serio; serio 188 drivers/input/serio/ps2mult.c serio_set_drvdata(serio, psm); serio 189 drivers/input/serio/ps2mult.c error = serio_open(serio, drv); serio 196 drivers/input/serio/ps2mult.c struct serio *s = psm->ports[i].serio; serio 198 drivers/input/serio/ps2mult.c dev_info(&serio->dev, "%s port at %s\n", s->name, serio->phys); serio 206 drivers/input/serio/ps2mult.c kfree(psm->ports[i].serio); serio 211 drivers/input/serio/ps2mult.c static void ps2mult_disconnect(struct serio *serio) serio 213 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio); serio 216 drivers/input/serio/ps2mult.c serio_write(serio, PS2MULT_SESSION_END); serio 217 drivers/input/serio/ps2mult.c serio_close(serio); serio 220 drivers/input/serio/ps2mult.c serio_set_drvdata(serio, NULL); serio 223 drivers/input/serio/ps2mult.c static int ps2mult_reconnect(struct serio *serio) serio 225 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio); serio 232 drivers/input/serio/ps2mult.c static irqreturn_t ps2mult_interrupt(struct serio *serio, serio 235 drivers/input/serio/ps2mult.c struct ps2mult *psm = serio_get_drvdata(serio); serio 239 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, "Received %02x flags %02x\n", data, dfl); serio 247 drivers/input/serio/ps2mult.c serio_interrupt(in_port->serio, data, dfl); serio 253 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, "ESCAPE\n"); serio 258 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, "BSYNC\n"); serio 263 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, "SS\n"); serio 267 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, "SE\n"); serio 271 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, "KB\n"); serio 276 drivers/input/serio/ps2mult.c dev_dbg(&serio->dev, "MS\n"); serio 283 drivers/input/serio/ps2mult.c serio_interrupt(in_port->serio, data, dfl); serio 38 drivers/input/serio/q40kbd.c struct serio *port; serio 87 drivers/input/serio/q40kbd.c static int q40kbd_open(struct serio *port) serio 100 drivers/input/serio/q40kbd.c static void q40kbd_close(struct serio *port) serio 111 drivers/input/serio/q40kbd.c struct serio *port; serio 115 drivers/input/serio/q40kbd.c port = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 35 drivers/input/serio/rpckbd.c static int rpckbd_write(struct serio *port, unsigned char val) serio 47 drivers/input/serio/rpckbd.c struct serio *port = dev_id; serio 65 drivers/input/serio/rpckbd.c static int rpckbd_open(struct serio *port) serio 88 drivers/input/serio/rpckbd.c static void rpckbd_close(struct serio *port) serio 103 drivers/input/serio/rpckbd.c struct serio *serio; serio 114 drivers/input/serio/rpckbd.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 116 drivers/input/serio/rpckbd.c if (!serio || !rpckbd) { serio 118 drivers/input/serio/rpckbd.c kfree(serio); serio 125 drivers/input/serio/rpckbd.c serio->id.type = SERIO_8042; serio 126 drivers/input/serio/rpckbd.c serio->write = rpckbd_write; serio 127 drivers/input/serio/rpckbd.c serio->open = rpckbd_open; serio 128 drivers/input/serio/rpckbd.c serio->close = rpckbd_close; serio 129 drivers/input/serio/rpckbd.c serio->dev.parent = &dev->dev; serio 130 drivers/input/serio/rpckbd.c serio->port_data = rpckbd; serio 131 drivers/input/serio/rpckbd.c strlcpy(serio->name, "RiscPC PS/2 kbd port", sizeof(serio->name)); serio 132 drivers/input/serio/rpckbd.c strlcpy(serio->phys, "rpckbd/serio0", sizeof(serio->phys)); serio 134 drivers/input/serio/rpckbd.c platform_set_drvdata(dev, serio); serio 135 drivers/input/serio/rpckbd.c serio_register_port(serio); serio 141 drivers/input/serio/rpckbd.c struct serio *serio = platform_get_drvdata(dev); serio 142 drivers/input/serio/rpckbd.c struct rpckbd_data *rpckbd = serio->port_data; serio 144 drivers/input/serio/rpckbd.c serio_unregister_port(serio); serio 44 drivers/input/serio/sa1111ps2.c struct serio *io; serio 113 drivers/input/serio/sa1111ps2.c static int ps2_write(struct serio *io, unsigned char val) serio 140 drivers/input/serio/sa1111ps2.c static int ps2_open(struct serio *io) serio 176 drivers/input/serio/sa1111ps2.c static void ps2_close(struct serio *io) serio 256 drivers/input/serio/sa1111ps2.c struct serio *serio; serio 260 drivers/input/serio/sa1111ps2.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 261 drivers/input/serio/sa1111ps2.c if (!ps2if || !serio) { serio 266 drivers/input/serio/sa1111ps2.c serio->id.type = SERIO_8042; serio 267 drivers/input/serio/sa1111ps2.c serio->write = ps2_write; serio 268 drivers/input/serio/sa1111ps2.c serio->open = ps2_open; serio 269 drivers/input/serio/sa1111ps2.c serio->close = ps2_close; serio 270 drivers/input/serio/sa1111ps2.c strlcpy(serio->name, dev_name(&dev->dev), sizeof(serio->name)); serio 271 drivers/input/serio/sa1111ps2.c strlcpy(serio->phys, dev_name(&dev->dev), sizeof(serio->phys)); serio 272 drivers/input/serio/sa1111ps2.c serio->port_data = ps2if; serio 273 drivers/input/serio/sa1111ps2.c serio->dev.parent = &dev->dev; serio 274 drivers/input/serio/sa1111ps2.c ps2if->io = serio; serio 340 drivers/input/serio/sa1111ps2.c kfree(serio); serio 36 drivers/input/serio/serio.c static void serio_add_port(struct serio *serio); serio 37 drivers/input/serio/serio.c static int serio_reconnect_port(struct serio *serio); serio 38 drivers/input/serio/serio.c static void serio_disconnect_port(struct serio *serio); serio 39 drivers/input/serio/serio.c static void serio_reconnect_subtree(struct serio *serio); serio 42 drivers/input/serio/serio.c static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) serio 46 drivers/input/serio/serio.c mutex_lock(&serio->drv_mutex); serio 47 drivers/input/serio/serio.c retval = drv->connect(serio, drv); serio 48 drivers/input/serio/serio.c mutex_unlock(&serio->drv_mutex); serio 53 drivers/input/serio/serio.c static int serio_reconnect_driver(struct serio *serio) serio 57 drivers/input/serio/serio.c mutex_lock(&serio->drv_mutex); serio 58 drivers/input/serio/serio.c if (serio->drv && serio->drv->reconnect) serio 59 drivers/input/serio/serio.c retval = serio->drv->reconnect(serio); serio 60 drivers/input/serio/serio.c mutex_unlock(&serio->drv_mutex); serio 65 drivers/input/serio/serio.c static void serio_disconnect_driver(struct serio *serio) serio 67 drivers/input/serio/serio.c mutex_lock(&serio->drv_mutex); serio 68 drivers/input/serio/serio.c if (serio->drv) serio 69 drivers/input/serio/serio.c serio->drv->disconnect(serio); serio 70 drivers/input/serio/serio.c mutex_unlock(&serio->drv_mutex); serio 73 drivers/input/serio/serio.c static int serio_match_port(const struct serio_device_id *ids, struct serio *serio) serio 76 drivers/input/serio/serio.c if ((ids->type == SERIO_ANY || ids->type == serio->id.type) && serio 77 drivers/input/serio/serio.c (ids->proto == SERIO_ANY || ids->proto == serio->id.proto) && serio 78 drivers/input/serio/serio.c (ids->extra == SERIO_ANY || ids->extra == serio->id.extra) && serio 79 drivers/input/serio/serio.c (ids->id == SERIO_ANY || ids->id == serio->id.id)) serio 90 drivers/input/serio/serio.c static int serio_bind_driver(struct serio *serio, struct serio_driver *drv) serio 94 drivers/input/serio/serio.c if (serio_match_port(drv->id_table, serio)) { serio 96 drivers/input/serio/serio.c serio->dev.driver = &drv->driver; serio 97 drivers/input/serio/serio.c if (serio_connect_driver(serio, drv)) { serio 98 drivers/input/serio/serio.c serio->dev.driver = NULL; serio 102 drivers/input/serio/serio.c error = device_bind_driver(&serio->dev); serio 104 drivers/input/serio/serio.c dev_warn(&serio->dev, serio 106 drivers/input/serio/serio.c serio->phys, serio->name, serio 108 drivers/input/serio/serio.c serio_disconnect_driver(serio); serio 109 drivers/input/serio/serio.c serio->dev.driver = NULL; serio 116 drivers/input/serio/serio.c static void serio_find_driver(struct serio *serio) serio 120 drivers/input/serio/serio.c error = device_attach(&serio->dev); serio 122 drivers/input/serio/serio.c dev_warn(&serio->dev, serio 124 drivers/input/serio/serio.c serio->phys, serio->name, error); serio 318 drivers/input/serio/serio.c static struct serio *serio_get_pending_child(struct serio *parent) serio 321 drivers/input/serio/serio.c struct serio *serio, *child = NULL; serio 328 drivers/input/serio/serio.c serio = event->object; serio 329 drivers/input/serio/serio.c if (serio->parent == parent) { serio 330 drivers/input/serio/serio.c child = serio; serio 346 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 347 drivers/input/serio/serio.c return sprintf(buf, "%s\n", serio->name); serio 352 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 355 drivers/input/serio/serio.c serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); serio 360 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 361 drivers/input/serio/serio.c return sprintf(buf, "%02x\n", serio->id.type); serio 366 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 367 drivers/input/serio/serio.c return sprintf(buf, "%02x\n", serio->id.proto); serio 372 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 373 drivers/input/serio/serio.c return sprintf(buf, "%02x\n", serio->id.id); serio 378 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 379 drivers/input/serio/serio.c return sprintf(buf, "%02x\n", serio->id.extra); serio 384 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 393 drivers/input/serio/serio.c serio_disconnect_port(serio); serio 395 drivers/input/serio/serio.c serio_reconnect_subtree(serio); serio 397 drivers/input/serio/serio.c serio_disconnect_port(serio); serio 398 drivers/input/serio/serio.c serio_find_driver(serio); serio 399 drivers/input/serio/serio.c serio_remove_duplicate_events(serio, SERIO_RESCAN_PORT); serio 401 drivers/input/serio/serio.c serio_disconnect_port(serio); serio 402 drivers/input/serio/serio.c error = serio_bind_driver(serio, to_serio_driver(drv)); serio 403 drivers/input/serio/serio.c serio_remove_duplicate_events(serio, SERIO_RESCAN_PORT); serio 415 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 416 drivers/input/serio/serio.c return sprintf(buf, "%s\n", serio->manual_bind ? "manual" : "auto"); serio 421 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 426 drivers/input/serio/serio.c serio->manual_bind = true; serio 428 drivers/input/serio/serio.c serio->manual_bind = false; serio 438 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 440 drivers/input/serio/serio.c return sprintf(buf, "%s\n", serio->firmware_id); serio 488 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 490 drivers/input/serio/serio.c kfree(serio); serio 497 drivers/input/serio/serio.c static void serio_init_port(struct serio *serio) serio 503 drivers/input/serio/serio.c INIT_LIST_HEAD(&serio->node); serio 504 drivers/input/serio/serio.c INIT_LIST_HEAD(&serio->child_node); serio 505 drivers/input/serio/serio.c INIT_LIST_HEAD(&serio->children); serio 506 drivers/input/serio/serio.c spin_lock_init(&serio->lock); serio 507 drivers/input/serio/serio.c mutex_init(&serio->drv_mutex); serio 508 drivers/input/serio/serio.c device_initialize(&serio->dev); serio 509 drivers/input/serio/serio.c dev_set_name(&serio->dev, "serio%lu", serio 511 drivers/input/serio/serio.c serio->dev.bus = &serio_bus; serio 512 drivers/input/serio/serio.c serio->dev.release = serio_release_port; serio 513 drivers/input/serio/serio.c serio->dev.groups = serio_device_attr_groups; serio 514 drivers/input/serio/serio.c if (serio->parent) { serio 515 drivers/input/serio/serio.c serio->dev.parent = &serio->parent->dev; serio 516 drivers/input/serio/serio.c serio->depth = serio->parent->depth + 1; serio 518 drivers/input/serio/serio.c serio->depth = 0; serio 519 drivers/input/serio/serio.c lockdep_set_subclass(&serio->lock, serio->depth); serio 526 drivers/input/serio/serio.c static void serio_add_port(struct serio *serio) serio 528 drivers/input/serio/serio.c struct serio *parent = serio->parent; serio 533 drivers/input/serio/serio.c list_add_tail(&serio->child_node, &parent->children); serio 537 drivers/input/serio/serio.c list_add_tail(&serio->node, &serio_list); serio 539 drivers/input/serio/serio.c if (serio->start) serio 540 drivers/input/serio/serio.c serio->start(serio); serio 542 drivers/input/serio/serio.c error = device_add(&serio->dev); serio 544 drivers/input/serio/serio.c dev_err(&serio->dev, serio 546 drivers/input/serio/serio.c serio->phys, serio->name, error); serio 553 drivers/input/serio/serio.c static void serio_destroy_port(struct serio *serio) serio 555 drivers/input/serio/serio.c struct serio *child; serio 557 drivers/input/serio/serio.c while ((child = serio_get_pending_child(serio)) != NULL) { serio 562 drivers/input/serio/serio.c if (serio->stop) serio 563 drivers/input/serio/serio.c serio->stop(serio); serio 565 drivers/input/serio/serio.c if (serio->parent) { serio 566 drivers/input/serio/serio.c serio_pause_rx(serio->parent); serio 567 drivers/input/serio/serio.c list_del_init(&serio->child_node); serio 568 drivers/input/serio/serio.c serio_continue_rx(serio->parent); serio 569 drivers/input/serio/serio.c serio->parent = NULL; serio 572 drivers/input/serio/serio.c if (device_is_registered(&serio->dev)) serio 573 drivers/input/serio/serio.c device_del(&serio->dev); serio 575 drivers/input/serio/serio.c list_del_init(&serio->node); serio 576 drivers/input/serio/serio.c serio_remove_pending_events(serio); serio 577 drivers/input/serio/serio.c put_device(&serio->dev); serio 586 drivers/input/serio/serio.c static int serio_reconnect_port(struct serio *serio) serio 588 drivers/input/serio/serio.c int error = serio_reconnect_driver(serio); serio 591 drivers/input/serio/serio.c serio_disconnect_port(serio); serio 592 drivers/input/serio/serio.c serio_find_driver(serio); serio 602 drivers/input/serio/serio.c static void serio_reconnect_subtree(struct serio *root) serio 604 drivers/input/serio/serio.c struct serio *s = root; serio 616 drivers/input/serio/serio.c struct serio, child_node); serio 627 drivers/input/serio/serio.c struct serio *parent = s->parent; serio 631 drivers/input/serio/serio.c struct serio, child_node); serio 644 drivers/input/serio/serio.c static void serio_disconnect_port(struct serio *serio) serio 646 drivers/input/serio/serio.c struct serio *s = serio; serio 652 drivers/input/serio/serio.c while (!list_empty(&serio->children)) { serio 657 drivers/input/serio/serio.c struct serio, child_node); serio 663 drivers/input/serio/serio.c if (s != serio) { serio 664 drivers/input/serio/serio.c struct serio *parent = s->parent; serio 676 drivers/input/serio/serio.c device_release_driver(&serio->dev); serio 679 drivers/input/serio/serio.c void serio_rescan(struct serio *serio) serio 681 drivers/input/serio/serio.c serio_queue_event(serio, NULL, SERIO_RESCAN_PORT); serio 685 drivers/input/serio/serio.c void serio_reconnect(struct serio *serio) serio 687 drivers/input/serio/serio.c serio_queue_event(serio, NULL, SERIO_RECONNECT_SUBTREE); serio 695 drivers/input/serio/serio.c void __serio_register_port(struct serio *serio, struct module *owner) serio 697 drivers/input/serio/serio.c serio_init_port(serio); serio 698 drivers/input/serio/serio.c serio_queue_event(serio, owner, SERIO_REGISTER_PORT); serio 705 drivers/input/serio/serio.c void serio_unregister_port(struct serio *serio) serio 708 drivers/input/serio/serio.c serio_disconnect_port(serio); serio 709 drivers/input/serio/serio.c serio_destroy_port(serio); serio 717 drivers/input/serio/serio.c void serio_unregister_child_port(struct serio *serio) serio 719 drivers/input/serio/serio.c struct serio *s, *next; serio 722 drivers/input/serio/serio.c list_for_each_entry_safe(s, next, &serio->children, child_node) { serio 775 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 778 drivers/input/serio/serio.c return serio_connect_driver(serio, drv); serio 783 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 785 drivers/input/serio/serio.c serio_disconnect_driver(serio); serio 789 drivers/input/serio/serio.c static void serio_cleanup(struct serio *serio) serio 791 drivers/input/serio/serio.c mutex_lock(&serio->drv_mutex); serio 792 drivers/input/serio/serio.c if (serio->drv && serio->drv->cleanup) serio 793 drivers/input/serio/serio.c serio->drv->cleanup(serio); serio 794 drivers/input/serio/serio.c mutex_unlock(&serio->drv_mutex); serio 799 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 801 drivers/input/serio/serio.c serio_cleanup(serio); serio 855 drivers/input/serio/serio.c struct serio *serio; serio 863 drivers/input/serio/serio.c list_for_each_entry(serio, &serio_list, node) { serio 864 drivers/input/serio/serio.c if (serio->drv == drv) { serio 865 drivers/input/serio/serio.c serio_disconnect_port(serio); serio 866 drivers/input/serio/serio.c serio_find_driver(serio); serio 877 drivers/input/serio/serio.c static void serio_set_drv(struct serio *serio, struct serio_driver *drv) serio 879 drivers/input/serio/serio.c serio_pause_rx(serio); serio 880 drivers/input/serio/serio.c serio->drv = drv; serio 881 drivers/input/serio/serio.c serio_continue_rx(serio); serio 886 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 889 drivers/input/serio/serio.c if (serio->manual_bind || serio_drv->manual_bind) serio 892 drivers/input/serio/serio.c return serio_match_port(serio_drv->id_table, serio); serio 904 drivers/input/serio/serio.c struct serio *serio; serio 909 drivers/input/serio/serio.c serio = to_serio_port(dev); serio 911 drivers/input/serio/serio.c SERIO_ADD_UEVENT_VAR("SERIO_TYPE=%02x", serio->id.type); serio 912 drivers/input/serio/serio.c SERIO_ADD_UEVENT_VAR("SERIO_PROTO=%02x", serio->id.proto); serio 913 drivers/input/serio/serio.c SERIO_ADD_UEVENT_VAR("SERIO_ID=%02x", serio->id.id); serio 914 drivers/input/serio/serio.c SERIO_ADD_UEVENT_VAR("SERIO_EXTRA=%02x", serio->id.extra); serio 917 drivers/input/serio/serio.c serio->id.type, serio->id.proto, serio->id.id, serio->id.extra); serio 919 drivers/input/serio/serio.c if (serio->firmware_id[0]) serio 921 drivers/input/serio/serio.c serio->firmware_id); serio 930 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 932 drivers/input/serio/serio.c serio_cleanup(serio); serio 939 drivers/input/serio/serio.c struct serio *serio = to_serio_port(dev); serio 942 drivers/input/serio/serio.c mutex_lock(&serio->drv_mutex); serio 943 drivers/input/serio/serio.c if (serio->drv && serio->drv->fast_reconnect) { serio 944 drivers/input/serio/serio.c error = serio->drv->fast_reconnect(serio); serio 949 drivers/input/serio/serio.c mutex_unlock(&serio->drv_mutex); serio 956 drivers/input/serio/serio.c serio_queue_event(serio, NULL, SERIO_RECONNECT_PORT); serio 971 drivers/input/serio/serio.c int serio_open(struct serio *serio, struct serio_driver *drv) serio 973 drivers/input/serio/serio.c serio_set_drv(serio, drv); serio 975 drivers/input/serio/serio.c if (serio->open && serio->open(serio)) { serio 976 drivers/input/serio/serio.c serio_set_drv(serio, NULL); serio 984 drivers/input/serio/serio.c void serio_close(struct serio *serio) serio 986 drivers/input/serio/serio.c if (serio->close) serio 987 drivers/input/serio/serio.c serio->close(serio); serio 989 drivers/input/serio/serio.c serio_set_drv(serio, NULL); serio 993 drivers/input/serio/serio.c irqreturn_t serio_interrupt(struct serio *serio, serio 999 drivers/input/serio/serio.c spin_lock_irqsave(&serio->lock, flags); serio 1001 drivers/input/serio/serio.c if (likely(serio->drv)) { serio 1002 drivers/input/serio/serio.c ret = serio->drv->interrupt(serio, data, dfl); serio 1003 drivers/input/serio/serio.c } else if (!dfl && device_is_registered(&serio->dev)) { serio 1004 drivers/input/serio/serio.c serio_rescan(serio); serio 1008 drivers/input/serio/serio.c spin_unlock_irqrestore(&serio->lock, flags); serio 34 drivers/input/serio/serio_raw.c struct serio *serio; serio 106 drivers/input/serio/serio_raw.c serio_pause_rx(serio_raw->serio); serio 108 drivers/input/serio/serio_raw.c serio_continue_rx(serio_raw->serio); serio 120 drivers/input/serio/serio_raw.c put_device(&serio_raw->serio->dev); serio 129 drivers/input/serio/serio_raw.c serio_pause_rx(serio_raw->serio); serio 131 drivers/input/serio/serio_raw.c serio_continue_rx(serio_raw->serio); serio 144 drivers/input/serio/serio_raw.c serio_pause_rx(serio_raw->serio); serio 152 drivers/input/serio/serio_raw.c serio_continue_rx(serio_raw->serio); serio 224 drivers/input/serio/serio_raw.c if (serio_write(serio_raw->serio, c)) { serio 270 drivers/input/serio/serio_raw.c static irqreturn_t serio_raw_interrupt(struct serio *serio, unsigned char data, serio 273 drivers/input/serio/serio_raw.c struct serio_raw *serio_raw = serio_get_drvdata(serio); serio 290 drivers/input/serio/serio_raw.c static int serio_raw_connect(struct serio *serio, struct serio_driver *drv) serio 298 drivers/input/serio/serio_raw.c dev_dbg(&serio->dev, "can't allocate memory for a device\n"); serio 308 drivers/input/serio/serio_raw.c serio_raw->serio = serio; serio 309 drivers/input/serio/serio_raw.c get_device(&serio->dev); serio 311 drivers/input/serio/serio_raw.c serio_set_drvdata(serio, serio_raw); serio 313 drivers/input/serio/serio_raw.c err = serio_open(serio, drv); serio 326 drivers/input/serio/serio_raw.c serio_raw->dev.parent = &serio->dev; serio 336 drivers/input/serio/serio_raw.c dev_err(&serio->dev, serio 338 drivers/input/serio/serio_raw.c serio->phys); serio 342 drivers/input/serio/serio_raw.c dev_info(&serio->dev, "raw access enabled on %s (%s, minor %d)\n", serio 343 drivers/input/serio/serio_raw.c serio->phys, serio_raw->name, serio_raw->dev.minor); serio 349 drivers/input/serio/serio_raw.c serio_close(serio); serio 351 drivers/input/serio/serio_raw.c serio_set_drvdata(serio, NULL); serio 356 drivers/input/serio/serio_raw.c static int serio_raw_reconnect(struct serio *serio) serio 358 drivers/input/serio/serio_raw.c struct serio_raw *serio_raw = serio_get_drvdata(serio); serio 359 drivers/input/serio/serio_raw.c struct serio_driver *drv = serio->drv; serio 362 drivers/input/serio/serio_raw.c dev_dbg(&serio->dev, serio 382 drivers/input/serio/serio_raw.c serio_pause_rx(serio_raw->serio); serio 385 drivers/input/serio/serio_raw.c serio_continue_rx(serio_raw->serio); serio 391 drivers/input/serio/serio_raw.c static void serio_raw_disconnect(struct serio *serio) serio 393 drivers/input/serio/serio_raw.c struct serio_raw *serio_raw = serio_get_drvdata(serio); serio 404 drivers/input/serio/serio_raw.c serio_close(serio); serio 407 drivers/input/serio/serio_raw.c serio_set_drvdata(serio, NULL); serio 426 drivers/input/serio/serio_raw.c MODULE_DEVICE_TABLE(serio, serio_raw_serio_ids); serio 34 drivers/input/serio/serport.c struct serio *serio; serio 44 drivers/input/serio/serport.c static int serport_serio_write(struct serio *serio, unsigned char data) serio 46 drivers/input/serio/serport.c struct serport *serport = serio->port_data; serio 50 drivers/input/serio/serport.c static int serport_serio_open(struct serio *serio) serio 52 drivers/input/serio/serport.c struct serport *serport = serio->port_data; serio 63 drivers/input/serio/serport.c static void serport_serio_close(struct serio *serio) serio 65 drivers/input/serio/serport.c struct serport *serport = serio->port_data; serio 146 drivers/input/serio/serport.c serio_interrupt(serport->serio, cp[i], ch_flags); serio 162 drivers/input/serio/serport.c struct serio *serio; serio 167 drivers/input/serio/serport.c serport->serio = serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 168 drivers/input/serio/serport.c if (!serio) serio 171 drivers/input/serio/serport.c strlcpy(serio->name, "Serial port", sizeof(serio->name)); serio 172 drivers/input/serio/serport.c snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", tty_name(tty)); serio 173 drivers/input/serio/serport.c serio->id = serport->id; serio 174 drivers/input/serio/serport.c serio->id.type = SERIO_RS232; serio 175 drivers/input/serio/serport.c serio->write = serport_serio_write; serio 176 drivers/input/serio/serport.c serio->open = serport_serio_open; serio 177 drivers/input/serio/serport.c serio->close = serport_serio_close; serio 178 drivers/input/serio/serport.c serio->port_data = serport; serio 179 drivers/input/serio/serport.c serio->dev.parent = tty->dev; serio 181 drivers/input/serio/serport.c serio_register_port(serport->serio); serio 185 drivers/input/serio/serport.c serio_unregister_port(serport->serio); serio 186 drivers/input/serio/serport.c serport->serio = NULL; serio 264 drivers/input/serio/serport.c serio_drv_write_wakeup(serport->serio); serio 81 drivers/input/serio/sun4i-ps2.c struct serio *serio; serio 131 drivers/input/serio/sun4i-ps2.c serio_interrupt(drvdata->serio, byte, rxflags); serio 142 drivers/input/serio/sun4i-ps2.c static int sun4i_ps2_open(struct serio *serio) serio 144 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = serio->port_data; serio 181 drivers/input/serio/sun4i-ps2.c static void sun4i_ps2_close(struct serio *serio) serio 183 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = serio->port_data; serio 193 drivers/input/serio/sun4i-ps2.c static int sun4i_ps2_write(struct serio *serio, unsigned char val) serio 196 drivers/input/serio/sun4i-ps2.c struct sun4i_ps2data *drvdata = serio->port_data; serio 212 drivers/input/serio/sun4i-ps2.c struct serio *serio; serio 218 drivers/input/serio/sun4i-ps2.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 219 drivers/input/serio/sun4i-ps2.c if (!drvdata || !serio) { serio 254 drivers/input/serio/sun4i-ps2.c serio->id.type = SERIO_8042; serio 255 drivers/input/serio/sun4i-ps2.c serio->write = sun4i_ps2_write; serio 256 drivers/input/serio/sun4i-ps2.c serio->open = sun4i_ps2_open; serio 257 drivers/input/serio/sun4i-ps2.c serio->close = sun4i_ps2_close; serio 258 drivers/input/serio/sun4i-ps2.c serio->port_data = drvdata; serio 259 drivers/input/serio/sun4i-ps2.c serio->dev.parent = dev; serio 260 drivers/input/serio/sun4i-ps2.c strlcpy(serio->name, dev_name(dev), sizeof(serio->name)); serio 261 drivers/input/serio/sun4i-ps2.c strlcpy(serio->phys, dev_name(dev), sizeof(serio->phys)); serio 275 drivers/input/serio/sun4i-ps2.c drvdata->serio = serio; serio 286 drivers/input/serio/sun4i-ps2.c serio_register_port(serio); serio 298 drivers/input/serio/sun4i-ps2.c kfree(serio); serio 307 drivers/input/serio/sun4i-ps2.c serio_unregister_port(drvdata->serio); serio 36 drivers/input/serio/userio.c struct serio *serio; serio 55 drivers/input/serio/userio.c static int userio_device_write(struct serio *id, unsigned char val) serio 88 drivers/input/serio/userio.c userio->serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 89 drivers/input/serio/userio.c if (!userio->serio) { serio 94 drivers/input/serio/userio.c userio->serio->write = userio_device_write; serio 95 drivers/input/serio/userio.c userio->serio->port_data = userio; serio 111 drivers/input/serio/userio.c serio_unregister_port(userio->serio); serio 113 drivers/input/serio/userio.c kfree(userio->serio); serio 200 drivers/input/serio/userio.c if (!userio->serio->id.type) { serio 216 drivers/input/serio/userio.c serio_register_port(userio->serio); serio 227 drivers/input/serio/userio.c userio->serio->id.type = cmd.data; serio 238 drivers/input/serio/userio.c serio_interrupt(userio->serio, cmd.data, 0); serio 70 drivers/input/serio/xilinx_ps2.c struct serio *serio; /* serio */ serio 133 drivers/input/serio/xilinx_ps2.c serio_interrupt(drvdata->serio, c, drvdata->flags); serio 155 drivers/input/serio/xilinx_ps2.c static int sxps2_write(struct serio *pserio, unsigned char c) serio 182 drivers/input/serio/xilinx_ps2.c static int sxps2_open(struct serio *pserio) serio 210 drivers/input/serio/xilinx_ps2.c static void sxps2_close(struct serio *pserio) serio 234 drivers/input/serio/xilinx_ps2.c struct serio *serio; serio 257 drivers/input/serio/xilinx_ps2.c serio = kzalloc(sizeof(struct serio), GFP_KERNEL); serio 258 drivers/input/serio/xilinx_ps2.c if (!drvdata || !serio) { serio 265 drivers/input/serio/xilinx_ps2.c drvdata->serio = serio; serio 299 drivers/input/serio/xilinx_ps2.c serio->id.type = SERIO_8042; serio 300 drivers/input/serio/xilinx_ps2.c serio->write = sxps2_write; serio 301 drivers/input/serio/xilinx_ps2.c serio->open = sxps2_open; serio 302 drivers/input/serio/xilinx_ps2.c serio->close = sxps2_close; serio 303 drivers/input/serio/xilinx_ps2.c serio->port_data = drvdata; serio 304 drivers/input/serio/xilinx_ps2.c serio->dev.parent = dev; serio 305 drivers/input/serio/xilinx_ps2.c snprintf(serio->name, sizeof(serio->name), serio 307 drivers/input/serio/xilinx_ps2.c snprintf(serio->phys, sizeof(serio->phys), serio 310 drivers/input/serio/xilinx_ps2.c serio_register_port(serio); serio 318 drivers/input/serio/xilinx_ps2.c kfree(serio); serio 337 drivers/input/serio/xilinx_ps2.c serio_unregister_port(drvdata->serio); serio 372 drivers/input/tablet/wacom_serial4.c static irqreturn_t wacom_interrupt(struct serio *serio, unsigned char data, serio 375 drivers/input/tablet/wacom_serial4.c struct wacom *wacom = serio_get_drvdata(serio); serio 411 drivers/input/tablet/wacom_serial4.c static void wacom_disconnect(struct serio *serio) serio 413 drivers/input/tablet/wacom_serial4.c struct wacom *wacom = serio_get_drvdata(serio); serio 415 drivers/input/tablet/wacom_serial4.c serio_close(serio); serio 416 drivers/input/tablet/wacom_serial4.c serio_set_drvdata(serio, NULL); serio 421 drivers/input/tablet/wacom_serial4.c static int wacom_send(struct serio *serio, const u8 *command) serio 426 drivers/input/tablet/wacom_serial4.c err = serio_write(serio, *command); serio 431 drivers/input/tablet/wacom_serial4.c static int wacom_send_setup_string(struct wacom *wacom, struct serio *serio) serio 461 drivers/input/tablet/wacom_serial4.c return wacom_send(serio, cmd); serio 464 drivers/input/tablet/wacom_serial4.c static int wacom_send_and_wait(struct wacom *wacom, struct serio *serio, serio 473 drivers/input/tablet/wacom_serial4.c err = wacom_send(serio, cmd); serio 487 drivers/input/tablet/wacom_serial4.c static int wacom_setup(struct wacom *wacom, struct serio *serio) serio 494 drivers/input/tablet/wacom_serial4.c err = wacom_send_and_wait(wacom, serio, REQUEST_MODEL_AND_ROM_VERSION, serio 500 drivers/input/tablet/wacom_serial4.c err = wacom_send_and_wait(wacom, serio, serio 508 drivers/input/tablet/wacom_serial4.c err = wacom_send_and_wait(wacom, serio, serio 515 drivers/input/tablet/wacom_serial4.c return wacom_send_setup_string(wacom, serio); serio 518 drivers/input/tablet/wacom_serial4.c static int wacom_connect(struct serio *serio, struct serio_driver *drv) serio 533 drivers/input/tablet/wacom_serial4.c snprintf(wacom->phys, sizeof(wacom->phys), "%s/input0", serio->phys); serio 537 drivers/input/tablet/wacom_serial4.c input_dev->id.product = serio->id.extra; serio 538 drivers/input/tablet/wacom_serial4.c input_dev->dev.parent = &serio->dev; serio 552 drivers/input/tablet/wacom_serial4.c serio_set_drvdata(serio, wacom); serio 554 drivers/input/tablet/wacom_serial4.c err = serio_open(serio, drv); serio 558 drivers/input/tablet/wacom_serial4.c err = wacom_setup(wacom, serio); serio 586 drivers/input/tablet/wacom_serial4.c serio_close(serio); serio 588 drivers/input/tablet/wacom_serial4.c serio_set_drvdata(serio, NULL); serio 604 drivers/input/tablet/wacom_serial4.c MODULE_DEVICE_TABLE(serio, wacom_serio_ids); serio 52 drivers/input/touchscreen/dynapro.c struct serio *serio; serio 73 drivers/input/touchscreen/dynapro.c static irqreturn_t dynapro_interrupt(struct serio *serio, serio 76 drivers/input/touchscreen/dynapro.c struct dynapro *pdynapro = serio_get_drvdata(serio); serio 83 drivers/input/touchscreen/dynapro.c dev_dbg(&serio->dev, "unknown/unsynchronized data: %x\n", serio 89 drivers/input/touchscreen/dynapro.c static void dynapro_disconnect(struct serio *serio) serio 91 drivers/input/touchscreen/dynapro.c struct dynapro *pdynapro = serio_get_drvdata(serio); serio 95 drivers/input/touchscreen/dynapro.c serio_close(serio); serio 96 drivers/input/touchscreen/dynapro.c serio_set_drvdata(serio, NULL); serio 107 drivers/input/touchscreen/dynapro.c static int dynapro_connect(struct serio *serio, struct serio_driver *drv) serio 120 drivers/input/touchscreen/dynapro.c pdynapro->serio = serio; serio 123 drivers/input/touchscreen/dynapro.c "%s/input0", serio->phys); serio 131 drivers/input/touchscreen/dynapro.c input_dev->dev.parent = &serio->dev; serio 139 drivers/input/touchscreen/dynapro.c serio_set_drvdata(serio, pdynapro); serio 141 drivers/input/touchscreen/dynapro.c err = serio_open(serio, drv); serio 151 drivers/input/touchscreen/dynapro.c fail3: serio_close(serio); serio 152 drivers/input/touchscreen/dynapro.c fail2: serio_set_drvdata(serio, NULL); serio 172 drivers/input/touchscreen/dynapro.c MODULE_DEVICE_TABLE(serio, dynapro_serio_ids); serio 42 drivers/input/touchscreen/egalax_ts_serial.c struct serio *serio; serio 68 drivers/input/touchscreen/egalax_ts_serial.c static irqreturn_t egalax_interrupt(struct serio *serio, serio 71 drivers/input/touchscreen/egalax_ts_serial.c struct egalax *egalax = serio_get_drvdata(serio); serio 83 drivers/input/touchscreen/egalax_ts_serial.c dev_dbg(&serio->dev, "unknown/unsynchronized data: %x\n", serio 96 drivers/input/touchscreen/egalax_ts_serial.c static int egalax_connect(struct serio *serio, struct serio_driver *drv) serio 109 drivers/input/touchscreen/egalax_ts_serial.c egalax->serio = serio; serio 112 drivers/input/touchscreen/egalax_ts_serial.c "%s/input0", serio->phys); serio 120 drivers/input/touchscreen/egalax_ts_serial.c input_dev->dev.parent = &serio->dev; serio 128 drivers/input/touchscreen/egalax_ts_serial.c serio_set_drvdata(serio, egalax); serio 130 drivers/input/touchscreen/egalax_ts_serial.c error = serio_open(serio, drv); serio 141 drivers/input/touchscreen/egalax_ts_serial.c serio_close(serio); serio 143 drivers/input/touchscreen/egalax_ts_serial.c serio_set_drvdata(serio, NULL); serio 150 drivers/input/touchscreen/egalax_ts_serial.c static void egalax_disconnect(struct serio *serio) serio 152 drivers/input/touchscreen/egalax_ts_serial.c struct egalax *egalax = serio_get_drvdata(serio); serio 154 drivers/input/touchscreen/egalax_ts_serial.c serio_close(serio); serio 155 drivers/input/touchscreen/egalax_ts_serial.c serio_set_drvdata(serio, NULL); serio 174 drivers/input/touchscreen/egalax_ts_serial.c MODULE_DEVICE_TABLE(serio, egalax_serio_ids); serio 53 drivers/input/touchscreen/elo.c struct serio *serio; serio 75 drivers/input/touchscreen/elo.c dev_dbg(&elo->serio->dev, serio 84 drivers/input/touchscreen/elo.c dev_dbg(&elo->serio->dev, serio 91 drivers/input/touchscreen/elo.c dev_dbg(&elo->serio->dev, serio 197 drivers/input/touchscreen/elo.c static irqreturn_t elo_interrupt(struct serio *serio, serio 200 drivers/input/touchscreen/elo.c struct elo *elo = serio_get_drvdata(serio); serio 228 drivers/input/touchscreen/elo.c serio_pause_rx(elo->serio); serio 231 drivers/input/touchscreen/elo.c serio_continue_rx(elo->serio); serio 233 drivers/input/touchscreen/elo.c if (serio_write(elo->serio, ELO10_LEAD_BYTE)) serio 238 drivers/input/touchscreen/elo.c if (serio_write(elo->serio, packet[i])) serio 242 drivers/input/touchscreen/elo.c if (serio_write(elo->serio, csum)) serio 274 drivers/input/touchscreen/elo.c dev_info(&elo->serio->dev, serio 286 drivers/input/touchscreen/elo.c static void elo_disconnect(struct serio *serio) serio 288 drivers/input/touchscreen/elo.c struct elo *elo = serio_get_drvdata(serio); serio 292 drivers/input/touchscreen/elo.c serio_close(serio); serio 293 drivers/input/touchscreen/elo.c serio_set_drvdata(serio, NULL); serio 304 drivers/input/touchscreen/elo.c static int elo_connect(struct serio *serio, struct serio_driver *drv) serio 317 drivers/input/touchscreen/elo.c elo->serio = serio; serio 318 drivers/input/touchscreen/elo.c elo->id = serio->id.id; serio 323 drivers/input/touchscreen/elo.c snprintf(elo->phys, sizeof(elo->phys), "%s/input0", serio->phys); serio 331 drivers/input/touchscreen/elo.c input_dev->dev.parent = &serio->dev; serio 336 drivers/input/touchscreen/elo.c serio_set_drvdata(serio, elo); serio 337 drivers/input/touchscreen/elo.c err = serio_open(serio, drv); serio 370 drivers/input/touchscreen/elo.c fail3: serio_close(serio); serio 371 drivers/input/touchscreen/elo.c fail2: serio_set_drvdata(serio, NULL); serio 391 drivers/input/touchscreen/elo.c MODULE_DEVICE_TABLE(serio, elo_serio_ids); serio 29 drivers/input/touchscreen/fujitsu_ts.c struct serio *serio; serio 43 drivers/input/touchscreen/fujitsu_ts.c static irqreturn_t fujitsu_interrupt(struct serio *serio, serio 46 drivers/input/touchscreen/fujitsu_ts.c struct fujitsu *fujitsu = serio_get_drvdata(serio); serio 79 drivers/input/touchscreen/fujitsu_ts.c static void fujitsu_disconnect(struct serio *serio) serio 81 drivers/input/touchscreen/fujitsu_ts.c struct fujitsu *fujitsu = serio_get_drvdata(serio); serio 85 drivers/input/touchscreen/fujitsu_ts.c serio_close(serio); serio 86 drivers/input/touchscreen/fujitsu_ts.c serio_set_drvdata(serio, NULL); serio 96 drivers/input/touchscreen/fujitsu_ts.c static int fujitsu_connect(struct serio *serio, struct serio_driver *drv) serio 109 drivers/input/touchscreen/fujitsu_ts.c fujitsu->serio = serio; serio 112 drivers/input/touchscreen/fujitsu_ts.c "%s/input0", serio->phys); serio 125 drivers/input/touchscreen/fujitsu_ts.c serio_set_drvdata(serio, fujitsu); serio 127 drivers/input/touchscreen/fujitsu_ts.c err = serio_open(serio, drv); serio 138 drivers/input/touchscreen/fujitsu_ts.c serio_close(serio); serio 140 drivers/input/touchscreen/fujitsu_ts.c serio_set_drvdata(serio, NULL); serio 160 drivers/input/touchscreen/fujitsu_ts.c MODULE_DEVICE_TABLE(serio, fujitsu_serio_ids); serio 38 drivers/input/touchscreen/gunze.c struct serio *serio; serio 60 drivers/input/touchscreen/gunze.c static irqreturn_t gunze_interrupt(struct serio *serio, serio 63 drivers/input/touchscreen/gunze.c struct gunze *gunze = serio_get_drvdata(serio); serio 79 drivers/input/touchscreen/gunze.c static void gunze_disconnect(struct serio *serio) serio 81 drivers/input/touchscreen/gunze.c struct gunze *gunze = serio_get_drvdata(serio); serio 85 drivers/input/touchscreen/gunze.c serio_close(serio); serio 86 drivers/input/touchscreen/gunze.c serio_set_drvdata(serio, NULL); serio 97 drivers/input/touchscreen/gunze.c static int gunze_connect(struct serio *serio, struct serio_driver *drv) serio 110 drivers/input/touchscreen/gunze.c gunze->serio = serio; serio 112 drivers/input/touchscreen/gunze.c snprintf(gunze->phys, sizeof(serio->phys), "%s/input0", serio->phys); serio 120 drivers/input/touchscreen/gunze.c input_dev->dev.parent = &serio->dev; serio 126 drivers/input/touchscreen/gunze.c serio_set_drvdata(serio, gunze); serio 128 drivers/input/touchscreen/gunze.c err = serio_open(serio, drv); serio 138 drivers/input/touchscreen/gunze.c fail3: serio_close(serio); serio 139 drivers/input/touchscreen/gunze.c fail2: serio_set_drvdata(serio, NULL); serio 159 drivers/input/touchscreen/gunze.c MODULE_DEVICE_TABLE(serio, gunze_serio_ids); serio 51 drivers/input/touchscreen/hampshire.c struct serio *serio; serio 72 drivers/input/touchscreen/hampshire.c static irqreturn_t hampshire_interrupt(struct serio *serio, serio 75 drivers/input/touchscreen/hampshire.c struct hampshire *phampshire = serio_get_drvdata(serio); serio 82 drivers/input/touchscreen/hampshire.c dev_dbg(&serio->dev, "unknown/unsynchronized data: %x\n", serio 88 drivers/input/touchscreen/hampshire.c static void hampshire_disconnect(struct serio *serio) serio 90 drivers/input/touchscreen/hampshire.c struct hampshire *phampshire = serio_get_drvdata(serio); serio 94 drivers/input/touchscreen/hampshire.c serio_close(serio); serio 95 drivers/input/touchscreen/hampshire.c serio_set_drvdata(serio, NULL); serio 106 drivers/input/touchscreen/hampshire.c static int hampshire_connect(struct serio *serio, struct serio_driver *drv) serio 119 drivers/input/touchscreen/hampshire.c phampshire->serio = serio; serio 122 drivers/input/touchscreen/hampshire.c "%s/input0", serio->phys); serio 130 drivers/input/touchscreen/hampshire.c input_dev->dev.parent = &serio->dev; serio 138 drivers/input/touchscreen/hampshire.c serio_set_drvdata(serio, phampshire); serio 140 drivers/input/touchscreen/hampshire.c err = serio_open(serio, drv); serio 150 drivers/input/touchscreen/hampshire.c fail3: serio_close(serio); serio 151 drivers/input/touchscreen/hampshire.c fail2: serio_set_drvdata(serio, NULL); serio 171 drivers/input/touchscreen/hampshire.c MODULE_DEVICE_TABLE(serio, hampshire_serio_ids); serio 54 drivers/input/touchscreen/inexio.c struct serio *serio; serio 74 drivers/input/touchscreen/inexio.c static irqreturn_t inexio_interrupt(struct serio *serio, serio 77 drivers/input/touchscreen/inexio.c struct inexio *pinexio = serio_get_drvdata(serio); serio 93 drivers/input/touchscreen/inexio.c static void inexio_disconnect(struct serio *serio) serio 95 drivers/input/touchscreen/inexio.c struct inexio *pinexio = serio_get_drvdata(serio); serio 99 drivers/input/touchscreen/inexio.c serio_close(serio); serio 100 drivers/input/touchscreen/inexio.c serio_set_drvdata(serio, NULL); serio 111 drivers/input/touchscreen/inexio.c static int inexio_connect(struct serio *serio, struct serio_driver *drv) serio 124 drivers/input/touchscreen/inexio.c pinexio->serio = serio; serio 126 drivers/input/touchscreen/inexio.c snprintf(pinexio->phys, sizeof(pinexio->phys), "%s/input0", serio->phys); serio 134 drivers/input/touchscreen/inexio.c input_dev->dev.parent = &serio->dev; serio 140 drivers/input/touchscreen/inexio.c serio_set_drvdata(serio, pinexio); serio 142 drivers/input/touchscreen/inexio.c err = serio_open(serio, drv); serio 152 drivers/input/touchscreen/inexio.c fail3: serio_close(serio); serio 153 drivers/input/touchscreen/inexio.c fail2: serio_set_drvdata(serio, NULL); serio 173 drivers/input/touchscreen/inexio.c MODULE_DEVICE_TABLE(serio, inexio_serio_ids); serio 55 drivers/input/touchscreen/mtouch.c struct serio *serio; serio 86 drivers/input/touchscreen/mtouch.c static irqreturn_t mtouch_interrupt(struct serio *serio, serio 89 drivers/input/touchscreen/mtouch.c struct mtouch *mtouch = serio_get_drvdata(serio); serio 107 drivers/input/touchscreen/mtouch.c static void mtouch_disconnect(struct serio *serio) serio 109 drivers/input/touchscreen/mtouch.c struct mtouch *mtouch = serio_get_drvdata(serio); serio 113 drivers/input/touchscreen/mtouch.c serio_close(serio); serio 114 drivers/input/touchscreen/mtouch.c serio_set_drvdata(serio, NULL); serio 125 drivers/input/touchscreen/mtouch.c static int mtouch_connect(struct serio *serio, struct serio_driver *drv) serio 138 drivers/input/touchscreen/mtouch.c mtouch->serio = serio; serio 140 drivers/input/touchscreen/mtouch.c snprintf(mtouch->phys, sizeof(mtouch->phys), "%s/input0", serio->phys); serio 148 drivers/input/touchscreen/mtouch.c input_dev->dev.parent = &serio->dev; serio 154 drivers/input/touchscreen/mtouch.c serio_set_drvdata(serio, mtouch); serio 156 drivers/input/touchscreen/mtouch.c err = serio_open(serio, drv); serio 166 drivers/input/touchscreen/mtouch.c fail3: serio_close(serio); serio 167 drivers/input/touchscreen/mtouch.c fail2: serio_set_drvdata(serio, NULL); serio 187 drivers/input/touchscreen/mtouch.c MODULE_DEVICE_TABLE(serio, mtouch_serio_ids); serio 52 drivers/input/touchscreen/penmount.c struct serio *serio; serio 161 drivers/input/touchscreen/penmount.c static irqreturn_t pm_interrupt(struct serio *serio, serio 164 drivers/input/touchscreen/penmount.c struct pm *pm = serio_get_drvdata(serio); serio 177 drivers/input/touchscreen/penmount.c static void pm_disconnect(struct serio *serio) serio 179 drivers/input/touchscreen/penmount.c struct pm *pm = serio_get_drvdata(serio); serio 181 drivers/input/touchscreen/penmount.c serio_close(serio); serio 186 drivers/input/touchscreen/penmount.c serio_set_drvdata(serio, NULL); serio 195 drivers/input/touchscreen/penmount.c static int pm_connect(struct serio *serio, struct serio_driver *drv) serio 209 drivers/input/touchscreen/penmount.c pm->serio = serio; serio 211 drivers/input/touchscreen/penmount.c snprintf(pm->phys, sizeof(pm->phys), "%s/input0", serio->phys); serio 220 drivers/input/touchscreen/penmount.c input_dev->dev.parent = &serio->dev; serio 225 drivers/input/touchscreen/penmount.c switch (serio->id.id) { serio 269 drivers/input/touchscreen/penmount.c serio_set_drvdata(serio, pm); serio 271 drivers/input/touchscreen/penmount.c err = serio_open(serio, drv); serio 281 drivers/input/touchscreen/penmount.c fail3: serio_close(serio); serio 282 drivers/input/touchscreen/penmount.c fail2: serio_set_drvdata(serio, NULL); serio 302 drivers/input/touchscreen/penmount.c MODULE_DEVICE_TABLE(serio, pm_serio_ids); serio 75 drivers/input/touchscreen/touchit213.c struct serio *serio; serio 82 drivers/input/touchscreen/touchit213.c static irqreturn_t touchit213_interrupt(struct serio *serio, serio 85 drivers/input/touchscreen/touchit213.c struct touchit213 *touchit213 = serio_get_drvdata(serio); serio 118 drivers/input/touchscreen/touchit213.c static void touchit213_disconnect(struct serio *serio) serio 120 drivers/input/touchscreen/touchit213.c struct touchit213 *touchit213 = serio_get_drvdata(serio); serio 124 drivers/input/touchscreen/touchit213.c serio_close(serio); serio 125 drivers/input/touchscreen/touchit213.c serio_set_drvdata(serio, NULL); serio 136 drivers/input/touchscreen/touchit213.c static int touchit213_connect(struct serio *serio, struct serio_driver *drv) serio 149 drivers/input/touchscreen/touchit213.c touchit213->serio = serio; serio 152 drivers/input/touchscreen/touchit213.c "%s/input0", serio->phys); serio 160 drivers/input/touchscreen/touchit213.c input_dev->dev.parent = &serio->dev; serio 168 drivers/input/touchscreen/touchit213.c serio_set_drvdata(serio, touchit213); serio 170 drivers/input/touchscreen/touchit213.c err = serio_open(serio, drv); serio 180 drivers/input/touchscreen/touchit213.c fail3: serio_close(serio); serio 181 drivers/input/touchscreen/touchit213.c fail2: serio_set_drvdata(serio, NULL); serio 201 drivers/input/touchscreen/touchit213.c MODULE_DEVICE_TABLE(serio, touchit213_serio_ids); serio 47 drivers/input/touchscreen/touchright.c struct serio *serio; serio 53 drivers/input/touchscreen/touchright.c static irqreturn_t tr_interrupt(struct serio *serio, serio 56 drivers/input/touchscreen/touchright.c struct tr *tr = serio_get_drvdata(serio); serio 81 drivers/input/touchscreen/touchright.c static void tr_disconnect(struct serio *serio) serio 83 drivers/input/touchscreen/touchright.c struct tr *tr = serio_get_drvdata(serio); serio 87 drivers/input/touchscreen/touchright.c serio_close(serio); serio 88 drivers/input/touchscreen/touchright.c serio_set_drvdata(serio, NULL); serio 99 drivers/input/touchscreen/touchright.c static int tr_connect(struct serio *serio, struct serio_driver *drv) serio 112 drivers/input/touchscreen/touchright.c tr->serio = serio; serio 114 drivers/input/touchscreen/touchright.c snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); serio 122 drivers/input/touchscreen/touchright.c input_dev->dev.parent = &serio->dev; serio 128 drivers/input/touchscreen/touchright.c serio_set_drvdata(serio, tr); serio 130 drivers/input/touchscreen/touchright.c err = serio_open(serio, drv); serio 140 drivers/input/touchscreen/touchright.c fail3: serio_close(serio); serio 141 drivers/input/touchscreen/touchright.c fail2: serio_set_drvdata(serio, NULL); serio 161 drivers/input/touchscreen/touchright.c MODULE_DEVICE_TABLE(serio, tr_serio_ids); serio 50 drivers/input/touchscreen/touchwin.c struct serio *serio; serio 57 drivers/input/touchscreen/touchwin.c static irqreturn_t tw_interrupt(struct serio *serio, serio 60 drivers/input/touchscreen/touchwin.c struct tw *tw = serio_get_drvdata(serio); serio 88 drivers/input/touchscreen/touchwin.c static void tw_disconnect(struct serio *serio) serio 90 drivers/input/touchscreen/touchwin.c struct tw *tw = serio_get_drvdata(serio); serio 94 drivers/input/touchscreen/touchwin.c serio_close(serio); serio 95 drivers/input/touchscreen/touchwin.c serio_set_drvdata(serio, NULL); serio 106 drivers/input/touchscreen/touchwin.c static int tw_connect(struct serio *serio, struct serio_driver *drv) serio 119 drivers/input/touchscreen/touchwin.c tw->serio = serio; serio 121 drivers/input/touchscreen/touchwin.c snprintf(tw->phys, sizeof(tw->phys), "%s/input0", serio->phys); serio 129 drivers/input/touchscreen/touchwin.c input_dev->dev.parent = &serio->dev; serio 135 drivers/input/touchscreen/touchwin.c serio_set_drvdata(serio, tw); serio 137 drivers/input/touchscreen/touchwin.c err = serio_open(serio, drv); serio 147 drivers/input/touchscreen/touchwin.c fail3: serio_close(serio); serio 148 drivers/input/touchscreen/touchwin.c fail2: serio_set_drvdata(serio, NULL); serio 168 drivers/input/touchscreen/touchwin.c MODULE_DEVICE_TABLE(serio, tw_serio_ids); serio 18 drivers/input/touchscreen/tsc40.c struct serio *serio; serio 41 drivers/input/touchscreen/tsc40.c static irqreturn_t tsc_interrupt(struct serio *serio, serio 44 drivers/input/touchscreen/tsc40.c struct tsc_ser *ptsc = serio_get_drvdata(serio); serio 51 drivers/input/touchscreen/tsc40.c dev_dbg(&serio->dev, serio 64 drivers/input/touchscreen/tsc40.c dev_dbg(&serio->dev, serio 80 drivers/input/touchscreen/tsc40.c static int tsc_connect(struct serio *serio, struct serio_driver *drv) serio 93 drivers/input/touchscreen/tsc40.c ptsc->serio = serio; serio 95 drivers/input/touchscreen/tsc40.c snprintf(ptsc->phys, sizeof(ptsc->phys), "%s/input0", serio->phys); serio 103 drivers/input/touchscreen/tsc40.c input_dev->dev.parent = &serio->dev; serio 110 drivers/input/touchscreen/tsc40.c serio_set_drvdata(serio, ptsc); serio 112 drivers/input/touchscreen/tsc40.c error = serio_open(serio, drv); serio 123 drivers/input/touchscreen/tsc40.c serio_close(serio); serio 125 drivers/input/touchscreen/tsc40.c serio_set_drvdata(serio, NULL); serio 132 drivers/input/touchscreen/tsc40.c static void tsc_disconnect(struct serio *serio) serio 134 drivers/input/touchscreen/tsc40.c struct tsc_ser *ptsc = serio_get_drvdata(serio); serio 136 drivers/input/touchscreen/tsc40.c serio_close(serio); serio 141 drivers/input/touchscreen/tsc40.c serio_set_drvdata(serio, NULL); serio 153 drivers/input/touchscreen/tsc40.c MODULE_DEVICE_TABLE(serio, tsc_serio_ids); serio 87 drivers/input/touchscreen/wacom_w8001.c struct serio *serio; serio 281 drivers/input/touchscreen/wacom_w8001.c static irqreturn_t w8001_interrupt(struct serio *serio, serio 284 drivers/input/touchscreen/wacom_w8001.c struct w8001 *w8001 = serio_get_drvdata(serio); serio 367 drivers/input/touchscreen/wacom_w8001.c rc = serio_write(w8001->serio, command); serio 525 drivers/input/touchscreen/wacom_w8001.c dev_err(&w8001->serio->dev, serio 553 drivers/input/touchscreen/wacom_w8001.c struct serio *serio) serio 563 drivers/input/touchscreen/wacom_w8001.c dev->dev.parent = &serio->dev; serio 572 drivers/input/touchscreen/wacom_w8001.c static void w8001_disconnect(struct serio *serio) serio 574 drivers/input/touchscreen/wacom_w8001.c struct w8001 *w8001 = serio_get_drvdata(serio); serio 576 drivers/input/touchscreen/wacom_w8001.c serio_close(serio); serio 584 drivers/input/touchscreen/wacom_w8001.c serio_set_drvdata(serio, NULL); serio 593 drivers/input/touchscreen/wacom_w8001.c static int w8001_connect(struct serio *serio, struct serio_driver *drv) serio 609 drivers/input/touchscreen/wacom_w8001.c w8001->serio = serio; serio 614 drivers/input/touchscreen/wacom_w8001.c snprintf(w8001->phys, sizeof(w8001->phys), "%s/input0", serio->phys); serio 616 drivers/input/touchscreen/wacom_w8001.c serio_set_drvdata(serio, w8001); serio 617 drivers/input/touchscreen/wacom_w8001.c err = serio_open(serio, drv); serio 642 drivers/input/touchscreen/wacom_w8001.c w8001_set_devdata(input_dev_pen, w8001, serio); serio 659 drivers/input/touchscreen/wacom_w8001.c w8001_set_devdata(input_dev_touch, w8001, serio); serio 676 drivers/input/touchscreen/wacom_w8001.c serio_close(serio); serio 678 drivers/input/touchscreen/wacom_w8001.c serio_set_drvdata(serio, NULL); serio 696 drivers/input/touchscreen/wacom_w8001.c MODULE_DEVICE_TABLE(serio, w8001_serio_ids); serio 114 drivers/media/usb/pulse8-cec/pulse8-cec.c struct serio *serio; serio 162 drivers/media/usb/pulse8-cec/pulse8-cec.c static irqreturn_t pulse8_interrupt(struct serio *serio, unsigned char data, serio 165 drivers/media/usb/pulse8-cec/pulse8-cec.c struct pulse8 *pulse8 = serio_get_drvdata(serio); serio 241 drivers/media/usb/pulse8-cec/pulse8-cec.c static void pulse8_disconnect(struct serio *serio) serio 243 drivers/media/usb/pulse8-cec/pulse8-cec.c struct pulse8 *pulse8 = serio_get_drvdata(serio); serio 247 drivers/media/usb/pulse8-cec/pulse8-cec.c dev_info(&serio->dev, "disconnected\n"); serio 248 drivers/media/usb/pulse8-cec/pulse8-cec.c serio_close(serio); serio 249 drivers/media/usb/pulse8-cec/pulse8-cec.c serio_set_drvdata(serio, NULL); serio 253 drivers/media/usb/pulse8-cec/pulse8-cec.c static int pulse8_send(struct serio *serio, const u8 *command, u8 cmd_len) serio 257 drivers/media/usb/pulse8-cec/pulse8-cec.c err = serio_write(serio, MSGSTART); serio 262 drivers/media/usb/pulse8-cec/pulse8-cec.c err = serio_write(serio, MSGESC); serio 264 drivers/media/usb/pulse8-cec/pulse8-cec.c err = serio_write(serio, *command - MSGOFFSET); serio 266 drivers/media/usb/pulse8-cec/pulse8-cec.c err = serio_write(serio, *command); serio 270 drivers/media/usb/pulse8-cec/pulse8-cec.c err = serio_write(serio, MSGEND); serio 284 drivers/media/usb/pulse8-cec/pulse8-cec.c err = pulse8_send(pulse8->serio, cmd, cmd_len); serio 329 drivers/media/usb/pulse8-cec/pulse8-cec.c static int pulse8_setup(struct pulse8 *pulse8, struct serio *serio, serio 648 drivers/media/usb/pulse8-cec/pulse8-cec.c static int pulse8_connect(struct serio *serio, struct serio_driver *drv) serio 661 drivers/media/usb/pulse8-cec/pulse8-cec.c pulse8->serio = serio; serio 663 drivers/media/usb/pulse8-cec/pulse8-cec.c dev_name(&serio->dev), caps, 1); serio 668 drivers/media/usb/pulse8-cec/pulse8-cec.c pulse8->dev = &serio->dev; serio 669 drivers/media/usb/pulse8-cec/pulse8-cec.c serio_set_drvdata(serio, pulse8); serio 675 drivers/media/usb/pulse8-cec/pulse8-cec.c err = serio_open(serio, drv); serio 679 drivers/media/usb/pulse8-cec/pulse8-cec.c err = pulse8_setup(pulse8, serio, &log_addrs, &pa); serio 683 drivers/media/usb/pulse8-cec/pulse8-cec.c err = cec_register_adapter(pulse8->adap, &serio->dev); serio 703 drivers/media/usb/pulse8-cec/pulse8-cec.c serio_close(serio); serio 706 drivers/media/usb/pulse8-cec/pulse8-cec.c serio_set_drvdata(serio, NULL); serio 749 drivers/media/usb/pulse8-cec/pulse8-cec.c MODULE_DEVICE_TABLE(serio, pulse8_serio_ids); serio 42 drivers/media/usb/rainshadow-cec/rainshadow-cec.c struct serio *serio; serio 169 drivers/media/usb/rainshadow-cec/rainshadow-cec.c static irqreturn_t rain_interrupt(struct serio *serio, unsigned char data, serio 172 drivers/media/usb/rainshadow-cec/rainshadow-cec.c struct rain *rain = serio_get_drvdata(serio); serio 187 drivers/media/usb/rainshadow-cec/rainshadow-cec.c static void rain_disconnect(struct serio *serio) serio 189 drivers/media/usb/rainshadow-cec/rainshadow-cec.c struct rain *rain = serio_get_drvdata(serio); serio 193 drivers/media/usb/rainshadow-cec/rainshadow-cec.c dev_info(&serio->dev, "disconnected\n"); serio 194 drivers/media/usb/rainshadow-cec/rainshadow-cec.c serio_close(serio); serio 195 drivers/media/usb/rainshadow-cec/rainshadow-cec.c serio_set_drvdata(serio, NULL); serio 201 drivers/media/usb/rainshadow-cec/rainshadow-cec.c int err = serio_write(rain->serio, '!'); serio 205 drivers/media/usb/rainshadow-cec/rainshadow-cec.c err = serio_write(rain->serio, *command++); serio 207 drivers/media/usb/rainshadow-cec/rainshadow-cec.c err = serio_write(rain->serio, '~'); serio 239 drivers/media/usb/rainshadow-cec/rainshadow-cec.c static int rain_setup(struct rain *rain, struct serio *serio, serio 306 drivers/media/usb/rainshadow-cec/rainshadow-cec.c static int rain_connect(struct serio *serio, struct serio_driver *drv) serio 319 drivers/media/usb/rainshadow-cec/rainshadow-cec.c rain->serio = serio; serio 321 drivers/media/usb/rainshadow-cec/rainshadow-cec.c dev_name(&serio->dev), caps, 1); serio 326 drivers/media/usb/rainshadow-cec/rainshadow-cec.c rain->dev = &serio->dev; serio 327 drivers/media/usb/rainshadow-cec/rainshadow-cec.c serio_set_drvdata(serio, rain); serio 332 drivers/media/usb/rainshadow-cec/rainshadow-cec.c err = serio_open(serio, drv); serio 336 drivers/media/usb/rainshadow-cec/rainshadow-cec.c err = rain_setup(rain, serio, &log_addrs, &pa); serio 340 drivers/media/usb/rainshadow-cec/rainshadow-cec.c err = cec_register_adapter(rain->adap, &serio->dev); serio 348 drivers/media/usb/rainshadow-cec/rainshadow-cec.c serio_close(serio); serio 351 drivers/media/usb/rainshadow-cec/rainshadow-cec.c serio_set_drvdata(serio, NULL); serio 367 drivers/media/usb/rainshadow-cec/rainshadow-cec.c MODULE_DEVICE_TABLE(serio, rain_serio_ids); serio 47 drivers/platform/x86/asus-nb-wmi.c struct serio *port) serio 47 drivers/platform/x86/asus-wmi.h struct serio *serio); serio 693 drivers/platform/x86/dell-laptop.c struct serio *port) serio 303 drivers/platform/x86/hp_accel.c struct serio *port) serio 807 drivers/platform/x86/msi-laptop.c struct serio *port) serio 2666 drivers/platform/x86/toshiba_acpi.c struct serio *port) serio 42 drivers/staging/nvec/nvec_ps2.c struct serio *ser_dev; serio 49 drivers/staging/nvec/nvec_ps2.c static int ps2_startstreaming(struct serio *ser_dev) serio 56 drivers/staging/nvec/nvec_ps2.c static void ps2_stopstreaming(struct serio *ser_dev) serio 63 drivers/staging/nvec/nvec_ps2.c static int ps2_sendcommand(struct serio *ser_dev, unsigned char cmd) serio 104 drivers/staging/nvec/nvec_ps2.c struct serio *ser_dev; serio 103 drivers/tty/serial/sunsu.c struct serio serio; serio 513 drivers/tty/serial/sunsu.c serio_interrupt(&up->serio, ch, 0); serio 527 drivers/tty/serial/sunsu.c serio_interrupt(&up->serio, ch, 0); serio 990 drivers/tty/serial/sunsu.c static int sunsu_serio_write(struct serio *serio, unsigned char ch) serio 992 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = serio->port_data; serio 1010 drivers/tty/serial/sunsu.c static int sunsu_serio_open(struct serio *serio) serio 1012 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = serio->port_data; serio 1027 drivers/tty/serial/sunsu.c static void sunsu_serio_close(struct serio *serio) serio 1029 drivers/tty/serial/sunsu.c struct uart_sunsu_port *up = serio->port_data; serio 1200 drivers/tty/serial/sunsu.c struct serio *serio; serio 1223 drivers/tty/serial/sunsu.c serio = &up->serio; serio 1224 drivers/tty/serial/sunsu.c serio->port_data = up; serio 1226 drivers/tty/serial/sunsu.c serio->id.type = SERIO_RS232; serio 1228 drivers/tty/serial/sunsu.c serio->id.proto = SERIO_SUNKBD; serio 1229 drivers/tty/serial/sunsu.c strlcpy(serio->name, "sukbd", sizeof(serio->name)); serio 1231 drivers/tty/serial/sunsu.c serio->id.proto = SERIO_SUN; serio 1232 drivers/tty/serial/sunsu.c serio->id.extra = 1; serio 1233 drivers/tty/serial/sunsu.c strlcpy(serio->name, "sums", sizeof(serio->name)); serio 1235 drivers/tty/serial/sunsu.c strlcpy(serio->phys, serio 1237 drivers/tty/serial/sunsu.c sizeof(serio->phys)); serio 1239 drivers/tty/serial/sunsu.c serio->write = sunsu_serio_write; serio 1240 drivers/tty/serial/sunsu.c serio->open = sunsu_serio_open; serio 1241 drivers/tty/serial/sunsu.c serio->close = sunsu_serio_close; serio 1242 drivers/tty/serial/sunsu.c serio->dev.parent = up->port.dev; serio 1244 drivers/tty/serial/sunsu.c serio_register_port(serio); serio 1540 drivers/tty/serial/sunsu.c serio_unregister_port(&up->serio); serio 102 drivers/tty/serial/sunzilog.c struct serio serio; serio 305 drivers/tty/serial/sunzilog.c serio_interrupt(&up->serio, ch, 0); serio 320 drivers/tty/serial/sunzilog.c serio_interrupt(&up->serio, ch, 0); serio 1158 drivers/tty/serial/sunzilog.c static int sunzilog_serio_write(struct serio *serio, unsigned char ch) serio 1160 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = serio->port_data; serio 1172 drivers/tty/serial/sunzilog.c static int sunzilog_serio_open(struct serio *serio) serio 1174 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = serio->port_data; serio 1189 drivers/tty/serial/sunzilog.c static void sunzilog_serio_close(struct serio *serio) serio 1191 drivers/tty/serial/sunzilog.c struct uart_sunzilog_port *up = serio->port_data; serio 1307 drivers/tty/serial/sunzilog.c struct serio *serio = &up->serio; serio 1309 drivers/tty/serial/sunzilog.c serio->port_data = up; serio 1311 drivers/tty/serial/sunzilog.c serio->id.type = SERIO_RS232; serio 1313 drivers/tty/serial/sunzilog.c serio->id.proto = SERIO_SUNKBD; serio 1314 drivers/tty/serial/sunzilog.c strlcpy(serio->name, "zskbd", sizeof(serio->name)); serio 1316 drivers/tty/serial/sunzilog.c serio->id.proto = SERIO_SUN; serio 1317 drivers/tty/serial/sunzilog.c serio->id.extra = 1; serio 1318 drivers/tty/serial/sunzilog.c strlcpy(serio->name, "zsms", sizeof(serio->name)); serio 1320 drivers/tty/serial/sunzilog.c strlcpy(serio->phys, serio 1323 drivers/tty/serial/sunzilog.c sizeof(serio->phys)); serio 1325 drivers/tty/serial/sunzilog.c serio->write = sunzilog_serio_write; serio 1326 drivers/tty/serial/sunzilog.c serio->open = sunzilog_serio_open; serio 1327 drivers/tty/serial/sunzilog.c serio->close = sunzilog_serio_close; serio 1328 drivers/tty/serial/sunzilog.c serio->dev.parent = up->port.dev; serio 1330 drivers/tty/serial/sunzilog.c serio_register_port(serio); serio 1514 drivers/tty/serial/sunzilog.c serio_unregister_port(&up->serio); serio 156 include/linux/hil_mlc.h struct serio *serio[HIL_MLC_DEVMEM]; serio 54 include/linux/i8042.h struct serio; serio 62 include/linux/i8042.h struct serio *serio)); serio 64 include/linux/i8042.h struct serio *serio)); serio 82 include/linux/i8042.h struct serio *serio)) serio 88 include/linux/i8042.h struct serio *serio)) serio 34 include/linux/libps2.h struct serio *serio; serio 48 include/linux/libps2.h void ps2_init(struct ps2dev *ps2dev, struct serio *serio); serio 34 include/linux/serio.h int (*write)(struct serio *, unsigned char); serio 35 include/linux/serio.h int (*open)(struct serio *); serio 36 include/linux/serio.h void (*close)(struct serio *); serio 37 include/linux/serio.h int (*start)(struct serio *); serio 38 include/linux/serio.h void (*stop)(struct serio *); serio 40 include/linux/serio.h struct serio *parent; serio 65 include/linux/serio.h #define to_serio_port(d) container_of(d, struct serio, dev) serio 73 include/linux/serio.h void (*write_wakeup)(struct serio *); serio 74 include/linux/serio.h irqreturn_t (*interrupt)(struct serio *, unsigned char, unsigned int); serio 75 include/linux/serio.h int (*connect)(struct serio *, struct serio_driver *drv); serio 76 include/linux/serio.h int (*reconnect)(struct serio *); serio 77 include/linux/serio.h int (*fast_reconnect)(struct serio *); serio 78 include/linux/serio.h void (*disconnect)(struct serio *); serio 79 include/linux/serio.h void (*cleanup)(struct serio *); serio 85 include/linux/serio.h int serio_open(struct serio *serio, struct serio_driver *drv); serio 86 include/linux/serio.h void serio_close(struct serio *serio); serio 87 include/linux/serio.h void serio_rescan(struct serio *serio); serio 88 include/linux/serio.h void serio_reconnect(struct serio *serio); serio 89 include/linux/serio.h irqreturn_t serio_interrupt(struct serio *serio, unsigned char data, unsigned int flags); serio 91 include/linux/serio.h void __serio_register_port(struct serio *serio, struct module *owner); serio 94 include/linux/serio.h #define serio_register_port(serio) \ serio 95 include/linux/serio.h __serio_register_port(serio, THIS_MODULE) serio 97 include/linux/serio.h void serio_unregister_port(struct serio *serio); serio 98 include/linux/serio.h void serio_unregister_child_port(struct serio *serio); serio 122 include/linux/serio.h static inline int serio_write(struct serio *serio, unsigned char data) serio 124 include/linux/serio.h if (serio->write) serio 125 include/linux/serio.h return serio->write(serio, data); serio 130 include/linux/serio.h static inline void serio_drv_write_wakeup(struct serio *serio) serio 132 include/linux/serio.h if (serio->drv && serio->drv->write_wakeup) serio 133 include/linux/serio.h serio->drv->write_wakeup(serio); serio 140 include/linux/serio.h static inline void *serio_get_drvdata(struct serio *serio) serio 142 include/linux/serio.h return dev_get_drvdata(&serio->dev); serio 145 include/linux/serio.h static inline void serio_set_drvdata(struct serio *serio, void *data) serio 147 include/linux/serio.h dev_set_drvdata(&serio->dev, data); serio 154 include/linux/serio.h static inline void serio_pause_rx(struct serio *serio) serio 156 include/linux/serio.h spin_lock_irq(&serio->lock); serio 159 include/linux/serio.h static inline void serio_continue_rx(struct serio *serio) serio 161 include/linux/serio.h spin_unlock_irq(&serio->lock);