Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/media/usb/au0828/
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()
180 rawir.duration = RC5_START_PULSE; in au0828_get_key_au8522()
182 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
183 rawir.duration); in au0828_get_key_au8522()
185 ir_raw_event_store(ir->rc, &rawir); in au0828_get_key_au8522()
188 rawir.pulse = prv_bit ? false : true; in au0828_get_key_au8522()
[all …]
/linux-6.6.21/drivers/media/rc/
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()
116 if (rawir.pulse && rawir.duration > MS_TO_US(50)) in loop_tx_ir()
119 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
123 rawir.pulse = false; in loop_tx_ir()
124 rawir.carrier_report = true; in loop_tx_ir()
125 rawir.carrier = lodev->txcarrier; in loop_tx_ir()
127 ir_raw_event_store(dev, &rawir); in loop_tx_ir()
131 rawir.pulse = false; in loop_tx_ir()
[all …]
Dttusbir.c110 struct ir_raw_event rawir = {}; in ttusbir_process_ir_data() local
118 rawir.pulse = false; in ttusbir_process_ir_data()
119 rawir.duration = US_PER_BYTE; in ttusbir_process_ir_data()
120 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
124 rawir.pulse = true; in ttusbir_process_ir_data()
125 rawir.duration = US_PER_BYTE; in ttusbir_process_ir_data()
126 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
133 rawir.pulse = true; in ttusbir_process_ir_data()
136 rawir.pulse = false; in ttusbir_process_ir_data()
139 rawir.duration = US_PER_BIT * (8 - b); in ttusbir_process_ir_data()
[all …]
Dstreamzap.c100 static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) in sz_push() argument
103 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
104 ir_raw_event_store_with_filter(sz->rdev, &rawir); in sz_push()
110 struct ir_raw_event rawir = { in sz_push_full_pulse() local
115 sz_push(sz, rawir); in sz_push_full_pulse()
127 struct ir_raw_event rawir = { in sz_push_full_space() local
132 sz_push(sz, rawir); in sz_push_full_space()
199 struct ir_raw_event rawir = { in streamzap_callback() local
203 sz_push(sz, rawir); in streamzap_callback()
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()
Digorplugusb.c50 struct ir_raw_event rawir = {}; in igorplugusb_irdata() local
74 rawir.duration = ir->buf_in[i] * 85; in igorplugusb_irdata()
75 rawir.pulse = i & 1; in igorplugusb_irdata()
77 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
84 rawir.duration = ir->rc->timeout; in igorplugusb_irdata()
85 rawir.pulse = false; in igorplugusb_irdata()
86 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
Dmtk-cir.c207 struct ir_raw_event rawir = {}; in mtk_ir_irq() local
234 rawir.pulse = !rawir.pulse; in mtk_ir_irq()
235 rawir.duration = wid * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
236 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
249 if (!MTK_IR_END(wid, rawir.pulse)) { in mtk_ir_irq()
250 rawir.pulse = false; in mtk_ir_irq()
251 rawir.duration = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
252 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
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()
378 ir_raw_event_store_with_filter(rr3->rc, &rawir); in redrat3_process_ir_data()
382 rawir.pulse = false; in redrat3_process_ir_data()
383 rawir.timeout = true; in redrat3_process_ir_data()
[all …]
Dmeson-ir.c69 struct ir_raw_event rawir = {}; in meson_ir_irq() local
75 rawir.duration = duration * MESON_RAW_TRATE; in meson_ir_irq()
78 rawir.pulse = !!(status & IR_DEC_STATUS_PULSE); in meson_ir_irq()
80 ir_raw_event_store_with_timeout(ir->rc, &rawir); in meson_ir_irq()
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()
Dlirc_dev.c78 kfifo_put(&fh->rawir, LIRC_SPACE(duration)); in lirc_raw_event()
97 if (kfifo_put(&fh->rawir, sample)) in lirc_raw_event()
144 if (kfifo_alloc(&fh->rawir, MAX_IR_EVENT_SIZE, GFP_KERNEL)) { in lirc_open()
184 kfifo_free(&fh->rawir); in lirc_open()
203 kfifo_free(&fh->rawir); in lirc_close()
596 !kfifo_is_empty(&fh->rawir)) in lirc_poll()
615 if (kfifo_is_empty(&fh->rawir)) { in lirc_read_mode2()
620 !kfifo_is_empty(&fh->rawir) || in lirc_read_mode2()
632 ret = kfifo_to_user(&fh->rawir, buffer, length, &copied); in lirc_read_mode2()
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()
1234 rawir.carrier, ir->pulse_count, carrier_cycles, 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
1290 rawir.pulse = ((ir->buf_in[i] & MCE_PULSE_BIT) != 0); in mceusb_process_ir_data()
1291 rawir.duration = (ir->buf_in[i] & MCE_PULSE_MASK); in mceusb_process_ir_data()
1292 if (unlikely(!rawir.duration)) { in mceusb_process_ir_data()
1297 if (rawir.pulse) { in mceusb_process_ir_data()
[all …]
Dsunxi-cir.c106 struct ir_raw_event rawir = {}; in sunxi_ir_irq() local
122 rawir.pulse = (dt & 0x80) != 0; in sunxi_ir_irq()
123 rawir.duration = ((dt & 0x7f) + 1) * in sunxi_ir_irq()
125 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
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()
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()
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()
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-6.6.21/drivers/media/pci/smipcie/
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-6.6.21/drivers/hid/
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-6.6.21/include/media/
Drc-core.h74 DECLARE_KFIFO_PTR(rawir, unsigned int);