Home
last modified time | relevance | path

Searched refs:rc_dev (Results 1 – 25 of 92) sorted by relevance

1234

/drivers/media/rc/
Dst_rc.c28 struct rc_dev *rdev;
68 static void st_rc_send_lirc_timeout(struct rc_dev *rdev) in st_rc_send_lirc_timeout()
192 struct st_rc_device *rc_dev = platform_get_drvdata(pdev); in st_rc_remove() local
196 clk_disable_unprepare(rc_dev->sys_clock); in st_rc_remove()
197 rc_unregister_device(rc_dev->rdev); in st_rc_remove()
201 static int st_rc_open(struct rc_dev *rdev) in st_rc_open()
214 static void st_rc_close(struct rc_dev *rdev) in st_rc_close()
225 struct rc_dev *rdev; in st_rc_probe()
228 struct st_rc_device *rc_dev; in st_rc_probe() local
232 rc_dev = devm_kzalloc(dev, sizeof(struct st_rc_device), GFP_KERNEL); in st_rc_probe()
[all …]
Drc-loopback.c36 struct rc_dev *dev;
49 static int loop_set_tx_mask(struct rc_dev *dev, u32 mask) in loop_set_tx_mask()
63 static int loop_set_tx_carrier(struct rc_dev *dev, u32 carrier) in loop_set_tx_carrier()
72 static int loop_set_tx_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in loop_set_tx_duty_cycle()
86 static int loop_set_rx_carrier_range(struct rc_dev *dev, u32 min, u32 max) in loop_set_rx_carrier_range()
101 static int loop_tx_ir(struct rc_dev *dev, unsigned *txbuf, unsigned count) in loop_tx_ir()
142 static void loop_set_idle(struct rc_dev *dev, bool enable) in loop_set_idle()
152 static int loop_set_learning_mode(struct rc_dev *dev, int enable) in loop_set_learning_mode()
164 static int loop_set_carrier_report(struct rc_dev *dev, int enable) in loop_set_carrier_report()
176 static int loop_set_wakeup_filter(struct rc_dev *dev, in loop_set_wakeup_filter()
[all …]
Drc-main.c273 static unsigned int ir_update_mapping(struct rc_dev *dev, in ir_update_mapping()
329 static unsigned int ir_establish_scancode(struct rc_dev *dev, in ir_establish_scancode()
387 struct rc_dev *rdev = input_get_drvdata(idev); in ir_setkeycode()
430 static int ir_setkeytable(struct rc_dev *dev, in ir_setkeytable()
504 struct rc_dev *rdev = input_get_drvdata(idev); in ir_getkeycode()
562 u32 rc_g_keycode_from_table(struct rc_dev *dev, u32 scancode) in rc_g_keycode_from_table()
593 static void ir_do_keyup(struct rc_dev *dev, bool sync) in ir_do_keyup()
613 void rc_keyup(struct rc_dev *dev) in rc_keyup()
632 struct rc_dev *dev = (struct rc_dev *)cookie; in ir_timer_keyup()
659 void rc_repeat(struct rc_dev *dev) in rc_repeat()
[all …]
Drc-core-priv.h29 int (*decode)(struct rc_dev *dev, struct ir_raw_event event);
34 int (*raw_register)(struct rc_dev *dev);
35 int (*raw_unregister)(struct rc_dev *dev);
44 struct rc_dev *dev; /* pointer to the parent rc_dev */
108 struct rc_dev *dev;
267 int ir_raw_event_prepare(struct rc_dev *dev);
268 int ir_raw_event_register(struct rc_dev *dev);
269 void ir_raw_event_free(struct rc_dev *dev);
270 void ir_raw_event_unregister(struct rc_dev *dev);
Drc-ir-raw.c71 int ir_raw_event_store(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store()
99 int ir_raw_event_store_edge(struct rc_dev *dev, bool pulse) in ir_raw_event_store_edge()
140 int ir_raw_event_store_with_filter(struct rc_dev *dev, struct ir_raw_event *ev) in ir_raw_event_store_with_filter()
174 void ir_raw_event_set_idle(struct rc_dev *dev, bool idle) in ir_raw_event_set_idle()
200 void ir_raw_event_handle(struct rc_dev *dev) in ir_raw_event_handle()
216 static int change_protocol(struct rc_dev *dev, u64 *rc_proto) in change_protocol()
222 static void ir_raw_disable_protocols(struct rc_dev *dev, u64 protocols) in ir_raw_disable_protocols()
476 struct rc_dev *dev = (struct rc_dev *)arg; in edge_handle()
498 int ir_raw_event_prepare(struct rc_dev *dev) in ir_raw_event_prepare()
523 int ir_raw_event_register(struct rc_dev *dev) in ir_raw_event_register()
[all …]
Dir-rx51.c30 struct rc_dev *rcdev;
115 static int ir_rx51_tx(struct rc_dev *dev, unsigned int *buffer, in ir_rx51_tx()
155 static int ir_rx51_open(struct rc_dev *dev) in ir_rx51_open()
173 static void ir_rx51_release(struct rc_dev *dev) in ir_rx51_release()
189 static int ir_rx51_set_duty_cycle(struct rc_dev *dev, u32 duty) in ir_rx51_set_duty_cycle()
198 static int ir_rx51_set_tx_carrier(struct rc_dev *dev, u32 carrier) in ir_rx51_set_tx_carrier()
245 struct rc_dev *rcdev; in ir_rx51_probe()
Dati_remote.c244 struct rc_dev *rdev;
378 static int ati_remote_rc_open(struct rc_dev *rdev) in ati_remote_rc_open()
384 static void ati_remote_rc_close(struct rc_dev *rdev) in ati_remote_rc_close()
761 struct rc_dev *rdev = ati_remote->rdev; in ati_remote_rc_init()
829 struct rc_dev *rc_dev; in ati_remote_probe() local
850 rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in ati_remote_probe()
851 if (!ati_remote || !rc_dev) in ati_remote_probe()
861 ati_remote->rdev = rc_dev; in ati_remote_probe()
885 rc_dev->map_name = RC_MAP_ATI_X10; /* default map */ in ati_remote_probe()
890 rc_dev->map_name = type->default_keymap; in ati_remote_probe()
[all …]
Dserial_ir.c138 struct rc_dev *rcdev;
484 static int serial_ir_tx(struct rc_dev *dev, unsigned int *txbuf,
486 static int serial_ir_tx_duty_cycle(struct rc_dev *dev, u32 cycle);
487 static int serial_ir_tx_carrier(struct rc_dev *dev, u32 carrier);
488 static int serial_ir_open(struct rc_dev *rcdev);
489 static void serial_ir_close(struct rc_dev *rcdev);
493 struct rc_dev *rcdev; in serial_ir_probe()
609 static int serial_ir_open(struct rc_dev *rcdev) in serial_ir_open()
628 static void serial_ir_close(struct rc_dev *rcdev) in serial_ir_close()
643 static int serial_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in serial_ir_tx()
[all …]
Dpwm-ir-tx.c38 static int pwm_ir_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in pwm_ir_set_duty_cycle()
47 static int pwm_ir_set_carrier(struct rc_dev *dev, u32 carrier) in pwm_ir_set_carrier()
59 static int pwm_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in pwm_ir_tx()
95 struct rc_dev *rcdev; in pwm_ir_probe()
Dgpio-ir-tx.c40 static int gpio_ir_tx_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in gpio_ir_tx_set_duty_cycle()
49 static int gpio_ir_tx_set_carrier(struct rc_dev *dev, u32 carrier) in gpio_ir_tx_set_carrier()
61 static int gpio_ir_tx(struct rc_dev *dev, unsigned int *txbuf, in gpio_ir_tx()
128 struct rc_dev *rcdev; in gpio_ir_tx_probe()
Dir-spi.c44 struct rc_dev *rc;
49 static int ir_spi_tx(struct rc_dev *dev, in ir_spi_tx()
98 static int ir_spi_set_tx_carrier(struct rc_dev *dev, u32 carrier) in ir_spi_set_tx_carrier()
110 static int ir_spi_set_duty_cycle(struct rc_dev *dev, u32 duty_cycle) in ir_spi_set_duty_cycle()
Dnuvoton-cir.c174 static void nvt_write_wakeup_codes(struct rc_dev *dev, in nvt_write_wakeup_codes()
214 struct rc_dev *rc_dev = to_rc_dev(dev); in wakeup_data_show() local
215 struct nvt_dev *nvt = rc_dev->priv; in wakeup_data_show()
247 struct rc_dev *rc_dev = to_rc_dev(dev); in wakeup_data_store() local
277 nvt_write_wakeup_codes(rc_dev, wake_buf, count); in wakeup_data_store()
656 static int nvt_set_tx_carrier(struct rc_dev *dev, u32 carrier) in nvt_set_tx_carrier()
674 static int nvt_ir_raw_set_wakeup_filter(struct rc_dev *dev, in nvt_ir_raw_set_wakeup_filter()
920 static int nvt_open(struct rc_dev *dev) in nvt_open()
946 static void nvt_close(struct rc_dev *dev) in nvt_close()
957 struct rc_dev *rdev; in nvt_probe()
Dir-lirc-codec.c33 static int ir_lirc_decode(struct rc_dev *dev, struct ir_raw_event ev) in ir_lirc_decode()
109 struct rc_dev *dev; in ir_lirc_transmit_ir()
184 struct rc_dev *dev; in ir_lirc_ioctl()
347 static int ir_lirc_register(struct rc_dev *dev) in ir_lirc_register()
415 static int ir_lirc_unregister(struct rc_dev *dev) in ir_lirc_unregister()
Diguanair.c30 struct rc_dev *rc;
291 static int iguanair_set_tx_carrier(struct rc_dev *dev, uint32_t carrier) in iguanair_set_tx_carrier()
333 static int iguanair_set_tx_mask(struct rc_dev *dev, uint32_t mask) in iguanair_set_tx_mask()
347 static int iguanair_tx(struct rc_dev *dev, unsigned *txbuf, unsigned count) in iguanair_tx()
390 static int iguanair_open(struct rc_dev *rdev) in iguanair_open()
406 static void iguanair_close(struct rc_dev *rdev) in iguanair_close()
426 struct rc_dev *rc; in iguanair_probe()
Dene_ir.c846 static int ene_open(struct rc_dev *rdev) in ene_open()
858 static void ene_close(struct rc_dev *rdev) in ene_close()
869 static int ene_set_tx_mask(struct rc_dev *rdev, u32 tx_mask) in ene_set_tx_mask()
887 static int ene_set_tx_carrier(struct rc_dev *rdev, u32 carrier) in ene_set_tx_carrier()
911 static int ene_set_tx_duty_cycle(struct rc_dev *rdev, u32 duty_cycle) in ene_set_tx_duty_cycle()
921 static int ene_set_learning_mode(struct rc_dev *rdev, int enable) in ene_set_learning_mode()
937 static int ene_set_carrier_report(struct rc_dev *rdev, int enable) in ene_set_carrier_report()
955 static void ene_set_idle(struct rc_dev *rdev, bool idle) in ene_set_idle()
966 static int ene_transmit(struct rc_dev *rdev, unsigned *buf, unsigned n) in ene_transmit()
1005 struct rc_dev *rdev; in ene_probe()
Dir-hix5hd2.c68 struct rc_dev *rdev;
127 static int hix5hd2_ir_open(struct rc_dev *rdev) in hix5hd2_ir_open()
135 static void hix5hd2_ir_close(struct rc_dev *rdev) in hix5hd2_ir_close()
202 struct rc_dev *rdev; in hix5hd2_ir_probe()
/drivers/media/pci/smipcie/
Dsmipcie-ir.c118 struct rc_dev *rc_dev = ir->rc_dev; in smi_ir_decode() local
147 rc_keydown(rc_dev, RC_PROTO_RC5, scancode, toggle); in smi_ir_decode()
183 struct rc_dev *rc_dev; in smi_ir_init() local
186 rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in smi_ir_init()
187 if (!rc_dev) in smi_ir_init()
196 rc_dev->driver_name = "SMI_PCIe"; in smi_ir_init()
197 rc_dev->input_phys = ir->input_phys; in smi_ir_init()
198 rc_dev->device_name = ir->device_name; in smi_ir_init()
199 rc_dev->input_id.bustype = BUS_PCI; in smi_ir_init()
200 rc_dev->input_id.version = 1; in smi_ir_init()
[all …]
/drivers/reset/hisilicon/
Dhi6220_reset.c34 #define to_reset_data(x) container_of(x, struct hi6220_reset_data, rc_dev)
42 struct reset_controller_dev rc_dev; member
46 static int hi6220_peripheral_assert(struct reset_controller_dev *rc_dev, in hi6220_peripheral_assert() argument
49 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_assert()
58 static int hi6220_peripheral_deassert(struct reset_controller_dev *rc_dev, in hi6220_peripheral_deassert() argument
61 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_peripheral_deassert()
75 static int hi6220_media_assert(struct reset_controller_dev *rc_dev, in hi6220_media_assert() argument
78 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_media_assert()
84 static int hi6220_media_deassert(struct reset_controller_dev *rc_dev, in hi6220_media_deassert() argument
87 struct hi6220_reset_data *data = to_reset_data(rc_dev); in hi6220_media_deassert()
[all …]
/drivers/hid/
Dhid-picolcd_cir.c52 if (!data->rc_dev || (data->status & PICOLCD_CIR_SHUN)) { in picolcd_raw_cir()
77 ir_raw_event_store(data->rc_dev, &rawir); in picolcd_raw_cir()
79 ir_raw_event_handle(data->rc_dev); in picolcd_raw_cir()
84 static int picolcd_cir_open(struct rc_dev *dev) in picolcd_cir_open()
95 static void picolcd_cir_close(struct rc_dev *dev) in picolcd_cir_close()
108 struct rc_dev *rdev; in picolcd_init_cir()
134 data->rc_dev = rdev; in picolcd_init_cir()
144 struct rc_dev *rdev = data->rc_dev; in picolcd_exit_cir()
146 data->rc_dev = NULL; in picolcd_exit_cir()
/drivers/media/rc/img-ir/
Dimg-ir-raw.c25 struct rc_dev *rc_dev = priv->raw.rdev; in img_ir_refresh_raw() local
43 ir_raw_event_store_edge(rc_dev, false); in img_ir_refresh_raw()
45 ir_raw_event_store_edge(rc_dev, true); in img_ir_refresh_raw()
46 ir_raw_event_handle(rc_dev); in img_ir_refresh_raw()
106 struct rc_dev *rdev; in img_ir_probe_raw()
137 struct rc_dev *rdev = raw->rdev; in img_ir_remove_raw()
/drivers/media/usb/em28xx/
Dem28xx-input.c64 struct rc_dev *rc;
372 static int em28xx_ir_start(struct rc_dev *rc) in em28xx_ir_start()
382 static void em28xx_ir_stop(struct rc_dev *rc) in em28xx_ir_stop()
389 static int em2860_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2860_ir_change_protocol() argument
391 struct em28xx_IR *ir = rc_dev->priv; in em2860_ir_change_protocol()
417 static int em2874_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em2874_ir_change_protocol() argument
419 struct em28xx_IR *ir = rc_dev->priv; in em2874_ir_change_protocol()
453 static int em28xx_ir_change_protocol(struct rc_dev *rc_dev, u64 *rc_proto) in em28xx_ir_change_protocol() argument
455 struct em28xx_IR *ir = rc_dev->priv; in em28xx_ir_change_protocol()
462 return em2860_ir_change_protocol(rc_dev, rc_proto); in em28xx_ir_change_protocol()
[all …]
/drivers/media/usb/cx231xx/
Dcx231xx-input.c74 dev->init_data.rc_dev = rc_allocate_device(RC_DRIVER_SCANCODE); in cx231xx_ir_init()
75 if (!dev->init_data.rc_dev) in cx231xx_ir_init()
92 dev->init_data.rc_dev->scancode_mask = 0xff; in cx231xx_ir_init()
93 dev->init_data.rc_dev->driver_name = "cx231xx"; in cx231xx_ir_init()
/drivers/media/usb/tm6000/
Dtm6000-input.c56 struct rc_dev *rc;
294 static int tm6000_ir_start(struct rc_dev *rc) in tm6000_ir_start()
305 static void tm6000_ir_stop(struct rc_dev *rc) in tm6000_ir_stop()
314 static int tm6000_ir_change_protocol(struct rc_dev *rc, u64 *rc_proto) in tm6000_ir_change_protocol()
330 static int __tm6000_ir_int_start(struct rc_dev *rc) in __tm6000_ir_int_start()
372 static void __tm6000_ir_int_stop(struct rc_dev *rc) in __tm6000_ir_int_stop()
410 struct rc_dev *rc; in tm6000_ir_init()
/drivers/media/usb/dvb-usb/
Ddtt200u.c117 rc_keydown(d->rc_dev, proto, scancode, 0); in dtt200u_rc_query()
119 rc_keyup(d->rc_dev); in dtt200u_rc_query()
121 rc_repeat(d->rc_dev); in dtt200u_rc_query()
123 rc_keyup(d->rc_dev); in dtt200u_rc_query()
/drivers/media/usb/au0828/
Dau0828-input.c36 struct rc_dev *rc;
242 static int au0828_rc_start(struct rc_dev *rc) in au0828_rc_start()
256 static void au0828_rc_stop(struct rc_dev *rc) in au0828_rc_stop()
289 struct rc_dev *rc; in au0828_rc_register()

1234