Home
last modified time | relevance | path

Searched full:ir (Results 1 – 25 of 544) sorted by relevance

12345678910>>...22

/linux/drivers/media/rc/
H A Dmeson-ir-tx.c3 * meson-ir-tx.c - Amlogic Meson IR TX driver
22 #define DEVICE_NAME "Meson IR TX"
23 #define DRIVER_NAME "meson-ir-tx"
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
[all …]
H A Digorplugusb.c3 * IgorPlug-USB IR Receiver
21 #define DRIVER_DESC "IgorPlug-USB IR Receiver"
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()
[all …]
H A Dmeson-ir.c3 * Driver for Amlogic Meson IR remote receiver
21 #define DRIVER_NAME "meson-ir"
54 /* Meson 6b uses REG1 to configure IR mode */
64 /* Meson 8b / GXBB use REG2 to configure IR mode */
97 * struct meson_ir_protocol - describe IR Protocol parameter
99 * @hw_protocol: select IR Protocol from IR Controller
104 * Some IR Protocol send the same data as repeat frame.
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()
[all …]
H A DMakefile5 rc-core-y := rc-main.o rc-ir-raw.o
12 # IR decoders - please keep it alphabetically sorted by Kconfig name
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
[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/Documentation/userspace-api/media/rc/
H A Dlirc-dev-intro.rst10 a bi-directional interface for transporting raw IR and decoded scancodes
13 file_operations defined on it. With respect to transporting raw IR and
17 raw IR into scancodes.
24 rc rc0: lirc_dev: driver mceusb registered at minor = 0, raw IR receiver, raw IR transmitter
36 - ir-ctl: can receive raw IR and transmit IR, as well as query LIRC
39 - ir-keytable: can load keymaps; allows you to set IR kernel protocols; load
40 BPF IR decoders and test IR decoding. Some BPF IR decoders are also
49 LIRC supports some modes of receiving and sending IR codes, as shown
58 This mode is for both sending and receiving IR.
62 set to the :ref:`IR protocol <Remote_controllers_Protocols>`, and all other
[all …]
H A Drc-protos.rst9 IR is encoded as a series of pulses and spaces, using a protocol. These
14 Therefore out the output of the IR decoder is a scancode; a single u32
17 Other things can be encoded too. Some IR protocols encode a toggle bit; this
20 toggle bit will invert from one IR message to the next.
24 target set in IR.
32 This IR protocol uses manchester encoding to encode 14 bits. There is a
33 detailed description here https://www.sbprojects.net/knowledge/ir/rc5.php.
183 described here https://www.sbprojects.net/knowledge/ir/jvc.php.
186 and the command the higher 8 bits; this is reversed from IR order.
279 described here https://www.sbprojects.net/knowledge/ir/nec.php. Note
[all …]
H A Drc-tables.rst10 IR keycodes for different devices. This caused the same IR keyname to be
11 mapped completely differently on different IR devices. This resulted
12 that the same IR keyname to be mapped completely different on different
13 IR's. Due to that, V4L2 API now specifies a standard for mapping Media
14 keys on IR.
20 layer. This means that the IR key strokes will look like normal keyboard
30 .. flat-table:: IR default keymapping
42 - Key examples on IR
417 - IR Blue key
425 - IR Green Key
[all …]
/linux/Documentation/devicetree/bindings/media/
H A 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,suniv-f1c100s-ir
25 - allwinner,sun8i-a83t-ir
26 - allwinner,sun8i-r40-ir
27 - allwinner,sun50i-a64-ir
28 - allwinner,sun50i-h6-ir
29 - allwinner,sun50i-h616-ir
[all …]
H A Damlogic,meson6-ir.yaml4 $id: http://devicetree.org/schemas/media/amlogic,meson6-ir.yaml#
7 title: Amlogic Meson IR remote control receiver
19 - amlogic,meson6-ir
20 - amlogic,meson8b-ir
21 - amlogic,meson-gxbb-ir
22 - amlogic,meson-s4-ir
24 - const: amlogic,meson-gx-ir
25 - const: amlogic,meson-gxbb-ir
44 ir-receiver@c8100480 {
45 compatible = "amlogic,meson6-ir";
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 Dgpio-ir-receiver.yaml4 $id: http://devicetree.org/schemas/media/gpio-ir-receiver.yaml#
7 title: GPIO Based IR receiver
17 const: gpio-ir-receiver
27 description: IR receiver can wake-up the system.
37 ir-receiver {
38 compatible = "gpio-ir-receiver";
/linux/arch/mips/kernel/
H A Dmips-r2-to-r6-emul.c76 * @ir: Instruction
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()
[all …]
/linux/arch/parisc/math-emu/
H A Dfpudispatch.c19 * emfpudispatch(ir, dummy1, dummy2, fpregs)
20 * fpudispatch(ir, excp_code, holder, fpregs)
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()
[all …]
/linux/tools/testing/selftests/bpf/
H A Dtest_lirc_mode2_user.c2 // test ir decoder
6 // A lirc chardev is a device representing a consumer IR (cir) device which
7 // can receive infrared signals from remote control and/or transmit IR.
9 // IR is sent as a series of pulses and space somewhat like morse code. The
13 // This test works by sending IR over rc-loopback, so the IR is processed by
15 // associated with rc-loopback, see the output of ir-keytable(1).
24 // 2. Attach bpf_lirc_mode2 program which decodes some IR.
25 // 3. Send some IR to the same IR devic
[all...]
/linux/drivers/media/usb/cx231xx/
H A Dcx231xx-input.c2 // cx231xx IR glue driver
6 // Polaris (cx231xx) has its support for IR's with a design close to MCE.
7 // however, a few designs are using an external I2C chip for IR, instead
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()
25 /* poll IR chip */ 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()
60 request_module("ir-kbd-i2c"); in cx231xx_ir_init()
87 /* Load and bind ir-kbd-i2c */ in cx231xx_ir_init()
[all …]
/linux/arch/sparc/math-emu/
H A Dmath_64.c184 int IR; in do_mathemu() local
262 IR = 2; in do_mathemu()
277 IR = 0; in do_mathemu()
279 /* case 0: IR = 0; break; */ /* Never */ in do_mathemu()
280 case 1: if (XR) IR = 1; break; /* Not Equal */ in do_mathemu()
281 case 2: if (XR == 1 || XR == 2) IR = 1; break; /* Less or Greater */ in do_mathemu()
282 case 3: if (XR & 1) IR = 1; break; /* Unordered or Less */ in do_mathemu()
283 case 4: if (XR == 1) IR = 1; break; /* Less */ in do_mathemu()
284 case 5: if (XR & 2) IR = 1; break; /* Unordered or Greater */ in do_mathemu()
285 case 6: if (XR == 2) IR = 1; break; /* Greater */ in do_mathemu()
[all …]
/linux/Documentation/admin-guide/media/
H A Dremote-controller.rst13 them have a microprocessor that receives the IR carriers, convert into
25 - ir-keytable: provides a way to query the remote controller, list the
26 protocols it supports, enable in-kernel support for IR decoder or
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
62 linux input layer (via event device). It also supports receiving IR codes
69 Xorg recognizes several IR keycodes that have its numerical value lower
76 keytable in runtime. Please read ir-keytable.1 man page for details.
/linux/Documentation/devicetree/bindings/leds/irled/
H A Dpwm-ir-tx.yaml4 $id: http://devicetree.org/schemas/leds/irled/pwm-ir-tx.yaml#
7 title: IR LED connected through PWM pin
13 IR LED connected through PWM pin which is used as remote controller
19 - const: pwm-ir-tx
20 - const: nokia,n900-ir
35 compatible = "pwm-ir-tx";
H A Dgpio-ir-tx.yaml4 $id: http://devicetree.org/schemas/leds/irled/gpio-ir-tx.yaml#
7 title: IR LED connected through GPIO pin
13 IR LED connected through GPIO pin which is used as remote controller
18 const: gpio-ir-tx
34 compatible = "gpio-ir-tx";
H A Dir-spi-led.yaml4 $id: http://devicetree.org/schemas/leds/irled/ir-spi-led.yaml#
7 title: IR LED connected through SPI bus
13 IR LED switch is connected to the MOSI line of the SPI device and the data
21 const: ir-spi-led
52 compatible = "ir-spi-led";
/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/drivers/media/usb/pvrusb2/
H A Dpvrusb2-i2c-core.c9 #include <media/i2c/ir-kbd-i2c.h>
31 MODULE_PARM_DESC(ir_mode,"specify: 0=disable IR reception, 1=normal IR");
37 "1=do not try to autoload ir_video IR receiver");
180 the IR receiver. The implementation here simulates the IR receiver by
183 devices, where the IR receiver chip has been removed and replaced with
212 /* Issue a command to the FX2 to read the IR receiver. */ in i2c_24xxx_ir()
227 /* Mangle the results into something that looks like the real IR in i2c_24xxx_ir()
236 /* Mash the FX2 firmware-provided IR code into something in i2c_24xxx_ir()
554 case PVR2_IR_SCHEME_24XXX: /* FX2-controlled IR */ in pvr2_i2c_register_ir()
560 init_data->polling_interval = 100; /* ms From ir-kbd-i2c */ in pvr2_i2c_register_ir()
[all …]
/linux/Documentation/driver-api/media/
H A Drc-core.rst26 However, most of the remote controllers use infrared (IR) to transmit signals.
32 carrier. The carrier can be switched on or off by the IR transmitter
36 In other words, a typical IR transmission can be viewed as a sequence of
53 So, a simple IR receiver hardware will just provide a sequence of timings
63 The RC core also supports devices that have just IR emitters,
68 When the RC core receives events produced by ``RC_DRIVER_IR_RAW`` IR
69 receivers, it needs to decode the IR protocol, in order to obtain the
74 of the type ``RC_DRIVER_SCANCODE``, or via its IR decoders), it needs
/linux/Documentation/userspace-api/media/v4l/
H A Dpixfmt-inzi.rst50 * - Ir\ :sub:`0,0`
51 - Ir\ :sub:`0,1`
52 - Ir\ :sub:`0,2`
62 - Ir\ :sub:`n-1,n-3`
63 - Ir\ :sub:`n-1,n-2`
64 - Ir\ :sub:`n-1,n-1`

12345678910>>...22