/linux/drivers/media/rc/ |
H A D | iguanair.c | 79 static void process_ir_data(struct iguanair *ir, unsigned len) in process_ir_data() argument 81 if (len >= 4 && ir->buf_in[0] == 0 && ir->buf_in[1] == 0) { in process_ir_data() 82 switch (ir->buf_in[3]) { in process_ir_data() 85 ir->version = (ir->buf_in[5] << 8) | in process_ir_data() 86 ir->buf_in[4]; in process_ir_data() 87 complete(&ir->completion); in process_ir_data() 92 ir->bufsize = ir->buf_in[4]; in process_ir_data() 93 complete(&ir->completion); in process_ir_data() 98 ir->cycle_overhead = ir->buf_in[5]; in process_ir_data() 99 complete(&ir->completion); in process_ir_data() [all …]
|
H A D | meson-ir-tx.c | 79 static void meson_irtx_set_mod(struct meson_irtx *ir) in meson_irtx_set_mod() argument 81 unsigned int cnt = DIV_ROUND_CLOSEST(ir->clk_rate, ir->carrier); in meson_irtx_set_mod() 82 unsigned int pulse_cnt = DIV_ROUND_CLOSEST(cnt * ir->duty_cycle, 100); in meson_irtx_set_mod() 85 dev_dbg(ir->dev, "F_mod = %uHz, T_mod = %luns, duty_cycle = %u%%\n", in meson_irtx_set_mod() 86 ir->carrier, NSEC_PER_SEC / ir->clk_rate * cnt, in meson_irtx_set_mod() 90 ir->reg_base + IRB_ADDR1); in meson_irtx_set_mod() 93 static void meson_irtx_setup(struct meson_irtx *ir, unsigned int clk_nr) in meson_irtx_setup() argument 102 ir->reg_base + IRB_ADDR0); in meson_irtx_setup() 103 meson_irtx_set_mod(ir); in meson_irtx_setup() 104 writel(readl(ir->reg_base + IRB_ADDR0) & ~IRB_INIT_HIGH, in meson_irtx_setup() [all …]
|
H A D | mceusb.c | 595 static void mceusb_dev_printdata(struct mceusb_dev *ir, u8 *buf, int buf_len, in mceusb_dev_printdata() argument 601 struct device *dev = ir->dev; in mceusb_dev_printdata() 618 if (ir->flags.microsoft_gen1 && !out && !offset) { in mceusb_dev_printdata() 780 static void mceusb_defer_kevent(struct mceusb_dev *ir, int kevent) in mceusb_defer_kevent() argument 782 set_bit(kevent, &ir->kevent_flags); in mceusb_defer_kevent() 784 if (test_bit(EVENT_RST_PEND, &ir->kevent_flags)) { in mceusb_defer_kevent() 785 dev_dbg(ir->dev, "kevent %d dropped pending USB Reset Device", in mceusb_defer_kevent() 790 if (!schedule_work(&ir->kevent)) in mceusb_defer_kevent() 791 dev_dbg(ir->dev, "kevent %d already scheduled", kevent); in mceusb_defer_kevent() 793 dev_dbg(ir->dev, "kevent %d scheduled", kevent); in mceusb_defer_kevent() [all …]
|
H A D | igorplugusb.c | 46 static void igorplugusb_cmd(struct igorplugusb *ir, int cmd); 48 static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len) in igorplugusb_irdata() argument 53 dev_dbg(ir->dev, "irdata: %*ph (len=%u)", len, ir->buf_in, len); in igorplugusb_irdata() 61 overflow = ir->buf_in[2]; in igorplugusb_irdata() 65 dev_err(ir->dev, "receive overflow invalid: %u", overflow); in igorplugusb_irdata() 68 dev_warn(ir->dev, "receive overflow, at least %u lost", in igorplugusb_irdata() 70 ir_raw_event_overflow(ir->rc); in igorplugusb_irdata() 74 rawir.duration = ir->buf_in[i] * 85; 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() [all …]
|
H A D | meson-ir.c | 188 static void meson_ir_nec_handler(struct meson_ir *ir) in meson_ir_nec_handler() argument 194 regmap_read(ir->reg, IR_DEC_STATUS, &status); in meson_ir_nec_handler() 197 rc_repeat(ir->rc); in meson_ir_nec_handler() 199 regmap_read(ir->reg, IR_DEC_FRAME, &code); in meson_ir_nec_handler() 203 rc_keydown(ir->rc, proto, code, 0); in meson_ir_nec_handler() 207 static void meson_ir_hw_handler(struct meson_ir *ir) in meson_ir_hw_handler() argument 209 if (ir->rc->enabled_protocols & RC_PROTO_BIT_NEC) in meson_ir_hw_handler() 210 meson_ir_nec_handler(ir); in meson_ir_hw_handler() 215 struct meson_ir *ir = dev_id; in meson_ir_irq() local 219 spin_lock(&ir->lock); in meson_ir_irq() [all …]
|
H A D | Makefile | 5 rc-core-y := rc-main.o rc-ir-raw.o 14 obj-$(CONFIG_IR_IMON_DECODER) += ir-imon-decoder.o 15 obj-$(CONFIG_IR_JVC_DECODER) += ir-jvc-decoder.o 16 obj-$(CONFIG_IR_MCE_KBD_DECODER) += ir-mce_kbd-decoder.o 17 obj-$(CONFIG_IR_NEC_DECODER) += ir-nec-decoder.o 18 obj-$(CONFIG_IR_RC5_DECODER) += ir-rc5-decoder.o 19 obj-$(CONFIG_IR_RC6_DECODER) += ir-rc6-decoder.o 20 obj-$(CONFIG_IR_RCMM_DECODER) += ir-rcmm-decoder.o 21 obj-$(CONFIG_IR_SANYO_DECODER) += ir-sanyo-decoder.o 22 obj-$(CONFIG_IR_SHARP_DECODER) += ir-sharp-decoder.o [all …]
|
/linux/drivers/media/pci/cx88/ |
H A D | cx88-input.c | 58 printk(KERN_DEBUG "%s IR: " fmt, ir->core->name, ##arg);\ 68 static void cx88_ir_handle_key(struct cx88_IR *ir) in cx88_ir_handle_key() argument 70 struct cx88_core *core = ir->core; in cx88_ir_handle_key() 74 gpio = cx_read(ir->gpio_addr); in cx88_ir_handle_key() 107 if (ir->polling) { in cx88_ir_handle_key() 108 if (ir->last_gpio == auxgpio) in cx88_ir_handle_key() 110 ir->last_gpio = auxgpio; in cx88_ir_handle_key() 114 data = ir_extract_bits(gpio, ir->mask_keycode); in cx88_ir_handle_key() 117 ir->polling ? "poll" : "irq", in cx88_ir_handle_key() 118 (gpio & ir->mask_keydown) ? " down" : "", in cx88_ir_handle_key() [all …]
|
/linux/drivers/media/pci/bt8xx/ |
H A D | bttv-input.c | 42 struct bttv_ir *ir = btv->remote; in ir_handle_key() local 47 if (ir->polling) { in ir_handle_key() 48 if (ir->last_gpio == gpio) in ir_handle_key() 50 ir->last_gpio = gpio; in ir_handle_key() 54 data = ir_extract_bits(gpio, ir->mask_keycode); in ir_handle_key() 57 ir->polling ? "poll" : "irq", in ir_handle_key() 58 (gpio & ir->mask_keydown) ? " down" : "", in ir_handle_key() 59 (gpio & ir->mask_keyup) ? " up" : ""); in ir_handle_key() 61 if ((ir->mask_keydown && (gpio & ir->mask_keydown)) || in ir_handle_key() 62 (ir->mask_keyup && !(gpio & ir->mask_keyup))) { in ir_handle_key() [all …]
|
/linux/drivers/media/usb/au0828/ |
H A D | au0828-input.c | 36 int (*get_key_i2c)(struct au0828_rc *ir); 43 static int au8522_rc_write(struct au0828_rc *ir, u16 reg, u8 data) in au8522_rc_write() argument 47 struct i2c_msg msg = { .addr = ir->i2c_dev_addr, .flags = 0, in au8522_rc_write() 50 rc = i2c_transfer(ir->dev->i2c_client.adapter, &msg, 1); in au8522_rc_write() 58 static int au8522_rc_read(struct au0828_rc *ir, u16 reg, int val, in au8522_rc_read() argument 63 struct i2c_msg msg[2] = { { .addr = ir->i2c_dev_addr, .flags = 0, in au8522_rc_read() 65 { .addr = ir->i2c_dev_addr, .flags = I2C_M_RD, in au8522_rc_read() 75 rc = i2c_transfer(ir->dev->i2c_client.adapter, msg, 2); in au8522_rc_read() 83 static int au8522_rc_andor(struct au0828_rc *ir, u16 reg, u8 mask, u8 value) in au8522_rc_andor() argument 88 rc = au8522_rc_read(ir, reg, -1, &buf, 1); in au8522_rc_andor() [all …]
|
/linux/drivers/media/i2c/ |
H A D | ir-kbd-i2c.c | 59 static int get_key_haup_common(struct IR_i2c *ir, enum rc_proto *protocol, in get_key_haup_common() argument 66 if (size != i2c_master_recv(ir->c, buf, size)) in get_key_haup_common() 96 dev_dbg(&ir->rc->dev, in get_key_haup_common() 114 dev_dbg(&ir->rc->dev, in get_key_haup_common() 120 dev_dbg(&ir->rc->dev, in get_key_haup_common() 133 static int get_key_haup(struct IR_i2c *ir, enum rc_proto *protocol, in get_key_haup() argument 136 return get_key_haup_common(ir, protocol, scancode, toggle, 3); in get_key_haup() 139 static int get_key_haup_xvr(struct IR_i2c *ir, enum rc_proto *protocol, in get_key_haup_xvr() argument 151 ret = i2c_master_send(ir->c, buf, 1); in get_key_haup_xvr() 155 return get_key_haup_common(ir, protocol, scancode, toggle, 6); in get_key_haup_xvr() [all …]
|
/linux/drivers/media/pci/smipcie/ |
H A D | smipcie-ir.c | 13 static void smi_ir_enableInterrupt(struct smi_rc *ir) in smi_ir_enableInterrupt() argument 15 struct smi_dev *dev = ir->dev; in smi_ir_enableInterrupt() 20 static void smi_ir_disableInterrupt(struct smi_rc *ir) in smi_ir_disableInterrupt() argument 22 struct smi_dev *dev = ir->dev; in smi_ir_disableInterrupt() 27 static void smi_ir_clearInterrupt(struct smi_rc *ir) in smi_ir_clearInterrupt() argument 29 struct smi_dev *dev = ir->dev; in smi_ir_clearInterrupt() 34 static void smi_ir_stop(struct smi_rc *ir) in smi_ir_stop() argument 36 struct smi_dev *dev = ir->dev; in smi_ir_stop() 38 smi_ir_disableInterrupt(ir); in smi_ir_stop() 59 static void smi_ir_decode(struct smi_rc *ir) in smi_ir_decode() argument [all …]
|
/linux/drivers/media/rc/img-ir/ |
H A D | Makefile | 2 img-ir-y := img-ir-core.o 3 img-ir-$(CONFIG_IR_IMG_RAW) += img-ir-raw.o 4 img-ir-$(CONFIG_IR_IMG_HW) += img-ir-hw.o 5 img-ir-$(CONFIG_IR_IMG_NEC) += img-ir-nec.o 6 img-ir-$(CONFIG_IR_IMG_JVC) += img-ir-jvc.o 7 img-ir-$(CONFIG_IR_IMG_SONY) += img-ir-sony.o 8 img-ir-$(CONFIG_IR_IMG_SHARP) += img-ir-sharp.o 9 img-ir-$(CONFIG_IR_IMG_SANYO) += img-ir-sanyo.o 10 img-ir-$(CONFIG_IR_IMG_RC5) += img-ir-rc5.o 11 img-ir-$(CONFIG_IR_IMG_RC6) += img-ir-rc6.o [all …]
|
/linux/drivers/media/usb/em28xx/ |
H A D | em28xx-input.c | 33 dev_printk(KERN_DEBUG, &ir->dev->intf->dev, \ 63 int (*get_key_i2c)(struct i2c_client *ir, enum rc_proto *protocol, 65 int (*get_key)(struct em28xx_IR *ir, struct em28xx_ir_poll_result *r); 194 static int default_polling_getkey(struct em28xx_IR *ir, in default_polling_getkey() argument 197 struct em28xx *dev = ir->dev; in default_polling_getkey() 217 switch (ir->rc_proto) { in default_polling_getkey() 237 static int em2874_polling_getkey(struct em28xx_IR *ir, in em2874_polling_getkey() argument 240 struct em28xx *dev = ir->dev; in em2874_polling_getkey() 263 switch (ir->rc_proto) { in em2874_polling_getkey() 293 static int em28xx_i2c_ir_handle_key(struct em28xx_IR *ir) in em28xx_i2c_ir_handle_key() argument [all …]
|
/linux/drivers/media/pci/saa7134/ |
H A D | saa7134-input.c | 34 #define ir_dbg(ir, fmt, arg...) do { \ argument 36 printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \ 47 struct saa7134_card_ir *ir = dev->remote; in build_key() local 62 if (ir->polling) { in build_key() 63 if (ir->last_gpio == gpio) in build_key() 65 ir->last_gpio = gpio; in build_key() 68 data = ir_extract_bits(gpio, ir->mask_keycode); in build_key() 70 gpio, ir->mask_keycode, data); in build_key() 74 if (data == ir->mask_keycode) in build_key() 75 rc_keyup(ir->dev); in build_key() [all …]
|
/linux/arch/mips/math-emu/ |
H A D | cp1emu.c | 849 mips_instruction ir) in cop1_cfc() argument 854 switch (MIPSInst_RD(ir)) { in cop1_cfc() 858 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 868 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 876 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 887 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc() 898 if (MIPSInst_RT(ir)) in cop1_cfc() 899 xcp->regs[MIPSInst_RT(ir)] = value; in cop1_cfc() 906 mips_instruction ir) in cop1_ctc() argument 912 if (MIPSInst_RT(ir) == 0) in cop1_ctc() [all …]
|
/linux/arch/mips/kernel/ |
H A D | mips-r2-to-r6-emul.c | 78 static inline int mipsr6_emul(struct pt_regs *regs, u32 ir) in mipsr6_emul() argument 80 switch (MIPSInst_OPCODE(ir)) { in mipsr6_emul() 82 if (MIPSInst_RT(ir)) in mipsr6_emul() 83 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul() 84 (s32)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul() 85 (s32)MIPSInst_SIMM(ir); in mipsr6_emul() 91 if (MIPSInst_RT(ir)) in mipsr6_emul() 92 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul() 93 (s64)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul() 94 (s64)MIPSInst_SIMM(ir); in mipsr6_emul() [all …]
|
/linux/arch/parisc/math-emu/ |
H A D | fpudispatch.c | 182 fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[]) in fpudispatch() argument 194 class = get_class(ir); in fpudispatch() 197 subop = get_subop1_PA2_0(ir); in fpudispatch() 199 subop = get_subop1_PA1_1(ir); in fpudispatch() 202 subop = get_subop(ir); in fpudispatch() 209 return(decode_0c(ir,class,subop,fpregs)); in fpudispatch() 211 return(decode_0e(ir,class,subop,fpregs)); in fpudispatch() 213 return(decode_06(ir,fpregs)); in fpudispatch() 215 return(decode_26(ir,fpregs)); in fpudispatch() 217 return(decode_2e(ir,fpregs)); in fpudispatch() [all …]
|
/linux/drivers/media/common/siano/ |
H A D | smsir.c | 34 ir_raw_event_store(coredev->ir.dev, &ev); in sms_ir_event() 36 ir_raw_event_handle(coredev->ir.dev); in sms_ir_event() 50 coredev->ir.controller = 0; /* Todo: vega/nova SPI number */ in sms_ir_init() 51 coredev->ir.timeout = US_TO_NS(IR_DEFAULT_TIMEOUT); in sms_ir_init() 53 coredev->ir.controller, coredev->ir.timeout); in sms_ir_init() 55 snprintf(coredev->ir.name, sizeof(coredev->ir.name), in sms_ir_init() 58 strscpy(coredev->ir.phys, coredev->devpath, sizeof(coredev->ir.phys)); in sms_ir_init() 59 strlcat(coredev->ir.phys, "/ir0", sizeof(coredev->ir.phys)); in sms_ir_init() 61 dev->device_name = coredev->ir.name; in sms_ir_init() 62 dev->input_phys = coredev->ir.phys; in sms_ir_init() [all …]
|
/linux/lib/lzo/ |
H A D | lzo1x_compress.c | 52 const unsigned char *ir = ip + 4; in lzo1x_1_do_compress() local 58 for (; (ir + 32) <= limit; ir += 32) { in lzo1x_1_do_compress() 59 dv64 = get_unaligned((u64 *)ir); in lzo1x_1_do_compress() 60 dv64 |= get_unaligned((u64 *)ir + 1); in lzo1x_1_do_compress() 61 dv64 |= get_unaligned((u64 *)ir + 2); in lzo1x_1_do_compress() 62 dv64 |= get_unaligned((u64 *)ir + 3); in lzo1x_1_do_compress() 66 for (; (ir + 8) <= limit; ir += 8) { in lzo1x_1_do_compress() 67 dv64 = get_unaligned((u64 *)ir); in lzo1x_1_do_compress() 70 ir += __builtin_ctzll(dv64) >> 3; in lzo1x_1_do_compress() 72 ir += __builtin_clzll(dv64) >> 3; in lzo1x_1_do_compress() [all …]
|
/linux/drivers/staging/media/av7110/ |
H A D | av7110_ir.c | 23 struct rc_dev *rcdev = av7110->ir.rcdev; in av7110_ir_handler() 31 switch (av7110->ir.ir_config) { in av7110_ir_handler() 62 dprintk(2, "unknown ir config %d\n", av7110->ir.ir_config); in av7110_ir_handler() 72 dprintk(4, "ir config = %08x\n", av7110->ir.ir_config); in av7110_set_ir_config() 75 av7110->ir.ir_config); in av7110_set_ir_config() 96 if (ir_config == av7110->ir.ir_config) in change_protocol() 99 av7110->ir.ir_config = ir_config; in change_protocol() 116 snprintf(av7110->ir.input_phys, sizeof(av7110->ir.input_phys), in av7110_ir_init() 121 rcdev->input_phys = av7110->ir.input_phys; in av7110_ir_init() 138 av7110->ir.rcdev = rcdev; in av7110_ir_init() [all …]
|
/linux/crypto/ |
H A D | camellia_generic.c | 336 #define CAMELLIA_F(xl, xr, kl, kr, yl, yr, il, ir, t0, t1) ({ \ argument 338 ir = xr ^ kr; \ 340 t1 = ir >> 16; \ 341 yl = camellia_sp1110[(u8)(ir)] \ 344 ^ camellia_sp4404[(u8)(ir >> 8)]; \ 540 u32 il, ir, t0, t1, w0, w1; in camellia_setup128() local 597 w0, w1, il, ir, t0, t1); in camellia_setup128() 601 kll, klr, il, ir, t0, t1); in camellia_setup128() 605 krl, krr, il, ir, t0, t1); in camellia_setup128() 609 w0, w1, il, ir, t0, t1); in camellia_setup128() [all …]
|
/linux/Documentation/devicetree/bindings/media/ |
H A D | hix5hd2-ir.txt | 1 Device-Tree bindings for hix5hd2 ir IP 4 - compatible: Should contain "hisilicon,hix5hd2-ir", or: 5 - "hisilicon,hi3796cv300-ir" for Hi3796CV300 IR device. 20 ir: ir@f8001000 { 21 compatible = "hisilicon,hix5hd2-ir";
|
/linux/drivers/media/cec/platform/seco/ |
H A D | seco-cec.c | 29 struct rc_dev *ir; member 342 cec->ir = devm_rc_allocate_device(dev, RC_DRIVER_SCANCODE); in secocec_ir_probe() 343 if (!cec->ir) in secocec_ir_probe() 349 cec->ir->device_name = dev_name(dev); in secocec_ir_probe() 350 cec->ir->input_phys = cec->ir_input_phys; in secocec_ir_probe() 351 cec->ir->input_id.bustype = BUS_HOST; in secocec_ir_probe() 352 cec->ir->input_id.vendor = 0; in secocec_ir_probe() 353 cec->ir->input_id.product = 0; in secocec_ir_probe() 354 cec->ir->input_id.version = 1; in secocec_ir_probe() 355 cec->ir->driver_name = SECOCEC_DEV_NAME; in secocec_ir_probe() [all …]
|
/linux/drivers/usb/host/ |
H A D | xhci-mem.c | 1797 xhci_remove_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir) in xhci_remove_interrupter() argument 1801 if (!ir) in xhci_remove_interrupter() 1809 if (ir->ir_set) { in xhci_remove_interrupter() 1810 tmp = readl(&ir->ir_set->erst_size); in xhci_remove_interrupter() 1812 writel(tmp, &ir->ir_set->erst_size); in xhci_remove_interrupter() 1814 xhci_write_64(xhci, ERST_EHB, &ir->ir_set->erst_dequeue); in xhci_remove_interrupter() 1819 xhci_free_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir) in xhci_free_interrupter() argument 1824 if (!ir) in xhci_free_interrupter() 1827 erst_size = array_size(sizeof(struct xhci_erst_entry), ir->erst.num_entries); in xhci_free_interrupter() 1828 if (ir->erst.entries) in xhci_free_interrupter() [all …]
|
/linux/tools/testing/selftests/bpf/ |
H A D | test_tc_edt.sh | 67 declare -ir TIMEOUT=20 68 declare -ir EXPECTED_BPS=5000000 71 declare -ir RX_BYTES_START=$( ip netns exec ${NS_DST} \ 79 declare -ir RX_BYTES_END=$( ip netns exec ${NS_DST} \ 82 declare -ir ACTUAL_BPS=$(( ($RX_BYTES_END - $RX_BYTES_START) / $TIMEOUT )) 91 declare -ir RES=$( echo $ACTUAL_BPS $EXPECTED_BPS | \
|