Lines Matching refs:rc
19 #include <media/rc-core.h>
33 struct rc_dev *rc;
70 ir_raw_event_overflow(ir->rc);
77 ir_raw_event_store_with_filter(ir->rc, &rawir);
84 rawir.duration = ir->rc->timeout;
86 ir_raw_event_store_with_filter(ir->rc, &rawir);
88 ir_raw_event_handle(ir->rc);
146 struct rc_dev *rc;
188 rc = rc_allocate_device(RC_DRIVER_IR_RAW);
189 if (!rc)
192 rc->device_name = DRIVER_DESC;
193 rc->input_phys = ir->phys;
194 usb_to_input_id(udev, &rc->input_id);
195 rc->dev.parent = &intf->dev;
200 rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER &
206 rc->priv = ir;
207 rc->driver_name = DRIVER_NAME;
208 rc->map_name = RC_MAP_HAUPPAUGE;
209 rc->timeout = MS_TO_US(100);
210 rc->rx_resolution = 85;
212 ir->rc = rc;
213 ret = rc_register_device(rc);
215 dev_err(&intf->dev, "failed to register rc device: %d", ret);
229 rc_free_device(ir->rc);
239 rc_unregister_device(ir->rc);