Home
last modified time | relevance | path

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

/linux/drivers/media/rc/
A Dstreamzap.c117 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
133 rawir.pulse = false; in sz_push_full_pulse()
138 rawir.duration = delta; in sz_push_full_pulse()
140 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
143 sz_push(sz, rawir); in sz_push_full_pulse()
149 rawir.pulse = true; in sz_push_full_pulse()
153 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
155 sz_push(sz, rawir); in sz_push_full_pulse()
169 rawir.pulse = false; in sz_push_full_space()
173 sz_push(sz, rawir); in sz_push_full_space()
[all …]
A Drc-loopback.c93 struct ir_raw_event rawir = {}; in loop_tx_ir() local
112 rawir.pulse = i % 2 ? false : true; in loop_tx_ir()
113 rawir.duration = txbuf[i]; in loop_tx_ir()
115 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
119 rawir.pulse = false; in loop_tx_ir()
120 rawir.carrier_report = true; in loop_tx_ir()
121 rawir.carrier = lodev->txcarrier; in loop_tx_ir()
123 ir_raw_event_store(dev, &rawir); in loop_tx_ir()
127 rawir.pulse = false; in loop_tx_ir()
128 rawir.duration = dev->timeout; in loop_tx_ir()
[all …]
A Dttusbir.c111 struct ir_raw_event rawir = {}; in ttusbir_process_ir_data() local
119 rawir.pulse = false; in ttusbir_process_ir_data()
120 rawir.duration = US_PER_BYTE; in ttusbir_process_ir_data()
121 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
125 rawir.pulse = true; in ttusbir_process_ir_data()
126 rawir.duration = US_PER_BYTE; in ttusbir_process_ir_data()
134 rawir.pulse = true; in ttusbir_process_ir_data()
137 rawir.pulse = false; in ttusbir_process_ir_data()
140 rawir.duration = US_PER_BIT * (8 - b); in ttusbir_process_ir_data()
144 rawir.pulse = !rawir.pulse; in ttusbir_process_ir_data()
[all …]
A Dmtk-cir.c208 struct ir_raw_event rawir = {}; in mtk_ir_irq() local
223 rawir.pulse = false; in mtk_ir_irq()
232 rawir.pulse = !rawir.pulse; in mtk_ir_irq()
233 rawir.duration = wid * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
234 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
247 if (!MTK_IR_END(wid, rawir.pulse)) { in mtk_ir_irq()
248 rawir.pulse = false; in mtk_ir_irq()
249 rawir.duration = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
250 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
A Dimon_raw.c31 struct ir_raw_event rawir = {}; in imon_ir_data() local
60 rawir.pulse = !rawir.pulse; in imon_ir_data()
64 rawir.pulse ? "pulse" : "space", offset - bit); in imon_ir_data()
65 rawir.duration = (offset - bit) * BIT_DURATION; in imon_ir_data()
66 ir_raw_event_store_with_filter(imon->rcdev, &rawir); in imon_ir_data()
A Digorplugusb.c50 struct ir_raw_event rawir = {}; in igorplugusb_irdata() local
72 rawir.duration = ir->buf_in[i] * 85; in igorplugusb_irdata()
73 rawir.pulse = i & 1; in igorplugusb_irdata()
75 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
82 rawir.duration = ir->rc->timeout; in igorplugusb_irdata()
83 rawir.pulse = false; in igorplugusb_irdata()
84 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
A Dredrat3.c341 struct ir_raw_event rawir = {}; in redrat3_process_ir_data() local
367 rawir.pulse = false; in redrat3_process_ir_data()
369 rawir.pulse = true; in redrat3_process_ir_data()
371 rawir.duration = redrat3_len_to_us(val); in redrat3_process_ir_data()
373 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in redrat3_process_ir_data()
374 IR_MAX_DURATION : rawir.duration; in redrat3_process_ir_data()
377 rawir.pulse ? "pulse" : "space", rawir.duration, i); in redrat3_process_ir_data()
382 rawir.pulse = false; in redrat3_process_ir_data()
383 rawir.timeout = true; in redrat3_process_ir_data()
384 rawir.duration = rr3->rc->timeout; in redrat3_process_ir_data()
[all …]
A Dmeson-ir.c83 struct ir_raw_event rawir = {}; in meson_ir_irq() local
89 rawir.duration = duration * MESON_TRATE; in meson_ir_irq()
92 rawir.pulse = !!(status & STATUS_IR_DEC_IN); in meson_ir_irq()
94 ir_raw_event_store_with_timeout(ir->rc, &rawir); in meson_ir_irq()
A Dlirc_dev.c85 kfifo_put(&fh->rawir, in lirc_raw_event()
107 if (kfifo_put(&fh->rawir, sample)) in lirc_raw_event()
154 if (kfifo_alloc(&fh->rawir, MAX_IR_EVENT_SIZE, GFP_KERNEL)) { in lirc_open()
195 kfifo_free(&fh->rawir); in lirc_open()
214 kfifo_free(&fh->rawir); in lirc_close()
605 !kfifo_is_empty(&fh->rawir)) in lirc_poll()
624 if (kfifo_is_empty(&fh->rawir)) { in lirc_read_mode2()
629 !kfifo_is_empty(&fh->rawir) || in lirc_read_mode2()
641 ret = kfifo_to_user(&fh->rawir, buffer, length, &copied); in lirc_read_mode2()
A Dir_toy.c128 struct ir_raw_event rawir = { .pulse = irtoy->pulse }; in irtoy_response() local
136 rawir.pulse = false; in irtoy_response()
138 rawir.duration = v * UNIT_US; in irtoy_response()
140 &rawir); in irtoy_response()
143 rawir.pulse = !rawir.pulse; in irtoy_response()
146 irtoy->pulse = rawir.pulse; in irtoy_response()
A Dmceusb.c1171 struct ir_raw_event rawir = {}; in mceusb_handle_command() local
1229 rawir.carrier_report = 1; in mceusb_handle_command()
1230 rawir.carrier = (1000000u / MCE_TIME_UNIT) * in mceusb_handle_command()
1236 ir_raw_event_store(ir->rc, &rawir); in mceusb_handle_command()
1266 struct ir_raw_event rawir = {}; in mceusb_process_ir_data() local
1292 if (unlikely(!rawir.duration)) { in mceusb_process_ir_data()
1297 if (rawir.pulse) { in mceusb_process_ir_data()
1298 ir->pulse_tunit += rawir.duration; in mceusb_process_ir_data()
1301 rawir.duration *= MCE_TIME_UNIT; in mceusb_process_ir_data()
1304 rawir.pulse ? "pulse" : "space", in mceusb_process_ir_data()
[all …]
A Diguanair.c120 struct ir_raw_event rawir = {}; in process_ir_data() local
126 rawir.pulse = false; in process_ir_data()
127 rawir.duration = 21845; in process_ir_data()
129 rawir.pulse = (ir->buf_in[i] & 0x80) == 0; in process_ir_data()
130 rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * in process_ir_data()
134 if (ir_raw_event_store_with_filter(ir->rc, &rawir)) in process_ir_data()
A Dsunxi-cir.c105 struct ir_raw_event rawir = {}; in sunxi_ir_irq() local
121 rawir.pulse = (dt & 0x80) != 0; in sunxi_ir_irq()
122 rawir.duration = ((dt & 0x7f) + 1) * in sunxi_ir_irq()
124 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
A Dfintek-cir.c269 struct ir_raw_event rawir = {}; in fintek_process_rx_ir_data() local
301 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in fintek_process_rx_ir_data()
302 rawir.duration = (sample & BUF_SAMPLE_MASK) in fintek_process_rx_ir_data()
306 rawir.pulse ? "pulse" : "space", in fintek_process_rx_ir_data()
307 rawir.duration); in fintek_process_rx_ir_data()
309 &rawir)) in fintek_process_rx_ir_data()
A Dnuvoton-cir.c708 struct ir_raw_event rawir = {}; in nvt_process_rx_ir_data() local
722 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in nvt_process_rx_ir_data()
723 rawir.duration = (sample & BUF_LEN_MASK) * SAMPLE_PERIOD; in nvt_process_rx_ir_data()
726 rawir.pulse ? "pulse" : "space", rawir.duration); in nvt_process_rx_ir_data()
728 ir_raw_event_store_with_filter(nvt->rdev, &rawir); in nvt_process_rx_ir_data()
A Dwinbond-cir.c356 struct ir_raw_event rawir = {}; in wbcir_irq_rx() local
364 rawir.duration = ((irdata & 0x7F) + 1) * in wbcir_irq_rx()
366 rawir.pulse = irdata & 0x80 ? false : true; in wbcir_irq_rx()
368 if (rawir.pulse) in wbcir_irq_rx()
369 data->pulse_duration += rawir.duration; in wbcir_irq_rx()
371 ir_raw_event_store_with_filter(data->dev, &rawir); in wbcir_irq_rx()
/linux/drivers/media/usb/au0828/
A Dau0828-input.c116 struct ir_raw_event rawir = {}; in au0828_get_key_au8522() local
170 rawir.pulse = true; in au0828_get_key_au8522()
174 rawir.duration = NEC_START_PULSE; in au0828_get_key_au8522()
176 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
177 rawir.duration); in au0828_get_key_au8522()
183 rawir.duration); in au0828_get_key_au8522()
191 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
192 rawir.duration); in au0828_get_key_au8522()
203 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
204 rawir.duration); in au0828_get_key_au8522()
[all …]
/linux/drivers/media/pci/smipcie/
A Dsmipcie-ir.c45 struct ir_raw_event rawir = {}; in smi_raw_process() local
50 rawir.pulse = (buffer[cnt] & 0x80) == 0; in smi_raw_process()
51 rawir.duration = ((buffer[cnt] & 0x7f) + in smi_raw_process()
52 (rawir.pulse ? 0 : -1)) * in smi_raw_process()
54 ir_raw_event_store_with_filter(rc_dev, &rawir); in smi_raw_process()
91 struct ir_raw_event rawir = {}; in smi_ir_decode() local
95 rawir.pulse = 0; in smi_ir_decode()
96 rawir.duration = SMI_SAMPLE_PERIOD * SMI_SAMPLE_IDLEMIN; in smi_ir_decode()
97 ir_raw_event_store_with_filter(rc_dev, &rawir); in smi_ir_decode()
/linux/drivers/hid/
A Dhid-picolcd_cir.c38 struct ir_raw_event rawir = {}; in picolcd_raw_cir() local
61 rawir.pulse = !!(w & 0x8000); in picolcd_raw_cir()
62 rawir.duration = rawir.pulse ? (65536 - w) : w; in picolcd_raw_cir()
64 if (i == 0 && rawir.duration > 15000) in picolcd_raw_cir()
65 rawir.duration -= 15000; in picolcd_raw_cir()
66 ir_raw_event_store(data->rc_dev, &rawir); in picolcd_raw_cir()
/linux/include/media/
A Drc-core.h76 DECLARE_KFIFO_PTR(rawir, unsigned int);

Completed in 38 milliseconds