Lines Matching defs:rc_dev
42 static void smi_raw_process(struct rc_dev *rc_dev, const u8 *buffer,
53 rc_dev->rx_resolution;
54 ir_raw_event_store_with_filter(rc_dev, &rawir);
62 struct rc_dev *rc_dev = ir->rc_dev;
68 dev_dbg(&rc_dev->dev, "ircontrol: 0x%08x\n", control);
73 dev_dbg(&rc_dev->dev, "ircount %d\n", ir_count);
80 dev_dbg(&rc_dev->dev, "IRData 0x%08x\n", data);
87 smi_raw_process(rc_dev, ir->irData, ir_count);
93 dev_dbg(&rc_dev->dev, "high idle\n");
97 ir_raw_event_store_with_filter(rc_dev, &rawir);
101 ir_raw_event_handle(rc_dev);
135 struct rc_dev *rc_dev;
138 rc_dev = rc_allocate_device(RC_DRIVER_IR_RAW);
139 if (!rc_dev)
148 rc_dev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
149 rc_dev->driver_name = "SMI_PCIe";
150 rc_dev->input_phys = ir->input_phys;
151 rc_dev->device_name = ir->device_name;
152 rc_dev->input_id.bustype = BUS_PCI;
153 rc_dev->input_id.version = 1;
154 rc_dev->input_id.vendor = dev->pci_dev->subsystem_vendor;
155 rc_dev->input_id.product = dev->pci_dev->subsystem_device;
156 rc_dev->dev.parent = &dev->pci_dev->dev;
158 rc_dev->map_name = dev->info->rc_map;
159 rc_dev->timeout = SMI_SAMPLE_PERIOD * SMI_SAMPLE_IDLEMIN;
160 rc_dev->rx_resolution = SMI_SAMPLE_PERIOD;
162 ir->rc_dev = rc_dev;
167 ret = rc_register_device(rc_dev);
173 rc_free_device(rc_dev);
180 struct rc_dev *rc_dev = ir->rc_dev;
182 rc_unregister_device(rc_dev);
184 ir->rc_dev = NULL;