| /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/rc/ |
| 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 | 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/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/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/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/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/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/usb/host/ |
| H A D | xhci-mem.c | 1822 xhci_remove_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir) in xhci_remove_interrupter() argument 1826 if (!ir) in xhci_remove_interrupter() 1834 if (ir->ir_set) { in xhci_remove_interrupter() 1835 tmp = readl(&ir->ir_set->erst_size); in xhci_remove_interrupter() 1837 writel(tmp, &ir->ir_set->erst_size); in xhci_remove_interrupter() 1839 xhci_update_erst_dequeue(xhci, ir, true); in xhci_remove_interrupter() 1844 xhci_free_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir) in xhci_free_interrupter() argument 1849 if (!ir) in xhci_free_interrupter() 1852 erst_size = array_size(sizeof(struct xhci_erst_entry), ir->erst.num_entries); in xhci_free_interrupter() 1853 if (ir->erst.entries) in xhci_free_interrupter() [all …]
|
| H A D | xhci-sideband.c | 100 if (!sb->ir) in __xhci_sideband_remove_interrupter() 103 xhci_remove_secondary_interrupter(xhci_to_hcd(sb->xhci), sb->ir); in __xhci_sideband_remove_interrupter() 104 sb->ir = NULL; in __xhci_sideband_remove_interrupter() 281 if (!sb || !sb->ir) in xhci_sideband_get_event_buffer() 284 return xhci_ring_to_sgtable(sb, sb->ir->event_ring); in xhci_sideband_get_event_buffer() 343 if (sb->ir) in xhci_sideband_create_interrupter() 346 sb->ir = xhci_create_secondary_interrupter(xhci_to_hcd(sb->xhci), in xhci_sideband_create_interrupter() 349 if (!sb->ir) in xhci_sideband_create_interrupter() 355 sb->ir->ip_autoclear = ip_autoclear; in xhci_sideband_create_interrupter() 395 if (!sb || !sb->ir) in xhci_sideband_interrupter_id() [all …]
|
| /linux/drivers/media/pci/ttpci/ |
| H A D | budget-ci.c | 100 struct budget_ci_ir ir; member 106 struct budget_ci_ir *ir = from_work(ir, t, msp430_irq_bh_work); in msp430_ir_interrupt() local 107 struct budget_ci *budget_ci = container_of(ir, typeof(*budget_ci), ir); in msp430_ir_interrupt() 108 struct rc_dev *dev = budget_ci->ir.dev; in msp430_ir_interrupt() 135 budget_ci->ir.have_command = true; in msp430_ir_interrupt() 136 budget_ci->ir.ir_key = command & 0x3f; in msp430_ir_interrupt() 141 if (!budget_ci->ir.have_command) in msp430_ir_interrupt() 143 budget_ci->ir.have_command = false; in msp430_ir_interrupt() 145 if (budget_ci->ir.rc5_device != IR_DEVICE_ANY && in msp430_ir_interrupt() 146 budget_ci->ir.rc5_device != (command & 0x1f)) in msp430_ir_interrupt() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | test_tc_edt.sh | |
| /linux/drivers/video/fbdev/ |
| H A D | bt431.h | 76 static inline void bt431_select_reg(struct bt431_regs *regs, int ir) in bt431_select_reg() argument 86 *lo = bt431_set_value(ir & 0xff); in bt431_select_reg() 88 *hi = bt431_set_value((ir >> 8) & 0xff); in bt431_select_reg() 116 static inline u8 bt431_read_reg(struct bt431_regs *regs, int ir) in bt431_read_reg() argument 118 bt431_select_reg(regs, ir); in bt431_read_reg() 122 static inline void bt431_write_reg(struct bt431_regs *regs, int ir, u8 value) in bt431_write_reg() argument 124 bt431_select_reg(regs, ir); in bt431_write_reg()
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | qos_lib.sh | 13 echo "$what $(humanize $ir) < $(humanize $min)" > /dev/stderr 41 local ir=$(rate $u0 $u1 $interval) 44 if check_rate $ir $min_ingress "$what ingress rate"; then 54 echo $ir $er
|
| /linux/arch/mips/math-emu/ |
| H A D | dsemul.c | 209 int mips_dsemul(struct pt_regs *regs, mips_instruction ir, in mips_dsemul() argument 219 if (ir == 0) in mips_dsemul() 224 union mips_instruction insn = { .word = ir }; in mips_dsemul() 227 if ((ir >> 16) == MM_NOP16) in mips_dsemul() 258 .halfword = { ir >> 16, ir } in mips_dsemul() 267 fr.emul = ir; in mips_dsemul()
|
| /linux/drivers/media/pci/cx23885/ |
| H A D | cx23885-input.c | 45 v4l2_subdev_call(dev->sd_ir, ir, rx_read, (u8 *) ir_core_event, in cx23885_input_process_measurements() 106 v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, ¶ms); in cx23885_input_rx_work_handler() 110 v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, ¶ms); in cx23885_input_rx_work_handler() 121 v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, ¶ms); in cx23885_input_rx_work_handler() 134 v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, ¶ms); in cx23885_input_ir_start() 208 v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, ¶ms); in cx23885_input_ir_start() 237 v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, ¶ms); in cx23885_input_ir_stop() 242 v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, ¶ms); in cx23885_input_ir_stop() 243 v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, ¶ms); in cx23885_input_ir_stop()
|
| /linux/drivers/media/usb/cx231xx/ |
| H A D | cx231xx-input.c | 17 static int get_key_isdbt(struct IR_i2c *ir, enum rc_proto *protocol, in get_key_isdbt() argument 23 dev_dbg(&ir->rc->dev, "%s\n", __func__); in get_key_isdbt() 26 rc = i2c_master_recv(ir->c, &cmd, 1); in get_key_isdbt() 41 dev_dbg(&ir->rc->dev, "cmd %02x, scan = %02x\n", cmd, scancode); in get_key_isdbt()
|
| /linux/arch/arm/boot/dts/rockchip/ |
| H A D | rk3288-firefly.dts | 14 &ir { 25 ir { 26 ir_int: ir-int {
|
| H A D | rk3288-firefly-beta.dts | 14 &ir { 25 ir { 26 ir_int: ir-int {
|