Home
last modified time | relevance | path

Searched refs:ir (Results 1 – 25 of 197) sorted by relevance

12345678

/Linux-v4.19/drivers/media/rc/
Diguanair.c91 static void process_ir_data(struct iguanair *ir, unsigned len) in process_ir_data() argument
93 if (len >= 4 && ir->buf_in[0] == 0 && ir->buf_in[1] == 0) { in process_ir_data()
94 switch (ir->buf_in[3]) { in process_ir_data()
97 ir->version = (ir->buf_in[5] << 8) | in process_ir_data()
98 ir->buf_in[4]; in process_ir_data()
99 complete(&ir->completion); in process_ir_data()
104 ir->bufsize = ir->buf_in[4]; in process_ir_data()
105 complete(&ir->completion); in process_ir_data()
110 ir->cycle_overhead = ir->buf_in[5]; in process_ir_data()
111 complete(&ir->completion); in process_ir_data()
[all …]
Dmtk-cir.c149 static inline u32 mtk_chkdata_reg(struct mtk_ir *ir, u32 i) in mtk_chkdata_reg() argument
151 return ir->data->regs[MTK_CHKDATA_REG] + 4 * i; in mtk_chkdata_reg()
154 static inline u32 mtk_chk_period(struct mtk_ir *ir) in mtk_chk_period() argument
160 clk_get_rate(ir->bus) / ir->data->div); in mtk_chk_period()
168 dev_dbg(ir->dev, "@pwm clk = \t%lu\n", in mtk_chk_period()
169 clk_get_rate(ir->bus) / ir->data->div); in mtk_chk_period()
170 dev_dbg(ir->dev, "@chkperiod = %08x\n", val); in mtk_chk_period()
175 static void mtk_w32_mask(struct mtk_ir *ir, u32 val, u32 mask, unsigned int reg) in mtk_w32_mask() argument
179 tmp = __raw_readl(ir->base + reg); in mtk_w32_mask()
181 __raw_writel(tmp, ir->base + reg); in mtk_w32_mask()
[all …]
Dsunxi-cir.c64 #define REG_RXSTA_GET_AC(val) (((val) >> 8) & (ir->fifo_size * 2 - 1))
101 struct sunxi_ir *ir = dev_id; in sunxi_ir_irq() local
104 spin_lock(&ir->ir_lock); in sunxi_ir_irq()
106 status = readl(ir->base + SUNXI_IR_RXSTA_REG); in sunxi_ir_irq()
109 writel(status | REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG); in sunxi_ir_irq()
115 rc = rc > ir->fifo_size ? ir->fifo_size : rc; in sunxi_ir_irq()
119 dt = readb(ir->base + SUNXI_IR_RXFIFO_REG); in sunxi_ir_irq()
122 ir->rc->rx_resolution; in sunxi_ir_irq()
123 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
128 ir_raw_event_reset(ir->rc); in sunxi_ir_irq()
[all …]
Dmceusb.c595 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()
606 if (ir->flags.microsoft_gen1 && !out && !offset) in mceusb_dev_printdata()
750 dev_dbg(dev, "Raw IR data, %d pulse/space samples", ir->rem); in mceusb_dev_printdata()
760 static void mceusb_defer_kevent(struct mceusb_dev *ir, int kevent) in mceusb_defer_kevent() argument
762 set_bit(kevent, &ir->kevent_flags); in mceusb_defer_kevent()
763 if (!schedule_work(&ir->kevent)) in mceusb_defer_kevent()
764 dev_err(ir->dev, "kevent %d may have been dropped", kevent); in mceusb_defer_kevent()
766 dev_dbg(ir->dev, "kevent %d scheduled", kevent); in mceusb_defer_kevent()
771 struct mceusb_dev *ir; in mce_async_callback() local
[all …]
Digorplugusb.c55 static void igorplugusb_cmd(struct igorplugusb *ir, int cmd);
57 static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len) in igorplugusb_irdata() argument
62 dev_dbg(ir->dev, "irdata: %*ph (len=%u)", len, ir->buf_in, len); in igorplugusb_irdata()
70 overflow = ir->buf_in[2]; in igorplugusb_irdata()
74 dev_err(ir->dev, "receive overflow invalid: %u", overflow); in igorplugusb_irdata()
77 dev_warn(ir->dev, "receive overflow, at least %u lost", in igorplugusb_irdata()
81 rawir.duration = ir->buf_in[i] * 85333; 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()
93 ir_raw_event_store_with_filter(ir->rc, &rawir); in igorplugusb_irdata()
[all …]
Dmeson-ir.c74 static void meson_ir_set_mask(struct meson_ir *ir, unsigned int reg, in meson_ir_set_mask() argument
79 data = readl(ir->reg + reg); in meson_ir_set_mask()
82 writel(data, ir->reg + reg); in meson_ir_set_mask()
87 struct meson_ir *ir = dev_id; in meson_ir_irq() local
91 spin_lock(&ir->lock); in meson_ir_irq()
93 duration = readl_relaxed(ir->reg + IR_DEC_REG1); in meson_ir_irq()
97 status = readl_relaxed(ir->reg + IR_DEC_STATUS); in meson_ir_irq()
100 ir_raw_event_store_with_timeout(ir->rc, &rawir); in meson_ir_irq()
102 spin_unlock(&ir->lock); in meson_ir_irq()
113 struct meson_ir *ir; in meson_ir_probe() local
[all …]
Dtango-ir.c59 static void tango_ir_handle_nec(struct tango_ir *ir) in tango_ir_handle_nec() argument
64 v = readl_relaxed(ir->rc5_base + IR_NEC_DATA); in tango_ir_handle_nec()
66 rc_repeat(ir->rc); in tango_ir_handle_nec()
71 rc_keydown(ir->rc, proto, code, 0); in tango_ir_handle_nec()
74 static void tango_ir_handle_rc5(struct tango_ir *ir) in tango_ir_handle_rc5() argument
78 data = readl_relaxed(ir->rc5_base + IR_RC5_DATA); in tango_ir_handle_rc5()
88 rc_keydown(ir->rc, RC_PROTO_RC5, code, toggle); in tango_ir_handle_rc5()
91 static void tango_ir_handle_rc6(struct tango_ir *ir) in tango_ir_handle_rc6() argument
95 data0 = readl_relaxed(ir->rc6_base + RC6_DATA0); in tango_ir_handle_rc6()
96 data1 = readl_relaxed(ir->rc6_base + RC6_DATA1); in tango_ir_handle_rc6()
[all …]
DMakefile6 rc-core-y := rc-main.o rc-ir-raw.o
9 obj-$(CONFIG_IR_NEC_DECODER) += ir-nec-decoder.o
10 obj-$(CONFIG_IR_RC5_DECODER) += ir-rc5-decoder.o
11 obj-$(CONFIG_IR_RC6_DECODER) += ir-rc6-decoder.o
12 obj-$(CONFIG_IR_JVC_DECODER) += ir-jvc-decoder.o
13 obj-$(CONFIG_IR_SONY_DECODER) += ir-sony-decoder.o
14 obj-$(CONFIG_IR_SANYO_DECODER) += ir-sanyo-decoder.o
15 obj-$(CONFIG_IR_SHARP_DECODER) += ir-sharp-decoder.o
16 obj-$(CONFIG_IR_MCE_KBD_DECODER) += ir-mce_kbd-decoder.o
17 obj-$(CONFIG_IR_XMP_DECODER) += ir-xmp-decoder.o
[all …]
/Linux-v4.19/drivers/media/pci/cx88/
Dcx88-input.c67 printk(KERN_DEBUG "%s IR: " fmt, ir->core->name, ##arg);\
77 static void cx88_ir_handle_key(struct cx88_IR *ir) in cx88_ir_handle_key() argument
79 struct cx88_core *core = ir->core; in cx88_ir_handle_key()
83 gpio = cx_read(ir->gpio_addr); in cx88_ir_handle_key()
116 if (ir->polling) { in cx88_ir_handle_key()
117 if (ir->last_gpio == auxgpio) in cx88_ir_handle_key()
119 ir->last_gpio = auxgpio; in cx88_ir_handle_key()
123 data = ir_extract_bits(gpio, ir->mask_keycode); in cx88_ir_handle_key()
126 ir->polling ? "poll" : "irq", in cx88_ir_handle_key()
127 (gpio & ir->mask_keydown) ? " down" : "", in cx88_ir_handle_key()
[all …]
/Linux-v4.19/drivers/media/usb/tm6000/
Dtm6000-input.c47 printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \
74 struct tm6000_IR *ir = dev->ir; in tm6000_ir_wait() local
76 if (!dev->ir) in tm6000_ir_wait()
79 dprintk(2, "%s: %i\n",__func__, ir->wait); in tm6000_ir_wait()
82 ir->wait = 1; in tm6000_ir_wait()
84 ir->wait = 0; in tm6000_ir_wait()
87 static int tm6000_ir_config(struct tm6000_IR *ir) in tm6000_ir_config() argument
89 struct tm6000_core *dev = ir->dev; in tm6000_ir_config()
106 switch (ir->rc_proto) { in tm6000_ir_config()
120 if (ir->rc_proto == RC_PROTO_BIT_NEC) in tm6000_ir_config()
[all …]
/Linux-v4.19/drivers/media/pci/bt8xx/
Dbttv-input.c51 struct bttv_ir *ir = btv->remote; in ir_handle_key() local
56 if (ir->polling) { in ir_handle_key()
57 if (ir->last_gpio == gpio) in ir_handle_key()
59 ir->last_gpio = gpio; in ir_handle_key()
63 data = ir_extract_bits(gpio, ir->mask_keycode); in ir_handle_key()
66 ir->polling ? "poll" : "irq", in ir_handle_key()
67 (gpio & ir->mask_keydown) ? " down" : "", in ir_handle_key()
68 (gpio & ir->mask_keyup) ? " up" : ""); in ir_handle_key()
70 if ((ir->mask_keydown && (gpio & ir->mask_keydown)) || in ir_handle_key()
71 (ir->mask_keyup && !(gpio & ir->mask_keyup))) { in ir_handle_key()
[all …]
/Linux-v4.19/drivers/media/usb/au0828/
Dau0828-input.c36 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-v4.19/drivers/media/pci/ttpci/
Dav7110_ir.c89 struct infrared *ir = from_timer(ir, t, keyup_timer); in av7110_emit_keyup() local
91 if (!ir || !ir->keypressed) in av7110_emit_keyup()
94 input_report_key(ir->input_dev, ir->last_key, 0); in av7110_emit_keyup()
95 input_sync(ir->input_dev); in av7110_emit_keyup()
96 ir->keypressed = false; in av7110_emit_keyup()
103 struct infrared *ir = (struct infrared *) parm; in av7110_emit_key() local
104 u32 ircom = ir->ir_command; in av7110_emit_key()
111 switch (ir->protocol) { in av7110_emit_key()
134 printk("%s invalid protocol %x\n", __func__, ir->protocol); in av7110_emit_key()
138 input_event(ir->input_dev, EV_MSC, MSC_RAW, (addr << 16) | data); in av7110_emit_key()
[all …]
/Linux-v4.19/drivers/media/i2c/
Dir-kbd-i2c.c69 static int get_key_haup_common(struct IR_i2c *ir, enum rc_proto *protocol, in get_key_haup_common() argument
76 if (size != i2c_master_recv(ir->c, buf, size)) in get_key_haup_common()
106 dev_dbg(&ir->rc->dev, in get_key_haup_common()
124 dev_dbg(&ir->rc->dev, in get_key_haup_common()
130 dev_dbg(&ir->rc->dev, in get_key_haup_common()
143 static int get_key_haup(struct IR_i2c *ir, enum rc_proto *protocol, in get_key_haup() argument
146 return get_key_haup_common(ir, protocol, scancode, toggle, 3); in get_key_haup()
149 static int get_key_haup_xvr(struct IR_i2c *ir, enum rc_proto *protocol, in get_key_haup_xvr() argument
161 ret = i2c_master_send(ir->c, buf, 1); in get_key_haup_xvr()
165 return get_key_haup_common(ir, protocol, scancode, toggle, 6); in get_key_haup_xvr()
[all …]
/Linux-v4.19/drivers/media/rc/img-ir/
DMakefile2 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-v4.19/drivers/media/pci/smipcie/
Dsmipcie-ir.c19 static void smi_ir_enableInterrupt(struct smi_rc *ir) in smi_ir_enableInterrupt() argument
21 struct smi_dev *dev = ir->dev; in smi_ir_enableInterrupt()
26 static void smi_ir_disableInterrupt(struct smi_rc *ir) in smi_ir_disableInterrupt() argument
28 struct smi_dev *dev = ir->dev; in smi_ir_disableInterrupt()
33 static void smi_ir_clearInterrupt(struct smi_rc *ir) in smi_ir_clearInterrupt() argument
35 struct smi_dev *dev = ir->dev; in smi_ir_clearInterrupt()
40 static void smi_ir_stop(struct smi_rc *ir) in smi_ir_stop() argument
42 struct smi_dev *dev = ir->dev; in smi_ir_stop()
44 smi_ir_disableInterrupt(ir); in smi_ir_stop()
116 struct smi_rc *ir = container_of(work, struct smi_rc, work); in smi_ir_decode() local
[all …]
/Linux-v4.19/drivers/media/pci/saa7134/
Dsaa7134-input.c44 #define ir_dbg(ir, fmt, arg...) do { \ argument
46 printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \
57 struct saa7134_card_ir *ir = dev->remote; in build_key() local
72 if (ir->polling) { in build_key()
73 if (ir->last_gpio == gpio) in build_key()
75 ir->last_gpio = gpio; in build_key()
78 data = ir_extract_bits(gpio, ir->mask_keycode); in build_key()
80 gpio, ir->mask_keycode, data); in build_key()
84 if (data == ir->mask_keycode) in build_key()
85 rc_keyup(ir->dev); in build_key()
[all …]
/Linux-v4.19/drivers/media/usb/em28xx/
Dem28xx-input.c42 dev_printk(KERN_DEBUG, &ir->dev->intf->dev, \
73 int (*get_key_i2c)(struct i2c_client *ir, enum rc_proto *protocol,
75 int (*get_key)(struct em28xx_IR *ir, struct em28xx_ir_poll_result *r);
204 static int default_polling_getkey(struct em28xx_IR *ir, in default_polling_getkey() argument
207 struct em28xx *dev = ir->dev; in default_polling_getkey()
227 switch (ir->rc_proto) { in default_polling_getkey()
247 static int em2874_polling_getkey(struct em28xx_IR *ir, in em2874_polling_getkey() argument
250 struct em28xx *dev = ir->dev; in em2874_polling_getkey()
273 switch (ir->rc_proto) { in em2874_polling_getkey()
316 static int em28xx_i2c_ir_handle_key(struct em28xx_IR *ir) in em28xx_i2c_ir_handle_key() argument
[all …]
/Linux-v4.19/arch/mips/math-emu/
Dcp1emu.c861 mips_instruction ir) in cop1_cfc() argument
866 switch (MIPSInst_RD(ir)) { in cop1_cfc()
870 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc()
880 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc()
888 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc()
899 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value); in cop1_cfc()
910 if (MIPSInst_RT(ir)) in cop1_cfc()
911 xcp->regs[MIPSInst_RT(ir)] = value; in cop1_cfc()
918 mips_instruction ir) in cop1_ctc() argument
924 if (MIPSInst_RT(ir) == 0) in cop1_ctc()
[all …]
/Linux-v4.19/arch/mips/kernel/
Dmips-r2-to-r6-emul.c78 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-v4.19/arch/parisc/math-emu/
Dfpudispatch.c195 fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[]) in fpudispatch() argument
207 class = get_class(ir); in fpudispatch()
210 subop = get_subop1_PA2_0(ir); in fpudispatch()
212 subop = get_subop1_PA1_1(ir); in fpudispatch()
215 subop = get_subop(ir); in fpudispatch()
222 return(decode_0c(ir,class,subop,fpregs)); in fpudispatch()
224 return(decode_0e(ir,class,subop,fpregs)); in fpudispatch()
226 return(decode_06(ir,fpregs)); in fpudispatch()
228 return(decode_26(ir,fpregs)); in fpudispatch()
230 return(decode_2e(ir,fpregs)); in fpudispatch()
[all …]
/Linux-v4.19/drivers/media/common/siano/
Dsmsir.c34 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 = 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 strlcpy(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-v4.19/crypto/
Dcamellia_generic.c356 #define CAMELLIA_F(xl, xr, kl, kr, yl, yr, il, ir, t0, t1) ({ \ argument
358 ir = xr ^ kr; \
360 t1 = ir >> 16; \
361 yl = camellia_sp1110[(u8)(ir)] \
364 ^ camellia_sp4404[(u8)(ir >> 8)]; \
560 u32 il, ir, t0, t1, w0, w1; in camellia_setup128() local
617 w0, w1, il, ir, t0, t1); in camellia_setup128()
621 kll, klr, il, ir, t0, t1); in camellia_setup128()
625 krl, krr, il, ir, t0, t1); in camellia_setup128()
629 w0, w1, il, ir, t0, t1); in camellia_setup128()
[all …]
/Linux-v4.19/Documentation/devicetree/bindings/media/
Dsunxi-ir.txt4 - compatible : "allwinner,sun4i-a10-ir" or "allwinner,sun5i-a13-ir"
7 - clock-names : should contain "apb" and "ir" entries;
19 ir0: ir@1c21800 {
20 compatible = "allwinner,sun4i-a10-ir";
22 clock-names = "apb", "ir";
Dmeson-ir.txt5 - "amlogic,meson6-ir"
6 - "amlogic,meson8b-ir"
7 - "amlogic,meson-gxbb-ir"
16 ir-receiver@c8100480 {
17 compatible= "amlogic,meson6-ir";

12345678