Home
last modified time | relevance | path

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

1234567891011

/linux-6.1.9/drivers/media/rc/
Diguanair.c79 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 …]
Dmtk-cir.c146 static inline u32 mtk_chkdata_reg(struct mtk_ir *ir, u32 i) in mtk_chkdata_reg() argument
148 return ir->data->regs[MTK_CHKDATA_REG] + 4 * i; in mtk_chkdata_reg()
151 static inline u32 mtk_chk_period(struct mtk_ir *ir) in mtk_chk_period() argument
159 val = DIV_ROUND_CLOSEST(clk_get_rate(ir->bus), in mtk_chk_period()
160 USEC_PER_SEC * ir->data->div / MTK_IR_SAMPLE); in mtk_chk_period()
162 dev_dbg(ir->dev, "@pwm clk = \t%lu\n", in mtk_chk_period()
163 clk_get_rate(ir->bus) / ir->data->div); in mtk_chk_period()
164 dev_dbg(ir->dev, "@chkperiod = %08x\n", val); in mtk_chk_period()
169 static void mtk_w32_mask(struct mtk_ir *ir, u32 val, u32 mask, unsigned int reg) in mtk_w32_mask() argument
173 tmp = __raw_readl(ir->base + reg); in mtk_w32_mask()
[all …]
Dmceusb.c596 static void mceusb_dev_printdata(struct mceusb_dev *ir, u8 *buf, int buf_len, in mceusb_dev_printdata() argument
602 struct device *dev = ir->dev; in mceusb_dev_printdata()
619 if (ir->flags.microsoft_gen1 && !out && !offset) { in mceusb_dev_printdata()
781 static void mceusb_defer_kevent(struct mceusb_dev *ir, int kevent) in mceusb_defer_kevent() argument
783 set_bit(kevent, &ir->kevent_flags); in mceusb_defer_kevent()
785 if (test_bit(EVENT_RST_PEND, &ir->kevent_flags)) { in mceusb_defer_kevent()
786 dev_dbg(ir->dev, "kevent %d dropped pending USB Reset Device", in mceusb_defer_kevent()
791 if (!schedule_work(&ir->kevent)) in mceusb_defer_kevent()
792 dev_dbg(ir->dev, "kevent %d already scheduled", kevent); in mceusb_defer_kevent()
794 dev_dbg(ir->dev, "kevent %d scheduled", kevent); in mceusb_defer_kevent()
[all …]
Dmeson-ir-tx.c79 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 …]
Dsunxi-cir.c61 #define REG_RXSTA_GET_AC(val) (((val) >> 8) & (ir->fifo_size * 2 - 1))
104 struct sunxi_ir *ir = dev_id; in sunxi_ir_irq() local
107 status = readl(ir->base + SUNXI_IR_RXSTA_REG); in sunxi_ir_irq()
110 writel(status | REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG); in sunxi_ir_irq()
116 rc = rc > ir->fifo_size ? ir->fifo_size : rc; in sunxi_ir_irq()
120 dt = readb(ir->base + SUNXI_IR_RXFIFO_REG); in sunxi_ir_irq()
123 ir->rc->rx_resolution; in sunxi_ir_irq()
124 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
129 ir_raw_event_overflow(ir->rc); in sunxi_ir_irq()
131 ir_raw_event_set_idle(ir->rc, true); in sunxi_ir_irq()
[all …]
Digorplugusb.c46 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 …]
Dmeson-ir.c68 static void meson_ir_set_mask(struct meson_ir *ir, unsigned int reg, in meson_ir_set_mask() argument
73 data = readl(ir->reg + reg); in meson_ir_set_mask()
76 writel(data, ir->reg + reg); in meson_ir_set_mask()
81 struct meson_ir *ir = dev_id; in meson_ir_irq() local
85 spin_lock(&ir->lock); in meson_ir_irq()
87 duration = readl_relaxed(ir->reg + IR_DEC_REG1); in meson_ir_irq()
91 status = readl_relaxed(ir->reg + IR_DEC_STATUS); in meson_ir_irq()
94 ir_raw_event_store_with_timeout(ir->rc, &rawir); in meson_ir_irq()
96 spin_unlock(&ir->lock); in meson_ir_irq()
106 struct meson_ir *ir; in meson_ir_probe() local
[all …]
DMakefile5 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-6.1.9/drivers/media/pci/cx88/
Dcx88-input.c58 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-6.1.9/drivers/staging/media/deprecated/tm6000/
Dtm6000-input.c39 printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \
66 struct tm6000_IR *ir = dev->ir; in tm6000_ir_wait() local
68 if (!dev->ir) in tm6000_ir_wait()
71 dprintk(2, "%s: %i\n",__func__, ir->wait); in tm6000_ir_wait()
74 ir->wait = 1; in tm6000_ir_wait()
76 ir->wait = 0; in tm6000_ir_wait()
79 static int tm6000_ir_config(struct tm6000_IR *ir) in tm6000_ir_config() argument
81 struct tm6000_core *dev = ir->dev; in tm6000_ir_config()
98 switch (ir->rc_proto) { in tm6000_ir_config()
112 if (ir->rc_proto == RC_PROTO_BIT_NEC) in tm6000_ir_config()
[all …]
/linux-6.1.9/drivers/media/pci/bt8xx/
Dbttv-input.c42 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-6.1.9/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-6.1.9/drivers/media/i2c/
Dir-kbd-i2c.c59 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-6.1.9/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-6.1.9/drivers/media/pci/smipcie/
Dsmipcie-ir.c13 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-6.1.9/drivers/media/usb/em28xx/
Dem28xx-input.c33 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-6.1.9/drivers/media/pci/saa7134/
Dsaa7134-input.c34 #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-6.1.9/arch/mips/math-emu/
Dcp1emu.c849 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-6.1.9/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-6.1.9/arch/parisc/math-emu/
Dfpudispatch.c182 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-6.1.9/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 = 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-6.1.9/Documentation/devicetree/bindings/media/
Dallwinner,sun4i-a10-ir.yaml4 $id: http://devicetree.org/schemas/media/allwinner,sun4i-a10-ir.yaml#
19 - const: allwinner,sun4i-a10-ir
20 - const: allwinner,sun5i-a13-ir
21 - const: allwinner,sun6i-a31-ir
24 - allwinner,sun8i-a83t-ir
25 - allwinner,sun8i-r40-ir
26 - allwinner,sun50i-a64-ir
27 - allwinner,sun50i-h6-ir
28 - allwinner,sun50i-h616-ir
29 - const: allwinner,sun6i-a31-ir
[all …]
/linux-6.1.9/lib/lzo/
Dlzo1x_compress.c52 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-6.1.9/drivers/staging/media/deprecated/saa7146/av7110/
Dav7110_ir.c23 struct rc_dev *rcdev = av7110->ir.rcdev; in av7110_ir_handler()
31 switch (av7110->ir.ir_config) { in av7110_ir_handler()
63 av7110->ir.ir_config); in av7110_ir_handler()
73 dprintk(4, "ir config = %08x\n", av7110->ir.ir_config); in av7110_set_ir_config()
76 av7110->ir.ir_config); in av7110_set_ir_config()
97 if (ir_config == av7110->ir.ir_config) in change_protocol()
100 av7110->ir.ir_config = ir_config; in change_protocol()
117 snprintf(av7110->ir.input_phys, sizeof(av7110->ir.input_phys), in av7110_ir_init()
122 rcdev->input_phys = av7110->ir.input_phys; in av7110_ir_init()
139 av7110->ir.rcdev = rcdev; in av7110_ir_init()
[all …]
/linux-6.1.9/crypto/
Dcamellia_generic.c336 #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 …]

1234567891011