| /linux/drivers/media/rc/ |
| H A D | meson-ir-tx.c | 3 * 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 in meson_irtx_set_mod() 93 meson_irtx_setup(struct meson_irtx * ir,unsigned int clk_nr) meson_irtx_setup() argument 112 meson_irtx_prepare_pulse(struct meson_irtx * ir,unsigned int time) meson_irtx_prepare_pulse() argument 123 meson_irtx_prepare_space(struct meson_irtx * ir,unsigned int time) meson_irtx_prepare_space() argument 145 meson_irtx_send_buffer(struct meson_irtx * ir) meson_irtx_send_buffer() argument 158 meson_irtx_check_buf(struct meson_irtx * ir,unsigned int * buf,unsigned int len) meson_irtx_check_buf() argument 181 meson_irtx_fill_buf(struct meson_irtx * ir,u32 * dst_buf,unsigned int * src_buf,unsigned int len) meson_irtx_fill_buf() argument 197 struct meson_irtx *ir = data; meson_irtx_irqhandler() local 217 struct meson_irtx *ir = rc->priv; meson_irtx_set_carrier() local 230 struct meson_irtx *ir = rc->priv; meson_irtx_set_duty_cycle() local 238 meson_irtx_update_buf(struct meson_irtx * ir,u32 * buf,unsigned int len,unsigned int head) meson_irtx_update_buf() argument 250 struct meson_irtx *ir = rc->priv; meson_irtx_transmit() local 282 meson_irtx_mod_clock_probe(struct meson_irtx * ir,unsigned int * clk_nr) meson_irtx_mod_clock_probe() argument 311 struct meson_irtx *ir; meson_irtx_probe() local [all...] |
| H A D | igorplugusb.c | 3 * 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 D | meson-ir.c | 3 * 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 D | Makefile | 5 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 D | Makefile | 2 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 D | lirc-dev-intro.rst | 10 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 D | rc-protos.rst | 9 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 D | rc-tables.rst | 10 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/arch/mips/kernel/ |
| H A D | mips-r2-to-r6-emul.c | 76 * @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 D | fpudispatch.c | 19 * 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 D | test_lirc_mode2_user.c | |
| /linux/Documentation/devicetree/bindings/media/ |
| H A D | amlogic,meson6-ir.yaml | 4 $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 D | hix5hd2-ir.txt | |
| H A D | gpio-ir-receiver.yaml | 4 $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/drivers/media/usb/cx231xx/ |
| H A D | cx231xx-input.c | 2 // 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 D | math_64.c | 184 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 D | remote-controller.rst | 13 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 D | pwm-ir-tx.yaml | 4 $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 D | gpio-ir-tx.yaml | 4 $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";
|
| /linux/fs/ntfs/ |
| H A D | index.c | 613 const struct index_root *ir, u64 inum) in ntfs_ir_lookup2() 623 return ntfs_index_header_inconsistent(vol, &ir->index, in ntfs_ir_move_to_base() 633 struct index_root *ir = NULL; in ntfs_ir_move_to_base() 654 ir = (struct index_root *)((char *)a + le16_to_cpu(a->data.resident.value_offset)); in ntfs_ie_lookup() 656 if (!ir) { in ntfs_ie_lookup() 660 return ir; in ntfs_ie_lookup() 666 struct index_root *ir; in ntfs_ie_lookup() 668 ir = ntfs_ir_lookup(ni, name, len, &ctx); in ntfs_ie_lookup() 669 if (ir) in ntfs_ie_lookup() 671 return ir; in ntfs_ie_lookup() 558 ntfs_index_root_inconsistent(struct ntfs_volume * vol,const struct attr_record * a,const struct index_root * ir,u64 inum) ntfs_index_root_inconsistent() argument 578 struct index_root *ir = NULL; ntfs_ir_lookup() local 611 struct index_root *ir; ntfs_ir_lookup2() local 622 struct index_root *ir; ntfs_ir_move_to_base() local 827 struct index_root *ir; ntfs_index_lookup() local 1139 ntfs_ir_to_ib(struct index_root * ir,s64 ib_vcn) ntfs_ir_to_ib() argument 1179 ntfs_ir_nill(struct index_root * ir) ntfs_ir_nill() argument 1283 struct index_root *ir; ntfs_ir_reparent() local [all...] |
| /linux/drivers/media/usb/pvrusb2/ |
| H A D | pvrusb2-i2c-core.c | 9 #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 D | rc-core.rst | 26 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 D | pixfmt-inzi.rst | 50 * - 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`
|
| /linux/drivers/usb/host/ |
| H A D | xhci-mem.c | 1826 xhci_remove_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir) in xhci_remove_interrupter() argument 1830 if (!ir) in xhci_remove_interrupter() 1838 if (ir->ir_set) { in xhci_remove_interrupter() 1839 tmp = readl(&ir->ir_set->erst_size); in xhci_remove_interrupter() 1841 writel(tmp, &ir->ir_set->erst_size); in xhci_remove_interrupter() 1843 xhci_update_erst_dequeue(xhci, ir, true); in xhci_remove_interrupter() 1848 xhci_free_interrupter(struct xhci_hcd *xhci, struct xhci_interrupter *ir) in xhci_free_interrupter() argument 1853 if (!ir) in xhci_free_interrupter() 1856 erst_size = array_size(sizeof(struct xhci_erst_entry), ir->erst.num_entries); in xhci_free_interrupter() 1857 if (ir->erst.entries) in xhci_free_interrupter() [all …]
|
| /linux/arch/x86/include/asm/ |
| H A D | bitops.h | 61 : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); in arch_set_bit() 68 asm volatile(__ASM_SIZE(bts) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); in arch___set_bit() 80 : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); in arch_clear_bit() 94 asm volatile(__ASM_SIZE(btr) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); in arch___clear_bit() 117 asm volatile(__ASM_SIZE(btc) " %1,%0" : : ADDR, "Ir" (nr) : "memory"); in arch___change_bit() 129 : : RLONG_ADDR(addr), "Ir" (nr) : "memory"); in arch_change_bit() 136 return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(bts), *addr, c, "Ir", nr); in arch_test_and_set_bit() 152 : ADDR, "Ir" (nr) : "memory"); in arch___test_and_set_bit() 159 return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(btr), *addr, c, "Ir", nr); in arch_test_and_clear_bit() 177 : ADDR, "Ir" (nr) : "memory"); in arch___test_and_clear_bit() [all …]
|