/linux/drivers/media/rc/ |
A D | st_rc.c | 24 struct rc_dev *rdev; 232 struct rc_dev *rdev; in st_rc_probe() 240 if (!rc_dev) in st_rc_probe() 271 if (rc_dev->irq < 0) { in st_rc_probe() 272 ret = rc_dev->irq; in st_rc_probe() 283 rc_dev->rx_base = rc_dev->base + 0x40; in st_rc_probe() 285 rc_dev->rx_base = rc_dev->base; in st_rc_probe() 293 rc_dev->dev = dev; in st_rc_probe() 303 rdev->priv = rc_dev; in st_rc_probe() 314 rc_dev->rdev = rdev; in st_rc_probe() [all …]
|
A D | rc-core-priv.h | 24 int rc_open(struct rc_dev *rdev); 31 void rc_close(struct rc_dev *rdev); 44 int (*raw_register)(struct rc_dev *dev); 45 int (*raw_unregister)(struct rc_dev *dev); 309 int ir_raw_event_prepare(struct rc_dev *dev); 310 int ir_raw_event_register(struct rc_dev *dev); 311 void ir_raw_event_free(struct rc_dev *dev); 326 int lirc_register(struct rc_dev *dev); 327 void lirc_unregister(struct rc_dev *dev); 328 struct rc_dev *rc_dev_get_from_fd(int fd); [all …]
|
A D | rc-loopback.c | 23 struct rc_dev *dev; 36 static int loop_set_tx_mask(struct rc_dev *dev, u32 mask) in loop_set_tx_mask() 50 static int loop_set_tx_carrier(struct rc_dev *dev, u32 carrier) in loop_set_tx_carrier() 59 static int loop_set_tx_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in loop_set_tx_duty_cycle() 73 static int loop_set_rx_carrier_range(struct rc_dev *dev, u32 min, u32 max) in loop_set_rx_carrier_range() 88 static int loop_tx_ir(struct rc_dev *dev, unsigned *txbuf, unsigned count) in loop_tx_ir() 137 static void loop_set_idle(struct rc_dev *dev, bool enable) in loop_set_idle() 147 static int loop_set_wideband_receiver(struct rc_dev *dev, int enable) in loop_set_wideband_receiver() 159 static int loop_set_carrier_report(struct rc_dev *dev, int enable) in loop_set_carrier_report() 171 static int loop_set_wakeup_filter(struct rc_dev *dev, in loop_set_wakeup_filter() [all …]
|
A D | xbox_remote.c | 53 struct rc_dev *rdev; 64 static int xbox_remote_rc_open(struct rc_dev *rdev) in xbox_remote_rc_open() 79 static void xbox_remote_rc_close(struct rc_dev *rdev) in xbox_remote_rc_close() 148 struct rc_dev *rdev = xbox_remote->rdev; in xbox_remote_rc_init() 194 struct rc_dev *rc_dev; in xbox_remote_probe() local 219 rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in xbox_remote_probe() 220 if (!xbox_remote || !rc_dev) in xbox_remote_probe() 229 xbox_remote->rdev = rc_dev; in xbox_remote_probe() 247 rc_dev->map_name = RC_MAP_XBOX_DVD; /* default map */ in xbox_remote_probe() 270 rc_free_device(rc_dev); in xbox_remote_probe()
|
A D | rc-main.c | 657 void rc_keyup(struct rc_dev *dev) in rc_keyup() 737 void rc_repeat(struct rc_dev *dev) in rc_repeat() 969 int rc_open(struct rc_dev *rdev) in rc_open() 1000 void rc_close(struct rc_dev *rdev) in rc_close() 1107 struct rc_dev *dev = to_rc_dev(device); in show_protocols() 1279 struct rc_dev *dev = to_rc_dev(device); in store_protocols() 1370 struct rc_dev *dev = to_rc_dev(device); in show_filter() 1701 struct rc_dev *dev; in rc_allocate_device() 1738 void rc_free_device(struct rc_dev *dev) in rc_free_device() 1762 struct rc_dev **dr, *rc; in devm_rc_allocate_device() [all …]
|
A D | lirc_dev.c | 137 struct rc_dev *dev = container_of(inode->i_cdev, struct rc_dev, in lirc_open() 206 struct rc_dev *dev = fh->rc; in lirc_close() 229 struct rc_dev *dev = fh->rc; in lirc_transmit() 370 struct rc_dev *dev = fh->rc; in lirc_ioctl() 592 struct rc_dev *rcdev = fh->rc; in lirc_poll() 616 struct rc_dev *rcdev = fh->rc; in lirc_read_mode2() 654 struct rc_dev *rcdev = fh->rc; in lirc_read_scancode() 693 struct rc_dev *rcdev = fh->rc; in lirc_read() 721 struct rc_dev *rcdev = container_of(ld, struct rc_dev, lirc_dev); in lirc_release_device() 726 int lirc_register(struct rc_dev *dev) in lirc_register() [all …]
|
A D | rc-ir-raw.c | 26 struct rc_dev *dev = raw->dev; in ir_raw_event_thread() 74 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store() 102 int ir_raw_event_store_edge(struct rc_dev *dev, bool pulse) in ir_raw_event_store_edge() 203 void ir_raw_event_set_idle(struct rc_dev *dev, bool idle) in ir_raw_event_set_idle() 229 void ir_raw_event_handle(struct rc_dev *dev) in ir_raw_event_handle() 245 static int change_protocol(struct rc_dev *dev, u64 *rc_proto) in change_protocol() 558 struct rc_dev *dev = raw->dev; in ir_raw_edge_handle() 614 int ir_raw_event_prepare(struct rc_dev *dev) in ir_raw_event_prepare() 633 int ir_raw_event_register(struct rc_dev *dev) in ir_raw_event_register() 650 void ir_raw_event_free(struct rc_dev *dev) in ir_raw_event_free() [all …]
|
A D | ir-rx51.c | 20 struct rc_dev *rcdev; 104 static int ir_rx51_tx(struct rc_dev *dev, unsigned int *buffer, in ir_rx51_tx() 142 static int ir_rx51_open(struct rc_dev *dev) in ir_rx51_open() 160 static void ir_rx51_release(struct rc_dev *dev) in ir_rx51_release() 176 static int ir_rx51_set_duty_cycle(struct rc_dev *dev, u32 duty) in ir_rx51_set_duty_cycle() 185 static int ir_rx51_set_tx_carrier(struct rc_dev *dev, u32 carrier) in ir_rx51_set_tx_carrier() 232 struct rc_dev *rcdev; in ir_rx51_probe()
|
A D | ati_remote.c | 234 struct rc_dev *rdev; 368 static int ati_remote_rc_open(struct rc_dev *rdev) in ati_remote_rc_open() 751 struct rc_dev *rdev = ati_remote->rdev; in ati_remote_rc_init() 819 struct rc_dev *rc_dev; in ati_remote_probe() local 844 rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in ati_remote_probe() 845 if (!ati_remote || !rc_dev) in ati_remote_probe() 855 ati_remote->rdev = rc_dev; in ati_remote_probe() 884 rc_dev->map_name = type->default_keymap; in ati_remote_probe() 924 rc_unregister_device(rc_dev); in ati_remote_probe() 925 rc_dev = NULL; in ati_remote_probe() [all …]
|
A D | bpf-lirc.c | 137 static int lirc_bpf_attach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_attach() 175 static int lirc_bpf_detach(struct rc_dev *rcdev, struct bpf_prog *prog) in lirc_bpf_detach() 213 void lirc_bpf_run(struct rc_dev *rcdev, u32 sample) in lirc_bpf_run() 229 void lirc_bpf_free(struct rc_dev *rcdev) in lirc_bpf_free() 246 struct rc_dev *rcdev; in lirc_prog_attach() 266 struct rc_dev *rcdev; in lirc_prog_detach() 295 struct rc_dev *rcdev; in lirc_prog_query()
|
A D | serial_ir.c | 130 struct rc_dev *rcdev; 476 static int serial_ir_tx(struct rc_dev *dev, unsigned int *txbuf, 479 static int serial_ir_tx_carrier(struct rc_dev *dev, u32 carrier); 480 static int serial_ir_open(struct rc_dev *rcdev); 481 static void serial_ir_close(struct rc_dev *rcdev); 485 struct rc_dev *rcdev; in serial_ir_probe() 600 static int serial_ir_open(struct rc_dev *rcdev) in serial_ir_open() 619 static void serial_ir_close(struct rc_dev *rcdev) in serial_ir_close() 634 static int serial_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in serial_ir_tx() 670 static int serial_ir_tx_duty_cycle(struct rc_dev *dev, u32 cycle) in serial_ir_tx_duty_cycle() [all …]
|
A D | pwm-ir-tx.c | 30 static int pwm_ir_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in pwm_ir_set_duty_cycle() 39 static int pwm_ir_set_carrier(struct rc_dev *dev, u32 carrier) in pwm_ir_set_carrier() 51 static int pwm_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in pwm_ir_tx() 87 struct rc_dev *rcdev; in pwm_ir_probe()
|
A D | ir-spi.c | 29 struct rc_dev *rc; 34 static int ir_spi_tx(struct rc_dev *dev, in ir_spi_tx() 83 static int ir_spi_set_tx_carrier(struct rc_dev *dev, u32 carrier) in ir_spi_set_tx_carrier() 95 static int ir_spi_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in ir_spi_set_duty_cycle()
|
A D | sunxi-cir.c | 89 struct rc_dev *rc; 154 static int sunxi_ir_set_timeout(struct rc_dev *rc_dev, unsigned int timeout) in sunxi_ir_set_timeout() argument 156 struct sunxi_ir *ir = rc_dev->priv; in sunxi_ir_set_timeout() 161 dev_dbg(rc_dev->dev.parent, "setting idle threshold to %u\n", ithr); in sunxi_ir_set_timeout() 167 rc_dev->timeout = sunxi_ithr_to_usec(base_clk, ithr); in sunxi_ir_set_timeout()
|
A D | gpio-ir-tx.c | 30 static int gpio_ir_tx_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in gpio_ir_tx_set_duty_cycle() 39 static int gpio_ir_tx_set_carrier(struct rc_dev *dev, u32 carrier) in gpio_ir_tx_set_carrier() 127 static int gpio_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in gpio_ir_tx() 146 struct rc_dev *rcdev; in gpio_ir_tx_probe()
|
A D | meson-ir-tx.c | 215 static int meson_irtx_set_carrier(struct rc_dev *rc, u32 carrier) in meson_irtx_set_carrier() 228 static int meson_irtx_set_duty_cycle(struct rc_dev *rc, u32 duty_cycle) in meson_irtx_set_duty_cycle() 246 static int meson_irtx_transmit(struct rc_dev *rc, unsigned int *buf, in meson_irtx_transmit() 312 struct rc_dev *rc; in meson_irtx_probe() 379 struct rc_dev *rc = platform_get_drvdata(pdev); in meson_irtx_remove()
|
/linux/drivers/media/pci/smipcie/ |
A D | smipcie-ir.c | 42 static void smi_raw_process(struct rc_dev *rc_dev, const u8 *buffer, in smi_raw_process() argument 53 rc_dev->rx_resolution; in smi_raw_process() 62 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_decode() local 101 ir_raw_event_handle(rc_dev); in smi_ir_decode() 135 struct rc_dev *rc_dev; in smi_ir_init() local 139 if (!rc_dev) in smi_ir_init() 153 rc_dev->input_id.version = 1; in smi_ir_init() 162 ir->rc_dev = rc_dev; in smi_ir_init() 173 rc_free_device(rc_dev); in smi_ir_init() 180 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_exit() local [all …]
|
/linux/include/media/ |
A D | rc-core.h | 73 struct rc_dev *rc; 162 struct rc_dev { struct 213 int (*open)(struct rc_dev *dev); argument 214 void (*close)(struct rc_dev *dev); argument 223 int (*s_filter)(struct rc_dev *dev, argument 227 int (*s_timeout)(struct rc_dev *dev, argument 262 void rc_free_device(struct rc_dev *dev); 269 int rc_register_device(struct rc_dev *dev); 286 void rc_repeat(struct rc_dev *dev); 291 void rc_keyup(struct rc_dev *dev); [all …]
|
/linux/drivers/reset/hisilicon/ |
A D | hi6220_reset.c | 40 struct reset_controller_dev rc_dev; member 47 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_assert() 59 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_deassert() 176 data->rc_dev.of_node = np; in hi6220_reset_probe() 178 data->rc_dev.ops = &hi6220_media_reset_ops; in hi6220_reset_probe() 179 data->rc_dev.nr_resets = MEDIA_MAX_INDEX; in hi6220_reset_probe() 181 data->rc_dev.ops = &hi6220_peripheral_reset_ops; in hi6220_reset_probe() 182 data->rc_dev.nr_resets = PERIPH_MAX_INDEX; in hi6220_reset_probe() 184 data->rc_dev.ops = &hi6220_ao_reset_ops; in hi6220_reset_probe() 185 data->rc_dev.nr_resets = AO_MAX_INDEX; in hi6220_reset_probe() [all …]
|
/linux/drivers/hid/ |
A D | hid-picolcd_cir.c | 42 if (!data->rc_dev || (data->status & PICOLCD_CIR_SHUN)) { in picolcd_raw_cir() 66 ir_raw_event_store(data->rc_dev, &rawir); in picolcd_raw_cir() 68 ir_raw_event_handle(data->rc_dev); in picolcd_raw_cir() 73 static int picolcd_cir_open(struct rc_dev *dev) in picolcd_cir_open() 84 static void picolcd_cir_close(struct rc_dev *dev) in picolcd_cir_close() 97 struct rc_dev *rdev; in picolcd_init_cir() 123 data->rc_dev = rdev; in picolcd_init_cir() 133 struct rc_dev *rdev = data->rc_dev; in picolcd_exit_cir() 135 data->rc_dev = NULL; in picolcd_exit_cir()
|
/linux/drivers/media/rc/img-ir/ |
A D | img-ir-raw.c | 21 struct rc_dev *rc_dev = priv->raw.rdev; in img_ir_refresh_raw() local 39 ir_raw_event_store_edge(rc_dev, false); in img_ir_refresh_raw() 41 ir_raw_event_store_edge(rc_dev, true); in img_ir_refresh_raw() 42 ir_raw_event_handle(rc_dev); in img_ir_refresh_raw() 102 struct rc_dev *rdev; in img_ir_probe_raw() 133 struct rc_dev *rdev = raw->rdev; in img_ir_remove_raw()
|
/linux/drivers/media/usb/em28xx/ |
A D | em28xx-input.c | 61 struct rc_dev *rc; 377 static int em28xx_ir_start(struct rc_dev *rc) in em28xx_ir_start() 387 static void em28xx_ir_stop(struct rc_dev *rc) in em28xx_ir_stop() 394 static int em2860_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2860_ir_change_protocol() argument 396 struct em28xx_IR *ir = rc_dev->priv; in em2860_ir_change_protocol() 422 static int em2874_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2874_ir_change_protocol() argument 424 struct em28xx_IR *ir = rc_dev->priv; in em2874_ir_change_protocol() 458 static int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em28xx_ir_change_protocol() argument 460 struct em28xx_IR *ir = rc_dev->priv; in em28xx_ir_change_protocol() 467 return em2860_ir_change_protocol(rc_dev, rc_proto); in em28xx_ir_change_protocol() [all …]
|
/linux/drivers/media/usb/cx231xx/ |
A D | cx231xx-input.c | 64 dev->init_data.rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in cx231xx_ir_init() 65 if (!dev->init_data.rc_dev) in cx231xx_ir_init() 82 dev->init_data.rc_dev->scancode_mask = 0xff; in cx231xx_ir_init() 83 dev->init_data.rc_dev->driver_name = "cx231xx"; in cx231xx_ir_init()
|
/linux/include/media/i2c/ |
A D | ir-kbd-i2c.h | 14 struct rc_dev *rc; 59 struct rc_dev *rc_dev; member
|
/linux/drivers/media/usb/tm6000/ |
A D | tm6000-input.c | 48 struct rc_dev *rc; 286 static int tm6000_ir_start(struct rc_dev *rc) in tm6000_ir_start() 297 static void tm6000_ir_stop(struct rc_dev *rc) in tm6000_ir_stop() 306 static int tm6000_ir_change_protocol(struct rc_dev *rc, u64 *rc_proto) in tm6000_ir_change_protocol() 322 static int __tm6000_ir_int_start(struct rc_dev *rc) in __tm6000_ir_int_start() 364 static void __tm6000_ir_int_stop(struct rc_dev *rc) in __tm6000_ir_int_stop() 402 struct rc_dev *rc; in tm6000_ir_init()
|