rawir 38 drivers/hid/hid-picolcd_cir.c struct ir_raw_event rawir = {}; rawir 61 drivers/hid/hid-picolcd_cir.c rawir.pulse = !!(w & 0x8000); rawir 62 drivers/hid/hid-picolcd_cir.c rawir.duration = US_TO_NS(rawir.pulse ? (65536 - w) : w); rawir 64 drivers/hid/hid-picolcd_cir.c if (i == 0 && rawir.duration > 15000000) rawir 65 drivers/hid/hid-picolcd_cir.c rawir.duration -= 15000000; rawir 66 drivers/hid/hid-picolcd_cir.c ir_raw_event_store(data->rc_dev, &rawir); rawir 45 drivers/media/pci/smipcie/smipcie-ir.c struct ir_raw_event rawir = {}; rawir 50 drivers/media/pci/smipcie/smipcie-ir.c rawir.pulse = (buffer[cnt] & 0x80) == 0; rawir 51 drivers/media/pci/smipcie/smipcie-ir.c rawir.duration = ((buffer[cnt] & 0x7f) + rawir 52 drivers/media/pci/smipcie/smipcie-ir.c (rawir.pulse ? 0 : -1)) * rawir 54 drivers/media/pci/smipcie/smipcie-ir.c ir_raw_event_store_with_filter(rc_dev, &rawir); rawir 87 drivers/media/pci/smipcie/smipcie-ir.c struct ir_raw_event rawir = {}; rawir 89 drivers/media/pci/smipcie/smipcie-ir.c rawir.pulse = 0; rawir 90 drivers/media/pci/smipcie/smipcie-ir.c rawir.duration = US_TO_NS(SMI_SAMPLE_PERIOD * rawir 92 drivers/media/pci/smipcie/smipcie-ir.c ir_raw_event_store_with_filter(rc_dev, &rawir); rawir 276 drivers/media/rc/fintek-cir.c struct ir_raw_event rawir = {}; rawir 308 drivers/media/rc/fintek-cir.c rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); rawir 309 drivers/media/rc/fintek-cir.c rawir.duration = US_TO_NS((sample & BUF_SAMPLE_MASK) rawir 313 drivers/media/rc/fintek-cir.c rawir.pulse ? "pulse" : "space", rawir 314 drivers/media/rc/fintek-cir.c rawir.duration); rawir 316 drivers/media/rc/fintek-cir.c &rawir)) rawir 50 drivers/media/rc/igorplugusb.c struct ir_raw_event rawir = {}; rawir 72 drivers/media/rc/igorplugusb.c rawir.duration = ir->buf_in[i] * 85333; rawir 73 drivers/media/rc/igorplugusb.c rawir.pulse = i & 1; rawir 75 drivers/media/rc/igorplugusb.c ir_raw_event_store_with_filter(ir->rc, &rawir); rawir 82 drivers/media/rc/igorplugusb.c rawir.duration = ir->rc->timeout; rawir 83 drivers/media/rc/igorplugusb.c rawir.pulse = false; rawir 84 drivers/media/rc/igorplugusb.c ir_raw_event_store_with_filter(ir->rc, &rawir); rawir 123 drivers/media/rc/iguanair.c struct ir_raw_event rawir = {}; rawir 129 drivers/media/rc/iguanair.c rawir.pulse = false; rawir 130 drivers/media/rc/iguanair.c rawir.duration = US_TO_NS(21845); rawir 132 drivers/media/rc/iguanair.c rawir.pulse = (ir->buf_in[i] & 0x80) == 0; rawir 133 drivers/media/rc/iguanair.c rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) * rawir 137 drivers/media/rc/iguanair.c if (ir_raw_event_store_with_filter(ir->rc, &rawir)) rawir 31 drivers/media/rc/imon_raw.c struct ir_raw_event rawir = {}; rawir 63 drivers/media/rc/imon_raw.c rawir.pulse = true; rawir 64 drivers/media/rc/imon_raw.c rawir.duration = (offset - bit) * BIT_DURATION; rawir 65 drivers/media/rc/imon_raw.c ir_raw_event_store_with_filter(imon->rcdev, &rawir); rawir 81 drivers/media/rc/imon_raw.c rawir.pulse = false; rawir 82 drivers/media/rc/imon_raw.c rawir.duration = (offset - bit) * BIT_DURATION; rawir 83 drivers/media/rc/imon_raw.c ir_raw_event_store_with_filter(imon->rcdev, &rawir); rawir 114 drivers/media/rc/ite-cir.h struct ir_raw_event rawir; rawir 86 drivers/media/rc/lirc_dev.c kfifo_put(&fh->rawir, rawir 108 drivers/media/rc/lirc_dev.c if (kfifo_put(&fh->rawir, sample)) rawir 155 drivers/media/rc/lirc_dev.c if (kfifo_alloc(&fh->rawir, MAX_IR_EVENT_SIZE, GFP_KERNEL)) { rawir 196 drivers/media/rc/lirc_dev.c kfifo_free(&fh->rawir); rawir 215 drivers/media/rc/lirc_dev.c kfifo_free(&fh->rawir); rawir 617 drivers/media/rc/lirc_dev.c !kfifo_is_empty(&fh->rawir)) rawir 636 drivers/media/rc/lirc_dev.c if (kfifo_is_empty(&fh->rawir)) { rawir 641 drivers/media/rc/lirc_dev.c !kfifo_is_empty(&fh->rawir) || rawir 653 drivers/media/rc/lirc_dev.c ret = kfifo_to_user(&fh->rawir, buffer, length, &copied); rawir 1164 drivers/media/rc/mceusb.c struct ir_raw_event rawir = {}; rawir 1222 drivers/media/rc/mceusb.c rawir.carrier_report = 1; rawir 1223 drivers/media/rc/mceusb.c rawir.carrier = (1000000u / MCE_TIME_UNIT) * rawir 1227 drivers/media/rc/mceusb.c rawir.carrier, ir->pulse_count, carrier_cycles, rawir 1229 drivers/media/rc/mceusb.c ir_raw_event_store(ir->rc, &rawir); rawir 1259 drivers/media/rc/mceusb.c struct ir_raw_event rawir = {}; rawir 1283 drivers/media/rc/mceusb.c rawir.pulse = ((ir->buf_in[i] & MCE_PULSE_BIT) != 0); rawir 1284 drivers/media/rc/mceusb.c rawir.duration = (ir->buf_in[i] & MCE_PULSE_MASK); rawir 1285 drivers/media/rc/mceusb.c if (unlikely(!rawir.duration)) { rawir 1290 drivers/media/rc/mceusb.c if (rawir.pulse) { rawir 1291 drivers/media/rc/mceusb.c ir->pulse_tunit += rawir.duration; rawir 1294 drivers/media/rc/mceusb.c rawir.duration *= US_TO_NS(MCE_TIME_UNIT); rawir 1297 drivers/media/rc/mceusb.c rawir.pulse ? "pulse" : "space", rawir 1298 drivers/media/rc/mceusb.c rawir.duration, ir->buf_in[i]); rawir 1300 drivers/media/rc/mceusb.c if (ir_raw_event_store_with_filter(ir->rc, &rawir)) rawir 83 drivers/media/rc/meson-ir.c struct ir_raw_event rawir = {}; rawir 89 drivers/media/rc/meson-ir.c rawir.duration = US_TO_NS(duration * MESON_TRATE); rawir 92 drivers/media/rc/meson-ir.c rawir.pulse = !!(status & STATUS_IR_DEC_IN); rawir 94 drivers/media/rc/meson-ir.c ir_raw_event_store_with_timeout(ir->rc, &rawir); rawir 211 drivers/media/rc/mtk-cir.c struct ir_raw_event rawir = {}; rawir 226 drivers/media/rc/mtk-cir.c rawir.pulse = false; rawir 235 drivers/media/rc/mtk-cir.c rawir.pulse = !rawir.pulse; rawir 236 drivers/media/rc/mtk-cir.c rawir.duration = wid * (MTK_IR_SAMPLE + 1); rawir 237 drivers/media/rc/mtk-cir.c ir_raw_event_store_with_filter(ir->rc, &rawir); rawir 250 drivers/media/rc/mtk-cir.c if (!MTK_IR_END(wid, rawir.pulse)) { rawir 251 drivers/media/rc/mtk-cir.c rawir.pulse = false; rawir 252 drivers/media/rc/mtk-cir.c rawir.duration = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1); rawir 253 drivers/media/rc/mtk-cir.c ir_raw_event_store_with_filter(ir->rc, &rawir); rawir 740 drivers/media/rc/nuvoton-cir.c struct ir_raw_event rawir = {}; rawir 754 drivers/media/rc/nuvoton-cir.c rawir.pulse = ((sample & BUF_PULSE_BIT) != 0); rawir 755 drivers/media/rc/nuvoton-cir.c rawir.duration = US_TO_NS((sample & BUF_LEN_MASK) rawir 759 drivers/media/rc/nuvoton-cir.c rawir.pulse ? "pulse" : "space", rawir.duration); rawir 761 drivers/media/rc/nuvoton-cir.c ir_raw_event_store_with_filter(nvt->rdev, &rawir); rawir 96 drivers/media/rc/rc-loopback.c struct ir_raw_event rawir = {}; rawir 115 drivers/media/rc/rc-loopback.c rawir.pulse = i % 2 ? false : true; rawir 116 drivers/media/rc/rc-loopback.c rawir.duration = txbuf[i] * 1000; rawir 117 drivers/media/rc/rc-loopback.c if (rawir.duration) rawir 118 drivers/media/rc/rc-loopback.c ir_raw_event_store_with_filter(dev, &rawir); rawir 122 drivers/media/rc/rc-loopback.c rawir.pulse = false; rawir 123 drivers/media/rc/rc-loopback.c rawir.duration = dev->timeout; rawir 124 drivers/media/rc/rc-loopback.c ir_raw_event_store_with_filter(dev, &rawir); rawir 341 drivers/media/rc/redrat3.c struct ir_raw_event rawir = {}; rawir 368 drivers/media/rc/redrat3.c rawir.pulse = false; rawir 370 drivers/media/rc/redrat3.c rawir.pulse = true; rawir 372 drivers/media/rc/redrat3.c rawir.duration = US_TO_NS(single_len); rawir 374 drivers/media/rc/redrat3.c rawir.duration = (rawir.duration > IR_MAX_DURATION) ? rawir 375 drivers/media/rc/redrat3.c IR_MAX_DURATION : rawir.duration; rawir 378 drivers/media/rc/redrat3.c rawir.pulse ? "pulse" : "space", rawir.duration, i); rawir 379 drivers/media/rc/redrat3.c ir_raw_event_store_with_filter(rr3->rc, &rawir); rawir 383 drivers/media/rc/redrat3.c rawir.pulse = false; rawir 384 drivers/media/rc/redrat3.c rawir.timeout = true; rawir 385 drivers/media/rc/redrat3.c rawir.duration = rr3->rc->timeout; rawir 387 drivers/media/rc/redrat3.c rawir.duration); rawir 388 drivers/media/rc/redrat3.c ir_raw_event_store_with_filter(rr3->rc, &rawir); rawir 114 drivers/media/rc/streamzap.c static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) rawir 117 drivers/media/rc/streamzap.c (rawir.pulse ? "pulse" : "space"), rawir.duration); rawir 118 drivers/media/rc/streamzap.c ir_raw_event_store_with_filter(sz->rdev, &rawir); rawir 124 drivers/media/rc/streamzap.c struct ir_raw_event rawir = {}; rawir 133 drivers/media/rc/streamzap.c rawir.pulse = false; rawir 136 drivers/media/rc/streamzap.c rawir.duration = IR_MAX_DURATION; rawir 138 drivers/media/rc/streamzap.c rawir.duration = delta; rawir 139 drivers/media/rc/streamzap.c rawir.duration -= sz->sum; rawir 140 drivers/media/rc/streamzap.c rawir.duration = US_TO_NS(rawir.duration); rawir 141 drivers/media/rc/streamzap.c rawir.duration = (rawir.duration > IR_MAX_DURATION) ? rawir 142 drivers/media/rc/streamzap.c IR_MAX_DURATION : rawir.duration; rawir 144 drivers/media/rc/streamzap.c sz_push(sz, rawir); rawir 150 drivers/media/rc/streamzap.c rawir.pulse = true; rawir 151 drivers/media/rc/streamzap.c rawir.duration = ((int) value) * SZ_RESOLUTION; rawir 152 drivers/media/rc/streamzap.c rawir.duration += SZ_RESOLUTION / 2; rawir 153 drivers/media/rc/streamzap.c sz->sum += rawir.duration; rawir 154 drivers/media/rc/streamzap.c rawir.duration = US_TO_NS(rawir.duration); rawir 155 drivers/media/rc/streamzap.c rawir.duration = (rawir.duration > IR_MAX_DURATION) ? rawir 156 drivers/media/rc/streamzap.c IR_MAX_DURATION : rawir.duration; rawir 157 drivers/media/rc/streamzap.c sz_push(sz, rawir); rawir 169 drivers/media/rc/streamzap.c struct ir_raw_event rawir = {}; rawir 171 drivers/media/rc/streamzap.c rawir.pulse = false; rawir 172 drivers/media/rc/streamzap.c rawir.duration = ((int) value) * SZ_RESOLUTION; rawir 173 drivers/media/rc/streamzap.c rawir.duration += SZ_RESOLUTION / 2; rawir 174 drivers/media/rc/streamzap.c sz->sum += rawir.duration; rawir 175 drivers/media/rc/streamzap.c rawir.duration = US_TO_NS(rawir.duration); rawir 176 drivers/media/rc/streamzap.c sz_push(sz, rawir); rawir 243 drivers/media/rc/streamzap.c struct ir_raw_event rawir = { rawir 249 drivers/media/rc/streamzap.c sz_push(sz, rawir); rawir 110 drivers/media/rc/sunxi-cir.c struct ir_raw_event rawir = {}; rawir 128 drivers/media/rc/sunxi-cir.c rawir.pulse = (dt & 0x80) != 0; rawir 129 drivers/media/rc/sunxi-cir.c rawir.duration = ((dt & 0x7f) + 1) * rawir 131 drivers/media/rc/sunxi-cir.c ir_raw_event_store_with_filter(ir->rc, &rawir); rawir 111 drivers/media/rc/ttusbir.c struct ir_raw_event rawir = {}; rawir 119 drivers/media/rc/ttusbir.c rawir.pulse = false; rawir 120 drivers/media/rc/ttusbir.c rawir.duration = NS_PER_BYTE; rawir 121 drivers/media/rc/ttusbir.c if (ir_raw_event_store_with_filter(tt->rc, &rawir)) rawir 125 drivers/media/rc/ttusbir.c rawir.pulse = true; rawir 126 drivers/media/rc/ttusbir.c rawir.duration = NS_PER_BYTE; rawir 127 drivers/media/rc/ttusbir.c if (ir_raw_event_store_with_filter(tt->rc, &rawir)) rawir 134 drivers/media/rc/ttusbir.c rawir.pulse = true; rawir 137 drivers/media/rc/ttusbir.c rawir.pulse = false; rawir 140 drivers/media/rc/ttusbir.c rawir.duration = NS_PER_BIT * (8 - b); rawir 141 drivers/media/rc/ttusbir.c if (ir_raw_event_store_with_filter(tt->rc, &rawir)) rawir 144 drivers/media/rc/ttusbir.c rawir.pulse = !rawir.pulse; rawir 145 drivers/media/rc/ttusbir.c rawir.duration = NS_PER_BIT * b; rawir 146 drivers/media/rc/ttusbir.c if (ir_raw_event_store_with_filter(tt->rc, &rawir)) rawir 356 drivers/media/rc/winbond-cir.c struct ir_raw_event rawir = {}; rawir 367 drivers/media/rc/winbond-cir.c rawir.pulse = irdata & 0x80 ? false : true; rawir 368 drivers/media/rc/winbond-cir.c rawir.duration = US_TO_NS(duration); rawir 370 drivers/media/rc/winbond-cir.c if (rawir.pulse) rawir 373 drivers/media/rc/winbond-cir.c ir_raw_event_store_with_filter(data->dev, &rawir); rawir 116 drivers/media/usb/au0828/au0828-input.c struct ir_raw_event rawir = {}; rawir 170 drivers/media/usb/au0828/au0828-input.c rawir.pulse = true; rawir 174 drivers/media/usb/au0828/au0828-input.c rawir.duration = NEC_START_PULSE; rawir 176 drivers/media/usb/au0828/au0828-input.c rawir.pulse ? "pulse" : "space", rawir 177 drivers/media/usb/au0828/au0828-input.c rawir.duration); rawir 180 drivers/media/usb/au0828/au0828-input.c rawir.duration = RC5_START_PULSE; rawir 182 drivers/media/usb/au0828/au0828-input.c rawir.pulse ? "pulse" : "space", rawir 183 drivers/media/usb/au0828/au0828-input.c rawir.duration); rawir 185 drivers/media/usb/au0828/au0828-input.c ir_raw_event_store(ir->rc, &rawir); rawir 188 drivers/media/usb/au0828/au0828-input.c rawir.pulse = prv_bit ? false : true; rawir 189 drivers/media/usb/au0828/au0828-input.c rawir.duration = AU8522_UNIT * width; rawir 191 drivers/media/usb/au0828/au0828-input.c rawir.pulse ? "pulse" : "space", rawir 192 drivers/media/usb/au0828/au0828-input.c rawir.duration); rawir 193 drivers/media/usb/au0828/au0828-input.c ir_raw_event_store(ir->rc, &rawir); rawir 200 drivers/media/usb/au0828/au0828-input.c rawir.pulse = prv_bit ? false : true; rawir 201 drivers/media/usb/au0828/au0828-input.c rawir.duration = AU8522_UNIT * width; rawir 203 drivers/media/usb/au0828/au0828-input.c rawir.pulse ? "pulse" : "space", rawir 204 drivers/media/usb/au0828/au0828-input.c rawir.duration); rawir 205 drivers/media/usb/au0828/au0828-input.c ir_raw_event_store(ir->rc, &rawir); rawir 76 include/media/rc-core.h DECLARE_KFIFO_PTR(rawir, unsigned int);