/linux-6.12.1/drivers/media/rc/ |
D | st_rc.c | 25 struct rc_dev *rdev; 65 static void st_rc_send_lirc_timeout(struct rc_dev *rdev) in st_rc_send_lirc_timeout() 200 struct st_rc_device *rc_dev = platform_get_drvdata(pdev); in st_rc_remove() local 204 clk_disable_unprepare(rc_dev->sys_clock); in st_rc_remove() 205 rc_unregister_device(rc_dev->rdev); in st_rc_remove() 208 static int st_rc_open(struct rc_dev *rdev) in st_rc_open() 221 static void st_rc_close(struct rc_dev *rdev) in st_rc_close() 232 struct rc_dev *rdev; in st_rc_probe() 234 struct st_rc_device *rc_dev; in st_rc_probe() local 238 rc_dev = devm_kzalloc(dev, sizeof(struct st_rc_device), GFP_KERNEL); in st_rc_probe() [all …]
|
D | rc-core-priv.h | 24 int rc_open(struct rc_dev *rdev); 31 void rc_close(struct rc_dev *rdev); 37 int (*decode)(struct rc_dev *dev, struct ir_raw_event event); 44 int (*raw_register)(struct rc_dev *dev); 45 int (*raw_unregister)(struct rc_dev *dev); 54 struct rc_dev *dev; /* pointer to the parent rc_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); 312 void ir_raw_event_unregister(struct rc_dev *dev); [all …]
|
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() 192 struct rc_dev *rc_dev; in xbox_remote_probe() local 217 rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in xbox_remote_probe() 218 if (!xbox_remote || !rc_dev) in xbox_remote_probe() 227 xbox_remote->rdev = rc_dev; in xbox_remote_probe() 245 rc_dev->map_name = RC_MAP_XBOX_DVD; /* default map */ in xbox_remote_probe() 266 rc_free_device(rc_dev); in xbox_remote_probe()
|
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() 141 static void loop_set_idle(struct rc_dev *dev, bool enable) in loop_set_idle() 151 static int loop_set_wideband_receiver(struct rc_dev *dev, int enable) in loop_set_wideband_receiver() 163 static int loop_set_carrier_report(struct rc_dev *dev, int enable) in loop_set_carrier_report() 175 static int loop_set_wakeup_filter(struct rc_dev *dev, in loop_set_wakeup_filter() [all …]
|
D | rc-main.c | 214 static int ir_create_table(struct rc_dev *dev, struct rc_map *rc_map, in ir_create_table() 262 static int ir_resize_table(struct rc_dev *dev, struct rc_map *rc_map, in ir_resize_table() 313 static unsigned int ir_update_mapping(struct rc_dev *dev, in ir_update_mapping() 370 static unsigned int ir_establish_scancode(struct rc_dev *dev, in ir_establish_scancode() 428 struct rc_dev *rdev = input_get_drvdata(idev); in ir_setkeycode() 471 static int ir_setkeytable(struct rc_dev *dev, const struct rc_map *from) in ir_setkeytable() 547 struct rc_dev *rdev = input_get_drvdata(idev); in ir_getkeycode() 605 u32 rc_g_keycode_from_table(struct rc_dev *dev, u64 scancode) in rc_g_keycode_from_table() 636 static void ir_do_keyup(struct rc_dev *dev, bool sync) in ir_do_keyup() 657 void rc_keyup(struct rc_dev *dev) in rc_keyup() [all …]
|
D | rc-ir-raw.c | 26 struct rc_dev *dev = raw->dev; in ir_raw_event_thread() 72 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store() 100 int ir_raw_event_store_edge(struct rc_dev *dev, bool pulse) in ir_raw_event_store_edge() 127 int ir_raw_event_store_with_timeout(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store_with_timeout() 167 int ir_raw_event_store_with_filter(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store_with_filter() 201 void ir_raw_event_set_idle(struct rc_dev *dev, bool idle) in ir_raw_event_set_idle() 227 void ir_raw_event_handle(struct rc_dev *dev) in ir_raw_event_handle() 243 static int change_protocol(struct rc_dev *dev, u64 *rc_proto) in change_protocol() 291 static void ir_raw_disable_protocols(struct rc_dev *dev, u64 protocols) in ir_raw_disable_protocols() 556 struct rc_dev *dev = raw->dev; in ir_raw_edge_handle() [all …]
|
D | lirc_dev.c | 40 void lirc_raw_event(struct rc_dev *dev, struct ir_raw_event ev) in lirc_raw_event() 111 void lirc_scancode_event(struct rc_dev *dev, struct lirc_scancode *lsc) in lirc_scancode_event() 129 struct rc_dev *dev = container_of(inode->i_cdev, struct rc_dev, in lirc_open() 197 struct rc_dev *dev = fh->rc; in lirc_close() 220 struct rc_dev *dev = fh->rc; in lirc_transmit() 365 struct rc_dev *dev = fh->rc; in lirc_ioctl() 585 struct rc_dev *rcdev = fh->rc; in lirc_poll() 609 struct rc_dev *rcdev = fh->rc; in lirc_read_mode2() 647 struct rc_dev *rcdev = fh->rc; in lirc_read_scancode() 686 struct rc_dev *rcdev = fh->rc; in lirc_read() [all …]
|
D | ati_remote.c | 232 struct rc_dev *rdev; 366 static int ati_remote_rc_open(struct rc_dev *rdev) in ati_remote_rc_open() 372 static void ati_remote_rc_close(struct rc_dev *rdev) in ati_remote_rc_close() 749 struct rc_dev *rdev = ati_remote->rdev; in ati_remote_rc_init() 818 struct rc_dev *rc_dev; in ati_remote_probe() local 843 rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in ati_remote_probe() 844 if (!ati_remote || !rc_dev) in ati_remote_probe() 854 ati_remote->rdev = rc_dev; in ati_remote_probe() 878 rc_dev->map_name = RC_MAP_ATI_X10; /* default map */ in ati_remote_probe() 883 rc_dev->map_name = type->default_keymap; in ati_remote_probe() [all …]
|
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() 233 void lirc_bpf_free(struct rc_dev *rcdev) in lirc_bpf_free() 250 struct rc_dev *rcdev; in lirc_prog_attach() 270 struct rc_dev *rcdev; in lirc_prog_detach() 299 struct rc_dev *rcdev; in lirc_prog_query()
|
D | serial_ir.c | 131 struct rc_dev *rcdev; 477 static int serial_ir_tx(struct rc_dev *dev, unsigned int *txbuf, 479 static int serial_ir_tx_duty_cycle(struct rc_dev *dev, u32 cycle); 480 static int serial_ir_tx_carrier(struct rc_dev *dev, u32 carrier); 481 static int serial_ir_open(struct rc_dev *rcdev); 482 static void serial_ir_close(struct rc_dev *rcdev); 486 struct rc_dev *rcdev; in serial_ir_probe() 601 static int serial_ir_open(struct rc_dev *rcdev) in serial_ir_open() 620 static void serial_ir_close(struct rc_dev *rcdev) in serial_ir_close() 635 static int serial_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in serial_ir_tx() [all …]
|
D | pwm-ir-tx.c | 39 static int pwm_ir_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in pwm_ir_set_duty_cycle() 48 static int pwm_ir_set_carrier(struct rc_dev *dev, u32 carrier) in pwm_ir_set_carrier() 60 static int pwm_ir_tx_sleep(struct rc_dev *dev, unsigned int *txbuf, in pwm_ir_tx_sleep() 93 static int pwm_ir_tx_atomic(struct rc_dev *dev, unsigned int *txbuf, in pwm_ir_tx_atomic() 152 struct rc_dev *rcdev; in pwm_ir_probe()
|
D | ir-spi.c | 34 struct rc_dev *rc; 39 static int ir_spi_tx(struct rc_dev *dev, unsigned int *buffer, unsigned int count) in ir_spi_tx() 87 static int ir_spi_set_tx_carrier(struct rc_dev *dev, u32 carrier) in ir_spi_set_tx_carrier() 99 static int ir_spi_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in ir_spi_set_duty_cycle()
|
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() 146 static int gpio_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in gpio_ir_tx() 165 struct rc_dev *rcdev; in gpio_ir_tx_probe()
|
D | sunxi-cir.c | 91 struct rc_dev *rc; 156 static int sunxi_ir_set_timeout(struct rc_dev *rc_dev, unsigned int timeout) in sunxi_ir_set_timeout() argument 158 struct sunxi_ir *ir = rc_dev->priv; in sunxi_ir_set_timeout() 163 dev_dbg(rc_dev->dev.parent, "setting idle threshold to %u\n", ithr); in sunxi_ir_set_timeout() 169 rc_dev->timeout = sunxi_ithr_to_usec(base_clk, ithr); in sunxi_ir_set_timeout()
|
D | iguanair.c | 20 struct rc_dev *rc; 271 static int iguanair_set_tx_carrier(struct rc_dev *dev, uint32_t carrier) in iguanair_set_tx_carrier() 309 static int iguanair_set_tx_mask(struct rc_dev *dev, uint32_t mask) in iguanair_set_tx_mask() 321 static int iguanair_tx(struct rc_dev *dev, unsigned *txbuf, unsigned count) in iguanair_tx() 357 static int iguanair_open(struct rc_dev *rdev) in iguanair_open() 369 static void iguanair_close(struct rc_dev *rdev) in iguanair_close() 385 struct rc_dev *rc; in iguanair_probe()
|
D | nuvoton-cir.c | 167 static void nvt_write_wakeup_codes(struct rc_dev *dev, in nvt_write_wakeup_codes() 207 struct rc_dev *rc_dev = to_rc_dev(dev); in wakeup_data_show() local 208 struct nvt_dev *nvt = rc_dev->priv; in wakeup_data_show() 240 struct rc_dev *rc_dev = to_rc_dev(dev); in wakeup_data_store() local 270 nvt_write_wakeup_codes(rc_dev, wake_buf, count); in wakeup_data_store() 628 static int nvt_ir_raw_set_wakeup_filter(struct rc_dev *dev, in nvt_ir_raw_set_wakeup_filter() 898 static int nvt_open(struct rc_dev *dev) in nvt_open() 907 static void nvt_close(struct rc_dev *dev) in nvt_close() 918 struct rc_dev *rdev; in nvt_probe()
|
/linux-6.12.1/drivers/media/pci/smipcie/ |
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() 54 ir_raw_event_store_with_filter(rc_dev, &rawir); in smi_raw_process() 62 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_decode() local 68 dev_dbg(&rc_dev->dev, "ircontrol: 0x%08x\n", control); in smi_ir_decode() 73 dev_dbg(&rc_dev->dev, "ircount %d\n", ir_count); in smi_ir_decode() 80 dev_dbg(&rc_dev->dev, "IRData 0x%08x\n", data); in smi_ir_decode() 87 smi_raw_process(rc_dev, ir->irData, ir_count); in smi_ir_decode() 93 dev_dbg(&rc_dev->dev, "high idle\n"); in smi_ir_decode() 97 ir_raw_event_store_with_filter(rc_dev, &rawir); in smi_ir_decode() [all …]
|
/linux-6.12.1/include/media/ |
D | rc-core.h | 72 struct rc_dev *rc; 157 struct rc_dev { struct 204 int (*change_protocol)(struct rc_dev *dev, u64 *rc_proto); argument 205 int (*open)(struct rc_dev *dev); argument 206 void (*close)(struct rc_dev *dev); argument 207 int (*s_tx_mask)(struct rc_dev *dev, u32 mask); argument 208 int (*s_tx_carrier)(struct rc_dev *dev, u32 carrier); argument 209 int (*s_tx_duty_cycle)(struct rc_dev *dev, u32 duty_cycle); argument 210 int (*s_rx_carrier_range)(struct rc_dev *dev, u32 min, u32 max); argument 211 int (*tx_ir)(struct rc_dev *dev, unsigned *txbuf, unsigned n); argument [all …]
|
/linux-6.12.1/drivers/reset/hisilicon/ |
D | hi6220_reset.c | 30 #define to_reset_data(x) container_of(x, struct hi6220_reset_data, rc_dev) 39 struct reset_controller_dev rc_dev; member 43 static int hi6220_peripheral_assert(struct reset_controller_dev *rc_dev, in hi6220_peripheral_assert() argument 46 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_assert() 55 static int hi6220_peripheral_deassert(struct reset_controller_dev *rc_dev, in hi6220_peripheral_deassert() argument 58 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_deassert() 72 static int hi6220_media_assert(struct reset_controller_dev *rc_dev, in hi6220_media_assert() argument 75 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_media_assert() 81 static int hi6220_media_deassert(struct reset_controller_dev *rc_dev, in hi6220_media_deassert() argument 84 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_media_deassert() [all …]
|
/linux-6.12.1/drivers/hid/ |
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-6.12.1/drivers/media/rc/img-ir/ |
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-6.12.1/drivers/media/usb/em28xx/ |
D | em28xx-input.c | 51 struct rc_dev *rc; 367 static int em28xx_ir_start(struct rc_dev *rc) in em28xx_ir_start() 377 static void em28xx_ir_stop(struct rc_dev *rc) in em28xx_ir_stop() 384 static int em2860_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2860_ir_change_protocol() argument 386 struct em28xx_IR *ir = rc_dev->priv; in em2860_ir_change_protocol() 412 static int em2874_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2874_ir_change_protocol() argument 414 struct em28xx_IR *ir = rc_dev->priv; in em2874_ir_change_protocol() 448 static int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em28xx_ir_change_protocol() argument 450 struct em28xx_IR *ir = rc_dev->priv; in em28xx_ir_change_protocol() 457 return em2860_ir_change_protocol(rc_dev, rc_proto); in em28xx_ir_change_protocol() [all …]
|
/linux-6.12.1/drivers/media/usb/cx231xx/ |
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-6.12.1/include/media/i2c/ |
D | ir-kbd-i2c.h | 14 struct rc_dev *rc; 60 struct rc_dev *rc_dev; member
|
/linux-6.12.1/drivers/staging/media/av7110/ |
D | av7110_ir.c | 23 struct rc_dev *rcdev = av7110->ir.rcdev; in av7110_ir_handler() 78 static int change_protocol(struct rc_dev *rcdev, u64 *rc_type) in change_protocol() 106 struct rc_dev *rcdev; in av7110_ir_init()
|