Home
last modified time | relevance | path

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

12345678910>>...16

/openbmc/linux/drivers/media/rc/
H A 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 …]
H A Dmtk-cir.c147 static inline u32 mtk_chkdata_reg(struct mtk_ir *ir, u32 i) in mtk_chkdata_reg() argument
149 return ir->data->regs[MTK_CHKDATA_REG] + 4 * i; in mtk_chkdata_reg()
152 static inline u32 mtk_chk_period(struct mtk_ir *ir) in mtk_chk_period() argument
160 val = DIV_ROUND_CLOSEST(clk_get_rate(ir->bus), in mtk_chk_period()
161 USEC_PER_SEC * ir->data->div / MTK_IR_SAMPLE); in mtk_chk_period()
163 dev_dbg(ir->dev, "@pwm clk = \t%lu\n", in mtk_chk_period()
164 clk_get_rate(ir->bus) / ir->data->div); in mtk_chk_period()
165 dev_dbg(ir->dev, "@chkperiod = %08x\n", val); in mtk_chk_period()
170 static void mtk_w32_mask(struct mtk_ir *ir, u32 val, u32 mask, unsigned int reg) in mtk_w32_mask() argument
174 tmp = __raw_readl(ir->base + reg); in mtk_w32_mask()
[all …]
H A 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 …]
H A 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 …]
H A Dsunxi-cir.c62 #define REG_RXSTA_GET_AC(val) (((val) >> 8) & (ir->fifo_size * 2 - 1))
105 struct sunxi_ir *ir = dev_id; in sunxi_ir_irq() local
108 status = readl(ir->base + SUNXI_IR_RXSTA_REG); in sunxi_ir_irq()
111 writel(status | REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG); in sunxi_ir_irq()
117 rc = rc > ir->fifo_size ? ir->fifo_size : rc; in sunxi_ir_irq()
121 dt = readb(ir->base + SUNXI_IR_RXFIFO_REG); in sunxi_ir_irq()
124 ir->rc->rx_resolution; in sunxi_ir_irq()
125 ir_raw_event_store_with_filter(ir->rc, &rawir); in sunxi_ir_irq()
130 ir_raw_event_overflow(ir->rc); in sunxi_ir_irq()
132 ir_raw_event_set_idle(ir->rc, true); in sunxi_ir_irq()
[all …]
H A 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 …]
H A Dmeson-ir.c67 struct meson_ir *ir = dev_id; in meson_ir_irq() local
71 spin_lock(&ir->lock); in meson_ir_irq()
73 regmap_read(ir->reg, IR_DEC_REG1, &duration); in meson_ir_irq()
77 regmap_read(ir->reg, IR_DEC_STATUS, &status); in meson_ir_irq()
80 ir_raw_event_store_with_timeout(ir->rc, &rawir); in meson_ir_irq()
82 spin_unlock(&ir->lock); in meson_ir_irq()
93 struct meson_ir *ir; in meson_ir_probe() local
96 ir = devm_kzalloc(dev, sizeof(struct meson_ir), GFP_KERNEL); in meson_ir_probe()
97 if (!ir) in meson_ir_probe()
104 ir->reg = devm_regmap_init_mmio(&pdev->dev, res_start, in meson_ir_probe()
[all …]
H A 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 …]
/openbmc/linux/drivers/media/pci/cx88/
H A 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 …]
/openbmc/linux/drivers/media/pci/bt8xx/
H A 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 …]
/openbmc/linux/drivers/media/usb/au0828/
H A 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 …]
/openbmc/linux/drivers/media/i2c/
H A 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 …]
/openbmc/linux/drivers/media/pci/smipcie/
H A 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 …]
/openbmc/linux/drivers/media/rc/img-ir/
H A 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 …]
/openbmc/linux/drivers/media/usb/em28xx/
H A 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 …]
/openbmc/linux/drivers/media/pci/saa7134/
H A 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 …]
/openbmc/linux/arch/mips/math-emu/
H A 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 …]
/openbmc/linux/arch/mips/kernel/
H A 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 …]
/openbmc/linux/arch/parisc/math-emu/
H A 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 …]
/openbmc/linux/drivers/media/common/siano/
H A 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 …]
/openbmc/linux/lib/lzo/
H A 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 …]
/openbmc/qemu/linux-user/alpha/
H A Dcpu_loop.c75 trapnr = env->ir[IR_V0]; in cpu_loop()
77 env->ir[IR_A0], env->ir[IR_A1], in cpu_loop()
78 env->ir[IR_A2], env->ir[IR_A3], in cpu_loop()
79 env->ir[IR_A4], env->ir[IR_A5], in cpu_loop()
91 trapnr = (env->ir[IR_V0] != 0 && sysret < 0); in cpu_loop()
92 env->ir[IR_V0] = (trapnr ? -sysret : sysret); in cpu_loop()
93 env->ir[IR_A3] = trapnr; in cpu_loop()
113 switch (env->ir[IR_A0]) { in cpu_loop()
181 env->ir[i] = ((abi_ulong *)regs)[i]; in target_cpu_copy_regs()
183 env->ir[IR_SP] = regs->usp; in target_cpu_copy_regs()
/openbmc/linux/drivers/staging/media/av7110/
H A 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 …]
/openbmc/openbmc/poky/meta/recipes-gnome/gobject-introspection/
H A Dgobject-introspection_1.82.0.bb27 MULTILIB_SCRIPTS = "${PN}:${bindir}/g-ir-annotation-tool ${PN}:${bindir}/g-ir-scanner"
35 # on the fly by g-ir-scanner and a native version of itself to run
50 -Dgi_cross_binary_wrapper=${B}/g-ir-scanner-qemuwrapper \
51 -Dgi_cross_ldd_wrapper=${B}/g-ir-scanner-lddwrapper \
61 sed -i -e '1s,#!.*,#!${USRBINPATH}/env python3,' ${S}/tools/g-ir-tool-template.in
68 cat > ${B}/g-ir-scanner-qemuwrapper << EOF
81 chmod +x ${B}/g-ir-scanner-qemuwrapper
83 …# Write out a wrapper for g-ir-scanner itself, which will be used when building introspection files
87 cat > ${B}/g-ir-scanner-wrapper << EOF
89 # This prevents g-ir-scanner from writing cache data to user's HOME dir
[all …]
/openbmc/libcper/cli-app/
H A Dcper-convert.c94 json_object *ir; in cper_to_json() local
96 ir = cper_single_section_to_ir(cper_file); in cper_to_json()
98 ir = cper_to_ir(cper_file); in cper_to_json()
104 json_object_to_json_string_ext(ir, JSON_C_TO_STRING_PRETTY); in cper_to_json()
137 json_object *ir = json_object_from_file(in_file); in json_to_cper() local
138 if (ir == NULL) { in json_to_cper()
167 int success = validate_schema_from_file(specification_file, ir, in json_to_cper()
195 if (json_object_object_get(ir, "header") != NULL) { in json_to_cper()
196 ir_to_cper(ir, cper_file); in json_to_cper()
198 ir_single_section_to_cper(ir, cper_file); in json_to_cper()
[all …]

12345678910>>...16