Lines Matching full:serio
9 #include <linux/serio.h>
31 struct serio *serio; member
62 struct serio *serio = f03->serio; in rmi_f03_commit_buttons() local
64 guard(serio_pause_rx)(serio); in rmi_f03_commit_buttons()
66 if (serio->drv) { in rmi_f03_commit_buttons()
67 serio->drv->interrupt(serio, PSMOUSE_OOB_EXTRA_BTNS, in rmi_f03_commit_buttons()
69 serio->drv->interrupt(serio, f03->overwrite_buttons, in rmi_f03_commit_buttons()
74 static int rmi_f03_pt_write(struct serio *id, unsigned char val) in rmi_f03_pt_write()
139 static int rmi_f03_pt_open(struct serio *serio) in rmi_f03_pt_open() argument
141 struct f03_data *f03 = serio->port_data; in rmi_f03_pt_open()
162 static void rmi_f03_pt_close(struct serio *serio) in rmi_f03_pt_close() argument
164 struct f03_data *f03 = serio->port_data; in rmi_f03_pt_close()
172 struct serio *serio; in rmi_f03_register_pt() local
174 serio = kzalloc(sizeof(struct serio), GFP_KERNEL); in rmi_f03_register_pt()
175 if (!serio) in rmi_f03_register_pt()
178 serio->id.type = SERIO_PS_PSTHRU; in rmi_f03_register_pt()
179 serio->write = rmi_f03_pt_write; in rmi_f03_register_pt()
180 serio->open = rmi_f03_pt_open; in rmi_f03_register_pt()
181 serio->close = rmi_f03_pt_close; in rmi_f03_register_pt()
182 serio->port_data = f03; in rmi_f03_register_pt()
184 strscpy(serio->name, "RMI4 PS/2 pass-through", sizeof(serio->name)); in rmi_f03_register_pt()
185 snprintf(serio->phys, sizeof(serio->phys), "%s/serio0", in rmi_f03_register_pt()
187 serio->dev.parent = &f03->fn->dev; in rmi_f03_register_pt()
189 f03->serio = serio; in rmi_f03_register_pt()
191 printk(KERN_INFO "serio: %s port at %s\n", in rmi_f03_register_pt()
192 serio->name, dev_name(&f03->fn->dev)); in rmi_f03_register_pt()
193 serio_register_port(serio); in rmi_f03_register_pt()
277 serio_interrupt(f03->serio, 0, SERIO_TIMEOUT); in rmi_f03_attention()
301 serio_interrupt(f03->serio, ob_data, serio_flags); in rmi_f03_attention()
312 serio_unregister_port(f03->serio); in rmi_f03_remove()