Lines Matching refs:serio
42 struct serio *serio; member
48 static irqreturn_t pm_interrupt(struct serio *serio, in pm_interrupt() argument
51 struct pm *pm = serio_get_drvdata(serio); in pm_interrupt()
73 static void pm_disconnect(struct serio *serio) in pm_disconnect() argument
75 struct pm *pm = serio_get_drvdata(serio); in pm_disconnect()
79 serio_close(serio); in pm_disconnect()
80 serio_set_drvdata(serio, NULL); in pm_disconnect()
91 static int pm_connect(struct serio *serio, struct serio_driver *drv) in pm_connect() argument
104 pm->serio = serio; in pm_connect()
106 snprintf(pm->phys, sizeof(pm->phys), "%s/input0", serio->phys); in pm_connect()
114 input_dev->dev.parent = &serio->dev; in pm_connect()
121 serio_set_drvdata(serio, pm); in pm_connect()
123 err = serio_open(serio, drv); in pm_connect()
133 fail3: serio_close(serio); in pm_connect()
134 fail2: serio_set_drvdata(serio, NULL); in pm_connect()
154 MODULE_DEVICE_TABLE(serio, pm_serio_ids);