/drivers/media/rc/ |
D | streamzap.c | 114 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 = (rawir.duration > IR_MAX_DURATION) ? in sz_push_full_pulse() 141 IR_MAX_DURATION : rawir.duration; in sz_push_full_pulse() [all …]
|
D | ttusbir.c | 111 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() 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 = US_PER_BIT * (8 - b); in ttusbir_process_ir_data() [all …]
|
D | rc-loopback.c | 96 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]; 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()
|
D | mtk-cir.c | 208 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()
|
D | imon_raw.c | 31 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()
|
D | igorplugusb.c | 50 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()
|
D | redrat3.c | 341 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 …]
|
D | ir_toy.c | 125 struct ir_raw_event rawir = { .pulse = irtoy->pulse }; in irtoy_response() local 133 rawir.pulse = false; in irtoy_response() 135 rawir.duration = v * UNIT_US; in irtoy_response() 137 &rawir); in irtoy_response() 140 rawir.pulse = !rawir.pulse; in irtoy_response() 143 irtoy->pulse = rawir.pulse; in irtoy_response()
|
D | meson-ir.c | 83 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()
|
D | lirc_dev.c | 85 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() 608 !kfifo_is_empty(&fh->rawir)) in lirc_poll() 627 if (kfifo_is_empty(&fh->rawir)) { in lirc_read_mode2() 632 !kfifo_is_empty(&fh->rawir) || in lirc_read_mode2() 644 ret = kfifo_to_user(&fh->rawir, buffer, length, &copied); in lirc_read_mode2()
|
D | mceusb.c | 1171 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 …]
|
D | iguanair.c | 120 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()
|
D | sunxi-cir.c | 110 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()
|
D | fintek-cir.c | 269 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()
|
D | nuvoton-cir.c | 708 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()
|
D | winbond-cir.c | 356 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()
|
D | ite-cir.h | 114 struct ir_raw_event rawir; member
|
/drivers/media/usb/au0828/ |
D | au0828-input.c | 116 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 …]
|
/drivers/media/pci/smipcie/ |
D | smipcie-ir.c | 45 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()
|
/drivers/hid/ |
D | hid-picolcd_cir.c | 38 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()
|