Home
last modified time | relevance | path

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

1234567

/linux/drivers/media/rc/
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 Dmeson-ir.c188 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 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/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 …]
/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 …]
/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 …]
/linux/fs/ntfs/
H A Dindex.c40 ih = &icx->ir->index; in ntfs_index_entry_inconsistent()
509 struct index_root *ir = NULL; in ntfs_ir_lookup() local
530 ir = (struct index_root *)((char *)a + le16_to_cpu(a->data.resident.value_offset)); in ntfs_ir_lookup()
532 if (!ir) { in ntfs_ir_lookup()
536 return ir; in ntfs_ir_lookup()
542 struct index_root *ir; in ntfs_ir_lookup2() local
544 ir = ntfs_ir_lookup(ni, name, len, &ctx); in ntfs_ir_lookup2()
545 if (ir) in ntfs_ir_lookup2()
547 return ir; in ntfs_ir_lookup2()
732 struct index_root *ir; in ntfs_index_lookup() local
[all …]
/linux/Documentation/devicetree/bindings/media/
H A Dhix5hd2-ir.txt1 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";
H A Dimg-ir-rev1.txt7 - compatible: Should be "img,ir-rev1"
28 ir@2006200 {
29 compatible = "img,ir-rev1";
/linux/drivers/usb/host/
H A Dxhci-sideband.c98 if (!sb->ir) in __xhci_sideband_remove_interrupter()
101 xhci_remove_secondary_interrupter(xhci_to_hcd(sb->xhci), sb->ir); in __xhci_sideband_remove_interrupter()
102 sb->ir = NULL; in __xhci_sideband_remove_interrupter()
274 if (!sb || !sb->ir) in xhci_sideband_get_event_buffer()
277 return xhci_ring_to_sgtable(sb, sb->ir->event_ring); in xhci_sideband_get_event_buffer()
333 if (sb->ir) in xhci_sideband_create_interrupter()
336 sb->ir = xhci_create_secondary_interrupter(xhci_to_hcd(sb->xhci), in xhci_sideband_create_interrupter()
339 if (!sb->ir) in xhci_sideband_create_interrupter()
342 sb->ir->ip_autoclear = ip_autoclear; in xhci_sideband_create_interrupter()
382 if (!sb || !sb->ir) in xhci_sideband_interrupter_id()
[all …]
H A Dxhci-ring.c2634 struct xhci_interrupter *ir, in handle_tx_event() argument
2973 ir->event_ring->deq_seg, in handle_tx_event()
2974 ir->event_ring->dequeue), in handle_tx_event()
2986 static int xhci_handle_event_trb(struct xhci_hcd *xhci, struct xhci_interrupter *ir, in xhci_handle_event_trb() argument
2991 trace_xhci_handle_event(ir->event_ring, &event->generic, in xhci_handle_event_trb()
2992 xhci_trb_virt_to_dma(ir->event_ring->deq_seg, in xhci_handle_event_trb()
2993 ir->event_ring->dequeue)); in xhci_handle_event_trb()
3011 handle_tx_event(xhci, ir, &event->trans_event); in xhci_handle_event_trb()
3039 struct xhci_interrupter *ir, in xhci_update_erst_dequeue() argument
3045 temp_64 = xhci_read_64(xhci, &ir->ir_set->erst_dequeue); in xhci_update_erst_dequeue()
[all …]
H A Dxhci.c294 struct xhci_intr_reg __iomem *ir; in xhci_zero_64b_regs() local
296 ir = &xhci->run_regs->ir_set[i]; in xhci_zero_64b_regs()
297 val = xhci_read_64(xhci, &ir->erst_base); in xhci_zero_64b_regs()
299 xhci_write_64(xhci, 0, &ir->erst_base); in xhci_zero_64b_regs()
300 val= xhci_read_64(xhci, &ir->erst_dequeue); in xhci_zero_64b_regs()
302 xhci_write_64(xhci, 0, &ir->erst_dequeue); in xhci_zero_64b_regs()
313 int xhci_enable_interrupter(struct xhci_interrupter *ir) in xhci_enable_interrupter() argument
317 if (!ir || !ir->ir_set) in xhci_enable_interrupter()
320 iman = readl(&ir->ir_set->iman); in xhci_enable_interrupter()
323 writel(iman, &ir->ir_set->iman); in xhci_enable_interrupter()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_tc_edt.sh
/linux/drivers/video/fbdev/
H A Dbt431.h76 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 Dqos_lib.sh13 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 Ddsemul.c209 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/usb/cx231xx/
H A Dcx231xx-input.c17 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 Drk3288-firefly.dts14 &ir {
25 ir {
26 ir_int: ir-int {
H A Drk3288-firefly-beta.dts14 &ir {
25 ir {
26 ir_int: ir-int {
H A Drv1109-relfor-saib.dts27 ir_receiver: ir-receiver {
28 compatible = "gpio-ir-receiver";
34 ir_transmitter: ir-transmitter {
35 compatible = "pwm-ir-tx";
131 vcc1v8_ir: regulator-vcc1v8-ir {
282 ir {
283 ir_rx: ir-rx {
/linux/Documentation/userspace-api/media/rc/
H A Drc-protos.rst33 detailed description here https://www.sbprojects.net/knowledge/ir/rc5.php.
183 described here https://www.sbprojects.net/knowledge/ir/jvc.php.
279 described here https://www.sbprojects.net/knowledge/ir/nec.php. Note
343 events. Refer to the ir-mce_kbd-decoder.c to see how it is encoded.
349 events. Refer to the ir-mce_kbd-decoder.c to see how it is encoded.
355 https://www.sbprojects.net/knowledge/ir/rc6.php.
363 https://www.sbprojects.net/knowledge/ir/rc6.php.
371 https://www.sbprojects.net/knowledge/ir/rc6.php.
379 https://www.sbprojects.net/knowledge/ir/rc6.php.
398 https://www.sbprojects.net/knowledge/ir/sharp.php. There is a very long
[all …]
/linux/drivers/pinctrl/meson/
H A Dpinctrl-meson.h146 #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, \ argument
159 [MESON_REG_IN] = { ir, ib }, \
164 #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \ argument
165 BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0)
/linux/drivers/hid/
H A Dhid-wiimote-modules.c550 static void wiimod_ir_in_ir(struct wiimote_data *wdata, const __u8 *ir, in wiimod_ir_in_ir() argument
593 x = ir[1] | ((ir[0] & 0x03) << 8); in wiimod_ir_in_ir()
594 y = ir[2] | ((ir[0] & 0x0c) << 6); in wiimod_ir_in_ir()
596 x = ir[0] | ((ir[2] & 0x30) << 4); in wiimod_ir_in_ir()
597 y = ir[1] | ((ir[2] & 0xc0) << 2); in wiimod_ir_in_ir()
600 input_report_abs(wdata->ir, xid, x); in wiimod_ir_in_ir()
601 input_report_abs(wdata->ir, yid, y); in wiimod_ir_in_ir()
604 input_sync(wdata->ir); in wiimod_ir_in_ir()
738 wdata->ir = input_allocate_device(); in wiimod_ir_probe()
739 if (!wdata->ir) in wiimod_ir_probe()
[all …]
/linux/Documentation/admin-guide/media/
H A Dremote-controller.rst25 - ir-keytable: provides a way to query the remote controller, list the
29 - ir-ctl: provide tools to handle remote controllers that support raw mode
34 ir-kbd-i2c module.
48 `v4l-utils <https://git.linuxtv.org/v4l-utils.git/>`_ ir-keytable.1
51 The ir-keytable tool is nice for trouble shooting, i.e. to check
76 keytable in runtime. Please read ir-keytable.1 man page for details.
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3308-roc-cc.dts22 ir-receiver {
23 compatible = "gpio-ir-receiver";
30 compatible = "pwm-ir-tx";
158 ir-receiver {
159 ir_recv_pin: ir-recv-pin {

1234567