Lines Matching refs:rc_dev
118 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_decode() local
147 rc_keydown(rc_dev, RC_TYPE_RC5, scancode, toggle); in smi_ir_decode()
183 struct rc_dev *rc_dev; in smi_ir_init() local
186 rc_dev = rc_allocate_device(); in smi_ir_init()
187 if (!rc_dev) in smi_ir_init()
196 rc_dev->driver_name = "SMI_PCIe"; in smi_ir_init()
197 rc_dev->input_phys = ir->input_phys; in smi_ir_init()
198 rc_dev->input_name = ir->input_name; in smi_ir_init()
199 rc_dev->input_id.bustype = BUS_PCI; in smi_ir_init()
200 rc_dev->input_id.version = 1; in smi_ir_init()
201 rc_dev->input_id.vendor = dev->pci_dev->subsystem_vendor; in smi_ir_init()
202 rc_dev->input_id.product = dev->pci_dev->subsystem_device; in smi_ir_init()
203 rc_dev->dev.parent = &dev->pci_dev->dev; in smi_ir_init()
205 rc_dev->driver_type = RC_DRIVER_SCANCODE; in smi_ir_init()
206 rc_dev->map_name = dev->info->rc_map; in smi_ir_init()
208 ir->rc_dev = rc_dev; in smi_ir_init()
214 ret = rc_register_device(rc_dev); in smi_ir_init()
220 rc_free_device(rc_dev); in smi_ir_init()
227 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_exit() local
230 rc_unregister_device(rc_dev); in smi_ir_exit()
231 ir->rc_dev = NULL; in smi_ir_exit()