Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/media/rc/
Dstreamzap.c114 static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) in sz_push() argument
117 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
118 ir_raw_event_store_with_filter(sz->rdev, &rawir); in sz_push()
124 struct ir_raw_event rawir = {}; in sz_push_full_pulse() local
133 rawir.pulse = false; in sz_push_full_pulse()
136 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
138 rawir.duration = delta; in sz_push_full_pulse()
139 rawir.duration -= sz->sum; in sz_push_full_pulse()
140 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
141 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
[all …]
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 = NS_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 = NS_PER_BYTE; in ttusbir_process_ir_data()
127 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) 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 = NS_PER_BIT * (8 - b); in ttusbir_process_ir_data()
[all …]
Dimon_raw.c31 struct ir_raw_event rawir = {}; in imon_ir_data() local
63 rawir.pulse = true; in imon_ir_data()
64 rawir.duration = (offset - bit) * BIT_DURATION; in imon_ir_data()
65 ir_raw_event_store_with_filter(imon->rcdev, &rawir); in imon_ir_data()
81 rawir.pulse = false; in imon_ir_data()
82 rawir.duration = (offset - bit) * BIT_DURATION; in imon_ir_data()
83 ir_raw_event_store_with_filter(imon->rcdev, &rawir); in imon_ir_data()
Drc-loopback.c96 struct ir_raw_event rawir = {}; in loop_tx_ir() local
115 rawir.pulse = i % 2 ? false : true; in loop_tx_ir()
116 rawir.duration = txbuf[i] * 1000; in loop_tx_ir()
117 if (rawir.duration) in loop_tx_ir()
118 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
122 rawir.pulse = false; in loop_tx_ir()
123 rawir.duration = dev->timeout; in loop_tx_ir()
124 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
Dmtk-cir.c211 struct ir_raw_event rawir = {}; in mtk_ir_irq() local
226 rawir.pulse = false; in mtk_ir_irq()
235 rawir.pulse = !rawir.pulse; in mtk_ir_irq()
236 rawir.duration = wid * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
237 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
250 if (!MTK_IR_END(wid, rawir.pulse)) { in mtk_ir_irq()
251 rawir.pulse = false; in mtk_ir_irq()
252 rawir.duration = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
253 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
Digorplugusb.c50 struct ir_raw_event rawir = {}; in igorplugusb_irdata() local
72 rawir.duration = ir->buf_in[i] * 85333; 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()
Dredrat3.c341 struct ir_raw_event rawir = {}; in redrat3_process_ir_data() local
368 rawir.pulse = false; in redrat3_process_ir_data()
370 rawir.pulse = true; in redrat3_process_ir_data()
372 rawir.duration = US_TO_NS(single_len); in redrat3_process_ir_data()
374 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in redrat3_process_ir_data()
375 IR_MAX_DURATION : rawir.duration; in redrat3_process_ir_data()
378 rawir.pulse ? "pulse" : "space", rawir.duration, i); in redrat3_process_ir_data()
379 ir_raw_event_store_with_filter(rr3->rc, &rawir); in redrat3_process_ir_data()
383 rawir.pulse = false; in redrat3_process_ir_data()
384 rawir.timeout = true; in redrat3_process_ir_data()
[all …]
Dmeson-ir.c83 struct ir_raw_event rawir = {}; in meson_ir_irq() local
89 rawir.duration = US_TO_NS(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()
Dlirc_dev.c86 kfifo_put(&fh->rawir, in ir_lirc_raw_event()
108 if (kfifo_put(&fh->rawir, sample)) in ir_lirc_raw_event()
155 if (kfifo_alloc(&fh->rawir, MAX_IR_EVENT_SIZE, GFP_KERNEL)) { in ir_lirc_open()
196 kfifo_free(&fh->rawir); in ir_lirc_open()
215 kfifo_free(&fh->rawir); in ir_lirc_close()
617 !kfifo_is_empty(&fh->rawir)) in ir_lirc_poll()
636 if (kfifo_is_empty(&fh->rawir)) { in ir_lirc_read_mode2()
641 !kfifo_is_empty(&fh->rawir) || in ir_lirc_read_mode2()
653 ret = kfifo_to_user(&fh->rawir, buffer, length, &copied); in ir_lirc_read_mode2()
Dmceusb.c1145 struct ir_raw_event rawir = {}; in mceusb_handle_command() local
1183 rawir.carrier_report = 1; in mceusb_handle_command()
1184 rawir.carrier = (1000000u / MCE_TIME_UNIT) * in mceusb_handle_command()
1188 rawir.carrier, ir->pulse_count, carrier_cycles, in mceusb_handle_command()
1190 ir_raw_event_store(ir->rc, &rawir); in mceusb_handle_command()
1220 struct ir_raw_event rawir = {}; in mceusb_process_ir_data() local
1243 rawir.pulse = ((ir->buf_in[i] & MCE_PULSE_BIT) != 0); in mceusb_process_ir_data()
1244 rawir.duration = (ir->buf_in[i] & MCE_PULSE_MASK); in mceusb_process_ir_data()
1245 if (unlikely(!rawir.duration)) { in mceusb_process_ir_data()
1250 if (rawir.pulse) { in mceusb_process_ir_data()
[all …]
Dsunxi-cir.c110 struct ir_raw_event rawir = {}; in sunxi_ir_irq() local
128 rawir.pulse = (dt & 0x80) != 0; in sunxi_ir_irq()
129 rawir.duration = ((dt & 0x7f) + 1) * in sunxi_ir_irq()
131 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
Diguanair.c123 struct ir_raw_event rawir = {}; in process_ir_data() local
129 rawir.pulse = false; in process_ir_data()
130 rawir.duration = US_TO_NS(21845); in process_ir_data()
132 rawir.pulse = (ir->buf_in[i] & 0x80) == 0; in process_ir_data()
133 rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * in process_ir_data()
137 if (ir_raw_event_store_with_filter(ir->rc, &rawir)) in process_ir_data()
Dfintek-cir.c276 struct ir_raw_event rawir = {}; in fintek_process_rx_ir_data() local
308 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in fintek_process_rx_ir_data()
309 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) in fintek_process_rx_ir_data()
313 rawir.pulse ? "pulse" : "space", in fintek_process_rx_ir_data()
314 rawir.duration); in fintek_process_rx_ir_data()
316 &rawir)) in fintek_process_rx_ir_data()
Dnuvoton-cir.c740 struct ir_raw_event rawir = {}; in nvt_process_rx_ir_data() local
754 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in nvt_process_rx_ir_data()
755 rawir.duration = US_TO_NS((sample & BUF_LEN_MASK) in nvt_process_rx_ir_data()
759 rawir.pulse ? "pulse" : "space", rawir.duration); in nvt_process_rx_ir_data()
761 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
367 rawir.pulse = irdata & 0x80 ? false : true; in wbcir_irq_rx()
368 rawir.duration = US_TO_NS(duration); in wbcir_irq_rx()
370 if (rawir.pulse) in wbcir_irq_rx()
373 ir_raw_event_store_with_filter(data->dev, &rawir); in wbcir_irq_rx()
Dite-cir.h114 struct ir_raw_event rawir; member
/Linux-v5.4/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-v5.4/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()
87 struct ir_raw_event rawir = {}; in smi_ir_decode() local
89 rawir.pulse = 0; in smi_ir_decode()
90 rawir.duration = US_TO_NS(SMI_SAMPLE_PERIOD * in smi_ir_decode()
92 ir_raw_event_store_with_filter(rc_dev, &rawir); in smi_ir_decode()
/Linux-v5.4/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 = US_TO_NS(rawir.pulse ? (65536 - w) : w); in picolcd_raw_cir()
64 if (i == 0 && rawir.duration > 15000000) in picolcd_raw_cir()
65 rawir.duration -= 15000000; in picolcd_raw_cir()
66 ir_raw_event_store(data->rc_dev, &rawir); in picolcd_raw_cir()
/Linux-v5.4/include/media/
Drc-core.h76 DECLARE_KFIFO_PTR(rawir, unsigned int);