Home
last modified time | relevance | path

Searched refs:rawir (Results 1 – 16 of 16) sorted by relevance

/drivers/media/rc/
Dstreamzap.c127 static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) in sz_push() argument
130 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
131 ir_raw_event_store_with_filter(sz->rdev, &rawir); in sz_push()
137 DEFINE_IR_RAW_EVENT(rawir); in sz_push_full_pulse()
146 rawir.pulse = false; in sz_push_full_pulse()
149 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
151 rawir.duration = delta; in sz_push_full_pulse()
152 rawir.duration -= sz->sum; in sz_push_full_pulse()
153 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
154 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
[all …]
Dttusbir.c124 struct ir_raw_event rawir; in ttusbir_process_ir_data() local
128 init_ir_raw_event(&rawir); in ttusbir_process_ir_data()
134 rawir.pulse = false; in ttusbir_process_ir_data()
135 rawir.duration = NS_PER_BYTE; in ttusbir_process_ir_data()
136 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
140 rawir.pulse = true; in ttusbir_process_ir_data()
141 rawir.duration = NS_PER_BYTE; in ttusbir_process_ir_data()
142 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
149 rawir.pulse = true; in ttusbir_process_ir_data()
152 rawir.pulse = false; in ttusbir_process_ir_data()
[all …]
Drc-loopback.c109 DEFINE_IR_RAW_EVENT(rawir); in loop_tx_ir()
128 rawir.pulse = i % 2 ? false : true; in loop_tx_ir()
129 rawir.duration = txbuf[i] * 1000; in loop_tx_ir()
130 if (rawir.duration) in loop_tx_ir()
131 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
135 rawir.pulse = false; in loop_tx_ir()
136 rawir.duration = dev->timeout; in loop_tx_ir()
137 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
Digorplugusb.c59 DEFINE_IR_RAW_EVENT(rawir); in igorplugusb_irdata()
81 rawir.duration = ir->buf_in[i] * 85333; in igorplugusb_irdata()
82 rawir.pulse = i & 1; in igorplugusb_irdata()
84 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
91 rawir.duration = ir->rc->timeout; in igorplugusb_irdata()
92 rawir.pulse = false; in igorplugusb_irdata()
93 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
Dredrat3.c366 DEFINE_IR_RAW_EVENT(rawir); in redrat3_process_ir_data()
390 rawir.pulse = false; in redrat3_process_ir_data()
392 rawir.pulse = true; in redrat3_process_ir_data()
394 rawir.duration = US_TO_NS(single_len); in redrat3_process_ir_data()
396 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in redrat3_process_ir_data()
397 IR_MAX_DURATION : rawir.duration; in redrat3_process_ir_data()
400 rawir.pulse ? "pulse" : "space", rawir.duration, i); in redrat3_process_ir_data()
401 ir_raw_event_store_with_filter(rr3->rc, &rawir); in redrat3_process_ir_data()
405 rawir.pulse = false; in redrat3_process_ir_data()
406 rawir.timeout = true; in redrat3_process_ir_data()
[all …]
Dmeson-ir.c90 DEFINE_IR_RAW_EVENT(rawir); in meson_ir_irq()
96 rawir.duration = US_TO_NS(duration * MESON_TRATE); in meson_ir_irq()
98 rawir.pulse = !!(readl(ir->reg + IR_DEC_STATUS) & STATUS_IR_DEC_IN); in meson_ir_irq()
100 ir_raw_event_store_with_filter(ir->rc, &rawir); in meson_ir_irq()
Diguanair.c135 DEFINE_IR_RAW_EVENT(rawir); in process_ir_data()
139 init_ir_raw_event(&rawir); in process_ir_data()
143 rawir.pulse = false; in process_ir_data()
144 rawir.duration = US_TO_NS(21845); in process_ir_data()
146 rawir.pulse = (ir->buf_in[i] & 0x80) == 0; in process_ir_data()
147 rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * in process_ir_data()
151 if (ir_raw_event_store_with_filter(ir->rc, &rawir)) in process_ir_data()
Dfintek-cir.c294 DEFINE_IR_RAW_EVENT(rawir); in fintek_process_rx_ir_data()
326 init_ir_raw_event(&rawir); in fintek_process_rx_ir_data()
327 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in fintek_process_rx_ir_data()
328 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) in fintek_process_rx_ir_data()
332 rawir.pulse ? "pulse" : "space", in fintek_process_rx_ir_data()
333 rawir.duration); in fintek_process_rx_ir_data()
335 &rawir)) in fintek_process_rx_ir_data()
Dsunxi-cir.c106 DEFINE_IR_RAW_EVENT(rawir); in sunxi_ir_irq()
124 rawir.pulse = (dt & 0x80) != 0; in sunxi_ir_irq()
125 rawir.duration = ((dt & 0x7f) + 1) * SUNXI_IR_SAMPLE; in sunxi_ir_irq()
126 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
Dmceusb.c995 DEFINE_IR_RAW_EVENT(rawir); in mceusb_process_ir_data()
1018 init_ir_raw_event(&rawir); in mceusb_process_ir_data()
1019 rawir.pulse = ((ir->buf_in[i] & MCE_PULSE_BIT) != 0); in mceusb_process_ir_data()
1020 rawir.duration = (ir->buf_in[i] & MCE_PULSE_MASK) in mceusb_process_ir_data()
1024 rawir.pulse ? "pulse" : "space", in mceusb_process_ir_data()
1025 rawir.duration); in mceusb_process_ir_data()
1027 if (ir_raw_event_store_with_filter(ir->rc, &rawir)) in mceusb_process_ir_data()
Dnuvoton-cir.c750 DEFINE_IR_RAW_EVENT(rawir); in nvt_process_rx_ir_data()
764 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in nvt_process_rx_ir_data()
765 rawir.duration = US_TO_NS((sample & BUF_LEN_MASK) in nvt_process_rx_ir_data()
769 rawir.pulse ? "pulse" : "space", rawir.duration); in nvt_process_rx_ir_data()
771 ir_raw_event_store_with_filter(nvt->rdev, &rawir); in nvt_process_rx_ir_data()
Dwinbond-cir.c385 DEFINE_IR_RAW_EVENT(rawir); in wbcir_irq_rx()
396 rawir.pulse = irdata & 0x80 ? false : true; in wbcir_irq_rx()
397 rawir.duration = US_TO_NS(duration); in wbcir_irq_rx()
399 if (rawir.pulse) in wbcir_irq_rx()
402 ir_raw_event_store_with_filter(data->dev, &rawir); in wbcir_irq_rx()
Dite-cir.h128 struct ir_raw_event rawir; member
Dite-cir.c1519 init_ir_raw_event(&itdev->rawir); in ite_probe()
/drivers/media/usb/au0828/
Dau0828-input.c127 DEFINE_IR_RAW_EVENT(rawir); in au0828_get_key_au8522()
181 init_ir_raw_event(&rawir); in au0828_get_key_au8522()
182 rawir.pulse = true; in au0828_get_key_au8522()
186 rawir.duration = NEC_START_PULSE; in au0828_get_key_au8522()
188 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
189 rawir.duration); in au0828_get_key_au8522()
192 rawir.duration = RC5_START_PULSE; in au0828_get_key_au8522()
194 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
195 rawir.duration); in au0828_get_key_au8522()
197 ir_raw_event_store(ir->rc, &rawir); in au0828_get_key_au8522()
[all …]
/drivers/hid/
Dhid-picolcd_cir.c48 DEFINE_IR_RAW_EVENT(rawir); in picolcd_raw_cir()
70 init_ir_raw_event(&rawir); in picolcd_raw_cir()
72 rawir.pulse = !!(w & 0x8000); in picolcd_raw_cir()
73 rawir.duration = US_TO_NS(rawir.pulse ? (65536 - w) : w); in picolcd_raw_cir()
75 if (i == 0 && rawir.duration > 15000000) in picolcd_raw_cir()
76 rawir.duration -= 15000000; in picolcd_raw_cir()
77 ir_raw_event_store(data->rc_dev, &rawir); in picolcd_raw_cir()