sel               206 arch/alpha/kernel/time.c 	unsigned char x, sel = 0;
sel               214 arch/alpha/kernel/time.c 		sel = RTC_REF_CLCK_32KHZ + 6;
sel               217 arch/alpha/kernel/time.c 	sel = RTC_REF_CLCK_32KHZ + __builtin_ffs(32768 / CONFIG_HZ);
sel               221 arch/alpha/kernel/time.c 	if (sel) {
sel               223 arch/alpha/kernel/time.c 		       CONFIG_HZ, sel);
sel               224 arch/alpha/kernel/time.c 		CMOS_WRITE(sel, RTC_FREQ_SELECT);
sel                71 arch/arm/mach-dove/mpp.c static void __init dove_mpp_cfg_nfc(int sel)
sel                76 arch/arm/mach-dove/mpp.c 	mpp_gen_cfg |= sel;
sel                82 arch/arm/mach-dove/mpp.c static void __init dove_mpp_cfg_au1(int sel)
sel                94 arch/arm/mach-dove/mpp.c 	if (!sel || sel == 0x2)
sel                99 arch/arm/mach-dove/mpp.c 	if (sel & 0x1) {
sel               103 arch/arm/mach-dove/mpp.c 	if (sel & 0x2) {
sel               107 arch/arm/mach-dove/mpp.c 	if (sel & 0x4) {
sel               111 arch/arm/mach-dove/mpp.c 	if (sel & 0x8)
sel               129 arch/arm/mach-dove/mpp.c 		unsigned int sel = MPP_SEL(*mpp_grp_list);
sel               137 arch/arm/mach-dove/mpp.c 		mpp_ctrl4 |= sel << num;
sel               139 arch/arm/mach-dove/mpp.c 		gpio_mode = sel ? GPIO_OUTPUT_OK | GPIO_INPUT_OK : 0;
sel                48 arch/arm/plat-orion/mpp.c 		unsigned int sel = MPP_SEL(*mpp_list);
sel                65 arch/arm/plat-orion/mpp.c 		mpp_ctrl[num / 8] |= sel << shift;
sel               233 arch/mips/include/asm/asmmacro.h 	.macro	MFTR	rt=0, rd=0, u=0, sel=0
sel               237 arch/mips/include/asm/asmmacro.h 	.macro	MTTR	rt=0, rd=0, u=0, sel=0
sel               475 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_RW_SAVED(name, type, _reg, sel)			\
sel               478 arch/mips/include/asm/kvm_host.h 	return cop0->reg[(_reg)][(sel)];				\
sel               483 arch/mips/include/asm/kvm_host.h 	cop0->reg[(_reg)][(sel)] = val;					\
sel               487 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_SET_SAVED(name, type, _reg, sel)			\
sel               491 arch/mips/include/asm/kvm_host.h 	cop0->reg[(_reg)][(sel)] |= val;				\
sel               496 arch/mips/include/asm/kvm_host.h 	cop0->reg[(_reg)][(sel)] &= ~val;				\
sel               503 arch/mips/include/asm/kvm_host.h 	cop0->reg[(_reg)][(sel)] &= ~_mask;				\
sel               504 arch/mips/include/asm/kvm_host.h 	cop0->reg[(_reg)][(sel)] |= val & _mask;			\
sel               508 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_ATOMIC_SAVED(name, type, _reg, sel)			\
sel               512 arch/mips/include/asm/kvm_host.h 	_kvm_atomic_set_c0_guest_reg(&cop0->reg[(_reg)][(sel)], val);	\
sel               517 arch/mips/include/asm/kvm_host.h 	_kvm_atomic_clear_c0_guest_reg(&cop0->reg[(_reg)][(sel)], val);	\
sel               523 arch/mips/include/asm/kvm_host.h 	_kvm_atomic_change_c0_guest_reg(&cop0->reg[(_reg)][(sel)], mask, \
sel               533 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_RW_VZ(name, type, _reg, sel)			\
sel               545 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_SET_VZ(name, type, _reg, sel)			\
sel               564 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_SAVE_VZ(name, _reg, sel)			\
sel               567 arch/mips/include/asm/kvm_host.h 	write_gc0_##name(cop0->reg[(_reg)][(sel)]);			\
sel               571 arch/mips/include/asm/kvm_host.h 	cop0->reg[(_reg)][(sel)] = read_gc0_##name();			\
sel               616 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_RW_SW(name, type, _reg, sel)			\
sel               617 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_RW_SAVED(name, type, _reg, sel)			\
sel               620 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_SET_SW(name, type, _reg, sel)			\
sel               621 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_SET_SAVED(name, type, _reg, sel)			\
sel               624 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_ATOMIC_SW(name, type, _reg, sel)			\
sel               625 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_ATOMIC_SAVED(name, type, _reg, sel)			\
sel               657 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_RW_HW(name, type, _reg, sel)			\
sel               658 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_RW_SAVED(name, type, _reg, sel)			\
sel               659 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_RW_VZ(name, type, _reg, sel)			\
sel               661 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_SAVE_VZ(name, _reg, sel)
sel               663 arch/mips/include/asm/kvm_host.h #define __BUILD_KVM_SET_HW(name, type, _reg, sel)			\
sel               664 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_SET_SAVED(name, type, _reg, sel)			\
sel               665 arch/mips/include/asm/kvm_host.h 	__BUILD_KVM_SET_VZ(name, type, _reg, sel)			\
sel               286 arch/mips/include/asm/mipsmtregs.h #define mftc0(rt,sel)							\
sel               294 arch/mips/include/asm/mipsmtregs.h 	"	# mftc0 $1, $" #rt ", " #sel "			\n"	\
sel               295 arch/mips/include/asm/mipsmtregs.h 	"	.word	0x41000800 | (" #rt " << 16) | " #sel " \n"	\
sel               320 arch/mips/include/asm/mipsmtregs.h #define mftr(rt, u, sel)							\
sel               325 arch/mips/include/asm/mipsmtregs.h 	"	mftr	%0, " #rt ", " #u ", " #sel "		\n"	\
sel               344 arch/mips/include/asm/mipsmtregs.h #define mttc0(rd, sel, v)							\
sel               351 arch/mips/include/asm/mipsmtregs.h 	"	# mttc0 %0," #rd ", " #sel "			\n"	\
sel               352 arch/mips/include/asm/mipsmtregs.h 	"	.word	0x41810000 | (" #rd " << 11) | " #sel " \n"	\
sel               359 arch/mips/include/asm/mipsmtregs.h #define mttr(rd, u, sel, v)						\
sel               362 arch/mips/include/asm/mipsmtregs.h 	"mttr	%0," #rd ", " #u ", " #sel				\
sel              1351 arch/mips/include/asm/mipsregs.h #define ___read_32bit_c0_register(source, sel, vol)			\
sel              1353 arch/mips/include/asm/mipsregs.h 	if (sel == 0)							\
sel              1361 arch/mips/include/asm/mipsregs.h 			"mfc0\t%0, " #source ", " #sel "\n\t"		\
sel              1367 arch/mips/include/asm/mipsregs.h #define ___read_64bit_c0_register(source, sel, vol)			\
sel              1370 arch/mips/include/asm/mipsregs.h 		__res = __read_64bit_c0_split(source, sel, vol);	\
sel              1371 arch/mips/include/asm/mipsregs.h 	else if (sel == 0)						\
sel              1382 arch/mips/include/asm/mipsregs.h 			"dmfc0\t%0, " #source ", " #sel "\n\t"		\
sel              1388 arch/mips/include/asm/mipsregs.h #define __read_32bit_c0_register(source, sel)				\
sel              1389 arch/mips/include/asm/mipsregs.h 	___read_32bit_c0_register(source, sel, __volatile__)
sel              1391 arch/mips/include/asm/mipsregs.h #define __read_const_32bit_c0_register(source, sel)			\
sel              1392 arch/mips/include/asm/mipsregs.h 	___read_32bit_c0_register(source, sel,)
sel              1394 arch/mips/include/asm/mipsregs.h #define __read_64bit_c0_register(source, sel)				\
sel              1395 arch/mips/include/asm/mipsregs.h 	___read_64bit_c0_register(source, sel, __volatile__)
sel              1397 arch/mips/include/asm/mipsregs.h #define __read_const_64bit_c0_register(source, sel)			\
sel              1398 arch/mips/include/asm/mipsregs.h 	___read_64bit_c0_register(source, sel,)
sel              1400 arch/mips/include/asm/mipsregs.h #define __write_32bit_c0_register(register, sel, value)			\
sel              1402 arch/mips/include/asm/mipsregs.h 	if (sel == 0)							\
sel              1410 arch/mips/include/asm/mipsregs.h 			"mtc0\t%z0, " #register ", " #sel "\n\t"	\
sel              1415 arch/mips/include/asm/mipsregs.h #define __write_64bit_c0_register(register, sel, value)			\
sel              1418 arch/mips/include/asm/mipsregs.h 		__write_64bit_c0_split(register, sel, value);		\
sel              1419 arch/mips/include/asm/mipsregs.h 	else if (sel == 0)						\
sel              1430 arch/mips/include/asm/mipsregs.h 			"dmtc0\t%z0, " #register ", " #sel "\n\t"	\
sel              1435 arch/mips/include/asm/mipsregs.h #define __read_ulong_c0_register(reg, sel)				\
sel              1437 arch/mips/include/asm/mipsregs.h 	(unsigned long) __read_32bit_c0_register(reg, sel) :		\
sel              1438 arch/mips/include/asm/mipsregs.h 	(unsigned long) __read_64bit_c0_register(reg, sel))
sel              1440 arch/mips/include/asm/mipsregs.h #define __read_const_ulong_c0_register(reg, sel)			\
sel              1442 arch/mips/include/asm/mipsregs.h 	(unsigned long) __read_const_32bit_c0_register(reg, sel) :	\
sel              1443 arch/mips/include/asm/mipsregs.h 	(unsigned long) __read_const_64bit_c0_register(reg, sel))
sel              1445 arch/mips/include/asm/mipsregs.h #define __write_ulong_c0_register(reg, sel, val)			\
sel              1448 arch/mips/include/asm/mipsregs.h 		__write_32bit_c0_register(reg, sel, val);		\
sel              1450 arch/mips/include/asm/mipsregs.h 		__write_64bit_c0_register(reg, sel, val);		\
sel              1475 arch/mips/include/asm/mipsregs.h #define __read_64bit_c0_split(source, sel, vol)				\
sel              1481 arch/mips/include/asm/mipsregs.h 	if (sel == 0)							\
sel              1494 arch/mips/include/asm/mipsregs.h 			"dmfc0\t%L0, " #source ", " #sel "\n\t"		\
sel              1504 arch/mips/include/asm/mipsregs.h #define __write_64bit_c0_split(source, sel, val)			\
sel              1515 arch/mips/include/asm/mipsregs.h 			"dmtc0\t%L0, " #source ", " #sel "\n\t"		\
sel              1518 arch/mips/include/asm/mipsregs.h 	else if (sel == 0)						\
sel              1537 arch/mips/include/asm/mipsregs.h 			"dmtc0\t%L0, " #source ", " #sel "\n\t"		\
sel              1544 arch/mips/include/asm/mipsregs.h _ASM_MACRO_2R_1S(mfhc0, rt, rs, sel,
sel              1545 arch/mips/include/asm/mipsregs.h 	_ASM_INSN_IF_MIPS(0x40400000 | __rt << 16 | __rs << 11 | \\sel)
sel              1546 arch/mips/include/asm/mipsregs.h 	_ASM_INSN32_IF_MM(0x000000f4 | __rt << 21 | __rs << 16 | \\sel << 11));
sel              1547 arch/mips/include/asm/mipsregs.h _ASM_MACRO_2R_1S(mthc0, rt, rd, sel,
sel              1548 arch/mips/include/asm/mipsregs.h 	_ASM_INSN_IF_MIPS(0x40c00000 | __rt << 16 | __rd << 11 | \\sel)
sel              1549 arch/mips/include/asm/mipsregs.h 	_ASM_INSN32_IF_MM(0x000002f4 | __rt << 21 | __rd << 16 | \\sel << 11));
sel              1555 arch/mips/include/asm/mipsregs.h #define __readx_32bit_c0_register(source, sel)				\
sel              1566 arch/mips/include/asm/mipsregs.h 	: "i" (sel));							\
sel              1570 arch/mips/include/asm/mipsregs.h #define __writex_32bit_c0_register(register, sel, value)		\
sel              1579 arch/mips/include/asm/mipsregs.h 	: "Jr" (value), "i" (sel));					\
sel              1979 arch/mips/include/asm/mipsregs.h _ASM_MACRO_2R_1S(mfgc0, rt, rs, sel,
sel              1980 arch/mips/include/asm/mipsregs.h 	_ASM_INSN_IF_MIPS(0x40600000 | __rt << 16 | __rs << 11 | \\sel)
sel              1981 arch/mips/include/asm/mipsregs.h 	_ASM_INSN32_IF_MM(0x000004fc | __rt << 21 | __rs << 16 | \\sel << 11));
sel              1982 arch/mips/include/asm/mipsregs.h _ASM_MACRO_2R_1S(dmfgc0, rt, rs, sel,
sel              1983 arch/mips/include/asm/mipsregs.h 	_ASM_INSN_IF_MIPS(0x40600100 | __rt << 16 | __rs << 11 | \\sel)
sel              1984 arch/mips/include/asm/mipsregs.h 	_ASM_INSN32_IF_MM(0x580004fc | __rt << 21 | __rs << 16 | \\sel << 11));
sel              1985 arch/mips/include/asm/mipsregs.h _ASM_MACRO_2R_1S(mtgc0, rt, rd, sel,
sel              1986 arch/mips/include/asm/mipsregs.h 	_ASM_INSN_IF_MIPS(0x40600200 | __rt << 16 | __rd << 11 | \\sel)
sel              1987 arch/mips/include/asm/mipsregs.h 	_ASM_INSN32_IF_MM(0x000006fc | __rt << 21 | __rd << 16 | \\sel << 11));
sel              1988 arch/mips/include/asm/mipsregs.h _ASM_MACRO_2R_1S(dmtgc0, rt, rd, sel,
sel              1989 arch/mips/include/asm/mipsregs.h 	_ASM_INSN_IF_MIPS(0x40600300 | __rt << 16 | __rd << 11 | \\sel)
sel              1990 arch/mips/include/asm/mipsregs.h 	_ASM_INSN32_IF_MM(0x580006fc | __rt << 21 | __rd << 16 | \\sel << 11));
sel              2006 arch/mips/include/asm/mipsregs.h #define __read_32bit_gc0_register(source, sel)				\
sel              2015 arch/mips/include/asm/mipsregs.h 		: "i" (sel));						\
sel              2019 arch/mips/include/asm/mipsregs.h #define __read_64bit_gc0_register(source, sel)				\
sel              2028 arch/mips/include/asm/mipsregs.h 		: "i" (sel));						\
sel              2032 arch/mips/include/asm/mipsregs.h #define __write_32bit_gc0_register(register, sel, value)		\
sel              2041 arch/mips/include/asm/mipsregs.h 		    "i" (sel));						\
sel              2044 arch/mips/include/asm/mipsregs.h #define __write_64bit_gc0_register(register, sel, value)		\
sel              2053 arch/mips/include/asm/mipsregs.h 		    "i" (sel));						\
sel              2056 arch/mips/include/asm/mipsregs.h #define __read_ulong_gc0_register(reg, sel)				\
sel              2058 arch/mips/include/asm/mipsregs.h 	(unsigned long) __read_32bit_gc0_register(reg, sel) :		\
sel              2059 arch/mips/include/asm/mipsregs.h 	(unsigned long) __read_64bit_gc0_register(reg, sel))
sel              2061 arch/mips/include/asm/mipsregs.h #define __write_ulong_gc0_register(reg, sel, val)			\
sel              2064 arch/mips/include/asm/mipsregs.h 		__write_32bit_gc0_register(reg, sel, val);		\
sel              2066 arch/mips/include/asm/mipsregs.h 		__write_64bit_gc0_register(reg, sel, val);		\
sel               174 arch/mips/include/asm/netlogic/mips-extns.h #define __read_64bit_c2_split(source, sel)				\
sel               180 arch/mips/include/asm/netlogic/mips-extns.h 	if (sel == 0)							\
sel               192 arch/mips/include/asm/netlogic/mips-extns.h 			"dmfc2\t%M0, " #source ", " #sel "\n\t"		\
sel               203 arch/mips/include/asm/netlogic/mips-extns.h #define __write_64bit_c2_split(source, sel, val)			\
sel               208 arch/mips/include/asm/netlogic/mips-extns.h 	if (sel == 0)							\
sel               225 arch/mips/include/asm/netlogic/mips-extns.h 			"dmtc2\t%L0, " #source ", " #sel "\n\t"		\
sel               231 arch/mips/include/asm/netlogic/mips-extns.h #define __read_32bit_c2_register(source, sel)				\
sel               233 arch/mips/include/asm/netlogic/mips-extns.h 	if (sel == 0)							\
sel               242 arch/mips/include/asm/netlogic/mips-extns.h 			"mfc2\t%0, " #source ", " #sel "\n\t"		\
sel               248 arch/mips/include/asm/netlogic/mips-extns.h #define __read_64bit_c2_register(source, sel)				\
sel               251 arch/mips/include/asm/netlogic/mips-extns.h 		__res = __read_64bit_c2_split(source, sel);		\
sel               252 arch/mips/include/asm/netlogic/mips-extns.h 	else if (sel == 0)						\
sel               261 arch/mips/include/asm/netlogic/mips-extns.h 			"dmfc2\t%0, " #source ", " #sel "\n\t"		\
sel               267 arch/mips/include/asm/netlogic/mips-extns.h #define __write_64bit_c2_register(register, sel, value)			\
sel               270 arch/mips/include/asm/netlogic/mips-extns.h 		__write_64bit_c2_split(register, sel, value);		\
sel               271 arch/mips/include/asm/netlogic/mips-extns.h 	else if (sel == 0)						\
sel               280 arch/mips/include/asm/netlogic/mips-extns.h 			"dmtc2\t%z0, " #register ", " #sel "\n\t"	\
sel               285 arch/mips/include/asm/netlogic/mips-extns.h #define __write_32bit_c2_register(reg, sel, value)			\
sel               287 arch/mips/include/asm/netlogic/mips-extns.h 	if (sel == 0)							\
sel               296 arch/mips/include/asm/netlogic/mips-extns.h 			"mtc2\t%z0, " #reg ", " #sel "\n\t"		\
sel               182 arch/mips/include/asm/netlogic/xlr/fmn.h #define nlm_read_c2_status(sel)		__read_32bit_c2_register($2, 0)
sel               283 arch/mips/include/asm/octeon/cvmx-gpio-defs.h 		uint64_t sel:4;
sel               285 arch/mips/include/asm/octeon/cvmx-gpio-defs.h 		uint64_t sel:4;
sel               244 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t sel:1;
sel               250 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t sel:1;
sel               261 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t sel:1;
sel               267 arch/mips/include/asm/octeon/cvmx-lmcx-defs.h 		uint64_t sel:1;
sel              2795 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t sel:5;
sel              2797 arch/mips/include/asm/octeon/cvmx-mio-defs.h 		uint64_t sel:5;
sel               673 arch/mips/include/uapi/asm/inst.h 	__BITFIELD_FIELD(unsigned int sel : 3,
sel               685 arch/mips/include/uapi/asm/inst.h 	__BITFIELD_FIELD(unsigned int sel : 3,
sel               748 arch/mips/include/uapi/asm/inst.h 	__BITFIELD_FIELD(unsigned int sel : 4,
sel               101 arch/mips/kvm/dyntrans.c 	u32 rd, sel;
sel               104 arch/mips/kvm/dyntrans.c 	sel = inst.c0r_format.sel;
sel               106 arch/mips/kvm/dyntrans.c 	if (rd == MIPS_CP0_ERRCTL && sel == 0) {
sel               114 arch/mips/kvm/dyntrans.c 			offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]);
sel               128 arch/mips/kvm/dyntrans.c 	u32 rd, sel;
sel               131 arch/mips/kvm/dyntrans.c 	sel = inst.c0r_format.sel;
sel               136 arch/mips/kvm/dyntrans.c 		offsetof(struct kvm_mips_commpage, cop0.reg[rd][sel]);
sel              1270 arch/mips/kvm/emulate.c 	u32 rt, rd, sel;
sel              1312 arch/mips/kvm/emulate.c 		sel = inst.c0r_format.sel;
sel              1317 arch/mips/kvm/emulate.c 			cop0->stat[rd][sel]++;
sel              1320 arch/mips/kvm/emulate.c 			if ((rd == MIPS_CP0_COUNT) && (sel == 0)) {
sel              1323 arch/mips/kvm/emulate.c 			} else if ((rd == MIPS_CP0_ERRCTL) && (sel == 0)) {
sel              1329 arch/mips/kvm/emulate.c 				vcpu->arch.gprs[rt] = (s32)cop0->reg[rd][sel];
sel              1337 arch/mips/kvm/emulate.c 				      KVM_TRACE_COP0(rd, sel),
sel              1342 arch/mips/kvm/emulate.c 			vcpu->arch.gprs[rt] = cop0->reg[rd][sel];
sel              1345 arch/mips/kvm/emulate.c 				      KVM_TRACE_COP0(rd, sel),
sel              1351 arch/mips/kvm/emulate.c 			cop0->stat[rd][sel]++;
sel              1354 arch/mips/kvm/emulate.c 				      KVM_TRACE_COP0(rd, sel),
sel              1365 arch/mips/kvm/emulate.c 			if ((rd == MIPS_CP0_PRID) && (sel == 1)) {
sel              1372 arch/mips/kvm/emulate.c 			} else if (rd == MIPS_CP0_TLB_HI && sel == 0) {
sel              1377 arch/mips/kvm/emulate.c 			else if ((rd == MIPS_CP0_COUNT) && (sel == 0)) {
sel              1380 arch/mips/kvm/emulate.c 			} else if ((rd == MIPS_CP0_COMPARE) && (sel == 0)) {
sel              1386 arch/mips/kvm/emulate.c 			} else if ((rd == MIPS_CP0_STATUS) && (sel == 0)) {
sel              1458 arch/mips/kvm/emulate.c 			} else if ((rd == MIPS_CP0_CONFIG) && (sel == 5)) {
sel              1495 arch/mips/kvm/emulate.c 			} else if ((rd == MIPS_CP0_CAUSE) && (sel == 0)) {
sel              1510 arch/mips/kvm/emulate.c 			} else if ((rd == MIPS_CP0_HWRENA) && (sel == 0)) {
sel              1519 arch/mips/kvm/emulate.c 				cop0->reg[rd][sel] = vcpu->arch.gprs[rt] & mask;
sel              1521 arch/mips/kvm/emulate.c 				cop0->reg[rd][sel] = vcpu->arch.gprs[rt];
sel              1530 arch/mips/kvm/emulate.c 				vcpu->arch.pc, rt, rd, sel);
sel              1532 arch/mips/kvm/emulate.c 				      KVM_TRACE_COP0(rd, sel),
sel              2520 arch/mips/kvm/emulate.c 		int sel = inst.r_format.re & 0x7;
sel              2558 arch/mips/kvm/emulate.c 		trace_kvm_hwr(vcpu, KVM_TRACE_RDHWR, KVM_TRACE_HWR(rd, sel),
sel               907 arch/mips/kvm/vz.c 	u32 rt, rd, sel;
sel               931 arch/mips/kvm/vz.c 		sel = inst.c0r_format.sel;
sel               937 arch/mips/kvm/vz.c 			cop0->stat[rd][sel]++;
sel               940 arch/mips/kvm/vz.c 			    sel == 0) {			/* Count */
sel               943 arch/mips/kvm/vz.c 				   sel == 0) {		/* Compare */
sel               946 arch/mips/kvm/vz.c 				   sel == 0) {		/* LLAddr */
sel               953 arch/mips/kvm/vz.c 				   sel == 1 &&		/* MAAR */
sel               962 arch/mips/kvm/vz.c 				    (sel == 0 ||	/* PRid */
sel               963 arch/mips/kvm/vz.c 				     sel == 2 ||	/* CDMMBase */
sel               964 arch/mips/kvm/vz.c 				     sel == 3)) ||	/* CMGCRBase */
sel               966 arch/mips/kvm/vz.c 				    (sel == 2 ||	/* SRSCtl */
sel               967 arch/mips/kvm/vz.c 				     sel == 3)) ||	/* SRSMap */
sel               969 arch/mips/kvm/vz.c 				    (sel == 7)) ||	/* Config7 */
sel               971 arch/mips/kvm/vz.c 				    (sel == 2) &&	/* MAARI */
sel               975 arch/mips/kvm/vz.c 				    (sel == 0))) {	/* ErrCtl */
sel               976 arch/mips/kvm/vz.c 				val = cop0->reg[rd][sel];
sel               991 arch/mips/kvm/vz.c 				      KVM_TRACE_COP0(rd, sel), val);
sel               997 arch/mips/kvm/vz.c 			cop0->stat[rd][sel]++;
sel              1002 arch/mips/kvm/vz.c 				      KVM_TRACE_COP0(rd, sel), val);
sel              1005 arch/mips/kvm/vz.c 			    sel == 0) {			/* Count */
sel              1009 arch/mips/kvm/vz.c 				   sel == 0) {		/* Compare */
sel              1014 arch/mips/kvm/vz.c 				   sel == 0) {		/* LLAddr */
sel              1023 arch/mips/kvm/vz.c 				   sel == 1 &&		/* MAAR */
sel              1035 arch/mips/kvm/vz.c 				   (sel == 2) &&	/* MAARI */
sel              1040 arch/mips/kvm/vz.c 				   (sel == 0)) {	/* ErrCtl */
sel              1139 arch/mips/kvm/vz.c 	int rd, rt, sel;
sel              1175 arch/mips/kvm/vz.c 			sel = inst.r_format.re & 0x7;
sel              1184 arch/mips/kvm/vz.c 					      KVM_TRACE_HWR(rd, sel), 0);
sel              1189 arch/mips/kvm/vz.c 				      KVM_TRACE_HWR(rd, sel), arch->gprs[rt]);
sel              1233 arch/mips/kvm/vz.c 		int sel = inst.c0r_format.sel;
sel              1237 arch/mips/kvm/vz.c 		trace_kvm_hwr(vcpu, KVM_TRACE_MTC0, KVM_TRACE_COP0(rd, sel),
sel              1240 arch/mips/kvm/vz.c 		if ((rd == MIPS_CP0_STATUS) && (sel == 0)) {
sel              1276 arch/mips/kvm/vz.c 		} else if ((rd == MIPS_CP0_CAUSE) && (sel == 0)) {
sel              1298 arch/mips/kvm/vz.c 		} else if ((rd == MIPS_CP0_STATUS) && (sel == 1)) { /* IntCtl */
sel              1300 arch/mips/kvm/vz.c 		} else if ((rd == MIPS_CP0_CONFIG) && (sel == 5)) {
sel               878 arch/powerpc/kernel/traps.c 	unsigned int ra, rb, t, i, sel, instr, rc;
sel               957 arch/powerpc/kernel/traps.c 	sel = (instr >> 6) & 3;
sel               967 arch/powerpc/kernel/traps.c 	if ((sel & 1) && (instr & 1)) /* lxvh8x & lxvb16x + VSR >= 32 */
sel               978 arch/powerpc/kernel/traps.c 	switch (sel) {
sel              1006 arch/powerpc/kernel/traps.c 		sel = 3;
sel              1008 arch/powerpc/kernel/traps.c 	switch (sel) {
sel              1029 arch/powerpc/kernel/traps.c 		sel = 3;
sel              1032 arch/powerpc/kernel/traps.c 	switch (sel) {
sel                79 arch/powerpc/perf/mpc7450-pmu.c 	int pmc, sel;
sel                82 arch/powerpc/perf/mpc7450-pmu.c 	sel = event & PM_PMCSEL_MSK;
sel                85 arch/powerpc/perf/mpc7450-pmu.c 		if (sel == 0x1e || sel == 0x1f)
sel                87 arch/powerpc/perf/mpc7450-pmu.c 		if (sel == 0x28 || sel == 0x2b)
sel                91 arch/powerpc/perf/mpc7450-pmu.c 		if (sel == 0x20)
sel                95 arch/powerpc/perf/mpc7450-pmu.c 		if (sel == 0xc || sel == 0xd)
sel                97 arch/powerpc/perf/mpc7450-pmu.c 		if (sel == 0x11)
sel               101 arch/powerpc/perf/mpc7450-pmu.c 		if (sel == 0x10)
sel               203 arch/x86/boot/video.c 	unsigned int sel;
sel               224 arch/x86/boot/video.c 		sel = get_entry();
sel               225 arch/x86/boot/video.c 		if (sel != SCAN)
sel               226 arch/x86/boot/video.c 			return sel;
sel              1484 arch/x86/include/asm/kvm_host.h static inline void kvm_load_ldt(u16 sel)
sel              1486 arch/x86/include/asm/kvm_host.h 	asm("lldt %0" : : "rm"(sel));
sel               297 arch/x86/include/asm/perf_event_p4.h #define P4_OPCODE_PACK(event, sel)	(((event) << 8) | sel)
sel              1151 arch/x86/kernel/cpu/resctrl/pseudo_lock.c static int pseudo_lock_measure_cycles(struct rdtgroup *rdtgrp, int sel)
sel              1180 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	if (sel == 1)
sel              1185 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	else if (sel == 2)
sel              1190 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	else if (sel == 3)
sel              1226 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	int sel;
sel              1233 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 	ret = kstrtoint(buf, 10, &sel);
sel              1235 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 		if (sel != 1 && sel != 2 && sel != 3)
sel              1240 arch/x86/kernel/cpu/resctrl/pseudo_lock.c 		ret = pseudo_lock_measure_cycles(rdtgrp, sel);
sel                35 arch/x86/kernel/ldt.c 	unsigned short sel;
sel                41 arch/x86/kernel/ldt.c 	savesegment(ds, sel);
sel                42 arch/x86/kernel/ldt.c 	if ((sel & SEGMENT_TI_MASK) == SEGMENT_LDT)
sel                43 arch/x86/kernel/ldt.c 		loadsegment(ds, sel);
sel                45 arch/x86/kernel/ldt.c 	savesegment(es, sel);
sel                46 arch/x86/kernel/ldt.c 	if ((sel & SEGMENT_TI_MASK) == SEGMENT_LDT)
sel                47 arch/x86/kernel/ldt.c 		loadsegment(es, sel);
sel               222 arch/x86/kernel/process_64.c 				    unsigned short sel)
sel               225 arch/x86/kernel/process_64.c 		loadsegment(fs, sel);
sel               227 arch/x86/kernel/process_64.c 		load_gs_index(sel);
sel               119 arch/x86/kernel/tls.c 	unsigned short __maybe_unused sel, modified_sel;
sel               156 arch/x86/kernel/tls.c 		savesegment(ds, sel);
sel               157 arch/x86/kernel/tls.c 		if (sel == modified_sel)
sel               158 arch/x86/kernel/tls.c 			loadsegment(ds, sel);
sel               160 arch/x86/kernel/tls.c 		savesegment(es, sel);
sel               161 arch/x86/kernel/tls.c 		if (sel == modified_sel)
sel               162 arch/x86/kernel/tls.c 			loadsegment(es, sel);
sel               164 arch/x86/kernel/tls.c 		savesegment(fs, sel);
sel               165 arch/x86/kernel/tls.c 		if (sel == modified_sel)
sel               166 arch/x86/kernel/tls.c 			loadsegment(fs, sel);
sel               168 arch/x86/kernel/tls.c 		savesegment(gs, sel);
sel               169 arch/x86/kernel/tls.c 		if (sel == modified_sel)
sel               170 arch/x86/kernel/tls.c 			load_gs_index(sel);
sel               174 arch/x86/kernel/tls.c 		savesegment(gs, sel);
sel               175 arch/x86/kernel/tls.c 		if (sel == modified_sel)
sel               176 arch/x86/kernel/tls.c 			loadsegment(gs, sel);
sel               546 arch/x86/kvm/emulate.c 	u16 sel;
sel               551 arch/x86/kvm/emulate.c 	ctxt->ops->get_segment(ctxt, &sel, &ss, NULL, VCPU_SREG_SS);
sel               712 arch/x86/kvm/emulate.c 	u16 sel;
sel               730 arch/x86/kvm/emulate.c 		usable = ctxt->ops->get_segment(ctxt, &sel, &desc, NULL,
sel              1568 arch/x86/kvm/emulate.c 		u16 sel;
sel              1571 arch/x86/kvm/emulate.c 		if (!ops->get_segment(ctxt, &sel, &desc, &base3,
sel              2225 arch/x86/kvm/emulate.c 	unsigned short sel;
sel              2229 arch/x86/kvm/emulate.c 	memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2);
sel              2231 arch/x86/kvm/emulate.c 	rc = __load_segment_descriptor(ctxt, sel, VCPU_SREG_CS, cpl,
sel              2364 arch/x86/kvm/emulate.c 	unsigned short sel;
sel              2367 arch/x86/kvm/emulate.c 	memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2);
sel              2369 arch/x86/kvm/emulate.c 	rc = load_segment_descriptor(ctxt, sel, seg);
sel              3530 arch/x86/kvm/emulate.c 	u16 sel, old_cs;
sel              3541 arch/x86/kvm/emulate.c 	memcpy(&sel, ctxt->src.valptr + ctxt->op_bytes, 2);
sel              3542 arch/x86/kvm/emulate.c 	rc = __load_segment_descriptor(ctxt, sel, VCPU_SREG_CS, cpl,
sel              3767 arch/x86/kvm/emulate.c 	u16 sel = ctxt->src.val;
sel              3777 arch/x86/kvm/emulate.c 	return load_segment_descriptor(ctxt, sel, ctxt->modrm_reg);
sel              3787 arch/x86/kvm/emulate.c 	u16 sel = ctxt->src.val;
sel              3791 arch/x86/kvm/emulate.c 	return load_segment_descriptor(ctxt, sel, VCPU_SREG_LDTR);
sel              3801 arch/x86/kvm/emulate.c 	u16 sel = ctxt->src.val;
sel              3805 arch/x86/kvm/emulate.c 	return load_segment_descriptor(ctxt, sel, VCPU_SREG_TR);
sel              5665 arch/x86/kvm/vmx/vmx.c static void vmx_dump_sel(char *name, uint32_t sel)
sel              5668 arch/x86/kvm/vmx/vmx.c 	       name, vmcs_read16(sel),
sel              5669 arch/x86/kvm/vmx/vmx.c 	       vmcs_read32(sel + GUEST_ES_AR_BYTES - GUEST_ES_SELECTOR),
sel              5670 arch/x86/kvm/vmx/vmx.c 	       vmcs_read32(sel + GUEST_ES_LIMIT - GUEST_ES_SELECTOR),
sel              5671 arch/x86/kvm/vmx/vmx.c 	       vmcs_readl(sel + GUEST_ES_BASE - GUEST_ES_SELECTOR));
sel               323 arch/x86/lib/insn-eval.c 	unsigned short sel;
sel               333 arch/x86/lib/insn-eval.c 		savesegment(ds, sel);
sel               334 arch/x86/lib/insn-eval.c 		return sel;
sel               336 arch/x86/lib/insn-eval.c 		savesegment(es, sel);
sel               337 arch/x86/lib/insn-eval.c 		return sel;
sel               339 arch/x86/lib/insn-eval.c 		savesegment(fs, sel);
sel               340 arch/x86/lib/insn-eval.c 		return sel;
sel               342 arch/x86/lib/insn-eval.c 		savesegment(gs, sel);
sel               343 arch/x86/lib/insn-eval.c 		return sel;
sel               573 arch/x86/lib/insn-eval.c static bool get_desc(struct desc_struct *out, unsigned short sel)
sel               579 arch/x86/lib/insn-eval.c 	if ((sel & SEGMENT_TI_MASK) == SEGMENT_LDT) {
sel               584 arch/x86/lib/insn-eval.c 		sel >>= 3;
sel               588 arch/x86/lib/insn-eval.c 		if (ldt && sel < ldt->nr_entries) {
sel               589 arch/x86/lib/insn-eval.c 			*out = ldt->entries[sel];
sel               607 arch/x86/lib/insn-eval.c 	desc_base = sel & ~(SEGMENT_RPL_MASK | SEGMENT_TI_MASK);
sel               636 arch/x86/lib/insn-eval.c 	short sel;
sel               638 arch/x86/lib/insn-eval.c 	sel = get_segment_selector(regs, seg_reg_idx);
sel               639 arch/x86/lib/insn-eval.c 	if (sel < 0)
sel               647 arch/x86/lib/insn-eval.c 		return (unsigned long)(sel << 4);
sel               670 arch/x86/lib/insn-eval.c 	if (!sel)
sel               673 arch/x86/lib/insn-eval.c 	if (!get_desc(&desc, sel))
sel               700 arch/x86/lib/insn-eval.c 	short sel;
sel               702 arch/x86/lib/insn-eval.c 	sel = get_segment_selector(regs, seg_reg_idx);
sel               703 arch/x86/lib/insn-eval.c 	if (sel < 0)
sel               709 arch/x86/lib/insn-eval.c 	if (!sel)
sel               712 arch/x86/lib/insn-eval.c 	if (!get_desc(&desc, sel))
sel               747 arch/x86/lib/insn-eval.c 	short sel;
sel               753 arch/x86/lib/insn-eval.c 	sel = get_segment_selector(regs, INAT_SEG_REG_CS);
sel               754 arch/x86/lib/insn-eval.c 	if (sel < 0)
sel               755 arch/x86/lib/insn-eval.c 		return sel;
sel               757 arch/x86/lib/insn-eval.c 	if (!get_desc(&desc, sel))
sel               353 arch/x86/oprofile/op_model_p4.c #define ESCR_SET_EVENT_SELECT(escr, sel) ((escr) |= (((sel) & 0x3f) << 25))
sel               359 arch/x86/oprofile/op_model_p4.c #define CCCR_SET_ESCR_SELECT(cccr, sel) ((cccr) |= (((sel) & 0x07) << 13))
sel               392 drivers/acpi/sbs.c 	u16 value, sel = 1 << (battery->id + 12);
sel               402 drivers/acpi/sbs.c 		if ((value & 0xf000) != sel) {
sel               404 drivers/acpi/sbs.c 			value |= sel;
sel              3410 drivers/ata/libata-core.c int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel)
sel              3417 drivers/ata/libata-core.c 	quiet = !!(sel & ATA_DNXFER_QUIET);
sel              3418 drivers/ata/libata-core.c 	sel &= ~ATA_DNXFER_QUIET;
sel              3425 drivers/ata/libata-core.c 	switch (sel) {
sel              2028 drivers/ata/libata-eh.c 			int sel;
sel              2031 drivers/ata/libata-eh.c 				sel = dma_dnxfer_sel[dev->spdn_cnt];
sel              2033 drivers/ata/libata-eh.c 				sel = pio_dnxfer_sel[dev->spdn_cnt];
sel              2037 drivers/ata/libata-eh.c 			if (ata_down_xfermask_limit(dev, sel) == 0) {
sel                66 drivers/ata/libata.h extern int ata_down_xfermask_limit(struct ata_device *dev, unsigned int sel);
sel               399 drivers/ata/pata_icside.c 	unsigned int sel = 0;
sel               415 drivers/ata/pata_icside.c 		sel = 1 << 5;
sel               418 drivers/ata/pata_icside.c 	writeb(sel, ioc_base);
sel               422 drivers/ata/pata_icside.c 	state->port[0].port_sel = sel;
sel               423 drivers/ata/pata_icside.c 	state->port[1].port_sel = sel | 1;
sel               194 drivers/ata/pata_it821x.c 	int sel = 0;
sel               221 drivers/ata/pata_it821x.c 		sel = 1;
sel               225 drivers/ata/pata_it821x.c 	v |= sel << (1 + ap->port_no);
sel               268 drivers/block/swim.c static inline void swim_select(struct swim __iomem *base, int sel)
sel               272 drivers/block/swim.c 	via1_set_head(sel & 0x100);
sel               274 drivers/block/swim.c 	swim_write(base, phase, sel & CA_MASK);
sel               273 drivers/block/swim3.c static void swim3_select(struct floppy_state *fs, int sel)
sel               278 drivers/block/swim3.c 	if (sel & 8)
sel               282 drivers/block/swim3.c 	out_8(&sw->select, sel & CA_MASK);
sel                46 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a10, 0, 2),
sel                72 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a28, 0, 3),
sel                84 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a2c, 0, 3),
sel                96 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a34, 0, 3),
sel               108 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a30, 0, 3),
sel               167 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a10, 0, 2),
sel               177 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a14, 0, 2),
sel               187 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a18, 0, 2),
sel               199 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a64, 0, 3),
sel               210 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a68, 0, 3),
sel               221 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a7c, 0, 3),
sel               232 drivers/clk/bcm/clk-bcm21664.c 	.sel		= SELECTOR(0x0a80, 0, 3),
sel                46 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a10, 0, 2),
sel                55 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a04, 0, 2),
sel                63 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a00, 0, 2),
sel                87 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0e74, 0, 2),
sel               109 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a28, 0, 3),
sel               121 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a2c, 0, 3),
sel               133 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a34, 0, 3),
sel               145 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a30, 0, 3),
sel               156 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a24, 0, 2),
sel               166 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a38, 0, 2),
sel               179 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a38, 0, 2),
sel               211 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a10, 0, 2),
sel               221 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a14, 0, 2),
sel               231 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a18, 0, 2),
sel               241 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a1c, 0, 2),
sel               253 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a20, 0, 3),
sel               265 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a28, 0, 3),
sel               277 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a64, 0, 3),
sel               288 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a68, 0, 3),
sel               299 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a84, 0, 3),
sel               307 drivers/clk/bcm/clk-bcm281xx.c 	.sel		= SELECTOR(0x0a70, 0, 2),
sel                21 drivers/clk/bcm/clk-kona-setup.c #define selector_clear_exists(sel)	((sel)->width = 0)
sel                54 drivers/clk/bcm/clk-kona-setup.c 	struct bcm_clk_sel *sel;
sel                60 drivers/clk/bcm/clk-kona-setup.c 	sel = &peri->sel;
sel                61 drivers/clk/bcm/clk-kona-setup.c 	if (sel->parent_count && selector_exists(sel))
sel                84 drivers/clk/bcm/clk-kona-setup.c 	struct bcm_clk_sel *sel;
sel               148 drivers/clk/bcm/clk-kona-setup.c 	sel = &peri->sel;
sel               149 drivers/clk/bcm/clk-kona-setup.c 	if (selector_exists(sel)) {
sel               150 drivers/clk/bcm/clk-kona-setup.c 		if (sel->offset > limit) {
sel               152 drivers/clk/bcm/clk-kona-setup.c 				__func__, name, sel->offset, limit);
sel               291 drivers/clk/bcm/clk-kona-setup.c static bool sel_valid(struct bcm_clk_sel *sel, const char *field_name,
sel               294 drivers/clk/bcm/clk-kona-setup.c 	if (!bitfield_valid(sel->shift, sel->width, field_name, clock_name))
sel               297 drivers/clk/bcm/clk-kona-setup.c 	if (sel->parent_count) {
sel               309 drivers/clk/bcm/clk-kona-setup.c 		max_sel = sel->parent_sel[sel->parent_count - 1];
sel               310 drivers/clk/bcm/clk-kona-setup.c 		limit = (1 << sel->width) - 1;
sel               315 drivers/clk/bcm/clk-kona-setup.c 				sel->width);
sel               321 drivers/clk/bcm/clk-kona-setup.c 		selector_clear_exists(sel);
sel               322 drivers/clk/bcm/clk-kona-setup.c 		kfree(sel->parent_sel);
sel               323 drivers/clk/bcm/clk-kona-setup.c 		sel->parent_sel = NULL;
sel               406 drivers/clk/bcm/clk-kona-setup.c 	struct bcm_clk_sel *sel;
sel               437 drivers/clk/bcm/clk-kona-setup.c 	sel = &peri->sel;
sel               438 drivers/clk/bcm/clk-kona-setup.c 	if (selector_exists(sel)) {
sel               439 drivers/clk/bcm/clk-kona-setup.c 		if (!sel_valid(sel, "selector", name))
sel               442 drivers/clk/bcm/clk-kona-setup.c 	} else if (sel->parent_count > 1) {
sel               609 drivers/clk/bcm/clk-kona-setup.c clk_sel_setup(const char **clocks, struct bcm_clk_sel *sel,
sel               643 drivers/clk/bcm/clk-kona-setup.c 	sel->parent_count = parent_count;
sel               644 drivers/clk/bcm/clk-kona-setup.c 	sel->parent_sel = parent_sel;
sel               649 drivers/clk/bcm/clk-kona-setup.c static void clk_sel_teardown(struct bcm_clk_sel *sel,
sel               652 drivers/clk/bcm/clk-kona-setup.c 	kfree(sel->parent_sel);
sel               653 drivers/clk/bcm/clk-kona-setup.c 	sel->parent_sel = NULL;
sel               654 drivers/clk/bcm/clk-kona-setup.c 	sel->parent_count = 0;
sel               664 drivers/clk/bcm/clk-kona-setup.c 	clk_sel_teardown(&data->sel, init_data);
sel               678 drivers/clk/bcm/clk-kona-setup.c 	return clk_sel_setup(data->clocks, &data->sel, init_data);
sel               821 drivers/clk/bcm/clk-kona.c static u8 parent_index(struct bcm_clk_sel *sel, u8 parent_sel)
sel               825 drivers/clk/bcm/clk-kona.c 	BUG_ON(sel->parent_count > (u32)U8_MAX);
sel               826 drivers/clk/bcm/clk-kona.c 	for (i = 0; i < sel->parent_count; i++)
sel               827 drivers/clk/bcm/clk-kona.c 		if (sel->parent_sel[i] == parent_sel)
sel               840 drivers/clk/bcm/clk-kona.c static u8 selector_read_index(struct ccu_data *ccu, struct bcm_clk_sel *sel)
sel               848 drivers/clk/bcm/clk-kona.c 	if (!selector_exists(sel))
sel               853 drivers/clk/bcm/clk-kona.c 	reg_val = __ccu_read(ccu, sel->offset);
sel               856 drivers/clk/bcm/clk-kona.c 	parent_sel = bitfield_extract(reg_val, sel->shift, sel->width);
sel               859 drivers/clk/bcm/clk-kona.c 	index = parent_index(sel, parent_sel);
sel               862 drivers/clk/bcm/clk-kona.c 			__func__, parent_sel, ccu->name, sel->offset);
sel               875 drivers/clk/bcm/clk-kona.c 			struct bcm_clk_sel *sel, struct bcm_clk_trig *trig)
sel               882 drivers/clk/bcm/clk-kona.c 	BUG_ON(!selector_exists(sel));
sel               889 drivers/clk/bcm/clk-kona.c 	if (sel->clk_index == BAD_CLK_INDEX) {
sel               892 drivers/clk/bcm/clk-kona.c 		reg_val = __ccu_read(ccu, sel->offset);
sel               893 drivers/clk/bcm/clk-kona.c 		parent_sel = bitfield_extract(reg_val, sel->shift, sel->width);
sel               894 drivers/clk/bcm/clk-kona.c 		index = parent_index(sel, parent_sel);
sel               897 drivers/clk/bcm/clk-kona.c 		sel->clk_index = index;
sel               902 drivers/clk/bcm/clk-kona.c 	BUG_ON((u32)sel->clk_index >= sel->parent_count);
sel               903 drivers/clk/bcm/clk-kona.c 	parent_sel = sel->parent_sel[sel->clk_index];
sel               911 drivers/clk/bcm/clk-kona.c 	reg_val = __ccu_read(ccu, sel->offset);
sel               912 drivers/clk/bcm/clk-kona.c 	reg_val = bitfield_replace(reg_val, sel->shift, sel->width, parent_sel);
sel               913 drivers/clk/bcm/clk-kona.c 	__ccu_write(ccu, sel->offset, reg_val);
sel               932 drivers/clk/bcm/clk-kona.c 			struct bcm_clk_sel *sel, struct bcm_clk_trig *trig)
sel               934 drivers/clk/bcm/clk-kona.c 	if (!selector_exists(sel))
sel               936 drivers/clk/bcm/clk-kona.c 	return !__sel_commit(ccu, gate, sel, trig);
sel               945 drivers/clk/bcm/clk-kona.c 			struct bcm_clk_sel *sel, struct bcm_clk_trig *trig,
sel               952 drivers/clk/bcm/clk-kona.c 	previous = sel->clk_index;
sel               956 drivers/clk/bcm/clk-kona.c 	sel->clk_index = index;
sel               961 drivers/clk/bcm/clk-kona.c 	ret = __sel_commit(ccu, gate, sel, trig);
sel               967 drivers/clk/bcm/clk-kona.c 		sel->clk_index = previous;	/* Revert the change */
sel              1087 drivers/clk/bcm/clk-kona.c 	struct bcm_clk_sel *sel = &data->sel;
sel              1091 drivers/clk/bcm/clk-kona.c 	BUG_ON(index >= sel->parent_count);
sel              1094 drivers/clk/bcm/clk-kona.c 	if (!selector_exists(sel))
sel              1104 drivers/clk/bcm/clk-kona.c 	ret = selector_write(bcm_clk->ccu, &data->gate, sel, trig, index);
sel              1124 drivers/clk/bcm/clk-kona.c 	index = selector_read_index(bcm_clk->ccu, &data->sel);
sel              1235 drivers/clk/bcm/clk-kona.c 	if (!sel_init(ccu, &peri->gate, &peri->sel, trig)) {
sel                70 drivers/clk/bcm/clk-kona.h #define selector_exists(sel)		((sel)->width != 0)
sel               398 drivers/clk/bcm/clk-kona.h 	struct bcm_clk_sel sel;
sel                34 drivers/clk/imx/clk-imx35.c 	unsigned char arm, ahb, sel;
sel                38 drivers/clk/imx/clk-imx35.c 	{ .arm = 1, .ahb = 4, .sel = 0},
sel                39 drivers/clk/imx/clk-imx35.c 	{ .arm = 1, .ahb = 3, .sel = 1},
sel                40 drivers/clk/imx/clk-imx35.c 	{ .arm = 2, .ahb = 2, .sel = 0},
sel                41 drivers/clk/imx/clk-imx35.c 	{ .arm = 0, .ahb = 0, .sel = 0},
sel                42 drivers/clk/imx/clk-imx35.c 	{ .arm = 0, .ahb = 0, .sel = 0},
sel                43 drivers/clk/imx/clk-imx35.c 	{ .arm = 0, .ahb = 0, .sel = 0},
sel                44 drivers/clk/imx/clk-imx35.c 	{ .arm = 4, .ahb = 1, .sel = 0},
sel                45 drivers/clk/imx/clk-imx35.c 	{ .arm = 1, .ahb = 5, .sel = 0},
sel                46 drivers/clk/imx/clk-imx35.c 	{ .arm = 1, .ahb = 8, .sel = 0},
sel                47 drivers/clk/imx/clk-imx35.c 	{ .arm = 1, .ahb = 6, .sel = 1},
sel                48 drivers/clk/imx/clk-imx35.c 	{ .arm = 2, .ahb = 4, .sel = 0},
sel                49 drivers/clk/imx/clk-imx35.c 	{ .arm = 0, .ahb = 0, .sel = 0},
sel                50 drivers/clk/imx/clk-imx35.c 	{ .arm = 0, .ahb = 0, .sel = 0},
sel                51 drivers/clk/imx/clk-imx35.c 	{ .arm = 0, .ahb = 0, .sel = 0},
sel                52 drivers/clk/imx/clk-imx35.c 	{ .arm = 4, .ahb = 2, .sel = 0},
sel                53 drivers/clk/imx/clk-imx35.c 	{ .arm = 0, .ahb = 0, .sel = 0},
sel               122 drivers/clk/imx/clk-imx35.c 	if (aad->sel)
sel               176 drivers/clk/imx/clk-imx6q.c 	int parent, child, sel;
sel               210 drivers/clk/imx/clk-imx6q.c 		sel = ldb_di_sel_by_clock_id(parent);
sel               211 drivers/clk/imx/clk-imx6q.c 		if (sel < 0) {
sel               218 drivers/clk/imx/clk-imx6q.c 			*ldb_di0_sel = sel;
sel               220 drivers/clk/imx/clk-imx6q.c 			*ldb_di1_sel = sel;
sel               327 drivers/clk/imx/clk-imx6q.c 	unsigned int sel[2][4];
sel               331 drivers/clk/imx/clk-imx6q.c 	sel[0][0] = (reg >> CS2CDR_LDB_DI0_CLK_SEL_SHIFT) & 7;
sel               332 drivers/clk/imx/clk-imx6q.c 	sel[1][0] = (reg >> CS2CDR_LDB_DI1_CLK_SEL_SHIFT) & 7;
sel               334 drivers/clk/imx/clk-imx6q.c 	sel[0][3] = sel[0][2] = sel[0][1] = sel[0][0];
sel               335 drivers/clk/imx/clk-imx6q.c 	sel[1][3] = sel[1][2] = sel[1][1] = sel[1][0];
sel               337 drivers/clk/imx/clk-imx6q.c 	of_assigned_ldb_sels(np, &sel[0][3], &sel[1][3]);
sel               341 drivers/clk/imx/clk-imx6q.c 		if (sel[i][0] != 3) {
sel               343 drivers/clk/imx/clk-imx6q.c 				i, sel[i][0]);
sel               346 drivers/clk/imx/clk-imx6q.c 		if (sel[i][0] == sel[i][3])
sel               350 drivers/clk/imx/clk-imx6q.c 		if ((sel[i][0] == 2 || sel[i][3] == 2) &&
sel               355 drivers/clk/imx/clk-imx6q.c 			sel[i][3] = sel[i][2] = sel[i][1] = sel[i][0];
sel               360 drivers/clk/imx/clk-imx6q.c 		sel[i][1] = sel[i][0] | 4;
sel               363 drivers/clk/imx/clk-imx6q.c 		sel[i][2] = sel[i][3] | 4;
sel               366 drivers/clk/imx/clk-imx6q.c 			 sel[i][0], sel[i][1], sel[i][2], sel[i][3]);
sel               369 drivers/clk/imx/clk-imx6q.c 	if (sel[0][0] == sel[0][3] && sel[1][0] == sel[1][3])
sel               378 drivers/clk/imx/clk-imx6q.c 		reg |= ((sel[0][i] << CS2CDR_LDB_DI0_CLK_SEL_SHIFT) |
sel               379 drivers/clk/imx/clk-imx6q.c 			(sel[1][i] << CS2CDR_LDB_DI1_CLK_SEL_SHIFT));
sel              2632 drivers/clk/meson/g12a.c 		.sel = {
sel              1739 drivers/clk/meson/gxbb.c 		.sel = {
sel                83 drivers/clk/meson/vid-pll-div.c 			     meson_parm_read(clk->map, &pll_div->sel));
sel                15 drivers/clk/meson/vid-pll-div.h 	struct parm sel;
sel               405 drivers/clk/mvebu/armada-37xx-periph.c 	unsigned int load_level, sel;
sel               421 drivers/clk/mvebu/armada-37xx-periph.c 	regmap_read(base, reg, &sel);
sel               423 drivers/clk/mvebu/armada-37xx-periph.c 	return (sel >> offset) & ARMADA_37XX_NB_TBG_SEL_MASK;
sel                21 drivers/clk/qcom/clk-krait.c static void __krait_mux_set_sel(struct krait_mux_clk *mux, int sel)
sel                29 drivers/clk/qcom/clk-krait.c 	regval |= (sel & mux->mask) << mux->shift;
sel                32 drivers/clk/qcom/clk-krait.c 		regval |= (sel & mux->mask) << (mux->shift + LPL_SHIFT);
sel                45 drivers/clk/qcom/clk-krait.c 	u32 sel;
sel                47 drivers/clk/qcom/clk-krait.c 	sel = clk_mux_index_to_val(mux->parent_map, 0, index);
sel                48 drivers/clk/qcom/clk-krait.c 	mux->en_mask = sel;
sel                51 drivers/clk/qcom/clk-krait.c 		__krait_mux_set_sel(mux, sel);
sel                61 drivers/clk/qcom/clk-krait.c 	u32 sel;
sel                63 drivers/clk/qcom/clk-krait.c 	sel = krait_get_l2_indirect_reg(mux->offset);
sel                64 drivers/clk/qcom/clk-krait.c 	sel >>= mux->shift;
sel                65 drivers/clk/qcom/clk-krait.c 	sel &= mux->mask;
sel                66 drivers/clk/qcom/clk-krait.c 	mux->en_mask = sel;
sel                68 drivers/clk/qcom/clk-krait.c 	return clk_mux_val_to_index(hw, mux->parent_map, 0, sel);
sel                55 drivers/clk/renesas/r9a06g032-clocks.c 			u16 sel, g1, r1, g2, r2;
sel               290 drivers/clk/renesas/r9a06g032-clocks.c 		.dual.sel = ((0xec / 4) << 5) | 24,
sel               299 drivers/clk/renesas/r9a06g032-clocks.c 		.dual.sel = ((0x34 / 4) << 5) | 30,
sel               780 drivers/clk/renesas/r9a06g032-clocks.c 	g->selector = desc->dual.sel;
sel               848 drivers/clk/renesas/r9a06g032-clocks.c 			    uint16_t sel)
sel               860 drivers/clk/renesas/r9a06g032-clocks.c 	g->selector = sel;
sel               945 drivers/clk/renesas/r9a06g032-clocks.c 			uart_group_sel[d->dual.group] = d->dual.sel;
sel                88 drivers/clk/sunxi-ng/ccu_frac.c 	u32 reg, sel;
sel                94 drivers/clk/sunxi-ng/ccu_frac.c 		sel = 0;
sel                96 drivers/clk/sunxi-ng/ccu_frac.c 		sel = cf->select;
sel               103 drivers/clk/sunxi-ng/ccu_frac.c 	writel(reg | sel, common->base + common->reg);
sel               513 drivers/clk/tegra/clk-pll.c 	struct tegra_clk_pll_freq_table *sel;
sel               516 drivers/clk/tegra/clk-pll.c 	for (sel = pll->params->freq_table; sel->input_rate != 0; sel++)
sel               517 drivers/clk/tegra/clk-pll.c 		if (sel->input_rate == parent_rate &&
sel               518 drivers/clk/tegra/clk-pll.c 		    sel->output_rate == rate)
sel               521 drivers/clk/tegra/clk-pll.c 	if (sel->input_rate == 0)
sel               525 drivers/clk/tegra/clk-pll.c 		p = _p_div_to_hw(hw, sel->p);
sel               529 drivers/clk/tegra/clk-pll.c 		p = ilog2(sel->p);
sel               532 drivers/clk/tegra/clk-pll.c 	cfg->input_rate = sel->input_rate;
sel               533 drivers/clk/tegra/clk-pll.c 	cfg->output_rate = sel->output_rate;
sel               534 drivers/clk/tegra/clk-pll.c 	cfg->m = sel->m;
sel               535 drivers/clk/tegra/clk-pll.c 	cfg->n = sel->n;
sel               537 drivers/clk/tegra/clk-pll.c 	cfg->cpcon = sel->cpcon;
sel               538 drivers/clk/tegra/clk-pll.c 	cfg->sdm_data = sel->sdm_data;
sel               857 drivers/clk/tegra/clk-pll.c 		struct tegra_clk_pll_freq_table sel;
sel               858 drivers/clk/tegra/clk-pll.c 		if (_get_table_rate(hw, &sel, pll->params->fixed_rate,
sel               935 drivers/clk/tegra/clk-pll.c 	struct tegra_clk_pll_freq_table sel;
sel               945 drivers/clk/tegra/clk-pll.c 	if (_get_table_rate(hw, &sel, pll->params->fixed_rate, input_rate))
sel               967 drivers/clk/tegra/clk-pll.c 		val |= sel.m << divm_shift(pll);
sel               968 drivers/clk/tegra/clk-pll.c 		val |= sel.n << divn_shift(pll);
sel               969 drivers/clk/tegra/clk-pll.c 		val |= sel.p << divp_shift(pll);
sel               970 drivers/clk/tegra/clk-pll.c 		val |= sel.cpcon << PLLE_BASE_DIVCML_SHIFT;
sel              1566 drivers/clk/tegra/clk-pll.c 	struct tegra_clk_pll_freq_table sel;
sel              1577 drivers/clk/tegra/clk-pll.c 	if (_get_table_rate(hw, &sel, pll->params->fixed_rate, input_rate))
sel              1610 drivers/clk/tegra/clk-pll.c 	val |= sel.m << divm_shift(pll);
sel              1611 drivers/clk/tegra/clk-pll.c 	val |= sel.n << divn_shift(pll);
sel              1612 drivers/clk/tegra/clk-pll.c 	val |= sel.cpcon << PLLE_BASE_DIVCML_SHIFT;
sel              2403 drivers/clk/tegra/clk-pll.c 	struct tegra_clk_pll_freq_table sel;
sel              2414 drivers/clk/tegra/clk-pll.c 	if (_get_table_rate(hw, &sel, pll->params->fixed_rate, input_rate))
sel              2445 drivers/clk/tegra/clk-pll.c 	val |= sel.m << divm_shift(pll);
sel              2446 drivers/clk/tegra/clk-pll.c 	val |= sel.n << divn_shift(pll);
sel              2447 drivers/clk/tegra/clk-pll.c 	val |= sel.cpcon << PLLE_BASE_DIVCML_SHIFT;
sel               191 drivers/clk/zte/clk.c 	u32 sel, integ, fra_div, tmp;
sel               199 drivers/clk/zte/clk.c 	sel = tmp / BPAR;
sel               203 drivers/clk/zte/clk.c 	tmp = (sel << 24) | (integ << 16) | (0xff << 8) | fra_div;
sel               214 drivers/clk/zte/clk.c 	u32 sel, integ, fra_div, tmp;
sel               218 drivers/clk/zte/clk.c 	sel = (tmp >> 24) & BIT(0);
sel               224 drivers/clk/zte/clk.c 	tmp += sel * BPAR;
sel              1547 drivers/firewire/ohci.c 	int tcode, length, ext_tcode, sel, try;
sel              1569 drivers/firewire/ohci.c 	sel = (csr - CSR_BUS_MANAGER_ID) / 4;
sel              1572 drivers/firewire/ohci.c 	reg_write(ohci, OHCI1394_CSRControl, sel);
sel               273 drivers/firmware/dmi-sysfs.c 	struct dmi_system_event_log sel; \
sel               274 drivers/firmware/dmi-sysfs.c 	if (sizeof(sel) > dmi_entry_length(dh)) \
sel               276 drivers/firmware/dmi-sysfs.c 	memcpy(&sel, dh, sizeof(sel)); \
sel               277 drivers/firmware/dmi-sysfs.c 	return sprintf(buf, "%u\n", sel._field); \
sel               279 drivers/firmware/dmi-sysfs.c static DMI_SYSFS_MAPPED_ATTR(sel, _field)
sel               313 drivers/firmware/dmi-sysfs.c typedef u8 (*sel_io_reader)(const struct dmi_system_event_log *sel,
sel               318 drivers/firmware/dmi-sysfs.c static u8 read_sel_8bit_indexed_io(const struct dmi_system_event_log *sel,
sel               324 drivers/firmware/dmi-sysfs.c 	outb((u8)offset, sel->io.index_addr);
sel               325 drivers/firmware/dmi-sysfs.c 	ret = inb(sel->io.data_addr);
sel               330 drivers/firmware/dmi-sysfs.c static u8 read_sel_2x8bit_indexed_io(const struct dmi_system_event_log *sel,
sel               336 drivers/firmware/dmi-sysfs.c 	outb((u8)offset, sel->io.index_addr);
sel               337 drivers/firmware/dmi-sysfs.c 	outb((u8)(offset >> 8), sel->io.index_addr + 1);
sel               338 drivers/firmware/dmi-sysfs.c 	ret = inb(sel->io.data_addr);
sel               343 drivers/firmware/dmi-sysfs.c static u8 read_sel_16bit_indexed_io(const struct dmi_system_event_log *sel,
sel               349 drivers/firmware/dmi-sysfs.c 	outw((u16)offset, sel->io.index_addr);
sel               350 drivers/firmware/dmi-sysfs.c 	ret = inb(sel->io.data_addr);
sel               362 drivers/firmware/dmi-sysfs.c 				   const struct dmi_system_event_log *sel,
sel               367 drivers/firmware/dmi-sysfs.c 	sel_io_reader io_reader = sel_io_readers[sel->access_method];
sel               369 drivers/firmware/dmi-sysfs.c 	while (count && pos < sel->area_length) {
sel               371 drivers/firmware/dmi-sysfs.c 		*(buf++) = io_reader(sel, pos++);
sel               379 drivers/firmware/dmi-sysfs.c 				       const struct dmi_system_event_log *sel,
sel               385 drivers/firmware/dmi-sysfs.c 	mapped = dmi_remap(sel->access_method_address, sel->area_length);
sel               389 drivers/firmware/dmi-sysfs.c 	while (count && pos < sel->area_length) {
sel               404 drivers/firmware/dmi-sysfs.c 	struct dmi_system_event_log sel;
sel               406 drivers/firmware/dmi-sysfs.c 	if (sizeof(sel) > dmi_entry_length(dh))
sel               409 drivers/firmware/dmi-sysfs.c 	memcpy(&sel, dh, sizeof(sel));
sel               411 drivers/firmware/dmi-sysfs.c 	switch (sel.access_method) {
sel               415 drivers/firmware/dmi-sysfs.c 		return dmi_sel_raw_read_io(entry, &sel, state->buf,
sel               418 drivers/firmware/dmi-sysfs.c 		return dmi_sel_raw_read_phys32(entry, &sel, state->buf,
sel               425 drivers/firmware/dmi-sysfs.c 			sel.access_method);
sel               181 drivers/gpio/gpio-thunderx.c 	u32 arg, sel;
sel               226 drivers/gpio/gpio-thunderx.c 		sel = 0;
sel               228 drivers/gpio/gpio-thunderx.c 			sel++;
sel               233 drivers/gpio/gpio-thunderx.c 			(sel << GPIO_BIT_CFG_FIL_SEL_SHIFT) |
sel                47 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c 	int sel = table_hash(mode, bpc, max_min);
sel                54 drivers/gpu/drm/amd/display/dc/dsc/rc_calc.c 	switch (sel) {
sel              5237 drivers/gpu/drm/i915/display/intel_display.c 		u32 sel;
sel              5241 drivers/gpu/drm/i915/display/intel_display.c 		sel = TRANS_DPLLB_SEL(pipe);
sel              5244 drivers/gpu/drm/i915/display/intel_display.c 			temp |= sel;
sel              5246 drivers/gpu/drm/i915/display/intel_display.c 			temp &= ~sel;
sel              3631 drivers/gpu/drm/radeon/cik.c 	unsigned sel = emit_wait ? PACKET3_SEM_SEL_WAIT : PACKET3_SEM_SEL_SIGNAL;
sel              3635 drivers/gpu/drm/radeon/cik.c 	radeon_ring_write(ring, (upper_32_bits(addr) & 0xffff) | sel);
sel              2931 drivers/gpu/drm/radeon/r600.c 	unsigned sel = emit_wait ? PACKET3_SEM_SEL_WAIT : PACKET3_SEM_SEL_SIGNAL;
sel              2934 drivers/gpu/drm/radeon/r600.c 		sel |= PACKET3_SEM_WAIT_ON_SIGNAL;
sel              2938 drivers/gpu/drm/radeon/r600.c 	radeon_ring_write(ring, (upper_32_bits(addr) & 0xff) | sel);
sel              2739 drivers/hwmon/nct6775.c 	int i, sel = 0;
sel              2745 drivers/hwmon/nct6775.c 			sel = i + 1;
sel              2750 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", sel);
sel              1617 drivers/hwmon/w83627hf.c 	int res = 0xff, sel;
sel              1644 drivers/hwmon/w83627hf.c 	sel = superio_inb(sio_data, W83627THF_GPIO5_IOSR) & 0x3f;
sel              1645 drivers/hwmon/w83627hf.c 	if ((sel & 0x1f) != 0x1f) {
sel              1652 drivers/hwmon/w83627hf.c 	res = superio_inb(sio_data, W83627THF_GPIO5_DR) & sel;
sel                42 drivers/i2c/busses/i2c-cbus-gpio.c 	struct gpio_desc *sel;
sel               124 drivers/i2c/busses/i2c-cbus-gpio.c 	gpiod_set_value(host->sel, 0);
sel               157 drivers/i2c/busses/i2c-cbus-gpio.c 	gpiod_set_value(host->sel, 1);
sel               233 drivers/i2c/busses/i2c-cbus-gpio.c 	chost->sel = devm_gpiod_get_index(&pdev->dev, NULL, 2, GPIOD_OUT_HIGH);
sel               234 drivers/i2c/busses/i2c-cbus-gpio.c 	if (IS_ERR(chost->sel))
sel               235 drivers/i2c/busses/i2c-cbus-gpio.c 		return PTR_ERR(chost->sel);
sel               238 drivers/i2c/busses/i2c-cbus-gpio.c 	gpiod_set_consumer_name(chost->sel, "CBUS sel");
sel                73 drivers/ide/icside.c 	unsigned int sel;
sel               334 drivers/ide/icside.c 	writeb(state->sel | hwif->channel, state->ioc_base);
sel               469 drivers/ide/icside.c 	unsigned int sel = 0;
sel               492 drivers/ide/icside.c 		sel = 1 << 5;
sel               495 drivers/ide/icside.c 	writeb(sel, ioc_base);
sel               501 drivers/ide/icside.c 	state->sel	  = sel;
sel               174 drivers/ide/it821x.c 	int clock, altclock, sel = 0;
sel               204 drivers/ide/it821x.c 		sel = 1;
sel               209 drivers/ide/it821x.c 	v |= sel << (1 + hwif->channel);
sel               365 drivers/iio/accel/sca3000.c 				  u8 sel,
sel               380 drivers/iio/accel/sca3000.c 	ret = sca3000_write_reg(st, SCA3000_REG_CTRL_SEL_ADDR, sel);
sel               441 drivers/iio/adc/meson_saradc.c 					enum meson_sar_adc_chan7_mux_sel sel)
sel               446 drivers/iio/adc/meson_saradc.c 	regval = FIELD_PREP(MESON_SAR_ADC_REG3_CTRL_CHAN7_MUX_SEL_MASK, sel);
sel               111 drivers/iio/adc/twl4030-madc.c 	u8 sel;
sel               283 drivers/iio/adc/twl4030-madc.c 			     .sel = TWL4030_MADC_RTSELECT_LSB,
sel               288 drivers/iio/adc/twl4030-madc.c 			      .sel = TWL4030_MADC_SW1SELECT_LSB,
sel               294 drivers/iio/adc/twl4030-madc.c 			      .sel = TWL4030_MADC_SW2SELECT_LSB,
sel               630 drivers/iio/adc/twl4030-madc.c 	ret = twl_i2c_write_u16(TWL4030_MODULE_MADC, req->channels, method->sel);
sel               633 drivers/iio/adc/twl4030-madc.c 			"unable to write sel register 0x%X\n", method->sel);
sel               481 drivers/iio/gyro/fxas21002c_core.c static int fxas21002c_hpf_set(struct fxas21002c_data *data, int sel)
sel               485 drivers/iio/gyro/fxas21002c_core.c 	sel_bits = fxas21002c_hpf_value_from_sel(data, sel);
sel               189 drivers/infiniband/hw/hfi1/trace_tx.h 	    TP_PROTO(struct hfi1_devdata *dd, u32 sel, u8 vl, u8 idx),
sel               190 drivers/infiniband/hw/hfi1/trace_tx.h 	    TP_ARGS(dd, sel, vl, idx),
sel               192 drivers/infiniband/hw/hfi1/trace_tx.h 	    __field(u32, sel)
sel               197 drivers/infiniband/hw/hfi1/trace_tx.h 	    __entry->sel = sel;
sel               204 drivers/infiniband/hw/hfi1/trace_tx.h 		      __entry->sel,
sel              1268 drivers/infiniband/hw/qib/qib_mad.c 		       __be16 sel)
sel              1272 drivers/infiniband/hw/qib/qib_mad.c 	switch (sel) {
sel              1322 drivers/infiniband/hw/qib/qib_mad.c 					__be16 sel)
sel              1326 drivers/infiniband/hw/qib/qib_mad.c 	switch (sel) {
sel                27 drivers/input/serio/ps2mult.c 	unsigned char sel;
sel                68 drivers/input/serio/ps2mult.c 	serio_write(mx_serio, port->sel);
sel                70 drivers/input/serio/ps2mult.c 	dev_dbg(&mx_serio->dev, "switched to sel %02x\n", port->sel);
sel               180 drivers/input/serio/ps2mult.c 		psm->ports[i].sel = ps2mult_controls[i];
sel               223 drivers/leds/leds-bcm6328.c 		u32 sel;
sel               232 drivers/leds/leds-bcm6328.c 					   &sel);
sel               234 drivers/leds/leds-bcm6328.c 		if (reg / 4 != sel / 4) {
sel               241 drivers/leds/leds-bcm6328.c 		val |= (BIT(reg % 4) << (((sel % 4) * 4) + 16));
sel               250 drivers/leds/leds-bcm6328.c 		u32 sel;
sel               259 drivers/leds/leds-bcm6328.c 					   i, &sel);
sel               261 drivers/leds/leds-bcm6328.c 		if (reg / 4 != sel / 4) {
sel               268 drivers/leds/leds-bcm6328.c 		val |= (BIT(reg % 4) << ((sel % 4) * 4));
sel               542 drivers/media/dvb-frontends/lgs8gxx.c 	u8 sel)
sel               549 drivers/media/dvb-frontends/lgs8gxx.c 	r26 |= (sel & 0x01) << 7;
sel               550 drivers/media/dvb-frontends/lgs8gxx.c 	r27 |= (sel & 0x02) >> 1;
sel              1916 drivers/media/i2c/adv7604.c 				 struct v4l2_subdev_selection *sel)
sel              1920 drivers/media/i2c/adv7604.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel              1923 drivers/media/i2c/adv7604.c 	if (sel->target > V4L2_SEL_TGT_CROP_BOUNDS)
sel              1926 drivers/media/i2c/adv7604.c 	sel->r.left	= 0;
sel              1927 drivers/media/i2c/adv7604.c 	sel->r.top	= 0;
sel              1928 drivers/media/i2c/adv7604.c 	sel->r.width	= state->timings.bt.width;
sel              1929 drivers/media/i2c/adv7604.c 	sel->r.height	= state->timings.bt.height;
sel               126 drivers/media/i2c/ak881x.c 				struct v4l2_subdev_selection *sel)
sel               131 drivers/media/i2c/ak881x.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               134 drivers/media/i2c/ak881x.c 	switch (sel->target) {
sel               136 drivers/media/i2c/ak881x.c 		sel->r.left = 0;
sel               137 drivers/media/i2c/ak881x.c 		sel->r.top = 0;
sel               138 drivers/media/i2c/ak881x.c 		sel->r.width = 720;
sel               139 drivers/media/i2c/ak881x.c 		sel->r.height = ak881x->lines;
sel               620 drivers/media/i2c/imx214.c 				struct v4l2_subdev_selection *sel)
sel               624 drivers/media/i2c/imx214.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               628 drivers/media/i2c/imx214.c 	sel->r = *__imx214_get_pad_crop(imx214, cfg, sel->pad,
sel               629 drivers/media/i2c/imx214.c 					sel->which);
sel               992 drivers/media/i2c/imx274.c 				struct v4l2_subdev_selection *sel)
sel               999 drivers/media/i2c/imx274.c 	if (sel->pad != 0)
sel              1002 drivers/media/i2c/imx274.c 	if (sel->target == V4L2_SEL_TGT_CROP_BOUNDS) {
sel              1003 drivers/media/i2c/imx274.c 		sel->r.left = 0;
sel              1004 drivers/media/i2c/imx274.c 		sel->r.top = 0;
sel              1005 drivers/media/i2c/imx274.c 		sel->r.width = IMX274_MAX_WIDTH;
sel              1006 drivers/media/i2c/imx274.c 		sel->r.height = IMX274_MAX_HEIGHT;
sel              1010 drivers/media/i2c/imx274.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1020 drivers/media/i2c/imx274.c 	switch (sel->target) {
sel              1022 drivers/media/i2c/imx274.c 		sel->r = *src_crop;
sel              1025 drivers/media/i2c/imx274.c 		sel->r.top = 0;
sel              1026 drivers/media/i2c/imx274.c 		sel->r.left = 0;
sel              1027 drivers/media/i2c/imx274.c 		sel->r.width = src_crop->width;
sel              1028 drivers/media/i2c/imx274.c 		sel->r.height = src_crop->height;
sel              1031 drivers/media/i2c/imx274.c 		sel->r.top = 0;
sel              1032 drivers/media/i2c/imx274.c 		sel->r.left = 0;
sel              1033 drivers/media/i2c/imx274.c 		sel->r.width = src_fmt->width;
sel              1034 drivers/media/i2c/imx274.c 		sel->r.height = src_fmt->height;
sel              1047 drivers/media/i2c/imx274.c 				     struct v4l2_subdev_selection *sel)
sel              1062 drivers/media/i2c/imx274.c 			       IMX274_ROUND(sel->r.width, h_step, sel->flags),
sel              1070 drivers/media/i2c/imx274.c 			      IMX274_ROUND(sel->r.left, h_step, 0),
sel              1074 drivers/media/i2c/imx274.c 				IMX274_ROUND(sel->r.height, 2, sel->flags),
sel              1077 drivers/media/i2c/imx274.c 	new_crop.top = min_t(u32, IMX274_ROUND(sel->r.top, 2, 0),
sel              1080 drivers/media/i2c/imx274.c 	sel->r = new_crop;
sel              1082 drivers/media/i2c/imx274.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY)
sel              1097 drivers/media/i2c/imx274.c 		__imx274_change_compose(imx274, cfg, sel->which,
sel              1099 drivers/media/i2c/imx274.c 					sel->flags);
sel              1108 drivers/media/i2c/imx274.c 				struct v4l2_subdev_selection *sel)
sel              1112 drivers/media/i2c/imx274.c 	if (sel->pad != 0)
sel              1115 drivers/media/i2c/imx274.c 	if (sel->target == V4L2_SEL_TGT_CROP)
sel              1116 drivers/media/i2c/imx274.c 		return imx274_set_selection_crop(imx274, cfg, sel);
sel              1118 drivers/media/i2c/imx274.c 	if (sel->target == V4L2_SEL_TGT_COMPOSE) {
sel              1122 drivers/media/i2c/imx274.c 		err =  __imx274_change_compose(imx274, cfg, sel->which,
sel              1123 drivers/media/i2c/imx274.c 					       &sel->r.width, &sel->r.height,
sel              1124 drivers/media/i2c/imx274.c 					       sel->flags);
sel              1132 drivers/media/i2c/imx274.c 			sel->r.top = 0;
sel              1133 drivers/media/i2c/imx274.c 			sel->r.left = 0;
sel               257 drivers/media/i2c/mt9m001.c 		struct v4l2_subdev_selection *sel)
sel               261 drivers/media/i2c/mt9m001.c 	struct v4l2_rect rect = sel->r;
sel               263 drivers/media/i2c/mt9m001.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               264 drivers/media/i2c/mt9m001.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               298 drivers/media/i2c/mt9m001.c 		struct v4l2_subdev_selection *sel)
sel               303 drivers/media/i2c/mt9m001.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               306 drivers/media/i2c/mt9m001.c 	switch (sel->target) {
sel               308 drivers/media/i2c/mt9m001.c 		sel->r.left = MT9M001_COLUMN_SKIP;
sel               309 drivers/media/i2c/mt9m001.c 		sel->r.top = MT9M001_ROW_SKIP;
sel               310 drivers/media/i2c/mt9m001.c 		sel->r.width = MT9M001_MAX_WIDTH;
sel               311 drivers/media/i2c/mt9m001.c 		sel->r.height = MT9M001_MAX_HEIGHT;
sel               314 drivers/media/i2c/mt9m001.c 		sel->r = mt9m001->rect;
sel               356 drivers/media/i2c/mt9m001.c 	struct v4l2_subdev_selection sel = {
sel               367 drivers/media/i2c/mt9m001.c 	ret = mt9m001_set_selection(sd, NULL, &sel);
sel               414 drivers/media/i2c/mt9m032.c 				     struct v4l2_subdev_selection *sel)
sel               418 drivers/media/i2c/mt9m032.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               422 drivers/media/i2c/mt9m032.c 	sel->r = *__mt9m032_get_pad_crop(sensor, cfg, sel->which);
sel               430 drivers/media/i2c/mt9m032.c 				     struct v4l2_subdev_selection *sel)
sel               438 drivers/media/i2c/mt9m032.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               443 drivers/media/i2c/mt9m032.c 	if (sensor->streaming && sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
sel               451 drivers/media/i2c/mt9m032.c 	rect.left = clamp(ALIGN(sel->r.left, 2), MT9M032_COLUMN_START_MIN,
sel               453 drivers/media/i2c/mt9m032.c 	rect.top = clamp(ALIGN(sel->r.top, 2), MT9M032_ROW_START_MIN,
sel               455 drivers/media/i2c/mt9m032.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
sel               457 drivers/media/i2c/mt9m032.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
sel               465 drivers/media/i2c/mt9m032.c 	__crop = __mt9m032_get_pad_crop(sensor, cfg, sel->which);
sel               471 drivers/media/i2c/mt9m032.c 		format = __mt9m032_get_pad_format(sensor, cfg, sel->which);
sel               477 drivers/media/i2c/mt9m032.c 	sel->r = rect;
sel               479 drivers/media/i2c/mt9m032.c 	if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE)
sel               453 drivers/media/i2c/mt9m111.c 				 struct v4l2_subdev_selection *sel)
sel               457 drivers/media/i2c/mt9m111.c 	struct v4l2_rect rect = sel->r;
sel               461 drivers/media/i2c/mt9m111.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               462 drivers/media/i2c/mt9m111.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               497 drivers/media/i2c/mt9m111.c 				 struct v4l2_subdev_selection *sel)
sel               502 drivers/media/i2c/mt9m111.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               505 drivers/media/i2c/mt9m111.c 	switch (sel->target) {
sel               507 drivers/media/i2c/mt9m111.c 		sel->r.left = MT9M111_MIN_DARK_COLS;
sel               508 drivers/media/i2c/mt9m111.c 		sel->r.top = MT9M111_MIN_DARK_ROWS;
sel               509 drivers/media/i2c/mt9m111.c 		sel->r.width = MT9M111_MAX_WIDTH;
sel               510 drivers/media/i2c/mt9m111.c 		sel->r.height = MT9M111_MAX_HEIGHT;
sel               513 drivers/media/i2c/mt9m111.c 		sel->r = mt9m111->rect;
sel               583 drivers/media/i2c/mt9p031.c 				 struct v4l2_subdev_selection *sel)
sel               587 drivers/media/i2c/mt9p031.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               590 drivers/media/i2c/mt9p031.c 	sel->r = *__mt9p031_get_pad_crop(mt9p031, cfg, sel->pad, sel->which);
sel               596 drivers/media/i2c/mt9p031.c 				 struct v4l2_subdev_selection *sel)
sel               603 drivers/media/i2c/mt9p031.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               609 drivers/media/i2c/mt9p031.c 	rect.left = clamp(ALIGN(sel->r.left, 2), MT9P031_COLUMN_START_MIN,
sel               611 drivers/media/i2c/mt9p031.c 	rect.top = clamp(ALIGN(sel->r.top, 2), MT9P031_ROW_START_MIN,
sel               613 drivers/media/i2c/mt9p031.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
sel               616 drivers/media/i2c/mt9p031.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
sel               625 drivers/media/i2c/mt9p031.c 	__crop = __mt9p031_get_pad_crop(mt9p031, cfg, sel->pad, sel->which);
sel               631 drivers/media/i2c/mt9p031.c 		__format = __mt9p031_get_pad_format(mt9p031, cfg, sel->pad,
sel               632 drivers/media/i2c/mt9p031.c 						    sel->which);
sel               638 drivers/media/i2c/mt9p031.c 	sel->r = rect;
sel               414 drivers/media/i2c/mt9t001.c 				 struct v4l2_subdev_selection *sel)
sel               418 drivers/media/i2c/mt9t001.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               421 drivers/media/i2c/mt9t001.c 	sel->r = *__mt9t001_get_pad_crop(mt9t001, cfg, sel->pad, sel->which);
sel               427 drivers/media/i2c/mt9t001.c 				 struct v4l2_subdev_selection *sel)
sel               434 drivers/media/i2c/mt9t001.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               440 drivers/media/i2c/mt9t001.c 	rect.left = clamp(ALIGN(sel->r.left, 2),
sel               443 drivers/media/i2c/mt9t001.c 	rect.top = clamp(ALIGN(sel->r.top, 2),
sel               446 drivers/media/i2c/mt9t001.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
sel               449 drivers/media/i2c/mt9t001.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
sel               458 drivers/media/i2c/mt9t001.c 	__crop = __mt9t001_get_pad_crop(mt9t001, cfg, sel->pad, sel->which);
sel               464 drivers/media/i2c/mt9t001.c 		__format = __mt9t001_get_pad_format(mt9t001, cfg, sel->pad,
sel               465 drivers/media/i2c/mt9t001.c 						    sel->which);
sel               471 drivers/media/i2c/mt9t001.c 	sel->r = rect;
sel               876 drivers/media/i2c/mt9t112.c 		struct v4l2_subdev_selection *sel)
sel               881 drivers/media/i2c/mt9t112.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               884 drivers/media/i2c/mt9t112.c 	switch (sel->target) {
sel               886 drivers/media/i2c/mt9t112.c 		sel->r.left = 0;
sel               887 drivers/media/i2c/mt9t112.c 		sel->r.top = 0;
sel               888 drivers/media/i2c/mt9t112.c 		sel->r.width = MAX_WIDTH;
sel               889 drivers/media/i2c/mt9t112.c 		sel->r.height = MAX_HEIGHT;
sel               892 drivers/media/i2c/mt9t112.c 		sel->r = priv->frame;
sel               901 drivers/media/i2c/mt9t112.c 				 struct v4l2_subdev_selection *sel)
sel               905 drivers/media/i2c/mt9t112.c 	const struct v4l2_rect *rect = &sel->r;
sel               907 drivers/media/i2c/mt9t112.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               908 drivers/media/i2c/mt9t112.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               540 drivers/media/i2c/mt9v032.c 				 struct v4l2_subdev_selection *sel)
sel               544 drivers/media/i2c/mt9v032.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               547 drivers/media/i2c/mt9v032.c 	sel->r = *__mt9v032_get_pad_crop(mt9v032, cfg, sel->pad, sel->which);
sel               553 drivers/media/i2c/mt9v032.c 				 struct v4l2_subdev_selection *sel)
sel               560 drivers/media/i2c/mt9v032.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               566 drivers/media/i2c/mt9v032.c 	rect.left = clamp(ALIGN(sel->r.left + 1, 2) - 1,
sel               569 drivers/media/i2c/mt9v032.c 	rect.top = clamp(ALIGN(sel->r.top + 1, 2) - 1,
sel               572 drivers/media/i2c/mt9v032.c 	rect.width = clamp_t(unsigned int, ALIGN(sel->r.width, 2),
sel               575 drivers/media/i2c/mt9v032.c 	rect.height = clamp_t(unsigned int, ALIGN(sel->r.height, 2),
sel               584 drivers/media/i2c/mt9v032.c 	__crop = __mt9v032_get_pad_crop(mt9v032, cfg, sel->pad, sel->which);
sel               590 drivers/media/i2c/mt9v032.c 		__format = __mt9v032_get_pad_format(mt9v032, cfg, sel->pad,
sel               591 drivers/media/i2c/mt9v032.c 						    sel->which);
sel               594 drivers/media/i2c/mt9v032.c 		if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
sel               602 drivers/media/i2c/mt9v032.c 	sel->r = rect;
sel              1041 drivers/media/i2c/ov2640.c 		struct v4l2_subdev_selection *sel)
sel              1043 drivers/media/i2c/ov2640.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel              1046 drivers/media/i2c/ov2640.c 	switch (sel->target) {
sel              1049 drivers/media/i2c/ov2640.c 		sel->r.left = 0;
sel              1050 drivers/media/i2c/ov2640.c 		sel->r.top = 0;
sel              1051 drivers/media/i2c/ov2640.c 		sel->r.width = UXGA_WIDTH;
sel              1052 drivers/media/i2c/ov2640.c 		sel->r.height = UXGA_HEIGHT;
sel               974 drivers/media/i2c/ov5645.c 			   struct v4l2_subdev_selection *sel)
sel               978 drivers/media/i2c/ov5645.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               981 drivers/media/i2c/ov5645.c 	sel->r = *__ov5645_get_pad_crop(ov5645, cfg, sel->pad,
sel               982 drivers/media/i2c/ov5645.c 					sel->which);
sel               450 drivers/media/i2c/ov6650.c 		struct v4l2_subdev_selection *sel)
sel               455 drivers/media/i2c/ov6650.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               458 drivers/media/i2c/ov6650.c 	switch (sel->target) {
sel               460 drivers/media/i2c/ov6650.c 		sel->r.left = DEF_HSTRT << 1;
sel               461 drivers/media/i2c/ov6650.c 		sel->r.top = DEF_VSTRT << 1;
sel               462 drivers/media/i2c/ov6650.c 		sel->r.width = W_CIF;
sel               463 drivers/media/i2c/ov6650.c 		sel->r.height = H_CIF;
sel               466 drivers/media/i2c/ov6650.c 		sel->r = priv->rect;
sel               475 drivers/media/i2c/ov6650.c 		struct v4l2_subdev_selection *sel)
sel               481 drivers/media/i2c/ov6650.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               482 drivers/media/i2c/ov6650.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               485 drivers/media/i2c/ov6650.c 	v4l_bound_align_image(&sel->r.width, 2, W_CIF, 1,
sel               486 drivers/media/i2c/ov6650.c 			      &sel->r.height, 2, H_CIF, 1, 0);
sel               487 drivers/media/i2c/ov6650.c 	v4l_bound_align_image(&sel->r.left, DEF_HSTRT << 1,
sel               488 drivers/media/i2c/ov6650.c 			      (DEF_HSTRT << 1) + W_CIF - (__s32)sel->r.width, 1,
sel               489 drivers/media/i2c/ov6650.c 			      &sel->r.top, DEF_VSTRT << 1,
sel               490 drivers/media/i2c/ov6650.c 			      (DEF_VSTRT << 1) + H_CIF - (__s32)sel->r.height,
sel               493 drivers/media/i2c/ov6650.c 	ret = ov6650_reg_write(client, REG_HSTRT, sel->r.left >> 1);
sel               495 drivers/media/i2c/ov6650.c 		priv->rect.width += priv->rect.left - sel->r.left;
sel               496 drivers/media/i2c/ov6650.c 		priv->rect.left = sel->r.left;
sel               498 drivers/media/i2c/ov6650.c 				       (sel->r.left + sel->r.width) >> 1);
sel               501 drivers/media/i2c/ov6650.c 		priv->rect.width = sel->r.width;
sel               502 drivers/media/i2c/ov6650.c 		ret = ov6650_reg_write(client, REG_VSTRT, sel->r.top >> 1);
sel               505 drivers/media/i2c/ov6650.c 		priv->rect.height += priv->rect.top - sel->r.top;
sel               506 drivers/media/i2c/ov6650.c 		priv->rect.top = sel->r.top;
sel               508 drivers/media/i2c/ov6650.c 				       (sel->r.top + sel->r.height) >> 1);
sel               511 drivers/media/i2c/ov6650.c 		priv->rect.height = sel->r.height;
sel               572 drivers/media/i2c/ov6650.c 	struct v4l2_subdev_selection sel = {
sel               665 drivers/media/i2c/ov6650.c 	ret = ov6650_set_selection(sd, NULL, &sel);
sel              1119 drivers/media/i2c/ov7251.c 				struct v4l2_subdev_selection *sel)
sel              1123 drivers/media/i2c/ov7251.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel              1127 drivers/media/i2c/ov7251.c 	sel->r = *__ov7251_get_pad_crop(ov7251, cfg, sel->pad,
sel              1128 drivers/media/i2c/ov7251.c 					sel->which);
sel              1140 drivers/media/i2c/ov772x.c 				struct v4l2_subdev_selection *sel)
sel              1144 drivers/media/i2c/ov772x.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel              1147 drivers/media/i2c/ov772x.c 	sel->r.left = 0;
sel              1148 drivers/media/i2c/ov772x.c 	sel->r.top = 0;
sel              1149 drivers/media/i2c/ov772x.c 	switch (sel->target) {
sel              1152 drivers/media/i2c/ov772x.c 		sel->r.width = priv->win->rect.width;
sel              1153 drivers/media/i2c/ov772x.c 		sel->r.height = priv->win->rect.height;
sel               569 drivers/media/i2c/ov9640.c 		struct v4l2_subdev_selection *sel)
sel               571 drivers/media/i2c/ov9640.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               574 drivers/media/i2c/ov9640.c 	sel->r.left = 0;
sel               575 drivers/media/i2c/ov9640.c 	sel->r.top = 0;
sel               576 drivers/media/i2c/ov9640.c 	switch (sel->target) {
sel               579 drivers/media/i2c/ov9640.c 		sel->r.width = W_SXGA;
sel               580 drivers/media/i2c/ov9640.c 		sel->r.height = H_SXGA;
sel               545 drivers/media/i2c/rj54n1cb0c.c 				struct v4l2_subdev_selection *sel)
sel               549 drivers/media/i2c/rj54n1cb0c.c 	const struct v4l2_rect *rect = &sel->r;
sel               553 drivers/media/i2c/rj54n1cb0c.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               554 drivers/media/i2c/rj54n1cb0c.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               582 drivers/media/i2c/rj54n1cb0c.c 				struct v4l2_subdev_selection *sel)
sel               587 drivers/media/i2c/rj54n1cb0c.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               590 drivers/media/i2c/rj54n1cb0c.c 	switch (sel->target) {
sel               592 drivers/media/i2c/rj54n1cb0c.c 		sel->r.left = RJ54N1_COLUMN_SKIP;
sel               593 drivers/media/i2c/rj54n1cb0c.c 		sel->r.top = RJ54N1_ROW_SKIP;
sel               594 drivers/media/i2c/rj54n1cb0c.c 		sel->r.width = RJ54N1_MAX_WIDTH;
sel               595 drivers/media/i2c/rj54n1cb0c.c 		sel->r.height = RJ54N1_MAX_HEIGHT;
sel               598 drivers/media/i2c/rj54n1cb0c.c 		sel->r = rj54n1->rect;
sel              1372 drivers/media/i2c/s5k5baf.c 				 struct v4l2_subdev_selection *sel)
sel              1377 drivers/media/i2c/s5k5baf.c 	rtype = s5k5baf_get_sel_rect(sel->pad, sel->target);
sel              1383 drivers/media/i2c/s5k5baf.c 		sel->r = s5k5baf_cis_rect;
sel              1389 drivers/media/i2c/s5k5baf.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1391 drivers/media/i2c/s5k5baf.c 			sel->r = *v4l2_subdev_get_try_compose(sd, cfg, sel->pad);
sel              1393 drivers/media/i2c/s5k5baf.c 			sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
sel              1400 drivers/media/i2c/s5k5baf.c 		sel->r = state->crop_sink;
sel              1403 drivers/media/i2c/s5k5baf.c 		sel->r = state->compose;
sel              1406 drivers/media/i2c/s5k5baf.c 		sel->r = state->crop_source;
sel              1411 drivers/media/i2c/s5k5baf.c 	if (s5k5baf_is_bound_target(sel->target)) {
sel              1412 drivers/media/i2c/s5k5baf.c 		sel->r.left = 0;
sel              1413 drivers/media/i2c/s5k5baf.c 		sel->r.top = 0;
sel              1463 drivers/media/i2c/s5k5baf.c 				 struct v4l2_subdev_selection *sel)
sel              1470 drivers/media/i2c/s5k5baf.c 	rtype = s5k5baf_get_sel_rect(sel->pad, sel->target);
sel              1471 drivers/media/i2c/s5k5baf.c 	if (rtype == R_INVALID || s5k5baf_is_bound_target(sel->target))
sel              1476 drivers/media/i2c/s5k5baf.c 		sel->r.left = 0;
sel              1477 drivers/media/i2c/s5k5baf.c 		sel->r.top = 0;
sel              1480 drivers/media/i2c/s5k5baf.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1487 drivers/media/i2c/s5k5baf.c 		s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r);
sel              1501 drivers/media/i2c/s5k5baf.c 			if (sel->r.width < state->crop_source.width)
sel              1502 drivers/media/i2c/s5k5baf.c 				sel->r.width = state->crop_source.width;
sel              1503 drivers/media/i2c/s5k5baf.c 			if (sel->r.height < state->crop_source.height)
sel              1504 drivers/media/i2c/s5k5baf.c 				sel->r.height = state->crop_source.height;
sel              1506 drivers/media/i2c/s5k5baf.c 			sel->r.width = state->crop_source.width;
sel              1507 drivers/media/i2c/s5k5baf.c 			sel->r.height = state->crop_source.height;
sel              1510 drivers/media/i2c/s5k5baf.c 	s5k5baf_set_rect_and_adjust(rects, rtype, &sel->r);
sel              1167 drivers/media/i2c/s5k6aa.c 				struct v4l2_subdev_selection *sel)
sel              1172 drivers/media/i2c/s5k6aa.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel              1175 drivers/media/i2c/s5k6aa.c 	memset(sel->reserved, 0, sizeof(sel->reserved));
sel              1178 drivers/media/i2c/s5k6aa.c 	rect = __s5k6aa_get_crop_rect(s5k6aa, cfg, sel->which);
sel              1179 drivers/media/i2c/s5k6aa.c 	sel->r = *rect;
sel              1190 drivers/media/i2c/s5k6aa.c 				struct v4l2_subdev_selection *sel)
sel              1197 drivers/media/i2c/s5k6aa.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel              1201 drivers/media/i2c/s5k6aa.c 	crop_r = __s5k6aa_get_crop_rect(s5k6aa, cfg, sel->which);
sel              1203 drivers/media/i2c/s5k6aa.c 	if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
sel              1209 drivers/media/i2c/s5k6aa.c 	v4l_bound_align_image(&sel->r.width, mf->width,
sel              1211 drivers/media/i2c/s5k6aa.c 			      &sel->r.height, mf->height,
sel              1214 drivers/media/i2c/s5k6aa.c 	max_x = (S5K6AA_WIN_WIDTH_MAX - sel->r.width) & ~1;
sel              1215 drivers/media/i2c/s5k6aa.c 	max_y = (S5K6AA_WIN_HEIGHT_MAX - sel->r.height) & ~1;
sel              1217 drivers/media/i2c/s5k6aa.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, max_x);
sel              1218 drivers/media/i2c/s5k6aa.c 	sel->r.top  = clamp_t(unsigned int, sel->r.top, 0, max_y);
sel              1220 drivers/media/i2c/s5k6aa.c 	*crop_r = sel->r;
sel              1892 drivers/media/i2c/smiapp/smiapp-core.c 				      struct v4l2_subdev_selection *sel,
sel              1901 drivers/media/i2c/smiapp/smiapp-core.c 		crops[SMIAPP_PAD_SINK]->width, sel->r.width,
sel              1902 drivers/media/i2c/smiapp/smiapp-core.c 		crops[SMIAPP_PAD_SINK]->height, sel->r.height, sel->flags);
sel              1909 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.width,
sel              1912 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.height, sel->flags);
sel              1920 drivers/media/i2c/smiapp/smiapp-core.c 	if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
sel              1925 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = (crops[SMIAPP_PAD_SINK]->width / binh) & ~1;
sel              1926 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = (crops[SMIAPP_PAD_SINK]->height / binv) & ~1;
sel              1940 drivers/media/i2c/smiapp/smiapp-core.c 				      struct v4l2_subdev_selection *sel,
sel              1954 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = min_t(unsigned int, sel->r.width,
sel              1956 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = min_t(unsigned int, sel->r.height,
sel              1960 drivers/media/i2c/smiapp/smiapp-core.c 		* sensor->limits[SMIAPP_LIMIT_SCALER_N_MIN] / sel->r.width;
sel              1962 drivers/media/i2c/smiapp/smiapp-core.c 		* sensor->limits[SMIAPP_LIMIT_SCALER_N_MIN] / sel->r.height;
sel              2000 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.width,
sel              2002 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.height,
sel              2003 drivers/media/i2c/smiapp/smiapp-core.c 			sel->flags);
sel              2021 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.width,
sel              2025 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r.height,
sel              2026 drivers/media/i2c/smiapp/smiapp-core.c 			sel->flags);
sel              2035 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width =
sel              2040 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.height =
sel              2046 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.height = crops[SMIAPP_PAD_SINK]->height;
sel              2048 drivers/media/i2c/smiapp/smiapp-core.c 	if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
sel              2056 drivers/media/i2c/smiapp/smiapp-core.c 			      struct v4l2_subdev_selection *sel)
sel              2062 drivers/media/i2c/smiapp/smiapp-core.c 	smiapp_get_crop_compose(subdev, cfg, crops, &comp, sel->which);
sel              2064 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.top = 0;
sel              2065 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.left = 0;
sel              2068 drivers/media/i2c/smiapp/smiapp-core.c 		smiapp_set_compose_binner(subdev, cfg, sel, crops, comp);
sel              2070 drivers/media/i2c/smiapp/smiapp-core.c 		smiapp_set_compose_scaler(subdev, cfg, sel, crops, comp);
sel              2072 drivers/media/i2c/smiapp/smiapp-core.c 	*comp = sel->r;
sel              2073 drivers/media/i2c/smiapp/smiapp-core.c 	smiapp_propagate(subdev, cfg, sel->which, V4L2_SEL_TGT_COMPOSE);
sel              2075 drivers/media/i2c/smiapp/smiapp-core.c 	if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE)
sel              2082 drivers/media/i2c/smiapp/smiapp-core.c 				  struct v4l2_subdev_selection *sel)
sel              2088 drivers/media/i2c/smiapp/smiapp-core.c 	switch (sel->target) {
sel              2092 drivers/media/i2c/smiapp/smiapp-core.c 		    && sel->pad == SMIAPP_PA_PAD_SRC)
sel              2095 drivers/media/i2c/smiapp/smiapp-core.c 		    && sel->pad == SMIAPP_PAD_SRC)
sel              2098 drivers/media/i2c/smiapp/smiapp-core.c 		    && sel->pad == SMIAPP_PAD_SINK
sel              2105 drivers/media/i2c/smiapp/smiapp-core.c 		    && sel->pad == SMIAPP_PA_PAD_SRC)
sel              2110 drivers/media/i2c/smiapp/smiapp-core.c 		if (sel->pad == ssd->source_pad)
sel              2126 drivers/media/i2c/smiapp/smiapp-core.c 			   struct v4l2_subdev_selection *sel)
sel              2133 drivers/media/i2c/smiapp/smiapp-core.c 	smiapp_get_crop_compose(subdev, cfg, crops, NULL, sel->which);
sel              2135 drivers/media/i2c/smiapp/smiapp-core.c 	if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
sel              2136 drivers/media/i2c/smiapp/smiapp-core.c 		if (sel->pad == ssd->sink_pad)
sel              2141 drivers/media/i2c/smiapp/smiapp-core.c 		if (sel->pad == ssd->sink_pad) {
sel              2144 drivers/media/i2c/smiapp/smiapp-core.c 			_r.width = v4l2_subdev_get_try_format(subdev, cfg, sel->pad)
sel              2146 drivers/media/i2c/smiapp/smiapp-core.c 			_r.height = v4l2_subdev_get_try_format(subdev, cfg, sel->pad)
sel              2155 drivers/media/i2c/smiapp/smiapp-core.c 	if (ssd == sensor->src && sel->pad == SMIAPP_PAD_SRC) {
sel              2156 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.left = 0;
sel              2157 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r.top = 0;
sel              2160 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = min(sel->r.width, src_size->width);
sel              2161 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = min(sel->r.height, src_size->height);
sel              2163 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.left = min_t(int, sel->r.left, src_size->width - sel->r.width);
sel              2164 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.top = min_t(int, sel->r.top, src_size->height - sel->r.height);
sel              2166 drivers/media/i2c/smiapp/smiapp-core.c 	*crops[sel->pad] = sel->r;
sel              2168 drivers/media/i2c/smiapp/smiapp-core.c 	if (ssd != sensor->pixel_array && sel->pad == SMIAPP_PAD_SINK)
sel              2169 drivers/media/i2c/smiapp/smiapp-core.c 		smiapp_propagate(subdev, cfg, sel->which,
sel              2186 drivers/media/i2c/smiapp/smiapp-core.c 				  struct v4l2_subdev_selection *sel)
sel              2194 drivers/media/i2c/smiapp/smiapp-core.c 	ret = __smiapp_sel_supported(subdev, sel);
sel              2198 drivers/media/i2c/smiapp/smiapp-core.c 	smiapp_get_crop_compose(subdev, cfg, crops, &comp, sel->which);
sel              2200 drivers/media/i2c/smiapp/smiapp-core.c 	if (sel->which == V4L2_SUBDEV_FORMAT_ACTIVE) {
sel              2212 drivers/media/i2c/smiapp/smiapp-core.c 	switch (sel->target) {
sel              2216 drivers/media/i2c/smiapp/smiapp-core.c 			smiapp_get_native_size(ssd, &sel->r);
sel              2217 drivers/media/i2c/smiapp/smiapp-core.c 		else if (sel->pad == ssd->sink_pad)
sel              2218 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r = sink_fmt;
sel              2220 drivers/media/i2c/smiapp/smiapp-core.c 			sel->r = *comp;
sel              2224 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r = *crops[sel->pad];
sel              2227 drivers/media/i2c/smiapp/smiapp-core.c 		sel->r = *comp;
sel              2236 drivers/media/i2c/smiapp/smiapp-core.c 				struct v4l2_subdev_selection *sel)
sel              2242 drivers/media/i2c/smiapp/smiapp-core.c 	rval = __smiapp_get_selection(subdev, cfg, sel);
sel              2249 drivers/media/i2c/smiapp/smiapp-core.c 				struct v4l2_subdev_selection *sel)
sel              2254 drivers/media/i2c/smiapp/smiapp-core.c 	ret = __smiapp_sel_supported(subdev, sel);
sel              2260 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.left = max(0, sel->r.left & ~1);
sel              2261 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.top = max(0, sel->r.top & ~1);
sel              2262 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = SMIAPP_ALIGN_DIM(sel->r.width, sel->flags);
sel              2263 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height =	SMIAPP_ALIGN_DIM(sel->r.height, sel->flags);
sel              2265 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.width = max_t(unsigned int,
sel              2267 drivers/media/i2c/smiapp/smiapp-core.c 			     sel->r.width);
sel              2268 drivers/media/i2c/smiapp/smiapp-core.c 	sel->r.height = max_t(unsigned int,
sel              2270 drivers/media/i2c/smiapp/smiapp-core.c 			      sel->r.height);
sel              2272 drivers/media/i2c/smiapp/smiapp-core.c 	switch (sel->target) {
sel              2274 drivers/media/i2c/smiapp/smiapp-core.c 		ret = smiapp_set_crop(subdev, cfg, sel);
sel              2277 drivers/media/i2c/smiapp/smiapp-core.c 		ret = smiapp_set_compose(subdev, cfg, sel);
sel                88 drivers/media/i2c/ths7303.c 	u8 val, sel = 0;
sel                96 drivers/media/i2c/ths7303.c 		sel = 0x3;	/*1080p and SXGA/UXGA */
sel                99 drivers/media/i2c/ths7303.c 		sel = 0x2;	/*720p, 1080i and SVGA/XGA */
sel               102 drivers/media/i2c/ths7303.c 		sel = 0x1;	/* EDTV 480p/576p and VGA */
sel               105 drivers/media/i2c/ths7303.c 		sel = 0x0;	/* SDTV, S-Video, 480i/576i */
sel               112 drivers/media/i2c/ths7303.c 	val = (sel << 6) | (sel << 3);
sel               119 drivers/media/i2c/ths7303.c 	val = (sel << 6) | (sel << 3);
sel               126 drivers/media/i2c/ths7303.c 	val = (sel << 6) | (sel << 3);
sel              1015 drivers/media/i2c/tvp5150.c 				 struct v4l2_subdev_selection *sel)
sel              1018 drivers/media/i2c/tvp5150.c 	struct v4l2_rect rect = sel->r;
sel              1022 drivers/media/i2c/tvp5150.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel              1023 drivers/media/i2c/tvp5150.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel              1075 drivers/media/i2c/tvp5150.c 				 struct v4l2_subdev_selection *sel)
sel              1080 drivers/media/i2c/tvp5150.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel              1083 drivers/media/i2c/tvp5150.c 	switch (sel->target) {
sel              1085 drivers/media/i2c/tvp5150.c 		sel->r.left = 0;
sel              1086 drivers/media/i2c/tvp5150.c 		sel->r.top = 0;
sel              1087 drivers/media/i2c/tvp5150.c 		sel->r.width = TVP5150_H_MAX;
sel              1095 drivers/media/i2c/tvp5150.c 			sel->r.height = TVP5150_V_MAX_525_60;
sel              1097 drivers/media/i2c/tvp5150.c 			sel->r.height = TVP5150_V_MAX_OTHERS;
sel              1100 drivers/media/i2c/tvp5150.c 		sel->r = decoder->rect;
sel               724 drivers/media/i2c/tw9910.c 				struct v4l2_subdev_selection *sel)
sel               729 drivers/media/i2c/tw9910.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               732 drivers/media/i2c/tw9910.c 	if (sel->target > V4L2_SEL_TGT_CROP_BOUNDS)
sel               735 drivers/media/i2c/tw9910.c 	sel->r.left	= 0;
sel               736 drivers/media/i2c/tw9910.c 	sel->r.top	= 0;
sel               738 drivers/media/i2c/tw9910.c 		sel->r.width	= 640;
sel               739 drivers/media/i2c/tw9910.c 		sel->r.height	= 480;
sel               741 drivers/media/i2c/tw9910.c 		sel->r.width	= 768;
sel               742 drivers/media/i2c/tw9910.c 		sel->r.height	= 576;
sel              2756 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_g_selection(struct file *file, void *f, struct v4l2_selection *sel)
sel              2761 drivers/media/pci/bt8xx/bttv-driver.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
sel              2762 drivers/media/pci/bt8xx/bttv-driver.c 	    sel->type != V4L2_BUF_TYPE_VIDEO_OVERLAY)
sel              2765 drivers/media/pci/bt8xx/bttv-driver.c 	switch (sel->target) {
sel              2772 drivers/media/pci/bt8xx/bttv-driver.c 		sel->r = btv->crop[!!fh->do_crop].rect;
sel              2775 drivers/media/pci/bt8xx/bttv-driver.c 		sel->r = bttv_tvnorms[btv->tvnorm].cropcap.defrect;
sel              2778 drivers/media/pci/bt8xx/bttv-driver.c 		sel->r = bttv_tvnorms[btv->tvnorm].cropcap.bounds;
sel              2787 drivers/media/pci/bt8xx/bttv-driver.c static int bttv_s_selection(struct file *file, void *f, struct v4l2_selection *sel)
sel              2799 drivers/media/pci/bt8xx/bttv-driver.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
sel              2800 drivers/media/pci/bt8xx/bttv-driver.c 	    sel->type != V4L2_BUF_TYPE_VIDEO_OVERLAY)
sel              2803 drivers/media/pci/bt8xx/bttv-driver.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel              2827 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.left = clamp_t(s32, sel->r.left, b_left, b_right - 48);
sel              2830 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.width = clamp_t(s32, sel->r.width,
sel              2833 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.top = clamp_t(s32, sel->r.top, b_top, b_bottom - 32);
sel              2837 drivers/media/pci/bt8xx/bttv-driver.c 	c.rect.height = clamp_t(s32, sel->r.height,
sel              2843 drivers/media/pci/bt8xx/bttv-driver.c 	sel->r = c.rect;
sel              1089 drivers/media/pci/cobalt/cobalt-v4l2.c 			      struct v4l2_selection *sel)
sel              1095 drivers/media/pci/cobalt/cobalt-v4l2.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel              1106 drivers/media/pci/cobalt/cobalt-v4l2.c 	switch (sel->target) {
sel              1109 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.top = 0;
sel              1110 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.left = 0;
sel              1111 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.width = timings.bt.width;
sel              1112 drivers/media/pci/cobalt/cobalt-v4l2.c 		sel->r.height = timings.bt.height;
sel               446 drivers/media/pci/cx18/cx18-ioctl.c 			    struct v4l2_selection *sel)
sel               450 drivers/media/pci/cx18/cx18-ioctl.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel               452 drivers/media/pci/cx18/cx18-ioctl.c 	switch (sel->target) {
sel               455 drivers/media/pci/cx18/cx18-ioctl.c 		sel->r.top = sel->r.left = 0;
sel               456 drivers/media/pci/cx18/cx18-ioctl.c 		sel->r.width = 720;
sel               457 drivers/media/pci/cx18/cx18-ioctl.c 		sel->r.height = cx->is_50hz ? 576 : 480;
sel               671 drivers/media/pci/cx23885/cx23885-video.c 			      struct v4l2_selection *sel)
sel               675 drivers/media/pci/cx23885/cx23885-video.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel               678 drivers/media/pci/cx23885/cx23885-video.c 	switch (sel->target) {
sel               681 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.top = 0;
sel               682 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.left = 0;
sel               683 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.width = 720;
sel               684 drivers/media/pci/cx23885/cx23885-video.c 		sel->r.height = norm_maxh(dev->tvnorm);
sel               832 drivers/media/pci/ivtv/ivtv-ioctl.c 			    struct v4l2_selection *sel)
sel               840 drivers/media/pci/ivtv/ivtv-ioctl.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT ||
sel               844 drivers/media/pci/ivtv/ivtv-ioctl.c 	if (sel->target != V4L2_SEL_TGT_COMPOSE)
sel               848 drivers/media/pci/ivtv/ivtv-ioctl.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT ||
sel               857 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.width = clamp(sel->r.width, 16U, r.width);
sel               858 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.height = clamp(sel->r.height, 16U, r.height);
sel               859 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.left = clamp_t(unsigned, sel->r.left, 0, r.width - sel->r.width);
sel               860 drivers/media/pci/ivtv/ivtv-ioctl.c 	sel->r.top = clamp_t(unsigned, sel->r.top, 0, r.height - sel->r.height);
sel               863 drivers/media/pci/ivtv/ivtv-ioctl.c 		yi->main_rect = sel->r;
sel               867 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.width, sel->r.height, sel->r.left, sel->r.top)) {
sel               868 drivers/media/pci/ivtv/ivtv-ioctl.c 		itv->main_rect = sel->r;
sel               875 drivers/media/pci/ivtv/ivtv-ioctl.c 			    struct v4l2_selection *sel)
sel               883 drivers/media/pci/ivtv/ivtv-ioctl.c 	if (sel->type == V4L2_BUF_TYPE_VIDEO_CAPTURE) {
sel               884 drivers/media/pci/ivtv/ivtv-ioctl.c 		switch (sel->target) {
sel               887 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.top = sel->r.left = 0;
sel               888 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.width = 720;
sel               889 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r.height = itv->is_50hz ? 576 : 480;
sel               896 drivers/media/pci/ivtv/ivtv-ioctl.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT ||
sel               900 drivers/media/pci/ivtv/ivtv-ioctl.c 	switch (sel->target) {
sel               903 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r = yi->main_rect;
sel               905 drivers/media/pci/ivtv/ivtv-ioctl.c 			sel->r = itv->main_rect;
sel               914 drivers/media/pci/ivtv/ivtv-ioctl.c 		sel->r = r;
sel              1620 drivers/media/pci/saa7134/saa7134-video.c static int saa7134_g_selection(struct file *file, void *f, struct v4l2_selection *sel)
sel              1624 drivers/media/pci/saa7134/saa7134-video.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
sel              1625 drivers/media/pci/saa7134/saa7134-video.c 	    sel->type != V4L2_BUF_TYPE_VIDEO_OVERLAY)
sel              1628 drivers/media/pci/saa7134/saa7134-video.c 	switch (sel->target) {
sel              1630 drivers/media/pci/saa7134/saa7134-video.c 		sel->r = dev->crop_current;
sel              1633 drivers/media/pci/saa7134/saa7134-video.c 		sel->r = dev->crop_defrect;
sel              1636 drivers/media/pci/saa7134/saa7134-video.c 		sel->r  = dev->crop_bounds;
sel              1644 drivers/media/pci/saa7134/saa7134-video.c static int saa7134_s_selection(struct file *file, void *f, struct v4l2_selection *sel)
sel              1650 drivers/media/pci/saa7134/saa7134-video.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE &&
sel              1651 drivers/media/pci/saa7134/saa7134-video.c 	    sel->type != V4L2_BUF_TYPE_VIDEO_OVERLAY)
sel              1654 drivers/media/pci/saa7134/saa7134-video.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel              1662 drivers/media/pci/saa7134/saa7134-video.c 	*c = sel->r;
sel              1676 drivers/media/pci/saa7134/saa7134-video.c 	sel->r = *c;
sel               642 drivers/media/platform/davinci/vpbe_display.c 			     struct v4l2_selection *sel)
sel               649 drivers/media/platform/davinci/vpbe_display.c 	struct v4l2_rect rect = sel->r;
sel               655 drivers/media/platform/davinci/vpbe_display.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT ||
sel               656 drivers/media/platform/davinci/vpbe_display.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               705 drivers/media/platform/davinci/vpbe_display.c 	sel->r = rect;
sel               710 drivers/media/platform/davinci/vpbe_display.c 				    struct v4l2_selection *sel)
sel               716 drivers/media/platform/davinci/vpbe_display.c 	struct v4l2_rect *rect = &sel->r;
sel               722 drivers/media/platform/davinci/vpbe_display.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
sel               725 drivers/media/platform/davinci/vpbe_display.c 	switch (sel->target) {
sel              1534 drivers/media/platform/davinci/vpfe_capture.c 			    struct v4l2_selection *sel)
sel              1540 drivers/media/platform/davinci/vpfe_capture.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel              1543 drivers/media/platform/davinci/vpfe_capture.c 	switch (sel->target) {
sel              1545 drivers/media/platform/davinci/vpfe_capture.c 		sel->r = vpfe_dev->crop;
sel              1549 drivers/media/platform/davinci/vpfe_capture.c 		sel->r.width = vpfe_standards[vpfe_dev->std_index].width;
sel              1550 drivers/media/platform/davinci/vpfe_capture.c 		sel->r.height = vpfe_standards[vpfe_dev->std_index].height;
sel              1559 drivers/media/platform/davinci/vpfe_capture.c 			    struct v4l2_selection *sel)
sel              1562 drivers/media/platform/davinci/vpfe_capture.c 	struct v4l2_rect rect = sel->r;
sel              1567 drivers/media/platform/davinci/vpfe_capture.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
sel              1568 drivers/media/platform/davinci/vpfe_capture.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel              1610 drivers/media/platform/davinci/vpfe_capture.c 	sel->r = rect;
sel               492 drivers/media/platform/exynos-gsc/gsc-m2m.c 	struct v4l2_selection sel = *s;
sel               499 drivers/media/platform/exynos-gsc/gsc-m2m.c 	ret = gsc_try_selection(ctx, &sel);
sel               504 drivers/media/platform/exynos-gsc/gsc-m2m.c 	    !is_rectangle_enclosed(&sel.r, &s->r))
sel               508 drivers/media/platform/exynos-gsc/gsc-m2m.c 	    !is_rectangle_enclosed(&s->r, &sel.r))
sel               511 drivers/media/platform/exynos-gsc/gsc-m2m.c 	s->r = sel.r;
sel               533 drivers/media/platform/exynos-gsc/gsc-m2m.c 			ret = gsc_check_scaler_ratio(variant, sel.r.width,
sel               534 drivers/media/platform/exynos-gsc/gsc-m2m.c 				sel.r.height, ctx->d_frame.crop.width,
sel               540 drivers/media/platform/exynos-gsc/gsc-m2m.c 				ctx->s_frame.crop.height, sel.r.width,
sel               541 drivers/media/platform/exynos-gsc/gsc-m2m.c 				sel.r.height, ctx->gsc_ctrls.rotate->val,
sel               551 drivers/media/platform/exynos-gsc/gsc-m2m.c 	frame->crop = sel.r;
sel              1598 drivers/media/platform/exynos4-is/fimc-capture.c 				     struct v4l2_subdev_selection *sel)
sel              1603 drivers/media/platform/exynos4-is/fimc-capture.c 	struct v4l2_rect *r = &sel->r;
sel              1606 drivers/media/platform/exynos4-is/fimc-capture.c 	if (sel->pad == FIMC_SD_PAD_SOURCE)
sel              1611 drivers/media/platform/exynos4-is/fimc-capture.c 	switch (sel->target) {
sel              1624 drivers/media/platform/exynos4-is/fimc-capture.c 		try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
sel              1627 drivers/media/platform/exynos4-is/fimc-capture.c 		try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad);
sel              1635 drivers/media/platform/exynos4-is/fimc-capture.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1636 drivers/media/platform/exynos4-is/fimc-capture.c 		sel->r = *try_sel;
sel              1645 drivers/media/platform/exynos4-is/fimc-capture.c 	    sel->pad, r->left, r->top, r->width, r->height,
sel              1654 drivers/media/platform/exynos4-is/fimc-capture.c 				     struct v4l2_subdev_selection *sel)
sel              1659 drivers/media/platform/exynos4-is/fimc-capture.c 	struct v4l2_rect *r = &sel->r;
sel              1663 drivers/media/platform/exynos4-is/fimc-capture.c 	if (sel->pad == FIMC_SD_PAD_SOURCE)
sel              1669 drivers/media/platform/exynos4-is/fimc-capture.c 	switch (sel->target) {
sel              1671 drivers/media/platform/exynos4-is/fimc-capture.c 		try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
sel              1674 drivers/media/platform/exynos4-is/fimc-capture.c 		try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad);
sel              1682 drivers/media/platform/exynos4-is/fimc-capture.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1683 drivers/media/platform/exynos4-is/fimc-capture.c 		*try_sel = sel->r;
sel              1688 drivers/media/platform/exynos4-is/fimc-capture.c 		if (sel->target == V4L2_SEL_TGT_COMPOSE)
sel              1693 drivers/media/platform/exynos4-is/fimc-capture.c 	dbg("target %#x: (%d,%d)/%dx%d", sel->target, r->left, r->top,
sel               885 drivers/media/platform/exynos4-is/fimc-lite.c 				 struct v4l2_selection *sel)
sel               890 drivers/media/platform/exynos4-is/fimc-lite.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel               893 drivers/media/platform/exynos4-is/fimc-lite.c 	switch (sel->target) {
sel               896 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.left = 0;
sel               897 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.top = 0;
sel               898 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.width = f->f_width;
sel               899 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.height = f->f_height;
sel               903 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r = f->rect;
sel               911 drivers/media/platform/exynos4-is/fimc-lite.c 				 struct v4l2_selection *sel)
sel               915 drivers/media/platform/exynos4-is/fimc-lite.c 	struct v4l2_rect rect = sel->r;
sel               918 drivers/media/platform/exynos4-is/fimc-lite.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
sel               919 drivers/media/platform/exynos4-is/fimc-lite.c 	    sel->target != V4L2_SEL_TGT_COMPOSE)
sel               924 drivers/media/platform/exynos4-is/fimc-lite.c 	if ((sel->flags & V4L2_SEL_FLAG_LE) &&
sel               925 drivers/media/platform/exynos4-is/fimc-lite.c 	    !enclosed_rectangle(&rect, &sel->r))
sel               928 drivers/media/platform/exynos4-is/fimc-lite.c 	if ((sel->flags & V4L2_SEL_FLAG_GE) &&
sel               929 drivers/media/platform/exynos4-is/fimc-lite.c 	    !enclosed_rectangle(&sel->r, &rect))
sel               932 drivers/media/platform/exynos4-is/fimc-lite.c 	sel->r = rect;
sel              1131 drivers/media/platform/exynos4-is/fimc-lite.c 					  struct v4l2_subdev_selection *sel)
sel              1136 drivers/media/platform/exynos4-is/fimc-lite.c 	if ((sel->target != V4L2_SEL_TGT_CROP &&
sel              1137 drivers/media/platform/exynos4-is/fimc-lite.c 	     sel->target != V4L2_SEL_TGT_CROP_BOUNDS) ||
sel              1138 drivers/media/platform/exynos4-is/fimc-lite.c 	     sel->pad != FLITE_SD_PAD_SINK)
sel              1141 drivers/media/platform/exynos4-is/fimc-lite.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1142 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
sel              1147 drivers/media/platform/exynos4-is/fimc-lite.c 	if (sel->target == V4L2_SEL_TGT_CROP) {
sel              1148 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r = f->rect;
sel              1150 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.left = 0;
sel              1151 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.top = 0;
sel              1152 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.width = f->f_width;
sel              1153 drivers/media/platform/exynos4-is/fimc-lite.c 		sel->r.height = f->f_height;
sel              1166 drivers/media/platform/exynos4-is/fimc-lite.c 					  struct v4l2_subdev_selection *sel)
sel              1172 drivers/media/platform/exynos4-is/fimc-lite.c 	if (sel->target != V4L2_SEL_TGT_CROP || sel->pad != FLITE_SD_PAD_SINK)
sel              1176 drivers/media/platform/exynos4-is/fimc-lite.c 	fimc_lite_try_crop(fimc, &sel->r);
sel              1178 drivers/media/platform/exynos4-is/fimc-lite.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1179 drivers/media/platform/exynos4-is/fimc-lite.c 		*v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r;
sel              1183 drivers/media/platform/exynos4-is/fimc-lite.c 		f->rect = sel->r;
sel              1185 drivers/media/platform/exynos4-is/fimc-lite.c 		fimc->out_frame.rect = sel->r;
sel               789 drivers/media/platform/omap/omap_vout.c static int vidioc_g_selection(struct file *file, void *fh, struct v4l2_selection *sel)
sel               794 drivers/media/platform/omap/omap_vout.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
sel               797 drivers/media/platform/omap/omap_vout.c 	switch (sel->target) {
sel               799 drivers/media/platform/omap/omap_vout.c 		sel->r = vout->crop;
sel               802 drivers/media/platform/omap/omap_vout.c 		omap_vout_default_crop(&vout->pix, &vout->fbuf, &sel->r);
sel               806 drivers/media/platform/omap/omap_vout.c 		sel->r.width = pix->width & ~1;
sel               807 drivers/media/platform/omap/omap_vout.c 		sel->r.height = pix->height & ~1;
sel               815 drivers/media/platform/omap/omap_vout.c static int vidioc_s_selection(struct file *file, void *fh, struct v4l2_selection *sel)
sel               824 drivers/media/platform/omap/omap_vout.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
sel               827 drivers/media/platform/omap/omap_vout.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               854 drivers/media/platform/omap/omap_vout.c 				 &vout->fbuf, &sel->r);
sel              2221 drivers/media/platform/omap3isp/ispccdc.c 			      struct v4l2_subdev_selection *sel)
sel              2226 drivers/media/platform/omap3isp/ispccdc.c 	if (sel->pad != CCDC_PAD_SOURCE_OF)
sel              2229 drivers/media/platform/omap3isp/ispccdc.c 	switch (sel->target) {
sel              2231 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.left = 0;
sel              2232 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.top = 0;
sel              2233 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.width = INT_MAX;
sel              2234 drivers/media/platform/omap3isp/ispccdc.c 		sel->r.height = INT_MAX;
sel              2236 drivers/media/platform/omap3isp/ispccdc.c 		format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SINK, sel->which);
sel              2237 drivers/media/platform/omap3isp/ispccdc.c 		ccdc_try_crop(ccdc, format, &sel->r);
sel              2241 drivers/media/platform/omap3isp/ispccdc.c 		sel->r = *__ccdc_get_crop(ccdc, cfg, sel->which);
sel              2263 drivers/media/platform/omap3isp/ispccdc.c 			      struct v4l2_subdev_selection *sel)
sel              2268 drivers/media/platform/omap3isp/ispccdc.c 	if (sel->target != V4L2_SEL_TGT_CROP ||
sel              2269 drivers/media/platform/omap3isp/ispccdc.c 	    sel->pad != CCDC_PAD_SOURCE_OF)
sel              2280 drivers/media/platform/omap3isp/ispccdc.c 	if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) {
sel              2281 drivers/media/platform/omap3isp/ispccdc.c 		sel->r = *__ccdc_get_crop(ccdc, cfg, sel->which);
sel              2285 drivers/media/platform/omap3isp/ispccdc.c 	format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SINK, sel->which);
sel              2286 drivers/media/platform/omap3isp/ispccdc.c 	ccdc_try_crop(ccdc, format, &sel->r);
sel              2287 drivers/media/platform/omap3isp/ispccdc.c 	*__ccdc_get_crop(ccdc, cfg, sel->which) = sel->r;
sel              2290 drivers/media/platform/omap3isp/ispccdc.c 	format = __ccdc_get_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, sel->which);
sel              2291 drivers/media/platform/omap3isp/ispccdc.c 	ccdc_try_format(ccdc, cfg, CCDC_PAD_SOURCE_OF, format, sel->which);
sel              1930 drivers/media/platform/omap3isp/isppreview.c 				 struct v4l2_subdev_selection *sel)
sel              1935 drivers/media/platform/omap3isp/isppreview.c 	if (sel->pad != PREV_PAD_SINK)
sel              1938 drivers/media/platform/omap3isp/isppreview.c 	switch (sel->target) {
sel              1940 drivers/media/platform/omap3isp/isppreview.c 		sel->r.left = 0;
sel              1941 drivers/media/platform/omap3isp/isppreview.c 		sel->r.top = 0;
sel              1942 drivers/media/platform/omap3isp/isppreview.c 		sel->r.width = INT_MAX;
sel              1943 drivers/media/platform/omap3isp/isppreview.c 		sel->r.height = INT_MAX;
sel              1946 drivers/media/platform/omap3isp/isppreview.c 					      sel->which);
sel              1947 drivers/media/platform/omap3isp/isppreview.c 		preview_try_crop(prev, format, &sel->r);
sel              1951 drivers/media/platform/omap3isp/isppreview.c 		sel->r = *__preview_get_crop(prev, cfg, sel->which);
sel              1973 drivers/media/platform/omap3isp/isppreview.c 				 struct v4l2_subdev_selection *sel)
sel              1978 drivers/media/platform/omap3isp/isppreview.c 	if (sel->target != V4L2_SEL_TGT_CROP ||
sel              1979 drivers/media/platform/omap3isp/isppreview.c 	    sel->pad != PREV_PAD_SINK)
sel              1990 drivers/media/platform/omap3isp/isppreview.c 	if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) {
sel              1991 drivers/media/platform/omap3isp/isppreview.c 		sel->r = *__preview_get_crop(prev, cfg, sel->which);
sel              1995 drivers/media/platform/omap3isp/isppreview.c 	format = __preview_get_format(prev, cfg, PREV_PAD_SINK, sel->which);
sel              1996 drivers/media/platform/omap3isp/isppreview.c 	preview_try_crop(prev, format, &sel->r);
sel              1997 drivers/media/platform/omap3isp/isppreview.c 	*__preview_get_crop(prev, cfg, sel->which) = sel->r;
sel              2000 drivers/media/platform/omap3isp/isppreview.c 	format = __preview_get_format(prev, cfg, PREV_PAD_SOURCE, sel->which);
sel              2001 drivers/media/platform/omap3isp/isppreview.c 	preview_try_format(prev, cfg, PREV_PAD_SOURCE, format, sel->which);
sel              1224 drivers/media/platform/omap3isp/ispresizer.c 				 struct v4l2_subdev_selection *sel)
sel              1231 drivers/media/platform/omap3isp/ispresizer.c 	if (sel->pad != RESZ_PAD_SINK)
sel              1235 drivers/media/platform/omap3isp/ispresizer.c 					   sel->which);
sel              1237 drivers/media/platform/omap3isp/ispresizer.c 					     sel->which);
sel              1239 drivers/media/platform/omap3isp/ispresizer.c 	switch (sel->target) {
sel              1241 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.left = 0;
sel              1242 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.top = 0;
sel              1243 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.width = INT_MAX;
sel              1244 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.height = INT_MAX;
sel              1246 drivers/media/platform/omap3isp/ispresizer.c 		resizer_try_crop(format_sink, format_source, &sel->r);
sel              1247 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &sel->r, format_source, &ratio);
sel              1251 drivers/media/platform/omap3isp/ispresizer.c 		sel->r = *__resizer_get_crop(res, cfg, sel->which);
sel              1252 drivers/media/platform/omap3isp/ispresizer.c 		resizer_calc_ratios(res, &sel->r, format_source, &ratio);
sel              1277 drivers/media/platform/omap3isp/ispresizer.c 				 struct v4l2_subdev_selection *sel)
sel              1286 drivers/media/platform/omap3isp/ispresizer.c 	if (sel->target != V4L2_SEL_TGT_CROP ||
sel              1287 drivers/media/platform/omap3isp/ispresizer.c 	    sel->pad != RESZ_PAD_SINK)
sel              1291 drivers/media/platform/omap3isp/ispresizer.c 					   sel->which);
sel              1293 drivers/media/platform/omap3isp/ispresizer.c 					      sel->which);
sel              1296 drivers/media/platform/omap3isp/ispresizer.c 		__func__, sel->which == V4L2_SUBDEV_FORMAT_TRY ? "try" : "act",
sel              1298 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.left, sel->r.top, sel->r.width, sel->r.height,
sel              1309 drivers/media/platform/omap3isp/ispresizer.c 	resizer_try_crop(format_sink, &format_source, &sel->r);
sel              1310 drivers/media/platform/omap3isp/ispresizer.c 	*__resizer_get_crop(res, cfg, sel->which) = sel->r;
sel              1311 drivers/media/platform/omap3isp/ispresizer.c 	resizer_calc_ratios(res, &sel->r, &format_source, &ratio);
sel              1314 drivers/media/platform/omap3isp/ispresizer.c 		__func__, sel->which == V4L2_SUBDEV_FORMAT_TRY ? "try" : "act",
sel              1316 drivers/media/platform/omap3isp/ispresizer.c 		sel->r.left, sel->r.top, sel->r.width, sel->r.height,
sel              1319 drivers/media/platform/omap3isp/ispresizer.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1320 drivers/media/platform/omap3isp/ispresizer.c 		*__resizer_get_format(res, cfg, RESZ_PAD_SOURCE, sel->which) =
sel              1331 drivers/media/platform/omap3isp/ispresizer.c 	*__resizer_get_format(res, cfg, RESZ_PAD_SOURCE, sel->which) =
sel              1335 drivers/media/platform/omap3isp/ispresizer.c 	res->crop.active = sel->r;
sel               768 drivers/media/platform/omap3isp/ispvideo.c isp_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel)
sel               775 drivers/media/platform/omap3isp/ispvideo.c 		.target = sel->target,
sel               780 drivers/media/platform/omap3isp/ispvideo.c 	switch (sel->target) {
sel               806 drivers/media/platform/omap3isp/ispvideo.c 		sel->r = sdsel.r;
sel               816 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.left = 0;
sel               817 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.top = 0;
sel               818 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.width = format.format.width;
sel               819 drivers/media/platform/omap3isp/ispvideo.c 	sel->r.height = format.format.height;
sel               825 drivers/media/platform/omap3isp/ispvideo.c isp_video_set_selection(struct file *file, void *fh, struct v4l2_selection *sel)
sel               831 drivers/media/platform/omap3isp/ispvideo.c 		.target = sel->target,
sel               832 drivers/media/platform/omap3isp/ispvideo.c 		.flags = sel->flags,
sel               833 drivers/media/platform/omap3isp/ispvideo.c 		.r = sel->r,
sel               838 drivers/media/platform/omap3isp/ispvideo.c 	switch (sel->target) {
sel               859 drivers/media/platform/omap3isp/ispvideo.c 		sel->r = sdsel.r;
sel              1761 drivers/media/platform/qcom/camss/camss-vfe.c 			     struct v4l2_subdev_selection *sel);
sel              1786 drivers/media/platform/qcom/camss/camss-vfe.c 		struct v4l2_subdev_selection sel = { 0 };
sel              1801 drivers/media/platform/qcom/camss/camss-vfe.c 		sel.which = fmt->which;
sel              1802 drivers/media/platform/qcom/camss/camss-vfe.c 		sel.pad = MSM_VFE_PAD_SINK;
sel              1803 drivers/media/platform/qcom/camss/camss-vfe.c 		sel.target = V4L2_SEL_TGT_COMPOSE;
sel              1804 drivers/media/platform/qcom/camss/camss-vfe.c 		sel.r.width = fmt->format.width;
sel              1805 drivers/media/platform/qcom/camss/camss-vfe.c 		sel.r.height = fmt->format.height;
sel              1806 drivers/media/platform/qcom/camss/camss-vfe.c 		ret = vfe_set_selection(sd, cfg, &sel);
sel              1824 drivers/media/platform/qcom/camss/camss-vfe.c 			     struct v4l2_subdev_selection *sel)
sel              1834 drivers/media/platform/qcom/camss/camss-vfe.c 	if (sel->pad == MSM_VFE_PAD_SINK)
sel              1835 drivers/media/platform/qcom/camss/camss-vfe.c 		switch (sel->target) {
sel              1837 drivers/media/platform/qcom/camss/camss-vfe.c 			fmt.pad = sel->pad;
sel              1838 drivers/media/platform/qcom/camss/camss-vfe.c 			fmt.which = sel->which;
sel              1843 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.left = 0;
sel              1844 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.top = 0;
sel              1845 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.width = fmt.format.width;
sel              1846 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.height = fmt.format.height;
sel              1849 drivers/media/platform/qcom/camss/camss-vfe.c 			rect = __vfe_get_compose(line, cfg, sel->which);
sel              1853 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r = *rect;
sel              1858 drivers/media/platform/qcom/camss/camss-vfe.c 	else if (sel->pad == MSM_VFE_PAD_SRC)
sel              1859 drivers/media/platform/qcom/camss/camss-vfe.c 		switch (sel->target) {
sel              1861 drivers/media/platform/qcom/camss/camss-vfe.c 			rect = __vfe_get_compose(line, cfg, sel->which);
sel              1865 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.left = rect->left;
sel              1866 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.top = rect->top;
sel              1867 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.width = rect->width;
sel              1868 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r.height = rect->height;
sel              1871 drivers/media/platform/qcom/camss/camss-vfe.c 			rect = __vfe_get_crop(line, cfg, sel->which);
sel              1875 drivers/media/platform/qcom/camss/camss-vfe.c 			sel->r = *rect;
sel              1894 drivers/media/platform/qcom/camss/camss-vfe.c 			     struct v4l2_subdev_selection *sel)
sel              1903 drivers/media/platform/qcom/camss/camss-vfe.c 	if (sel->target == V4L2_SEL_TGT_COMPOSE &&
sel              1904 drivers/media/platform/qcom/camss/camss-vfe.c 		sel->pad == MSM_VFE_PAD_SINK) {
sel              1907 drivers/media/platform/qcom/camss/camss-vfe.c 		rect = __vfe_get_compose(line, cfg, sel->which);
sel              1911 drivers/media/platform/qcom/camss/camss-vfe.c 		vfe_try_compose(line, cfg, &sel->r, sel->which);
sel              1912 drivers/media/platform/qcom/camss/camss-vfe.c 		*rect = sel->r;
sel              1915 drivers/media/platform/qcom/camss/camss-vfe.c 		crop.which = sel->which;
sel              1920 drivers/media/platform/qcom/camss/camss-vfe.c 	} else if (sel->target == V4L2_SEL_TGT_CROP &&
sel              1921 drivers/media/platform/qcom/camss/camss-vfe.c 		sel->pad == MSM_VFE_PAD_SRC) {
sel              1924 drivers/media/platform/qcom/camss/camss-vfe.c 		rect = __vfe_get_crop(line, cfg, sel->which);
sel              1928 drivers/media/platform/qcom/camss/camss-vfe.c 		vfe_try_crop(line, cfg, &sel->r, sel->which);
sel              1929 drivers/media/platform/qcom/camss/camss-vfe.c 		*rect = sel->r;
sel              1932 drivers/media/platform/qcom/camss/camss-vfe.c 		fmt.which = sel->which;
sel               978 drivers/media/platform/s3c-camif/camif-capture.c 				 struct v4l2_selection *sel)
sel               982 drivers/media/platform/s3c-camif/camif-capture.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel               985 drivers/media/platform/s3c-camif/camif-capture.c 	switch (sel->target) {
sel               988 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.left = 0;
sel               989 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.top = 0;
sel               990 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.width = vp->out_frame.f_width;
sel               991 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.height = vp->out_frame.f_height;
sel               995 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r = vp->out_frame.rect;
sel              1015 drivers/media/platform/s3c-camif/camif-capture.c 				 struct v4l2_selection *sel)
sel              1019 drivers/media/platform/s3c-camif/camif-capture.c 	struct v4l2_rect rect = sel->r;
sel              1022 drivers/media/platform/s3c-camif/camif-capture.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
sel              1023 drivers/media/platform/s3c-camif/camif-capture.c 	    sel->target != V4L2_SEL_TGT_COMPOSE)
sel              1028 drivers/media/platform/s3c-camif/camif-capture.c 	sel->r = rect;
sel              1035 drivers/media/platform/s3c-camif/camif-capture.c 		sel->type, sel->target, sel->flags,
sel              1036 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.left, sel->r.top, sel->r.width, sel->r.height);
sel              1349 drivers/media/platform/s3c-camif/camif-capture.c 					  struct v4l2_subdev_selection *sel)
sel              1355 drivers/media/platform/s3c-camif/camif-capture.c 	if ((sel->target != V4L2_SEL_TGT_CROP &&
sel              1356 drivers/media/platform/s3c-camif/camif-capture.c 	    sel->target != V4L2_SEL_TGT_CROP_BOUNDS) ||
sel              1357 drivers/media/platform/s3c-camif/camif-capture.c 	    sel->pad != CAMIF_SD_PAD_SINK)
sel              1360 drivers/media/platform/s3c-camif/camif-capture.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1361 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r = *v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
sel              1367 drivers/media/platform/s3c-camif/camif-capture.c 	if (sel->target == V4L2_SEL_TGT_CROP) {
sel              1368 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r = *crop;
sel              1370 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.width = mf->width;
sel              1371 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.height = mf->height;
sel              1372 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.left = 0;
sel              1373 drivers/media/platform/s3c-camif/camif-capture.c 		sel->r.top = 0;
sel              1436 drivers/media/platform/s3c-camif/camif-capture.c 					  struct v4l2_subdev_selection *sel)
sel              1442 drivers/media/platform/s3c-camif/camif-capture.c 	if (sel->target != V4L2_SEL_TGT_CROP || sel->pad != CAMIF_SD_PAD_SINK)
sel              1446 drivers/media/platform/s3c-camif/camif-capture.c 	__camif_try_crop(camif, &sel->r);
sel              1448 drivers/media/platform/s3c-camif/camif-capture.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY) {
sel              1449 drivers/media/platform/s3c-camif/camif-capture.c 		*v4l2_subdev_get_try_crop(sd, cfg, sel->pad) = sel->r;
sel              1455 drivers/media/platform/s3c-camif/camif-capture.c 		*crop = sel->r;
sel               896 drivers/media/platform/sh_vou.c 			      struct v4l2_selection *sel)
sel               900 drivers/media/platform/sh_vou.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
sel               902 drivers/media/platform/sh_vou.c 	switch (sel->target) {
sel               904 drivers/media/platform/sh_vou.c 		sel->r = vou_dev->rect;
sel               908 drivers/media/platform/sh_vou.c 		sel->r.left = 0;
sel               909 drivers/media/platform/sh_vou.c 		sel->r.top = 0;
sel               910 drivers/media/platform/sh_vou.c 		sel->r.width = VOU_MAX_IMAGE_WIDTH;
sel               912 drivers/media/platform/sh_vou.c 			sel->r.height = 480;
sel               914 drivers/media/platform/sh_vou.c 			sel->r.height = 576;
sel               924 drivers/media/platform/sh_vou.c 			      struct v4l2_selection *sel)
sel               926 drivers/media/platform/sh_vou.c 	struct v4l2_rect *rect = &sel->r;
sel               944 drivers/media/platform/sh_vou.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT ||
sel               945 drivers/media/platform/sh_vou.c 	    sel->target != V4L2_SEL_TGT_COMPOSE)
sel               128 drivers/media/platform/ti-vpe/csc.c 	int sel = 0;
sel               139 drivers/media/platform/ti-vpe/csc.c 		sel = 1;
sel               145 drivers/media/platform/ti-vpe/csc.c 		sel = 3;
sel               152 drivers/media/platform/ti-vpe/csc.c 	sd_hd_coeffs = &colorspace_coeffs[sel];
sel              1921 drivers/media/platform/ti-vpe/vpe.c 	struct v4l2_selection sel = *s;
sel              1924 drivers/media/platform/ti-vpe/vpe.c 	ret = __vpe_try_selection(ctx, &sel);
sel              1928 drivers/media/platform/ti-vpe/vpe.c 	q_data = get_q_data(ctx, sel.type);
sel              1932 drivers/media/platform/ti-vpe/vpe.c 	if ((q_data->c_rect.left == sel.r.left) &&
sel              1933 drivers/media/platform/ti-vpe/vpe.c 			(q_data->c_rect.top == sel.r.top) &&
sel              1934 drivers/media/platform/ti-vpe/vpe.c 			(q_data->c_rect.width == sel.r.width) &&
sel              1935 drivers/media/platform/ti-vpe/vpe.c 			(q_data->c_rect.height == sel.r.height)) {
sel              1941 drivers/media/platform/ti-vpe/vpe.c 	q_data->c_rect = sel.r;
sel               338 drivers/media/platform/vivid/vivid-core.c 			      struct v4l2_selection *sel)
sel               343 drivers/media/platform/vivid/vivid-core.c 		return vivid_vid_cap_g_selection(file, fh, sel);
sel               344 drivers/media/platform/vivid/vivid-core.c 	return vivid_vid_out_g_selection(file, fh, sel);
sel               348 drivers/media/platform/vivid/vivid-core.c 			      struct v4l2_selection *sel)
sel               353 drivers/media/platform/vivid/vivid-core.c 		return vivid_vid_cap_s_selection(file, fh, sel);
sel               354 drivers/media/platform/vivid/vivid-core.c 	return vivid_vid_out_s_selection(file, fh, sel);
sel               836 drivers/media/platform/vivid/vivid-vid-cap.c 			      struct v4l2_selection *sel)
sel               842 drivers/media/platform/vivid/vivid-vid-cap.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel               847 drivers/media/platform/vivid/vivid-vid-cap.c 	sel->r.left = sel->r.top = 0;
sel               848 drivers/media/platform/vivid/vivid-vid-cap.c 	switch (sel->target) {
sel               852 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->crop_cap;
sel               858 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->src_rect;
sel               863 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = vivid_max_rect;
sel               868 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->compose_cap;
sel               873 drivers/media/platform/vivid/vivid-vid-cap.c 		sel->r = dev->fmt_cap_rect;
sel                29 drivers/media/platform/vivid/vivid-vid-cap.h int vivid_vid_cap_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
sel               636 drivers/media/platform/vivid/vivid-vid-out.c 			      struct v4l2_selection *sel)
sel               642 drivers/media/platform/vivid/vivid-vid-out.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_OUTPUT)
sel               645 drivers/media/platform/vivid/vivid-vid-out.c 	sel->r.left = sel->r.top = 0;
sel               646 drivers/media/platform/vivid/vivid-vid-out.c 	switch (sel->target) {
sel               650 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->crop_out;
sel               655 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->fmt_out_rect;
sel               660 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = vivid_max_rect;
sel               665 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->compose_out;
sel               671 drivers/media/platform/vivid/vivid-vid-out.c 		sel->r = dev->sink_rect;
sel                24 drivers/media/platform/vivid/vivid-vid-out.h int vivid_vid_out_g_selection(struct file *file, void *priv, struct v4l2_selection *sel);
sel               185 drivers/media/platform/vsp1/vsp1_brx.c 			     struct v4l2_subdev_selection *sel)
sel               190 drivers/media/platform/vsp1/vsp1_brx.c 	if (sel->pad == brx->entity.source_pad)
sel               193 drivers/media/platform/vsp1/vsp1_brx.c 	switch (sel->target) {
sel               195 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.left = 0;
sel               196 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.top = 0;
sel               197 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.width = BRX_MAX_SIZE;
sel               198 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r.height = BRX_MAX_SIZE;
sel               203 drivers/media/platform/vsp1/vsp1_brx.c 						    sel->which);
sel               208 drivers/media/platform/vsp1/vsp1_brx.c 		sel->r = *brx_get_compose(brx, config, sel->pad);
sel               219 drivers/media/platform/vsp1/vsp1_brx.c 			     struct v4l2_subdev_selection *sel)
sel               227 drivers/media/platform/vsp1/vsp1_brx.c 	if (sel->pad == brx->entity.source_pad)
sel               230 drivers/media/platform/vsp1/vsp1_brx.c 	if (sel->target != V4L2_SEL_TGT_COMPOSE)
sel               235 drivers/media/platform/vsp1/vsp1_brx.c 	config = vsp1_entity_get_pad_config(&brx->entity, cfg, sel->which);
sel               247 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
sel               248 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
sel               254 drivers/media/platform/vsp1/vsp1_brx.c 	format = vsp1_entity_get_pad_format(&brx->entity, config, sel->pad);
sel               255 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.width = format->width;
sel               256 drivers/media/platform/vsp1/vsp1_brx.c 	sel->r.height = format->height;
sel               258 drivers/media/platform/vsp1/vsp1_brx.c 	compose = brx_get_compose(brx, config, sel->pad);
sel               259 drivers/media/platform/vsp1/vsp1_brx.c 	*compose = sel->r;
sel               121 drivers/media/platform/vsp1/vsp1_drm.c 	struct v4l2_subdev_selection sel;
sel               150 drivers/media/platform/vsp1/vsp1_drm.c 	memset(&sel, 0, sizeof(sel));
sel               151 drivers/media/platform/vsp1/vsp1_drm.c 	sel.which = V4L2_SUBDEV_FORMAT_ACTIVE;
sel               152 drivers/media/platform/vsp1/vsp1_drm.c 	sel.pad = RWPF_PAD_SINK;
sel               153 drivers/media/platform/vsp1/vsp1_drm.c 	sel.target = V4L2_SEL_TGT_CROP;
sel               154 drivers/media/platform/vsp1/vsp1_drm.c 	sel.r = *crop;
sel               157 drivers/media/platform/vsp1/vsp1_drm.c 			       &sel);
sel               163 drivers/media/platform/vsp1/vsp1_drm.c 		__func__, sel.r.left, sel.r.top, sel.r.width, sel.r.height,
sel               207 drivers/media/platform/vsp1/vsp1_drm.c 	sel.pad = brx_input;
sel               208 drivers/media/platform/vsp1/vsp1_drm.c 	sel.target = V4L2_SEL_TGT_COMPOSE;
sel               209 drivers/media/platform/vsp1/vsp1_drm.c 	sel.r = vsp1->drm->inputs[rpf->entity.index].compose;
sel               212 drivers/media/platform/vsp1/vsp1_drm.c 			       &sel);
sel               217 drivers/media/platform/vsp1/vsp1_drm.c 		__func__, sel.r.left, sel.r.top, sel.r.width, sel.r.height,
sel               218 drivers/media/platform/vsp1/vsp1_drm.c 		BRX_NAME(pipe->brx), sel.pad);
sel               201 drivers/media/platform/vsp1/vsp1_histo.c 			       struct v4l2_subdev_selection *sel)
sel               209 drivers/media/platform/vsp1/vsp1_histo.c 	if (sel->pad != HISTO_PAD_SINK)
sel               214 drivers/media/platform/vsp1/vsp1_histo.c 	config = vsp1_entity_get_pad_config(&histo->entity, cfg, sel->which);
sel               220 drivers/media/platform/vsp1/vsp1_histo.c 	switch (sel->target) {
sel               226 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.left = 0;
sel               227 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.top = 0;
sel               228 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.width = crop->width;
sel               229 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.height = crop->height;
sel               236 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.left = 0;
sel               237 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.top = 0;
sel               238 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.width = format->width;
sel               239 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r.height = format->height;
sel               244 drivers/media/platform/vsp1/vsp1_histo.c 		sel->r = *vsp1_entity_get_pad_selection(&histo->entity, config,
sel               245 drivers/media/platform/vsp1/vsp1_histo.c 							sel->pad, sel->target);
sel               260 drivers/media/platform/vsp1/vsp1_histo.c 			 struct v4l2_subdev_selection *sel)
sel               269 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
sel               270 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
sel               271 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.width = clamp_t(unsigned int, sel->r.width, HISTO_MIN_SIZE,
sel               272 drivers/media/platform/vsp1/vsp1_histo.c 			       format->width - sel->r.left);
sel               273 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.height = clamp_t(unsigned int, sel->r.height, HISTO_MIN_SIZE,
sel               274 drivers/media/platform/vsp1/vsp1_histo.c 				format->height - sel->r.top);
sel               278 drivers/media/platform/vsp1/vsp1_histo.c 						  sel->pad, V4L2_SEL_TGT_CROP);
sel               279 drivers/media/platform/vsp1/vsp1_histo.c 	*selection = sel->r;
sel               282 drivers/media/platform/vsp1/vsp1_histo.c 						  sel->pad,
sel               284 drivers/media/platform/vsp1/vsp1_histo.c 	*selection = sel->r;
sel               291 drivers/media/platform/vsp1/vsp1_histo.c 			     struct v4l2_subdev_selection *sel)
sel               303 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.left = 0;
sel               304 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.top = 0;
sel               306 drivers/media/platform/vsp1/vsp1_histo.c 	crop = vsp1_entity_get_pad_selection(&histo->entity, config, sel->pad,
sel               323 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.width = clamp(sel->r.width, crop->width / 4, crop->width);
sel               324 drivers/media/platform/vsp1/vsp1_histo.c 	ratio = 1 << (crop->width * 2 / sel->r.width / 3);
sel               325 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.width = crop->width / ratio;
sel               328 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.height = clamp(sel->r.height, crop->height / 4, crop->height);
sel               329 drivers/media/platform/vsp1/vsp1_histo.c 	ratio = 1 << (crop->height * 2 / sel->r.height / 3);
sel               330 drivers/media/platform/vsp1/vsp1_histo.c 	sel->r.height = crop->height / ratio;
sel               333 drivers/media/platform/vsp1/vsp1_histo.c 						sel->pad,
sel               335 drivers/media/platform/vsp1/vsp1_histo.c 	*compose = sel->r;
sel               342 drivers/media/platform/vsp1/vsp1_histo.c 			       struct v4l2_subdev_selection *sel)
sel               348 drivers/media/platform/vsp1/vsp1_histo.c 	if (sel->pad != HISTO_PAD_SINK)
sel               353 drivers/media/platform/vsp1/vsp1_histo.c 	config = vsp1_entity_get_pad_config(&histo->entity, cfg, sel->which);
sel               359 drivers/media/platform/vsp1/vsp1_histo.c 	if (sel->target == V4L2_SEL_TGT_CROP)
sel               360 drivers/media/platform/vsp1/vsp1_histo.c 		ret = histo_set_crop(subdev, config, sel);
sel               361 drivers/media/platform/vsp1/vsp1_histo.c 	else if (sel->target == V4L2_SEL_TGT_COMPOSE)
sel               362 drivers/media/platform/vsp1/vsp1_histo.c 		ret = histo_set_compose(subdev, config, sel);
sel               132 drivers/media/platform/vsp1/vsp1_rwpf.c 				   struct v4l2_subdev_selection *sel)
sel               143 drivers/media/platform/vsp1/vsp1_rwpf.c 	if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK)
sel               148 drivers/media/platform/vsp1/vsp1_rwpf.c 	config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which);
sel               154 drivers/media/platform/vsp1/vsp1_rwpf.c 	switch (sel->target) {
sel               156 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r = *vsp1_rwpf_get_crop(rwpf, config);
sel               162 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.left = 0;
sel               163 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.top = 0;
sel               164 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.width = format->width;
sel               165 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.height = format->height;
sel               180 drivers/media/platform/vsp1/vsp1_rwpf.c 				   struct v4l2_subdev_selection *sel)
sel               192 drivers/media/platform/vsp1/vsp1_rwpf.c 	if (rwpf->entity.type == VSP1_ENTITY_WPF || sel->pad != RWPF_PAD_SINK)
sel               195 drivers/media/platform/vsp1/vsp1_rwpf.c 	if (sel->target != V4L2_SEL_TGT_CROP)
sel               200 drivers/media/platform/vsp1/vsp1_rwpf.c 	config = vsp1_entity_get_pad_config(&rwpf->entity, cfg, sel->which);
sel               215 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.left = ALIGN(sel->r.left, 2);
sel               216 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.top = ALIGN(sel->r.top, 2);
sel               217 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.width = round_down(sel->r.width, 2);
sel               218 drivers/media/platform/vsp1/vsp1_rwpf.c 		sel->r.height = round_down(sel->r.height, 2);
sel               221 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.left = min_t(unsigned int, sel->r.left, format->width - 2);
sel               222 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2);
sel               223 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.width = min_t(unsigned int, sel->r.width,
sel               224 drivers/media/platform/vsp1/vsp1_rwpf.c 			     format->width - sel->r.left);
sel               225 drivers/media/platform/vsp1/vsp1_rwpf.c 	sel->r.height = min_t(unsigned int, sel->r.height,
sel               226 drivers/media/platform/vsp1/vsp1_rwpf.c 			      format->height - sel->r.top);
sel               229 drivers/media/platform/vsp1/vsp1_rwpf.c 	*crop = sel->r;
sel                85 drivers/media/platform/vsp1/vsp1_uif.c 			     struct v4l2_subdev_selection *sel)
sel                92 drivers/media/platform/vsp1/vsp1_uif.c 	if (sel->pad != UIF_PAD_SINK)
sel                97 drivers/media/platform/vsp1/vsp1_uif.c 	config = vsp1_entity_get_pad_config(&uif->entity, cfg, sel->which);
sel               103 drivers/media/platform/vsp1/vsp1_uif.c 	switch (sel->target) {
sel               108 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.left = 0;
sel               109 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.top = 0;
sel               110 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.width = format->width;
sel               111 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r.height = format->height;
sel               115 drivers/media/platform/vsp1/vsp1_uif.c 		sel->r = *vsp1_entity_get_pad_selection(&uif->entity, config,
sel               116 drivers/media/platform/vsp1/vsp1_uif.c 							sel->pad, sel->target);
sel               131 drivers/media/platform/vsp1/vsp1_uif.c 			     struct v4l2_subdev_selection *sel)
sel               139 drivers/media/platform/vsp1/vsp1_uif.c 	if (sel->pad != UIF_PAD_SINK ||
sel               140 drivers/media/platform/vsp1/vsp1_uif.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               145 drivers/media/platform/vsp1/vsp1_uif.c 	config = vsp1_entity_get_pad_config(&uif->entity, cfg, sel->which);
sel               154 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.left = clamp_t(unsigned int, sel->r.left, 0, format->width - 1);
sel               155 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.top = clamp_t(unsigned int, sel->r.top, 0, format->height - 1);
sel               156 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.width = clamp_t(unsigned int, sel->r.width, UIF_MIN_SIZE,
sel               157 drivers/media/platform/vsp1/vsp1_uif.c 			       format->width - sel->r.left);
sel               158 drivers/media/platform/vsp1/vsp1_uif.c 	sel->r.height = clamp_t(unsigned int, sel->r.height, UIF_MIN_SIZE,
sel               159 drivers/media/platform/vsp1/vsp1_uif.c 				format->height - sel->r.top);
sel               163 drivers/media/platform/vsp1/vsp1_uif.c 						  sel->pad, V4L2_SEL_TGT_CROP);
sel               164 drivers/media/platform/vsp1/vsp1_uif.c 	*selection = sel->r;
sel               108 drivers/media/tuners/mt20xx.c 	unsigned int fref,lo1,lo1n,lo1a,s,sel,lo1freq, desired_lo1,
sel               121 drivers/media/tuners/mt20xx.c 		if(s>1890) sel=0;
sel               122 drivers/media/tuners/mt20xx.c 		else if(s>1720) sel=1;
sel               123 drivers/media/tuners/mt20xx.c 		else if(s>1530) sel=2;
sel               124 drivers/media/tuners/mt20xx.c 		else if(s>1370) sel=3;
sel               125 drivers/media/tuners/mt20xx.c 		else sel=4; // >1090
sel               128 drivers/media/tuners/mt20xx.c 		if(s>1790) sel=0; // <1958
sel               129 drivers/media/tuners/mt20xx.c 		else if(s>1617) sel=1;
sel               130 drivers/media/tuners/mt20xx.c 		else if(s>1449) sel=2;
sel               131 drivers/media/tuners/mt20xx.c 		else if(s>1291) sel=3;
sel               132 drivers/media/tuners/mt20xx.c 		else sel=4; // >1090
sel               134 drivers/media/tuners/mt20xx.c 	*ret_sel=sel;
sel               139 drivers/media/tuners/mt20xx.c 		  rfin,lo1,lo1n,lo1a,sel,lo1freq);
sel               163 drivers/media/tuners/mt20xx.c 	buf[1]=lo1a | (sel<<4);
sel               204 drivers/media/tuners/mt20xx.c static int mt2032_optimize_vco(struct dvb_frontend *fe,int sel,int lock)
sel               220 drivers/media/tuners/mt20xx.c 		if(sel==0)
sel               222 drivers/media/tuners/mt20xx.c 		else sel--;
sel               225 drivers/media/tuners/mt20xx.c 		if(sel<4)
sel               226 drivers/media/tuners/mt20xx.c 			sel++;
sel               231 drivers/media/tuners/mt20xx.c 	tuner_dbg("mt2032 optimize_vco: sel=%d\n",sel);
sel               234 drivers/media/tuners/mt20xx.c 	buf[1]=sel;
sel               246 drivers/media/tuners/mt20xx.c 	int lint_try,ret,sel,lock=0;
sel               257 drivers/media/tuners/mt20xx.c 	ret=mt2032_compute_freq(fe,rfin,if1,if2,from,to,&buf[1],&sel,priv->xogc);
sel               276 drivers/media/tuners/mt20xx.c 			lock=mt2032_optimize_vco(fe,sel,lock);
sel               486 drivers/media/usb/em28xx/em28xx-core.c 			int sel = ac97_return_record_select(dev->ctl_aoutput);
sel               492 drivers/media/usb/em28xx/em28xx-core.c 			sel |= (sel << 8);
sel               494 drivers/media/usb/em28xx/em28xx-core.c 			em28xx_write_ac97(dev, AC97_REC_SEL, sel);
sel               702 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			    struct v4l2_selection *sel)
sel               710 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE)
sel               715 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	switch (sel->target) {
sel               721 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.left = val;
sel               726 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.top = val;
sel               731 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.width = val;
sel               736 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r.height = val;
sel               740 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r = cap.defrect;
sel               744 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 		sel->r = cap.bounds;
sel               753 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			    struct v4l2_selection *sel)
sel               759 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	if (sel->type != V4L2_BUF_TYPE_VIDEO_CAPTURE ||
sel               760 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               764 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.left);
sel               769 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.top);
sel               774 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.width);
sel               779 drivers/media/usb/pvrusb2/pvrusb2-v4l2.c 			sel->r.height);
sel              1108 drivers/media/usb/uvc/uvc_v4l2.c 				 struct v4l2_selection *sel)
sel              1113 drivers/media/usb/uvc/uvc_v4l2.c 	if (sel->type != stream->type)
sel              1116 drivers/media/usb/uvc/uvc_v4l2.c 	switch (sel->target) {
sel              1131 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.left = 0;
sel              1132 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.top = 0;
sel              1134 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.width = stream->cur_frame->wWidth;
sel              1135 drivers/media/usb/uvc/uvc_v4l2.c 	sel->r.height = stream->cur_frame->wHeight;
sel               235 drivers/media/v4l2-core/v4l2-subdev.c 				  struct v4l2_subdev_selection *sel)
sel               237 drivers/media/v4l2-core/v4l2-subdev.c 	if (!sel)
sel               240 drivers/media/v4l2-core/v4l2-subdev.c 	return check_which(sel->which) ? : check_pad(sd, sel->pad) ? :
sel               241 drivers/media/v4l2-core/v4l2-subdev.c 	       check_cfg(sel->which, cfg);
sel               246 drivers/media/v4l2-core/v4l2-subdev.c 			      struct v4l2_subdev_selection *sel)
sel               248 drivers/media/v4l2-core/v4l2-subdev.c 	return check_selection(sd, cfg, sel) ? :
sel               249 drivers/media/v4l2-core/v4l2-subdev.c 	       sd->ops->pad->get_selection(sd, cfg, sel);
sel               254 drivers/media/v4l2-core/v4l2-subdev.c 			      struct v4l2_subdev_selection *sel)
sel               256 drivers/media/v4l2-core/v4l2-subdev.c 	return check_selection(sd, cfg, sel) ? :
sel               257 drivers/media/v4l2-core/v4l2-subdev.c 	       sd->ops->pad->set_selection(sd, cfg, sel);
sel               463 drivers/media/v4l2-core/v4l2-subdev.c 		struct v4l2_subdev_selection sel;
sel               466 drivers/media/v4l2-core/v4l2-subdev.c 		memset(&sel, 0, sizeof(sel));
sel               467 drivers/media/v4l2-core/v4l2-subdev.c 		sel.which = crop->which;
sel               468 drivers/media/v4l2-core/v4l2-subdev.c 		sel.pad = crop->pad;
sel               469 drivers/media/v4l2-core/v4l2-subdev.c 		sel.target = V4L2_SEL_TGT_CROP;
sel               472 drivers/media/v4l2-core/v4l2-subdev.c 			sd, pad, get_selection, subdev_fh->pad, &sel);
sel               474 drivers/media/v4l2-core/v4l2-subdev.c 		crop->rect = sel.r;
sel               481 drivers/media/v4l2-core/v4l2-subdev.c 		struct v4l2_subdev_selection sel;
sel               484 drivers/media/v4l2-core/v4l2-subdev.c 		memset(&sel, 0, sizeof(sel));
sel               485 drivers/media/v4l2-core/v4l2-subdev.c 		sel.which = crop->which;
sel               486 drivers/media/v4l2-core/v4l2-subdev.c 		sel.pad = crop->pad;
sel               487 drivers/media/v4l2-core/v4l2-subdev.c 		sel.target = V4L2_SEL_TGT_CROP;
sel               488 drivers/media/v4l2-core/v4l2-subdev.c 		sel.r = crop->rect;
sel               491 drivers/media/v4l2-core/v4l2-subdev.c 			sd, pad, set_selection, subdev_fh->pad, &sel);
sel               493 drivers/media/v4l2-core/v4l2-subdev.c 		crop->rect = sel.r;
sel               537 drivers/media/v4l2-core/v4l2-subdev.c 		struct v4l2_subdev_selection *sel = arg;
sel               539 drivers/media/v4l2-core/v4l2-subdev.c 		memset(sel->reserved, 0, sizeof(sel->reserved));
sel               541 drivers/media/v4l2-core/v4l2-subdev.c 			sd, pad, get_selection, subdev_fh->pad, sel);
sel               545 drivers/media/v4l2-core/v4l2-subdev.c 		struct v4l2_subdev_selection *sel = arg;
sel               547 drivers/media/v4l2-core/v4l2-subdev.c 		memset(sel->reserved, 0, sizeof(sel->reserved));
sel               549 drivers/media/v4l2-core/v4l2-subdev.c 			sd, pad, set_selection, subdev_fh->pad, sel);
sel               196 drivers/mtd/nand/raw/denali.c 	struct denali_chip_sel *sel = &to_denali_chip(chip)->sels[cs];
sel               199 drivers/mtd/nand/raw/denali.c 	denali->active_bank = sel->bank;
sel               221 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->hwhr2_and_we_2_re, denali->reg + TWHR2_AND_WE_2_RE);
sel               222 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->tcwaw_and_addr_2_data,
sel               224 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->re_2_we, denali->reg + RE_2_WE);
sel               225 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->acc_clks, denali->reg + ACC_CLKS);
sel               226 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->rdwr_en_lo_cnt, denali->reg + RDWR_EN_LO_CNT);
sel               227 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->rdwr_en_hi_cnt, denali->reg + RDWR_EN_HI_CNT);
sel               228 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->cs_setup_cnt, denali->reg + CS_SETUP_CNT);
sel               229 drivers/mtd/nand/raw/denali.c 	iowrite32(sel->re_2_re, denali->reg + RE_2_RE);
sel               769 drivers/mtd/nand/raw/denali.c 	struct denali_chip_sel *sel;
sel               798 drivers/mtd/nand/raw/denali.c 	sel = &to_denali_chip(chip)->sels[chipnr];
sel               807 drivers/mtd/nand/raw/denali.c 	sel->acc_clks = tmp;
sel               816 drivers/mtd/nand/raw/denali.c 	sel->re_2_we = tmp;
sel               825 drivers/mtd/nand/raw/denali.c 	sel->re_2_re = tmp;
sel               839 drivers/mtd/nand/raw/denali.c 	sel->hwhr2_and_we_2_re = tmp;
sel               854 drivers/mtd/nand/raw/denali.c 	sel->tcwaw_and_addr_2_data = tmp;
sel               864 drivers/mtd/nand/raw/denali.c 	sel->rdwr_en_hi_cnt = tmp;
sel               877 drivers/mtd/nand/raw/denali.c 	sel->rdwr_en_lo_cnt = tmp;
sel               888 drivers/mtd/nand/raw/denali.c 	sel->cs_setup_cnt = tmp;
sel              1232 drivers/mtd/nand/raw/s3c2410.c 	unsigned long sel;
sel              1240 drivers/mtd/nand/raw/s3c2410.c 		sel = readl(info->sel_reg);
sel              1241 drivers/mtd/nand/raw/s3c2410.c 		sel &= ~info->sel_bit;
sel              1242 drivers/mtd/nand/raw/s3c2410.c 		sel |= info->save_sel & info->sel_bit;
sel              1243 drivers/mtd/nand/raw/s3c2410.c 		writel(sel, info->sel_reg);
sel               410 drivers/mtd/nand/raw/sunxi_nand.c 	struct sunxi_nand_chip_sel *sel;
sel               419 drivers/mtd/nand/raw/sunxi_nand.c 	sel = &sunxi_nand->sels[cs];
sel               420 drivers/mtd/nand/raw/sunxi_nand.c 	ctl |= NFC_CE_SEL(sel->cs) | NFC_EN | NFC_PAGE_SHIFT(nand->page_shift);
sel               421 drivers/mtd/nand/raw/sunxi_nand.c 	if (sel->rb >= 0)
sel               422 drivers/mtd/nand/raw/sunxi_nand.c 		ctl |= NFC_RB_SEL(sel->rb);
sel               317 drivers/net/ethernet/chelsio/cxgb/espi.c 	u32 sel;
sel               322 drivers/net/ethernet/chelsio/cxgb/espi.c 	sel = V_MONITORED_PORT_NUM((addr & 0x3c) >> 2);
sel               329 drivers/net/ethernet/chelsio/cxgb/espi.c 	if ((sel != (espi->misc_ctrl & MON_MASK))) {
sel               330 drivers/net/ethernet/chelsio/cxgb/espi.c 		writel(((espi->misc_ctrl & ~MON_MASK) | sel),
sel               332 drivers/net/ethernet/chelsio/cxgb/espi.c 		sel = readl(adapter->regs + A_ESPI_SCH_TOKEN3);
sel               335 drivers/net/ethernet/chelsio/cxgb/espi.c 		sel = readl(adapter->regs + A_ESPI_SCH_TOKEN3);
sel               337 drivers/net/ethernet/chelsio/cxgb/espi.c 	return sel;
sel                54 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 	for (i = 0; i < cls->knode.sel->nkeys; i++) {
sel                55 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		off = cls->knode.sel->keys[i].off;
sel                56 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		val = cls->knode.sel->keys[i].val;
sel                57 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 		mask = cls->knode.sel->keys[i].mask;
sel                61 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			if (!cls->knode.sel->keys[i].offmask)
sel                65 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			if (cls->knode.sel->keys[i].offmask)
sel               233 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			if (next[i].offoff != cls->knode.sel->offoff ||
sel               234 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			    next[i].shift != cls->knode.sel->offshift ||
sel               235 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			    next[i].mask != cls->knode.sel->offmask ||
sel               236 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			    next[i].offset != cls->knode.sel->off)
sel               243 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 			for (j = 0; j < cls->knode.sel->nkeys; j++) {
sel               244 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 				off = cls->knode.sel->keys[j].off;
sel               245 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 				val = cls->knode.sel->keys[j].val;
sel               246 drivers/net/ethernet/chelsio/cxgb4/cxgb4_tc_u32.c 				mask = cls->knode.sel->keys[j].mask;
sel              9513 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	unsigned int sel;
sel              9519 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 	for (sel = 1, field_shift = 0; sel < filter_sel; sel <<= 1) {
sel              9520 drivers/net/ethernet/chelsio/cxgb4/t4_hw.c 		switch (filter_mode & sel) {
sel              9362 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 	for (i = 0; i < cls->knode.sel->nkeys; i++) {
sel              9363 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		off = cls->knode.sel->keys[i].off;
sel              9364 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		val = cls->knode.sel->keys[i].val;
sel              9365 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 		m = cls->knode.sel->keys[i].mask;
sel              9378 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			if (nexthdr->off == cls->knode.sel->keys[i].off &&
sel              9380 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			    (__force u32)cls->knode.sel->keys[i].val &&
sel              9382 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			    (__force u32)cls->knode.sel->keys[i].mask)
sel              9484 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			if (nexthdr[i].o != cls->knode.sel->offoff ||
sel              9485 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			    nexthdr[i].s != cls->knode.sel->offshift ||
sel              9487 drivers/net/ethernet/intel/ixgbe/ixgbe_main.c 			    (__force u32)cls->knode.sel->offmask)
sel              1471 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c 		u32 sel = MVPP22_RSS_INDEX_TABLE(rss_ctx) |
sel              1473 drivers/net/ethernet/marvell/mvpp2/mvpp2_cls.c 		mvpp2_write(priv, MVPP22_RSS_INDEX, sel);
sel               103 drivers/net/ethernet/mscc/ocelot_ace.c static void vcap_cmd(struct ocelot *oc, u16 ix, int cmd, int sel)
sel               109 drivers/net/ethernet/mscc/ocelot_ace.c 	if ((sel & VCAP_SEL_ENTRY) && ix >= vcap_is2.entry_count)
sel               112 drivers/net/ethernet/mscc/ocelot_ace.c 	if (!(sel & VCAP_SEL_ENTRY))
sel               115 drivers/net/ethernet/mscc/ocelot_ace.c 	if (!(sel & VCAP_SEL_ACTION))
sel               118 drivers/net/ethernet/mscc/ocelot_ace.c 	if (!(sel & VCAP_SEL_COUNTER))
sel               128 drivers/net/ethernet/mscc/ocelot_ace.c static void vcap_row_cmd(struct ocelot *oc, u32 row, int cmd, int sel)
sel               130 drivers/net/ethernet/mscc/ocelot_ace.c 	vcap_cmd(oc, vcap_is2.entry_count - row - 1, cmd, sel);
sel                35 drivers/net/ethernet/netronome/nfp/abm/cls.c 	if (knode->sel->flags != TC_U32_TERMINAL) {
sel                40 drivers/net/ethernet/netronome/nfp/abm/cls.c 	if (knode->sel->off || knode->sel->offshift || knode->sel->offmask ||
sel                41 drivers/net/ethernet/netronome/nfp/abm/cls.c 	    knode->sel->offoff || knode->fshift) {
sel                45 drivers/net/ethernet/netronome/nfp/abm/cls.c 	if (knode->sel->hoff || knode->sel->hmask) {
sel                62 drivers/net/ethernet/netronome/nfp/abm/cls.c 	if (knode->sel->nkeys != 1) {
sel                79 drivers/net/ethernet/netronome/nfp/abm/cls.c 	k = &knode->sel->keys[0];
sel               185 drivers/net/ethernet/netronome/nfp/abm/cls.c 	val = be32_to_cpu(knode->sel->keys[0].val) >> tos_off & 0xff;
sel               186 drivers/net/ethernet/netronome/nfp/abm/cls.c 	mask = be32_to_cpu(knode->sel->keys[0].mask) >> tos_off & 0xff;
sel              1048 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	struct tc_u32_sel *sel;
sel              1057 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	sel = kzalloc(sizeof(*sel) + nk * sizeof(struct tc_u32_key), GFP_KERNEL);
sel              1058 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	if (!sel)
sel              1083 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	cls_u32.knode.sel = sel;
sel              1095 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	sel->nkeys = nk;
sel              1096 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	sel->offshift = 0;
sel              1097 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	sel->keys[0].off = 6;
sel              1098 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	sel->keys[0].val = htonl(0xdeadbeef);
sel              1099 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	sel->keys[0].mask = ~0x0;
sel              1121 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 	kfree(sel);
sel                95 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	struct tc_u32_sel *sel = cls->knode.sel;
sel               101 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	if (sel->nkeys <= 0 || sel->nkeys > 1)
sel               104 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	off = sel->keys[0].off << sel->offshift;
sel               105 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	data = sel->keys[0].val;
sel               106 drivers/net/ethernet/stmicro/stmmac/stmmac_tc.c 	mask = sel->keys[0].mask;
sel               558 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 	u8 sel;		/* Chip-specific select value */
sel              3774 drivers/net/wireless/broadcom/brcm80211/brcmfmac/sdio.c 				drivestrength_sel = str_tab[i].sel;
sel               261 drivers/net/wireless/broadcom/brcm80211/brcmsmac/antsel.c brcms_c_antsel_antcfg_get(struct antsel_info *asi, bool usedef, bool sel,
sel               274 drivers/net/wireless/broadcom/brcm80211/brcmsmac/antsel.c 	if (!sel) {
sel                23 drivers/net/wireless/broadcom/brcm80211/brcmsmac/antsel.h void brcms_c_antsel_antcfg_get(struct antsel_info *asi, bool usedef, bool sel,
sel              2919 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c brcms_b_read_objmem(struct brcms_hardware *wlc_hw, uint offset, u32 sel)
sel              2924 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2));
sel              2934 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		     u32 sel)
sel              2939 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 	bcma_write32(core, D11REGOFFS(objaddr), sel | (offset >> 2));
sel              2973 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		      const void *buf, int len, u32 sel)
sel              2984 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		brcms_b_write_objmem(wlc_hw, offset + i, v, sel);
sel              2996 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 			 int len, u32 sel)
sel              3006 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.c 		v = brcms_b_read_objmem(wlc_hw, offset + i, sel);
sel               658 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h 			   const void *buf, int len, u32 sel);
sel               660 drivers/net/wireless/broadcom/brcm80211/brcmsmac/main.h 			     void *buf, int len, u32 sel);
sel               206 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c 		      int len, u32 sel)
sel               208 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c 	brcms_b_copyfrom_objmem(physhim->wlc_hw, offset, buf, len, sel);
sel               213 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c 		    int l, u32 sel)
sel               215 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.c 	brcms_b_copyto_objmem(physhim->wlc_hw, offset, buf, l, sel);
sel               165 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy_shim.h 			   int, u32 sel);
sel               706 drivers/net/wireless/ralink/rt2x00/rt61pci.c 	const struct antenna_sel *sel;
sel               719 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		sel = antenna_sel_a;
sel               722 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		sel = antenna_sel_bg;
sel               727 drivers/net/wireless/ralink/rt2x00/rt61pci.c 		rt61pci_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]);
sel               687 drivers/net/wireless/ralink/rt2x00/rt73usb.c 	const struct antenna_sel *sel;
sel               700 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		sel = antenna_sel_a;
sel               703 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		sel = antenna_sel_bg;
sel               708 drivers/net/wireless/ralink/rt2x00/rt73usb.c 		rt73usb_bbp_write(rt2x00dev, sel[i].word, sel[i].value[lna]);
sel                80 drivers/nvme/host/trace.c 	u8 sel = cdw10[1] & 0x7;
sel                83 drivers/nvme/host/trace.c 	trace_seq_printf(p, "fid=0x%x sel=0x%x cdw11=0x%x", fid, sel, cdw11);
sel                27 drivers/nvme/target/trace.c 	u8 sel = cdw10[1] & 0x7;
sel                30 drivers/nvme/target/trace.c 	trace_seq_printf(p, "fid=0x%x sel=0x%x cdw11=0x%x", fid, sel, cdw11);
sel               106 drivers/pinctrl/pinctrl-da850-pupd.c 	u32 ena, sel;
sel               111 drivers/pinctrl/pinctrl-da850-pupd.c 	sel = readl(data->base + DA850_PUPD_SEL);
sel               122 drivers/pinctrl/pinctrl-da850-pupd.c 			sel |= BIT(selector);
sel               126 drivers/pinctrl/pinctrl-da850-pupd.c 			sel &= ~BIT(selector);
sel               133 drivers/pinctrl/pinctrl-da850-pupd.c 	writel(sel, data->base + DA850_PUPD_SEL);
sel               258 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 	unsigned int sel;
sel               286 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 		sel = PMIC_MPP_SELECTOR_DTEST_FIRST + pad->dtest - 1;
sel               288 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 		sel = PMIC_MPP_SELECTOR_PAIRED;
sel               290 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 		sel = PMIC_MPP_SELECTOR_NORMAL;
sel               295 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 	      sel << PMIC_MPP_REG_MODE_FUNCTION_SHIFT |
sel               662 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 	unsigned int sel;
sel               745 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 	sel = val >> PMIC_MPP_REG_MODE_FUNCTION_SHIFT;
sel               746 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 	sel &= PMIC_MPP_REG_MODE_FUNCTION_MASK;
sel               748 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 	if (sel >= PMIC_MPP_SELECTOR_DTEST_FIRST)
sel               749 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 		pad->dtest = sel + 1;
sel               750 drivers/pinctrl/qcom/pinctrl-spmi-mpp.c 	else if (sel == PMIC_MPP_SELECTOR_PAIRED)
sel              5162 drivers/pinctrl/sirf/pinctrl-atlas7.c 					u32 pin, u32 sel)
sel              5176 drivers/pinctrl/sirf/pinctrl-atlas7.c 	regv = pull_info->s2v[sel].data & pull_info->mask;
sel              5183 drivers/pinctrl/sirf/pinctrl-atlas7.c 		pin, sel);
sel              5188 drivers/pinctrl/sirf/pinctrl-atlas7.c 						u32 pin, u32 sel)
sel              5197 drivers/pinctrl/sirf/pinctrl-atlas7.c 	if (sel & (~(ds_info->mask)))
sel              5204 drivers/pinctrl/sirf/pinctrl-atlas7.c 	writel(sel << conf->drvstr_bit, ds_sel_reg);
sel              5210 drivers/pinctrl/sirf/pinctrl-atlas7.c 		pin, conf->type, sel);
sel              5220 drivers/pinctrl/sirf/pinctrl-atlas7.c 	u32 sel;
sel              5223 drivers/pinctrl/sirf/pinctrl-atlas7.c 	sel = convert_current_to_drive_strength(conf->type, ma);
sel              5224 drivers/pinctrl/sirf/pinctrl-atlas7.c 	if (DS_NULL == sel) {
sel              5231 drivers/pinctrl/sirf/pinctrl-atlas7.c 						pin, sel);
sel              5233 drivers/pinctrl/sirf/pinctrl-atlas7.c 		pin, sel, ma, ret?"FAILED":"OK");
sel               402 drivers/power/supply/bd70528-charger.c 				       int selectors, unsigned int sel,
sel               408 drivers/power/supply/bd70528-charger.c 		if (r[i].low_sel <= sel && r[i].low_sel + r[i].vals >= sel) {
sel               409 drivers/power/supply/bd70528-charger.c 			*val = r[i].min + (sel - r[i].low_sel) * r[i].step;
sel               425 drivers/power/supply/bd70528-charger.c 				       unsigned int *sel, bool *found)
sel               435 drivers/power/supply/bd70528-charger.c 				*sel = r[i].low_sel + (val - r[i].min) /
sel               444 drivers/power/supply/bd70528-charger.c 			*sel = r[i].low_sel + r[i].vals;
sel               453 drivers/power/supply/bd70528-charger.c 	unsigned int sel;
sel               457 drivers/power/supply/bd70528-charger.c 			  &sel);
sel               464 drivers/power/supply/bd70528-charger.c 	sel &= BD70528_MASK_CHG_CHG_CURR;
sel               467 drivers/power/supply/bd70528-charger.c 					  ARRAY_SIZE(warm_charge_curr), sel,
sel               472 drivers/power/supply/bd70528-charger.c 			sel);
sel               480 drivers/power/supply/bd70528-charger.c 	unsigned int sel;
sel               484 drivers/power/supply/bd70528-charger.c 			  &sel);
sel               492 drivers/power/supply/bd70528-charger.c 	sel &= BD70528_MASK_CHG_DCIN_ILIM;
sel               495 drivers/power/supply/bd70528-charger.c 					  ARRAY_SIZE(current_limit_ranges), sel,
sel               170 drivers/power/supply/qcom_smbb.c 	unsigned int sel;
sel               172 drivers/power/supply/qcom_smbb.c 	for (widx = sel = 0; (*fn)(widx) <= val; ++widx)
sel               173 drivers/power/supply/qcom_smbb.c 		sel = widx;
sel               175 drivers/power/supply/qcom_smbb.c 	return sel;
sel                31 drivers/regulator/anatop-regulator.c 	int sel;
sel                63 drivers/regulator/anatop-regulator.c 	int sel;
sel                65 drivers/regulator/anatop-regulator.c 	sel = anatop_reg->bypass ? LDO_FET_FULL_ON : anatop_reg->sel;
sel                66 drivers/regulator/anatop-regulator.c 	return regulator_set_voltage_sel_regmap(reg, sel);
sel                86 drivers/regulator/anatop-regulator.c 		anatop_reg->sel = selector;
sel                92 drivers/regulator/anatop-regulator.c 		anatop_reg->sel = selector;
sel               101 drivers/regulator/anatop-regulator.c 		return anatop_reg->sel;
sel               109 drivers/regulator/anatop-regulator.c 	int sel;
sel               111 drivers/regulator/anatop-regulator.c 	sel = regulator_get_voltage_sel_regmap(reg);
sel               112 drivers/regulator/anatop-regulator.c 	if (sel == LDO_FET_FULL_ON)
sel               114 drivers/regulator/anatop-regulator.c 	else if (sel != LDO_POWER_GATE)
sel               124 drivers/regulator/anatop-regulator.c 	int sel;
sel               129 drivers/regulator/anatop-regulator.c 	sel = enable ? LDO_FET_FULL_ON : anatop_reg->sel;
sel               132 drivers/regulator/anatop-regulator.c 	return regulator_set_voltage_sel_regmap(reg, sel);
sel               267 drivers/regulator/anatop-regulator.c 		sreg->sel = (val & rdesc->vsel_mask) >> vol_bit_shift;
sel               268 drivers/regulator/anatop-regulator.c 		if (sreg->sel == LDO_FET_FULL_ON) {
sel               269 drivers/regulator/anatop-regulator.c 			sreg->sel = 0;
sel               278 drivers/regulator/anatop-regulator.c 		if (!sreg->sel && !strcmp(rdesc->name, "vddpu"))
sel               279 drivers/regulator/anatop-regulator.c 			sreg->sel = 22;
sel               282 drivers/regulator/anatop-regulator.c 		if (!sreg->sel && !strcmp(rdesc->name, "vddpcie"))
sel               283 drivers/regulator/anatop-regulator.c 			sreg->sel = 0x10;
sel               285 drivers/regulator/anatop-regulator.c 		if (!sreg->bypass && !sreg->sel) {
sel                43 drivers/regulator/arizona-ldo1.c 					   unsigned sel)
sel                49 drivers/regulator/arizona-ldo1.c 	if (sel == rdev->desc->n_voltages - 1)
sel                62 drivers/regulator/arizona-ldo1.c 	return regulator_set_voltage_sel_regmap(rdev, sel);
sel                68 drivers/regulator/bd70528-regulator.c 				       unsigned int sel)
sel                77 drivers/regulator/bd70528-regulator.c 		return regulator_set_voltage_sel_regmap(rdev, sel);
sel                64 drivers/regulator/bd718x7-regulator.c 						    unsigned int sel)
sel                69 drivers/regulator/bd718x7-regulator.c 	return regulator_set_voltage_sel_regmap(rdev, sel);
sel                73 drivers/regulator/bd718x7-regulator.c 		struct regulator_dev *rdev, unsigned int sel)
sel                78 drivers/regulator/bd718x7-regulator.c 	return regulator_set_voltage_sel_pickable_regmap(rdev, sel);
sel                64 drivers/regulator/bd9571mwv-regulator.c 						unsigned int sel)
sel                73 drivers/regulator/bd9571mwv-regulator.c 				 rdev->desc->vsel_mask, sel);
sel                96 drivers/regulator/bd9571mwv-regulator.c 						unsigned int sel)
sel                99 drivers/regulator/bd9571mwv-regulator.c 				 rdev->desc->vsel_mask, sel);
sel              3315 drivers/regulator/core.c 	int uV, sel;
sel              3326 drivers/regulator/core.c 	sel = regulator_map_voltage(rdev, min_uV, max_uV);
sel              3327 drivers/regulator/core.c 	if (sel < 0)
sel              3328 drivers/regulator/core.c 		return sel;
sel              3330 drivers/regulator/core.c 	uV = rdev->desc->ops->list_voltage(rdev, sel);
sel              3990 drivers/regulator/core.c 	int sel, ret;
sel              4010 drivers/regulator/core.c 		sel = rdev->desc->ops->get_voltage_sel(rdev);
sel              4011 drivers/regulator/core.c 		if (sel < 0)
sel              4012 drivers/regulator/core.c 			return sel;
sel              4013 drivers/regulator/core.c 		ret = rdev->desc->ops->list_voltage(rdev, sel);
sel               193 drivers/regulator/da903x.c 	int thresh, sel;
sel               202 drivers/regulator/da903x.c 		sel = DIV_ROUND_UP(thresh - min_uV, info->desc.uV_step);
sel               203 drivers/regulator/da903x.c 		sel |= 0x4;
sel               205 drivers/regulator/da903x.c 		sel = DIV_ROUND_UP(min_uV - thresh, info->desc.uV_step);
sel               208 drivers/regulator/da903x.c 	return sel;
sel               180 drivers/regulator/da9052-regulator.c 	int ret, sel;
sel               191 drivers/regulator/da9052-regulator.c 			sel = DA9052_BUCK_PERI_REG_MAP_UPTO_3uV +
sel               195 drivers/regulator/da9052-regulator.c 		sel = DIV_ROUND_UP(min_uV - info->min_uV, info->step_uV);
sel               198 drivers/regulator/da9052-regulator.c 	ret = da9052_list_voltage(rdev, sel);
sel               202 drivers/regulator/da9052-regulator.c 	return sel;
sel               173 drivers/regulator/da9055-regulator.c 	int ret, sel;
sel               195 drivers/regulator/da9055-regulator.c 	sel = (ret & volt.v_mask);
sel               196 drivers/regulator/da9055-regulator.c 	return sel;
sel               249 drivers/regulator/da9062-regulator.c 	int ret, sel;
sel               251 drivers/regulator/da9062-regulator.c 	sel = regulator_map_voltage_linear(rdev, uv, uv);
sel               252 drivers/regulator/da9062-regulator.c 	if (sel < 0)
sel               253 drivers/regulator/da9062-regulator.c 		return sel;
sel               255 drivers/regulator/da9062-regulator.c 	sel <<= ffs(rdev->desc->vsel_mask) - 1;
sel               258 drivers/regulator/da9062-regulator.c 				 rdev->desc->vsel_mask, sel);
sel               361 drivers/regulator/da9063-regulator.c 	int ret, sel;
sel               363 drivers/regulator/da9063-regulator.c 	sel = regulator_map_voltage_linear(rdev, uV, uV);
sel               364 drivers/regulator/da9063-regulator.c 	if (sel < 0)
sel               365 drivers/regulator/da9063-regulator.c 		return sel;
sel               367 drivers/regulator/da9063-regulator.c 	sel <<= ffs(rdev->desc->vsel_mask) - 1;
sel               370 drivers/regulator/da9063-regulator.c 				 rdev->desc->vsel_mask, sel);
sel               175 drivers/regulator/helpers.c 					      unsigned int sel)
sel               184 drivers/regulator/helpers.c 		if (sel < voltages_in_range)
sel               186 drivers/regulator/helpers.c 		sel -= voltages_in_range;
sel               192 drivers/regulator/helpers.c 	sel <<= ffs(rdev->desc->vsel_mask) - 1;
sel               193 drivers/regulator/helpers.c 	sel += rdev->desc->linear_ranges[i].min_sel;
sel               201 drivers/regulator/helpers.c 					 rdev->desc->vsel_mask, sel | range);
sel               210 drivers/regulator/helpers.c 				  rdev->desc->vsel_mask, sel);
sel               259 drivers/regulator/helpers.c int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel)
sel               263 drivers/regulator/helpers.c 	sel <<= ffs(rdev->desc->vsel_mask) - 1;
sel               266 drivers/regulator/helpers.c 				  rdev->desc->vsel_mask, sel);
sel               795 drivers/regulator/helpers.c 	int i, sel = -1;
sel               809 drivers/regulator/helpers.c 					sel = i;
sel               817 drivers/regulator/helpers.c 					sel = i;
sel               824 drivers/regulator/helpers.c 	if (sel < 0)
sel               827 drivers/regulator/helpers.c 	sel <<= ffs(rdev->desc->csel_mask) - 1;
sel               830 drivers/regulator/helpers.c 				  rdev->desc->csel_mask, sel);
sel                94 drivers/regulator/ltc3589.c 	int sel, shift;
sel               103 drivers/regulator/ltc3589.c 	for (sel = 0; sel < 4; sel++) {
sel               104 drivers/regulator/ltc3589.c 		if ((880 << sel) >= ramp_delay) {
sel               107 drivers/regulator/ltc3589.c 						  0x3 << shift, sel << shift);
sel               116 drivers/regulator/ltc3589.c 	int sel;
sel               118 drivers/regulator/ltc3589.c 	sel = regulator_map_voltage_linear(rdev, uV, uV);
sel               119 drivers/regulator/ltc3589.c 	if (sel < 0)
sel               120 drivers/regulator/ltc3589.c 		return sel;
sel               124 drivers/regulator/ltc3589.c 				  rdev->desc->vsel_mask, sel);
sel                78 drivers/regulator/ltc3676.c 	int sel;
sel                81 drivers/regulator/ltc3676.c 	sel = regulator_map_voltage_linear(rdev, uV, uV);
sel                82 drivers/regulator/ltc3676.c 	if (sel < 0)
sel                83 drivers/regulator/ltc3676.c 		return sel;
sel                87 drivers/regulator/ltc3676.c 				  rdev->desc->vsel_mask, sel);
sel                60 drivers/regulator/max77693-regulator.c 	unsigned int reg, sel;
sel                68 drivers/regulator/max77693-regulator.c 	sel = reg & reg_data->linear_mask;
sel                71 drivers/regulator/max77693-regulator.c 	if (sel <= reg_data->min_sel)
sel                72 drivers/regulator/max77693-regulator.c 		sel = 0;
sel                74 drivers/regulator/max77693-regulator.c 		sel -= reg_data->min_sel;
sel                76 drivers/regulator/max77693-regulator.c 	val = chg_min_uA + reg_data->uA_step * sel;
sel                88 drivers/regulator/max77693-regulator.c 	int sel = 0;
sel                90 drivers/regulator/max77693-regulator.c 	while (chg_min_uA + reg_data->uA_step * sel < min_uA)
sel                91 drivers/regulator/max77693-regulator.c 		sel++;
sel                93 drivers/regulator/max77693-regulator.c 	if (chg_min_uA + reg_data->uA_step * sel > max_uA)
sel                97 drivers/regulator/max77693-regulator.c 	sel += reg_data->min_sel;
sel                99 drivers/regulator/max77693-regulator.c 	return regmap_write(rdev->regmap, reg_data->linear_reg, sel);
sel               795 drivers/regulator/max8997-regulator.c 	int sel, rid = rdev_get_id(rdev);
sel               800 drivers/regulator/max8997-regulator.c 	sel = max8997_get_voltage_sel(rdev);
sel               801 drivers/regulator/max8997-regulator.c 	if (sel < 0)
sel               802 drivers/regulator/max8997-regulator.c 		return sel;
sel               805 drivers/regulator/max8997-regulator.c 	return max8997_list_voltage(rdev, sel);
sel               288 drivers/regulator/mcp16502.c 	int sel = regulator_map_voltage_linear_range(rdev, uV, uV);
sel               291 drivers/regulator/mcp16502.c 	if (sel < 0)
sel               292 drivers/regulator/mcp16502.c 		return sel;
sel               297 drivers/regulator/mcp16502.c 	return regmap_update_bits(rdev->regmap, reg, MCP16502_VSEL, sel);
sel               866 drivers/regulator/qcom_spmi-regulator.c 	u8 sel = selector;
sel               872 drivers/regulator/qcom_spmi-regulator.c 	return spmi_vreg_write(vreg, SPMI_COMMON_REG_VOLTAGE_SET, &sel, 1);
sel               242 drivers/regulator/rk808-regulator.c 					     unsigned sel)
sel               254 drivers/regulator/rk808-regulator.c 	delta_sel = sel - old_sel;
sel               273 drivers/regulator/rk808-regulator.c 		delta_sel = sel - old_sel;
sel               276 drivers/regulator/rk808-regulator.c 	sel <<= ffs(mask) - 1;
sel               277 drivers/regulator/rk808-regulator.c 	val = tmp | sel;
sel               291 drivers/regulator/rk808-regulator.c 					 unsigned sel)
sel               301 drivers/regulator/rk808-regulator.c 		return rk808_buck1_2_i2c_set_voltage_sel(rdev, sel);
sel               316 drivers/regulator/rk808-regulator.c 	sel <<= ffs(rdev->desc->vsel_mask) - 1;
sel               317 drivers/regulator/rk808-regulator.c 	sel |= old_sel & ~rdev->desc->vsel_mask;
sel               319 drivers/regulator/rk808-regulator.c 	ret = regmap_write(rdev->regmap, reg, sel);
sel               402 drivers/regulator/rk808-regulator.c 	int sel = regulator_map_voltage_linear(rdev, uv, uv);
sel               404 drivers/regulator/rk808-regulator.c 	if (sel < 0)
sel               411 drivers/regulator/rk808-regulator.c 				  sel);
sel               417 drivers/regulator/rk808-regulator.c 	int sel = regulator_map_voltage_linear(rdev, uv, uv);
sel               419 drivers/regulator/rk808-regulator.c 	if (sel < 0)
sel               426 drivers/regulator/rk808-regulator.c 				  sel);
sel               432 drivers/regulator/rk808-regulator.c 	int sel = regulator_map_voltage_linear_range(rdev, uv, uv);
sel               434 drivers/regulator/rk808-regulator.c 	if (sel < 0)
sel               441 drivers/regulator/rk808-regulator.c 				  sel);
sel               120 drivers/regulator/stm32-vrefbuf.c 					 unsigned sel)
sel               133 drivers/regulator/stm32-vrefbuf.c 	val = (val & ~STM32_VRS) | FIELD_PREP(STM32_VRS, sel);
sel               312 drivers/regulator/ti-abb-regulator.c static int ti_abb_set_voltage_sel(struct regulator_dev *rdev, unsigned sel)
sel               333 drivers/regulator/ti-abb-regulator.c 	if (sel >= desc->n_voltages) {
sel               335 drivers/regulator/ti-abb-regulator.c 			sel, desc->n_voltages);
sel               340 drivers/regulator/ti-abb-regulator.c 	if (sel == abb->current_info_idx) {
sel               341 drivers/regulator/ti-abb-regulator.c 		dev_dbg(dev, "%s: Already at sel=%d\n", __func__, sel);
sel               346 drivers/regulator/ti-abb-regulator.c 	info = &abb->info[sel];
sel               350 drivers/regulator/ti-abb-regulator.c 			sel, abb->current_info_idx);
sel               358 drivers/regulator/ti-abb-regulator.c 		abb->current_info_idx = sel;
sel               362 drivers/regulator/ti-abb-regulator.c 				    __func__, desc->volt_table[sel], sel,
sel               150 drivers/regulator/tps80031-regulator.c static int tps80031_dcdc_list_voltage(struct regulator_dev *rdev, unsigned sel)
sel               155 drivers/regulator/tps80031-regulator.c 	if (sel == 0)
sel               157 drivers/regulator/tps80031-regulator.c 	else if (sel < 58)
sel               158 drivers/regulator/tps80031-regulator.c 		return regulator_list_voltage_linear(rdev, sel - 1);
sel               160 drivers/regulator/tps80031-regulator.c 		return tps80031_dcdc_voltages[volt_index][sel - 58] * 1000;
sel               227 drivers/regulator/tps80031-regulator.c 				     unsigned int sel)
sel               235 drivers/regulator/tps80031-regulator.c 		unsigned nvsel = (sel) & 0x1F;
sel               247 drivers/regulator/tps80031-regulator.c 	return regulator_list_voltage_linear(rdev, sel);
sel                46 drivers/regulator/vctrl-regulator.c 	unsigned int sel;
sel               147 drivers/regulator/vctrl-regulator.c 	return vctrl->sel;
sel               155 drivers/regulator/vctrl-regulator.c 	unsigned int orig_sel = vctrl->sel;
sel               161 drivers/regulator/vctrl-regulator.c 	if (selector >= vctrl->sel || !vctrl->ovp_threshold) {
sel               168 drivers/regulator/vctrl-regulator.c 			vctrl->sel = selector;
sel               173 drivers/regulator/vctrl-regulator.c 	while (vctrl->sel != selector) {
sel               177 drivers/regulator/vctrl-regulator.c 		if (selector >= vctrl->vtable[vctrl->sel].ovp_min_sel)
sel               180 drivers/regulator/vctrl-regulator.c 			next_sel = vctrl->vtable[vctrl->sel].ovp_min_sel;
sel               192 drivers/regulator/vctrl-regulator.c 		vctrl->sel = next_sel;
sel               194 drivers/regulator/vctrl-regulator.c 		delay = DIV_ROUND_UP(vctrl->vtable[vctrl->sel].out -
sel               203 drivers/regulator/vctrl-regulator.c 	if (vctrl->sel != orig_sel) {
sel               209 drivers/regulator/vctrl-regulator.c 			vctrl->sel = orig_sel;
sel               501 drivers/regulator/vctrl-regulator.c 			vctrl->sel = 0;
sel               503 drivers/regulator/vctrl-regulator.c 			vctrl->sel = rdesc->n_voltages - 1;
sel               509 drivers/regulator/vctrl-regulator.c 					vctrl->sel = i;
sel               524 drivers/regulator/wm831x-dcdc.c 	int sel;
sel               526 drivers/regulator/wm831x-dcdc.c 	sel = regulator_map_voltage_linear(rdev, uV, uV);
sel               527 drivers/regulator/wm831x-dcdc.c 	if (sel < 0)
sel               528 drivers/regulator/wm831x-dcdc.c 		return sel;
sel               530 drivers/regulator/wm831x-dcdc.c 	return wm831x_set_bits(wm831x, reg, WM831X_DC3_ON_VSEL_MASK, sel);
sel                72 drivers/regulator/wm831x-ldo.c 	int sel, reg = ldo->base + WM831X_LDO_SLEEP_CONTROL;
sel                74 drivers/regulator/wm831x-ldo.c 	sel = regulator_map_voltage_linear_range(rdev, uV, uV);
sel                75 drivers/regulator/wm831x-ldo.c 	if (sel < 0)
sel                76 drivers/regulator/wm831x-ldo.c 		return sel;
sel                78 drivers/regulator/wm831x-ldo.c 	return wm831x_set_bits(wm831x, reg, WM831X_LDO1_ON_VSEL_MASK, sel);
sel               325 drivers/regulator/wm831x-ldo.c 	int sel, reg = ldo->base + WM831X_LDO_SLEEP_CONTROL;
sel               327 drivers/regulator/wm831x-ldo.c 	sel = regulator_map_voltage_linear_range(rdev, uV, uV);
sel               328 drivers/regulator/wm831x-ldo.c 	if (sel < 0)
sel               329 drivers/regulator/wm831x-ldo.c 		return sel;
sel               331 drivers/regulator/wm831x-ldo.c 	return wm831x_set_bits(wm831x, reg, WM831X_LDO7_ON_VSEL_MASK, sel);
sel               531 drivers/regulator/wm831x-ldo.c 	int sel, reg = ldo->base + WM831X_ALIVE_LDO_SLEEP_CONTROL;
sel               533 drivers/regulator/wm831x-ldo.c 	sel = regulator_map_voltage_linear(rdev, uV, uV);
sel               534 drivers/regulator/wm831x-ldo.c 	if (sel < 0)
sel               535 drivers/regulator/wm831x-ldo.c 		return sel;
sel               537 drivers/regulator/wm831x-ldo.c 	return wm831x_set_bits(wm831x, reg, WM831X_LDO11_ON_VSEL_MASK, sel);
sel               266 drivers/regulator/wm8350-regulator.c 	int sel, volt_reg, dcdc = rdev_get_id(rdev);
sel               290 drivers/regulator/wm8350-regulator.c 	sel = regulator_map_voltage_linear(rdev, uV, uV);
sel               291 drivers/regulator/wm8350-regulator.c 	if (sel < 0)
sel               292 drivers/regulator/wm8350-regulator.c 		return sel;
sel               296 drivers/regulator/wm8350-regulator.c 	wm8350_reg_write(wm8350, volt_reg, val | sel);
sel               481 drivers/regulator/wm8350-regulator.c 	int sel, volt_reg, ldo = rdev_get_id(rdev);
sel               503 drivers/regulator/wm8350-regulator.c 	sel = regulator_map_voltage_linear_range(rdev, uV, uV);
sel               504 drivers/regulator/wm8350-regulator.c 	if (sel < 0)
sel               505 drivers/regulator/wm8350-regulator.c 		return sel;
sel               509 drivers/regulator/wm8350-regulator.c 	wm8350_reg_write(wm8350, volt_reg, val | sel);
sel               319 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fcoe_fcf *sel;
sel               331 drivers/scsi/fcoe/fcoe_ctlr.c 	sel = fip->sel_fcf;
sel               333 drivers/scsi/fcoe/fcoe_ctlr.c 	if (sel && ether_addr_equal(sel->fcf_mac, fip->dest_addr))
sel               341 drivers/scsi/fcoe/fcoe_ctlr.c 	if (sel) {
sel               344 drivers/scsi/fcoe/fcoe_ctlr.c 		       fip->lp->host->host_no, sel->fcf_mac);
sel               345 drivers/scsi/fcoe/fcoe_ctlr.c 		memcpy(fip->dest_addr, sel->fcoe_mac, ETH_ALEN);
sel              1142 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fcoe_fcf *sel;
sel              1181 drivers/scsi/fcoe/fcoe_ctlr.c 			sel = fip->sel_fcf;
sel              1203 drivers/scsi/fcoe/fcoe_ctlr.c 			if ((desc_cnt == 3) && (sel))
sel              1204 drivers/scsi/fcoe/fcoe_ctlr.c 				memcpy(sel->fcoe_mac,
sel              1802 drivers/scsi/fcoe/fcoe_ctlr.c 	struct fcoe_fcf *sel;
sel              1818 drivers/scsi/fcoe/fcoe_ctlr.c 	sel = fip->sel_fcf;
sel              1819 drivers/scsi/fcoe/fcoe_ctlr.c 	if (!sel && fip->sel_time) {
sel              1821 drivers/scsi/fcoe/fcoe_ctlr.c 			sel = fcoe_ctlr_select(fip);
sel              1827 drivers/scsi/fcoe/fcoe_ctlr.c 	if (sel && fip->flogi_req_send)
sel              1829 drivers/scsi/fcoe/fcoe_ctlr.c 	else if (!sel && fcf)
sel              1832 drivers/scsi/fcoe/fcoe_ctlr.c 	if (sel && !sel->fd_flags) {
sel              1834 drivers/scsi/fcoe/fcoe_ctlr.c 			fip->ctlr_ka_time = jiffies + sel->fka_period;
sel               258 drivers/scsi/ufs/ufshci.h #define UIC_ARG_MIB_SEL(attr, sel)	((((attr) & 0xFFFF) << 16) |\
sel               259 drivers/scsi/ufs/ufshci.h 					 ((sel) & 0xFFFF))
sel              1569 drivers/staging/media/imx/imx-media-csi.c 			     struct v4l2_subdev_selection *sel)
sel              1576 drivers/staging/media/imx/imx-media-csi.c 	if (sel->pad != CSI_SINK_PAD)
sel              1581 drivers/staging/media/imx/imx-media-csi.c 	infmt = __csi_get_fmt(priv, cfg, CSI_SINK_PAD, sel->which);
sel              1582 drivers/staging/media/imx/imx-media-csi.c 	crop = __csi_get_crop(priv, cfg, sel->which);
sel              1583 drivers/staging/media/imx/imx-media-csi.c 	compose = __csi_get_compose(priv, cfg, sel->which);
sel              1585 drivers/staging/media/imx/imx-media-csi.c 	switch (sel->target) {
sel              1587 drivers/staging/media/imx/imx-media-csi.c 		sel->r.left = 0;
sel              1588 drivers/staging/media/imx/imx-media-csi.c 		sel->r.top = 0;
sel              1589 drivers/staging/media/imx/imx-media-csi.c 		sel->r.width = infmt->width;
sel              1590 drivers/staging/media/imx/imx-media-csi.c 		sel->r.height = infmt->height;
sel              1592 drivers/staging/media/imx/imx-media-csi.c 			sel->r.height *= 2;
sel              1595 drivers/staging/media/imx/imx-media-csi.c 		sel->r = *crop;
sel              1598 drivers/staging/media/imx/imx-media-csi.c 		sel->r.left = 0;
sel              1599 drivers/staging/media/imx/imx-media-csi.c 		sel->r.top = 0;
sel              1600 drivers/staging/media/imx/imx-media-csi.c 		sel->r.width = crop->width;
sel              1601 drivers/staging/media/imx/imx-media-csi.c 		sel->r.height = crop->height;
sel              1604 drivers/staging/media/imx/imx-media-csi.c 		sel->r = *compose;
sel              1633 drivers/staging/media/imx/imx-media-csi.c 			     struct v4l2_subdev_selection *sel)
sel              1641 drivers/staging/media/imx/imx-media-csi.c 	if (sel->pad != CSI_SINK_PAD)
sel              1657 drivers/staging/media/imx/imx-media-csi.c 	infmt = __csi_get_fmt(priv, cfg, CSI_SINK_PAD, sel->which);
sel              1658 drivers/staging/media/imx/imx-media-csi.c 	crop = __csi_get_crop(priv, cfg, sel->which);
sel              1659 drivers/staging/media/imx/imx-media-csi.c 	compose = __csi_get_compose(priv, cfg, sel->which);
sel              1661 drivers/staging/media/imx/imx-media-csi.c 	switch (sel->target) {
sel              1668 drivers/staging/media/imx/imx-media-csi.c 		if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) {
sel              1669 drivers/staging/media/imx/imx-media-csi.c 			sel->r = priv->crop;
sel              1670 drivers/staging/media/imx/imx-media-csi.c 			if (sel->which == V4L2_SUBDEV_FORMAT_TRY)
sel              1671 drivers/staging/media/imx/imx-media-csi.c 				*crop = sel->r;
sel              1675 drivers/staging/media/imx/imx-media-csi.c 		csi_try_crop(priv, &sel->r, cfg, infmt, &upstream_ep);
sel              1677 drivers/staging/media/imx/imx-media-csi.c 		*crop = sel->r;
sel              1689 drivers/staging/media/imx/imx-media-csi.c 		if (sel->flags & V4L2_SEL_FLAG_KEEP_CONFIG) {
sel              1690 drivers/staging/media/imx/imx-media-csi.c 			sel->r = priv->compose;
sel              1691 drivers/staging/media/imx/imx-media-csi.c 			if (sel->which == V4L2_SUBDEV_FORMAT_TRY)
sel              1692 drivers/staging/media/imx/imx-media-csi.c 				*compose = sel->r;
sel              1696 drivers/staging/media/imx/imx-media-csi.c 		sel->r.left = 0;
sel              1697 drivers/staging/media/imx/imx-media-csi.c 		sel->r.top = 0;
sel              1698 drivers/staging/media/imx/imx-media-csi.c 		ret = csi_set_scale(&sel->r.width, crop->width, sel->flags);
sel              1701 drivers/staging/media/imx/imx-media-csi.c 		ret = csi_set_scale(&sel->r.height, crop->height, sel->flags);
sel              1705 drivers/staging/media/imx/imx-media-csi.c 		*compose = sel->r;
sel              1716 drivers/staging/media/imx/imx-media-csi.c 		outfmt = __csi_get_fmt(priv, cfg, pad, sel->which);
sel               198 drivers/staging/media/imx/imx6-mipi-csi2.c 	int sel;
sel               208 drivers/staging/media/imx/imx6-mipi-csi2.c 	sel = max_mbps_to_hsfreqrange_sel(mbps_per_lane);
sel               209 drivers/staging/media/imx/imx6-mipi-csi2.c 	if (sel < 0)
sel               210 drivers/staging/media/imx/imx6-mipi-csi2.c 		return sel;
sel               212 drivers/staging/media/imx/imx6-mipi-csi2.c 	dw_mipi_csi2_phy_write(csi2, 0x44, sel);
sel               194 drivers/staging/media/ipu3/ipu3-v4l2.c 				     struct v4l2_subdev_selection *sel)
sel               201 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (sel->pad != IMGU_NODE_IN)
sel               204 drivers/staging/media/ipu3/ipu3-v4l2.c 	switch (sel->target) {
sel               206 drivers/staging/media/ipu3/ipu3-v4l2.c 		try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
sel               210 drivers/staging/media/ipu3/ipu3-v4l2.c 		try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad);
sel               217 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY)
sel               218 drivers/staging/media/ipu3/ipu3-v4l2.c 		sel->r = *try_sel;
sel               220 drivers/staging/media/ipu3/ipu3-v4l2.c 		sel->r = *r;
sel               227 drivers/staging/media/ipu3/ipu3-v4l2.c 				     struct v4l2_subdev_selection *sel)
sel               237 drivers/staging/media/ipu3/ipu3-v4l2.c 		 imgu_sd->pipe, sel->which, sel->target,
sel               238 drivers/staging/media/ipu3/ipu3-v4l2.c 		 sel->r.width, sel->r.height);
sel               240 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (sel->pad != IMGU_NODE_IN)
sel               243 drivers/staging/media/ipu3/ipu3-v4l2.c 	switch (sel->target) {
sel               245 drivers/staging/media/ipu3/ipu3-v4l2.c 		try_sel = v4l2_subdev_get_try_crop(sd, cfg, sel->pad);
sel               249 drivers/staging/media/ipu3/ipu3-v4l2.c 		try_sel = v4l2_subdev_get_try_compose(sd, cfg, sel->pad);
sel               256 drivers/staging/media/ipu3/ipu3-v4l2.c 	if (sel->which == V4L2_SUBDEV_FORMAT_TRY)
sel               257 drivers/staging/media/ipu3/ipu3-v4l2.c 		*try_sel = sel->r;
sel               259 drivers/staging/media/ipu3/ipu3-v4l2.c 		*rect = sel->r;
sel               645 drivers/staging/media/omap4iss/iss_video.c iss_video_get_selection(struct file *file, void *fh, struct v4l2_selection *sel)
sel               652 drivers/staging/media/omap4iss/iss_video.c 		.target = sel->target,
sel               657 drivers/staging/media/omap4iss/iss_video.c 	switch (sel->target) {
sel               684 drivers/staging/media/omap4iss/iss_video.c 		sel->r = sdsel.r;
sel               694 drivers/staging/media/omap4iss/iss_video.c 	sel->r.left = 0;
sel               695 drivers/staging/media/omap4iss/iss_video.c 	sel->r.top = 0;
sel               696 drivers/staging/media/omap4iss/iss_video.c 	sel->r.width = format.format.width;
sel               697 drivers/staging/media/omap4iss/iss_video.c 	sel->r.height = format.format.height;
sel               703 drivers/staging/media/omap4iss/iss_video.c iss_video_set_selection(struct file *file, void *fh, struct v4l2_selection *sel)
sel               709 drivers/staging/media/omap4iss/iss_video.c 		.target = sel->target,
sel               710 drivers/staging/media/omap4iss/iss_video.c 		.flags = sel->flags,
sel               711 drivers/staging/media/omap4iss/iss_video.c 		.r = sel->r,
sel               716 drivers/staging/media/omap4iss/iss_video.c 	switch (sel->target) {
sel               737 drivers/staging/media/omap4iss/iss_video.c 		sel->r = sdsel.r;
sel               210 drivers/staging/media/soc_camera/imx074.c 				struct v4l2_subdev_selection *sel)
sel               212 drivers/staging/media/soc_camera/imx074.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               215 drivers/staging/media/soc_camera/imx074.c 	sel->r.left = 0;
sel               216 drivers/staging/media/soc_camera/imx074.c 	sel->r.top = 0;
sel               217 drivers/staging/media/soc_camera/imx074.c 	sel->r.width = IMX074_WIDTH;
sel               218 drivers/staging/media/soc_camera/imx074.c 	sel->r.height = IMX074_HEIGHT;
sel               220 drivers/staging/media/soc_camera/imx074.c 	switch (sel->target) {
sel               295 drivers/staging/media/soc_camera/mt9t031.c 		struct v4l2_subdev_selection *sel)
sel               299 drivers/staging/media/soc_camera/mt9t031.c 	struct v4l2_rect rect = sel->r;
sel               301 drivers/staging/media/soc_camera/mt9t031.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               302 drivers/staging/media/soc_camera/mt9t031.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               319 drivers/staging/media/soc_camera/mt9t031.c 		struct v4l2_subdev_selection *sel)
sel               324 drivers/staging/media/soc_camera/mt9t031.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               327 drivers/staging/media/soc_camera/mt9t031.c 	switch (sel->target) {
sel               329 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.left = MT9T031_COLUMN_SKIP;
sel               330 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.top = MT9T031_ROW_SKIP;
sel               331 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.width = MT9T031_MAX_WIDTH;
sel               332 drivers/staging/media/soc_camera/mt9t031.c 		sel->r.height = MT9T031_MAX_HEIGHT;
sel               335 drivers/staging/media/soc_camera/mt9t031.c 		sel->r = mt9t031->rect;
sel              1765 drivers/staging/media/soc_camera/soc_camera.c 			       struct v4l2_selection *sel)
sel              1770 drivers/staging/media/soc_camera/soc_camera.c 		.target = sel->target,
sel              1777 drivers/staging/media/soc_camera/soc_camera.c 	sel->r = sdsel.r;
sel              1782 drivers/staging/media/soc_camera/soc_camera.c 			       struct v4l2_selection *sel)
sel              1787 drivers/staging/media/soc_camera/soc_camera.c 		.target = sel->target,
sel              1788 drivers/staging/media/soc_camera/soc_camera.c 		.flags = sel->flags,
sel              1789 drivers/staging/media/soc_camera/soc_camera.c 		.r = sel->r,
sel              1796 drivers/staging/media/soc_camera/soc_camera.c 	sel->r = sdsel.r;
sel               277 drivers/staging/media/soc_camera/soc_mt9v022.c 		struct v4l2_subdev_selection *sel)
sel               281 drivers/staging/media/soc_camera/soc_mt9v022.c 	struct v4l2_rect rect = sel->r;
sel               285 drivers/staging/media/soc_camera/soc_mt9v022.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               286 drivers/staging/media/soc_camera/soc_mt9v022.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               357 drivers/staging/media/soc_camera/soc_mt9v022.c 		struct v4l2_subdev_selection *sel)
sel               362 drivers/staging/media/soc_camera/soc_mt9v022.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               365 drivers/staging/media/soc_camera/soc_mt9v022.c 	switch (sel->target) {
sel               367 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.left = MT9V022_COLUMN_SKIP;
sel               368 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.top = MT9V022_ROW_SKIP;
sel               369 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.width = MT9V022_MAX_WIDTH;
sel               370 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r.height = MT9V022_MAX_HEIGHT;
sel               373 drivers/staging/media/soc_camera/soc_mt9v022.c 		sel->r = mt9v022->rect;
sel               406 drivers/staging/media/soc_camera/soc_mt9v022.c 	struct v4l2_subdev_selection sel = {
sel               436 drivers/staging/media/soc_camera/soc_mt9v022.c 	ret = mt9v022_set_selection(sd, NULL, &sel);
sel               853 drivers/staging/media/soc_camera/soc_ov5642.c 		struct v4l2_subdev_selection *sel)
sel               857 drivers/staging/media/soc_camera/soc_ov5642.c 	struct v4l2_rect rect = sel->r;
sel               860 drivers/staging/media/soc_camera/soc_ov5642.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE ||
sel               861 drivers/staging/media/soc_camera/soc_ov5642.c 	    sel->target != V4L2_SEL_TGT_CROP)
sel               887 drivers/staging/media/soc_camera/soc_ov5642.c 		struct v4l2_subdev_selection *sel)
sel               892 drivers/staging/media/soc_camera/soc_ov5642.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               895 drivers/staging/media/soc_camera/soc_ov5642.c 	switch (sel->target) {
sel               897 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.left = 0;
sel               898 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.top = 0;
sel               899 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.width = OV5642_MAX_WIDTH;
sel               900 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r.height = OV5642_MAX_HEIGHT;
sel               903 drivers/staging/media/soc_camera/soc_ov5642.c 		sel->r = priv->crop_rect;
sel               722 drivers/staging/media/soc_camera/soc_ov9740.c 		struct v4l2_subdev_selection *sel)
sel               724 drivers/staging/media/soc_camera/soc_ov9740.c 	if (sel->which != V4L2_SUBDEV_FORMAT_ACTIVE)
sel               727 drivers/staging/media/soc_camera/soc_ov9740.c 	switch (sel->target) {
sel               730 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.left = 0;
sel               731 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.top = 0;
sel               732 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.width = OV9740_MAX_WIDTH;
sel               733 drivers/staging/media/soc_camera/soc_ov9740.c 		sel->r.height = OV9740_MAX_HEIGHT;
sel                52 drivers/staging/rtl8723bs/core/rtw_debug.c void dump_drv_version(void *sel)
sel                54 drivers/staging/rtl8723bs/core/rtw_debug.c 	DBG_871X_SEL_NL(sel, "%s %s\n", "rtl8723bs", DRIVERVERSION);
sel                57 drivers/staging/rtl8723bs/core/rtw_debug.c void dump_log_level(void *sel)
sel                59 drivers/staging/rtl8723bs/core/rtw_debug.c 	DBG_871X_SEL_NL(sel, "log_level:%d\n", GlobalDebugLevel);
sel                62 drivers/staging/rtl8723bs/core/rtw_debug.c void sd_f0_reg_dump(void *sel, struct adapter *adapter)
sel                68 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL_NL(sel, "0x%02x ", i);
sel                70 drivers/staging/rtl8723bs/core/rtw_debug.c 		DBG_871X_SEL(sel, "%02x ", rtw_sd_f0_read8(adapter, i));
sel                73 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL(sel, "\n");
sel                75 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL(sel, "\t");
sel                79 drivers/staging/rtl8723bs/core/rtw_debug.c void mac_reg_dump(void *sel, struct adapter *adapter)
sel                83 drivers/staging/rtl8723bs/core/rtw_debug.c 	DBG_871X_SEL_NL(sel, "======= MAC REG =======\n");
sel                87 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL_NL(sel, "0x%03x", i);
sel                88 drivers/staging/rtl8723bs/core/rtw_debug.c 		DBG_871X_SEL(sel, " 0x%08x ", rtw_read32(adapter, i));
sel                90 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL(sel, "\n");
sel                94 drivers/staging/rtl8723bs/core/rtw_debug.c void bb_reg_dump(void *sel, struct adapter *adapter)
sel                98 drivers/staging/rtl8723bs/core/rtw_debug.c 	DBG_871X_SEL_NL(sel, "======= BB REG =======\n");
sel               101 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL_NL(sel, "0x%03x", i);
sel               102 drivers/staging/rtl8723bs/core/rtw_debug.c 		DBG_871X_SEL(sel, " 0x%08x ", rtw_read32(adapter, i));
sel               104 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL(sel, "\n");
sel               108 drivers/staging/rtl8723bs/core/rtw_debug.c void rf_reg_dump(void *sel, struct adapter *adapter)
sel               121 drivers/staging/rtl8723bs/core/rtw_debug.c 	DBG_871X_SEL_NL(sel, "======= RF REG =======\n");
sel               124 drivers/staging/rtl8723bs/core/rtw_debug.c 		DBG_871X_SEL_NL(sel, "RF_Path(%x)\n", path);
sel               128 drivers/staging/rtl8723bs/core/rtw_debug.c 				DBG_871X_SEL_NL(sel, "0x%02x ", i);
sel               129 drivers/staging/rtl8723bs/core/rtw_debug.c 			DBG_871X_SEL(sel, " 0x%08x ", value);
sel               131 drivers/staging/rtl8723bs/core/rtw_debug.c 				DBG_871X_SEL(sel, "\n");
sel                93 drivers/staging/rtl8723bs/core/rtw_odm.c void rtw_odm_dbg_comp_msg(void *sel, struct adapter *adapter)
sel                99 drivers/staging/rtl8723bs/core/rtw_odm.c 	DBG_871X_SEL_NL(sel, "odm.DebugComponents = 0x%016llx\n", dbg_comp);
sel               102 drivers/staging/rtl8723bs/core/rtw_odm.c 			DBG_871X_SEL_NL(sel, "%cBIT%-2d %s\n",
sel               113 drivers/staging/rtl8723bs/core/rtw_odm.c void rtw_odm_dbg_level_msg(void *sel, struct adapter *adapter)
sel               119 drivers/staging/rtl8723bs/core/rtw_odm.c 	DBG_871X_SEL_NL(sel, "odm.DebugLevel = %u\n", dbg_level);
sel               122 drivers/staging/rtl8723bs/core/rtw_odm.c 			DBG_871X_SEL_NL(sel, "%u %s\n",
sel               132 drivers/staging/rtl8723bs/core/rtw_odm.c void rtw_odm_ability_msg(void *sel, struct adapter *adapter)
sel               138 drivers/staging/rtl8723bs/core/rtw_odm.c 	DBG_871X_SEL_NL(sel, "odm.SupportAbility = 0x%08x\n", ability);
sel               141 drivers/staging/rtl8723bs/core/rtw_odm.c 			DBG_871X_SEL_NL(sel, "%cBIT%-2d %s\n",
sel               152 drivers/staging/rtl8723bs/core/rtw_odm.c void rtw_odm_adaptivity_parm_msg(void *sel, struct adapter *adapter)
sel               157 drivers/staging/rtl8723bs/core/rtw_odm.c 	DBG_871X_SEL_NL(sel, "%10s %16s %8s %10s %11s %14s\n",
sel               160 drivers/staging/rtl8723bs/core/rtw_odm.c 	DBG_871X_SEL_NL(sel, "0x%-8x %-16d 0x%-6x %-10d %-11u %-14u\n",
sel               186 drivers/staging/rtl8723bs/core/rtw_odm.c void rtw_odm_get_perpkt_rssi(void *sel, struct adapter *adapter)
sel               191 drivers/staging/rtl8723bs/core/rtw_odm.c 	DBG_871X_SEL_NL(sel, "RxRate = %s, RSSI_A = %d(%%), RSSI_B = %d(%%)\n",
sel              1596 drivers/staging/rtl8723bs/hal/hal_com.c void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter)
sel              1603 drivers/staging/rtl8723bs/hal/hal_com.c 		sel,
sel              1616 drivers/staging/rtl8723bs/hal/hal_com.c 			sel,
sel              1624 drivers/staging/rtl8723bs/hal/hal_com.c 				sel,
sel               271 drivers/staging/rtl8723bs/include/hal_com.h void rtw_get_raw_rssi_info(void *sel, struct adapter *padapter);
sel                90 drivers/staging/rtl8723bs/include/osdep_service.h #define rtw_mstat_dump(sel) do {} while (0)
sel               182 drivers/staging/rtl8723bs/include/rtw_debug.h #define DBG_871X_SEL(sel, fmt, arg...)					\
sel               184 drivers/staging/rtl8723bs/include/rtw_debug.h 		if (sel == RTW_DBGDUMP)					\
sel               187 drivers/staging/rtl8723bs/include/rtw_debug.h 			seq_printf(sel, fmt, ##arg);			\
sel               191 drivers/staging/rtl8723bs/include/rtw_debug.h #define DBG_871X_SEL_NL(sel, fmt, arg...)				\
sel               193 drivers/staging/rtl8723bs/include/rtw_debug.h 		if (sel == RTW_DBGDUMP)					\
sel               196 drivers/staging/rtl8723bs/include/rtw_debug.h 			seq_printf(sel, fmt, ##arg);			\
sel               261 drivers/staging/rtl8723bs/include/rtw_debug.h void dump_drv_version(void *sel);
sel               262 drivers/staging/rtl8723bs/include/rtw_debug.h void dump_log_level(void *sel);
sel               264 drivers/staging/rtl8723bs/include/rtw_debug.h void sd_f0_reg_dump(void *sel, struct adapter *adapter);
sel               266 drivers/staging/rtl8723bs/include/rtw_debug.h void mac_reg_dump(void *sel, struct adapter *adapter);
sel               267 drivers/staging/rtl8723bs/include/rtw_debug.h void bb_reg_dump(void *sel, struct adapter *adapter);
sel               268 drivers/staging/rtl8723bs/include/rtw_debug.h void rf_reg_dump(void *sel, struct adapter *adapter);
sel                16 drivers/staging/rtl8723bs/include/rtw_odm.h void rtw_odm_dbg_comp_msg(void *sel, struct adapter *adapter);
sel                18 drivers/staging/rtl8723bs/include/rtw_odm.h void rtw_odm_dbg_level_msg(void *sel, struct adapter *adapter);
sel                21 drivers/staging/rtl8723bs/include/rtw_odm.h void rtw_odm_ability_msg(void *sel, struct adapter *adapter);
sel                24 drivers/staging/rtl8723bs/include/rtw_odm.h void rtw_odm_adaptivity_parm_msg(void *sel, struct adapter *adapter);
sel                27 drivers/staging/rtl8723bs/include/rtw_odm.h void rtw_odm_get_perpkt_rssi(void *sel, struct adapter *adapter);
sel               695 drivers/staging/rts5208/rtsx_card.c 	u8 sel, div, mcu_cnt;
sel               704 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_80;
sel               711 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_120;
sel               718 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_80;
sel               725 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_100;
sel               732 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_120;
sel               739 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_80;
sel               746 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_100;
sel               753 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_120;
sel               760 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_150;
sel               767 drivers/staging/rts5208/rtsx_card.c 		sel = SSC_200;
sel               795 drivers/staging/rts5208/rtsx_card.c 	retval = rtsx_write_register(chip, CLK_SEL, 0xFF, sel);
sel                21 drivers/staging/speakup/selection.c 	struct tiocl_selection sel;
sel                38 drivers/staging/speakup/selection.c 	struct tiocl_selection sel;
sel                40 drivers/staging/speakup/selection.c 	sel = ssw->sel;
sel                54 drivers/staging/speakup/selection.c 	set_selection_kernel(&sel, tty);
sel                84 drivers/staging/speakup/selection.c 	speakup_sel_work.sel.xs = spk_xs + 1;
sel                85 drivers/staging/speakup/selection.c 	speakup_sel_work.sel.ys = spk_ys + 1;
sel                86 drivers/staging/speakup/selection.c 	speakup_sel_work.sel.xe = spk_xe + 1;
sel                87 drivers/staging/speakup/selection.c 	speakup_sel_work.sel.ye = spk_ye + 1;
sel                88 drivers/staging/speakup/selection.c 	speakup_sel_work.sel.sel_mode = TIOCL_SELCHAR;
sel               178 drivers/tty/vt/selection.c int set_selection_user(const struct tiocl_selection __user *sel,
sel               183 drivers/tty/vt/selection.c 	if (copy_from_user(&v, sel, sizeof(*sel)))
sel               303 drivers/usb/core/hub.c 	udev_lpm_params->sel = total_sel;
sel              3857 drivers/usb/core/hub.c 	u1_sel = DIV_ROUND_UP(udev->u1_params.sel, 1000);
sel              3859 drivers/usb/core/hub.c 	u2_sel = DIV_ROUND_UP(udev->u2_params.sel, 1000);
sel               284 drivers/usb/dwc3/debugfs.c 	u32			sel;
sel               290 drivers/usb/dwc3/debugfs.c 	sel = dwc->dbg_lsp_select;
sel               291 drivers/usb/dwc3/debugfs.c 	if (sel == DWC3_LSP_MUX_UNSELECTED) {
sel               296 drivers/usb/dwc3/debugfs.c 	reg = DWC3_GDBGLSPMUX_HOSTSELECT(sel);
sel               300 drivers/usb/dwc3/debugfs.c 	seq_printf(s, "GDBGLSP[%d] = 0x%08x\n", sel, val);
sel               302 drivers/usb/dwc3/debugfs.c 	if (dbc_enabled && sel < 256) {
sel               306 drivers/usb/dwc3/debugfs.c 		seq_printf(s, "GDBGLSP_DBC[%d] = 0x%08x\n", sel, val);
sel               363 drivers/usb/dwc3/debugfs.c 	u32			sel;
sel               369 drivers/usb/dwc3/debugfs.c 	ret = kstrtouint(buf, 0, &sel);
sel               374 drivers/usb/dwc3/debugfs.c 	dwc->dbg_lsp_select = sel;
sel              4544 drivers/usb/host/xhci.c 	unsigned long long sel;
sel              4552 drivers/usb/host/xhci.c 		sel = DIV_ROUND_UP(udev->u1_params.sel, 1000);
sel              4558 drivers/usb/host/xhci.c 		sel = DIV_ROUND_UP(udev->u2_params.sel, 1000);
sel              4569 drivers/usb/host/xhci.c 	if (sel <= max_sel_pel && pel <= max_sel_pel)
sel              4572 drivers/usb/host/xhci.c 	if (sel > max_sel_pel)
sel              4575 drivers/usb/host/xhci.c 				state_name, sel);
sel              4602 drivers/usb/host/xhci.c 		timeout_ns = udev->u1_params.sel * 3;
sel              4605 drivers/usb/host/xhci.c 		timeout_ns = udev->u1_params.sel * 5;
sel              4610 drivers/usb/host/xhci.c 			timeout_ns = udev->u1_params.sel * 3;
sel              4618 drivers/usb/host/xhci.c 		if (timeout_ns < udev->u1_params.sel * 2)
sel              4619 drivers/usb/host/xhci.c 			timeout_ns = udev->u1_params.sel * 2;
sel              4646 drivers/usb/host/xhci.c 		timeout_ns = udev->u1_params.sel;
sel              4710 drivers/usb/host/xhci.c 		timeout_ns = udev->u2_params.sel;
sel               165 drivers/usb/mtu3/mtu3_gadget_ep0.c 	struct usb_set_sel_req sel;
sel               167 drivers/usb/mtu3/mtu3_gadget_ep0.c 	memcpy(&sel, req->buf, sizeof(sel));
sel               172 drivers/usb/mtu3/mtu3_gadget_ep0.c 		sel.u1_sel, sel.u1_pel, sel.u2_sel, sel.u2_pel);
sel               303 drivers/usb/renesas_usbhs/fifo.c 	usbhs_write(priv, fifo->sel, 0);
sel               328 drivers/usb/renesas_usbhs/fifo.c 	usbhs_write(priv, fifo->sel, base | MBW_32);
sel               332 drivers/usb/renesas_usbhs/fifo.c 		if (base == (mask & usbhs_read(priv, fifo->sel))) {
sel               792 drivers/usb/renesas_usbhs/fifo.c 	usbhs_bset(priv, fifo->sel, DREQE, dreqe);
sel              1432 drivers/usb/renesas_usbhs/fifo.c 	fifo->sel	= D##channel##FIFOSEL;				\
sel              1454 drivers/usb/renesas_usbhs/fifo.c 	fifo->sel	= CFIFOSEL;
sel                20 drivers/usb/renesas_usbhs/fifo.h 	u32 sel;	/* xFIFOSEL */
sel               118 include/linux/mfd/imx25-tsadc.h #define MX25_ADCQ_CFG_REFP(sel)		((sel) << 7)
sel               124 include/linux/mfd/imx25-tsadc.h #define MX25_ADCQ_CFG_IN(sel)		((sel) << 4)
sel               133 include/linux/mfd/imx25-tsadc.h #define MX25_ADCQ_CFG_REFN(sel)		((sel) << 2)
sel               527 include/linux/regulator/driver.h 						unsigned int sel);
sel               529 include/linux/regulator/driver.h int regulator_set_voltage_sel_regmap(struct regulator_dev *rdev, unsigned sel);
sel                18 include/linux/selection.h extern int set_selection_user(const struct tiocl_selection __user *sel,
sel               545 include/linux/usb.h 	unsigned int sel;
sel               694 include/media/v4l2-subdev.h 			     struct v4l2_subdev_selection *sel);
sel               697 include/media/v4l2-subdev.h 			     struct v4l2_subdev_selection *sel);
sel               275 include/net/ipv6.h 	int			sel;
sel               427 include/net/ipv6.h int ip6_ra_control(struct sock *sk, int sel);
sel               537 include/net/pkt_cls.h 	struct tc_u32_sel *sel;
sel               160 include/net/xfrm.h 	struct xfrm_selector	sel;
sel               576 include/net/xfrm.h 	int			(*report)(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr);
sel               577 include/net/xfrm.h 	int			(*migrate)(const struct xfrm_selector *sel,
sel               893 include/net/xfrm.h bool xfrm_selector_match(const struct xfrm_selector *sel,
sel              1640 include/net/xfrm.h 					  struct xfrm_selector *sel,
sel              1658 include/net/xfrm.h int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel              1666 include/net/xfrm.h int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel              1674 include/net/xfrm.h int km_report(struct net *net, u8 proto, struct xfrm_selector *sel,
sel               367 include/uapi/linux/xfrm.h 	struct xfrm_selector		sel;
sel               412 include/uapi/linux/xfrm.h 	struct xfrm_selector		sel;
sel               429 include/uapi/linux/xfrm.h 	struct xfrm_selector		sel;
sel               437 include/uapi/linux/xfrm.h 	struct xfrm_selector		sel;
sel               461 include/uapi/linux/xfrm.h 	struct xfrm_selector		sel;
sel               976 net/ipv4/esp4.c 	else if (x->props.mode == XFRM_MODE_BEET && x->sel.family != AF_INET6)
sel               147 net/ipv4/ip_vti.c 	if (x->sel.family == AF_UNSPEC) {
sel                68 net/ipv4/ipcomp.c 	memcpy(&t->sel, &x->sel, sizeof(t->sel));
sel               874 net/ipv6/esp6.c 		if (x->sel.family != AF_INET6)
sel               296 net/ipv6/ip6_output.c static int ip6_call_ra_chain(struct sk_buff *skb, int sel)
sel               304 net/ipv6/ip6_output.c 		if (sk && ra->sel == sel &&
sel               362 net/ipv6/ip6_vti.c 	if (x->sel.family == AF_UNSPEC) {
sel                89 net/ipv6/ipcomp6.c 	memcpy(&t->sel, &x->sel, sizeof(t->sel));
sel                58 net/ipv6/ipv6_sockglue.c int ip6_ra_control(struct sock *sk, int sel)
sel                66 net/ipv6/ipv6_sockglue.c 	new_ra = (sel >= 0) ? kmalloc(sizeof(*new_ra), GFP_KERNEL) : NULL;
sel                67 net/ipv6/ipv6_sockglue.c 	if (sel >= 0 && !new_ra)
sel                73 net/ipv6/ipv6_sockglue.c 			if (sel >= 0) {
sel                92 net/ipv6/ipv6_sockglue.c 	new_ra->sel = sel;
sel               203 net/ipv6/mip6.c 	struct xfrm_selector sel;
sel               226 net/ipv6/mip6.c 	memset(&sel, 0, sizeof(sel));
sel               227 net/ipv6/mip6.c 	memcpy(&sel.daddr, (xfrm_address_t *)&ipv6_hdr(skb)->daddr,
sel               228 net/ipv6/mip6.c 	       sizeof(sel.daddr));
sel               229 net/ipv6/mip6.c 	sel.prefixlen_d = 128;
sel               230 net/ipv6/mip6.c 	memcpy(&sel.saddr, (xfrm_address_t *)&ipv6_hdr(skb)->saddr,
sel               231 net/ipv6/mip6.c 	       sizeof(sel.saddr));
sel               232 net/ipv6/mip6.c 	sel.prefixlen_s = 128;
sel               233 net/ipv6/mip6.c 	sel.family = AF_INET6;
sel               234 net/ipv6/mip6.c 	sel.proto = fl6->flowi6_proto;
sel               235 net/ipv6/mip6.c 	sel.dport = xfrm_flowi_dport(fl, &fl6->uli);
sel               236 net/ipv6/mip6.c 	if (sel.dport)
sel               237 net/ipv6/mip6.c 		sel.dport_mask = htons(~0);
sel               238 net/ipv6/mip6.c 	sel.sport = xfrm_flowi_sport(fl, &fl6->uli);
sel               239 net/ipv6/mip6.c 	if (sel.sport)
sel               240 net/ipv6/mip6.c 		sel.sport_mask = htons(~0);
sel               241 net/ipv6/mip6.c 	sel.ifindex = fl6->flowi6_oif;
sel               243 net/ipv6/mip6.c 	err = km_report(net, IPPROTO_DSTOPTS, &sel,
sel               805 net/key/af_key.c 	if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr, x->props.family))
sel               948 net/key/af_key.c 	if (!xfrm_addr_equal(&x->sel.saddr, &x->props.saddr,
sel               957 net/key/af_key.c 			pfkey_proto_from_xfrm(x->sel.proto);
sel               958 net/key/af_key.c 		addr->sadb_address_prefixlen = x->sel.prefixlen_s;
sel               961 net/key/af_key.c 		pfkey_sockaddr_fill(&x->sel.saddr, x->sel.sport,
sel              1257 net/key/af_key.c 		x->sel.family = pfkey_sadb_addr2xfrm_addr(addr, &x->sel.saddr);
sel              1258 net/key/af_key.c 		x->sel.prefixlen_s = addr->sadb_address_prefixlen;
sel              1261 net/key/af_key.c 	if (!x->sel.family)
sel              1262 net/key/af_key.c 		x->sel.family = x->props.family;
sel              2358 net/key/af_key.c 	struct xfrm_selector sel;
sel              2372 net/key/af_key.c 	memset(&sel, 0, sizeof(sel));
sel              2375 net/key/af_key.c 	sel.family = pfkey_sadb_addr2xfrm_addr(sa, &sel.saddr);
sel              2376 net/key/af_key.c 	sel.prefixlen_s = sa->sadb_address_prefixlen;
sel              2377 net/key/af_key.c 	sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
sel              2378 net/key/af_key.c 	sel.sport = ((struct sockaddr_in *)(sa+1))->sin_port;
sel              2379 net/key/af_key.c 	if (sel.sport)
sel              2380 net/key/af_key.c 		sel.sport_mask = htons(0xffff);
sel              2383 net/key/af_key.c 	pfkey_sadb_addr2xfrm_addr(sa, &sel.daddr);
sel              2384 net/key/af_key.c 	sel.prefixlen_d = sa->sadb_address_prefixlen;
sel              2385 net/key/af_key.c 	sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
sel              2386 net/key/af_key.c 	sel.dport = ((struct sockaddr_in *)(sa+1))->sin_port;
sel              2387 net/key/af_key.c 	if (sel.dport)
sel              2388 net/key/af_key.c 		sel.dport_mask = htons(0xffff);
sel              2404 net/key/af_key.c 				   pol->sadb_x_policy_dir - 1, &sel, pol_ctx,
sel              2546 net/key/af_key.c 	struct xfrm_selector sel;
sel              2579 net/key/af_key.c 	memset(&sel, 0, sizeof(sel));
sel              2583 net/key/af_key.c 	sel.family = pfkey_sadb_addr2xfrm_addr(sa, &sel.saddr);
sel              2584 net/key/af_key.c 	sel.prefixlen_s = sa->sadb_address_prefixlen;
sel              2585 net/key/af_key.c 	sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
sel              2586 net/key/af_key.c 	sel.sport = ((struct sockaddr_in *)(sa + 1))->sin_port;
sel              2587 net/key/af_key.c 	if (sel.sport)
sel              2588 net/key/af_key.c 		sel.sport_mask = htons(0xffff);
sel              2592 net/key/af_key.c 	pfkey_sadb_addr2xfrm_addr(sa, &sel.daddr);
sel              2593 net/key/af_key.c 	sel.prefixlen_d = sa->sadb_address_prefixlen;
sel              2594 net/key/af_key.c 	sel.proto = pfkey_proto_to_xfrm(sa->sadb_address_proto);
sel              2595 net/key/af_key.c 	sel.dport = ((struct sockaddr_in *)(sa + 1))->sin_port;
sel              2596 net/key/af_key.c 	if (sel.dport)
sel              2597 net/key/af_key.c 		sel.dport_mask = htons(0xffff);
sel              2622 net/key/af_key.c 	return xfrm_migrate(&sel, dir, XFRM_POLICY_TYPE_MAIN, m, i,
sel              3439 net/key/af_key.c 			    const struct xfrm_selector *sel)
sel              3445 net/key/af_key.c 	addr->sadb_address_proto = sel->proto;
sel              3450 net/key/af_key.c 		addr->sadb_address_prefixlen = sel->prefixlen_s;
sel              3451 net/key/af_key.c 		pfkey_sockaddr_fill(&sel->saddr, 0,
sel              3453 net/key/af_key.c 				    sel->family);
sel              3456 net/key/af_key.c 		addr->sadb_address_prefixlen = sel->prefixlen_d;
sel              3457 net/key/af_key.c 		pfkey_sockaddr_fill(&sel->daddr, 0,
sel              3459 net/key/af_key.c 				    sel->family);
sel              3523 net/key/af_key.c static int pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel              3550 net/key/af_key.c 	sasize_sel = pfkey_sockaddr_size(sel->family);
sel              3590 net/key/af_key.c 	set_sadb_address(skb, sasize_sel, SADB_EXT_ADDRESS_SRC, sel);
sel              3593 net/key/af_key.c 	set_sadb_address(skb, sasize_sel, SADB_EXT_ADDRESS_DST, sel);
sel              3634 net/key/af_key.c static int pfkey_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel                66 net/sched/cls_u32.c 	struct tc_u32_sel	sel;
sel                95 net/sched/cls_u32.c 					 const struct tc_u32_sel *sel,
sel                98 net/sched/cls_u32.c 	unsigned int h = ntohl(key & sel->hmask) >> fshift;
sel               116 net/sched/cls_u32.c 	int sel = 0;
sel               123 net/sched/cls_u32.c 	n = rcu_dereference_bh(ht->ht[sel]);
sel               127 net/sched/cls_u32.c 		struct tc_u32_key *key = n->sel.keys;
sel               148 net/sched/cls_u32.c 		for (i = n->sel.nkeys; i > 0; i--, key++) {
sel               171 net/sched/cls_u32.c 			if (n->sel.flags & TC_U32_TERMINAL) {
sel               201 net/sched/cls_u32.c 		sel = 0;
sel               205 net/sched/cls_u32.c 			data = skb_header_pointer(skb, off + n->sel.hoff, 4,
sel               209 net/sched/cls_u32.c 			sel = ht->divisor & u32_hash_fold(*data, &n->sel,
sel               212 net/sched/cls_u32.c 		if (!(n->sel.flags & (TC_U32_VAROFFSET | TC_U32_OFFSET | TC_U32_EAT)))
sel               215 net/sched/cls_u32.c 		if (n->sel.flags & (TC_U32_OFFSET | TC_U32_VAROFFSET)) {
sel               216 net/sched/cls_u32.c 			off2 = n->sel.off + 3;
sel               217 net/sched/cls_u32.c 			if (n->sel.flags & TC_U32_VAROFFSET) {
sel               221 net/sched/cls_u32.c 							  off + n->sel.offoff,
sel               225 net/sched/cls_u32.c 				off2 += ntohs(n->sel.offmask & *data) >>
sel               226 net/sched/cls_u32.c 					n->sel.offshift;
sel               230 net/sched/cls_u32.c 		if (n->sel.flags & TC_U32_EAT) {
sel               269 net/sched/cls_u32.c 	unsigned int sel;
sel               272 net/sched/cls_u32.c 	sel = TC_U32_HASH(handle);
sel               273 net/sched/cls_u32.c 	if (sel > ht->divisor)
sel               276 net/sched/cls_u32.c 	for (n = rtnl_dereference(ht->ht[sel]);
sel               549 net/sched/cls_u32.c 	cls_u32.knode.sel = &n->sel;
sel               796 net/sched/cls_u32.c 	struct tc_u32_sel *s = &n->sel;
sel               833 net/sched/cls_u32.c 	memcpy(&new->sel, s, struct_size(s, keys, s->nkeys));
sel              1027 net/sched/cls_u32.c 	n = kzalloc(offsetof(typeof(*n), sel) + sel_size, GFP_KERNEL);
sel              1042 net/sched/cls_u32.c 	memcpy(&n->sel, s, sel_size);
sel              1195 net/sched/cls_u32.c 		cls_u32.knode.sel = &n->sel;
sel              1300 net/sched/cls_u32.c 			    sizeof(n->sel) + n->sel.nkeys*sizeof(struct tc_u32_key),
sel              1301 net/sched/cls_u32.c 			    &n->sel))
sel              1351 net/sched/cls_u32.c 			      n->sel.nkeys * sizeof(u64),
sel              1362 net/sched/cls_u32.c 			for (i = 0; i < n->sel.nkeys; i++)
sel              1368 net/sched/cls_u32.c 				  n->sel.nkeys * sizeof(u64),
sel               177 net/tipc/node.c static struct tipc_link *node_active_link(struct tipc_node *n, int sel)
sel               179 net/tipc/node.c 	int bearer_id = n->active_links[sel & 1];
sel               187 net/tipc/node.c int tipc_node_get_mtu(struct net *net, u32 addr, u32 sel)
sel               197 net/tipc/node.c 	bearer_id = n->active_links[sel & 1];
sel                95 net/tipc/node.h int tipc_node_get_mtu(struct net *net, u32 addr, u32 sel);
sel               139 net/xfrm/xfrm_hash.h static inline unsigned int __sel_hash(const struct xfrm_selector *sel,
sel               143 net/xfrm/xfrm_hash.h 	const xfrm_address_t *daddr = &sel->daddr;
sel               144 net/xfrm/xfrm_hash.h 	const xfrm_address_t *saddr = &sel->saddr;
sel               149 net/xfrm/xfrm_hash.h 		if (sel->prefixlen_d < dbits ||
sel               150 net/xfrm/xfrm_hash.h 		    sel->prefixlen_s < sbits)
sel               157 net/xfrm/xfrm_hash.h 		if (sel->prefixlen_d < dbits ||
sel               158 net/xfrm/xfrm_hash.h 		    sel->prefixlen_s < sbits)
sel               208 net/xfrm/xfrm_input.c 	iph->daddr = x->sel.daddr.a4;
sel               209 net/xfrm/xfrm_input.c 	iph->saddr = x->sel.saddr.a4;
sel               311 net/xfrm/xfrm_input.c 	ip6h->daddr = x->sel.daddr.in6;
sel               312 net/xfrm/xfrm_input.c 	ip6h->saddr = x->sel.saddr.in6;
sel               367 net/xfrm/xfrm_input.c 	if (x->sel.family == AF_UNSPEC) {
sel               675 net/xfrm/xfrm_input.c 		if (x->sel.family == AF_UNSPEC) {
sel               233 net/xfrm/xfrm_interface.c 		if (x->sel.family == AF_UNSPEC) {
sel               155 net/xfrm/xfrm_output.c 	if (x->sel.family != AF_INET6)
sel               283 net/xfrm/xfrm_output.c 	if (x->sel.family != AF_INET6)
sel               623 net/xfrm/xfrm_output.c 	if (x->sel.family == AF_UNSPEC)
sel               194 net/xfrm/xfrm_policy.c __xfrm4_selector_match(const struct xfrm_selector *sel, const struct flowi *fl)
sel               198 net/xfrm/xfrm_policy.c 	return  addr4_match(fl4->daddr, sel->daddr.a4, sel->prefixlen_d) &&
sel               199 net/xfrm/xfrm_policy.c 		addr4_match(fl4->saddr, sel->saddr.a4, sel->prefixlen_s) &&
sel               200 net/xfrm/xfrm_policy.c 		!((xfrm_flowi_dport(fl, &fl4->uli) ^ sel->dport) & sel->dport_mask) &&
sel               201 net/xfrm/xfrm_policy.c 		!((xfrm_flowi_sport(fl, &fl4->uli) ^ sel->sport) & sel->sport_mask) &&
sel               202 net/xfrm/xfrm_policy.c 		(fl4->flowi4_proto == sel->proto || !sel->proto) &&
sel               203 net/xfrm/xfrm_policy.c 		(fl4->flowi4_oif == sel->ifindex || !sel->ifindex);
sel               207 net/xfrm/xfrm_policy.c __xfrm6_selector_match(const struct xfrm_selector *sel, const struct flowi *fl)
sel               211 net/xfrm/xfrm_policy.c 	return  addr_match(&fl6->daddr, &sel->daddr, sel->prefixlen_d) &&
sel               212 net/xfrm/xfrm_policy.c 		addr_match(&fl6->saddr, &sel->saddr, sel->prefixlen_s) &&
sel               213 net/xfrm/xfrm_policy.c 		!((xfrm_flowi_dport(fl, &fl6->uli) ^ sel->dport) & sel->dport_mask) &&
sel               214 net/xfrm/xfrm_policy.c 		!((xfrm_flowi_sport(fl, &fl6->uli) ^ sel->sport) & sel->sport_mask) &&
sel               215 net/xfrm/xfrm_policy.c 		(fl6->flowi6_proto == sel->proto || !sel->proto) &&
sel               216 net/xfrm/xfrm_policy.c 		(fl6->flowi6_oif == sel->ifindex || !sel->ifindex);
sel               219 net/xfrm/xfrm_policy.c bool xfrm_selector_match(const struct xfrm_selector *sel, const struct flowi *fl,
sel               224 net/xfrm/xfrm_policy.c 		return __xfrm4_selector_match(sel, fl);
sel               226 net/xfrm/xfrm_policy.c 		return __xfrm6_selector_match(sel, fl);
sel               480 net/xfrm/xfrm_policy.c 					    const struct xfrm_selector *sel,
sel               489 net/xfrm/xfrm_policy.c 	hash = __sel_hash(sel, family, hmask, dbits, sbits);
sel              1612 net/xfrm/xfrm_policy.c 			struct xfrm_selector *sel,
sel              1624 net/xfrm/xfrm_policy.c 		    !selector_cmp(sel, &pol->selector) &&
sel              1634 net/xfrm/xfrm_policy.c 					  struct xfrm_selector *sel,
sel              1644 net/xfrm/xfrm_policy.c 	chain = policy_hash_bysel(net, sel, sel->family, dir);
sel              1650 net/xfrm/xfrm_policy.c 						 sel->family, dir, if_id);
sel              1657 net/xfrm/xfrm_policy.c 							 &sel->saddr,
sel              1658 net/xfrm/xfrm_policy.c 							 &sel->daddr)) {
sel              1669 net/xfrm/xfrm_policy.c 						      sel, ctx);
sel              1678 net/xfrm/xfrm_policy.c 					      sel, ctx);
sel              1887 net/xfrm/xfrm_policy.c 	const struct xfrm_selector *sel = &pol->selector;
sel              1897 net/xfrm/xfrm_policy.c 	match = xfrm_selector_match(sel, fl, family);
sel              2577 net/xfrm/xfrm_policy.c 		if (xfrm[i]->sel.family == AF_UNSPEC) {
sel              3548 net/xfrm/xfrm_policy.c 			if (!xfrm_selector_match(&x->sel, &fl, family)) {
sel              4166 net/xfrm/xfrm_policy.c 	struct xfrm_selector *sel = &xp->selector;
sel              4172 net/xfrm/xfrm_policy.c 	switch (sel->family) {
sel              4174 net/xfrm/xfrm_policy.c 		audit_log_format(audit_buf, " src=%pI4", &sel->saddr.a4);
sel              4175 net/xfrm/xfrm_policy.c 		if (sel->prefixlen_s != 32)
sel              4177 net/xfrm/xfrm_policy.c 					 sel->prefixlen_s);
sel              4178 net/xfrm/xfrm_policy.c 		audit_log_format(audit_buf, " dst=%pI4", &sel->daddr.a4);
sel              4179 net/xfrm/xfrm_policy.c 		if (sel->prefixlen_d != 32)
sel              4181 net/xfrm/xfrm_policy.c 					 sel->prefixlen_d);
sel              4184 net/xfrm/xfrm_policy.c 		audit_log_format(audit_buf, " src=%pI6", sel->saddr.a6);
sel              4185 net/xfrm/xfrm_policy.c 		if (sel->prefixlen_s != 128)
sel              4187 net/xfrm/xfrm_policy.c 					 sel->prefixlen_s);
sel              4188 net/xfrm/xfrm_policy.c 		audit_log_format(audit_buf, " dst=%pI6", sel->daddr.a6);
sel              4189 net/xfrm/xfrm_policy.c 		if (sel->prefixlen_d != 128)
sel              4191 net/xfrm/xfrm_policy.c 					 sel->prefixlen_d);
sel              4248 net/xfrm/xfrm_policy.c static struct xfrm_policy *xfrm_migrate_policy_find(const struct xfrm_selector *sel,
sel              4256 net/xfrm/xfrm_policy.c 	chain = policy_hash_direct(net, &sel->daddr, &sel->saddr, sel->family, dir);
sel              4258 net/xfrm/xfrm_policy.c 		if (xfrm_migrate_selector_match(sel, &pol->selector) &&
sel              4270 net/xfrm/xfrm_policy.c 		if (xfrm_migrate_selector_match(sel, &pol->selector) &&
sel              4383 net/xfrm/xfrm_policy.c int xfrm_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel              4405 net/xfrm/xfrm_policy.c 	if ((pol = xfrm_migrate_policy_find(sel, dir, type, net)) == NULL) {
sel              4437 net/xfrm/xfrm_policy.c 	km_migrate(sel, dir, type, m, num_migrate, k, encap);
sel               852 net/xfrm/xfrm_state.c __xfrm4_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl)
sel               856 net/xfrm/xfrm_state.c 	sel->daddr.a4 = fl4->daddr;
sel               857 net/xfrm/xfrm_state.c 	sel->saddr.a4 = fl4->saddr;
sel               858 net/xfrm/xfrm_state.c 	sel->dport = xfrm_flowi_dport(fl, &fl4->uli);
sel               859 net/xfrm/xfrm_state.c 	sel->dport_mask = htons(0xffff);
sel               860 net/xfrm/xfrm_state.c 	sel->sport = xfrm_flowi_sport(fl, &fl4->uli);
sel               861 net/xfrm/xfrm_state.c 	sel->sport_mask = htons(0xffff);
sel               862 net/xfrm/xfrm_state.c 	sel->family = AF_INET;
sel               863 net/xfrm/xfrm_state.c 	sel->prefixlen_d = 32;
sel               864 net/xfrm/xfrm_state.c 	sel->prefixlen_s = 32;
sel               865 net/xfrm/xfrm_state.c 	sel->proto = fl4->flowi4_proto;
sel               866 net/xfrm/xfrm_state.c 	sel->ifindex = fl4->flowi4_oif;
sel               870 net/xfrm/xfrm_state.c __xfrm6_init_tempsel(struct xfrm_selector *sel, const struct flowi *fl)
sel               875 net/xfrm/xfrm_state.c 	*(struct in6_addr *)&sel->daddr = fl6->daddr;
sel               876 net/xfrm/xfrm_state.c 	*(struct in6_addr *)&sel->saddr = fl6->saddr;
sel               877 net/xfrm/xfrm_state.c 	sel->dport = xfrm_flowi_dport(fl, &fl6->uli);
sel               878 net/xfrm/xfrm_state.c 	sel->dport_mask = htons(0xffff);
sel               879 net/xfrm/xfrm_state.c 	sel->sport = xfrm_flowi_sport(fl, &fl6->uli);
sel               880 net/xfrm/xfrm_state.c 	sel->sport_mask = htons(0xffff);
sel               881 net/xfrm/xfrm_state.c 	sel->family = AF_INET6;
sel               882 net/xfrm/xfrm_state.c 	sel->prefixlen_d = 128;
sel               883 net/xfrm/xfrm_state.c 	sel->prefixlen_s = 128;
sel               884 net/xfrm/xfrm_state.c 	sel->proto = fl6->flowi6_proto;
sel               885 net/xfrm/xfrm_state.c 	sel->ifindex = fl6->flowi6_oif;
sel               896 net/xfrm/xfrm_state.c 		__xfrm4_init_tempsel(&x->sel, fl);
sel               899 net/xfrm/xfrm_state.c 		__xfrm6_init_tempsel(&x->sel, fl);
sel               915 net/xfrm/xfrm_state.c 			memcpy(&x->id.daddr, daddr, sizeof(x->sel.daddr));
sel              1018 net/xfrm/xfrm_state.c 		if ((x->sel.family &&
sel              1019 net/xfrm/xfrm_state.c 		     !xfrm_selector_match(&x->sel, fl, x->sel.family)) ||
sel              1032 net/xfrm/xfrm_state.c 		if (xfrm_selector_match(&x->sel, fl, x->sel.family) &&
sel              1338 net/xfrm/xfrm_state.c 			x->sel.daddr.a4 = daddr->a4;
sel              1339 net/xfrm/xfrm_state.c 			x->sel.saddr.a4 = saddr->a4;
sel              1340 net/xfrm/xfrm_state.c 			x->sel.prefixlen_d = 32;
sel              1341 net/xfrm/xfrm_state.c 			x->sel.prefixlen_s = 32;
sel              1347 net/xfrm/xfrm_state.c 			x->sel.daddr.in6 = daddr->in6;
sel              1348 net/xfrm/xfrm_state.c 			x->sel.saddr.in6 = saddr->in6;
sel              1349 net/xfrm/xfrm_state.c 			x->sel.prefixlen_d = 128;
sel              1350 net/xfrm/xfrm_state.c 			x->sel.prefixlen_s = 128;
sel              1450 net/xfrm/xfrm_state.c 	memcpy(&x->sel, &orig->sel, sizeof(x->sel));
sel              1668 net/xfrm/xfrm_state.c 		if (!use_spi && memcmp(&x1->sel, &x->sel, sizeof(x1->sel)))
sel              1669 net/xfrm/xfrm_state.c 			memcpy(&x1->sel, &x->sel, sizeof(x1->sel));
sel              2204 net/xfrm/xfrm_state.c int km_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel              2216 net/xfrm/xfrm_state.c 			ret = km->migrate(sel, dir, type, m, num_migrate, k,
sel              2228 net/xfrm/xfrm_state.c int km_report(struct net *net, u8 proto, struct xfrm_selector *sel, xfrm_address_t *addr)
sel              2237 net/xfrm/xfrm_state.c 			ret = km->report(net, proto, sel, addr);
sel              2456 net/xfrm/xfrm_state.c 	if (x->sel.family != AF_UNSPEC) {
sel              2457 net/xfrm/xfrm_state.c 		inner_mode = xfrm_get_mode(x->props.mode, x->sel.family);
sel              2462 net/xfrm/xfrm_state.c 		    family != x->sel.family)
sel               170 net/xfrm/xfrm_user.c 	switch (p->sel.family) {
sel               175 net/xfrm/xfrm_user.c 		if (p->sel.prefixlen_d > 32 || p->sel.prefixlen_s > 32)
sel               182 net/xfrm/xfrm_user.c 		if (p->sel.prefixlen_d > 128 || p->sel.prefixlen_s > 128)
sel               497 net/xfrm/xfrm_user.c 	memcpy(&x->sel, &p->sel, sizeof(x->sel));
sel               507 net/xfrm/xfrm_user.c 	if (!x->sel.family && !(p->flags & XFRM_STATE_AF_UNSPEC))
sel               508 net/xfrm/xfrm_user.c 		x->sel.family = p->family;
sel               791 net/xfrm/xfrm_user.c 	memcpy(&p->sel, &x->sel, sizeof(p->sel));
sel              1424 net/xfrm/xfrm_user.c 	switch (p->sel.family) {
sel              1426 net/xfrm/xfrm_user.c 		if (p->sel.prefixlen_d > 32 || p->sel.prefixlen_s > 32)
sel              1433 net/xfrm/xfrm_user.c 		if (p->sel.prefixlen_d > 128 || p->sel.prefixlen_s > 128)
sel              1588 net/xfrm/xfrm_user.c 	memcpy(&xp->selector, &p->sel, sizeof(xp->selector));
sel              1592 net/xfrm/xfrm_user.c 	xp->family = p->sel.family;
sel              1599 net/xfrm/xfrm_user.c 	memcpy(&p->sel, &xp->selector, sizeof(p->sel));
sel              1604 net/xfrm/xfrm_user.c 	p->sel.family = xp->family;
sel              1901 net/xfrm/xfrm_user.c 		xp = xfrm_policy_bysel_ctx(net, mark, if_id, type, p->dir, &p->sel,
sel              2202 net/xfrm/xfrm_user.c 					   &p->sel, ctx, 0, &err);
sel              2290 net/xfrm/xfrm_user.c 	memcpy(&x->sel, &ua->sel, sizeof(ua->sel));
sel              2397 net/xfrm/xfrm_user.c 	err = xfrm_migrate(&pi->sel, pi->dir, type, m, n, kmp, net, encap);
sel              2455 net/xfrm/xfrm_user.c 			 const struct xfrm_selector *sel,
sel              2470 net/xfrm/xfrm_user.c 	memcpy(&pol_id->sel, sel, sizeof(pol_id->sel));
sel              2500 net/xfrm/xfrm_user.c static int xfrm_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel              2515 net/xfrm/xfrm_user.c 	err = build_migrate(skb, m, num_migrate, k, sel, encap, dir, type);
sel              2521 net/xfrm/xfrm_user.c static int xfrm_send_migrate(const struct xfrm_selector *sel, u8 dir, u8 type,
sel              2937 net/xfrm/xfrm_user.c 	memcpy(&ua->sel, &x->sel, sizeof(ua->sel));
sel              3018 net/xfrm/xfrm_user.c 	if (validate_tmpl(nr, ut, p->sel.family))
sel              3136 net/xfrm/xfrm_user.c 			memcpy(&id->sel, &xp->selector, sizeof(id->sel));
sel              3221 net/xfrm/xfrm_user.c 			struct xfrm_selector *sel, xfrm_address_t *addr)
sel              3232 net/xfrm/xfrm_user.c 	memcpy(&ur->sel, sel, sizeof(ur->sel));
sel              3246 net/xfrm/xfrm_user.c 			    struct xfrm_selector *sel, xfrm_address_t *addr)
sel              3255 net/xfrm/xfrm_user.c 	err = build_report(skb, proto, sel, addr);
sel               225 scripts/kconfig/gconf.c 	GtkTreeSelection *sel;
sel               254 scripts/kconfig/gconf.c 	sel = gtk_tree_view_get_selection(view);
sel               255 scripts/kconfig/gconf.c 	gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE);
sel               267 scripts/kconfig/gconf.c 	GtkTreeSelection *sel;
sel               357 scripts/kconfig/gconf.c 	sel = gtk_tree_view_get_selection(view);
sel               358 scripts/kconfig/gconf.c 	gtk_tree_selection_set_mode(sel, GTK_SELECTION_SINGLE);
sel              5307 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5310 sound/pci/hda/patch_ca0132.c 	if (sel >= items)
sel              5314 sound/pci/hda/patch_ca0132.c 		    sel);
sel              5316 sound/pci/hda/patch_ca0132.c 	spec->mic_boost_enum_val = sel;
sel              5361 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5364 sound/pci/hda/patch_ca0132.c 	if (sel >= items)
sel              5368 sound/pci/hda/patch_ca0132.c 		    sel);
sel              5370 sound/pci/hda/patch_ca0132.c 	spec->ae5_headphone_gain_val = sel;
sel              5414 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5417 sound/pci/hda/patch_ca0132.c 	if (sel >= items)
sel              5421 sound/pci/hda/patch_ca0132.c 			ae5_filter_presets[sel].name);
sel              5423 sound/pci/hda/patch_ca0132.c 	spec->ae5_filter_val = sel;
sel              5426 sound/pci/hda/patch_ca0132.c 			ae5_filter_presets[sel].val);
sel              5464 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5467 sound/pci/hda/patch_ca0132.c 	if (sel >= items)
sel              5471 sound/pci/hda/patch_ca0132.c 		    sel, in_src_str[sel]);
sel              5473 sound/pci/hda/patch_ca0132.c 	spec->in_enum_val = sel;
sel              5509 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5513 sound/pci/hda/patch_ca0132.c 	if (sel >= items)
sel              5517 sound/pci/hda/patch_ca0132.c 		    sel, alt_out_presets[sel].name);
sel              5519 sound/pci/hda/patch_ca0132.c 	spec->out_enum_val = sel;
sel              5565 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5570 sound/pci/hda/patch_ca0132.c 	if (sel >= items)
sel              5574 sound/pci/hda/patch_ca0132.c 		    sel, out_svm_set_enum_str[sel]);
sel              5576 sound/pci/hda/patch_ca0132.c 	spec->smart_volume_setting = sel;
sel              5578 sound/pci/hda/patch_ca0132.c 	switch (sel) {
sel              5630 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5633 sound/pci/hda/patch_ca0132.c 	if (sel >= items)
sel              5636 sound/pci/hda/patch_ca0132.c 	codec_dbg(codec, "%s: sel=%d, preset=%s\n", __func__, sel,
sel              5637 sound/pci/hda/patch_ca0132.c 			ca0132_alt_eq_presets[sel].name);
sel              5645 sound/pci/hda/patch_ca0132.c 				ca0132_alt_eq_presets[sel].vals[i]);
sel              5651 sound/pci/hda/patch_ca0132.c 		spec->eq_preset_val = sel;
sel              5687 sound/pci/hda/patch_ca0132.c 	int sel = ucontrol->value.enumerated.item[0];
sel              5689 sound/pci/hda/patch_ca0132.c 	if (sel >= ARRAY_SIZE(ca0132_voicefx_presets))
sel              5693 sound/pci/hda/patch_ca0132.c 		    sel, ca0132_voicefx_presets[sel].name);
sel              5702 sound/pci/hda/patch_ca0132.c 				ca0132_voicefx_presets[sel].vals[i]);
sel              5708 sound/pci/hda/patch_ca0132.c 		spec->voicefx_val = sel;
sel              5710 sound/pci/hda/patch_ca0132.c 		ca0132_voicefx_set(codec, (sel ? 1 : 0));
sel               355 sound/pci/ice1712/maya44.c 	int sel;
sel               358 sound/pci/ice1712/maya44.c 		sel = 1;
sel               360 sound/pci/ice1712/maya44.c 		sel = 0;
sel               361 sound/pci/ice1712/maya44.c 	ucontrol->value.enumerated.item[0] = sel;
sel               369 sound/pci/ice1712/maya44.c 	int sel = ucontrol->value.enumerated.item[0];
sel               374 sound/pci/ice1712/maya44.c 				     sel ? (1 << GPIO_MIC_RELAY) : 0);
sel               375 sound/pci/ice1712/maya44.c 	wm8776_select_input(chip, 0, sel ? MAYA_MIC_IN : MAYA_LINE_IN);
sel               246 sound/pci/ice1712/se.c 					       unsigned int sel)
sel               252 sound/pci/ice1712/se.c 	if (sel > 4)
sel               253 sound/pci/ice1712/se.c 		sel = 4;
sel               254 sound/pci/ice1712/se.c 	se200pci_WM8776_write(ice, 0x15, vals[sel]);
sel               367 sound/soc/au1x/psc-ac97.c 	unsigned long sel;
sel               396 sound/soc/au1x/psc-ac97.c 	sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK;
sel               401 sound/soc/au1x/psc-ac97.c 	__raw_writel(PSC_SEL_PS_AC97MODE | sel, PSC_SEL(wd));
sel               295 sound/soc/au1x/psc-i2s.c 	unsigned long sel;
sel               320 sound/soc/au1x/psc-i2s.c 	sel = __raw_readl(PSC_SEL(wd)) & PSC_SEL_CLK_MASK;
sel               323 sound/soc/au1x/psc-i2s.c 	__raw_writel(PSC_SEL_PS_I2SMODE | sel, PSC_SEL(wd));
sel               718 sound/soc/bcm/cygnus-ssp.c 	int sel;
sel               725 sound/soc/bcm/cygnus-ssp.c 	sel = pll_configure_mclk(cygaud, freq, aio);
sel               726 sound/soc/bcm/cygnus-ssp.c 	if (sel < 0) {
sel               734 sound/soc/bcm/cygnus-ssp.c 	dev_dbg(aio->cygaud->dev, "%s Setting MCLKSEL to %d\n", __func__, sel);
sel               737 sound/soc/bcm/cygnus-ssp.c 	value |= (sel << I2S_OUT_PLLCLKSEL_SHIFT);
sel               334 sound/soc/codecs/da732x.c 	unsigned int sel = ucontrol->value.enumerated.item[0];
sel               337 sound/soc/codecs/da732x.c 	switch (sel) {
sel               384 sound/soc/codecs/max98088.c        unsigned int sel = ucontrol->value.integer.value[0];
sel               386 sound/soc/codecs/max98088.c        max98088->mic1pre = sel;
sel               388 sound/soc/codecs/max98088.c                (1+sel)<<M98088_MICPRE_SHIFT);
sel               408 sound/soc/codecs/max98088.c        unsigned int sel = ucontrol->value.integer.value[0];
sel               410 sound/soc/codecs/max98088.c        max98088->mic2pre = sel;
sel               412 sound/soc/codecs/max98088.c                (1+sel)<<M98088_MICPRE_SHIFT);
sel              1416 sound/soc/codecs/max98088.c        int best, best_val, save, i, sel, fs;
sel              1426 sound/soc/codecs/max98088.c        sel = cdata->eq_sel;
sel              1431 sound/soc/codecs/max98088.c                if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 &&
sel              1446 sound/soc/codecs/max98088.c        coef_set = &pdata->eq_cfg[sel];
sel              1463 sound/soc/codecs/max98088.c        int best, best_val, save, i, sel, fs;
sel              1474 sound/soc/codecs/max98088.c        sel = cdata->eq_sel;
sel              1478 sound/soc/codecs/max98088.c                if (strcmp(pdata->eq_cfg[i].name, max98088->eq_texts[sel]) == 0 &&
sel              1493 sound/soc/codecs/max98088.c        coef_set = &pdata->eq_cfg[sel];
sel              1514 sound/soc/codecs/max98088.c 	int sel = ucontrol->value.enumerated.item[0];
sel              1521 sound/soc/codecs/max98088.c        if (sel >= pdata->eq_cfgcnt)
sel              1524 sound/soc/codecs/max98088.c        cdata->eq_sel = sel;
sel               396 sound/soc/codecs/max98090.c 	unsigned int sel = ucontrol->value.integer.value[0];
sel               416 sound/soc/codecs/max98090.c 	*select = sel;
sel               420 sound/soc/codecs/max98090.c 		sel = sel + 1;
sel               423 sound/soc/codecs/max98090.c 		sel = val;
sel               428 sound/soc/codecs/max98090.c 		sel << mc->shift);
sel               355 sound/soc/codecs/max98095.c 	unsigned int sel = ucontrol->value.integer.value[0];
sel               357 sound/soc/codecs/max98095.c 	max98095->mic1pre = sel;
sel               359 sound/soc/codecs/max98095.c 		(1+sel)<<M98095_MICPRE_SHIFT);
sel               379 sound/soc/codecs/max98095.c 	unsigned int sel = ucontrol->value.integer.value[0];
sel               381 sound/soc/codecs/max98095.c 	max98095->mic2pre = sel;
sel               383 sound/soc/codecs/max98095.c 		(1+sel)<<M98095_MICPRE_SHIFT);
sel              1499 sound/soc/codecs/max98095.c 	unsigned int sel = ucontrol->value.enumerated.item[0];
sel              1510 sound/soc/codecs/max98095.c 	if (sel >= pdata->eq_cfgcnt)
sel              1514 sound/soc/codecs/max98095.c 	cdata->eq_sel = sel;
sel              1521 sound/soc/codecs/max98095.c 		if (strcmp(pdata->eq_cfg[i].name, max98095->eq_texts[sel]) == 0 &&
sel              1650 sound/soc/codecs/max98095.c 	unsigned int sel = ucontrol->value.enumerated.item[0];
sel              1661 sound/soc/codecs/max98095.c 	if (sel >= pdata->bq_cfgcnt)
sel              1665 sound/soc/codecs/max98095.c 	cdata->bq_sel = sel;
sel              1672 sound/soc/codecs/max98095.c 		if (strcmp(pdata->bq_cfg[i].name, max98095->bq_texts[sel]) == 0 &&
sel               524 sound/soc/codecs/tas5720.c 	unsigned int sel = ucontrol->value.integer.value[0];
sel               526 sound/soc/codecs/tas5720.c 	snd_soc_component_write(component, TAS5720_VOLUME_CTRL_REG, sel >> 1);
sel               528 sound/soc/codecs/tas5720.c 				      TAS5722_VOL_CONTROL_LSB, sel);
sel              1477 sound/soc/codecs/wcd9335.c 	unsigned int val, reg, sel;
sel              1514 sound/soc/codecs/wcd9335.c 	sel = val ? WCD9335_CDC_TX_ADC_AMIC_SEL : WCD9335_CDC_TX_ADC_DMIC_SEL;
sel              1517 sound/soc/codecs/wcd9335.c 				      sel);
sel              2192 sound/soc/codecs/wcd9335.c 	int sel;
sel              2195 sound/soc/codecs/wcd9335.c 	sel = value ? WCD9335_HPH_GAIN_SRC_SEL_COMPANDER :
sel              2203 sound/soc/codecs/wcd9335.c 				      WCD9335_HPH_GAIN_SRC_SEL_MASK, sel);
sel              2207 sound/soc/codecs/wcd9335.c 				      WCD9335_HPH_GAIN_SRC_SEL_MASK, sel);
sel              2211 sound/soc/codecs/wcd9335.c 				      WCD9335_HPH_GAIN_SRC_SEL_MASK, sel);
sel              2215 sound/soc/codecs/wcd9335.c 				      WCD9335_HPH_GAIN_SRC_SEL_MASK, sel);
sel               755 sound/soc/codecs/wm8580.c 	int ret, sel, sel_mask, sel_shift;
sel               777 sound/soc/codecs/wm8580.c 		sel = 0 << sel_shift;
sel               780 sound/soc/codecs/wm8580.c 		sel = 1 << sel_shift;
sel               783 sound/soc/codecs/wm8580.c 		sel = 2 << sel_shift;
sel               786 sound/soc/codecs/wm8580.c 		sel = 3 << sel_shift;
sel               796 sound/soc/codecs/wm8580.c 	ret = snd_soc_component_update_bits(component, WM8580_CLKSEL, sel_mask, sel);
sel               114 sound/soc/sh/rcar/adg.c 	int idx, sel, div, step;
sel               128 sound/soc/sh/rcar/adg.c 	for (sel = 0; sel < ARRAY_SIZE(sel_rate); sel++) {
sel               132 sound/soc/sh/rcar/adg.c 		if (!sel_rate[sel])
sel               136 sound/soc/sh/rcar/adg.c 			diff = abs(target_rate - sel_rate[sel] / div);
sel               138 sound/soc/sh/rcar/adg.c 				val = (sel << 8) | idx;
sel               140 sound/soc/sh/rcar/adg.c 				en = 1 << (sel + 1); /* fixme */
sel                30 tools/testing/selftests/bpf/test_progs.c static bool should_run(struct test_selector *sel, int num, const char *name)
sel                32 tools/testing/selftests/bpf/test_progs.c 	if (sel->name && sel->name[0] && !strstr(name, sel->name))
sel                35 tools/testing/selftests/bpf/test_progs.c 	if (!sel->num_set)
sel                38 tools/testing/selftests/bpf/test_progs.c 	return num < sel->num_set_len && sel->num_set[num];
sel               362 tools/testing/selftests/bpf/test_progs.c int parse_num_list(const char *s, struct test_selector *sel)
sel               416 tools/testing/selftests/bpf/test_progs.c 	sel->num_set = set;
sel               417 tools/testing/selftests/bpf/test_progs.c 	sel->num_set_len = set_len;
sel               162 tools/testing/selftests/x86/fsgsbase.c 	unsigned short sel;
sel               168 tools/testing/selftests/x86/fsgsbase.c 	asm volatile ("mov %%gs, %0" : "=rm" (sel));
sel               172 tools/testing/selftests/x86/fsgsbase.c 		       sel);
sel               176 tools/testing/selftests/x86/fsgsbase.c 		       base, sel);
sel               183 tools/testing/selftests/x86/fsgsbase.c 		       sel);
sel               187 tools/testing/selftests/x86/fsgsbase.c 		       base, sel);
sel               239 tools/testing/selftests/x86/fsgsbase.c 	unsigned short sel;
sel               240 tools/testing/selftests/x86/fsgsbase.c 	asm volatile ("mov %%gs, %0" : "=rm" (sel));
sel               242 tools/testing/selftests/x86/fsgsbase.c 	       to_set, hard_zero ? " and clear gs" : "", sel);
sel               555 tools/testing/selftests/x86/fsgsbase.c 				unsigned short sel = s;
sel               557 tools/testing/selftests/x86/fsgsbase.c 					asm ("mov %%ss, %0" : "=rm" (sel));
sel               560 tools/testing/selftests/x86/fsgsbase.c 					sel,
sel               733 tools/testing/selftests/x86/ldt_gdt.c 	unsigned short sel;
sel               744 tools/testing/selftests/x86/ldt_gdt.c 	sel = (gdt_entry_num << 3) | 3;
sel               757 tools/testing/selftests/x86/ldt_gdt.c 		      : [prev_sel] "=&r" (prev_sel), [sel] "+r" (sel),
sel               763 tools/testing/selftests/x86/ldt_gdt.c 	if (sel != 0) {
sel               770 tools/testing/selftests/x86/ldt_gdt.c 	       result, sel);
sel               775 tools/testing/selftests/x86/ldt_gdt.c 	sel = (gdt_entry_num << 3) | 3;
sel               788 tools/testing/selftests/x86/ldt_gdt.c 		      : [prev_sel] "=&r" (prev_sel), [sel] "+r" (sel),
sel               794 tools/testing/selftests/x86/ldt_gdt.c 	if (sel != 0) {
sel               801 tools/testing/selftests/x86/ldt_gdt.c 	       result, sel);
sel               806 tools/testing/selftests/x86/ldt_gdt.c 	sel = (gdt_entry_num << 3) | 3;
sel               821 tools/testing/selftests/x86/ldt_gdt.c 		      : [prev_sel] "=&r" (prev_sel), [sel] "+r" (sel),
sel               838 tools/testing/selftests/x86/ldt_gdt.c 	if (sel != 0) {
sel               845 tools/testing/selftests/x86/ldt_gdt.c 	       result, sel);
sel               848 tools/testing/selftests/x86/ldt_gdt.c 	if (sel == 0 && new_base != 0) {
sel               859 tools/testing/selftests/x86/ldt_gdt.c 	sel = (gdt_entry_num << 3) | 3;
sel               874 tools/testing/selftests/x86/ldt_gdt.c 		      : [prev_sel] "=&r" (prev_sel), [sel] "+r" (sel),
sel               891 tools/testing/selftests/x86/ldt_gdt.c 	if (sel != 0) {
sel               898 tools/testing/selftests/x86/ldt_gdt.c 	       result, sel);
sel               901 tools/testing/selftests/x86/ldt_gdt.c 	if (sel == 0 && new_base != 0) {