Lines Matching refs:rdev
27 struct rc_dev *rdev; member
67 static void st_rc_send_lirc_timeout(struct rc_dev *rdev) in st_rc_send_lirc_timeout() argument
71 ir_raw_event_store(rdev, &ev); in st_rc_send_lirc_timeout()
113 ir_raw_event_reset(dev->rdev); in st_rc_rx_interrupt()
138 ir_raw_event_store(dev->rdev, &ev); in st_rc_rx_interrupt()
143 ir_raw_event_store(dev->rdev, &ev); in st_rc_rx_interrupt()
145 st_rc_send_lirc_timeout(dev->rdev); in st_rc_rx_interrupt()
156 ir_raw_event_handle(dev->rdev); in st_rc_rx_interrupt()
194 rc_unregister_device(rc_dev->rdev); in st_rc_remove()
198 static int st_rc_open(struct rc_dev *rdev) in st_rc_open() argument
200 struct st_rc_device *dev = rdev->priv; in st_rc_open()
211 static void st_rc_close(struct rc_dev *rdev) in st_rc_close() argument
213 struct st_rc_device *dev = rdev->priv; in st_rc_close()
222 struct rc_dev *rdev; in st_rc_probe() local
234 rdev = rc_allocate_device(); in st_rc_probe()
236 if (!rdev) in st_rc_probe()
289 rdev->driver_type = RC_DRIVER_IR_RAW; in st_rc_probe()
290 rdev->allowed_protocols = RC_BIT_ALL; in st_rc_probe()
292 rdev->rx_resolution = 100; in st_rc_probe()
293 rdev->timeout = US_TO_NS(MAX_SYMB_TIME); in st_rc_probe()
294 rdev->priv = rc_dev; in st_rc_probe()
295 rdev->open = st_rc_open; in st_rc_probe()
296 rdev->close = st_rc_close; in st_rc_probe()
297 rdev->driver_name = IR_ST_NAME; in st_rc_probe()
298 rdev->map_name = RC_MAP_LIRC; in st_rc_probe()
299 rdev->input_name = "ST Remote Control Receiver"; in st_rc_probe()
305 ret = rc_register_device(rdev); in st_rc_probe()
309 rc_dev->rdev = rdev; in st_rc_probe()
321 st_rc_send_lirc_timeout(rdev); in st_rc_probe()
327 rc_unregister_device(rdev); in st_rc_probe()
328 rdev = NULL; in st_rc_probe()
332 rc_free_device(rdev); in st_rc_probe()
362 struct rc_dev *rdev = rc_dev->rdev; in st_rc_resume() local
370 if (rdev->users) { in st_rc_resume()