Lines Matching defs:serio

19 #include <linux/serio.h>
119 struct psmouse *psmouse_from_serio(struct serio *serio)
121 struct ps2dev *ps2dev = serio_get_drvdata(serio);
263 * counters while holding serio lock so fighting with interrupt handler
268 serio_pause_rx(psmouse->ps2dev.serio);
270 serio_continue_rx(psmouse->ps2dev.serio);
292 serio_reconnect(psmouse->ps2dev.serio);
372 pm_wakeup_event(&ps2dev->serio->dev, 0);
400 serio_reconnect(ps2dev->serio);
514 struct serio *serio = psmouse->ps2dev.serio;
518 if (strncmp(serio->firmware_id, "PNP: ", 5))
521 fw_id_copy = kstrndup(&serio->firmware_id[5],
522 sizeof(serio->firmware_id) - 5,
998 if (psmouse->ps2dev.serio->id.type == SERIO_PS_PSTHRU &&
1274 ps2dev->serio->phys, error);
1301 psmouse->ps2dev.serio->phys);
1320 psmouse->ps2dev.serio->phys, error);
1335 struct serio *serio = psmouse->ps2dev.serio;
1345 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) {
1346 parent = psmouse_from_serio(serio->parent);
1407 psmouse->ps2dev.serio->phys);
1415 serio_reconnect(serio);
1428 static void psmouse_cleanup(struct serio *serio)
1430 struct psmouse *psmouse = psmouse_from_serio(serio);
1435 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) {
1436 parent = psmouse_from_serio(serio->parent);
1447 psmouse->ps2dev.serio->phys);
1476 static void psmouse_disconnect(struct serio *serio)
1478 struct psmouse *psmouse = psmouse_from_serio(serio);
1490 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) {
1491 parent = psmouse_from_serio(serio->parent);
1503 serio_close(serio);
1504 serio_set_drvdata(serio, NULL);
1524 input_dev->dev.parent = &psmouse->ps2dev.serio->dev;
1574 * psmouse_connect() is a callback from the serio module when
1575 * an unhandled serio port is found.
1577 static int psmouse_connect(struct serio *serio, struct serio_driver *drv)
1589 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) {
1590 parent = psmouse_from_serio(serio->parent);
1599 ps2_init(&psmouse->ps2dev, serio,
1603 snprintf(psmouse->phys, sizeof(psmouse->phys), "%s/input0", serio->phys);
1607 error = serio_open(serio, drv);
1612 if (serio->id.type == SERIO_PS_PSTHRU)
1664 serio_close(serio);
1666 serio_set_drvdata(serio, NULL);
1675 static int __psmouse_reconnect(struct serio *serio, bool fast_reconnect)
1677 struct psmouse *psmouse = psmouse_from_serio(serio);
1695 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) {
1696 parent = psmouse_from_serio(serio->parent);
1747 static int psmouse_reconnect(struct serio *serio)
1749 return __psmouse_reconnect(serio, false);
1752 static int psmouse_fast_reconnect(struct serio *serio)
1754 return __psmouse_reconnect(serio, true);
1773 MODULE_DEVICE_TABLE(serio, psmouse_serio_ids);
1793 struct serio *serio = to_serio_port(dev);
1795 struct psmouse *psmouse = psmouse_from_serio(serio);
1807 struct serio *serio = to_serio_port(dev);
1816 psmouse = psmouse_from_serio(serio);
1830 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) {
1831 parent = psmouse_from_serio(serio->parent);
1884 struct serio *serio = psmouse->ps2dev.serio;
1902 while (!list_empty(&serio->children)) {
1911 serio_unregister_child_port(serio);
1914 if (serio->drv != &psmouse_drv) {
1925 if (serio->parent && serio->id.type == SERIO_PS_PSTHRU) {
1926 parent = psmouse_from_serio(serio->parent);