Lines Matching defs:rdev
85 struct rc_dev *rdev;
159 static int hix5hd2_ir_open(struct rc_dev *rdev)
161 struct hix5hd2_ir_priv *priv = rdev->priv;
176 static void hix5hd2_ir_close(struct rc_dev *rdev)
178 struct hix5hd2_ir_priv *priv = rdev->priv;
197 ir_raw_event_reset(priv->rdev);
219 ir_raw_event_store(priv->rdev, &ev);
224 ir_raw_event_store(priv->rdev, &ev);
226 ir_raw_event_set_idle(priv->rdev, true);
237 ir_raw_event_handle(priv->rdev);
250 struct rc_dev *rdev;
286 rdev = rc_allocate_device(RC_DRIVER_IR_RAW);
287 if (!rdev)
301 rdev->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
302 rdev->priv = priv;
303 rdev->open = hix5hd2_ir_open;
304 rdev->close = hix5hd2_ir_close;
305 rdev->driver_name = IR_HIX5HD2_NAME;
307 rdev->map_name = map_name ?: RC_MAP_EMPTY;
308 rdev->device_name = IR_HIX5HD2_NAME;
309 rdev->input_phys = IR_HIX5HD2_NAME "/input0";
310 rdev->input_id.bustype = BUS_HOST;
311 rdev->input_id.vendor = 0x0001;
312 rdev->input_id.product = 0x0001;
313 rdev->input_id.version = 0x0100;
314 rdev->rx_resolution = 10;
315 rdev->timeout = IR_CFG_SYMBOL_MAXWIDTH * 10;
317 ret = rc_register_device(rdev);
328 priv->rdev = rdev;
335 rc_unregister_device(rdev);
336 rdev = NULL;
340 rc_free_device(rdev);
350 rc_unregister_device(priv->rdev);