Home
last modified time | relevance | path

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

/Linux-v4.19/drivers/media/rc/
Dstreamzap.c123 static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) in sz_push() argument
126 (rawir.pulse ? "pulse" : "space"), rawir.duration); in sz_push()
127 ir_raw_event_store_with_filter(sz->rdev, &rawir); in sz_push()
133 DEFINE_IR_RAW_EVENT(rawir); in sz_push_full_pulse()
142 rawir.pulse = false; in sz_push_full_pulse()
145 rawir.duration = IR_MAX_DURATION; in sz_push_full_pulse()
147 rawir.duration = delta; in sz_push_full_pulse()
148 rawir.duration -= sz->sum; in sz_push_full_pulse()
149 rawir.duration = US_TO_NS(rawir.duration); in sz_push_full_pulse()
150 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse()
[all …]
Dttusbir.c120 struct ir_raw_event rawir; in ttusbir_process_ir_data() local
124 init_ir_raw_event(&rawir); in ttusbir_process_ir_data()
130 rawir.pulse = false; in ttusbir_process_ir_data()
131 rawir.duration = NS_PER_BYTE; in ttusbir_process_ir_data()
132 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
136 rawir.pulse = true; in ttusbir_process_ir_data()
137 rawir.duration = NS_PER_BYTE; in ttusbir_process_ir_data()
138 if (ir_raw_event_store_with_filter(tt->rc, &rawir)) in ttusbir_process_ir_data()
145 rawir.pulse = true; in ttusbir_process_ir_data()
148 rawir.pulse = false; in ttusbir_process_ir_data()
[all …]
Drc-loopback.c106 DEFINE_IR_RAW_EVENT(rawir); in loop_tx_ir()
125 rawir.pulse = i % 2 ? false : true; in loop_tx_ir()
126 rawir.duration = txbuf[i] * 1000; in loop_tx_ir()
127 if (rawir.duration) in loop_tx_ir()
128 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
132 rawir.pulse = false; in loop_tx_ir()
133 rawir.duration = dev->timeout; in loop_tx_ir()
134 ir_raw_event_store_with_filter(dev, &rawir); in loop_tx_ir()
Dimon_raw.c31 DEFINE_IR_RAW_EVENT(rawir); in imon_ir_data()
43 rawir.pulse = true; in imon_ir_data()
44 rawir.duration = (bit - offset) * BIT_DURATION; in imon_ir_data()
45 ir_raw_event_store_with_filter(imon->rcdev, &rawir); in imon_ir_data()
56 rawir.pulse = false; in imon_ir_data()
57 rawir.duration = (bit - offset) * BIT_DURATION; in imon_ir_data()
58 ir_raw_event_store_with_filter(imon->rcdev, &rawir); in imon_ir_data()
Dmtk-cir.c215 DEFINE_IR_RAW_EVENT(rawir); in mtk_ir_irq()
230 rawir.pulse = false; in mtk_ir_irq()
239 rawir.pulse = !rawir.pulse; in mtk_ir_irq()
240 rawir.duration = wid * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
241 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
254 if (!MTK_IR_END(wid, rawir.pulse)) { in mtk_ir_irq()
255 rawir.pulse = false; in mtk_ir_irq()
256 rawir.duration = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1); in mtk_ir_irq()
257 ir_raw_event_store_with_filter(ir->rc, &rawir); in mtk_ir_irq()
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.c351 DEFINE_IR_RAW_EVENT(rawir); in redrat3_process_ir_data()
378 rawir.pulse = false; in redrat3_process_ir_data()
380 rawir.pulse = true; in redrat3_process_ir_data()
382 rawir.duration = US_TO_NS(single_len); in redrat3_process_ir_data()
384 rawir.duration = (rawir.duration > IR_MAX_DURATION) ? in redrat3_process_ir_data()
385 IR_MAX_DURATION : rawir.duration; in redrat3_process_ir_data()
388 rawir.pulse ? "pulse" : "space", rawir.duration, i); in redrat3_process_ir_data()
389 ir_raw_event_store_with_filter(rr3->rc, &rawir); in redrat3_process_ir_data()
393 rawir.pulse = false; in redrat3_process_ir_data()
394 rawir.timeout = true; in redrat3_process_ir_data()
[all …]
Dmceusb.c1081 DEFINE_IR_RAW_EVENT(rawir); in mceusb_handle_command()
1119 rawir.carrier_report = 1; in mceusb_handle_command()
1120 rawir.carrier = (1000000u / MCE_TIME_UNIT) * in mceusb_handle_command()
1124 rawir.carrier, ir->pulse_count, carrier_cycles, in mceusb_handle_command()
1126 ir_raw_event_store(ir->rc, &rawir); in mceusb_handle_command()
1155 DEFINE_IR_RAW_EVENT(rawir); in mceusb_process_ir_data()
1178 init_ir_raw_event(&rawir); in mceusb_process_ir_data()
1179 rawir.pulse = ((ir->buf_in[i] & MCE_PULSE_BIT) != 0); in mceusb_process_ir_data()
1180 rawir.duration = (ir->buf_in[i] & MCE_PULSE_MASK); in mceusb_process_ir_data()
1181 if (unlikely(!rawir.duration)) { in mceusb_process_ir_data()
[all …]
Dmeson-ir.c89 DEFINE_IR_RAW_EVENT(rawir); in meson_ir_irq()
95 rawir.duration = US_TO_NS(duration * MESON_TRATE); in meson_ir_irq()
98 rawir.pulse = !!(status & STATUS_IR_DEC_IN); in meson_ir_irq()
100 ir_raw_event_store_with_timeout(ir->rc, &rawir); in meson_ir_irq()
Dlirc_dev.c96 kfifo_put(&fh->rawir, in ir_lirc_raw_event()
118 if (kfifo_put(&fh->rawir, sample)) in ir_lirc_raw_event()
165 if (kfifo_alloc(&fh->rawir, MAX_IR_EVENT_SIZE, GFP_KERNEL)) { in ir_lirc_open()
206 kfifo_free(&fh->rawir); in ir_lirc_open()
225 kfifo_free(&fh->rawir); in ir_lirc_close()
627 !kfifo_is_empty(&fh->rawir)) in ir_lirc_poll()
646 if (kfifo_is_empty(&fh->rawir)) { in ir_lirc_read_mode2()
651 !kfifo_is_empty(&fh->rawir) || in ir_lirc_read_mode2()
663 ret = kfifo_to_user(&fh->rawir, buffer, length, &copied); in ir_lirc_read_mode2()
Dsunxi-cir.c102 DEFINE_IR_RAW_EVENT(rawir); in sunxi_ir_irq()
120 rawir.pulse = (dt & 0x80) != 0; in sunxi_ir_irq()
121 rawir.duration = ((dt & 0x7f) + 1) * in sunxi_ir_irq()
123 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
Dfintek-cir.c285 DEFINE_IR_RAW_EVENT(rawir); in fintek_process_rx_ir_data()
317 init_ir_raw_event(&rawir); in fintek_process_rx_ir_data()
318 rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); in fintek_process_rx_ir_data()
319 rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) in fintek_process_rx_ir_data()
323 rawir.pulse ? "pulse" : "space", in fintek_process_rx_ir_data()
324 rawir.duration); in fintek_process_rx_ir_data()
326 &rawir)) in fintek_process_rx_ir_data()
Diguanair.c132 DEFINE_IR_RAW_EVENT(rawir); in process_ir_data()
136 init_ir_raw_event(&rawir); in process_ir_data()
140 rawir.pulse = false; in process_ir_data()
141 rawir.duration = US_TO_NS(21845); in process_ir_data()
143 rawir.pulse = (ir->buf_in[i] & 0x80) == 0; in process_ir_data()
144 rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * in process_ir_data()
148 if (ir_raw_event_store_with_filter(ir->rc, &rawir)) in process_ir_data()
Dnuvoton-cir.c740 DEFINE_IR_RAW_EVENT(rawir); in nvt_process_rx_ir_data()
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.c365 DEFINE_IR_RAW_EVENT(rawir); in wbcir_irq_rx()
376 rawir.pulse = irdata & 0x80 ? false : true; in wbcir_irq_rx()
377 rawir.duration = US_TO_NS(duration); in wbcir_irq_rx()
379 if (rawir.pulse) in wbcir_irq_rx()
382 ir_raw_event_store_with_filter(data->dev, &rawir); in wbcir_irq_rx()
Dite-cir.h123 struct ir_raw_event rawir; member
Dite-cir.c1511 init_ir_raw_event(&itdev->rawir); in ite_probe()
/Linux-v4.19/drivers/media/usb/au0828/
Dau0828-input.c116 DEFINE_IR_RAW_EVENT(rawir); in au0828_get_key_au8522()
170 init_ir_raw_event(&rawir); in au0828_get_key_au8522()
171 rawir.pulse = true; in au0828_get_key_au8522()
175 rawir.duration = NEC_START_PULSE; in au0828_get_key_au8522()
177 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
178 rawir.duration); in au0828_get_key_au8522()
181 rawir.duration = RC5_START_PULSE; in au0828_get_key_au8522()
183 rawir.pulse ? "pulse" : "space", in au0828_get_key_au8522()
184 rawir.duration); in au0828_get_key_au8522()
186 ir_raw_event_store(ir->rc, &rawir); in au0828_get_key_au8522()
[all …]
/Linux-v4.19/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()
/Linux-v4.19/include/media/
Drc-core.h84 DECLARE_KFIFO_PTR(rawir, unsigned int);