Home
last modified time | relevance | path

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

/drivers/media/rc/
Dstreamzap.c126 static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) in sz_push() argument
129 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
130 ir_raw_event_store_with_filter(sz->rdev, &rawir); in sz_push()
136 DEFINE_IR_RAW_EVENT(rawir); in sz_push_full_pulse()
145 rawir.pulse = false; in sz_push_full_pulse()
148 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
150 rawir.duration = (int)(deltv * 1000000 + in sz_push_full_pulse()
153 rawir.duration -= sz->sum; in sz_push_full_pulse()
154 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
155 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()
83 rawir.duration = ir->buf_in[i] * 85333; in igorplugusb_irdata()
84 rawir.pulse = i & 1; in igorplugusb_irdata()
86 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
93 rawir.duration = ir->rc->timeout; in igorplugusb_irdata()
94 rawir.pulse = false; in igorplugusb_irdata()
95 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
Dredrat3.c344 DEFINE_IR_RAW_EVENT(rawir); in redrat3_process_ir_data()
374 rawir.pulse = false; in redrat3_process_ir_data()
376 rawir.pulse = true; in redrat3_process_ir_data()
378 rawir.duration = US_TO_NS(single_len); in redrat3_process_ir_data()
381 trailer = rawir.duration; in redrat3_process_ir_data()
383 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in redrat3_process_ir_data()
384 IR_MAX_DURATION : rawir.duration; in redrat3_process_ir_data()
387 rawir.pulse ? "pulse" : "space", rawir.duration, i); in redrat3_process_ir_data()
388 ir_raw_event_store_with_filter(rr3->rc, &rawir); in redrat3_process_ir_data()
393 rawir.pulse = false; in redrat3_process_ir_data()
[all …]
Dmeson-ir.c80 DEFINE_IR_RAW_EVENT(rawir); in meson_ir_irq()
86 rawir.duration = US_TO_NS(duration * MESON_TRATE); in meson_ir_irq()
88 rawir.pulse = !!(readl(ir->reg + IR_DEC_STATUS) & STATUS_IR_DEC_IN); in meson_ir_irq()
90 ir_raw_event_store_with_filter(ir->rc, &rawir); in meson_ir_irq()
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()
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()
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()
Dnuvoton-cir.c618 DEFINE_IR_RAW_EVENT(rawir); in nvt_process_rx_ir_data()
629 init_ir_raw_event(&rawir); in nvt_process_rx_ir_data()
634 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in nvt_process_rx_ir_data()
635 rawir.duration = US_TO_NS((sample & BUF_LEN_MASK) in nvt_process_rx_ir_data()
639 rawir.pulse ? "pulse" : "space", rawir.duration); in nvt_process_rx_ir_data()
641 ir_raw_event_store_with_filter(nvt->rdev, &rawir); in nvt_process_rx_ir_data()
Dmceusb.c984 DEFINE_IR_RAW_EVENT(rawir); in mceusb_process_ir_data()
1007 init_ir_raw_event(&rawir); in mceusb_process_ir_data()
1008 rawir.pulse = ((ir->buf_in[i] & MCE_PULSE_BIT) != 0); in mceusb_process_ir_data()
1009 rawir.duration = (ir->buf_in[i] & MCE_PULSE_MASK) in mceusb_process_ir_data()
1013 rawir.pulse ? "pulse" : "space", in mceusb_process_ir_data()
1014 rawir.duration); in mceusb_process_ir_data()
1016 if (ir_raw_event_store_with_filter(ir->rc, &rawir)) in mceusb_process_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.c1525 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()