ir                111 arch/arm64/net/bpf_jit.h #define A64_SBFM(sf, Rd, Rn, ir, is) A64_BITFIELD(sf, Rd, Rn, ir, is, SIGNED)
ir                113 arch/arm64/net/bpf_jit.h #define A64_UBFM(sf, Rd, Rn, ir, is) A64_BITFIELD(sf, Rd, Rn, ir, is, UNSIGNED)
ir                135 arch/ia64/include/asm/processor.h 		__u64 ir : 1;
ir                 37 arch/mips/include/asm/dsemul.h extern int mips_dsemul(struct pt_regs *regs, mips_instruction ir,
ir                200 arch/mips/include/asm/msa.h __BUILD_MSA_CTL_REG(ir, 0)
ir                 78 arch/mips/kernel/mips-r2-to-r6-emul.c static inline int mipsr6_emul(struct pt_regs *regs, u32 ir)
ir                 80 arch/mips/kernel/mips-r2-to-r6-emul.c 	switch (MIPSInst_OPCODE(ir)) {
ir                 82 arch/mips/kernel/mips-r2-to-r6-emul.c 		if (MIPSInst_RT(ir))
ir                 83 arch/mips/kernel/mips-r2-to-r6-emul.c 			regs->regs[MIPSInst_RT(ir)] =
ir                 84 arch/mips/kernel/mips-r2-to-r6-emul.c 				(s32)regs->regs[MIPSInst_RS(ir)] +
ir                 85 arch/mips/kernel/mips-r2-to-r6-emul.c 				(s32)MIPSInst_SIMM(ir);
ir                 91 arch/mips/kernel/mips-r2-to-r6-emul.c 		if (MIPSInst_RT(ir))
ir                 92 arch/mips/kernel/mips-r2-to-r6-emul.c 			regs->regs[MIPSInst_RT(ir)] =
ir                 93 arch/mips/kernel/mips-r2-to-r6-emul.c 				(s64)regs->regs[MIPSInst_RS(ir)] +
ir                 94 arch/mips/kernel/mips-r2-to-r6-emul.c 				(s64)MIPSInst_SIMM(ir);
ir                103 arch/mips/kernel/mips-r2-to-r6-emul.c 		switch (MIPSInst_FUNC(ir)) {
ir                105 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                106 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                107 arch/mips/kernel/mips-r2-to-r6-emul.c 					regs->regs[MIPSInst_RS(ir)] |
ir                108 arch/mips/kernel/mips-r2-to-r6-emul.c 					regs->regs[MIPSInst_RT(ir)];
ir                111 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RS(ir))
ir                114 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                115 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                116 arch/mips/kernel/mips-r2-to-r6-emul.c 					(s32)(((u32)regs->regs[MIPSInst_RT(ir)]) <<
ir                117 arch/mips/kernel/mips-r2-to-r6-emul.c 						MIPSInst_FD(ir));
ir                120 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RS(ir))
ir                123 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                124 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                125 arch/mips/kernel/mips-r2-to-r6-emul.c 					(s32)(((u32)regs->regs[MIPSInst_RT(ir)]) >>
ir                126 arch/mips/kernel/mips-r2-to-r6-emul.c 						MIPSInst_FD(ir));
ir                129 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_FD(ir))
ir                132 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                133 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                134 arch/mips/kernel/mips-r2-to-r6-emul.c 					(s32)((u32)regs->regs[MIPSInst_RS(ir)] +
ir                135 arch/mips/kernel/mips-r2-to-r6-emul.c 					      (u32)regs->regs[MIPSInst_RT(ir)]);
ir                138 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_FD(ir))
ir                141 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                142 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                143 arch/mips/kernel/mips-r2-to-r6-emul.c 					(s32)((u32)regs->regs[MIPSInst_RS(ir)] -
ir                144 arch/mips/kernel/mips-r2-to-r6-emul.c 					      (u32)regs->regs[MIPSInst_RT(ir)]);
ir                147 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (IS_ENABLED(CONFIG_32BIT) || MIPSInst_RS(ir))
ir                150 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                151 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                152 arch/mips/kernel/mips-r2-to-r6-emul.c 					(s64)(((u64)regs->regs[MIPSInst_RT(ir)]) <<
ir                153 arch/mips/kernel/mips-r2-to-r6-emul.c 						MIPSInst_FD(ir));
ir                156 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (IS_ENABLED(CONFIG_32BIT) || MIPSInst_RS(ir))
ir                159 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                160 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                161 arch/mips/kernel/mips-r2-to-r6-emul.c 					(s64)(((u64)regs->regs[MIPSInst_RT(ir)]) >>
ir                162 arch/mips/kernel/mips-r2-to-r6-emul.c 						MIPSInst_FD(ir));
ir                165 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (IS_ENABLED(CONFIG_32BIT) || MIPSInst_FD(ir))
ir                168 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                169 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                170 arch/mips/kernel/mips-r2-to-r6-emul.c 					(u64)regs->regs[MIPSInst_RS(ir)] +
ir                171 arch/mips/kernel/mips-r2-to-r6-emul.c 					(u64)regs->regs[MIPSInst_RT(ir)];
ir                174 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (IS_ENABLED(CONFIG_32BIT) || MIPSInst_FD(ir))
ir                177 arch/mips/kernel/mips-r2-to-r6-emul.c 			if (MIPSInst_RD(ir))
ir                178 arch/mips/kernel/mips-r2-to-r6-emul.c 				regs->regs[MIPSInst_RD(ir)] =
ir                179 arch/mips/kernel/mips-r2-to-r6-emul.c 					(s64)((u64)regs->regs[MIPSInst_RS(ir)] -
ir                180 arch/mips/kernel/mips-r2-to-r6-emul.c 					      (u64)regs->regs[MIPSInst_RT(ir)]);
ir                186 arch/mips/kernel/mips-r2-to-r6-emul.c 			 ir, MIPSInst_OPCODE(ir));
ir                199 arch/mips/kernel/mips-r2-to-r6-emul.c static int movf_func(struct pt_regs *regs, u32 ir)
ir                205 arch/mips/kernel/mips-r2-to-r6-emul.c 	cond = fpucondbit[MIPSInst_RT(ir) >> 2];
ir                207 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (((csr & cond) == 0) && MIPSInst_RD(ir))
ir                208 arch/mips/kernel/mips-r2-to-r6-emul.c 		regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)];
ir                222 arch/mips/kernel/mips-r2-to-r6-emul.c static int movt_func(struct pt_regs *regs, u32 ir)
ir                228 arch/mips/kernel/mips-r2-to-r6-emul.c 	cond = fpucondbit[MIPSInst_RT(ir) >> 2];
ir                230 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (((csr & cond) != 0) && MIPSInst_RD(ir))
ir                231 arch/mips/kernel/mips-r2-to-r6-emul.c 		regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)];
ir                247 arch/mips/kernel/mips-r2-to-r6-emul.c static int jr_func(struct pt_regs *regs, u32 ir)
ir                304 arch/mips/kernel/mips-r2-to-r6-emul.c static int movz_func(struct pt_regs *regs, u32 ir)
ir                306 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (((regs->regs[MIPSInst_RT(ir)]) == 0) && MIPSInst_RD(ir))
ir                307 arch/mips/kernel/mips-r2-to-r6-emul.c 		regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)];
ir                320 arch/mips/kernel/mips-r2-to-r6-emul.c static int movn_func(struct pt_regs *regs, u32 ir)
ir                322 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (((regs->regs[MIPSInst_RT(ir)]) != 0) && MIPSInst_RD(ir))
ir                323 arch/mips/kernel/mips-r2-to-r6-emul.c 		regs->regs[MIPSInst_RD(ir)] = regs->regs[MIPSInst_RS(ir)];
ir                336 arch/mips/kernel/mips-r2-to-r6-emul.c static int mfhi_func(struct pt_regs *regs, u32 ir)
ir                338 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (MIPSInst_RD(ir))
ir                339 arch/mips/kernel/mips-r2-to-r6-emul.c 		regs->regs[MIPSInst_RD(ir)] = regs->hi;
ir                353 arch/mips/kernel/mips-r2-to-r6-emul.c static int mthi_func(struct pt_regs *regs, u32 ir)
ir                355 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->hi = regs->regs[MIPSInst_RS(ir)];
ir                369 arch/mips/kernel/mips-r2-to-r6-emul.c static int mflo_func(struct pt_regs *regs, u32 ir)
ir                371 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (MIPSInst_RD(ir))
ir                372 arch/mips/kernel/mips-r2-to-r6-emul.c 		regs->regs[MIPSInst_RD(ir)] = regs->lo;
ir                386 arch/mips/kernel/mips-r2-to-r6-emul.c static int mtlo_func(struct pt_regs *regs, u32 ir)
ir                388 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->lo = regs->regs[MIPSInst_RS(ir)];
ir                402 arch/mips/kernel/mips-r2-to-r6-emul.c static int mult_func(struct pt_regs *regs, u32 ir)
ir                407 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                408 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                429 arch/mips/kernel/mips-r2-to-r6-emul.c static int multu_func(struct pt_regs *regs, u32 ir)
ir                434 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                435 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                453 arch/mips/kernel/mips-r2-to-r6-emul.c static int div_func(struct pt_regs *regs, u32 ir)
ir                457 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                458 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                475 arch/mips/kernel/mips-r2-to-r6-emul.c static int divu_func(struct pt_regs *regs, u32 ir)
ir                479 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                480 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                497 arch/mips/kernel/mips-r2-to-r6-emul.c static int dmult_func(struct pt_regs *regs, u32 ir)
ir                505 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                506 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                529 arch/mips/kernel/mips-r2-to-r6-emul.c static int dmultu_func(struct pt_regs *regs, u32 ir)
ir                537 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                538 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                561 arch/mips/kernel/mips-r2-to-r6-emul.c static int ddiv_func(struct pt_regs *regs, u32 ir)
ir                568 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                569 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                586 arch/mips/kernel/mips-r2-to-r6-emul.c static int ddivu_func(struct pt_regs *regs, u32 ir)
ir                593 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                594 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                633 arch/mips/kernel/mips-r2-to-r6-emul.c static int madd_func(struct pt_regs *regs, u32 ir)
ir                638 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                639 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                662 arch/mips/kernel/mips-r2-to-r6-emul.c static int maddu_func(struct pt_regs *regs, u32 ir)
ir                667 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                668 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                691 arch/mips/kernel/mips-r2-to-r6-emul.c static int msub_func(struct pt_regs *regs, u32 ir)
ir                696 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                697 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                720 arch/mips/kernel/mips-r2-to-r6-emul.c static int msubu_func(struct pt_regs *regs, u32 ir)
ir                725 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                726 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                749 arch/mips/kernel/mips-r2-to-r6-emul.c static int mul_func(struct pt_regs *regs, u32 ir)
ir                754 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (!MIPSInst_RD(ir))
ir                756 arch/mips/kernel/mips-r2-to-r6-emul.c 	rt = regs->regs[MIPSInst_RT(ir)];
ir                757 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                761 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = (s64)rs;
ir                775 arch/mips/kernel/mips-r2-to-r6-emul.c static int clz_func(struct pt_regs *regs, u32 ir)
ir                780 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (!MIPSInst_RD(ir))
ir                783 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                785 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
ir                800 arch/mips/kernel/mips-r2-to-r6-emul.c static int clo_func(struct pt_regs *regs, u32 ir)
ir                805 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (!MIPSInst_RD(ir))
ir                808 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                810 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
ir                824 arch/mips/kernel/mips-r2-to-r6-emul.c static int dclz_func(struct pt_regs *regs, u32 ir)
ir                832 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (!MIPSInst_RD(ir))
ir                835 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                837 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
ir                851 arch/mips/kernel/mips-r2-to-r6-emul.c static int dclo_func(struct pt_regs *regs, u32 ir)
ir                859 arch/mips/kernel/mips-r2-to-r6-emul.c 	if (!MIPSInst_RD(ir))
ir                862 arch/mips/kernel/mips-r2-to-r6-emul.c 	rs = regs->regs[MIPSInst_RS(ir)];
ir                864 arch/mips/kernel/mips-r2-to-r6-emul.c 	regs->regs[MIPSInst_RD(ir)] = res;
ir                849 arch/mips/math-emu/cp1emu.c 			    mips_instruction ir)
ir                854 arch/mips/math-emu/cp1emu.c 	switch (MIPSInst_RD(ir)) {
ir                858 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                868 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                876 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                887 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                898 arch/mips/math-emu/cp1emu.c 	if (MIPSInst_RT(ir))
ir                899 arch/mips/math-emu/cp1emu.c 		xcp->regs[MIPSInst_RT(ir)] = value;
ir                906 arch/mips/math-emu/cp1emu.c 			    mips_instruction ir)
ir                912 arch/mips/math-emu/cp1emu.c 	if (MIPSInst_RT(ir) == 0)
ir                915 arch/mips/math-emu/cp1emu.c 		value = xcp->regs[MIPSInst_RT(ir)];
ir                917 arch/mips/math-emu/cp1emu.c 	switch (MIPSInst_RD(ir)) {
ir                920 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                931 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                942 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                951 arch/mips/math-emu/cp1emu.c 			 (void *)xcp->cp0_epc, MIPSInst_RT(ir), value);
ir                976 arch/mips/math-emu/cp1emu.c 	mips_instruction ir;
ir               1016 arch/mips/math-emu/cp1emu.c 		ir = dec_insn.next_insn;  /* process delay slot instr */
ir               1019 arch/mips/math-emu/cp1emu.c 		ir = dec_insn.insn;       /* process current instr */
ir               1040 arch/mips/math-emu/cp1emu.c 			(microMIPS32_to_MIPS32((union mips_instruction *)&ir)
ir               1048 arch/mips/math-emu/cp1emu.c 	switch (MIPSInst_OPCODE(ir)) {
ir               1050 arch/mips/math-emu/cp1emu.c 		dva = (u64 __user *) (xcp->regs[MIPSInst_RS(ir)] +
ir               1051 arch/mips/math-emu/cp1emu.c 				     MIPSInst_SIMM(ir));
ir               1064 arch/mips/math-emu/cp1emu.c 		DITOREG(dval, MIPSInst_RT(ir));
ir               1068 arch/mips/math-emu/cp1emu.c 		dva = (u64 __user *) (xcp->regs[MIPSInst_RS(ir)] +
ir               1069 arch/mips/math-emu/cp1emu.c 				      MIPSInst_SIMM(ir));
ir               1071 arch/mips/math-emu/cp1emu.c 		DIFROMREG(dval, MIPSInst_RT(ir));
ir               1085 arch/mips/math-emu/cp1emu.c 		wva = (u32 __user *) (xcp->regs[MIPSInst_RS(ir)] +
ir               1086 arch/mips/math-emu/cp1emu.c 				      MIPSInst_SIMM(ir));
ir               1098 arch/mips/math-emu/cp1emu.c 		SITOREG(wval, MIPSInst_RT(ir));
ir               1102 arch/mips/math-emu/cp1emu.c 		wva = (u32 __user *) (xcp->regs[MIPSInst_RS(ir)] +
ir               1103 arch/mips/math-emu/cp1emu.c 				      MIPSInst_SIMM(ir));
ir               1105 arch/mips/math-emu/cp1emu.c 		SIFROMREG(wval, MIPSInst_RT(ir));
ir               1119 arch/mips/math-emu/cp1emu.c 		switch (MIPSInst_RS(ir)) {
ir               1125 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_RT(ir) != 0) {
ir               1126 arch/mips/math-emu/cp1emu.c 				DIFROMREG(xcp->regs[MIPSInst_RT(ir)],
ir               1127 arch/mips/math-emu/cp1emu.c 					MIPSInst_RD(ir));
ir               1136 arch/mips/math-emu/cp1emu.c 			DITOREG(xcp->regs[MIPSInst_RT(ir)], MIPSInst_RD(ir));
ir               1144 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_RT(ir) != 0) {
ir               1145 arch/mips/math-emu/cp1emu.c 				SIFROMHREG(xcp->regs[MIPSInst_RT(ir)],
ir               1146 arch/mips/math-emu/cp1emu.c 					MIPSInst_RD(ir));
ir               1155 arch/mips/math-emu/cp1emu.c 			SITOHREG(xcp->regs[MIPSInst_RT(ir)], MIPSInst_RD(ir));
ir               1160 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_RT(ir) != 0) {
ir               1161 arch/mips/math-emu/cp1emu.c 				SIFROMREG(xcp->regs[MIPSInst_RT(ir)],
ir               1162 arch/mips/math-emu/cp1emu.c 					MIPSInst_RD(ir));
ir               1168 arch/mips/math-emu/cp1emu.c 			SITOREG(xcp->regs[MIPSInst_RT(ir)], MIPSInst_RD(ir));
ir               1173 arch/mips/math-emu/cp1emu.c 			cop1_cfc(xcp, ctx, ir);
ir               1178 arch/mips/math-emu/cp1emu.c 			cop1_ctc(xcp, ctx, ir);
ir               1191 arch/mips/math-emu/cp1emu.c 			fpr = &current->thread.fpu.fpr[MIPSInst_RT(ir)];
ir               1193 arch/mips/math-emu/cp1emu.c 			switch (MIPSInst_RS(ir)) {
ir               1210 arch/mips/math-emu/cp1emu.c 				cbit = fpucondbit[MIPSInst_RT(ir) >> 2];
ir               1216 arch/mips/math-emu/cp1emu.c 			switch (MIPSInst_RT(ir) & 3) {
ir               1248 arch/mips/math-emu/cp1emu.c 				contpc = MIPSInst_SIMM(ir);
ir               1249 arch/mips/math-emu/cp1emu.c 				ir = dec_insn.next_insn;
ir               1255 arch/mips/math-emu/cp1emu.c 						(microMIPS32_to_MIPS32((union mips_instruction *)&ir) == SIGILL)) {
ir               1265 arch/mips/math-emu/cp1emu.c 							ir = (ir & (~0xffff)) | MM_NOP16;
ir               1271 arch/mips/math-emu/cp1emu.c 						sig = mips_dsemul(xcp, ir,
ir               1286 arch/mips/math-emu/cp1emu.c 				switch (MIPSInst_OPCODE(ir)) {
ir               1309 arch/mips/math-emu/cp1emu.c 					switch (MIPSInst_FUNC(ir)) {
ir               1327 arch/mips/math-emu/cp1emu.c 				sig = mips_dsemul(xcp, ir, bcpc, contpc);
ir               1349 arch/mips/math-emu/cp1emu.c 			if (!(MIPSInst_RS(ir) & 0x10))
ir               1353 arch/mips/math-emu/cp1emu.c 			sig = fpu_emu(xcp, ctx, ir);
ir               1363 arch/mips/math-emu/cp1emu.c 		sig = fpux_emu(xcp, ctx, ir, fault_addr);
ir               1372 arch/mips/math-emu/cp1emu.c 		if (MIPSInst_FUNC(ir) != movc_op)
ir               1374 arch/mips/math-emu/cp1emu.c 		cond = fpucondbit[MIPSInst_RT(ir) >> 2];
ir               1375 arch/mips/math-emu/cp1emu.c 		if (((ctx->fcr31 & cond) != 0) == ((MIPSInst_RT(ir) & 1) != 0))
ir               1376 arch/mips/math-emu/cp1emu.c 			xcp->regs[MIPSInst_RD(ir)] =
ir               1377 arch/mips/math-emu/cp1emu.c 				xcp->regs[MIPSInst_RS(ir)];
ir               1464 arch/mips/math-emu/cp1emu.c 	mips_instruction ir, void __user **fault_addr)
ir               1470 arch/mips/math-emu/cp1emu.c 	switch (MIPSInst_FMA_FFMT(ir)) {
ir               1478 arch/mips/math-emu/cp1emu.c 		switch (MIPSInst_FUNC(ir)) {
ir               1480 arch/mips/math-emu/cp1emu.c 			va = (void __user *) (xcp->regs[MIPSInst_FR(ir)] +
ir               1481 arch/mips/math-emu/cp1emu.c 				xcp->regs[MIPSInst_FT(ir)]);
ir               1494 arch/mips/math-emu/cp1emu.c 			SITOREG(val, MIPSInst_FD(ir));
ir               1498 arch/mips/math-emu/cp1emu.c 			va = (void __user *) (xcp->regs[MIPSInst_FR(ir)] +
ir               1499 arch/mips/math-emu/cp1emu.c 				xcp->regs[MIPSInst_FT(ir)]);
ir               1503 arch/mips/math-emu/cp1emu.c 			SIFROMREG(val, MIPSInst_FS(ir));
ir               1530 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fr, MIPSInst_FR(ir));
ir               1531 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1532 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1534 arch/mips/math-emu/cp1emu.c 			SPTOREG(fd, MIPSInst_FD(ir));
ir               1575 arch/mips/math-emu/cp1emu.c 		switch (MIPSInst_FUNC(ir)) {
ir               1577 arch/mips/math-emu/cp1emu.c 			va = (void __user *) (xcp->regs[MIPSInst_FR(ir)] +
ir               1578 arch/mips/math-emu/cp1emu.c 				xcp->regs[MIPSInst_FT(ir)]);
ir               1591 arch/mips/math-emu/cp1emu.c 			DITOREG(val, MIPSInst_FD(ir));
ir               1595 arch/mips/math-emu/cp1emu.c 			va = (void __user *) (xcp->regs[MIPSInst_FR(ir)] +
ir               1596 arch/mips/math-emu/cp1emu.c 				xcp->regs[MIPSInst_FT(ir)]);
ir               1599 arch/mips/math-emu/cp1emu.c 			DIFROMREG(val, MIPSInst_FS(ir));
ir               1626 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fr, MIPSInst_FR(ir));
ir               1627 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               1628 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               1630 arch/mips/math-emu/cp1emu.c 			DPTOREG(fd, MIPSInst_FD(ir));
ir               1640 arch/mips/math-emu/cp1emu.c 		if (MIPSInst_FUNC(ir) != pfetch_op)
ir               1659 arch/mips/math-emu/cp1emu.c 	mips_instruction ir)
ir               1675 arch/mips/math-emu/cp1emu.c 	switch (rfmt = (MIPSInst_FFMT(ir) & 0xf)) {
ir               1683 arch/mips/math-emu/cp1emu.c 		switch (MIPSInst_FUNC(ir)) {
ir               1736 arch/mips/math-emu/cp1emu.c 			cond = fpucondbit[MIPSInst_FT(ir) >> 2];
ir               1738 arch/mips/math-emu/cp1emu.c 				((MIPSInst_FT(ir) & 1) != 0))
ir               1740 arch/mips/math-emu/cp1emu.c 			SPFROMREG(rv.s, MIPSInst_FS(ir));
ir               1747 arch/mips/math-emu/cp1emu.c 			if (xcp->regs[MIPSInst_FT(ir)] != 0)
ir               1749 arch/mips/math-emu/cp1emu.c 			SPFROMREG(rv.s, MIPSInst_FS(ir));
ir               1756 arch/mips/math-emu/cp1emu.c 			if (xcp->regs[MIPSInst_FT(ir)] == 0)
ir               1758 arch/mips/math-emu/cp1emu.c 			SPFROMREG(rv.s, MIPSInst_FS(ir));
ir               1766 arch/mips/math-emu/cp1emu.c 			SPFROMREG(rv.s, MIPSInst_FT(ir));
ir               1770 arch/mips/math-emu/cp1emu.c 				SPFROMREG(rv.s, MIPSInst_FS(ir));
ir               1778 arch/mips/math-emu/cp1emu.c 			SPFROMREG(rv.s, MIPSInst_FT(ir));
ir               1780 arch/mips/math-emu/cp1emu.c 				SPFROMREG(rv.s, MIPSInst_FS(ir));
ir               1792 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1793 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1794 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fd, MIPSInst_FD(ir));
ir               1806 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1807 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1808 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fd, MIPSInst_FD(ir));
ir               1820 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1832 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1845 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1846 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1858 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1859 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1871 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1872 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1884 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1885 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1903 arch/mips/math-emu/cp1emu.c 			SPFROMREG(rv.s, MIPSInst_FS(ir));
ir               1908 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1909 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               1914 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1946 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1953 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1965 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == fceil_op)
ir               1967 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ffloor_op)
ir               1969 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == fround_op)
ir               1971 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ftrunc_op)
ir               1975 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               1976 arch/mips/math-emu/cp1emu.c 			ieee754_csr.rm = MIPSInst_FUNC(ir);
ir               1987 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fd, MIPSInst_FD(ir));
ir               1989 arch/mips/math-emu/cp1emu.c 				SPFROMREG(rv.s, MIPSInst_FT(ir));
ir               1991 arch/mips/math-emu/cp1emu.c 				SPFROMREG(rv.s, MIPSInst_FS(ir));
ir               1999 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               2011 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == fceill_op)
ir               2013 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ffloorl_op)
ir               2015 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == froundl_op)
ir               2017 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ftruncl_op)
ir               2021 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               2022 arch/mips/math-emu/cp1emu.c 			ieee754_csr.rm = MIPSInst_FUNC(ir);
ir               2029 arch/mips/math-emu/cp1emu.c 			if (!NO_R6EMU && MIPSInst_FUNC(ir) >= fcmp_op) {
ir               2033 arch/mips/math-emu/cp1emu.c 				cmpop = MIPSInst_FUNC(ir) - fcmp_op;
ir               2034 arch/mips/math-emu/cp1emu.c 				SPFROMREG(fs, MIPSInst_FS(ir));
ir               2035 arch/mips/math-emu/cp1emu.c 				SPFROMREG(ft, MIPSInst_FT(ir));
ir               2059 arch/mips/math-emu/cp1emu.c 		switch (MIPSInst_FUNC(ir)) {
ir               2109 arch/mips/math-emu/cp1emu.c 			cond = fpucondbit[MIPSInst_FT(ir) >> 2];
ir               2111 arch/mips/math-emu/cp1emu.c 				((MIPSInst_FT(ir) & 1) != 0))
ir               2113 arch/mips/math-emu/cp1emu.c 			DPFROMREG(rv.d, MIPSInst_FS(ir));
ir               2119 arch/mips/math-emu/cp1emu.c 			if (xcp->regs[MIPSInst_FT(ir)] != 0)
ir               2121 arch/mips/math-emu/cp1emu.c 			DPFROMREG(rv.d, MIPSInst_FS(ir));
ir               2127 arch/mips/math-emu/cp1emu.c 			if (xcp->regs[MIPSInst_FT(ir)] == 0)
ir               2129 arch/mips/math-emu/cp1emu.c 			DPFROMREG(rv.d, MIPSInst_FS(ir));
ir               2137 arch/mips/math-emu/cp1emu.c 			DPFROMREG(rv.d, MIPSInst_FT(ir));
ir               2141 arch/mips/math-emu/cp1emu.c 				DPFROMREG(rv.d, MIPSInst_FS(ir));
ir               2149 arch/mips/math-emu/cp1emu.c 			DPFROMREG(rv.d, MIPSInst_FT(ir));
ir               2151 arch/mips/math-emu/cp1emu.c 				DPFROMREG(rv.d, MIPSInst_FS(ir));
ir               2163 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2164 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2165 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fd, MIPSInst_FD(ir));
ir               2177 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2178 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2179 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fd, MIPSInst_FD(ir));
ir               2191 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2203 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2216 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2217 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2229 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2230 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2242 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2243 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2255 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2256 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2274 arch/mips/math-emu/cp1emu.c 			DPFROMREG(rv.d, MIPSInst_FS(ir));
ir               2279 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2280 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2285 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2294 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2304 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2316 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == fceil_op)
ir               2318 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ffloor_op)
ir               2320 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == fround_op)
ir               2322 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ftrunc_op)
ir               2326 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2327 arch/mips/math-emu/cp1emu.c 			ieee754_csr.rm = MIPSInst_FUNC(ir);
ir               2338 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fd, MIPSInst_FD(ir));
ir               2340 arch/mips/math-emu/cp1emu.c 				DPFROMREG(rv.d, MIPSInst_FT(ir));
ir               2342 arch/mips/math-emu/cp1emu.c 				DPFROMREG(rv.d, MIPSInst_FS(ir));
ir               2350 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2362 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == fceill_op)
ir               2364 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ffloorl_op)
ir               2366 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == froundl_op)
ir               2368 arch/mips/math-emu/cp1emu.c 			if (MIPSInst_FUNC(ir) == ftruncl_op)
ir               2372 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2373 arch/mips/math-emu/cp1emu.c 			ieee754_csr.rm = MIPSInst_FUNC(ir);
ir               2380 arch/mips/math-emu/cp1emu.c 			if (!NO_R6EMU && MIPSInst_FUNC(ir) >= fcmp_op) {
ir               2384 arch/mips/math-emu/cp1emu.c 				cmpop = MIPSInst_FUNC(ir) - fcmp_op;
ir               2385 arch/mips/math-emu/cp1emu.c 				DPFROMREG(fs, MIPSInst_FS(ir));
ir               2386 arch/mips/math-emu/cp1emu.c 				DPFROMREG(ft, MIPSInst_FT(ir));
ir               2410 arch/mips/math-emu/cp1emu.c 		switch (MIPSInst_FUNC(ir)) {
ir               2414 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               2421 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               2431 arch/mips/math-emu/cp1emu.c 			int cmpop = MIPSInst_FUNC(ir) & CMPOP_MASK;
ir               2432 arch/mips/math-emu/cp1emu.c 			int sig = MIPSInst_FUNC(ir) & SIGN_BIT;
ir               2437 arch/mips/math-emu/cp1emu.c 			    (MIPSInst_FUNC(ir) & 0x20))
ir               2441 arch/mips/math-emu/cp1emu.c 				if (!(MIPSInst_FUNC(ir) & PREDICATE_BIT)) {
ir               2482 arch/mips/math-emu/cp1emu.c 				if (!(MIPSInst_FUNC(ir) & PREDICATE_BIT)) {
ir               2530 arch/mips/math-emu/cp1emu.c 			SPFROMREG(fs, MIPSInst_FS(ir));
ir               2531 arch/mips/math-emu/cp1emu.c 			SPFROMREG(ft, MIPSInst_FT(ir));
ir               2534 arch/mips/math-emu/cp1emu.c 			if (!(MIPSInst_FUNC(ir) & PREDICATE_BIT)) {
ir               2575 arch/mips/math-emu/cp1emu.c 		DIFROMREG(bits, MIPSInst_FS(ir));
ir               2577 arch/mips/math-emu/cp1emu.c 		switch (MIPSInst_FUNC(ir)) {
ir               2592 arch/mips/math-emu/cp1emu.c 			int cmpop = MIPSInst_FUNC(ir) & CMPOP_MASK;
ir               2593 arch/mips/math-emu/cp1emu.c 			int sig = MIPSInst_FUNC(ir) & SIGN_BIT;
ir               2597 arch/mips/math-emu/cp1emu.c 			    (MIPSInst_FUNC(ir) & 0x20))
ir               2601 arch/mips/math-emu/cp1emu.c 				if (!(MIPSInst_FUNC(ir) & PREDICATE_BIT)) {
ir               2642 arch/mips/math-emu/cp1emu.c 				if (!(MIPSInst_FUNC(ir) & PREDICATE_BIT)) {
ir               2690 arch/mips/math-emu/cp1emu.c 			DPFROMREG(fs, MIPSInst_FS(ir));
ir               2691 arch/mips/math-emu/cp1emu.c 			DPFROMREG(ft, MIPSInst_FT(ir));
ir               2694 arch/mips/math-emu/cp1emu.c 			if (!(MIPSInst_FUNC(ir) & PREDICATE_BIT)) {
ir               2753 arch/mips/math-emu/cp1emu.c 			cbit = fpucondbit[MIPSInst_FD(ir) >> 2];
ir               2763 arch/mips/math-emu/cp1emu.c 		DPTOREG(rv.d, MIPSInst_FD(ir));
ir               2766 arch/mips/math-emu/cp1emu.c 		SPTOREG(rv.s, MIPSInst_FD(ir));
ir               2769 arch/mips/math-emu/cp1emu.c 		SITOREG(rv.w, MIPSInst_FD(ir));
ir               2775 arch/mips/math-emu/cp1emu.c 		DITOREG(rv.l, MIPSInst_FD(ir));
ir                212 arch/mips/math-emu/dsemul.c int mips_dsemul(struct pt_regs *regs, mips_instruction ir,
ir                222 arch/mips/math-emu/dsemul.c 	if (ir == 0)
ir                227 arch/mips/math-emu/dsemul.c 		union mips_instruction insn = { .word = ir };
ir                230 arch/mips/math-emu/dsemul.c 		if ((ir >> 16) == MM_NOP16)
ir                261 arch/mips/math-emu/dsemul.c 			.halfword = { ir >> 16, ir }
ir                270 arch/mips/math-emu/dsemul.c 		fr.emul = ir;
ir                182 arch/parisc/math-emu/fpudispatch.c fpudispatch(u_int ir, u_int excp_code, u_int holder, u_int fpregs[])
ir                194 arch/parisc/math-emu/fpudispatch.c 	class = get_class(ir);
ir                197 arch/parisc/math-emu/fpudispatch.c 			subop = get_subop1_PA2_0(ir);
ir                199 arch/parisc/math-emu/fpudispatch.c 			subop = get_subop1_PA1_1(ir);
ir                202 arch/parisc/math-emu/fpudispatch.c 		subop = get_subop(ir);
ir                209 arch/parisc/math-emu/fpudispatch.c 			return(decode_0c(ir,class,subop,fpregs));
ir                211 arch/parisc/math-emu/fpudispatch.c 			return(decode_0e(ir,class,subop,fpregs));
ir                213 arch/parisc/math-emu/fpudispatch.c 			return(decode_06(ir,fpregs));
ir                215 arch/parisc/math-emu/fpudispatch.c 			return(decode_26(ir,fpregs));
ir                217 arch/parisc/math-emu/fpudispatch.c 			return(decode_2e(ir,fpregs));
ir                237 arch/parisc/math-emu/fpudispatch.c emfpudispatch(u_int ir, u_int dummy1, u_int dummy2, u_int fpregs[])
ir                247 arch/parisc/math-emu/fpudispatch.c 	major = get_major(ir);
ir                248 arch/parisc/math-emu/fpudispatch.c 	class = get_class(ir);
ir                251 arch/parisc/math-emu/fpudispatch.c 			subop = get_subop1_PA2_0(ir);
ir                253 arch/parisc/math-emu/fpudispatch.c 			subop = get_subop1_PA1_1(ir);
ir                256 arch/parisc/math-emu/fpudispatch.c 		subop = get_subop(ir);
ir                259 arch/parisc/math-emu/fpudispatch.c 			return(decode_0c(ir,class,subop,fpregs));
ir                261 arch/parisc/math-emu/fpudispatch.c 			return(decode_0e(ir,class,subop,fpregs));
ir                263 arch/parisc/math-emu/fpudispatch.c 			return(decode_06(ir,fpregs));
ir                265 arch/parisc/math-emu/fpudispatch.c 			return(decode_26(ir,fpregs));
ir                267 arch/parisc/math-emu/fpudispatch.c 			return(decode_2e(ir,fpregs));
ir                275 arch/parisc/math-emu/fpudispatch.c decode_0c(u_int ir, u_int class, u_int subop, u_int fpregs[])
ir                284 arch/parisc/math-emu/fpudispatch.c 	if (ir == COPR_INST) {
ir                290 arch/parisc/math-emu/fpudispatch.c 	r1 = extru(ir,fpr1pos,5) * sizeof(double)/sizeof(u_int);
ir                293 arch/parisc/math-emu/fpudispatch.c 	t = extru(ir,fptpos,5) * sizeof(double)/sizeof(u_int);
ir                296 arch/parisc/math-emu/fpudispatch.c 	fmt = extru(ir,fpfmtpos,2);	/* get fmt completer */
ir                394 arch/parisc/math-emu/fpudispatch.c 		df = extru(ir,fpdfpos,2); /* get dest format */
ir                518 arch/parisc/math-emu/fpudispatch.c 		r2 = extru(ir, fpr2pos, 5) * sizeof(double)/sizeof(u_int);
ir                523 arch/parisc/math-emu/fpudispatch.c 			if (extru(ir, fpnulpos, 1)) {  /* FTEST */
ir                546 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir                553 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir                577 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir                584 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir                615 arch/parisc/math-emu/fpudispatch.c 		r2 = extru(ir,fpr2pos,5) * sizeof(double)/sizeof(u_int);
ir                692 arch/parisc/math-emu/fpudispatch.c decode_0e(ir,class,subop,fpregs)
ir                693 arch/parisc/math-emu/fpudispatch.c u_int ir,class,subop;
ir                705 arch/parisc/math-emu/fpudispatch.c 	r1 = ((extru(ir,fpr1pos,5)<<1)|(extru(ir,fpxr1pos,1)));
ir                708 arch/parisc/math-emu/fpudispatch.c 	t = ((extru(ir,fptpos,5)<<1)|(extru(ir,fpxtpos,1)));
ir                712 arch/parisc/math-emu/fpudispatch.c 		fmt = extru(ir,fpfmtpos,2);
ir                714 arch/parisc/math-emu/fpudispatch.c 		fmt = extru(ir,fp0efmtpos,1);
ir                803 arch/parisc/math-emu/fpudispatch.c 		df = extru(ir,fpdfpos,2); /* get dest format */
ir                932 arch/parisc/math-emu/fpudispatch.c 			r2 = (extru(ir,fpr2pos,5)<<1);
ir                934 arch/parisc/math-emu/fpudispatch.c 			r2 = ((extru(ir,fpr2pos,5)<<1)|(extru(ir,fpxr2pos,1)));
ir                940 arch/parisc/math-emu/fpudispatch.c 			if (extru(ir, fpnulpos, 1)) {  /* FTEST */
ir                950 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir                957 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir                982 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir                989 arch/parisc/math-emu/fpudispatch.c 						&fpregs[r2],extru(ir,fptpos,5),
ir               1007 arch/parisc/math-emu/fpudispatch.c 			r2 = (extru(ir,fpr2pos,5)<<1);
ir               1009 arch/parisc/math-emu/fpudispatch.c 			r2 = ((extru(ir,fpr2pos,5)<<1)|(extru(ir,fpxr2pos,1)));
ir               1042 arch/parisc/math-emu/fpudispatch.c 				if (extru(ir,fpxpos,1)) {
ir               1104 arch/parisc/math-emu/fpudispatch.c decode_06(ir,fpregs)
ir               1105 arch/parisc/math-emu/fpudispatch.c u_int ir;
ir               1122 arch/parisc/math-emu/fpudispatch.c 	fmt = extru(ir, fpmultifmt, 1);	/* get sgl/dbl flag */
ir               1124 arch/parisc/math-emu/fpudispatch.c 		rm1 = extru(ir, fprm1pos, 5) * sizeof(double)/sizeof(u_int);
ir               1127 arch/parisc/math-emu/fpudispatch.c 		rm2 = extru(ir, fprm2pos, 5) * sizeof(double)/sizeof(u_int);
ir               1130 arch/parisc/math-emu/fpudispatch.c 		tm = extru(ir, fptmpos, 5) * sizeof(double)/sizeof(u_int);
ir               1133 arch/parisc/math-emu/fpudispatch.c 		ra = extru(ir, fprapos, 5) * sizeof(double)/sizeof(u_int);
ir               1134 arch/parisc/math-emu/fpudispatch.c 		ta = extru(ir, fptapos, 5) * sizeof(double)/sizeof(u_int);
ir               1192 arch/parisc/math-emu/fpudispatch.c 		rm1 = (extru(ir,fprm1pos,4) | 0x10 ) << 1;	/* get offset */
ir               1193 arch/parisc/math-emu/fpudispatch.c 		rm1 |= extru(ir,fprm1pos-4,1);	/* add right word offset */
ir               1195 arch/parisc/math-emu/fpudispatch.c 		rm2 = (extru(ir,fprm2pos,4) | 0x10 ) << 1;	/* get offset */
ir               1196 arch/parisc/math-emu/fpudispatch.c 		rm2 |= extru(ir,fprm2pos-4,1);	/* add right word offset */
ir               1198 arch/parisc/math-emu/fpudispatch.c 		tm = (extru(ir,fptmpos,4) | 0x10 ) << 1;	/* get offset */
ir               1199 arch/parisc/math-emu/fpudispatch.c 		tm |= extru(ir,fptmpos-4,1);	/* add right word offset */
ir               1201 arch/parisc/math-emu/fpudispatch.c 		ra = (extru(ir,fprapos,4) | 0x10 ) << 1;	/* get offset */
ir               1202 arch/parisc/math-emu/fpudispatch.c 		ra |= extru(ir,fprapos-4,1);	/* add right word offset */
ir               1204 arch/parisc/math-emu/fpudispatch.c 		ta = (extru(ir,fptapos,4) | 0x10 ) << 1;	/* get offset */
ir               1205 arch/parisc/math-emu/fpudispatch.c 		ta |= extru(ir,fptapos-4,1);	/* add right word offset */
ir               1244 arch/parisc/math-emu/fpudispatch.c decode_26(ir,fpregs)
ir               1245 arch/parisc/math-emu/fpudispatch.c u_int ir;
ir               1260 arch/parisc/math-emu/fpudispatch.c 	fmt = extru(ir, fpmultifmt, 1);	/* get sgl/dbl flag */
ir               1262 arch/parisc/math-emu/fpudispatch.c 		rm1 = extru(ir, fprm1pos, 5) * sizeof(double)/sizeof(u_int);
ir               1265 arch/parisc/math-emu/fpudispatch.c 		rm2 = extru(ir, fprm2pos, 5) * sizeof(double)/sizeof(u_int);
ir               1268 arch/parisc/math-emu/fpudispatch.c 		tm = extru(ir, fptmpos, 5) * sizeof(double)/sizeof(u_int);
ir               1271 arch/parisc/math-emu/fpudispatch.c 		ra = extru(ir, fprapos, 5) * sizeof(double)/sizeof(u_int);
ir               1274 arch/parisc/math-emu/fpudispatch.c 		ta = extru(ir, fptapos, 5) * sizeof(double)/sizeof(u_int);
ir               1299 arch/parisc/math-emu/fpudispatch.c 		rm1 = (extru(ir,fprm1pos,4) | 0x10 ) << 1;	/* get offset */
ir               1300 arch/parisc/math-emu/fpudispatch.c 		rm1 |= extru(ir,fprm1pos-4,1);	/* add right word offset */
ir               1302 arch/parisc/math-emu/fpudispatch.c 		rm2 = (extru(ir,fprm2pos,4) | 0x10 ) << 1;	/* get offset */
ir               1303 arch/parisc/math-emu/fpudispatch.c 		rm2 |= extru(ir,fprm2pos-4,1);	/* add right word offset */
ir               1305 arch/parisc/math-emu/fpudispatch.c 		tm = (extru(ir,fptmpos,4) | 0x10 ) << 1;	/* get offset */
ir               1306 arch/parisc/math-emu/fpudispatch.c 		tm |= extru(ir,fptmpos-4,1);	/* add right word offset */
ir               1308 arch/parisc/math-emu/fpudispatch.c 		ra = (extru(ir,fprapos,4) | 0x10 ) << 1;	/* get offset */
ir               1309 arch/parisc/math-emu/fpudispatch.c 		ra |= extru(ir,fprapos-4,1);	/* add right word offset */
ir               1311 arch/parisc/math-emu/fpudispatch.c 		ta = (extru(ir,fptapos,4) | 0x10 ) << 1;	/* get offset */
ir               1312 arch/parisc/math-emu/fpudispatch.c 		ta |= extru(ir,fptapos-4,1);	/* add right word offset */
ir               1335 arch/parisc/math-emu/fpudispatch.c decode_2e(ir,fpregs)
ir               1336 arch/parisc/math-emu/fpudispatch.c u_int ir;
ir               1342 arch/parisc/math-emu/fpudispatch.c 	fmt = extru(ir,fpfmtpos,1);	/* get fmt completer */
ir               1344 arch/parisc/math-emu/fpudispatch.c 		rm1 = extru(ir,fprm1pos,5) * sizeof(double)/sizeof(u_int);
ir               1347 arch/parisc/math-emu/fpudispatch.c 		rm2 = extru(ir,fprm2pos,5) * sizeof(double)/sizeof(u_int);
ir               1350 arch/parisc/math-emu/fpudispatch.c 		ra = ((extru(ir,fpraupos,3)<<2)|(extru(ir,fpralpos,3)>>1)) *
ir               1354 arch/parisc/math-emu/fpudispatch.c 		t = extru(ir,fptpos,5) * sizeof(double)/sizeof(u_int);
ir               1358 arch/parisc/math-emu/fpudispatch.c 		if (extru(ir,fpfusedsubop,1)) { /* fmpyfadd or fmpynfadd? */
ir               1367 arch/parisc/math-emu/fpudispatch.c 		rm1 = (extru(ir,fprm1pos,5)<<1)|(extru(ir,fpxrm1pos,1));
ir               1370 arch/parisc/math-emu/fpudispatch.c 		rm2 = (extru(ir,fprm2pos,5)<<1)|(extru(ir,fpxrm2pos,1));
ir               1373 arch/parisc/math-emu/fpudispatch.c 		ra = (extru(ir,fpraupos,3)<<3)|extru(ir,fpralpos,3);
ir               1376 arch/parisc/math-emu/fpudispatch.c 		t = ((extru(ir,fptpos,5)<<1)|(extru(ir,fpxtpos,1)));
ir               1380 arch/parisc/math-emu/fpudispatch.c 		if (extru(ir,fpfusedsubop,1)) { /* fmpyfadd or fmpynfadd? */
ir                677 arch/powerpc/kvm/book3s_pr.c 	bool ir = (kvmppc_get_msr(vcpu) & MSR_IR) ? true : false;
ir                680 arch/powerpc/kvm/book3s_pr.c 	relocated = data ? dr : ir;
ir                 34 arch/powerpc/platforms/4xx/gpio.c 	__be32 ir;
ir                 63 arch/powerpc/platforms/4xx/gpio.c 	return !!(in_be32(&regs->ir) & GPIO_MASK(gpio));
ir                 22 arch/riscv/include/asm/barrier.h #define rmb()		RISCV_FENCE(ir,ir)
ir                200 arch/s390/include/asm/ap.h 	unsigned int ir    : 1;	/* ir flag: enable (1) or disable (0) irq */
ir               2051 arch/x86/kvm/svm.c 	struct amd_svm_iommu_ir *ir;
ir               2066 arch/x86/kvm/svm.c 	list_for_each_entry(ir, &svm->ir_list, node) {
ir               2067 arch/x86/kvm/svm.c 		ret = amd_iommu_update_ga(cpu, r, ir->data);
ir               5235 arch/x86/kvm/svm.c 	struct amd_svm_iommu_ir *ir;
ir               5261 arch/x86/kvm/svm.c 	ir = kzalloc(sizeof(struct amd_svm_iommu_ir), GFP_KERNEL_ACCOUNT);
ir               5262 arch/x86/kvm/svm.c 	if (!ir) {
ir               5266 arch/x86/kvm/svm.c 	ir->data = pi->ir_data;
ir               5269 arch/x86/kvm/svm.c 	list_add(&ir->node, &svm->ir_list);
ir                344 crypto/camellia_generic.c #define CAMELLIA_F(xl, xr, kl, kr, yl, yr, il, ir, t0, t1) ({	\
ir                346 crypto/camellia_generic.c 	ir = xr ^ kr;						\
ir                348 crypto/camellia_generic.c 	t1 = ir >> 16;						\
ir                349 crypto/camellia_generic.c 	yl = camellia_sp1110[(u8)(ir)]				\
ir                352 crypto/camellia_generic.c 	   ^ camellia_sp4404[(u8)(ir >> 8)];			\
ir                548 crypto/camellia_generic.c 	u32 il, ir, t0, t1, w0, w1;
ir                605 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
ir                609 crypto/camellia_generic.c 		   kll, klr, il, ir, t0, t1);
ir                613 crypto/camellia_generic.c 		   krl, krr, il, ir, t0, t1);
ir                617 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
ir                655 crypto/camellia_generic.c 	u32 il, ir, t0, t1, w0, w1;    /* temporary variables */
ir                726 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
ir                730 crypto/camellia_generic.c 		   kll, klr, il, ir, t0, t1);
ir                734 crypto/camellia_generic.c 		   krl, krr, il, ir, t0, t1);
ir                738 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
ir                746 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
ir                750 crypto/camellia_generic.c 		   w0, w1, il, ir, t0, t1);
ir                834 crypto/camellia_generic.c #define CAMELLIA_ROUNDSM(xl, xr, kl, kr, yl, yr, il, ir) ({		\
ir                837 crypto/camellia_generic.c 	ir =  camellia_sp1110[(u8)xr];					\
ir                839 crypto/camellia_generic.c 	ir ^= camellia_sp0222[(u8)(xr >> 24)];				\
ir                841 crypto/camellia_generic.c 	ir ^= camellia_sp3033[(u8)(xr >> 16)];				\
ir                843 crypto/camellia_generic.c 	ir ^= camellia_sp4404[(u8)(xr >> 8)];				\
ir                845 crypto/camellia_generic.c 	ir ^= il;							\
ir                846 crypto/camellia_generic.c 	yl ^= ir;							\
ir                847 crypto/camellia_generic.c 	yr ^= ror32(il, 8) ^ ir;					\
ir                853 crypto/camellia_generic.c 	u32 il, ir, t0, t1;            /* temporary variables */
ir                863 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
ir                866 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
ir                869 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
ir                872 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
ir                875 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
ir                878 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
ir                884 crypto/camellia_generic.c 		     t0, t1, il, ir); \
ir                908 crypto/camellia_generic.c 	u32 il, ir, t0, t1;            /* temporary variables */
ir                918 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
ir                921 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
ir                924 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
ir                927 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
ir                930 crypto/camellia_generic.c 			 io[2], io[3], il, ir); \
ir                933 crypto/camellia_generic.c 			 io[0], io[1], il, ir); \
ir                939 crypto/camellia_generic.c 		     t0, t1, il, ir); \
ir                196 drivers/hid/hid-wiimote-core.c 	__u8 ir = wdata->state.flags & WIIPROTO_FLAGS_IR;
ir                210 drivers/hid/hid-wiimote-core.c 	if (ir == WIIPROTO_FLAG_IR_BASIC) {
ir                221 drivers/hid/hid-wiimote-core.c 	} else if (ir == WIIPROTO_FLAG_IR_EXT) {
ir                223 drivers/hid/hid-wiimote-core.c 	} else if (ir == WIIPROTO_FLAG_IR_FULL) {
ir               1382 drivers/hid/hid-wiimote-core.c #define ir_to_input0(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 0)
ir               1383 drivers/hid/hid-wiimote-core.c #define ir_to_input1(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 1)
ir               1384 drivers/hid/hid-wiimote-core.c #define ir_to_input2(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 2)
ir               1385 drivers/hid/hid-wiimote-core.c #define ir_to_input3(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 3)
ir               1852 drivers/hid/hid-wiimote-core.c 	input_free_device(wdata->ir);
ir                550 drivers/hid/hid-wiimote-modules.c static void wiimod_ir_in_ir(struct wiimote_data *wdata, const __u8 *ir,
ir                593 drivers/hid/hid-wiimote-modules.c 		x = ir[1] | ((ir[0] & 0x03) << 8);
ir                594 drivers/hid/hid-wiimote-modules.c 		y = ir[2] | ((ir[0] & 0x0c) << 6);
ir                596 drivers/hid/hid-wiimote-modules.c 		x = ir[0] | ((ir[2] & 0x30) << 4);
ir                597 drivers/hid/hid-wiimote-modules.c 		y = ir[1] | ((ir[2] & 0xc0) << 2);
ir                600 drivers/hid/hid-wiimote-modules.c 	input_report_abs(wdata->ir, xid, x);
ir                601 drivers/hid/hid-wiimote-modules.c 	input_report_abs(wdata->ir, yid, y);
ir                604 drivers/hid/hid-wiimote-modules.c 		input_sync(wdata->ir);
ir                738 drivers/hid/hid-wiimote-modules.c 	wdata->ir = input_allocate_device();
ir                739 drivers/hid/hid-wiimote-modules.c 	if (!wdata->ir)
ir                742 drivers/hid/hid-wiimote-modules.c 	input_set_drvdata(wdata->ir, wdata);
ir                743 drivers/hid/hid-wiimote-modules.c 	wdata->ir->open = wiimod_ir_open;
ir                744 drivers/hid/hid-wiimote-modules.c 	wdata->ir->close = wiimod_ir_close;
ir                745 drivers/hid/hid-wiimote-modules.c 	wdata->ir->dev.parent = &wdata->hdev->dev;
ir                746 drivers/hid/hid-wiimote-modules.c 	wdata->ir->id.bustype = wdata->hdev->bus;
ir                747 drivers/hid/hid-wiimote-modules.c 	wdata->ir->id.vendor = wdata->hdev->vendor;
ir                748 drivers/hid/hid-wiimote-modules.c 	wdata->ir->id.product = wdata->hdev->product;
ir                749 drivers/hid/hid-wiimote-modules.c 	wdata->ir->id.version = wdata->hdev->version;
ir                750 drivers/hid/hid-wiimote-modules.c 	wdata->ir->name = WIIMOTE_NAME " IR";
ir                752 drivers/hid/hid-wiimote-modules.c 	set_bit(EV_ABS, wdata->ir->evbit);
ir                753 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT0X, wdata->ir->absbit);
ir                754 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT0Y, wdata->ir->absbit);
ir                755 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT1X, wdata->ir->absbit);
ir                756 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT1Y, wdata->ir->absbit);
ir                757 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT2X, wdata->ir->absbit);
ir                758 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT2Y, wdata->ir->absbit);
ir                759 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT3X, wdata->ir->absbit);
ir                760 drivers/hid/hid-wiimote-modules.c 	set_bit(ABS_HAT3Y, wdata->ir->absbit);
ir                761 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT0X, 0, 1023, 2, 4);
ir                762 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT0Y, 0, 767, 2, 4);
ir                763 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT1X, 0, 1023, 2, 4);
ir                764 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT1Y, 0, 767, 2, 4);
ir                765 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT2X, 0, 1023, 2, 4);
ir                766 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT2Y, 0, 767, 2, 4);
ir                767 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT3X, 0, 1023, 2, 4);
ir                768 drivers/hid/hid-wiimote-modules.c 	input_set_abs_params(wdata->ir, ABS_HAT3Y, 0, 767, 2, 4);
ir                770 drivers/hid/hid-wiimote-modules.c 	ret = input_register_device(wdata->ir);
ir                779 drivers/hid/hid-wiimote-modules.c 	input_free_device(wdata->ir);
ir                780 drivers/hid/hid-wiimote-modules.c 	wdata->ir = NULL;
ir                787 drivers/hid/hid-wiimote-modules.c 	if (!wdata->ir)
ir                790 drivers/hid/hid-wiimote-modules.c 	input_unregister_device(wdata->ir);
ir                791 drivers/hid/hid-wiimote-modules.c 	wdata->ir = NULL;
ir                149 drivers/hid/hid-wiimote.h 	struct input_dev *ir;
ir                197 drivers/hid/hid-wiimote.h 	void (*in_ir) (struct wiimote_data *wdata, const __u8 *ir, bool packed,
ir                210 drivers/iio/light/isl29018.c static int isl29018_read_ir(struct isl29018_chip *chip, int *ir)
ir                219 drivers/iio/light/isl29018.c 	*ir = ir_data;
ir                713 drivers/iio/light/si1133.c 	s32 ir;
ir                734 drivers/iio/light/si1133.c 	ir = sign_extend32((buffer[6] << 16) | (buffer[7] << 8) | buffer[8],
ir                737 drivers/iio/light/si1133.c 	if (high_vis > SI1133_ADC_THRESHOLD || ir > SI1133_ADC_THRESHOLD)
ir                738 drivers/iio/light/si1133.c 		lux = si1133_calc_polynomial(high_vis, ir,
ir                743 drivers/iio/light/si1133.c 		lux = si1133_calc_polynomial(low_vis, ir,
ir                 66 drivers/media/common/siano/sms-cards.c 		.board_cfg.ir = 9,
ir                 60 drivers/media/common/siano/sms-cards.h 	int ir;
ir                778 drivers/media/common/siano/smscoreapi.c 	coredev->ir.dev = NULL;
ir                779 drivers/media/common/siano/smscoreapi.c 	ir_io = sms_get_board(smscore_get_board_id(coredev))->board_cfg.ir;
ir                798 drivers/media/common/siano/smscoreapi.c 				msg->msg_data[0] = coredev->ir.controller;
ir                799 drivers/media/common/siano/smscoreapi.c 				msg->msg_data[1] = coredev->ir.timeout;
ir                206 drivers/media/common/siano/smscoreapi.h 	struct ir_t ir;
ir                 34 drivers/media/common/siano/smsir.c 		ir_raw_event_store(coredev->ir.dev, &ev);
ir                 36 drivers/media/common/siano/smsir.c 	ir_raw_event_handle(coredev->ir.dev);
ir                 50 drivers/media/common/siano/smsir.c 	coredev->ir.controller = 0;	/* Todo: vega/nova SPI number */
ir                 51 drivers/media/common/siano/smsir.c 	coredev->ir.timeout = IR_DEFAULT_TIMEOUT;
ir                 53 drivers/media/common/siano/smsir.c 			coredev->ir.controller, coredev->ir.timeout);
ir                 55 drivers/media/common/siano/smsir.c 	snprintf(coredev->ir.name, sizeof(coredev->ir.name),
ir                 58 drivers/media/common/siano/smsir.c 	strscpy(coredev->ir.phys, coredev->devpath, sizeof(coredev->ir.phys));
ir                 59 drivers/media/common/siano/smsir.c 	strlcat(coredev->ir.phys, "/ir0", sizeof(coredev->ir.phys));
ir                 61 drivers/media/common/siano/smsir.c 	dev->device_name = coredev->ir.name;
ir                 62 drivers/media/common/siano/smsir.c 	dev->input_phys = coredev->ir.phys;
ir                 88 drivers/media/common/siano/smsir.c 	coredev->ir.dev = dev;
ir                 94 drivers/media/common/siano/smsir.c 	rc_unregister_device(coredev->ir.dev);
ir               1155 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	double ir, ig, ib;
ir               1157 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	ir = m[0][0] * (*r) + m[0][1] * (*g) + m[0][2] * (*b);
ir               1160 drivers/media/common/v4l2-tpg/v4l2-tpg-colors.c 	*r = ir;
ir               5779 drivers/media/i2c/cx25840/cx25840-core.c 	.ir = &cx25840_ir_ops,
ir               1236 drivers/media/i2c/cx25840/cx25840-ir.c 	v4l2_subdev_call(sd, ir, rx_s_parameters, &default_params);
ir               1240 drivers/media/i2c/cx25840/cx25840-ir.c 	v4l2_subdev_call(sd, ir, tx_s_parameters, &default_params);
ir                 59 drivers/media/i2c/ir-kbd-i2c.c static int get_key_haup_common(struct IR_i2c *ir, enum rc_proto *protocol,
ir                 66 drivers/media/i2c/ir-kbd-i2c.c 	if (size != i2c_master_recv(ir->c, buf, size))
ir                 96 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev,
ir                114 drivers/media/i2c/ir-kbd-i2c.c 			dev_dbg(&ir->rc->dev,
ir                120 drivers/media/i2c/ir-kbd-i2c.c 			dev_dbg(&ir->rc->dev,
ir                133 drivers/media/i2c/ir-kbd-i2c.c static int get_key_haup(struct IR_i2c *ir, enum rc_proto *protocol,
ir                136 drivers/media/i2c/ir-kbd-i2c.c 	return get_key_haup_common(ir, protocol, scancode, toggle, 3);
ir                139 drivers/media/i2c/ir-kbd-i2c.c static int get_key_haup_xvr(struct IR_i2c *ir, enum rc_proto *protocol,
ir                151 drivers/media/i2c/ir-kbd-i2c.c 	ret = i2c_master_send(ir->c, buf, 1);
ir                155 drivers/media/i2c/ir-kbd-i2c.c 	return get_key_haup_common(ir, protocol, scancode, toggle, 6);
ir                158 drivers/media/i2c/ir-kbd-i2c.c static int get_key_pixelview(struct IR_i2c *ir, enum rc_proto *protocol,
ir                165 drivers/media/i2c/ir-kbd-i2c.c 	rc = i2c_master_recv(ir->c, &b, 1);
ir                167 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "read error\n");
ir                179 drivers/media/i2c/ir-kbd-i2c.c static int get_key_fusionhdtv(struct IR_i2c *ir, enum rc_proto *protocol,
ir                186 drivers/media/i2c/ir-kbd-i2c.c 	rc = i2c_master_recv(ir->c, buf, 4);
ir                188 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "read error\n");
ir                195 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "%s: %*ph\n", __func__, 4, buf);
ir                207 drivers/media/i2c/ir-kbd-i2c.c static int get_key_knc1(struct IR_i2c *ir, enum rc_proto *protocol,
ir                214 drivers/media/i2c/ir-kbd-i2c.c 	rc = i2c_master_recv(ir->c, &b, 1);
ir                216 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "read error\n");
ir                226 drivers/media/i2c/ir-kbd-i2c.c 	dev_dbg(&ir->rc->dev, "key %02x\n", b);
ir                241 drivers/media/i2c/ir-kbd-i2c.c static int get_key_avermedia_cardbus(struct IR_i2c *ir, enum rc_proto *protocol,
ir                245 drivers/media/i2c/ir-kbd-i2c.c 	struct i2c_msg msg[] = { { .addr = ir->c->addr, .flags = 0,
ir                247 drivers/media/i2c/ir-kbd-i2c.c 				 { .addr = ir->c->addr, .flags = I2C_M_RD,
ir                250 drivers/media/i2c/ir-kbd-i2c.c 	if (2 != i2c_transfer(ir->c->adapter, msg, 2)) {
ir                251 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "read error\n");
ir                260 drivers/media/i2c/ir-kbd-i2c.c 	if (2 != i2c_transfer(ir->c->adapter, msg, 2)) {
ir                261 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "read error\n");
ir                268 drivers/media/i2c/ir-kbd-i2c.c 	dev_dbg(&ir->rc->dev, "read key 0x%02x/0x%02x\n", key, keygroup);
ir                270 drivers/media/i2c/ir-kbd-i2c.c 		dev_warn(&ir->rc->dev, "warning: invalid key group 0x%02x for key 0x%02x\n",
ir                277 drivers/media/i2c/ir-kbd-i2c.c 	if (ir->c->addr == 0x41) /* AVerMedia EM78P153 */
ir                285 drivers/media/i2c/ir-kbd-i2c.c static int ir_key_poll(struct IR_i2c *ir)
ir                292 drivers/media/i2c/ir-kbd-i2c.c 	dev_dbg(&ir->rc->dev, "%s\n", __func__);
ir                293 drivers/media/i2c/ir-kbd-i2c.c 	rc = ir->get_key(ir, &protocol, &scancode, &toggle);
ir                295 drivers/media/i2c/ir-kbd-i2c.c 		dev_warn(&ir->rc->dev, "error %d\n", rc);
ir                300 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "%s: proto = 0x%04x, scancode = 0x%08x\n",
ir                302 drivers/media/i2c/ir-kbd-i2c.c 		rc_keydown(ir->rc, protocol, scancode, toggle);
ir                310 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = container_of(work, struct IR_i2c, work.work);
ir                316 drivers/media/i2c/ir-kbd-i2c.c 	if (mutex_trylock(&ir->lock)) {
ir                317 drivers/media/i2c/ir-kbd-i2c.c 		rc = ir_key_poll(ir);
ir                318 drivers/media/i2c/ir-kbd-i2c.c 		mutex_unlock(&ir->lock);
ir                320 drivers/media/i2c/ir-kbd-i2c.c 			rc_unregister_device(ir->rc);
ir                321 drivers/media/i2c/ir-kbd-i2c.c 			ir->rc = NULL;
ir                326 drivers/media/i2c/ir-kbd-i2c.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling_interval));
ir                331 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = dev->priv;
ir                333 drivers/media/i2c/ir-kbd-i2c.c 	schedule_delayed_work(&ir->work, 0);
ir                340 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = dev->priv;
ir                342 drivers/media/i2c/ir-kbd-i2c.c 	cancel_delayed_work_sync(&ir->work);
ir                373 drivers/media/i2c/ir-kbd-i2c.c static int send_data_block(struct IR_i2c *ir, int cmd,
ir                393 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev, "%*ph", tosend + 1, buf);
ir                394 drivers/media/i2c/ir-kbd-i2c.c 		ret = i2c_master_send(ir->tx_c, buf, tosend + 1);
ir                396 drivers/media/i2c/ir-kbd-i2c.c 			dev_dbg(&ir->rc->dev,
ir                405 drivers/media/i2c/ir-kbd-i2c.c 	ret = i2c_master_send(ir->tx_c, buf, 2);
ir                407 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev, "i2c_master_send failed with %d\n", ret);
ir                413 drivers/media/i2c/ir-kbd-i2c.c 	ret = i2c_master_send(ir->tx_c, buf, 1);
ir                415 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev, "i2c_master_send failed with %d\n", ret);
ir                422 drivers/media/i2c/ir-kbd-i2c.c static int zilog_init(struct IR_i2c *ir)
ir                430 drivers/media/i2c/ir-kbd-i2c.c 	ret = send_data_block(ir, ZILOG_INIT_END, &code_block);
ir                434 drivers/media/i2c/ir-kbd-i2c.c 	ret = i2c_master_recv(ir->tx_c, buf, 4);
ir                436 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->c->dev, "failed to retrieve firmware version: %d\n",
ir                441 drivers/media/i2c/ir-kbd-i2c.c 	dev_info(&ir->c->dev, "Zilog/Hauppauge IR blaster firmware version %d.%d.%d\n",
ir                499 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = rcdev->priv;
ir                505 drivers/media/i2c/ir-kbd-i2c.c 			ir->duty_cycle * XTAL_FREQ / 1000, ir->carrier);
ir                507 drivers/media/i2c/ir-kbd-i2c.c 			(100 - ir->duty_cycle) * XTAL_FREQ / 1000, ir->carrier);
ir                610 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = rcdev->priv;
ir                619 drivers/media/i2c/ir-kbd-i2c.c 	ret = mutex_lock_interruptible(&ir->lock);
ir                623 drivers/media/i2c/ir-kbd-i2c.c 	ret = send_data_block(ir, ZILOG_UIR_END, &code_block);
ir                627 drivers/media/i2c/ir-kbd-i2c.c 	ret = i2c_master_recv(ir->tx_c, buf, 1);
ir                629 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev, "i2c_master_recv failed with %d\n", ret);
ir                633 drivers/media/i2c/ir-kbd-i2c.c 	dev_dbg(&ir->rc->dev, "code set status: %02x\n", buf[0]);
ir                636 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev, "unexpected IR TX response %02x\n",
ir                645 drivers/media/i2c/ir-kbd-i2c.c 	ret = i2c_master_send(ir->tx_c, buf, 2);
ir                647 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev, "i2c_master_send failed with %d\n", ret);
ir                653 drivers/media/i2c/ir-kbd-i2c.c 	dev_dbg(&ir->rc->dev, "send command sent\n");
ir                664 drivers/media/i2c/ir-kbd-i2c.c 		ret = i2c_master_send(ir->tx_c, buf, 1);
ir                667 drivers/media/i2c/ir-kbd-i2c.c 		dev_dbg(&ir->rc->dev,
ir                673 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev,
ir                681 drivers/media/i2c/ir-kbd-i2c.c 	i = i2c_master_recv(ir->tx_c, buf, 1);
ir                683 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev, "i2c_master_recv failed with %d\n", ret);
ir                687 drivers/media/i2c/ir-kbd-i2c.c 		dev_err(&ir->rc->dev, "unexpected IR TX response #2: %02x\n",
ir                692 drivers/media/i2c/ir-kbd-i2c.c 	dev_dbg(&ir->rc->dev, "transmit complete\n");
ir                697 drivers/media/i2c/ir-kbd-i2c.c 	mutex_unlock(&ir->lock);
ir                704 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = dev->priv;
ir                709 drivers/media/i2c/ir-kbd-i2c.c 	ir->carrier = carrier;
ir                716 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = dev->priv;
ir                718 drivers/media/i2c/ir-kbd-i2c.c 	ir->duty_cycle = duty_cycle;
ir                728 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir;
ir                740 drivers/media/i2c/ir-kbd-i2c.c 	ir = devm_kzalloc(&client->dev, sizeof(*ir), GFP_KERNEL);
ir                741 drivers/media/i2c/ir-kbd-i2c.c 	if (!ir)
ir                744 drivers/media/i2c/ir-kbd-i2c.c 	ir->c = client;
ir                745 drivers/media/i2c/ir-kbd-i2c.c 	ir->polling_interval = DEFAULT_POLLING_INTERVAL;
ir                746 drivers/media/i2c/ir-kbd-i2c.c 	i2c_set_clientdata(client, ir);
ir                751 drivers/media/i2c/ir-kbd-i2c.c 		ir->get_key = get_key_pixelview;
ir                759 drivers/media/i2c/ir-kbd-i2c.c 		ir->get_key = get_key_haup;
ir                765 drivers/media/i2c/ir-kbd-i2c.c 		ir->get_key = get_key_knc1;
ir                771 drivers/media/i2c/ir-kbd-i2c.c 		ir->get_key = get_key_fusionhdtv;
ir                777 drivers/media/i2c/ir-kbd-i2c.c 		ir->get_key = get_key_avermedia_cardbus;
ir                783 drivers/media/i2c/ir-kbd-i2c.c 		ir->get_key = get_key_avermedia_cardbus;
ir                790 drivers/media/i2c/ir-kbd-i2c.c 		ir->get_key = get_key_haup_xvr;
ir                811 drivers/media/i2c/ir-kbd-i2c.c 			ir->polling_interval = init_data->polling_interval;
ir                816 drivers/media/i2c/ir-kbd-i2c.c 			ir->get_key = init_data->get_key;
ir                819 drivers/media/i2c/ir-kbd-i2c.c 			ir->get_key = get_key_pixelview;
ir                822 drivers/media/i2c/ir-kbd-i2c.c 			ir->get_key = get_key_haup;
ir                825 drivers/media/i2c/ir-kbd-i2c.c 			ir->get_key = get_key_knc1;
ir                828 drivers/media/i2c/ir-kbd-i2c.c 			ir->get_key = get_key_fusionhdtv;
ir                831 drivers/media/i2c/ir-kbd-i2c.c 			ir->get_key = get_key_haup_xvr;
ir                834 drivers/media/i2c/ir-kbd-i2c.c 			ir->get_key = get_key_avermedia_cardbus;
ir                848 drivers/media/i2c/ir-kbd-i2c.c 	ir->rc = rc;
ir                851 drivers/media/i2c/ir-kbd-i2c.c 	if (!name || !ir->get_key || !rc_proto || !ir_codes) {
ir                858 drivers/media/i2c/ir-kbd-i2c.c 	ir->ir_codes = ir_codes;
ir                860 drivers/media/i2c/ir-kbd-i2c.c 	snprintf(ir->phys, sizeof(ir->phys), "%s/%s", dev_name(&adap->dev),
ir                868 drivers/media/i2c/ir-kbd-i2c.c 	rc->input_phys       = ir->phys;
ir                871 drivers/media/i2c/ir-kbd-i2c.c 	rc->priv             = ir;
ir                878 drivers/media/i2c/ir-kbd-i2c.c 	rc->map_name       = ir->ir_codes;
ir                883 drivers/media/i2c/ir-kbd-i2c.c 	mutex_init(&ir->lock);
ir                885 drivers/media/i2c/ir-kbd-i2c.c 	INIT_DELAYED_WORK(&ir->work, ir_work);
ir                888 drivers/media/i2c/ir-kbd-i2c.c 		ir->tx_c = i2c_new_dummy_device(client->adapter, 0x70);
ir                889 drivers/media/i2c/ir-kbd-i2c.c 		if (IS_ERR(ir->tx_c)) {
ir                891 drivers/media/i2c/ir-kbd-i2c.c 			err = PTR_ERR(ir->tx_c);
ir                893 drivers/media/i2c/ir-kbd-i2c.c 		} else if (!zilog_init(ir)) {
ir                894 drivers/media/i2c/ir-kbd-i2c.c 			ir->carrier = 38000;
ir                895 drivers/media/i2c/ir-kbd-i2c.c 			ir->duty_cycle = 40;
ir                909 drivers/media/i2c/ir-kbd-i2c.c 	if (!IS_ERR(ir->tx_c))
ir                910 drivers/media/i2c/ir-kbd-i2c.c 		i2c_unregister_device(ir->tx_c);
ir                919 drivers/media/i2c/ir-kbd-i2c.c 	struct IR_i2c *ir = i2c_get_clientdata(client);
ir                921 drivers/media/i2c/ir-kbd-i2c.c 	cancel_delayed_work_sync(&ir->work);
ir                923 drivers/media/i2c/ir-kbd-i2c.c 	i2c_unregister_device(ir->tx_c);
ir                925 drivers/media/i2c/ir-kbd-i2c.c 	rc_unregister_device(ir->rc);
ir                 42 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv_ir *ir = btv->remote;
ir                 47 drivers/media/pci/bt8xx/bttv-input.c 	if (ir->polling) {
ir                 48 drivers/media/pci/bt8xx/bttv-input.c 		if (ir->last_gpio == gpio)
ir                 50 drivers/media/pci/bt8xx/bttv-input.c 		ir->last_gpio = gpio;
ir                 54 drivers/media/pci/bt8xx/bttv-input.c 	data = ir_extract_bits(gpio, ir->mask_keycode);
ir                 57 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling               ? "poll"  : "irq",
ir                 58 drivers/media/pci/bt8xx/bttv-input.c 		(gpio & ir->mask_keydown) ? " down" : "",
ir                 59 drivers/media/pci/bt8xx/bttv-input.c 		(gpio & ir->mask_keyup)   ? " up"   : "");
ir                 61 drivers/media/pci/bt8xx/bttv-input.c 	if ((ir->mask_keydown && (gpio & ir->mask_keydown)) ||
ir                 62 drivers/media/pci/bt8xx/bttv-input.c 	    (ir->mask_keyup   && !(gpio & ir->mask_keyup))) {
ir                 63 drivers/media/pci/bt8xx/bttv-input.c 		rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 0);
ir                 68 drivers/media/pci/bt8xx/bttv-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data,
ir                 71 drivers/media/pci/bt8xx/bttv-input.c 		rc_keyup(ir->dev);
ir                 77 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv_ir *ir = btv->remote;
ir                 84 drivers/media/pci/bt8xx/bttv-input.c 	data = ir_extract_bits(gpio, ir->mask_keycode);
ir                 87 drivers/media/pci/bt8xx/bttv-input.c 	keyup = (gpio & ir->mask_keyup) ? 1UL << 31 : 0;
ir                 89 drivers/media/pci/bt8xx/bttv-input.c 	if ((ir->last_gpio & 0x7f) != data) {
ir                 92 drivers/media/pci/bt8xx/bttv-input.c 			(gpio & ir->mask_keyup) ? " up" : "up/down");
ir                 94 drivers/media/pci/bt8xx/bttv-input.c 		rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 0);
ir                 96 drivers/media/pci/bt8xx/bttv-input.c 			rc_keyup(ir->dev);
ir                 98 drivers/media/pci/bt8xx/bttv-input.c 		if ((ir->last_gpio & 1UL << 31) == keyup)
ir                103 drivers/media/pci/bt8xx/bttv-input.c 			(gpio & ir->mask_keyup) ? " up" : "down");
ir                106 drivers/media/pci/bt8xx/bttv-input.c 			rc_keyup(ir->dev);
ir                108 drivers/media/pci/bt8xx/bttv-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data,
ir                112 drivers/media/pci/bt8xx/bttv-input.c 	ir->last_gpio = data | keyup;
ir                119 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv_ir *ir = btv->remote;
ir                121 drivers/media/pci/bt8xx/bttv-input.c 	if (ir->rc5_gpio)
ir                123 drivers/media/pci/bt8xx/bttv-input.c 	else if (!ir->polling)
ir                129 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv_ir *ir = from_timer(ir, t, timer);
ir                130 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv *btv = ir->btv;
ir                136 drivers/media/pci/bt8xx/bttv-input.c 	mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling));
ir                185 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv_ir *ir = from_timer(ir, t, timer);
ir                193 drivers/media/pci/bt8xx/bttv-input.c 	gap = ktime_to_us(ktime_sub(tv, ir->base_time));
ir                199 drivers/media/pci/bt8xx/bttv-input.c 	ir->active = false;
ir                207 drivers/media/pci/bt8xx/bttv-input.c 	if (ir->last_bit < 20) {
ir                209 drivers/media/pci/bt8xx/bttv-input.c 		dprintk("short code: %x\n", ir->code);
ir                213 drivers/media/pci/bt8xx/bttv-input.c 	ir->code = (ir->code << ir->shift_by) | 1;
ir                214 drivers/media/pci/bt8xx/bttv-input.c 	rc5 = bttv_rc5_decode(ir->code);
ir                231 drivers/media/pci/bt8xx/bttv-input.c 	rc_keydown(ir->dev, RC_PROTO_RC5, scancode, toggle);
ir                237 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv_ir *ir = btv->remote;
ir                250 drivers/media/pci/bt8xx/bttv-input.c 	gap = ktime_to_us(ktime_sub(tv, ir->base_time));
ir                264 drivers/media/pci/bt8xx/bttv-input.c 	if (ir->active) {
ir                267 drivers/media/pci/bt8xx/bttv-input.c 		if (ir->last_bit < 28) {
ir                268 drivers/media/pci/bt8xx/bttv-input.c 			ir->last_bit = (gap - ir_rc5_remote_gap / 2) /
ir                270 drivers/media/pci/bt8xx/bttv-input.c 			ir->code |= 1 << ir->last_bit;
ir                274 drivers/media/pci/bt8xx/bttv-input.c 		ir->active = true;
ir                275 drivers/media/pci/bt8xx/bttv-input.c 		ir->code = 0;
ir                276 drivers/media/pci/bt8xx/bttv-input.c 		ir->base_time = tv;
ir                277 drivers/media/pci/bt8xx/bttv-input.c 		ir->last_bit = 0;
ir                279 drivers/media/pci/bt8xx/bttv-input.c 		mod_timer(&ir->timer, current_jiffies + msecs_to_jiffies(30));
ir                290 drivers/media/pci/bt8xx/bttv-input.c static void bttv_ir_start(struct bttv_ir *ir)
ir                292 drivers/media/pci/bt8xx/bttv-input.c 	if (ir->polling) {
ir                293 drivers/media/pci/bt8xx/bttv-input.c 		timer_setup(&ir->timer, bttv_input_timer, 0);
ir                294 drivers/media/pci/bt8xx/bttv-input.c 		ir->timer.expires  = jiffies + msecs_to_jiffies(1000);
ir                295 drivers/media/pci/bt8xx/bttv-input.c 		add_timer(&ir->timer);
ir                296 drivers/media/pci/bt8xx/bttv-input.c 	} else if (ir->rc5_gpio) {
ir                298 drivers/media/pci/bt8xx/bttv-input.c 		timer_setup(&ir->timer, bttv_rc5_timer_end, 0);
ir                299 drivers/media/pci/bt8xx/bttv-input.c 		ir->shift_by = 1;
ir                300 drivers/media/pci/bt8xx/bttv-input.c 		ir->rc5_remote_gap = ir_rc5_remote_gap;
ir                323 drivers/media/pci/bt8xx/bttv-input.c static int get_key_pv951(struct IR_i2c *ir, enum rc_proto *protocol,
ir                330 drivers/media/pci/bt8xx/bttv-input.c 	rc = i2c_master_recv(ir->c, &b, 1);
ir                411 drivers/media/pci/bt8xx/bttv-input.c 	struct bttv_ir *ir;
ir                419 drivers/media/pci/bt8xx/bttv-input.c 	ir = kzalloc(sizeof(*ir),GFP_KERNEL);
ir                421 drivers/media/pci/bt8xx/bttv-input.c 	if (!ir || !rc)
ir                430 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0xf88000;
ir                431 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keydown = 0x010000;
ir                432 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; // ms
ir                438 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x0f00c0;
ir                439 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keydown = 0x000020;
ir                440 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; // ms
ir                445 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x003e00;
ir                446 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keyup   = 0x010000;
ir                447 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; // ms
ir                453 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x001f00;
ir                454 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keyup   = 0x008000;
ir                455 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; // ms
ir                460 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x1f8;
ir                465 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x0008e000;
ir                466 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keydown = 0x00200000;
ir                470 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x001f00;
ir                471 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keyup   = 0x008000;
ir                472 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; // ms
ir                479 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x001F00;
ir                480 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keyup   = 0x006000;
ir                481 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; // ms
ir                485 drivers/media/pci/bt8xx/bttv-input.c 		ir->rc5_gpio     = true;
ir                489 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x001F00;
ir                490 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keyup   = 0x004000;
ir                491 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; /* ms */
ir                495 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x001f00;
ir                496 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keyup   = 0x006000;
ir                497 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 50; /* ms */
ir                501 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keycode = 0x00fd00;
ir                502 drivers/media/pci/bt8xx/bttv-input.c 		ir->mask_keyup   = 0x000080;
ir                503 drivers/media/pci/bt8xx/bttv-input.c 		ir->polling      = 1; /* ms */
ir                504 drivers/media/pci/bt8xx/bttv-input.c 		ir->last_gpio    = ir_extract_bits(bttv_gpio_read(&btv->c),
ir                505 drivers/media/pci/bt8xx/bttv-input.c 						   ir->mask_keycode);
ir                515 drivers/media/pci/bt8xx/bttv-input.c 	if (ir->rc5_gpio) {
ir                524 drivers/media/pci/bt8xx/bttv-input.c 		bttv_gpio_inout(&btv->c, ir->mask_keycode | ir->mask_keydown, 0);
ir                528 drivers/media/pci/bt8xx/bttv-input.c 	ir->dev = rc;
ir                529 drivers/media/pci/bt8xx/bttv-input.c 	ir->btv = btv;
ir                531 drivers/media/pci/bt8xx/bttv-input.c 	snprintf(ir->name, sizeof(ir->name), "bttv IR (card=%d)",
ir                533 drivers/media/pci/bt8xx/bttv-input.c 	snprintf(ir->phys, sizeof(ir->phys), "pci-%s/ir0",
ir                536 drivers/media/pci/bt8xx/bttv-input.c 	rc->device_name = ir->name;
ir                537 drivers/media/pci/bt8xx/bttv-input.c 	rc->input_phys = ir->phys;
ir                551 drivers/media/pci/bt8xx/bttv-input.c 	btv->remote = ir;
ir                552 drivers/media/pci/bt8xx/bttv-input.c 	bttv_ir_start(ir);
ir                566 drivers/media/pci/bt8xx/bttv-input.c 	kfree(ir);
ir               1959 drivers/media/pci/cx23885/cx23885-cards.c 		v4l2_subdev_call(dev->sd_ir, ir, tx_g_parameters, &params);
ir               1963 drivers/media/pci/cx23885/cx23885-cards.c 		v4l2_subdev_call(dev->sd_ir, ir, tx_s_parameters, &params);
ir               1965 drivers/media/pci/cx23885/cx23885-cards.c 		v4l2_subdev_call(dev->sd_ir, ir, tx_s_parameters, &params);
ir                 45 drivers/media/pci/cx23885/cx23885-input.c 		v4l2_subdev_call(dev->sd_ir, ir, rx_read, (u8 *) ir_core_event,
ir                106 drivers/media/pci/cx23885/cx23885-input.c 		v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, &params);
ir                110 drivers/media/pci/cx23885/cx23885-input.c 		v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, &params);
ir                121 drivers/media/pci/cx23885/cx23885-input.c 		v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, &params);
ir                134 drivers/media/pci/cx23885/cx23885-input.c 	v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, &params);
ir                208 drivers/media/pci/cx23885/cx23885-input.c 	v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, &params);
ir                237 drivers/media/pci/cx23885/cx23885-input.c 	v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, &params);
ir                242 drivers/media/pci/cx23885/cx23885-input.c 		v4l2_subdev_call(dev->sd_ir, ir, rx_s_parameters, &params);
ir                243 drivers/media/pci/cx23885/cx23885-input.c 		v4l2_subdev_call(dev->sd_ir, ir, rx_g_parameters, &params);
ir               1121 drivers/media/pci/cx23885/cx23888-ir.c 	.ir = &cx23888_ir_ir_ops,
ir               1193 drivers/media/pci/cx23885/cx23888-ir.c 		v4l2_subdev_call(sd, ir, rx_s_parameters, &default_params);
ir               1197 drivers/media/pci/cx23885/cx23888-ir.c 		v4l2_subdev_call(sd, ir, tx_s_parameters, &default_params);
ir                 58 drivers/media/pci/cx88/cx88-input.c 		printk(KERN_DEBUG "%s IR: " fmt, ir->core->name, ##arg);\
ir                 68 drivers/media/pci/cx88/cx88-input.c static void cx88_ir_handle_key(struct cx88_IR *ir)
ir                 70 drivers/media/pci/cx88/cx88-input.c 	struct cx88_core *core = ir->core;
ir                 74 drivers/media/pci/cx88/cx88-input.c 	gpio = cx_read(ir->gpio_addr);
ir                107 drivers/media/pci/cx88/cx88-input.c 	if (ir->polling) {
ir                108 drivers/media/pci/cx88/cx88-input.c 		if (ir->last_gpio == auxgpio)
ir                110 drivers/media/pci/cx88/cx88-input.c 		ir->last_gpio = auxgpio;
ir                114 drivers/media/pci/cx88/cx88-input.c 	data = ir_extract_bits(gpio, ir->mask_keycode);
ir                117 drivers/media/pci/cx88/cx88-input.c 		   ir->polling ? "poll" : "irq",
ir                118 drivers/media/pci/cx88/cx88-input.c 		   (gpio & ir->mask_keydown) ? " down" : "",
ir                119 drivers/media/pci/cx88/cx88-input.c 		   (gpio & ir->mask_keyup) ? " up" : "");
ir                121 drivers/media/pci/cx88/cx88-input.c 	if (ir->core->boardnr == CX88_BOARD_NORWOOD_MICRO) {
ir                126 drivers/media/pci/cx88/cx88-input.c 		rc_keydown(ir->dev, RC_PROTO_UNKNOWN, data, 0);
ir                128 drivers/media/pci/cx88/cx88-input.c 	} else if (ir->core->boardnr == CX88_BOARD_PROLINK_PLAYTVPVR ||
ir                129 drivers/media/pci/cx88/cx88-input.c 		   ir->core->boardnr == CX88_BOARD_PIXELVIEW_PLAYTV_ULTRA_PRO) {
ir                139 drivers/media/pci/cx88/cx88-input.c 		if (0 == (gpio & ir->mask_keyup))
ir                140 drivers/media/pci/cx88/cx88-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_NECX, scancode,
ir                143 drivers/media/pci/cx88/cx88-input.c 			rc_keyup(ir->dev);
ir                145 drivers/media/pci/cx88/cx88-input.c 	} else if (ir->mask_keydown) {
ir                147 drivers/media/pci/cx88/cx88-input.c 		if (gpio & ir->mask_keydown)
ir                148 drivers/media/pci/cx88/cx88-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data,
ir                151 drivers/media/pci/cx88/cx88-input.c 			rc_keyup(ir->dev);
ir                153 drivers/media/pci/cx88/cx88-input.c 	} else if (ir->mask_keyup) {
ir                155 drivers/media/pci/cx88/cx88-input.c 		if (0 == (gpio & ir->mask_keyup))
ir                156 drivers/media/pci/cx88/cx88-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data,
ir                159 drivers/media/pci/cx88/cx88-input.c 			rc_keyup(ir->dev);
ir                163 drivers/media/pci/cx88/cx88-input.c 		rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data, 0);
ir                164 drivers/media/pci/cx88/cx88-input.c 		rc_keyup(ir->dev);
ir                171 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir = container_of(timer, struct cx88_IR, timer);
ir                173 drivers/media/pci/cx88/cx88-input.c 	cx88_ir_handle_key(ir);
ir                174 drivers/media/pci/cx88/cx88-input.c 	missed = hrtimer_forward_now(&ir->timer,
ir                175 drivers/media/pci/cx88/cx88-input.c 				     ktime_set(0, ir->polling * 1000000));
ir                185 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir;
ir                187 drivers/media/pci/cx88/cx88-input.c 	if (!core || !core->ir)
ir                190 drivers/media/pci/cx88/cx88-input.c 	ir = core->ir;
ir                192 drivers/media/pci/cx88/cx88-input.c 	if (ir->polling) {
ir                193 drivers/media/pci/cx88/cx88-input.c 		hrtimer_init(&ir->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
ir                194 drivers/media/pci/cx88/cx88-input.c 		ir->timer.function = cx88_ir_work;
ir                195 drivers/media/pci/cx88/cx88-input.c 		hrtimer_start(&ir->timer,
ir                196 drivers/media/pci/cx88/cx88-input.c 			      ktime_set(0, ir->polling * 1000000),
ir                199 drivers/media/pci/cx88/cx88-input.c 	if (ir->sampling) {
ir                210 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir;
ir                212 drivers/media/pci/cx88/cx88-input.c 	if (!core || !core->ir)
ir                215 drivers/media/pci/cx88/cx88-input.c 	ir = core->ir;
ir                216 drivers/media/pci/cx88/cx88-input.c 	if (ir->sampling) {
ir                221 drivers/media/pci/cx88/cx88-input.c 	if (ir->polling)
ir                222 drivers/media/pci/cx88/cx88-input.c 		hrtimer_cancel(&ir->timer);
ir                227 drivers/media/pci/cx88/cx88-input.c 	if (core->ir->users)
ir                236 drivers/media/pci/cx88/cx88-input.c 	if (core->ir->users)
ir                245 drivers/media/pci/cx88/cx88-input.c 	core->ir->users++;
ir                253 drivers/media/pci/cx88/cx88-input.c 	core->ir->users--;
ir                254 drivers/media/pci/cx88/cx88-input.c 	if (!core->ir->users)
ir                262 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir;
ir                271 drivers/media/pci/cx88/cx88-input.c 	ir = kzalloc(sizeof(*ir), GFP_KERNEL);
ir                273 drivers/media/pci/cx88/cx88-input.c 	if (!ir || !dev)
ir                276 drivers/media/pci/cx88/cx88-input.c 	ir->dev = dev;
ir                284 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP1_IO;
ir                285 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x1f;
ir                286 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x60;
ir                287 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 50; /* ms */
ir                291 drivers/media/pci/cx88/cx88-input.c 		ir->sampling = 0xeb04; /* address */
ir                305 drivers/media/pci/cx88/cx88-input.c 		ir->sampling = 1;
ir                313 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP0_IO;
ir                314 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x8f8;
ir                315 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x100;
ir                316 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 50; /* ms */
ir                324 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP0_IO;
ir                325 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x8f8;
ir                326 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x100;
ir                327 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 1; /* ms */
ir                331 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP0_IO;
ir                332 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0xfd;
ir                333 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keydown = 0x02;
ir                334 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 5; /* ms */
ir                347 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP1_IO;
ir                348 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x80;
ir                349 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 10; /* ms */
ir                355 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP1_IO;
ir                356 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x3f;
ir                357 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x80;
ir                358 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 1; /* ms */
ir                362 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP1_IO;
ir                363 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x1f;
ir                364 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x60;
ir                365 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 1; /* ms */
ir                369 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP1_IO;
ir                370 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0xbf;
ir                371 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x40;
ir                372 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 50; /* ms */
ir                376 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr = MO_GP1_IO;
ir                377 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x1f;
ir                378 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup = 0x40;
ir                379 drivers/media/pci/cx88/cx88-input.c 		ir->polling = 1; /* ms */
ir                384 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr    = MO_GP2_IO;
ir                385 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0xfb;
ir                386 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keydown = 0x02;
ir                387 drivers/media/pci/cx88/cx88-input.c 		ir->polling      = 50; /* ms */
ir                397 drivers/media/pci/cx88/cx88-input.c 		ir->sampling = 0xff00; /* address */
ir                403 drivers/media/pci/cx88/cx88-input.c 		ir->sampling = 0xff00; /* address */
ir                407 drivers/media/pci/cx88/cx88-input.c 		ir->sampling     = 0xff00; /* address */
ir                411 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr    = MO_GP1_IO;
ir                412 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x0e;
ir                413 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keyup   = 0x80;
ir                414 drivers/media/pci/cx88/cx88-input.c 		ir->polling      = 50; /* ms */
ir                418 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr    = MO_GP0_IO;
ir                419 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0xfa;
ir                420 drivers/media/pci/cx88/cx88-input.c 		ir->polling      = 50; /* ms */
ir                424 drivers/media/pci/cx88/cx88-input.c 		ir->sampling     = 1;
ir                428 drivers/media/pci/cx88/cx88-input.c 		ir->gpio_addr    = MO_GP2_IO;
ir                429 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = 0x7e;
ir                430 drivers/media/pci/cx88/cx88-input.c 		ir->polling      = 100; /* ms */
ir                434 drivers/media/pci/cx88/cx88-input.c 		ir->sampling     = 0xff00; /* address */
ir                455 drivers/media/pci/cx88/cx88-input.c 	if (hardware_mask && !ir->mask_keycode)
ir                456 drivers/media/pci/cx88/cx88-input.c 		ir->mask_keycode = hardware_mask;
ir                459 drivers/media/pci/cx88/cx88-input.c 	snprintf(ir->name, sizeof(ir->name), "cx88 IR (%s)", core->board.name);
ir                460 drivers/media/pci/cx88/cx88-input.c 	snprintf(ir->phys, sizeof(ir->phys), "pci-%s/ir0", pci_name(pci));
ir                462 drivers/media/pci/cx88/cx88-input.c 	dev->device_name = ir->name;
ir                463 drivers/media/pci/cx88/cx88-input.c 	dev->input_phys = ir->phys;
ir                481 drivers/media/pci/cx88/cx88-input.c 	if (ir->sampling) {
ir                488 drivers/media/pci/cx88/cx88-input.c 	ir->core = core;
ir                489 drivers/media/pci/cx88/cx88-input.c 	core->ir = ir;
ir                500 drivers/media/pci/cx88/cx88-input.c 	core->ir = NULL;
ir                501 drivers/media/pci/cx88/cx88-input.c 	kfree(ir);
ir                507 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir = core->ir;
ir                510 drivers/media/pci/cx88/cx88-input.c 	if (!ir)
ir                514 drivers/media/pci/cx88/cx88-input.c 	rc_unregister_device(ir->dev);
ir                515 drivers/media/pci/cx88/cx88-input.c 	kfree(ir);
ir                518 drivers/media/pci/cx88/cx88-input.c 	core->ir = NULL;
ir                526 drivers/media/pci/cx88/cx88-input.c 	struct cx88_IR *ir = core->ir;
ir                531 drivers/media/pci/cx88/cx88-input.c 	if (!ir || !ir->sampling)
ir                541 drivers/media/pci/cx88/cx88-input.c 	if (samples == 0xff && ir->dev->idle)
ir                548 drivers/media/pci/cx88/cx88-input.c 		ir_raw_event_store_with_filter(ir->dev, &ev);
ir                551 drivers/media/pci/cx88/cx88-input.c 	ir_raw_event_handle(ir->dev);
ir                554 drivers/media/pci/cx88/cx88-input.c static int get_key_pvr2000(struct IR_i2c *ir, enum rc_proto *protocol,
ir                560 drivers/media/pci/cx88/cx88-input.c 	flags = i2c_smbus_read_byte_data(ir->c, 0x10);
ir                570 drivers/media/pci/cx88/cx88-input.c 	code = i2c_smbus_read_byte_data(ir->c, 0x00);
ir               1536 drivers/media/pci/cx88/cx88-video.c 	if (core->ir)
ir               1573 drivers/media/pci/cx88/cx88-video.c 	if (core->ir)
ir               1615 drivers/media/pci/cx88/cx88-video.c 	if (core->ir)
ir                389 drivers/media/pci/cx88/cx88.h 	struct cx88_IR             *ir;
ir                324 drivers/media/pci/dm1105/dm1105.c 	struct infrared ir;
ir                658 drivers/media/pci/dm1105/dm1105.c 	struct infrared *ir = container_of(work, struct infrared, work);
ir                659 drivers/media/pci/dm1105/dm1105.c 	u32 ircom = ir->ir_command;
ir                668 drivers/media/pci/dm1105/dm1105.c 	rc_keydown(ir->dev, RC_PROTO_UNKNOWN, data, 0);
ir                719 drivers/media/pci/dm1105/dm1105.c 		dev->ir.ir_command = dm_readl(DM1105_IRCODE);
ir                720 drivers/media/pci/dm1105/dm1105.c 		schedule_work(&dev->ir.work);
ir                736 drivers/media/pci/dm1105/dm1105.c 	snprintf(dm1105->ir.input_phys, sizeof(dm1105->ir.input_phys),
ir                742 drivers/media/pci/dm1105/dm1105.c 	dev->input_phys = dm1105->ir.input_phys;
ir                754 drivers/media/pci/dm1105/dm1105.c 	INIT_WORK(&dm1105->ir.work, dm1105_emit_key);
ir                762 drivers/media/pci/dm1105/dm1105.c 	dm1105->ir.dev = dev;
ir                768 drivers/media/pci/dm1105/dm1105.c 	rc_unregister_device(dm1105->ir.dev);
ir                137 drivers/media/pci/ivtv/ivtv-i2c.c static int get_key_adaptec(struct IR_i2c *ir, enum rc_proto *protocol,
ir                143 drivers/media/pci/ivtv/ivtv-i2c.c 	i2c_master_send(ir->c, keybuf, 1);
ir                145 drivers/media/pci/ivtv/ivtv-i2c.c 	if (i2c_master_recv(ir->c, keybuf, sizeof(keybuf)) != sizeof(keybuf)) {
ir                 34 drivers/media/pci/saa7134/saa7134-input.c #define ir_dbg(ir, fmt, arg...) do { \
ir                 36 drivers/media/pci/saa7134/saa7134-input.c 		printk(KERN_DEBUG pr_fmt("ir %s: " fmt), ir->rc->device_name, \
ir                 47 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_card_ir *ir = dev->remote;
ir                 62 drivers/media/pci/saa7134/saa7134-input.c 	if (ir->polling) {
ir                 63 drivers/media/pci/saa7134/saa7134-input.c 		if (ir->last_gpio == gpio)
ir                 65 drivers/media/pci/saa7134/saa7134-input.c 		ir->last_gpio = gpio;
ir                 68 drivers/media/pci/saa7134/saa7134-input.c 	data = ir_extract_bits(gpio, ir->mask_keycode);
ir                 70 drivers/media/pci/saa7134/saa7134-input.c 		gpio, ir->mask_keycode, data);
ir                 74 drivers/media/pci/saa7134/saa7134-input.c 		if (data == ir->mask_keycode)
ir                 75 drivers/media/pci/saa7134/saa7134-input.c 			rc_keyup(ir->dev);
ir                 77 drivers/media/pci/saa7134/saa7134-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data,
ir                 82 drivers/media/pci/saa7134/saa7134-input.c 	if (ir->polling) {
ir                 83 drivers/media/pci/saa7134/saa7134-input.c 		if ((ir->mask_keydown  &&  (0 != (gpio & ir->mask_keydown))) ||
ir                 84 drivers/media/pci/saa7134/saa7134-input.c 		    (ir->mask_keyup    &&  (0 == (gpio & ir->mask_keyup)))) {
ir                 85 drivers/media/pci/saa7134/saa7134-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data,
ir                 88 drivers/media/pci/saa7134/saa7134-input.c 			rc_keyup(ir->dev);
ir                 92 drivers/media/pci/saa7134/saa7134-input.c 		if ((ir->mask_keydown  &&  (0 != (gpio & ir->mask_keydown))) ||
ir                 93 drivers/media/pci/saa7134/saa7134-input.c 		    (ir->mask_keyup    &&  (0 == (gpio & ir->mask_keyup)))) {
ir                 94 drivers/media/pci/saa7134/saa7134-input.c 			rc_keydown_notimeout(ir->dev, RC_PROTO_UNKNOWN, data,
ir                 96 drivers/media/pci/saa7134/saa7134-input.c 			rc_keyup(ir->dev);
ir                105 drivers/media/pci/saa7134/saa7134-input.c static int get_key_flydvb_trio(struct IR_i2c *ir, enum rc_proto *protocol,
ir                113 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_dev *dev = ir->c->adapter->algo_data;
ir                116 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "get_key_flydvb_trio: ir->c->adapter->algo_data is NULL!\n");
ir                133 drivers/media/pci/saa7134/saa7134-input.c 	while (1 != i2c_master_send(ir->c, &b, 1)) {
ir                142 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "send wake up byte to pic16C505 (IR chip)failed %dx\n",
ir                146 drivers/media/pci/saa7134/saa7134-input.c 	rc = i2c_master_recv(ir->c, &b, 1);
ir                148 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "read error\n");
ir                160 drivers/media/pci/saa7134/saa7134-input.c static int get_key_msi_tvanywhere_plus(struct IR_i2c *ir,
ir                168 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_dev *dev = ir->c->adapter->algo_data;
ir                170 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "get_key_msi_tvanywhere_plus: ir->c->adapter->algo_data is NULL!\n");
ir                189 drivers/media/pci/saa7134/saa7134-input.c 	rc = i2c_master_recv(ir->c, &b, 1);
ir                191 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "read error\n");
ir                212 drivers/media/pci/saa7134/saa7134-input.c static int get_key_kworld_pc150u(struct IR_i2c *ir, enum rc_proto *protocol,
ir                220 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_dev *dev = ir->c->adapter->algo_data;
ir                222 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "get_key_kworld_pc150u: ir->c->adapter->algo_data is NULL!\n");
ir                241 drivers/media/pci/saa7134/saa7134-input.c 	rc = i2c_master_recv(ir->c, &b, 1);
ir                243 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "read error\n");
ir                263 drivers/media/pci/saa7134/saa7134-input.c static int get_key_purpletv(struct IR_i2c *ir, enum rc_proto *protocol,
ir                270 drivers/media/pci/saa7134/saa7134-input.c 	rc = i2c_master_recv(ir->c, &b, 1);
ir                272 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "read error\n");
ir                292 drivers/media/pci/saa7134/saa7134-input.c static int get_key_beholdm6xx(struct IR_i2c *ir, enum rc_proto *protocol,
ir                299 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_dev *dev = ir->c->adapter->algo_data;
ir                310 drivers/media/pci/saa7134/saa7134-input.c 	ir->c->addr = 0x5a >> 1;
ir                312 drivers/media/pci/saa7134/saa7134-input.c 	rc = i2c_master_recv(ir->c, data, 12);
ir                314 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "read error\n");
ir                332 drivers/media/pci/saa7134/saa7134-input.c static int get_key_pinnacle(struct IR_i2c *ir, enum rc_proto *protocol,
ir                341 drivers/media/pci/saa7134/saa7134-input.c 	rc = i2c_master_recv(ir->c, b, 4);
ir                343 drivers/media/pci/saa7134/saa7134-input.c 		ir_dbg(ir, "read error\n");
ir                361 drivers/media/pci/saa7134/saa7134-input.c 	if (ir->old == parity)
ir                364 drivers/media/pci/saa7134/saa7134-input.c 	ir->old = parity;
ir                377 drivers/media/pci/saa7134/saa7134-input.c 	ir_dbg(ir, "Pinnacle PCTV key %02x\n", code);
ir                390 drivers/media/pci/saa7134/saa7134-input.c static int get_key_pinnacle_grey(struct IR_i2c *ir, enum rc_proto *protocol,
ir                394 drivers/media/pci/saa7134/saa7134-input.c 	return get_key_pinnacle(ir, protocol, scancode, toggle, 1, 0xfe, 0xff);
ir                402 drivers/media/pci/saa7134/saa7134-input.c static int get_key_pinnacle_color(struct IR_i2c *ir, enum rc_proto *protocol,
ir                411 drivers/media/pci/saa7134/saa7134-input.c 	return get_key_pinnacle(ir, protocol, scancode, toggle, 2, 0x80, 0x88);
ir                416 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_card_ir *ir;
ir                421 drivers/media/pci/saa7134/saa7134-input.c 	ir = dev->remote;
ir                422 drivers/media/pci/saa7134/saa7134-input.c 	if (!ir->running)
ir                425 drivers/media/pci/saa7134/saa7134-input.c 	if (!ir->polling && !ir->raw_decode) {
ir                427 drivers/media/pci/saa7134/saa7134-input.c 	} else if (ir->raw_decode) {
ir                434 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_card_ir *ir = from_timer(ir, t, timer);
ir                435 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_dev *dev = ir->dev->priv;
ir                438 drivers/media/pci/saa7134/saa7134-input.c 	mod_timer(&ir->timer, jiffies + msecs_to_jiffies(ir->polling));
ir                444 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_card_ir *ir = dev->remote;
ir                482 drivers/media/pci/saa7134/saa7134-input.c 	ir->running = true;
ir                484 drivers/media/pci/saa7134/saa7134-input.c 	if (ir->polling) {
ir                485 drivers/media/pci/saa7134/saa7134-input.c 		timer_setup(&ir->timer, saa7134_input_timer, 0);
ir                486 drivers/media/pci/saa7134/saa7134-input.c 		ir->timer.expires = jiffies + HZ;
ir                487 drivers/media/pci/saa7134/saa7134-input.c 		add_timer(&ir->timer);
ir                496 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_card_ir *ir = dev->remote;
ir                498 drivers/media/pci/saa7134/saa7134-input.c 	if (ir->polling)
ir                499 drivers/media/pci/saa7134/saa7134-input.c 		del_timer_sync(&ir->timer);
ir                501 drivers/media/pci/saa7134/saa7134-input.c 	ir->running = false;
ir                506 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_card_ir *ir;
ir                771 drivers/media/pci/saa7134/saa7134-input.c 	ir = kzalloc(sizeof(*ir), GFP_KERNEL);
ir                773 drivers/media/pci/saa7134/saa7134-input.c 	if (!ir || !rc) {
ir                778 drivers/media/pci/saa7134/saa7134-input.c 	ir->dev = rc;
ir                779 drivers/media/pci/saa7134/saa7134-input.c 	dev->remote = ir;
ir                782 drivers/media/pci/saa7134/saa7134-input.c 	ir->mask_keycode = mask_keycode;
ir                783 drivers/media/pci/saa7134/saa7134-input.c 	ir->mask_keydown = mask_keydown;
ir                784 drivers/media/pci/saa7134/saa7134-input.c 	ir->mask_keyup   = mask_keyup;
ir                785 drivers/media/pci/saa7134/saa7134-input.c 	ir->polling      = polling;
ir                786 drivers/media/pci/saa7134/saa7134-input.c 	ir->raw_decode	 = raw_decode;
ir                789 drivers/media/pci/saa7134/saa7134-input.c 	snprintf(ir->phys, sizeof(ir->phys), "pci-%s/ir0",
ir                801 drivers/media/pci/saa7134/saa7134-input.c 	rc->input_phys = ir->phys;
ir                827 drivers/media/pci/saa7134/saa7134-input.c 	kfree(ir);
ir                990 drivers/media/pci/saa7134/saa7134-input.c 	struct saa7134_card_ir *ir = dev->remote;
ir                996 drivers/media/pci/saa7134/saa7134-input.c 	space = saa_readl(SAA7134_GPIO_GPSTATUS0 >> 2) & ir->mask_keydown;
ir                 13 drivers/media/pci/smipcie/smipcie-ir.c static void smi_ir_enableInterrupt(struct smi_rc *ir)
ir                 15 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_dev *dev = ir->dev;
ir                 20 drivers/media/pci/smipcie/smipcie-ir.c static void smi_ir_disableInterrupt(struct smi_rc *ir)
ir                 22 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_dev *dev = ir->dev;
ir                 27 drivers/media/pci/smipcie/smipcie-ir.c static void smi_ir_clearInterrupt(struct smi_rc *ir)
ir                 29 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_dev *dev = ir->dev;
ir                 34 drivers/media/pci/smipcie/smipcie-ir.c static void smi_ir_stop(struct smi_rc *ir)
ir                 36 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_dev *dev = ir->dev;
ir                 38 drivers/media/pci/smipcie/smipcie-ir.c 	smi_ir_disableInterrupt(ir);
ir                 59 drivers/media/pci/smipcie/smipcie-ir.c static void smi_ir_decode(struct smi_rc *ir)
ir                 61 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_dev *dev = ir->dev;
ir                 62 drivers/media/pci/smipcie/smipcie-ir.c 	struct rc_dev *rc_dev = ir->rc_dev;
ir                 77 drivers/media/pci/smipcie/smipcie-ir.c 			ir->irData[index*4 + 0] = (u8)(dwIRData);
ir                 78 drivers/media/pci/smipcie/smipcie-ir.c 			ir->irData[index*4 + 1] = (u8)(dwIRData >> 8);
ir                 79 drivers/media/pci/smipcie/smipcie-ir.c 			ir->irData[index*4 + 2] = (u8)(dwIRData >> 16);
ir                 80 drivers/media/pci/smipcie/smipcie-ir.c 			ir->irData[index*4 + 3] = (u8)(dwIRData >> 24);
ir                 82 drivers/media/pci/smipcie/smipcie-ir.c 		smi_raw_process(rc_dev, ir->irData, ucIRCount);
ir                100 drivers/media/pci/smipcie/smipcie-ir.c int smi_ir_irq(struct smi_rc *ir, u32 int_status)
ir                105 drivers/media/pci/smipcie/smipcie-ir.c 		smi_ir_disableInterrupt(ir);
ir                106 drivers/media/pci/smipcie/smipcie-ir.c 		smi_ir_clearInterrupt(ir);
ir                107 drivers/media/pci/smipcie/smipcie-ir.c 		smi_ir_decode(ir);
ir                108 drivers/media/pci/smipcie/smipcie-ir.c 		smi_ir_enableInterrupt(ir);
ir                114 drivers/media/pci/smipcie/smipcie-ir.c void smi_ir_start(struct smi_rc *ir)
ir                116 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_dev *dev = ir->dev;
ir                124 drivers/media/pci/smipcie/smipcie-ir.c 	smi_ir_enableInterrupt(ir);
ir                131 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_rc *ir = &dev->ir;
ir                138 drivers/media/pci/smipcie/smipcie-ir.c 	snprintf(ir->device_name, sizeof(ir->device_name), "IR (%s)",
ir                140 drivers/media/pci/smipcie/smipcie-ir.c 	snprintf(ir->input_phys, sizeof(ir->input_phys), "pci-%s/ir0",
ir                145 drivers/media/pci/smipcie/smipcie-ir.c 	rc_dev->input_phys = ir->input_phys;
ir                146 drivers/media/pci/smipcie/smipcie-ir.c 	rc_dev->device_name = ir->device_name;
ir                157 drivers/media/pci/smipcie/smipcie-ir.c 	ir->rc_dev = rc_dev;
ir                158 drivers/media/pci/smipcie/smipcie-ir.c 	ir->dev = dev;
ir                160 drivers/media/pci/smipcie/smipcie-ir.c 	smi_ir_disableInterrupt(ir);
ir                174 drivers/media/pci/smipcie/smipcie-ir.c 	struct smi_rc *ir = &dev->ir;
ir                175 drivers/media/pci/smipcie/smipcie-ir.c 	struct rc_dev *rc_dev = ir->rc_dev;
ir                177 drivers/media/pci/smipcie/smipcie-ir.c 	smi_ir_stop(ir);
ir                179 drivers/media/pci/smipcie/smipcie-ir.c 	ir->rc_dev = NULL;
ir                462 drivers/media/pci/smipcie/smipcie-main.c 	struct smi_rc *ir = &dev->ir;
ir                476 drivers/media/pci/smipcie/smipcie-main.c 	handled += smi_ir_irq(ir, intr_status);
ir               1008 drivers/media/pci/smipcie/smipcie-main.c 	smi_ir_start(&dev->ir);
ir                292 drivers/media/pci/smipcie/smipcie.h 	struct smi_rc ir;
ir                305 drivers/media/pci/smipcie/smipcie.h int smi_ir_irq(struct smi_rc *ir, u32 int_status);
ir                306 drivers/media/pci/smipcie/smipcie.h void smi_ir_start(struct smi_rc *ir);
ir                251 drivers/media/pci/ttpci/av7110.h 	struct infrared		ir;
ir                 23 drivers/media/pci/ttpci/av7110_ir.c 	struct rc_dev *rcdev = av7110->ir.rcdev;
ir                 31 drivers/media/pci/ttpci/av7110_ir.c 		switch (av7110->ir.ir_config) {
ir                 63 drivers/media/pci/ttpci/av7110_ir.c 				av7110->ir.ir_config);
ir                 73 drivers/media/pci/ttpci/av7110_ir.c 	dprintk(4, "ir config = %08x\n", av7110->ir.ir_config);
ir                 76 drivers/media/pci/ttpci/av7110_ir.c 			     av7110->ir.ir_config);
ir                 97 drivers/media/pci/ttpci/av7110_ir.c 	if (ir_config == av7110->ir.ir_config)
ir                100 drivers/media/pci/ttpci/av7110_ir.c 	av7110->ir.ir_config = ir_config;
ir                117 drivers/media/pci/ttpci/av7110_ir.c 	snprintf(av7110->ir.input_phys, sizeof(av7110->ir.input_phys),
ir                122 drivers/media/pci/ttpci/av7110_ir.c 	rcdev->input_phys = av7110->ir.input_phys;
ir                139 drivers/media/pci/ttpci/av7110_ir.c 	av7110->ir.rcdev = rcdev;
ir                140 drivers/media/pci/ttpci/av7110_ir.c 	av7110->ir.ir_config = IR_RC5;
ir                145 drivers/media/pci/ttpci/av7110_ir.c 		av7110->ir.rcdev = NULL;
ir                154 drivers/media/pci/ttpci/av7110_ir.c 	rc_unregister_device(av7110->ir.rcdev);
ir                 98 drivers/media/pci/ttpci/budget-ci.c 	struct budget_ci_ir ir;
ir                105 drivers/media/pci/ttpci/budget-ci.c 	struct rc_dev *dev = budget_ci->ir.dev;
ir                132 drivers/media/pci/ttpci/budget-ci.c 		budget_ci->ir.have_command = true;
ir                133 drivers/media/pci/ttpci/budget-ci.c 		budget_ci->ir.ir_key = command & 0x3f;
ir                138 drivers/media/pci/ttpci/budget-ci.c 	if (!budget_ci->ir.have_command)
ir                140 drivers/media/pci/ttpci/budget-ci.c 	budget_ci->ir.have_command = false;
ir                142 drivers/media/pci/ttpci/budget-ci.c 	if (budget_ci->ir.rc5_device != IR_DEVICE_ANY &&
ir                143 drivers/media/pci/ttpci/budget-ci.c 	    budget_ci->ir.rc5_device != (command & 0x1f))
ir                146 drivers/media/pci/ttpci/budget-ci.c 	if (budget_ci->ir.full_rc5) {
ir                148 drivers/media/pci/ttpci/budget-ci.c 			   RC_SCANCODE_RC5(budget_ci->ir.rc5_device, budget_ci->ir.ir_key),
ir                154 drivers/media/pci/ttpci/budget-ci.c 	rc_keydown(dev, RC_PROTO_UNKNOWN, budget_ci->ir.ir_key,
ir                170 drivers/media/pci/ttpci/budget-ci.c 	snprintf(budget_ci->ir.name, sizeof(budget_ci->ir.name),
ir                172 drivers/media/pci/ttpci/budget-ci.c 	snprintf(budget_ci->ir.phys, sizeof(budget_ci->ir.phys),
ir                176 drivers/media/pci/ttpci/budget-ci.c 	dev->device_name = budget_ci->ir.name;
ir                177 drivers/media/pci/ttpci/budget-ci.c 	dev->input_phys = budget_ci->ir.phys;
ir                190 drivers/media/pci/ttpci/budget-ci.c 		budget_ci->ir.rc5_device = IR_DEVICE_ANY;
ir                192 drivers/media/pci/ttpci/budget-ci.c 		budget_ci->ir.rc5_device = rc5_device;
ir                202 drivers/media/pci/ttpci/budget-ci.c 		budget_ci->ir.full_rc5 = true;
ir                205 drivers/media/pci/ttpci/budget-ci.c 			budget_ci->ir.rc5_device = 0x1f;
ir                220 drivers/media/pci/ttpci/budget-ci.c 	if (!budget_ci->ir.full_rc5)
ir                230 drivers/media/pci/ttpci/budget-ci.c 	budget_ci->ir.dev = dev;
ir                232 drivers/media/pci/ttpci/budget-ci.c 	tasklet_init(&budget_ci->ir.msp430_irq_tasklet, msp430_ir_interrupt,
ir                247 drivers/media/pci/ttpci/budget-ci.c 	tasklet_kill(&budget_ci->ir.msp430_irq_tasklet);
ir                249 drivers/media/pci/ttpci/budget-ci.c 	rc_unregister_device(budget_ci->ir.dev);
ir                560 drivers/media/pci/ttpci/budget-ci.c 		tasklet_schedule(&budget_ci->ir.msp430_irq_tasklet);
ir                 30 drivers/media/platform/seco-cec/seco-cec.c 	struct rc_dev *ir;
ir                355 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir = devm_rc_allocate_device(dev, RC_DRIVER_SCANCODE);
ir                356 drivers/media/platform/seco-cec/seco-cec.c 	if (!cec->ir)
ir                362 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->device_name = dev_name(dev);
ir                363 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->input_phys = cec->ir_input_phys;
ir                364 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->input_id.bustype = BUS_HOST;
ir                365 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->input_id.vendor = 0;
ir                366 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->input_id.product = 0;
ir                367 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->input_id.version = 1;
ir                368 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->driver_name = SECOCEC_DEV_NAME;
ir                369 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->allowed_protocols = RC_PROTO_BIT_RC5;
ir                370 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->priv = cec;
ir                371 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->map_name = RC_MAP_HAUPPAUGE;
ir                372 drivers/media/platform/seco-cec/seco-cec.c 	cec->ir->timeout = MS_TO_NS(100);
ir                395 drivers/media/platform/seco-cec/seco-cec.c 	status = devm_rc_register_device(dev, cec->ir);
ir                399 drivers/media/platform/seco-cec/seco-cec.c 		cec->ir = NULL;
ir                421 drivers/media/platform/seco-cec/seco-cec.c 	if (!cec->ir)
ir                432 drivers/media/platform/seco-cec/seco-cec.c 	rc_keydown(cec->ir, RC_PROTO_RC5, RC_SCANCODE_RC5(addr, key), toggle);
ir                689 drivers/media/platform/seco-cec/seco-cec.c 	if (secocec->ir) {
ir                 46 drivers/media/rc/igorplugusb.c static void igorplugusb_cmd(struct igorplugusb *ir, int cmd);
ir                 48 drivers/media/rc/igorplugusb.c static void igorplugusb_irdata(struct igorplugusb *ir, unsigned len)
ir                 53 drivers/media/rc/igorplugusb.c 	dev_dbg(ir->dev, "irdata: %*ph (len=%u)", len, ir->buf_in, len);
ir                 61 drivers/media/rc/igorplugusb.c 	overflow = ir->buf_in[2];
ir                 65 drivers/media/rc/igorplugusb.c 		dev_err(ir->dev, "receive overflow invalid: %u", overflow);
ir                 68 drivers/media/rc/igorplugusb.c 			dev_warn(ir->dev, "receive overflow, at least %u lost",
ir                 72 drivers/media/rc/igorplugusb.c 			rawir.duration = ir->buf_in[i] * 85333;
ir                 75 drivers/media/rc/igorplugusb.c 			ir_raw_event_store_with_filter(ir->rc, &rawir);
ir                 82 drivers/media/rc/igorplugusb.c 		rawir.duration = ir->rc->timeout;
ir                 84 drivers/media/rc/igorplugusb.c 		ir_raw_event_store_with_filter(ir->rc, &rawir);
ir                 86 drivers/media/rc/igorplugusb.c 		ir_raw_event_handle(ir->rc);
ir                 89 drivers/media/rc/igorplugusb.c 	igorplugusb_cmd(ir, SET_INFRABUFFER_EMPTY);
ir                 95 drivers/media/rc/igorplugusb.c 	struct igorplugusb *ir = urb->context;
ir                103 drivers/media/rc/igorplugusb.c 			igorplugusb_irdata(ir, urb->actual_length);
ir                105 drivers/media/rc/igorplugusb.c 			mod_timer(&ir->timer, jiffies + msecs_to_jiffies(50));
ir                114 drivers/media/rc/igorplugusb.c 		dev_warn(ir->dev, "Error: urb status = %d\n", urb->status);
ir                115 drivers/media/rc/igorplugusb.c 		igorplugusb_cmd(ir, SET_INFRABUFFER_EMPTY);
ir                120 drivers/media/rc/igorplugusb.c static void igorplugusb_cmd(struct igorplugusb *ir, int cmd)
ir                124 drivers/media/rc/igorplugusb.c 	ir->request.bRequest = cmd;
ir                125 drivers/media/rc/igorplugusb.c 	ir->urb->transfer_flags = 0;
ir                126 drivers/media/rc/igorplugusb.c 	ret = usb_submit_urb(ir->urb, GFP_ATOMIC);
ir                128 drivers/media/rc/igorplugusb.c 		dev_err(ir->dev, "submit urb failed: %d", ret);
ir                133 drivers/media/rc/igorplugusb.c 	struct igorplugusb *ir = from_timer(ir, t, timer);
ir                135 drivers/media/rc/igorplugusb.c 	igorplugusb_cmd(ir, GET_INFRACODE);
ir                144 drivers/media/rc/igorplugusb.c 	struct igorplugusb *ir;
ir                162 drivers/media/rc/igorplugusb.c 	ir = devm_kzalloc(&intf->dev, sizeof(*ir), GFP_KERNEL);
ir                163 drivers/media/rc/igorplugusb.c 	if (!ir)
ir                166 drivers/media/rc/igorplugusb.c 	ir->dev = &intf->dev;
ir                168 drivers/media/rc/igorplugusb.c 	timer_setup(&ir->timer, igorplugusb_timer, 0);
ir                170 drivers/media/rc/igorplugusb.c 	ir->request.bRequest = GET_INFRACODE;
ir                171 drivers/media/rc/igorplugusb.c 	ir->request.bRequestType = USB_TYPE_VENDOR | USB_DIR_IN;
ir                172 drivers/media/rc/igorplugusb.c 	ir->request.wLength = cpu_to_le16(sizeof(ir->buf_in));
ir                174 drivers/media/rc/igorplugusb.c 	ir->urb = usb_alloc_urb(0, GFP_KERNEL);
ir                175 drivers/media/rc/igorplugusb.c 	if (!ir->urb)
ir                178 drivers/media/rc/igorplugusb.c 	usb_fill_control_urb(ir->urb, udev,
ir                179 drivers/media/rc/igorplugusb.c 		usb_rcvctrlpipe(udev, 0), (uint8_t *)&ir->request,
ir                180 drivers/media/rc/igorplugusb.c 		ir->buf_in, sizeof(ir->buf_in), igorplugusb_callback, ir);
ir                182 drivers/media/rc/igorplugusb.c 	usb_make_path(udev, ir->phys, sizeof(ir->phys));
ir                189 drivers/media/rc/igorplugusb.c 	rc->input_phys = ir->phys;
ir                202 drivers/media/rc/igorplugusb.c 	rc->priv = ir;
ir                208 drivers/media/rc/igorplugusb.c 	ir->rc = rc;
ir                215 drivers/media/rc/igorplugusb.c 	usb_set_intfdata(intf, ir);
ir                217 drivers/media/rc/igorplugusb.c 	igorplugusb_cmd(ir, SET_INFRABUFFER_EMPTY);
ir                221 drivers/media/rc/igorplugusb.c 	rc_free_device(ir->rc);
ir                222 drivers/media/rc/igorplugusb.c 	usb_free_urb(ir->urb);
ir                223 drivers/media/rc/igorplugusb.c 	del_timer(&ir->timer);
ir                230 drivers/media/rc/igorplugusb.c 	struct igorplugusb *ir = usb_get_intfdata(intf);
ir                232 drivers/media/rc/igorplugusb.c 	rc_unregister_device(ir->rc);
ir                233 drivers/media/rc/igorplugusb.c 	del_timer_sync(&ir->timer);
ir                235 drivers/media/rc/igorplugusb.c 	usb_kill_urb(ir->urb);
ir                236 drivers/media/rc/igorplugusb.c 	usb_free_urb(ir->urb);
ir                 82 drivers/media/rc/iguanair.c static void process_ir_data(struct iguanair *ir, unsigned len)
ir                 84 drivers/media/rc/iguanair.c 	if (len >= 4 && ir->buf_in[0] == 0 && ir->buf_in[1] == 0) {
ir                 85 drivers/media/rc/iguanair.c 		switch (ir->buf_in[3]) {
ir                 88 drivers/media/rc/iguanair.c 				ir->version = (ir->buf_in[5] << 8) |
ir                 89 drivers/media/rc/iguanair.c 							ir->buf_in[4];
ir                 90 drivers/media/rc/iguanair.c 				complete(&ir->completion);
ir                 95 drivers/media/rc/iguanair.c 				ir->bufsize = ir->buf_in[4];
ir                 96 drivers/media/rc/iguanair.c 				complete(&ir->completion);
ir                101 drivers/media/rc/iguanair.c 				ir->cycle_overhead = ir->buf_in[5];
ir                102 drivers/media/rc/iguanair.c 				complete(&ir->completion);
ir                106 drivers/media/rc/iguanair.c 			ir->tx_overflow = true;
ir                111 drivers/media/rc/iguanair.c 			complete(&ir->completion);
ir                114 drivers/media/rc/iguanair.c 			dev_warn(ir->dev, "receive overflow\n");
ir                115 drivers/media/rc/iguanair.c 			ir_raw_event_reset(ir->rc);
ir                118 drivers/media/rc/iguanair.c 			dev_warn(ir->dev, "control code %02x received\n",
ir                119 drivers/media/rc/iguanair.c 							ir->buf_in[3]);
ir                128 drivers/media/rc/iguanair.c 			if (ir->buf_in[i] == 0x80) {
ir                132 drivers/media/rc/iguanair.c 				rawir.pulse = (ir->buf_in[i] & 0x80) == 0;
ir                133 drivers/media/rc/iguanair.c 				rawir.duration = ((ir->buf_in[i] & 0x7f) + 1) *
ir                137 drivers/media/rc/iguanair.c 			if (ir_raw_event_store_with_filter(ir->rc, &rawir))
ir                142 drivers/media/rc/iguanair.c 			ir_raw_event_handle(ir->rc);
ir                148 drivers/media/rc/iguanair.c 	struct iguanair *ir;
ir                154 drivers/media/rc/iguanair.c 	ir = urb->context;
ir                155 drivers/media/rc/iguanair.c 	if (!ir) {
ir                162 drivers/media/rc/iguanair.c 		process_ir_data(ir, urb->actual_length);
ir                171 drivers/media/rc/iguanair.c 		dev_dbg(ir->dev, "Error: urb status = %d\n", urb->status);
ir                177 drivers/media/rc/iguanair.c 		dev_warn(ir->dev, "failed to resubmit urb: %d\n", rc);
ir                182 drivers/media/rc/iguanair.c 	struct iguanair *ir = urb->context;
ir                185 drivers/media/rc/iguanair.c 		dev_dbg(ir->dev, "Error: out urb status = %d\n", urb->status);
ir                188 drivers/media/rc/iguanair.c 	if (urb->status == 0 && ir->packet->header.cmd == CMD_NOP)
ir                189 drivers/media/rc/iguanair.c 		complete(&ir->completion);
ir                192 drivers/media/rc/iguanair.c static int iguanair_send(struct iguanair *ir, unsigned size)
ir                196 drivers/media/rc/iguanair.c 	reinit_completion(&ir->completion);
ir                198 drivers/media/rc/iguanair.c 	ir->urb_out->transfer_buffer_length = size;
ir                199 drivers/media/rc/iguanair.c 	rc = usb_submit_urb(ir->urb_out, GFP_KERNEL);
ir                203 drivers/media/rc/iguanair.c 	if (wait_for_completion_timeout(&ir->completion, TIMEOUT) == 0)
ir                209 drivers/media/rc/iguanair.c static int iguanair_get_features(struct iguanair *ir)
ir                218 drivers/media/rc/iguanair.c 	ir->packet->header.start = 0;
ir                219 drivers/media/rc/iguanair.c 	ir->packet->header.direction = DIR_OUT;
ir                220 drivers/media/rc/iguanair.c 	ir->packet->header.cmd = CMD_NOP;
ir                221 drivers/media/rc/iguanair.c 	iguanair_send(ir, sizeof(ir->packet->header));
ir                223 drivers/media/rc/iguanair.c 	ir->packet->header.cmd = CMD_GET_VERSION;
ir                224 drivers/media/rc/iguanair.c 	rc = iguanair_send(ir, sizeof(ir->packet->header));
ir                226 drivers/media/rc/iguanair.c 		dev_info(ir->dev, "failed to get version\n");
ir                230 drivers/media/rc/iguanair.c 	if (ir->version < 0x205) {
ir                231 drivers/media/rc/iguanair.c 		dev_err(ir->dev, "firmware 0x%04x is too old\n", ir->version);
ir                236 drivers/media/rc/iguanair.c 	ir->bufsize = 150;
ir                237 drivers/media/rc/iguanair.c 	ir->cycle_overhead = 65;
ir                239 drivers/media/rc/iguanair.c 	ir->packet->header.cmd = CMD_GET_BUFSIZE;
ir                241 drivers/media/rc/iguanair.c 	rc = iguanair_send(ir, sizeof(ir->packet->header));
ir                243 drivers/media/rc/iguanair.c 		dev_info(ir->dev, "failed to get buffer size\n");
ir                247 drivers/media/rc/iguanair.c 	if (ir->bufsize > BUF_SIZE) {
ir                248 drivers/media/rc/iguanair.c 		dev_info(ir->dev, "buffer size %u larger than expected\n",
ir                249 drivers/media/rc/iguanair.c 								ir->bufsize);
ir                250 drivers/media/rc/iguanair.c 		ir->bufsize = BUF_SIZE;
ir                253 drivers/media/rc/iguanair.c 	ir->packet->header.cmd = CMD_GET_FEATURES;
ir                255 drivers/media/rc/iguanair.c 	rc = iguanair_send(ir, sizeof(ir->packet->header));
ir                257 drivers/media/rc/iguanair.c 		dev_info(ir->dev, "failed to get features\n");
ir                262 drivers/media/rc/iguanair.c static int iguanair_receiver(struct iguanair *ir, bool enable)
ir                264 drivers/media/rc/iguanair.c 	ir->packet->header.start = 0;
ir                265 drivers/media/rc/iguanair.c 	ir->packet->header.direction = DIR_OUT;
ir                266 drivers/media/rc/iguanair.c 	ir->packet->header.cmd = enable ? CMD_RECEIVER_ON : CMD_RECEIVER_OFF;
ir                269 drivers/media/rc/iguanair.c 		ir_raw_event_reset(ir->rc);
ir                271 drivers/media/rc/iguanair.c 	return iguanair_send(ir, sizeof(ir->packet->header));
ir                282 drivers/media/rc/iguanair.c 	struct iguanair *ir = dev->priv;
ir                287 drivers/media/rc/iguanair.c 	mutex_lock(&ir->lock);
ir                289 drivers/media/rc/iguanair.c 	if (carrier != ir->carrier) {
ir                292 drivers/media/rc/iguanair.c 		ir->carrier = carrier;
ir                295 drivers/media/rc/iguanair.c 							ir->cycle_overhead;
ir                313 drivers/media/rc/iguanair.c 		ir->packet->busy7 = (4 - sevens) * 2;
ir                314 drivers/media/rc/iguanair.c 		ir->packet->busy4 = 110 - fours;
ir                317 drivers/media/rc/iguanair.c 	mutex_unlock(&ir->lock);
ir                324 drivers/media/rc/iguanair.c 	struct iguanair *ir = dev->priv;
ir                329 drivers/media/rc/iguanair.c 	mutex_lock(&ir->lock);
ir                330 drivers/media/rc/iguanair.c 	ir->packet->channels = mask << 4;
ir                331 drivers/media/rc/iguanair.c 	mutex_unlock(&ir->lock);
ir                338 drivers/media/rc/iguanair.c 	struct iguanair *ir = dev->priv;
ir                342 drivers/media/rc/iguanair.c 	mutex_lock(&ir->lock);
ir                346 drivers/media/rc/iguanair.c 		periods = DIV_ROUND_CLOSEST(txbuf[i] * ir->carrier, 1000000);
ir                349 drivers/media/rc/iguanair.c 			if (size >= ir->bufsize) {
ir                353 drivers/media/rc/iguanair.c 			ir->packet->payload[size++] = p | ((i & 1) ? 0x80 : 0);
ir                358 drivers/media/rc/iguanair.c 	ir->packet->header.start = 0;
ir                359 drivers/media/rc/iguanair.c 	ir->packet->header.direction = DIR_OUT;
ir                360 drivers/media/rc/iguanair.c 	ir->packet->header.cmd = CMD_SEND;
ir                361 drivers/media/rc/iguanair.c 	ir->packet->length = size;
ir                363 drivers/media/rc/iguanair.c 	ir->tx_overflow = false;
ir                365 drivers/media/rc/iguanair.c 	rc = iguanair_send(ir, sizeof(*ir->packet) + size);
ir                367 drivers/media/rc/iguanair.c 	if (rc == 0 && ir->tx_overflow)
ir                371 drivers/media/rc/iguanair.c 	mutex_unlock(&ir->lock);
ir                378 drivers/media/rc/iguanair.c 	struct iguanair *ir = rdev->priv;
ir                381 drivers/media/rc/iguanair.c 	mutex_lock(&ir->lock);
ir                383 drivers/media/rc/iguanair.c 	rc = iguanair_receiver(ir, true);
ir                385 drivers/media/rc/iguanair.c 		ir->receiver_on = true;
ir                387 drivers/media/rc/iguanair.c 	mutex_unlock(&ir->lock);
ir                394 drivers/media/rc/iguanair.c 	struct iguanair *ir = rdev->priv;
ir                397 drivers/media/rc/iguanair.c 	mutex_lock(&ir->lock);
ir                399 drivers/media/rc/iguanair.c 	rc = iguanair_receiver(ir, false);
ir                400 drivers/media/rc/iguanair.c 	ir->receiver_on = false;
ir                402 drivers/media/rc/iguanair.c 		dev_warn(ir->dev, "failed to disable receiver: %d\n", rc);
ir                404 drivers/media/rc/iguanair.c 	mutex_unlock(&ir->lock);
ir                411 drivers/media/rc/iguanair.c 	struct iguanair *ir;
ir                420 drivers/media/rc/iguanair.c 	ir = kzalloc(sizeof(*ir), GFP_KERNEL);
ir                422 drivers/media/rc/iguanair.c 	if (!ir || !rc) {
ir                427 drivers/media/rc/iguanair.c 	ir->buf_in = usb_alloc_coherent(udev, MAX_IN_PACKET, GFP_KERNEL,
ir                428 drivers/media/rc/iguanair.c 								&ir->dma_in);
ir                429 drivers/media/rc/iguanair.c 	ir->packet = usb_alloc_coherent(udev, MAX_OUT_PACKET, GFP_KERNEL,
ir                430 drivers/media/rc/iguanair.c 								&ir->dma_out);
ir                431 drivers/media/rc/iguanair.c 	ir->urb_in = usb_alloc_urb(0, GFP_KERNEL);
ir                432 drivers/media/rc/iguanair.c 	ir->urb_out = usb_alloc_urb(0, GFP_KERNEL);
ir                434 drivers/media/rc/iguanair.c 	if (!ir->buf_in || !ir->packet || !ir->urb_in || !ir->urb_out ||
ir                441 drivers/media/rc/iguanair.c 	ir->rc = rc;
ir                442 drivers/media/rc/iguanair.c 	ir->dev = &intf->dev;
ir                443 drivers/media/rc/iguanair.c 	ir->udev = udev;
ir                444 drivers/media/rc/iguanair.c 	mutex_init(&ir->lock);
ir                446 drivers/media/rc/iguanair.c 	init_completion(&ir->completion);
ir                449 drivers/media/rc/iguanair.c 	usb_fill_int_urb(ir->urb_out, udev, pipeout, ir->packet, MAX_OUT_PACKET,
ir                450 drivers/media/rc/iguanair.c 						iguanair_irq_out, ir, 1);
ir                451 drivers/media/rc/iguanair.c 	ir->urb_out->transfer_dma = ir->dma_out;
ir                452 drivers/media/rc/iguanair.c 	ir->urb_out->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
ir                455 drivers/media/rc/iguanair.c 	usb_fill_int_urb(ir->urb_in, udev, pipein, ir->buf_in, MAX_IN_PACKET,
ir                456 drivers/media/rc/iguanair.c 							 iguanair_rx, ir, 1);
ir                457 drivers/media/rc/iguanair.c 	ir->urb_in->transfer_dma = ir->dma_in;
ir                458 drivers/media/rc/iguanair.c 	ir->urb_in->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
ir                460 drivers/media/rc/iguanair.c 	ret = usb_submit_urb(ir->urb_in, GFP_KERNEL);
ir                466 drivers/media/rc/iguanair.c 	ret = iguanair_get_features(ir);
ir                470 drivers/media/rc/iguanair.c 	snprintf(ir->name, sizeof(ir->name),
ir                471 drivers/media/rc/iguanair.c 		"IguanaWorks USB IR Transceiver version 0x%04x", ir->version);
ir                473 drivers/media/rc/iguanair.c 	usb_make_path(ir->udev, ir->phys, sizeof(ir->phys));
ir                475 drivers/media/rc/iguanair.c 	rc->device_name = ir->name;
ir                476 drivers/media/rc/iguanair.c 	rc->input_phys = ir->phys;
ir                477 drivers/media/rc/iguanair.c 	usb_to_input_id(ir->udev, &rc->input_id);
ir                480 drivers/media/rc/iguanair.c 	rc->priv = ir;
ir                502 drivers/media/rc/iguanair.c 	usb_set_intfdata(intf, ir);
ir                506 drivers/media/rc/iguanair.c 	usb_kill_urb(ir->urb_in);
ir                507 drivers/media/rc/iguanair.c 	usb_kill_urb(ir->urb_out);
ir                509 drivers/media/rc/iguanair.c 	if (ir) {
ir                510 drivers/media/rc/iguanair.c 		usb_free_urb(ir->urb_in);
ir                511 drivers/media/rc/iguanair.c 		usb_free_urb(ir->urb_out);
ir                512 drivers/media/rc/iguanair.c 		usb_free_coherent(udev, MAX_IN_PACKET, ir->buf_in, ir->dma_in);
ir                513 drivers/media/rc/iguanair.c 		usb_free_coherent(udev, MAX_OUT_PACKET, ir->packet,
ir                514 drivers/media/rc/iguanair.c 								ir->dma_out);
ir                517 drivers/media/rc/iguanair.c 	kfree(ir);
ir                523 drivers/media/rc/iguanair.c 	struct iguanair *ir = usb_get_intfdata(intf);
ir                525 drivers/media/rc/iguanair.c 	rc_unregister_device(ir->rc);
ir                527 drivers/media/rc/iguanair.c 	usb_kill_urb(ir->urb_in);
ir                528 drivers/media/rc/iguanair.c 	usb_kill_urb(ir->urb_out);
ir                529 drivers/media/rc/iguanair.c 	usb_free_urb(ir->urb_in);
ir                530 drivers/media/rc/iguanair.c 	usb_free_urb(ir->urb_out);
ir                531 drivers/media/rc/iguanair.c 	usb_free_coherent(ir->udev, MAX_IN_PACKET, ir->buf_in, ir->dma_in);
ir                532 drivers/media/rc/iguanair.c 	usb_free_coherent(ir->udev, MAX_OUT_PACKET, ir->packet, ir->dma_out);
ir                533 drivers/media/rc/iguanair.c 	kfree(ir);
ir                538 drivers/media/rc/iguanair.c 	struct iguanair *ir = usb_get_intfdata(intf);
ir                541 drivers/media/rc/iguanair.c 	mutex_lock(&ir->lock);
ir                543 drivers/media/rc/iguanair.c 	if (ir->receiver_on) {
ir                544 drivers/media/rc/iguanair.c 		rc = iguanair_receiver(ir, false);
ir                546 drivers/media/rc/iguanair.c 			dev_warn(ir->dev, "failed to disable receiver for suspend\n");
ir                549 drivers/media/rc/iguanair.c 	usb_kill_urb(ir->urb_in);
ir                550 drivers/media/rc/iguanair.c 	usb_kill_urb(ir->urb_out);
ir                552 drivers/media/rc/iguanair.c 	mutex_unlock(&ir->lock);
ir                559 drivers/media/rc/iguanair.c 	struct iguanair *ir = usb_get_intfdata(intf);
ir                562 drivers/media/rc/iguanair.c 	mutex_lock(&ir->lock);
ir                564 drivers/media/rc/iguanair.c 	rc = usb_submit_urb(ir->urb_in, GFP_KERNEL);
ir                568 drivers/media/rc/iguanair.c 	if (ir->receiver_on) {
ir                569 drivers/media/rc/iguanair.c 		rc = iguanair_receiver(ir, true);
ir                571 drivers/media/rc/iguanair.c 			dev_warn(ir->dev, "failed to enable receiver after resume\n");
ir                574 drivers/media/rc/iguanair.c 	mutex_unlock(&ir->lock);
ir                596 drivers/media/rc/mceusb.c static void mceusb_dev_printdata(struct mceusb_dev *ir, u8 *buf, int buf_len,
ir                602 drivers/media/rc/mceusb.c 	struct device *dev = ir->dev;
ir                619 drivers/media/rc/mceusb.c 	if (ir->flags.microsoft_gen1 && !out && !offset) {
ir                774 drivers/media/rc/mceusb.c static void mceusb_defer_kevent(struct mceusb_dev *ir, int kevent)
ir                776 drivers/media/rc/mceusb.c 	set_bit(kevent, &ir->kevent_flags);
ir                778 drivers/media/rc/mceusb.c 	if (test_bit(EVENT_RST_PEND, &ir->kevent_flags)) {
ir                779 drivers/media/rc/mceusb.c 		dev_dbg(ir->dev, "kevent %d dropped pending USB Reset Device",
ir                784 drivers/media/rc/mceusb.c 	if (!schedule_work(&ir->kevent))
ir                785 drivers/media/rc/mceusb.c 		dev_dbg(ir->dev, "kevent %d already scheduled", kevent);
ir                787 drivers/media/rc/mceusb.c 		dev_dbg(ir->dev, "kevent %d scheduled", kevent);
ir                804 drivers/media/rc/mceusb.c static int mce_write(struct mceusb_dev *ir, u8 *data, int size)
ir                808 drivers/media/rc/mceusb.c 	struct device *dev = ir->dev;
ir                814 drivers/media/rc/mceusb.c 	mceusb_dev_printdata(ir, data, size, 0, size, true);
ir                831 drivers/media/rc/mceusb.c 	if (usb_endpoint_xfer_int(ir->usb_ep_out))
ir                832 drivers/media/rc/mceusb.c 		usb_fill_int_urb(urb, ir->usbdev, ir->pipe_out,
ir                834 drivers/media/rc/mceusb.c 				 ir->usb_ep_out->bInterval);
ir                836 drivers/media/rc/mceusb.c 		usb_fill_bulk_urb(urb, ir->usbdev, ir->pipe_out,
ir                873 drivers/media/rc/mceusb.c 		dev_err(ir->dev, "Error: mce write urb status = %d (TX HALT)",
ir                875 drivers/media/rc/mceusb.c 		mceusb_defer_kevent(ir, EVENT_TX_HALT);
ir                879 drivers/media/rc/mceusb.c 		dev_err(ir->dev, "Error: mce write urb status = %d",
ir                894 drivers/media/rc/mceusb.c static void mce_command_out(struct mceusb_dev *ir, u8 *data, int size)
ir                898 drivers/media/rc/mceusb.c 	if (ir->need_reset) {
ir                899 drivers/media/rc/mceusb.c 		ir->need_reset = false;
ir                900 drivers/media/rc/mceusb.c 		mce_write(ir, DEVICE_RESUME, rsize);
ir                904 drivers/media/rc/mceusb.c 	mce_write(ir, data, size);
ir                927 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = dev->priv;
ir                935 drivers/media/rc/mceusb.c 	cmdbuf[2] = ir->tx_mask;
ir                936 drivers/media/rc/mceusb.c 	mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir                949 drivers/media/rc/mceusb.c 					ret = mce_write(ir, irbuf, ircount);
ir                980 drivers/media/rc/mceusb.c 				ret = mce_write(ir, irbuf, ircount);
ir                997 drivers/media/rc/mceusb.c 	ret = mce_write(ir, irbuf, ircount);
ir               1007 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = dev->priv;
ir               1010 drivers/media/rc/mceusb.c 	int emitters = ir->num_txports ? ir->num_txports : 2;
ir               1015 drivers/media/rc/mceusb.c 	if (ir->flags.tx_mask_normal)
ir               1016 drivers/media/rc/mceusb.c 		ir->tx_mask = mask;
ir               1018 drivers/media/rc/mceusb.c 		ir->tx_mask = (mask != MCE_DEFAULT_TX_MASK ?
ir               1027 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = dev->priv;
ir               1034 drivers/media/rc/mceusb.c 	if (ir->carrier != carrier) {
ir               1037 drivers/media/rc/mceusb.c 			ir->carrier = carrier;
ir               1040 drivers/media/rc/mceusb.c 			dev_dbg(ir->dev, "disabling carrier modulation");
ir               1041 drivers/media/rc/mceusb.c 			mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir               1048 drivers/media/rc/mceusb.c 				ir->carrier = carrier;
ir               1051 drivers/media/rc/mceusb.c 				dev_dbg(ir->dev, "requesting %u HZ carrier",
ir               1055 drivers/media/rc/mceusb.c 				mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir               1070 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = dev->priv;
ir               1078 drivers/media/rc/mceusb.c 	mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir               1081 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_RX_TIMEOUT, sizeof(GET_RX_TIMEOUT));
ir               1093 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = dev->priv;
ir               1097 drivers/media/rc/mceusb.c 	dev_dbg(ir->dev, "select %s-range receive sensor",
ir               1100 drivers/media/rc/mceusb.c 		ir->wideband_rx_enabled = true;
ir               1103 drivers/media/rc/mceusb.c 		ir->wideband_rx_enabled = false;
ir               1106 drivers/media/rc/mceusb.c 	mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir               1119 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = dev->priv;
ir               1123 drivers/media/rc/mceusb.c 	dev_dbg(ir->dev, "%s short-range receiver carrier reporting",
ir               1126 drivers/media/rc/mceusb.c 		ir->carrier_report_enabled = true;
ir               1127 drivers/media/rc/mceusb.c 		if (!ir->learning_active) {
ir               1129 drivers/media/rc/mceusb.c 			mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir               1132 drivers/media/rc/mceusb.c 		ir->carrier_report_enabled = false;
ir               1138 drivers/media/rc/mceusb.c 		if (ir->learning_active && !ir->wideband_rx_enabled) {
ir               1140 drivers/media/rc/mceusb.c 			mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir               1158 drivers/media/rc/mceusb.c static void mceusb_handle_command(struct mceusb_dev *ir, u8 *buf_in)
ir               1173 drivers/media/rc/mceusb.c 				ir->txports_cabled |= 1 << *hi;
ir               1178 drivers/media/rc/mceusb.c 			ir->emver = *hi;
ir               1183 drivers/media/rc/mceusb.c 			ir->need_reset = true;
ir               1199 drivers/media/rc/mceusb.c 		ir->rc->timeout = US_TO_NS((*hi << 8 | *lo) * MCE_TIME_UNIT);
ir               1202 drivers/media/rc/mceusb.c 		ir->num_txports = *hi;
ir               1203 drivers/media/rc/mceusb.c 		ir->num_rxports = *lo;
ir               1214 drivers/media/rc/mceusb.c 		if (ir->carrier_report_enabled && ir->learning_active &&
ir               1215 drivers/media/rc/mceusb.c 		    ir->pulse_tunit > 0) {
ir               1221 drivers/media/rc/mceusb.c 			cycles_fix = ir->flags.rx2 == 2 ? ir->pulse_count : 0;
ir               1225 drivers/media/rc/mceusb.c 					ir->pulse_tunit;
ir               1226 drivers/media/rc/mceusb.c 			dev_dbg(ir->dev, "RX carrier frequency %u Hz (pulse count = %u, cycles = %u, duration = %u, rx2 = %u)",
ir               1227 drivers/media/rc/mceusb.c 				rawir.carrier, ir->pulse_count, carrier_cycles,
ir               1228 drivers/media/rc/mceusb.c 				ir->pulse_tunit, ir->flags.rx2);
ir               1229 drivers/media/rc/mceusb.c 			ir_raw_event_store(ir->rc, &rawir);
ir               1235 drivers/media/rc/mceusb.c 		ir->tx_mask = *hi;
ir               1238 drivers/media/rc/mceusb.c 		ir->learning_active = ((*hi & 0x02) == 0x02);
ir               1239 drivers/media/rc/mceusb.c 		if (ir->rxports_active != *hi) {
ir               1240 drivers/media/rc/mceusb.c 			dev_info(ir->dev, "%s-range (0x%x) receiver active",
ir               1241 drivers/media/rc/mceusb.c 				 ir->learning_active ? "short" : "long", *hi);
ir               1242 drivers/media/rc/mceusb.c 			ir->rxports_active = *hi;
ir               1249 drivers/media/rc/mceusb.c 		ir->need_reset = true;
ir               1257 drivers/media/rc/mceusb.c static void mceusb_process_ir_data(struct mceusb_dev *ir, int buf_len)
ir               1264 drivers/media/rc/mceusb.c 	if (ir->flags.microsoft_gen1)
ir               1272 drivers/media/rc/mceusb.c 		switch (ir->parser_state) {
ir               1274 drivers/media/rc/mceusb.c 			ir->rem = mceusb_cmd_datasize(ir->cmd, ir->buf_in[i]);
ir               1275 drivers/media/rc/mceusb.c 			mceusb_dev_printdata(ir, ir->buf_in, buf_len, i - 1,
ir               1276 drivers/media/rc/mceusb.c 					     ir->rem + 2, false);
ir               1277 drivers/media/rc/mceusb.c 			if (i + ir->rem < buf_len)
ir               1278 drivers/media/rc/mceusb.c 				mceusb_handle_command(ir, &ir->buf_in[i - 1]);
ir               1279 drivers/media/rc/mceusb.c 			ir->parser_state = CMD_DATA;
ir               1282 drivers/media/rc/mceusb.c 			ir->rem--;
ir               1283 drivers/media/rc/mceusb.c 			rawir.pulse = ((ir->buf_in[i] & MCE_PULSE_BIT) != 0);
ir               1284 drivers/media/rc/mceusb.c 			rawir.duration = (ir->buf_in[i] & MCE_PULSE_MASK);
ir               1286 drivers/media/rc/mceusb.c 				dev_dbg(ir->dev, "nonsensical irdata %02x with duration 0",
ir               1287 drivers/media/rc/mceusb.c 					ir->buf_in[i]);
ir               1291 drivers/media/rc/mceusb.c 				ir->pulse_tunit += rawir.duration;
ir               1292 drivers/media/rc/mceusb.c 				ir->pulse_count++;
ir               1296 drivers/media/rc/mceusb.c 			dev_dbg(ir->dev, "Storing %s %u ns (%02x)",
ir               1298 drivers/media/rc/mceusb.c 				rawir.duration,	ir->buf_in[i]);
ir               1300 drivers/media/rc/mceusb.c 			if (ir_raw_event_store_with_filter(ir->rc, &rawir))
ir               1304 drivers/media/rc/mceusb.c 			ir->rem--;
ir               1307 drivers/media/rc/mceusb.c 			ir->cmd = ir->buf_in[i];
ir               1308 drivers/media/rc/mceusb.c 			if ((ir->cmd == MCE_CMD_PORT_IR) ||
ir               1309 drivers/media/rc/mceusb.c 			    ((ir->cmd & MCE_PORT_MASK) !=
ir               1315 drivers/media/rc/mceusb.c 				ir->parser_state = SUBCMD;
ir               1323 drivers/media/rc/mceusb.c 			ir->rem = (ir->cmd & MCE_PACKET_LENGTH_MASK);
ir               1324 drivers/media/rc/mceusb.c 			mceusb_dev_printdata(ir, ir->buf_in, buf_len,
ir               1325 drivers/media/rc/mceusb.c 					     i, ir->rem + 1, false);
ir               1326 drivers/media/rc/mceusb.c 			if (ir->rem) {
ir               1327 drivers/media/rc/mceusb.c 				ir->parser_state = PARSE_IRDATA;
ir               1331 drivers/media/rc/mceusb.c 					.duration = ir->rc->timeout
ir               1334 drivers/media/rc/mceusb.c 				if (ir_raw_event_store_with_filter(ir->rc,
ir               1337 drivers/media/rc/mceusb.c 				ir->pulse_tunit = 0;
ir               1338 drivers/media/rc/mceusb.c 				ir->pulse_count = 0;
ir               1343 drivers/media/rc/mceusb.c 		if (ir->parser_state != CMD_HEADER && !ir->rem)
ir               1344 drivers/media/rc/mceusb.c 			ir->parser_state = CMD_HEADER;
ir               1351 drivers/media/rc/mceusb.c 	if (ir->parser_state != PARSE_IRDATA || !ir->rem)
ir               1352 drivers/media/rc/mceusb.c 		ir->parser_state = CMD_HEADER;
ir               1355 drivers/media/rc/mceusb.c 		dev_dbg(ir->dev, "processed IR data");
ir               1356 drivers/media/rc/mceusb.c 		ir_raw_event_handle(ir->rc);
ir               1362 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir;
ir               1367 drivers/media/rc/mceusb.c 	ir = urb->context;
ir               1368 drivers/media/rc/mceusb.c 	if (!ir) {
ir               1376 drivers/media/rc/mceusb.c 		mceusb_process_ir_data(ir, urb->actual_length);
ir               1387 drivers/media/rc/mceusb.c 		dev_err(ir->dev, "Error: urb status = %d (RX HALT)",
ir               1389 drivers/media/rc/mceusb.c 		mceusb_defer_kevent(ir, EVENT_RX_HALT);
ir               1393 drivers/media/rc/mceusb.c 		dev_err(ir->dev, "Error: urb status = %d", urb->status);
ir               1400 drivers/media/rc/mceusb.c static void mceusb_get_emulator_version(struct mceusb_dev *ir)
ir               1403 drivers/media/rc/mceusb.c 	ir->emver = 1;
ir               1404 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_EMVER, sizeof(GET_EMVER));
ir               1407 drivers/media/rc/mceusb.c static void mceusb_gen1_init(struct mceusb_dev *ir)
ir               1410 drivers/media/rc/mceusb.c 	struct device *dev = ir->dev;
ir               1423 drivers/media/rc/mceusb.c 	ret = usb_control_msg(ir->usbdev, usb_rcvctrlpipe(ir->usbdev, 0),
ir               1431 drivers/media/rc/mceusb.c 	ret = usb_control_msg(ir->usbdev, usb_sndctrlpipe(ir->usbdev, 0),
ir               1438 drivers/media/rc/mceusb.c 	ret = usb_control_msg(ir->usbdev, usb_sndctrlpipe(ir->usbdev, 0),
ir               1444 drivers/media/rc/mceusb.c 	ret = usb_control_msg(ir->usbdev, usb_sndctrlpipe(ir->usbdev, 0),
ir               1450 drivers/media/rc/mceusb.c 	mce_command_out(ir, DEVICE_RESUME, sizeof(DEVICE_RESUME));
ir               1453 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_REVISION, sizeof(GET_REVISION));
ir               1458 drivers/media/rc/mceusb.c static void mceusb_gen2_init(struct mceusb_dev *ir)
ir               1461 drivers/media/rc/mceusb.c 	mce_command_out(ir, DEVICE_RESUME, sizeof(DEVICE_RESUME));
ir               1464 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_WAKEVERSION, sizeof(GET_WAKEVERSION));
ir               1467 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_UNKNOWN2, sizeof(GET_UNKNOWN2));
ir               1470 drivers/media/rc/mceusb.c static void mceusb_get_parameters(struct mceusb_dev *ir)
ir               1477 drivers/media/rc/mceusb.c 	ir->num_txports = 2;
ir               1478 drivers/media/rc/mceusb.c 	ir->num_rxports = 2;
ir               1481 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_NUM_PORTS, sizeof(GET_NUM_PORTS));
ir               1484 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_CARRIER_FREQ, sizeof(GET_CARRIER_FREQ));
ir               1486 drivers/media/rc/mceusb.c 	if (ir->num_txports && !ir->flags.no_tx)
ir               1488 drivers/media/rc/mceusb.c 		mce_command_out(ir, GET_TX_BITMASK, sizeof(GET_TX_BITMASK));
ir               1491 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_RX_TIMEOUT, sizeof(GET_RX_TIMEOUT));
ir               1494 drivers/media/rc/mceusb.c 	mce_command_out(ir, GET_RX_SENSOR, sizeof(GET_RX_SENSOR));
ir               1496 drivers/media/rc/mceusb.c 	for (i = 0; i < ir->num_txports; i++) {
ir               1498 drivers/media/rc/mceusb.c 		mce_command_out(ir, cmdbuf, sizeof(cmdbuf));
ir               1502 drivers/media/rc/mceusb.c static void mceusb_flash_led(struct mceusb_dev *ir)
ir               1504 drivers/media/rc/mceusb.c 	if (ir->emver < 2)
ir               1507 drivers/media/rc/mceusb.c 	mce_command_out(ir, FLASH_LED, sizeof(FLASH_LED));
ir               1519 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir =
ir               1523 drivers/media/rc/mceusb.c 	dev_err(ir->dev, "kevent handler called (flags 0x%lx)",
ir               1524 drivers/media/rc/mceusb.c 		ir->kevent_flags);
ir               1526 drivers/media/rc/mceusb.c 	if (test_bit(EVENT_RST_PEND, &ir->kevent_flags)) {
ir               1527 drivers/media/rc/mceusb.c 		dev_err(ir->dev, "kevent handler canceled pending USB Reset Device");
ir               1531 drivers/media/rc/mceusb.c 	if (test_bit(EVENT_RX_HALT, &ir->kevent_flags)) {
ir               1532 drivers/media/rc/mceusb.c 		usb_unlink_urb(ir->urb_in);
ir               1533 drivers/media/rc/mceusb.c 		status = usb_clear_halt(ir->usbdev, ir->pipe_in);
ir               1534 drivers/media/rc/mceusb.c 		dev_err(ir->dev, "rx clear halt status = %d", status);
ir               1540 drivers/media/rc/mceusb.c 			dev_err(ir->dev,
ir               1542 drivers/media/rc/mceusb.c 			usb_queue_reset_device(ir->usbintf);
ir               1543 drivers/media/rc/mceusb.c 			set_bit(EVENT_RST_PEND, &ir->kevent_flags);
ir               1544 drivers/media/rc/mceusb.c 			clear_bit(EVENT_RX_HALT, &ir->kevent_flags);
ir               1547 drivers/media/rc/mceusb.c 			clear_bit(EVENT_TX_HALT, &ir->kevent_flags);
ir               1550 drivers/media/rc/mceusb.c 		clear_bit(EVENT_RX_HALT, &ir->kevent_flags);
ir               1551 drivers/media/rc/mceusb.c 		status = usb_submit_urb(ir->urb_in, GFP_KERNEL);
ir               1553 drivers/media/rc/mceusb.c 			dev_err(ir->dev, "rx unhalt submit urb error = %d",
ir               1558 drivers/media/rc/mceusb.c 	if (test_bit(EVENT_TX_HALT, &ir->kevent_flags)) {
ir               1559 drivers/media/rc/mceusb.c 		status = usb_clear_halt(ir->usbdev, ir->pipe_out);
ir               1560 drivers/media/rc/mceusb.c 		dev_err(ir->dev, "tx clear halt status = %d", status);
ir               1566 drivers/media/rc/mceusb.c 			dev_err(ir->dev,
ir               1568 drivers/media/rc/mceusb.c 			usb_queue_reset_device(ir->usbintf);
ir               1569 drivers/media/rc/mceusb.c 			set_bit(EVENT_RST_PEND, &ir->kevent_flags);
ir               1570 drivers/media/rc/mceusb.c 			clear_bit(EVENT_TX_HALT, &ir->kevent_flags);
ir               1573 drivers/media/rc/mceusb.c 			clear_bit(EVENT_RX_HALT, &ir->kevent_flags);
ir               1576 drivers/media/rc/mceusb.c 		clear_bit(EVENT_TX_HALT, &ir->kevent_flags);
ir               1580 drivers/media/rc/mceusb.c static struct rc_dev *mceusb_init_rc_dev(struct mceusb_dev *ir)
ir               1582 drivers/media/rc/mceusb.c 	struct usb_device *udev = ir->usbdev;
ir               1583 drivers/media/rc/mceusb.c 	struct device *dev = ir->dev;
ir               1593 drivers/media/rc/mceusb.c 	snprintf(ir->name, sizeof(ir->name), "%s (%04x:%04x)",
ir               1594 drivers/media/rc/mceusb.c 		 mceusb_model[ir->model].name ?
ir               1595 drivers/media/rc/mceusb.c 			mceusb_model[ir->model].name :
ir               1597 drivers/media/rc/mceusb.c 		 le16_to_cpu(ir->usbdev->descriptor.idVendor),
ir               1598 drivers/media/rc/mceusb.c 		 le16_to_cpu(ir->usbdev->descriptor.idProduct));
ir               1600 drivers/media/rc/mceusb.c 	usb_make_path(ir->usbdev, ir->phys, sizeof(ir->phys));
ir               1602 drivers/media/rc/mceusb.c 	rc->device_name = ir->name;
ir               1603 drivers/media/rc/mceusb.c 	rc->input_phys = ir->phys;
ir               1604 drivers/media/rc/mceusb.c 	usb_to_input_id(ir->usbdev, &rc->input_id);
ir               1606 drivers/media/rc/mceusb.c 	rc->priv = ir;
ir               1610 drivers/media/rc/mceusb.c 	if (!mceusb_model[ir->model].broken_irtimeout) {
ir               1620 drivers/media/rc/mceusb.c 	if (!ir->flags.no_tx) {
ir               1625 drivers/media/rc/mceusb.c 	if (ir->flags.rx2 > 0) {
ir               1641 drivers/media/rc/mceusb.c 	if (mceusb_model[ir->model].rc_map)
ir               1642 drivers/media/rc/mceusb.c 		rc->map_name = mceusb_model[ir->model].rc_map;
ir               1665 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = NULL;
ir               1724 drivers/media/rc/mceusb.c 	ir = kzalloc(sizeof(struct mceusb_dev), GFP_KERNEL);
ir               1725 drivers/media/rc/mceusb.c 	if (!ir)
ir               1728 drivers/media/rc/mceusb.c 	ir->pipe_in = pipe;
ir               1729 drivers/media/rc/mceusb.c 	ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in);
ir               1730 drivers/media/rc/mceusb.c 	if (!ir->buf_in)
ir               1733 drivers/media/rc/mceusb.c 	ir->urb_in = usb_alloc_urb(0, GFP_KERNEL);
ir               1734 drivers/media/rc/mceusb.c 	if (!ir->urb_in)
ir               1737 drivers/media/rc/mceusb.c 	ir->usbintf = intf;
ir               1738 drivers/media/rc/mceusb.c 	ir->usbdev = usb_get_dev(dev);
ir               1739 drivers/media/rc/mceusb.c 	ir->dev = &intf->dev;
ir               1740 drivers/media/rc/mceusb.c 	ir->len_in = maxp;
ir               1741 drivers/media/rc/mceusb.c 	ir->flags.microsoft_gen1 = is_microsoft_gen1;
ir               1742 drivers/media/rc/mceusb.c 	ir->flags.tx_mask_normal = tx_mask_normal;
ir               1743 drivers/media/rc/mceusb.c 	ir->flags.no_tx = mceusb_model[model].no_tx;
ir               1744 drivers/media/rc/mceusb.c 	ir->flags.rx2 = mceusb_model[model].rx2;
ir               1745 drivers/media/rc/mceusb.c 	ir->model = model;
ir               1748 drivers/media/rc/mceusb.c 	ir->usb_ep_out = ep_out;
ir               1750 drivers/media/rc/mceusb.c 		ir->pipe_out = usb_sndintpipe(ir->usbdev,
ir               1753 drivers/media/rc/mceusb.c 		ir->pipe_out = usb_sndbulkpipe(ir->usbdev,
ir               1770 drivers/media/rc/mceusb.c 	INIT_WORK(&ir->kevent, mceusb_deferred_kevent);
ir               1772 drivers/media/rc/mceusb.c 	ir->rc = mceusb_init_rc_dev(ir);
ir               1773 drivers/media/rc/mceusb.c 	if (!ir->rc)
ir               1778 drivers/media/rc/mceusb.c 		usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp,
ir               1779 drivers/media/rc/mceusb.c 				 mceusb_dev_recv, ir, ep_in->bInterval);
ir               1781 drivers/media/rc/mceusb.c 		usb_fill_bulk_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp,
ir               1782 drivers/media/rc/mceusb.c 				  mceusb_dev_recv, ir);
ir               1784 drivers/media/rc/mceusb.c 	ir->urb_in->transfer_dma = ir->dma_in;
ir               1785 drivers/media/rc/mceusb.c 	ir->urb_in->transfer_flags |= URB_NO_TRANSFER_DMA_MAP;
ir               1789 drivers/media/rc/mceusb.c 	res = usb_submit_urb(ir->urb_in, GFP_KERNEL);
ir               1794 drivers/media/rc/mceusb.c 	mceusb_get_emulator_version(ir);
ir               1797 drivers/media/rc/mceusb.c 	if (ir->flags.microsoft_gen1)
ir               1798 drivers/media/rc/mceusb.c 		mceusb_gen1_init(ir);
ir               1800 drivers/media/rc/mceusb.c 		mceusb_gen2_init(ir);
ir               1802 drivers/media/rc/mceusb.c 	mceusb_get_parameters(ir);
ir               1804 drivers/media/rc/mceusb.c 	mceusb_flash_led(ir);
ir               1806 drivers/media/rc/mceusb.c 	if (!ir->flags.no_tx)
ir               1807 drivers/media/rc/mceusb.c 		mceusb_set_tx_mask(ir->rc, MCE_DEFAULT_TX_MASK);
ir               1809 drivers/media/rc/mceusb.c 	usb_set_intfdata(intf, ir);
ir               1812 drivers/media/rc/mceusb.c 	device_set_wakeup_capable(ir->dev, true);
ir               1813 drivers/media/rc/mceusb.c 	device_set_wakeup_enable(ir->dev, true);
ir               1816 drivers/media/rc/mceusb.c 		name, ir->emver);
ir               1818 drivers/media/rc/mceusb.c 		 ir->num_txports, ir->txports_cabled,
ir               1819 drivers/media/rc/mceusb.c 		 ir->num_rxports, ir->rxports_active);
ir               1825 drivers/media/rc/mceusb.c 	cancel_work_sync(&ir->kevent);
ir               1826 drivers/media/rc/mceusb.c 	usb_put_dev(ir->usbdev);
ir               1827 drivers/media/rc/mceusb.c 	usb_kill_urb(ir->urb_in);
ir               1828 drivers/media/rc/mceusb.c 	usb_free_urb(ir->urb_in);
ir               1830 drivers/media/rc/mceusb.c 	usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in);
ir               1832 drivers/media/rc/mceusb.c 	kfree(ir);
ir               1843 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = usb_get_intfdata(intf);
ir               1849 drivers/media/rc/mceusb.c 	if (!ir)
ir               1852 drivers/media/rc/mceusb.c 	ir->usbdev = NULL;
ir               1853 drivers/media/rc/mceusb.c 	cancel_work_sync(&ir->kevent);
ir               1854 drivers/media/rc/mceusb.c 	rc_unregister_device(ir->rc);
ir               1855 drivers/media/rc/mceusb.c 	usb_kill_urb(ir->urb_in);
ir               1856 drivers/media/rc/mceusb.c 	usb_free_urb(ir->urb_in);
ir               1857 drivers/media/rc/mceusb.c 	usb_free_coherent(dev, ir->len_in, ir->buf_in, ir->dma_in);
ir               1860 drivers/media/rc/mceusb.c 	kfree(ir);
ir               1865 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = usb_get_intfdata(intf);
ir               1866 drivers/media/rc/mceusb.c 	dev_info(ir->dev, "suspend");
ir               1867 drivers/media/rc/mceusb.c 	usb_kill_urb(ir->urb_in);
ir               1873 drivers/media/rc/mceusb.c 	struct mceusb_dev *ir = usb_get_intfdata(intf);
ir               1874 drivers/media/rc/mceusb.c 	dev_info(ir->dev, "resume");
ir               1875 drivers/media/rc/mceusb.c 	if (usb_submit_urb(ir->urb_in, GFP_ATOMIC))
ir                 68 drivers/media/rc/meson-ir.c static void meson_ir_set_mask(struct meson_ir *ir, unsigned int reg,
ir                 73 drivers/media/rc/meson-ir.c 	data = readl(ir->reg + reg);
ir                 76 drivers/media/rc/meson-ir.c 	writel(data, ir->reg + reg);
ir                 81 drivers/media/rc/meson-ir.c 	struct meson_ir *ir = dev_id;
ir                 85 drivers/media/rc/meson-ir.c 	spin_lock(&ir->lock);
ir                 87 drivers/media/rc/meson-ir.c 	duration = readl_relaxed(ir->reg + IR_DEC_REG1);
ir                 91 drivers/media/rc/meson-ir.c 	status = readl_relaxed(ir->reg + IR_DEC_STATUS);
ir                 94 drivers/media/rc/meson-ir.c 	ir_raw_event_store_with_timeout(ir->rc, &rawir);
ir                 96 drivers/media/rc/meson-ir.c 	spin_unlock(&ir->lock);
ir                107 drivers/media/rc/meson-ir.c 	struct meson_ir *ir;
ir                110 drivers/media/rc/meson-ir.c 	ir = devm_kzalloc(dev, sizeof(struct meson_ir), GFP_KERNEL);
ir                111 drivers/media/rc/meson-ir.c 	if (!ir)
ir                115 drivers/media/rc/meson-ir.c 	ir->reg = devm_ioremap_resource(dev, res);
ir                116 drivers/media/rc/meson-ir.c 	if (IS_ERR(ir->reg))
ir                117 drivers/media/rc/meson-ir.c 		return PTR_ERR(ir->reg);
ir                123 drivers/media/rc/meson-ir.c 	ir->rc = devm_rc_allocate_device(dev, RC_DRIVER_IR_RAW);
ir                124 drivers/media/rc/meson-ir.c 	if (!ir->rc) {
ir                129 drivers/media/rc/meson-ir.c 	ir->rc->priv = ir;
ir                130 drivers/media/rc/meson-ir.c 	ir->rc->device_name = DRIVER_NAME;
ir                131 drivers/media/rc/meson-ir.c 	ir->rc->input_phys = DRIVER_NAME "/input0";
ir                132 drivers/media/rc/meson-ir.c 	ir->rc->input_id.bustype = BUS_HOST;
ir                134 drivers/media/rc/meson-ir.c 	ir->rc->map_name = map_name ? map_name : RC_MAP_EMPTY;
ir                135 drivers/media/rc/meson-ir.c 	ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
ir                136 drivers/media/rc/meson-ir.c 	ir->rc->rx_resolution = US_TO_NS(MESON_TRATE);
ir                137 drivers/media/rc/meson-ir.c 	ir->rc->min_timeout = 1;
ir                138 drivers/media/rc/meson-ir.c 	ir->rc->timeout = IR_DEFAULT_TIMEOUT;
ir                139 drivers/media/rc/meson-ir.c 	ir->rc->max_timeout = 10 * IR_DEFAULT_TIMEOUT;
ir                140 drivers/media/rc/meson-ir.c 	ir->rc->driver_name = DRIVER_NAME;
ir                142 drivers/media/rc/meson-ir.c 	spin_lock_init(&ir->lock);
ir                143 drivers/media/rc/meson-ir.c 	platform_set_drvdata(pdev, ir);
ir                145 drivers/media/rc/meson-ir.c 	ret = devm_rc_register_device(dev, ir->rc);
ir                151 drivers/media/rc/meson-ir.c 	ret = devm_request_irq(dev, irq, meson_ir_irq, 0, NULL, ir);
ir                158 drivers/media/rc/meson-ir.c 	meson_ir_set_mask(ir, IR_DEC_REG1, REG1_RESET, REG1_RESET);
ir                159 drivers/media/rc/meson-ir.c 	meson_ir_set_mask(ir, IR_DEC_REG1, REG1_RESET, 0);
ir                163 drivers/media/rc/meson-ir.c 		meson_ir_set_mask(ir, IR_DEC_REG1, REG1_MODE_MASK,
ir                166 drivers/media/rc/meson-ir.c 		meson_ir_set_mask(ir, IR_DEC_REG2, REG2_MODE_MASK,
ir                170 drivers/media/rc/meson-ir.c 	meson_ir_set_mask(ir, IR_DEC_REG0, REG0_RATE_MASK, MESON_TRATE - 1);
ir                172 drivers/media/rc/meson-ir.c 	meson_ir_set_mask(ir, IR_DEC_REG1, REG1_IRQSEL_MASK,
ir                175 drivers/media/rc/meson-ir.c 	meson_ir_set_mask(ir, IR_DEC_REG1, REG1_ENABLE, REG1_ENABLE);
ir                184 drivers/media/rc/meson-ir.c 	struct meson_ir *ir = platform_get_drvdata(pdev);
ir                188 drivers/media/rc/meson-ir.c 	spin_lock_irqsave(&ir->lock, flags);
ir                189 drivers/media/rc/meson-ir.c 	meson_ir_set_mask(ir, IR_DEC_REG1, REG1_ENABLE, 0);
ir                190 drivers/media/rc/meson-ir.c 	spin_unlock_irqrestore(&ir->lock, flags);
ir                199 drivers/media/rc/meson-ir.c 	struct meson_ir *ir = platform_get_drvdata(pdev);
ir                202 drivers/media/rc/meson-ir.c 	spin_lock_irqsave(&ir->lock, flags);
ir                209 drivers/media/rc/meson-ir.c 		meson_ir_set_mask(ir, IR_DEC_REG1, REG1_MODE_MASK,
ir                212 drivers/media/rc/meson-ir.c 		meson_ir_set_mask(ir, IR_DEC_REG2, REG2_MODE_MASK,
ir                216 drivers/media/rc/meson-ir.c 	meson_ir_set_mask(ir, IR_DEC_REG0, REG0_RATE_MASK, 0x13);
ir                218 drivers/media/rc/meson-ir.c 	spin_unlock_irqrestore(&ir->lock, flags);
ir                145 drivers/media/rc/mtk-cir.c static inline u32 mtk_chkdata_reg(struct mtk_ir *ir, u32 i)
ir                147 drivers/media/rc/mtk-cir.c 	return ir->data->regs[MTK_CHKDATA_REG] + 4 * i;
ir                150 drivers/media/rc/mtk-cir.c static inline u32 mtk_chk_period(struct mtk_ir *ir)
ir                156 drivers/media/rc/mtk-cir.c 				clk_get_rate(ir->bus) / ir->data->div);
ir                164 drivers/media/rc/mtk-cir.c 	dev_dbg(ir->dev, "@pwm clk  = \t%lu\n",
ir                165 drivers/media/rc/mtk-cir.c 		clk_get_rate(ir->bus) / ir->data->div);
ir                166 drivers/media/rc/mtk-cir.c 	dev_dbg(ir->dev, "@chkperiod = %08x\n", val);
ir                171 drivers/media/rc/mtk-cir.c static void mtk_w32_mask(struct mtk_ir *ir, u32 val, u32 mask, unsigned int reg)
ir                175 drivers/media/rc/mtk-cir.c 	tmp = __raw_readl(ir->base + reg);
ir                177 drivers/media/rc/mtk-cir.c 	__raw_writel(tmp, ir->base + reg);
ir                180 drivers/media/rc/mtk-cir.c static void mtk_w32(struct mtk_ir *ir, u32 val, unsigned int reg)
ir                182 drivers/media/rc/mtk-cir.c 	__raw_writel(val, ir->base + reg);
ir                185 drivers/media/rc/mtk-cir.c static u32 mtk_r32(struct mtk_ir *ir, unsigned int reg)
ir                187 drivers/media/rc/mtk-cir.c 	return __raw_readl(ir->base + reg);
ir                190 drivers/media/rc/mtk-cir.c static inline void mtk_irq_disable(struct mtk_ir *ir, u32 mask)
ir                194 drivers/media/rc/mtk-cir.c 	val = mtk_r32(ir, ir->data->regs[MTK_IRINT_EN_REG]);
ir                195 drivers/media/rc/mtk-cir.c 	mtk_w32(ir, val & ~mask, ir->data->regs[MTK_IRINT_EN_REG]);
ir                198 drivers/media/rc/mtk-cir.c static inline void mtk_irq_enable(struct mtk_ir *ir, u32 mask)
ir                202 drivers/media/rc/mtk-cir.c 	val = mtk_r32(ir, ir->data->regs[MTK_IRINT_EN_REG]);
ir                203 drivers/media/rc/mtk-cir.c 	mtk_w32(ir, val | mask, ir->data->regs[MTK_IRINT_EN_REG]);
ir                208 drivers/media/rc/mtk-cir.c 	struct mtk_ir *ir = dev_id;
ir                223 drivers/media/rc/mtk-cir.c 	ir_raw_event_reset(ir->rc);
ir                230 drivers/media/rc/mtk-cir.c 		val = mtk_r32(ir, mtk_chkdata_reg(ir, i));
ir                231 drivers/media/rc/mtk-cir.c 		dev_dbg(ir->dev, "@reg%d=0x%08x\n", i, val);
ir                237 drivers/media/rc/mtk-cir.c 			ir_raw_event_store_with_filter(ir->rc, &rawir);
ir                253 drivers/media/rc/mtk-cir.c 		ir_raw_event_store_with_filter(ir->rc, &rawir);
ir                256 drivers/media/rc/mtk-cir.c 	ir_raw_event_handle(ir->rc);
ir                262 drivers/media/rc/mtk-cir.c 	mtk_w32_mask(ir, 0x1, MTK_IRCLR, ir->data->regs[MTK_IRCLR_REG]);
ir                265 drivers/media/rc/mtk-cir.c 	mtk_w32_mask(ir, 0x1, MTK_IRINT_CLR,
ir                266 drivers/media/rc/mtk-cir.c 		     ir->data->regs[MTK_IRINT_CLR_REG]);
ir                299 drivers/media/rc/mtk-cir.c 	struct mtk_ir *ir;
ir                304 drivers/media/rc/mtk-cir.c 	ir = devm_kzalloc(dev, sizeof(struct mtk_ir), GFP_KERNEL);
ir                305 drivers/media/rc/mtk-cir.c 	if (!ir)
ir                308 drivers/media/rc/mtk-cir.c 	ir->dev = dev;
ir                309 drivers/media/rc/mtk-cir.c 	ir->data = of_device_get_match_data(dev);
ir                311 drivers/media/rc/mtk-cir.c 	ir->clk = devm_clk_get(dev, "clk");
ir                312 drivers/media/rc/mtk-cir.c 	if (IS_ERR(ir->clk)) {
ir                314 drivers/media/rc/mtk-cir.c 		return PTR_ERR(ir->clk);
ir                317 drivers/media/rc/mtk-cir.c 	ir->bus = devm_clk_get(dev, "bus");
ir                318 drivers/media/rc/mtk-cir.c 	if (IS_ERR(ir->bus)) {
ir                323 drivers/media/rc/mtk-cir.c 		ir->bus = ir->clk;
ir                327 drivers/media/rc/mtk-cir.c 	ir->base = devm_ioremap_resource(dev, res);
ir                328 drivers/media/rc/mtk-cir.c 	if (IS_ERR(ir->base))
ir                329 drivers/media/rc/mtk-cir.c 		return PTR_ERR(ir->base);
ir                331 drivers/media/rc/mtk-cir.c 	ir->rc = devm_rc_allocate_device(dev, RC_DRIVER_IR_RAW);
ir                332 drivers/media/rc/mtk-cir.c 	if (!ir->rc) {
ir                337 drivers/media/rc/mtk-cir.c 	ir->rc->priv = ir;
ir                338 drivers/media/rc/mtk-cir.c 	ir->rc->device_name = MTK_IR_DEV;
ir                339 drivers/media/rc/mtk-cir.c 	ir->rc->input_phys = MTK_IR_DEV "/input0";
ir                340 drivers/media/rc/mtk-cir.c 	ir->rc->input_id.bustype = BUS_HOST;
ir                341 drivers/media/rc/mtk-cir.c 	ir->rc->input_id.vendor = 0x0001;
ir                342 drivers/media/rc/mtk-cir.c 	ir->rc->input_id.product = 0x0001;
ir                343 drivers/media/rc/mtk-cir.c 	ir->rc->input_id.version = 0x0001;
ir                345 drivers/media/rc/mtk-cir.c 	ir->rc->map_name = map_name ?: RC_MAP_EMPTY;
ir                346 drivers/media/rc/mtk-cir.c 	ir->rc->dev.parent = dev;
ir                347 drivers/media/rc/mtk-cir.c 	ir->rc->driver_name = MTK_IR_DEV;
ir                348 drivers/media/rc/mtk-cir.c 	ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
ir                349 drivers/media/rc/mtk-cir.c 	ir->rc->rx_resolution = MTK_IR_SAMPLE;
ir                350 drivers/media/rc/mtk-cir.c 	ir->rc->timeout = MTK_MAX_SAMPLES * (MTK_IR_SAMPLE + 1);
ir                352 drivers/media/rc/mtk-cir.c 	ret = devm_rc_register_device(dev, ir->rc);
ir                358 drivers/media/rc/mtk-cir.c 	platform_set_drvdata(pdev, ir);
ir                360 drivers/media/rc/mtk-cir.c 	ir->irq = platform_get_irq(pdev, 0);
ir                361 drivers/media/rc/mtk-cir.c 	if (ir->irq < 0)
ir                364 drivers/media/rc/mtk-cir.c 	if (clk_prepare_enable(ir->clk)) {
ir                369 drivers/media/rc/mtk-cir.c 	if (clk_prepare_enable(ir->bus)) {
ir                379 drivers/media/rc/mtk-cir.c 	mtk_irq_disable(ir, MTK_IRINT_EN);
ir                381 drivers/media/rc/mtk-cir.c 	ret = devm_request_irq(dev, ir->irq, mtk_ir_irq, 0, MTK_IR_DEV, ir);
ir                390 drivers/media/rc/mtk-cir.c 	val = (mtk_chk_period(ir) << ir->data->fields[MTK_CHK_PERIOD].offset) &
ir                391 drivers/media/rc/mtk-cir.c 	       ir->data->fields[MTK_CHK_PERIOD].mask;
ir                392 drivers/media/rc/mtk-cir.c 	mtk_w32_mask(ir, val, ir->data->fields[MTK_CHK_PERIOD].mask,
ir                393 drivers/media/rc/mtk-cir.c 		     ir->data->fields[MTK_CHK_PERIOD].reg);
ir                399 drivers/media/rc/mtk-cir.c 	val = (ir->data->hw_period << ir->data->fields[MTK_HW_PERIOD].offset) &
ir                400 drivers/media/rc/mtk-cir.c 	       ir->data->fields[MTK_HW_PERIOD].mask;
ir                401 drivers/media/rc/mtk-cir.c 	mtk_w32_mask(ir, val, ir->data->fields[MTK_HW_PERIOD].mask,
ir                402 drivers/media/rc/mtk-cir.c 		     ir->data->fields[MTK_HW_PERIOD].reg);
ir                405 drivers/media/rc/mtk-cir.c 	mtk_w32_mask(ir, MTK_DG_CNT(1), MTK_DG_CNT_MASK, MTK_IRTHD);
ir                408 drivers/media/rc/mtk-cir.c 	val = mtk_r32(ir, MTK_CONFIG_HIGH_REG);
ir                409 drivers/media/rc/mtk-cir.c 	val |= MTK_OK_COUNT(ir->data->ok_count) |  MTK_PWM_EN | MTK_IR_EN;
ir                410 drivers/media/rc/mtk-cir.c 	mtk_w32(ir, val, MTK_CONFIG_HIGH_REG);
ir                412 drivers/media/rc/mtk-cir.c 	mtk_irq_enable(ir, MTK_IRINT_EN);
ir                420 drivers/media/rc/mtk-cir.c 	clk_disable_unprepare(ir->bus);
ir                422 drivers/media/rc/mtk-cir.c 	clk_disable_unprepare(ir->clk);
ir                429 drivers/media/rc/mtk-cir.c 	struct mtk_ir *ir = platform_get_drvdata(pdev);
ir                436 drivers/media/rc/mtk-cir.c 	mtk_irq_disable(ir, MTK_IRINT_EN);
ir                437 drivers/media/rc/mtk-cir.c 	synchronize_irq(ir->irq);
ir                439 drivers/media/rc/mtk-cir.c 	clk_disable_unprepare(ir->bus);
ir                440 drivers/media/rc/mtk-cir.c 	clk_disable_unprepare(ir->clk);
ir                 61 drivers/media/rc/sunxi-cir.c #define REG_RXSTA_GET_AC(val) (((val) >> 8) & (ir->fifo_size * 2 - 1))
ir                109 drivers/media/rc/sunxi-cir.c 	struct sunxi_ir *ir = dev_id;
ir                112 drivers/media/rc/sunxi-cir.c 	spin_lock(&ir->ir_lock);
ir                114 drivers/media/rc/sunxi-cir.c 	status = readl(ir->base + SUNXI_IR_RXSTA_REG);
ir                117 drivers/media/rc/sunxi-cir.c 	writel(status | REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG);
ir                123 drivers/media/rc/sunxi-cir.c 		rc = rc > ir->fifo_size ? ir->fifo_size : rc;
ir                127 drivers/media/rc/sunxi-cir.c 			dt = readb(ir->base + SUNXI_IR_RXFIFO_REG);
ir                130 drivers/media/rc/sunxi-cir.c 					 ir->rc->rx_resolution;
ir                131 drivers/media/rc/sunxi-cir.c 			ir_raw_event_store_with_filter(ir->rc, &rawir);
ir                136 drivers/media/rc/sunxi-cir.c 		ir_raw_event_reset(ir->rc);
ir                138 drivers/media/rc/sunxi-cir.c 		ir_raw_event_set_idle(ir->rc, true);
ir                139 drivers/media/rc/sunxi-cir.c 		ir_raw_event_handle(ir->rc);
ir                142 drivers/media/rc/sunxi-cir.c 	spin_unlock(&ir->ir_lock);
ir                156 drivers/media/rc/sunxi-cir.c 	struct sunxi_ir *ir;
ir                159 drivers/media/rc/sunxi-cir.c 	ir = devm_kzalloc(dev, sizeof(struct sunxi_ir), GFP_KERNEL);
ir                160 drivers/media/rc/sunxi-cir.c 	if (!ir)
ir                169 drivers/media/rc/sunxi-cir.c 	spin_lock_init(&ir->ir_lock);
ir                171 drivers/media/rc/sunxi-cir.c 	ir->fifo_size = quirks->fifo_size;
ir                174 drivers/media/rc/sunxi-cir.c 	ir->apb_clk = devm_clk_get(dev, "apb");
ir                175 drivers/media/rc/sunxi-cir.c 	if (IS_ERR(ir->apb_clk)) {
ir                177 drivers/media/rc/sunxi-cir.c 		return PTR_ERR(ir->apb_clk);
ir                179 drivers/media/rc/sunxi-cir.c 	ir->clk = devm_clk_get(dev, "ir");
ir                180 drivers/media/rc/sunxi-cir.c 	if (IS_ERR(ir->clk)) {
ir                182 drivers/media/rc/sunxi-cir.c 		return PTR_ERR(ir->clk);
ir                190 drivers/media/rc/sunxi-cir.c 		ir->rst = devm_reset_control_get_exclusive(dev, NULL);
ir                191 drivers/media/rc/sunxi-cir.c 		if (IS_ERR(ir->rst))
ir                192 drivers/media/rc/sunxi-cir.c 			return PTR_ERR(ir->rst);
ir                193 drivers/media/rc/sunxi-cir.c 		ret = reset_control_deassert(ir->rst);
ir                198 drivers/media/rc/sunxi-cir.c 	ret = clk_set_rate(ir->clk, b_clk_freq);
ir                205 drivers/media/rc/sunxi-cir.c 	if (clk_prepare_enable(ir->apb_clk)) {
ir                211 drivers/media/rc/sunxi-cir.c 	if (clk_prepare_enable(ir->clk)) {
ir                219 drivers/media/rc/sunxi-cir.c 	ir->base = devm_ioremap_resource(dev, res);
ir                220 drivers/media/rc/sunxi-cir.c 	if (IS_ERR(ir->base)) {
ir                221 drivers/media/rc/sunxi-cir.c 		ret = PTR_ERR(ir->base);
ir                225 drivers/media/rc/sunxi-cir.c 	ir->rc = rc_allocate_device(RC_DRIVER_IR_RAW);
ir                226 drivers/media/rc/sunxi-cir.c 	if (!ir->rc) {
ir                232 drivers/media/rc/sunxi-cir.c 	ir->rc->priv = ir;
ir                233 drivers/media/rc/sunxi-cir.c 	ir->rc->device_name = SUNXI_IR_DEV;
ir                234 drivers/media/rc/sunxi-cir.c 	ir->rc->input_phys = "sunxi-ir/input0";
ir                235 drivers/media/rc/sunxi-cir.c 	ir->rc->input_id.bustype = BUS_HOST;
ir                236 drivers/media/rc/sunxi-cir.c 	ir->rc->input_id.vendor = 0x0001;
ir                237 drivers/media/rc/sunxi-cir.c 	ir->rc->input_id.product = 0x0001;
ir                238 drivers/media/rc/sunxi-cir.c 	ir->rc->input_id.version = 0x0100;
ir                239 drivers/media/rc/sunxi-cir.c 	ir->map_name = of_get_property(dn, "linux,rc-map-name", NULL);
ir                240 drivers/media/rc/sunxi-cir.c 	ir->rc->map_name = ir->map_name ?: RC_MAP_EMPTY;
ir                241 drivers/media/rc/sunxi-cir.c 	ir->rc->dev.parent = dev;
ir                242 drivers/media/rc/sunxi-cir.c 	ir->rc->allowed_protocols = RC_PROTO_BIT_ALL_IR_DECODER;
ir                244 drivers/media/rc/sunxi-cir.c 	ir->rc->rx_resolution = (1000000000ul / (b_clk_freq / 64));
ir                245 drivers/media/rc/sunxi-cir.c 	ir->rc->timeout = MS_TO_NS(SUNXI_IR_TIMEOUT);
ir                246 drivers/media/rc/sunxi-cir.c 	ir->rc->driver_name = SUNXI_IR_DEV;
ir                248 drivers/media/rc/sunxi-cir.c 	ret = rc_register_device(ir->rc);
ir                254 drivers/media/rc/sunxi-cir.c 	platform_set_drvdata(pdev, ir);
ir                257 drivers/media/rc/sunxi-cir.c 	ir->irq = platform_get_irq(pdev, 0);
ir                258 drivers/media/rc/sunxi-cir.c 	if (ir->irq < 0) {
ir                259 drivers/media/rc/sunxi-cir.c 		ret = ir->irq;
ir                263 drivers/media/rc/sunxi-cir.c 	ret = devm_request_irq(dev, ir->irq, sunxi_ir_irq, 0, SUNXI_IR_DEV, ir);
ir                270 drivers/media/rc/sunxi-cir.c 	writel(REG_CTL_MD, ir->base+SUNXI_IR_CTL_REG);
ir                274 drivers/media/rc/sunxi-cir.c 	       ir->base + SUNXI_IR_CIR_REG);
ir                277 drivers/media/rc/sunxi-cir.c 	writel(REG_RXCTL_RPPI, ir->base + SUNXI_IR_RXCTL_REG);
ir                280 drivers/media/rc/sunxi-cir.c 	writel(REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG);
ir                287 drivers/media/rc/sunxi-cir.c 	       REG_RXINT_RAI_EN | REG_RXINT_RAL(ir->fifo_size / 2 - 1),
ir                288 drivers/media/rc/sunxi-cir.c 	       ir->base + SUNXI_IR_RXINT_REG);
ir                291 drivers/media/rc/sunxi-cir.c 	tmp = readl(ir->base + SUNXI_IR_CTL_REG);
ir                292 drivers/media/rc/sunxi-cir.c 	writel(tmp | REG_CTL_GEN | REG_CTL_RXEN, ir->base + SUNXI_IR_CTL_REG);
ir                298 drivers/media/rc/sunxi-cir.c 	rc_free_device(ir->rc);
ir                300 drivers/media/rc/sunxi-cir.c 	clk_disable_unprepare(ir->clk);
ir                302 drivers/media/rc/sunxi-cir.c 	clk_disable_unprepare(ir->apb_clk);
ir                304 drivers/media/rc/sunxi-cir.c 	reset_control_assert(ir->rst);
ir                312 drivers/media/rc/sunxi-cir.c 	struct sunxi_ir *ir = platform_get_drvdata(pdev);
ir                314 drivers/media/rc/sunxi-cir.c 	clk_disable_unprepare(ir->clk);
ir                315 drivers/media/rc/sunxi-cir.c 	clk_disable_unprepare(ir->apb_clk);
ir                316 drivers/media/rc/sunxi-cir.c 	reset_control_assert(ir->rst);
ir                318 drivers/media/rc/sunxi-cir.c 	spin_lock_irqsave(&ir->ir_lock, flags);
ir                320 drivers/media/rc/sunxi-cir.c 	writel(0, ir->base + SUNXI_IR_RXINT_REG);
ir                322 drivers/media/rc/sunxi-cir.c 	writel(REG_RXSTA_CLEARALL, ir->base + SUNXI_IR_RXSTA_REG);
ir                324 drivers/media/rc/sunxi-cir.c 	writel(0, ir->base + SUNXI_IR_CTL_REG);
ir                325 drivers/media/rc/sunxi-cir.c 	spin_unlock_irqrestore(&ir->ir_lock, flags);
ir                327 drivers/media/rc/sunxi-cir.c 	rc_unregister_device(ir->rc);
ir                 55 drivers/media/rc/tango-ir.c static void tango_ir_handle_nec(struct tango_ir *ir)
ir                 60 drivers/media/rc/tango-ir.c 	v = readl_relaxed(ir->rc5_base + IR_NEC_DATA);
ir                 62 drivers/media/rc/tango-ir.c 		rc_repeat(ir->rc);
ir                 67 drivers/media/rc/tango-ir.c 	rc_keydown(ir->rc, proto, code, 0);
ir                 70 drivers/media/rc/tango-ir.c static void tango_ir_handle_rc5(struct tango_ir *ir)
ir                 74 drivers/media/rc/tango-ir.c 	data = readl_relaxed(ir->rc5_base + IR_RC5_DATA);
ir                 84 drivers/media/rc/tango-ir.c 	rc_keydown(ir->rc, RC_PROTO_RC5, code, toggle);
ir                 87 drivers/media/rc/tango-ir.c static void tango_ir_handle_rc6(struct tango_ir *ir)
ir                 91 drivers/media/rc/tango-ir.c 	data0 = readl_relaxed(ir->rc6_base + RC6_DATA0);
ir                 92 drivers/media/rc/tango-ir.c 	data1 = readl_relaxed(ir->rc6_base + RC6_DATA1);
ir                103 drivers/media/rc/tango-ir.c 	rc_keydown(ir->rc, RC_PROTO_RC6_0, code, toggle);
ir                108 drivers/media/rc/tango-ir.c 	struct tango_ir *ir = dev_id;
ir                112 drivers/media/rc/tango-ir.c 	rc5_stat = readl_relaxed(ir->rc5_base + IR_INT);
ir                113 drivers/media/rc/tango-ir.c 	writel_relaxed(rc5_stat, ir->rc5_base + IR_INT);
ir                115 drivers/media/rc/tango-ir.c 	rc6_stat = readl_relaxed(ir->rc6_base + RC6_CTRL);
ir                116 drivers/media/rc/tango-ir.c 	writel_relaxed(rc6_stat, ir->rc6_base + RC6_CTRL);
ir                122 drivers/media/rc/tango-ir.c 		tango_ir_handle_rc5(ir);
ir                125 drivers/media/rc/tango-ir.c 		tango_ir_handle_nec(ir);
ir                128 drivers/media/rc/tango-ir.c 		tango_ir_handle_rc6(ir);
ir                135 drivers/media/rc/tango-ir.c 	struct tango_ir *ir = dev->priv;
ir                148 drivers/media/rc/tango-ir.c 	writel_relaxed(rc5_ctrl, ir->rc5_base + IR_CTRL);
ir                149 drivers/media/rc/tango-ir.c 	writel_relaxed(rc6_ctrl, ir->rc6_base + RC6_CTRL);
ir                159 drivers/media/rc/tango-ir.c 	struct tango_ir *ir;
ir                178 drivers/media/rc/tango-ir.c 	ir = devm_kzalloc(dev, sizeof(*ir), GFP_KERNEL);
ir                179 drivers/media/rc/tango-ir.c 	if (!ir)
ir                182 drivers/media/rc/tango-ir.c 	ir->rc5_base = devm_ioremap_resource(dev, rc5_res);
ir                183 drivers/media/rc/tango-ir.c 	if (IS_ERR(ir->rc5_base))
ir                184 drivers/media/rc/tango-ir.c 		return PTR_ERR(ir->rc5_base);
ir                186 drivers/media/rc/tango-ir.c 	ir->rc6_base = devm_ioremap_resource(dev, rc6_res);
ir                187 drivers/media/rc/tango-ir.c 	if (IS_ERR(ir->rc6_base))
ir                188 drivers/media/rc/tango-ir.c 		return PTR_ERR(ir->rc6_base);
ir                190 drivers/media/rc/tango-ir.c 	ir->clk = devm_clk_get(dev, NULL);
ir                191 drivers/media/rc/tango-ir.c 	if (IS_ERR(ir->clk))
ir                192 drivers/media/rc/tango-ir.c 		return PTR_ERR(ir->clk);
ir                206 drivers/media/rc/tango-ir.c 	rc->priv = ir;
ir                207 drivers/media/rc/tango-ir.c 	ir->rc = rc;
ir                209 drivers/media/rc/tango-ir.c 	err = clk_prepare_enable(ir->clk);
ir                213 drivers/media/rc/tango-ir.c 	clkrate = clk_get_rate(ir->clk);
ir                219 drivers/media/rc/tango-ir.c 	writel_relaxed(val, ir->rc5_base + IR_NEC_CTRL);
ir                224 drivers/media/rc/tango-ir.c 	writel_relaxed(DISABLE_NEC, ir->rc5_base + IR_CTRL);
ir                225 drivers/media/rc/tango-ir.c 	writel_relaxed(clkdiv, ir->rc5_base + IR_RC5_CLK_DIV);
ir                226 drivers/media/rc/tango-ir.c 	writel_relaxed(ACK_IR_INT, ir->rc5_base + IR_INT);
ir                231 drivers/media/rc/tango-ir.c 	writel_relaxed(ACK_RC6_INT, ir->rc6_base + RC6_CTRL);
ir                232 drivers/media/rc/tango-ir.c 	writel_relaxed((clkdiv >> 2) << 18 | clkdiv, ir->rc6_base + RC6_CLKDIV);
ir                235 drivers/media/rc/tango-ir.c 			       dev_name(dev), ir);
ir                243 drivers/media/rc/tango-ir.c 	platform_set_drvdata(pdev, ir);
ir                247 drivers/media/rc/tango-ir.c 	clk_disable_unprepare(ir->clk);
ir                253 drivers/media/rc/tango-ir.c 	struct tango_ir *ir = platform_get_drvdata(pdev);
ir                255 drivers/media/rc/tango-ir.c 	clk_disable_unprepare(ir->clk);
ir                 36 drivers/media/usb/au0828/au0828-input.c 	int  (*get_key_i2c)(struct au0828_rc *ir);
ir                 43 drivers/media/usb/au0828/au0828-input.c static int au8522_rc_write(struct au0828_rc *ir, u16 reg, u8 data)
ir                 47 drivers/media/usb/au0828/au0828-input.c 	struct i2c_msg msg = { .addr = ir->i2c_dev_addr, .flags = 0,
ir                 50 drivers/media/usb/au0828/au0828-input.c 	rc = i2c_transfer(ir->dev->i2c_client.adapter, &msg, 1);
ir                 58 drivers/media/usb/au0828/au0828-input.c static int au8522_rc_read(struct au0828_rc *ir, u16 reg, int val,
ir                 63 drivers/media/usb/au0828/au0828-input.c 	struct i2c_msg msg[2] = { { .addr = ir->i2c_dev_addr, .flags = 0,
ir                 65 drivers/media/usb/au0828/au0828-input.c 				  { .addr = ir->i2c_dev_addr, .flags = I2C_M_RD,
ir                 75 drivers/media/usb/au0828/au0828-input.c 	rc = i2c_transfer(ir->dev->i2c_client.adapter, msg, 2);
ir                 83 drivers/media/usb/au0828/au0828-input.c static int au8522_rc_andor(struct au0828_rc *ir, u16 reg, u8 mask, u8 value)
ir                 88 drivers/media/usb/au0828/au0828-input.c 	rc = au8522_rc_read(ir, reg, -1, &buf, 1);
ir                 99 drivers/media/usb/au0828/au0828-input.c 	return au8522_rc_write(ir, reg, buf);
ir                102 drivers/media/usb/au0828/au0828-input.c #define au8522_rc_set(ir, reg, bit) au8522_rc_andor(ir, (reg), (bit), (bit))
ir                103 drivers/media/usb/au0828/au0828-input.c #define au8522_rc_clear(ir, reg, bit) au8522_rc_andor(ir, (reg), (bit), 0)
ir                113 drivers/media/usb/au0828/au0828-input.c static int au0828_get_key_au8522(struct au0828_rc *ir)
ir                122 drivers/media/usb/au0828/au0828-input.c 	if (test_bit(DEV_DISCONNECTED, &ir->dev->dev_state))
ir                126 drivers/media/usb/au0828/au0828-input.c 	rc = au8522_rc_read(ir, 0xe1, -1, buf, 1);
ir                129 drivers/media/usb/au0828/au0828-input.c 		au8522_rc_set(ir, 0xe0, 1 << 4);
ir                134 drivers/media/usb/au0828/au0828-input.c 	rc = au8522_rc_read(ir, 0xe3, 0x11, buf, sizeof(buf));
ir                141 drivers/media/usb/au0828/au0828-input.c 	au8522_rc_clear(ir, 0xe0, 1 << 4);
ir                144 drivers/media/usb/au0828/au0828-input.c 	au8522_rc_set(ir, 0xe0, 1 << 4);
ir                185 drivers/media/usb/au0828/au0828-input.c 				ir_raw_event_store(ir->rc, &rawir);
ir                193 drivers/media/usb/au0828/au0828-input.c 			ir_raw_event_store(ir->rc, &rawir);
ir                205 drivers/media/usb/au0828/au0828-input.c 	ir_raw_event_store(ir->rc, &rawir);
ir                207 drivers/media/usb/au0828/au0828-input.c 	ir_raw_event_handle(ir->rc);
ir                218 drivers/media/usb/au0828/au0828-input.c 	struct au0828_rc *ir = container_of(work, struct au0828_rc, work.work);
ir                221 drivers/media/usb/au0828/au0828-input.c 	rc = ir->get_key_i2c(ir);
ir                225 drivers/media/usb/au0828/au0828-input.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
ir                230 drivers/media/usb/au0828/au0828-input.c 	struct au0828_rc *ir = rc->priv;
ir                232 drivers/media/usb/au0828/au0828-input.c 	INIT_DELAYED_WORK(&ir->work, au0828_rc_work);
ir                235 drivers/media/usb/au0828/au0828-input.c 	au8522_rc_set(ir, 0xe0, 1 << 4);
ir                237 drivers/media/usb/au0828/au0828-input.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
ir                244 drivers/media/usb/au0828/au0828-input.c 	struct au0828_rc *ir = rc->priv;
ir                246 drivers/media/usb/au0828/au0828-input.c 	cancel_delayed_work_sync(&ir->work);
ir                249 drivers/media/usb/au0828/au0828-input.c 	if (!test_bit(DEV_DISCONNECTED, &ir->dev->dev_state)) {
ir                251 drivers/media/usb/au0828/au0828-input.c 		au8522_rc_clear(ir, 0xe0, 1 << 4);
ir                274 drivers/media/usb/au0828/au0828-input.c 	struct au0828_rc *ir;
ir                286 drivers/media/usb/au0828/au0828-input.c 	ir = kzalloc(sizeof(*ir), GFP_KERNEL);
ir                288 drivers/media/usb/au0828/au0828-input.c 	if (!ir || !rc)
ir                292 drivers/media/usb/au0828/au0828-input.c 	ir->dev = dev;
ir                293 drivers/media/usb/au0828/au0828-input.c 	dev->ir = ir;
ir                294 drivers/media/usb/au0828/au0828-input.c 	ir->rc = rc;
ir                296 drivers/media/usb/au0828/au0828-input.c 	rc->priv = ir;
ir                304 drivers/media/usb/au0828/au0828-input.c 			ir->get_key_i2c = au0828_get_key_au8522;
ir                311 drivers/media/usb/au0828/au0828-input.c 		ir->i2c_dev_addr = i2c_rc_dev_addr;
ir                315 drivers/media/usb/au0828/au0828-input.c 	ir->polling = 100; /* ms */
ir                318 drivers/media/usb/au0828/au0828-input.c 	snprintf(ir->name, sizeof(ir->name), "au0828 IR (%s)",
ir                321 drivers/media/usb/au0828/au0828-input.c 	usb_make_path(dev->usbdev, ir->phys, sizeof(ir->phys));
ir                322 drivers/media/usb/au0828/au0828-input.c 	strlcat(ir->phys, "/input0", sizeof(ir->phys));
ir                324 drivers/media/usb/au0828/au0828-input.c 	rc->device_name = ir->name;
ir                325 drivers/media/usb/au0828/au0828-input.c 	rc->input_phys = ir->phys;
ir                340 drivers/media/usb/au0828/au0828-input.c 	pr_info("Remote controller %s initialized\n", ir->name);
ir                345 drivers/media/usb/au0828/au0828-input.c 	dev->ir = NULL;
ir                347 drivers/media/usb/au0828/au0828-input.c 	kfree(ir);
ir                353 drivers/media/usb/au0828/au0828-input.c 	struct au0828_rc *ir = dev->ir;
ir                356 drivers/media/usb/au0828/au0828-input.c 	if (!ir)
ir                359 drivers/media/usb/au0828/au0828-input.c 	rc_unregister_device(ir->rc);
ir                362 drivers/media/usb/au0828/au0828-input.c 	kfree(ir);
ir                363 drivers/media/usb/au0828/au0828-input.c 	dev->ir = NULL;
ir                368 drivers/media/usb/au0828/au0828-input.c 	struct au0828_rc *ir = dev->ir;
ir                370 drivers/media/usb/au0828/au0828-input.c 	if (!ir)
ir                375 drivers/media/usb/au0828/au0828-input.c 	cancel_delayed_work_sync(&ir->work);
ir                378 drivers/media/usb/au0828/au0828-input.c 	au8522_rc_clear(ir, 0xe0, 1 << 4);
ir                385 drivers/media/usb/au0828/au0828-input.c 	struct au0828_rc *ir = dev->ir;
ir                387 drivers/media/usb/au0828/au0828-input.c 	if (!ir)
ir                393 drivers/media/usb/au0828/au0828-input.c 	au8522_rc_set(ir, 0xe0, 1 << 4);
ir                395 drivers/media/usb/au0828/au0828-input.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
ir                198 drivers/media/usb/au0828/au0828.h 	struct au0828_rc *ir;
ir                 17 drivers/media/usb/cx231xx/cx231xx-input.c static int get_key_isdbt(struct IR_i2c *ir, enum rc_proto *protocol,
ir                 23 drivers/media/usb/cx231xx/cx231xx-input.c 	dev_dbg(&ir->rc->dev, "%s\n", __func__);
ir                 26 drivers/media/usb/cx231xx/cx231xx-input.c 	rc = i2c_master_recv(ir->c, &cmd, 1);
ir                 41 drivers/media/usb/cx231xx/cx231xx-input.c 	dev_dbg(&ir->rc->dev, "cmd %02x, scan = %02x\n", cmd, scancode);
ir                 43 drivers/media/usb/em28xx/em28xx-input.c 		dev_printk(KERN_DEBUG, &ir->dev->intf->dev,		\
ir                 73 drivers/media/usb/em28xx/em28xx-input.c 	int  (*get_key_i2c)(struct i2c_client *ir, enum rc_proto *protocol,
ir                 75 drivers/media/usb/em28xx/em28xx-input.c 	int  (*get_key)(struct em28xx_IR *ir, struct em28xx_ir_poll_result *r);
ir                204 drivers/media/usb/em28xx/em28xx-input.c static int default_polling_getkey(struct em28xx_IR *ir,
ir                207 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx *dev = ir->dev;
ir                227 drivers/media/usb/em28xx/em28xx-input.c 	switch (ir->rc_proto) {
ir                247 drivers/media/usb/em28xx/em28xx-input.c static int em2874_polling_getkey(struct em28xx_IR *ir,
ir                250 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx *dev = ir->dev;
ir                273 drivers/media/usb/em28xx/em28xx-input.c 	switch (ir->rc_proto) {
ir                303 drivers/media/usb/em28xx/em28xx-input.c static int em28xx_i2c_ir_handle_key(struct em28xx_IR *ir)
ir                309 drivers/media/usb/em28xx/em28xx-input.c 	rc = ir->get_key_i2c(ir->i2c_client, &protocol, &scancode);
ir                318 drivers/media/usb/em28xx/em28xx-input.c 		rc_keydown(ir->rc, protocol, scancode, 0);
ir                323 drivers/media/usb/em28xx/em28xx-input.c static void em28xx_ir_handle_key(struct em28xx_IR *ir)
ir                329 drivers/media/usb/em28xx/em28xx-input.c 	result = ir->get_key(ir, &poll_result);
ir                335 drivers/media/usb/em28xx/em28xx-input.c 	if (unlikely(poll_result.read_count != ir->last_readcount)) {
ir                339 drivers/media/usb/em28xx/em28xx-input.c 		if (ir->full_code)
ir                340 drivers/media/usb/em28xx/em28xx-input.c 			rc_keydown(ir->rc,
ir                345 drivers/media/usb/em28xx/em28xx-input.c 			rc_keydown(ir->rc,
ir                350 drivers/media/usb/em28xx/em28xx-input.c 		if (ir->dev->chip_id == CHIP_ID_EM2874 ||
ir                351 drivers/media/usb/em28xx/em28xx-input.c 		    ir->dev->chip_id == CHIP_ID_EM2884)
ir                360 drivers/media/usb/em28xx/em28xx-input.c 			ir->last_readcount = 0;
ir                362 drivers/media/usb/em28xx/em28xx-input.c 			ir->last_readcount = poll_result.read_count;
ir                368 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = container_of(work, struct em28xx_IR, work.work);
ir                370 drivers/media/usb/em28xx/em28xx-input.c 	if (ir->i2c_client) /* external i2c device */
ir                371 drivers/media/usb/em28xx/em28xx-input.c 		em28xx_i2c_ir_handle_key(ir);
ir                373 drivers/media/usb/em28xx/em28xx-input.c 		em28xx_ir_handle_key(ir);
ir                374 drivers/media/usb/em28xx/em28xx-input.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
ir                379 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = rc->priv;
ir                381 drivers/media/usb/em28xx/em28xx-input.c 	INIT_DELAYED_WORK(&ir->work, em28xx_ir_work);
ir                382 drivers/media/usb/em28xx/em28xx-input.c 	schedule_delayed_work(&ir->work, 0);
ir                389 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = rc->priv;
ir                391 drivers/media/usb/em28xx/em28xx-input.c 	cancel_delayed_work_sync(&ir->work);
ir                396 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = rc_dev->priv;
ir                397 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx *dev = ir->dev;
ir                402 drivers/media/usb/em28xx/em28xx-input.c 		ir->full_code = 1;
ir                406 drivers/media/usb/em28xx/em28xx-input.c 		ir->full_code = 1;
ir                411 drivers/media/usb/em28xx/em28xx-input.c 		*rc_proto = ir->rc_proto;
ir                417 drivers/media/usb/em28xx/em28xx-input.c 	ir->rc_proto = *rc_proto;
ir                424 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = rc_dev->priv;
ir                425 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx *dev = ir->dev;
ir                431 drivers/media/usb/em28xx/em28xx-input.c 		ir->full_code = 1;
ir                436 drivers/media/usb/em28xx/em28xx-input.c 		ir->full_code = 1;
ir                441 drivers/media/usb/em28xx/em28xx-input.c 		ir->full_code = 1;
ir                446 drivers/media/usb/em28xx/em28xx-input.c 		*rc_proto = ir->rc_proto;
ir                453 drivers/media/usb/em28xx/em28xx-input.c 	ir->rc_proto = *rc_proto;
ir                460 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = rc_dev->priv;
ir                461 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx *dev = ir->dev;
ir                474 drivers/media/usb/em28xx/em28xx-input.c 		dev_err(&ir->dev->intf->dev,
ir                700 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir;
ir                736 drivers/media/usb/em28xx/em28xx-input.c 	ir = kzalloc(sizeof(*ir), GFP_KERNEL);
ir                737 drivers/media/usb/em28xx/em28xx-input.c 	if (!ir)
ir                744 drivers/media/usb/em28xx/em28xx-input.c 	ir->dev = dev;
ir                745 drivers/media/usb/em28xx/em28xx-input.c 	dev->ir = ir;
ir                746 drivers/media/usb/em28xx/em28xx-input.c 	ir->rc = rc;
ir                748 drivers/media/usb/em28xx/em28xx-input.c 	rc->priv = ir;
ir                757 drivers/media/usb/em28xx/em28xx-input.c 			ir->get_key_i2c = em28xx_get_key_terratec;
ir                761 drivers/media/usb/em28xx/em28xx-input.c 			ir->get_key_i2c = em28xx_get_key_pinnacle_usb_grey;
ir                765 drivers/media/usb/em28xx/em28xx-input.c 			ir->get_key_i2c = em28xx_get_key_em_haup;
ir                770 drivers/media/usb/em28xx/em28xx-input.c 			ir->get_key_i2c = em28xx_get_key_winfast_usbii_deluxe;
ir                777 drivers/media/usb/em28xx/em28xx-input.c 		ir->i2c_client = kzalloc(sizeof(*ir->i2c_client), GFP_KERNEL);
ir                778 drivers/media/usb/em28xx/em28xx-input.c 		if (!ir->i2c_client)
ir                780 drivers/media/usb/em28xx/em28xx-input.c 		ir->i2c_client->adapter = &ir->dev->i2c_adap[dev->def_i2c_bus];
ir                781 drivers/media/usb/em28xx/em28xx-input.c 		ir->i2c_client->addr = i2c_rc_dev_addr;
ir                782 drivers/media/usb/em28xx/em28xx-input.c 		ir->i2c_client->flags = 0;
ir                790 drivers/media/usb/em28xx/em28xx-input.c 			ir->get_key = default_polling_getkey;
ir                796 drivers/media/usb/em28xx/em28xx-input.c 			ir->get_key = em2874_polling_getkey;
ir                817 drivers/media/usb/em28xx/em28xx-input.c 	ir->polling = 100; /* ms */
ir                819 drivers/media/usb/em28xx/em28xx-input.c 	usb_make_path(udev, ir->phys, sizeof(ir->phys));
ir                820 drivers/media/usb/em28xx/em28xx-input.c 	strlcat(ir->phys, "/input0", sizeof(ir->phys));
ir                823 drivers/media/usb/em28xx/em28xx-input.c 	rc->input_phys = ir->phys;
ir                838 drivers/media/usb/em28xx/em28xx-input.c 	kfree(ir->i2c_client);
ir                839 drivers/media/usb/em28xx/em28xx-input.c 	dev->ir = NULL;
ir                841 drivers/media/usb/em28xx/em28xx-input.c 	kfree(ir);
ir                847 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = dev->ir;
ir                859 drivers/media/usb/em28xx/em28xx-input.c 	if (!ir)
ir                862 drivers/media/usb/em28xx/em28xx-input.c 	rc_unregister_device(ir->rc);
ir                864 drivers/media/usb/em28xx/em28xx-input.c 	kfree(ir->i2c_client);
ir                867 drivers/media/usb/em28xx/em28xx-input.c 	kfree(ir);
ir                868 drivers/media/usb/em28xx/em28xx-input.c 	dev->ir = NULL;
ir                878 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = dev->ir;
ir                884 drivers/media/usb/em28xx/em28xx-input.c 	if (ir)
ir                885 drivers/media/usb/em28xx/em28xx-input.c 		cancel_delayed_work_sync(&ir->work);
ir                897 drivers/media/usb/em28xx/em28xx-input.c 	struct em28xx_IR *ir = dev->ir;
ir                907 drivers/media/usb/em28xx/em28xx-input.c 	if (ir)
ir                908 drivers/media/usb/em28xx/em28xx-input.c 		schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
ir                650 drivers/media/usb/em28xx/em28xx.h 	struct em28xx_IR *ir;
ir                173 drivers/media/usb/tm6000/tm6000-cards.c 			.ir		= TM6010_GPIO_0,
ir                354 drivers/media/usb/tm6000/tm6000-cards.c 			.ir		= TM6010_GPIO_0,
ir                466 drivers/media/usb/tm6000/tm6000-cards.c 			.ir		= TM6010_GPIO_0,
ir                527 drivers/media/usb/tm6000/tm6000-cards.c 			.ir		= TM6010_GPIO_0,
ir                816 drivers/media/usb/tm6000/tm6000-cards.c 		tm6000_set_reg(dev, REQ_03_SET_GET_MCU_PIN, dev->gpio.ir, 0x01);
ir                 39 drivers/media/usb/tm6000/tm6000-input.c 		printk(KERN_DEBUG "%s/ir: " fmt, ir->name , ## arg); \
ir                 66 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = dev->ir;
ir                 68 drivers/media/usb/tm6000/tm6000-input.c 	if (!dev->ir)
ir                 71 drivers/media/usb/tm6000/tm6000-input.c 	dprintk(2, "%s: %i\n",__func__, ir->wait);
ir                 74 drivers/media/usb/tm6000/tm6000-input.c 		ir->wait = 1;
ir                 76 drivers/media/usb/tm6000/tm6000-input.c 		ir->wait = 0;
ir                 79 drivers/media/usb/tm6000/tm6000-input.c static int tm6000_ir_config(struct tm6000_IR *ir)
ir                 81 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_core *dev = ir->dev;
ir                 98 drivers/media/usb/tm6000/tm6000-input.c 	switch (ir->rc_proto) {
ir                112 drivers/media/usb/tm6000/tm6000-input.c 	if (ir->rc_proto == RC_PROTO_BIT_NEC)
ir                117 drivers/media/usb/tm6000/tm6000-input.c 		(ir->rc_proto == RC_PROTO_BIT_NEC) ? "NEC" : "RC-5",
ir                137 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir->polling)
ir                147 drivers/media/usb/tm6000/tm6000-input.c 	ir->pwled = 1;
ir                152 drivers/media/usb/tm6000/tm6000-input.c static void tm6000_ir_keydown(struct tm6000_IR *ir,
ir                164 drivers/media/usb/tm6000/tm6000-input.c 	switch (ir->rc_proto) {
ir                181 drivers/media/usb/tm6000/tm6000-input.c 	rc_keydown(ir->rc, protocol, scancode, 0);
ir                187 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = dev->ir;
ir                194 drivers/media/usb/tm6000/tm6000-input.c 		ir->submit_urb = 1;
ir                195 drivers/media/usb/tm6000/tm6000-input.c 		schedule_delayed_work(&ir->work, msecs_to_jiffies(URB_SUBMIT_DELAY));
ir                205 drivers/media/usb/tm6000/tm6000-input.c 	tm6000_ir_keydown(ir, urb->transfer_buffer, urb->actual_length);
ir                212 drivers/media/usb/tm6000/tm6000-input.c 	ir->pwled = 2;
ir                213 drivers/media/usb/tm6000/tm6000-input.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(10));
ir                218 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = container_of(work, struct tm6000_IR, work.work);
ir                219 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_core *dev = ir->dev;
ir                223 drivers/media/usb/tm6000/tm6000-input.c 	if (ir->wait)
ir                236 drivers/media/usb/tm6000/tm6000-input.c 		if (!ir->pwled) {
ir                238 drivers/media/usb/tm6000/tm6000-input.c 			ir->pwled = 1;
ir                243 drivers/media/usb/tm6000/tm6000-input.c 	tm6000_ir_keydown(ir, buf, rc);
ir                245 drivers/media/usb/tm6000/tm6000-input.c 	ir->pwled = 0;
ir                248 drivers/media/usb/tm6000/tm6000-input.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(ir->polling));
ir                253 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = container_of(work, struct tm6000_IR, work.work);
ir                254 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_core *dev = ir->dev;
ir                257 drivers/media/usb/tm6000/tm6000-input.c 	dprintk(3, "%s, submit_urb = %d, pwled = %d\n",__func__, ir->submit_urb,
ir                258 drivers/media/usb/tm6000/tm6000-input.c 		ir->pwled);
ir                260 drivers/media/usb/tm6000/tm6000-input.c 	if (ir->submit_urb) {
ir                264 drivers/media/usb/tm6000/tm6000-input.c 		rc = usb_submit_urb(ir->int_urb, GFP_ATOMIC);
ir                269 drivers/media/usb/tm6000/tm6000-input.c 			schedule_delayed_work(&ir->work, msecs_to_jiffies(URB_SUBMIT_DELAY));
ir                272 drivers/media/usb/tm6000/tm6000-input.c 		ir->submit_urb = 0;
ir                276 drivers/media/usb/tm6000/tm6000-input.c 	if (ir->pwled == 2) {
ir                278 drivers/media/usb/tm6000/tm6000-input.c 		ir->pwled = 0;
ir                279 drivers/media/usb/tm6000/tm6000-input.c 		schedule_delayed_work(&ir->work, msecs_to_jiffies(URB_INT_LED_DELAY));
ir                280 drivers/media/usb/tm6000/tm6000-input.c 	} else if (!ir->pwled) {
ir                282 drivers/media/usb/tm6000/tm6000-input.c 		ir->pwled = 1;
ir                288 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = rc->priv;
ir                292 drivers/media/usb/tm6000/tm6000-input.c 	schedule_delayed_work(&ir->work, 0);
ir                299 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = rc->priv;
ir                303 drivers/media/usb/tm6000/tm6000-input.c 	cancel_delayed_work_sync(&ir->work);
ir                308 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = rc->priv;
ir                310 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir)
ir                315 drivers/media/usb/tm6000/tm6000-input.c 	ir->rc_proto = *rc_proto;
ir                317 drivers/media/usb/tm6000/tm6000-input.c 	tm6000_ir_config(ir);
ir                324 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = rc->priv;
ir                329 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir)
ir                331 drivers/media/usb/tm6000/tm6000-input.c 	dev = ir->dev;
ir                335 drivers/media/usb/tm6000/tm6000-input.c 	ir->int_urb = usb_alloc_urb(0, GFP_ATOMIC);
ir                336 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir->int_urb)
ir                346 drivers/media/usb/tm6000/tm6000-input.c 	ir->int_urb->transfer_buffer = kzalloc(size, GFP_ATOMIC);
ir                347 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir->int_urb->transfer_buffer) {
ir                348 drivers/media/usb/tm6000/tm6000-input.c 		usb_free_urb(ir->int_urb);
ir                353 drivers/media/usb/tm6000/tm6000-input.c 	usb_fill_int_urb(ir->int_urb, dev->udev, pipe,
ir                354 drivers/media/usb/tm6000/tm6000-input.c 		ir->int_urb->transfer_buffer, size,
ir                358 drivers/media/usb/tm6000/tm6000-input.c 	ir->submit_urb = 1;
ir                359 drivers/media/usb/tm6000/tm6000-input.c 	schedule_delayed_work(&ir->work, msecs_to_jiffies(URB_SUBMIT_DELAY));
ir                366 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = rc->priv;
ir                368 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir || !ir->int_urb)
ir                373 drivers/media/usb/tm6000/tm6000-input.c 	usb_kill_urb(ir->int_urb);
ir                374 drivers/media/usb/tm6000/tm6000-input.c 	kfree(ir->int_urb->transfer_buffer);
ir                375 drivers/media/usb/tm6000/tm6000-input.c 	usb_free_urb(ir->int_urb);
ir                376 drivers/media/usb/tm6000/tm6000-input.c 	ir->int_urb = NULL;
ir                381 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = dev->ir;
ir                383 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir)
ir                386 drivers/media/usb/tm6000/tm6000-input.c 	return __tm6000_ir_int_start(ir->rc);
ir                391 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = dev->ir;
ir                393 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir || !ir->rc)
ir                396 drivers/media/usb/tm6000/tm6000-input.c 	__tm6000_ir_int_stop(ir->rc);
ir                401 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir;
ir                415 drivers/media/usb/tm6000/tm6000-input.c 	ir = kzalloc(sizeof(*ir), GFP_ATOMIC);
ir                417 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir || !rc)
ir                423 drivers/media/usb/tm6000/tm6000-input.c 	ir->dev = dev;
ir                424 drivers/media/usb/tm6000/tm6000-input.c 	dev->ir = ir;
ir                425 drivers/media/usb/tm6000/tm6000-input.c 	ir->rc = rc;
ir                431 drivers/media/usb/tm6000/tm6000-input.c 	rc->priv = ir;
ir                436 drivers/media/usb/tm6000/tm6000-input.c 		INIT_DELAYED_WORK(&ir->work, tm6000_ir_int_work);
ir                440 drivers/media/usb/tm6000/tm6000-input.c 		ir->polling = 50;
ir                441 drivers/media/usb/tm6000/tm6000-input.c 		INIT_DELAYED_WORK(&ir->work, tm6000_ir_handle_key);
ir                444 drivers/media/usb/tm6000/tm6000-input.c 	snprintf(ir->name, sizeof(ir->name), "tm5600/60x0 IR (%s)",
ir                447 drivers/media/usb/tm6000/tm6000-input.c 	usb_make_path(dev->udev, ir->phys, sizeof(ir->phys));
ir                448 drivers/media/usb/tm6000/tm6000-input.c 	strlcat(ir->phys, "/input0", sizeof(ir->phys));
ir                453 drivers/media/usb/tm6000/tm6000-input.c 	rc->device_name = ir->name;
ir                454 drivers/media/usb/tm6000/tm6000-input.c 	rc->input_phys = ir->phys;
ir                471 drivers/media/usb/tm6000/tm6000-input.c 	dev->ir = NULL;
ir                473 drivers/media/usb/tm6000/tm6000-input.c 	kfree(ir);
ir                479 drivers/media/usb/tm6000/tm6000-input.c 	struct tm6000_IR *ir = dev->ir;
ir                483 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir)
ir                488 drivers/media/usb/tm6000/tm6000-input.c 	if (!ir->polling)
ir                489 drivers/media/usb/tm6000/tm6000-input.c 		__tm6000_ir_int_stop(ir->rc);
ir                491 drivers/media/usb/tm6000/tm6000-input.c 	tm6000_ir_stop(ir->rc);
ir                495 drivers/media/usb/tm6000/tm6000-input.c 	ir->pwled = 0;
ir                497 drivers/media/usb/tm6000/tm6000-input.c 	rc_unregister_device(ir->rc);
ir                499 drivers/media/usb/tm6000/tm6000-input.c 	kfree(ir);
ir                500 drivers/media/usb/tm6000/tm6000-input.c 	dev->ir = NULL;
ir                118 drivers/media/usb/tm6000/tm6000.h 	int		ir;
ir                238 drivers/media/usb/tm6000/tm6000.h 	struct tm6000_IR		*ir;
ir                252 drivers/misc/apds990x.c 	u32 ir;
ir                286 drivers/misc/apds990x.c 	ir = (u32)chip->lux_ir * (u32)again[chip->again_next] /
ir                295 drivers/misc/apds990x.c 		thres = (chip->rcf.cf1 * thres + chip->rcf.irf1 * ir) /
ir                298 drivers/misc/apds990x.c 		thres = (chip->rcf.cf2 * thres + chip->rcf.irf2 * ir) /
ir                431 drivers/misc/apds990x.c static int apds990x_get_lux(struct apds990x_chip *chip, int clear, int ir)
ir                440 drivers/misc/apds990x.c 	iac1 = (chip->cf.cf1 * clear - chip->cf.irf1 * ir) / APDS_PARAM_SCALE;
ir                441 drivers/misc/apds990x.c 	iac2 = (chip->cf.cf2 * clear - chip->cf.irf2 * ir) / APDS_PARAM_SCALE;
ir                914 drivers/net/can/m_can/m_can.c 	u32 ir;
ir                916 drivers/net/can/m_can/m_can.c 	ir = m_can_read(cdev, M_CAN_IR);
ir                917 drivers/net/can/m_can/m_can.c 	if (!ir)
ir                921 drivers/net/can/m_can/m_can.c 	if (ir & IR_ALL_INT)
ir                922 drivers/net/can/m_can/m_can.c 		m_can_write(cdev, M_CAN_IR, ir);
ir                932 drivers/net/can/m_can/m_can.c 	if ((ir & IR_RF0N) || (ir & IR_ERR_ALL_30X)) {
ir                933 drivers/net/can/m_can/m_can.c 		cdev->irqstatus = ir;
ir                942 drivers/net/can/m_can/m_can.c 		if (ir & IR_TC) {
ir                950 drivers/net/can/m_can/m_can.c 		if (ir & IR_TEFN) {
ir                359 drivers/net/can/softing/softing_main.c 	uint8_t ir;
ir                361 drivers/net/can/softing/softing_main.c 	ir = ioread8(&card->dpram[DPRAM_V2_IRQ_TOHOST]);
ir                363 drivers/net/can/softing/softing_main.c 	return (1 == ir) ? IRQ_WAKE_THREAD : IRQ_NONE;
ir                369 drivers/net/can/softing/softing_main.c 	uint8_t ir;
ir                371 drivers/net/can/softing/softing_main.c 	ir = ioread8(&card->dpram[DPRAM_IRQ_TOHOST]);
ir                373 drivers/net/can/softing/softing_main.c 	return ir ? IRQ_WAKE_THREAD : IRQ_NONE;
ir                339 drivers/net/ethernet/apple/mace.c     i = in_8(&mb->ir);
ir                670 drivers/net/ethernet/apple/mace.c     intr = in_8(&mb->ir);		/* read interrupt register */
ir                683 drivers/net/ethernet/apple/mace.c 	intr = in_8(&mb->ir);
ir                820 drivers/net/ethernet/apple/mace.c     mace_handle_misc_intrs(mp, in_8(&mb->ir), dev);
ir                 20 drivers/net/ethernet/apple/mace.h 	REG(ir);		/* interrupt register */
ir                284 drivers/net/ethernet/apple/macmace.c 	i = mb->ir;
ir                563 drivers/net/ethernet/apple/macmace.c 	intr = mb->ir; /* read interrupt register */
ir                 43 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c static int hclge_shaper_para_calc(u32 ir, u8 shaper_level,
ir                 62 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 	    ir > HCLGE_ETHER_MAX_RATE)
ir                 76 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 	if (ir_calc == ir) {
ir                 82 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 	} else if (ir_calc > ir) {
ir                 84 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 		while (ir_calc >= ir && ir) {
ir                 89 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 		*ir_b = (ir * tick * (1 << ir_s_calc) + (DIVISOR_CLK >> 1)) /
ir                 95 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 		while (ir_calc < ir) {
ir                101 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 		if (ir_calc == ir) {
ir                105 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_tm.c 			*ir_b = (ir * tick + (denominator >> 1)) / denominator;
ir               1201 drivers/net/ethernet/smsc/smc91c92_cs.c     short time_out, ir;
ir               1241 drivers/net/ethernet/smsc/smc91c92_cs.c 	ir = inw(ioaddr+INTERRUPT);
ir               1242 drivers/net/ethernet/smsc/smc91c92_cs.c 	if (ir & IM_ALLOC_INT) {
ir               1244 drivers/net/ethernet/smsc/smc91c92_cs.c 	    outw((ir&0xff00) | IM_ALLOC_INT, ioaddr + INTERRUPT);
ir               1253 drivers/net/ethernet/smsc/smc91c92_cs.c     outw((IM_ALLOC_INT << 8) | (ir & 0xff00), ioaddr + INTERRUPT);
ir                923 drivers/net/ethernet/wiznet/w5100.c 	int ir = w5100_read(priv, W5100_S0_IR(priv));
ir                924 drivers/net/ethernet/wiznet/w5100.c 	if (!ir)
ir                926 drivers/net/ethernet/wiznet/w5100.c 	w5100_write(priv, W5100_S0_IR(priv), ir);
ir                928 drivers/net/ethernet/wiznet/w5100.c 	if (ir & S0_IR_SENDOK) {
ir                933 drivers/net/ethernet/wiznet/w5100.c 	if (ir & S0_IR_RECV) {
ir                419 drivers/net/ethernet/wiznet/w5300.c 	int ir = w5300_read(priv, W5300_S0_IR);
ir                420 drivers/net/ethernet/wiznet/w5300.c 	if (!ir)
ir                422 drivers/net/ethernet/wiznet/w5300.c 	w5300_write(priv, W5300_S0_IR, ir);
ir                424 drivers/net/ethernet/wiznet/w5300.c 	if (ir & S0_IR_SENDOK) {
ir                429 drivers/net/ethernet/wiznet/w5300.c 	if (ir & S0_IR_RECV) {
ir                140 drivers/pinctrl/meson/pinctrl-meson.h #define BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib,     \
ir                153 drivers/pinctrl/meson/pinctrl-meson.h 			[REG_IN]	= { ir, ib },			\
ir                158 drivers/pinctrl/meson/pinctrl-meson.h #define BANK(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib) \
ir                159 drivers/pinctrl/meson/pinctrl-meson.h 	BANK_DS(n, f, l, fi, li, per, peb, pr, pb, dr, db, or, ob, ir, ib, 0, 0)
ir                593 drivers/pinctrl/pinctrl-pistachio.c 	FUNCTION(ir),
ir                 35 drivers/s390/crypto/ap_queue.c 	qirqctrl.ir = 1;
ir                228 drivers/s390/crypto/vfio_ap_ops.c 	aqic_gisa.ir = 1;
ir                413 drivers/scsi/BusLogic.c 		if (intreg.ir.cmd_complete)
ir                471 drivers/scsi/BusLogic.c 		if (intreg.ir.cmd_complete)
ir               1158 drivers/scsi/BusLogic.c 			statusreg.sr.cmd_invalid || intreg.ir.rsvd != 0)
ir               2896 drivers/scsi/BusLogic.c 		if (intreg.ir.int_valid) {
ir               2908 drivers/scsi/BusLogic.c 			if (intreg.ir.ext_busreset)
ir               2910 drivers/scsi/BusLogic.c 			else if (intreg.ir.mailin_loaded)
ir               2912 drivers/scsi/BusLogic.c 			else if (intreg.ir.cmd_complete)
ir                322 drivers/scsi/BusLogic.h 	} ir;
ir                270 drivers/usb/host/xhci.c 		struct xhci_intr_reg __iomem *ir;
ir                272 drivers/usb/host/xhci.c 		ir = &xhci->run_regs->ir_set[i];
ir                273 drivers/usb/host/xhci.c 		val = xhci_read_64(xhci, &ir->erst_base);
ir                275 drivers/usb/host/xhci.c 			xhci_write_64(xhci, 0, &ir->erst_base);
ir                276 drivers/usb/host/xhci.c 		val= xhci_read_64(xhci, &ir->erst_dequeue);
ir                278 drivers/usb/host/xhci.c 			xhci_write_64(xhci, 0, &ir->erst_dequeue);
ir                 76 drivers/video/fbdev/bt431.h static inline void bt431_select_reg(struct bt431_regs *regs, int ir)
ir                 86 drivers/video/fbdev/bt431.h 	*lo = bt431_set_value(ir & 0xff);
ir                 88 drivers/video/fbdev/bt431.h 	*hi = bt431_set_value((ir >> 8) & 0xff);
ir                116 drivers/video/fbdev/bt431.h static inline u8 bt431_read_reg(struct bt431_regs *regs, int ir)
ir                118 drivers/video/fbdev/bt431.h 	bt431_select_reg(regs, ir);
ir                122 drivers/video/fbdev/bt431.h static inline void bt431_write_reg(struct bt431_regs *regs, int ir, u8 value)
ir                124 drivers/video/fbdev/bt431.h 	bt431_select_reg(regs, ir);
ir                 27 drivers/video/fbdev/bt455.h static inline void bt455_select_reg(struct bt455_regs *regs, int ir)
ir                 30 drivers/video/fbdev/bt455.h 	regs->addr_cmap = ir & 0x0f;
ir                 72 fs/ntfs/dir.c  	INDEX_ROOT *ir;
ir                112 fs/ntfs/dir.c  	ir = (INDEX_ROOT*)((u8*)ctx->attr +
ir                114 fs/ntfs/dir.c  	index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length);
ir                116 fs/ntfs/dir.c  	ie = (INDEX_ENTRY*)((u8*)&ir->index +
ir                117 fs/ntfs/dir.c  			le32_to_cpu(ir->index.entries_offset));
ir                625 fs/ntfs/dir.c  	INDEX_ROOT *ir;
ir                663 fs/ntfs/dir.c  	ir = (INDEX_ROOT*)((u8*)ctx->attr +
ir                665 fs/ntfs/dir.c  	index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length);
ir                667 fs/ntfs/dir.c  	ie = (INDEX_ENTRY*)((u8*)&ir->index +
ir                668 fs/ntfs/dir.c  			le32_to_cpu(ir->index.entries_offset));
ir               1094 fs/ntfs/dir.c  	INDEX_ROOT *ir = NULL;
ir               1161 fs/ntfs/dir.c  	ir = kmalloc(rc, GFP_NOFS);
ir               1162 fs/ntfs/dir.c  	if (unlikely(!ir)) {
ir               1167 fs/ntfs/dir.c  	memcpy(ir, (u8*)ctx->attr +
ir               1173 fs/ntfs/dir.c  	index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length);
ir               1175 fs/ntfs/dir.c  	ie = (INDEX_ENTRY*)((u8*)&ir->index +
ir               1176 fs/ntfs/dir.c  			le32_to_cpu(ir->index.entries_offset));
ir               1183 fs/ntfs/dir.c  		ntfs_debug("In index root, offset 0x%zx.", (u8*)ie - (u8*)ir);
ir               1185 fs/ntfs/dir.c  		if (unlikely((u8*)ie < (u8*)ir || (u8*)ie +
ir               1194 fs/ntfs/dir.c  		if (ir_pos > (u8*)ie - (u8*)ir)
ir               1197 fs/ntfs/dir.c  		actor->pos = (u8*)ie - (u8*)ir;
ir               1201 fs/ntfs/dir.c  			kfree(ir);
ir               1206 fs/ntfs/dir.c  	kfree(ir);
ir               1207 fs/ntfs/dir.c  	ir = NULL;
ir               1422 fs/ntfs/dir.c  	kfree(ir);
ir                114 fs/ntfs/index.c 	INDEX_ROOT *ir;
ir                161 fs/ntfs/index.c 	ir = (INDEX_ROOT*)((u8*)actx->attr +
ir                163 fs/ntfs/index.c 	index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length);
ir                165 fs/ntfs/index.c 	ie = (INDEX_ENTRY*)((u8*)&ir->index +
ir                166 fs/ntfs/index.c 			le32_to_cpu(ir->index.entries_offset));
ir                196 fs/ntfs/index.c 			ictx->ir = ir;
ir                 67 fs/ntfs/index.h 	INDEX_ROOT *ir;
ir                756 fs/ntfs/inode.c 		INDEX_ROOT *ir;
ir                805 fs/ntfs/inode.c 		ir = (INDEX_ROOT*)((u8*)a +
ir                807 fs/ntfs/inode.c 		ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length);
ir                813 fs/ntfs/inode.c 		index_end = (u8*)&ir->index +
ir                814 fs/ntfs/inode.c 				le32_to_cpu(ir->index.index_length);
ir                819 fs/ntfs/inode.c 		if (ir->type != AT_FILE_NAME) {
ir                824 fs/ntfs/inode.c 		if (ir->collation_rule != COLLATION_FILE_NAME) {
ir                829 fs/ntfs/inode.c 		ni->itype.index.collation_rule = ir->collation_rule;
ir                830 fs/ntfs/inode.c 		ni->itype.index.block_size = le32_to_cpu(ir->index_block_size);
ir                873 fs/ntfs/inode.c 		if (!(ir->index.flags & LARGE_INDEX)) {
ir               1467 fs/ntfs/inode.c 	INDEX_ROOT *ir;
ir               1528 fs/ntfs/inode.c 	ir = (INDEX_ROOT*)((u8*)a + le16_to_cpu(a->data.resident.value_offset));
ir               1529 fs/ntfs/inode.c 	ir_end = (u8*)ir + le32_to_cpu(a->data.resident.value_length);
ir               1534 fs/ntfs/inode.c 	index_end = (u8*)&ir->index + le32_to_cpu(ir->index.index_length);
ir               1539 fs/ntfs/inode.c 	if (ir->type) {
ir               1541 fs/ntfs/inode.c 				le32_to_cpu(ir->type));
ir               1544 fs/ntfs/inode.c 	ni->itype.index.collation_rule = ir->collation_rule;
ir               1546 fs/ntfs/inode.c 			le32_to_cpu(ir->collation_rule));
ir               1547 fs/ntfs/inode.c 	ni->itype.index.block_size = le32_to_cpu(ir->index_block_size);
ir               1577 fs/ntfs/inode.c 	if (!(ir->index.flags & LARGE_INDEX)) {
ir                 23 include/media/i2c/ir-kbd-i2c.h 	int                    (*get_key)(struct IR_i2c *ir,
ir                 54 include/media/i2c/ir-kbd-i2c.h 	int                    (*get_key)(struct IR_i2c *ir,
ir                733 include/media/v4l2-subdev.h 	const struct v4l2_subdev_ir_ops		*ir;
ir                 52 lib/lzo/lzo1x_compress.c 			const unsigned char *ir = ip + 4;
ir                 60 lib/lzo/lzo1x_compress.c 			for (; (ir + 32) <= limit; ir += 32) {
ir                 61 lib/lzo/lzo1x_compress.c 				dv64 = get_unaligned((u64 *)ir);
ir                 62 lib/lzo/lzo1x_compress.c 				dv64 |= get_unaligned((u64 *)ir + 1);
ir                 63 lib/lzo/lzo1x_compress.c 				dv64 |= get_unaligned((u64 *)ir + 2);
ir                 64 lib/lzo/lzo1x_compress.c 				dv64 |= get_unaligned((u64 *)ir + 3);
ir                 68 lib/lzo/lzo1x_compress.c 			for (; (ir + 8) <= limit; ir += 8) {
ir                 69 lib/lzo/lzo1x_compress.c 				dv64 = get_unaligned((u64 *)ir);
ir                 72 lib/lzo/lzo1x_compress.c 					ir += __builtin_ctzll(dv64) >> 3;
ir                 74 lib/lzo/lzo1x_compress.c 					ir += __builtin_clzll(dv64) >> 3;
ir                 82 lib/lzo/lzo1x_compress.c 			while ((ir < (const unsigned char *)
ir                 83 lib/lzo/lzo1x_compress.c 					ALIGN((uintptr_t)ir, 4)) &&
ir                 84 lib/lzo/lzo1x_compress.c 					(ir < limit) && (*ir == 0))
ir                 85 lib/lzo/lzo1x_compress.c 				ir++;
ir                 86 lib/lzo/lzo1x_compress.c 			if (IS_ALIGNED((uintptr_t)ir, 4)) {
ir                 87 lib/lzo/lzo1x_compress.c 				for (; (ir + 4) <= limit; ir += 4) {
ir                 88 lib/lzo/lzo1x_compress.c 					dv = *((u32 *)ir);
ir                 91 lib/lzo/lzo1x_compress.c 						ir += __builtin_ctz(dv) >> 3;
ir                 93 lib/lzo/lzo1x_compress.c 						ir += __builtin_clz(dv) >> 3;
ir                102 lib/lzo/lzo1x_compress.c 			while (likely(ir < limit) && unlikely(*ir == 0))
ir                103 lib/lzo/lzo1x_compress.c 				ir++;
ir                104 lib/lzo/lzo1x_compress.c 			run_length = ir - ip;
ir               1246 net/bluetooth/hci_core.c 	struct hci_inquiry_req *ir = (struct hci_inquiry_req *) opt;
ir               1256 net/bluetooth/hci_core.c 	memcpy(&cp.lap, &ir->lap, 3);
ir               1257 net/bluetooth/hci_core.c 	cp.length  = ir->length;
ir               1258 net/bluetooth/hci_core.c 	cp.num_rsp = ir->num_rsp;
ir               1267 net/bluetooth/hci_core.c 	struct hci_inquiry_req ir;
ir               1273 net/bluetooth/hci_core.c 	if (copy_from_user(&ir, ptr, sizeof(ir)))
ir               1276 net/bluetooth/hci_core.c 	hdev = hci_dev_get(ir.dev_id);
ir               1302 net/bluetooth/hci_core.c 	    inquiry_cache_empty(hdev) || ir.flags & IREQ_CACHE_FLUSH) {
ir               1308 net/bluetooth/hci_core.c 	timeo = ir.length * msecs_to_jiffies(2000);
ir               1311 net/bluetooth/hci_core.c 		err = hci_req_sync(hdev, hci_inq_req, (unsigned long) &ir,
ir               1327 net/bluetooth/hci_core.c 	max_rsp = (ir.num_rsp == 0) ? 255 : ir.num_rsp;
ir               1339 net/bluetooth/hci_core.c 	ir.num_rsp = inquiry_cache_dump(hdev, max_rsp, buf);
ir               1342 net/bluetooth/hci_core.c 	BT_DBG("num_rsp %d", ir.num_rsp);
ir               1344 net/bluetooth/hci_core.c 	if (!copy_to_user(ptr, &ir, sizeof(ir))) {
ir               1345 net/bluetooth/hci_core.c 		ptr += sizeof(ir);
ir               1347 net/bluetooth/hci_core.c 				 ir.num_rsp))
ir                345 net/ipv4/ipconfig.c 	struct ifreq ir;
ir                346 net/ipv4/ipconfig.c 	struct sockaddr_in *sin = (void *) &ir.ifr_ifru.ifru_addr;
ir                349 net/ipv4/ipconfig.c 	memset(&ir, 0, sizeof(ir));
ir                350 net/ipv4/ipconfig.c 	strcpy(ir.ifr_ifrn.ifrn_name, ic_dev->dev->name);
ir                352 net/ipv4/ipconfig.c 	if ((err = devinet_ioctl(&init_net, SIOCSIFADDR, &ir)) < 0) {
ir                358 net/ipv4/ipconfig.c 	if ((err = devinet_ioctl(&init_net, SIOCSIFNETMASK, &ir)) < 0) {
ir                364 net/ipv4/ipconfig.c 	if ((err = devinet_ioctl(&init_net, SIOCSIFBRDADDR, &ir)) < 0) {
ir                543 sound/soc/codecs/sta32x.c 	int ir;
ir                654 sound/soc/codecs/sta32x.c 	int i, mcs = -EINVAL, ir = -EINVAL;
ir                671 sound/soc/codecs/sta32x.c 			ir = interpolation_ratios[i].ir;
ir                676 sound/soc/codecs/sta32x.c 	if (ir < 0) {
ir                682 sound/soc/codecs/sta32x.c 		if (mcs_ratio_table[ir][i] == ratio) {
ir                693 sound/soc/codecs/sta32x.c 	confa = (ir << STA32X_CONFA_IR_SHIFT) |
ir                577 sound/soc/codecs/sta350.c 	int ir;
ir                683 sound/soc/codecs/sta350.c 	int i, mcs = -EINVAL, ir = -EINVAL;
ir                700 sound/soc/codecs/sta350.c 			ir = interpolation_ratios[i].ir;
ir                705 sound/soc/codecs/sta350.c 	if (ir < 0) {
ir                711 sound/soc/codecs/sta350.c 		if (mcs_ratio_table[ir][i] == ratio) {
ir                722 sound/soc/codecs/sta350.c 	confa = (ir << STA350_CONFA_IR_SHIFT) |
ir                919 sound/soc/sh/rcar/core.c 	struct snd_interval *ir = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
ir                935 sound/soc/sh/rcar/core.c 				&ic, ir);
ir                942 sound/soc/sh/rcar/core.c 	struct snd_interval *ir = hw_param_interval(params, SNDRV_PCM_HW_PARAM_RATE);
ir                958 sound/soc/sh/rcar/core.c 				ir, &ic);
ir               1231 sound/soc/uniphier/aio-core.c 	u32 ir;
ir               1233 sound/soc/uniphier/aio-core.c 	regmap_read(r, CDA2D_RBMXIR(sub->swm->rb.map), &ir);
ir               1236 sound/soc/uniphier/aio-core.c 		return !!(ir & CDA2D_RBMXIX_SPACE);
ir               1238 sound/soc/uniphier/aio-core.c 		return !!(ir & CDA2D_RBMXIX_REMAIN);
ir                499 sound/sparc/amd7930.c 	u8 ir;
ir                505 sound/sparc/amd7930.c 	ir = sbus_readb(amd->regs + AMD7930_IR);
ir                506 sound/sparc/amd7930.c 	if (ir & AMR_IR_BBUF) {