nr                 26 arch/alpha/boot/bootp.c extern unsigned long switch_to_osf_pal(unsigned long nr,
nr                 45 arch/alpha/boot/bootpz.c extern unsigned long switch_to_osf_pal(unsigned long nr,
nr                 23 arch/alpha/boot/main.c extern unsigned long switch_to_osf_pal(unsigned long nr,
nr                 29 arch/alpha/include/asm/bitops.h set_bit(unsigned long nr, volatile void * addr)
nr                 32 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                 43 arch/alpha/include/asm/bitops.h 	:"Ir" (1UL << (nr & 31)), "m" (*m));
nr                 50 arch/alpha/include/asm/bitops.h __set_bit(unsigned long nr, volatile void * addr)
nr                 52 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                 54 arch/alpha/include/asm/bitops.h 	*m |= 1 << (nr & 31);
nr                 58 arch/alpha/include/asm/bitops.h clear_bit(unsigned long nr, volatile void * addr)
nr                 61 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                 72 arch/alpha/include/asm/bitops.h 	:"Ir" (1UL << (nr & 31)), "m" (*m));
nr                 76 arch/alpha/include/asm/bitops.h clear_bit_unlock(unsigned long nr, volatile void * addr)
nr                 79 arch/alpha/include/asm/bitops.h 	clear_bit(nr, addr);
nr                 86 arch/alpha/include/asm/bitops.h __clear_bit(unsigned long nr, volatile void * addr)
nr                 88 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                 90 arch/alpha/include/asm/bitops.h 	*m &= ~(1 << (nr & 31));
nr                 94 arch/alpha/include/asm/bitops.h __clear_bit_unlock(unsigned long nr, volatile void * addr)
nr                 97 arch/alpha/include/asm/bitops.h 	__clear_bit(nr, addr);
nr                101 arch/alpha/include/asm/bitops.h change_bit(unsigned long nr, volatile void * addr)
nr                104 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                115 arch/alpha/include/asm/bitops.h 	:"Ir" (1UL << (nr & 31)), "m" (*m));
nr                122 arch/alpha/include/asm/bitops.h __change_bit(unsigned long nr, volatile void * addr)
nr                124 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                126 arch/alpha/include/asm/bitops.h 	*m ^= 1 << (nr & 31);
nr                130 arch/alpha/include/asm/bitops.h test_and_set_bit(unsigned long nr, volatile void *addr)
nr                134 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                154 arch/alpha/include/asm/bitops.h 	:"Ir" (1UL << (nr & 31)), "m" (*m) : "memory");
nr                160 arch/alpha/include/asm/bitops.h test_and_set_bit_lock(unsigned long nr, volatile void *addr)
nr                164 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                181 arch/alpha/include/asm/bitops.h 	:"Ir" (1UL << (nr & 31)), "m" (*m) : "memory");
nr                190 arch/alpha/include/asm/bitops.h __test_and_set_bit(unsigned long nr, volatile void * addr)
nr                192 arch/alpha/include/asm/bitops.h 	unsigned long mask = 1 << (nr & 0x1f);
nr                193 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                201 arch/alpha/include/asm/bitops.h test_and_clear_bit(unsigned long nr, volatile void * addr)
nr                205 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                225 arch/alpha/include/asm/bitops.h 	:"Ir" (1UL << (nr & 31)), "m" (*m) : "memory");
nr                234 arch/alpha/include/asm/bitops.h __test_and_clear_bit(unsigned long nr, volatile void * addr)
nr                236 arch/alpha/include/asm/bitops.h 	unsigned long mask = 1 << (nr & 0x1f);
nr                237 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                245 arch/alpha/include/asm/bitops.h test_and_change_bit(unsigned long nr, volatile void * addr)
nr                249 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                267 arch/alpha/include/asm/bitops.h 	:"Ir" (1UL << (nr & 31)), "m" (*m) : "memory");
nr                276 arch/alpha/include/asm/bitops.h __test_and_change_bit(unsigned long nr, volatile void * addr)
nr                278 arch/alpha/include/asm/bitops.h 	unsigned long mask = 1 << (nr & 0x1f);
nr                279 arch/alpha/include/asm/bitops.h 	int *m = ((int *) addr) + (nr >> 5);
nr                287 arch/alpha/include/asm/bitops.h test_bit(int nr, const volatile void * addr)
nr                289 arch/alpha/include/asm/bitops.h 	return (1UL & (((const int *) addr)[nr >> 5] >> (nr & 31))) != 0UL;
nr                 98 arch/alpha/include/asm/pal.h #define __tbi(nr,arg,arg1...)					\
nr                100 arch/alpha/include/asm/pal.h 	register unsigned long __r16 __asm__("$16") = (nr);	\
nr                 40 arch/alpha/include/uapi/asm/ioctl.h #define _IOC(dir,type,nr,size)			\
nr                 44 arch/alpha/include/uapi/asm/ioctl.h 	  ((nr)   << _IOC_NRSHIFT) |		\
nr                 48 arch/alpha/include/uapi/asm/ioctl.h #define _IO(type,nr)		_IOC(_IOC_NONE,(type),(nr),0)
nr                 49 arch/alpha/include/uapi/asm/ioctl.h #define _IOR(type,nr,size)	_IOC(_IOC_READ,(type),(nr),sizeof(size))
nr                 50 arch/alpha/include/uapi/asm/ioctl.h #define _IOW(type,nr,size)	_IOC(_IOC_WRITE,(type),(nr),sizeof(size))
nr                 51 arch/alpha/include/uapi/asm/ioctl.h #define _IOWR(type,nr,size)	_IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
nr                 54 arch/alpha/include/uapi/asm/ioctl.h #define _IOC_DIR(nr)		(((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK)
nr                 55 arch/alpha/include/uapi/asm/ioctl.h #define _IOC_TYPE(nr)		(((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
nr                 56 arch/alpha/include/uapi/asm/ioctl.h #define _IOC_NR(nr)		(((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
nr                 57 arch/alpha/include/uapi/asm/ioctl.h #define _IOC_SIZE(nr)		(((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK)
nr                 39 arch/alpha/kernel/pci-sysfs.c 	unsigned long nr, start, size;
nr                 42 arch/alpha/kernel/pci-sysfs.c 	nr = vma_pages(vma);
nr                 46 arch/alpha/kernel/pci-sysfs.c 	if (start < size && size - start >= nr)
nr                 50 arch/alpha/kernel/pci-sysfs.c 		current->comm, sparse ? " sparse" : "", start, start + nr,
nr                256 arch/alpha/kernel/pci-sysfs.c 	unsigned long nr, start, size;
nr                258 arch/alpha/kernel/pci-sysfs.c 	nr = vma_pages(vma);
nr                262 arch/alpha/kernel/pci-sysfs.c 	if (start < size && size - start >= nr)
nr                266 arch/alpha/kernel/pci-sysfs.c 		current->comm, sparse ? " sparse" : "", start, start + nr,
nr                 29 arch/arc/include/asm/bitops.h static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
nr                 33 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                 35 arch/arc/include/asm/bitops.h 	nr &= 0x1f;							\
nr                 44 arch/arc/include/asm/bitops.h 	  "ir"(nr)							\
nr                 60 arch/arc/include/asm/bitops.h static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
nr                 64 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                 66 arch/arc/include/asm/bitops.h 	nr &= 0x1f;							\
nr                 80 arch/arc/include/asm/bitops.h 	: "r"(m), "ir"(nr)						\
nr                 85 arch/arc/include/asm/bitops.h 	return (old & (1 << nr)) != 0;					\
nr                107 arch/arc/include/asm/bitops.h static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
nr                110 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                118 arch/arc/include/asm/bitops.h 	*m = temp c_op (1UL << (nr & 0x1f));					\
nr                124 arch/arc/include/asm/bitops.h static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
nr                127 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                132 arch/arc/include/asm/bitops.h 	*m = old c_op (1UL << (nr & 0x1f));				\
nr                136 arch/arc/include/asm/bitops.h 	return (old & (1UL << (nr & 0x1f))) != 0;			\
nr                142 arch/arc/include/asm/bitops.h static inline void op##_bit(unsigned long nr, volatile unsigned long *m)\
nr                144 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                146 arch/arc/include/asm/bitops.h 	nr = (1UL << (nr & 0x1f));					\
nr                148 arch/arc/include/asm/bitops.h 		nr = ~nr;						\
nr                155 arch/arc/include/asm/bitops.h 	: "r"(nr), "r"(m), "i"(asm_op)					\
nr                160 arch/arc/include/asm/bitops.h static inline int test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
nr                164 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                166 arch/arc/include/asm/bitops.h 	nr = old = (1UL << (nr & 0x1f));				\
nr                184 arch/arc/include/asm/bitops.h 	return (old & nr) != 0;					\
nr                194 arch/arc/include/asm/bitops.h static inline void __##op##_bit(unsigned long nr, volatile unsigned long *m)	\
nr                197 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                200 arch/arc/include/asm/bitops.h 	*m = temp c_op (1UL << (nr & 0x1f));				\
nr                204 arch/arc/include/asm/bitops.h static inline int __test_and_##op##_bit(unsigned long nr, volatile unsigned long *m)\
nr                207 arch/arc/include/asm/bitops.h 	m += nr >> 5;							\
nr                210 arch/arc/include/asm/bitops.h 	*m = old c_op (1UL << (nr & 0x1f));				\
nr                212 arch/arc/include/asm/bitops.h 	return (old & (1UL << (nr & 0x1f))) != 0;			\
nr                243 arch/arc/include/asm/bitops.h test_bit(unsigned int nr, const volatile unsigned long *addr)
nr                247 arch/arc/include/asm/bitops.h 	addr += nr >> 5;
nr                249 arch/arc/include/asm/bitops.h 	mask = 1UL << (nr & 0x1f);
nr                 18 arch/arc/include/asm/highmem.h #define FIXMAP_ADDR(nr)		(FIXMAP_BASE + ((nr) << PAGE_SHIFT))
nr                 25 arch/arc/include/asm/highmem.h #define PKMAP_ADDR(nr)		(PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                 26 arch/arc/include/asm/io.h static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                 12 arch/arc/kernel/sys.c #define __SYSCALL(nr, call) [nr] = (call),
nr                282 arch/arm/common/it8152.c int __init it8152_pci_setup(int nr, struct pci_sys_data *sys)
nr                153 arch/arm/include/asm/bitops.h extern void _set_bit(int nr, volatile unsigned long * p);
nr                154 arch/arm/include/asm/bitops.h extern void _clear_bit(int nr, volatile unsigned long * p);
nr                155 arch/arm/include/asm/bitops.h extern void _change_bit(int nr, volatile unsigned long * p);
nr                156 arch/arm/include/asm/bitops.h extern int _test_and_set_bit(int nr, volatile unsigned long * p);
nr                157 arch/arm/include/asm/bitops.h extern int _test_and_clear_bit(int nr, volatile unsigned long * p);
nr                158 arch/arm/include/asm/bitops.h extern int _test_and_change_bit(int nr, volatile unsigned long * p);
nr                180 arch/arm/include/asm/bitops.h #define ATOMIC_BITOP(name,nr,p)			\
nr                181 arch/arm/include/asm/bitops.h 	(__builtin_constant_p(nr) ? ____atomic_##name(nr, p) : _##name(nr,p))
nr                183 arch/arm/include/asm/bitops.h #define ATOMIC_BITOP(name,nr,p)		_##name(nr,p)
nr                189 arch/arm/include/asm/bitops.h #define set_bit(nr,p)			ATOMIC_BITOP(set_bit,nr,p)
nr                190 arch/arm/include/asm/bitops.h #define clear_bit(nr,p)			ATOMIC_BITOP(clear_bit,nr,p)
nr                191 arch/arm/include/asm/bitops.h #define change_bit(nr,p)		ATOMIC_BITOP(change_bit,nr,p)
nr                192 arch/arm/include/asm/bitops.h #define test_and_set_bit(nr,p)		ATOMIC_BITOP(test_and_set_bit,nr,p)
nr                193 arch/arm/include/asm/bitops.h #define test_and_clear_bit(nr,p)	ATOMIC_BITOP(test_and_clear_bit,nr,p)
nr                194 arch/arm/include/asm/bitops.h #define test_and_change_bit(nr,p)	ATOMIC_BITOP(test_and_change_bit,nr,p)
nr                 77 arch/arm/include/asm/bug.h void hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
nr                 81 arch/arm/include/asm/bug.h void hook_ifault_code(int nr, int (*fn)(unsigned long, unsigned int,
nr                130 arch/arm/include/asm/ecard.h #define ecard_resource_start(ec,nr)	((ec)->resource[nr].start)
nr                131 arch/arm/include/asm/ecard.h #define ecard_resource_end(ec,nr)	((ec)->resource[nr].end)
nr                132 arch/arm/include/asm/ecard.h #define ecard_resource_len(ec,nr)	((ec)->resource[nr].end - \
nr                133 arch/arm/include/asm/ecard.h 					 (ec)->resource[nr].start + 1)
nr                134 arch/arm/include/asm/ecard.h #define ecard_resource_flags(ec,nr)	((ec)->resource[nr].flags)
nr                113 arch/arm/include/asm/hardware/it8152.h extern int it8152_pci_setup(int nr, struct pci_sys_data *sys);
nr                 60 arch/arm/include/asm/hardware/scoop.h 	void (*power_ctrl)(struct device *scoop, unsigned short cpr, int nr);
nr                 11 arch/arm/include/asm/highmem.h #define PKMAP_ADDR(nr)		(PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                430 arch/arm/include/asm/io.h extern void __iomem *ioport_map(unsigned long port, unsigned int nr);
nr                 25 arch/arm/include/asm/mach/arch.h 	unsigned int		nr;		/* architecture number	*/
nr                 85 arch/arm/include/asm/mach/arch.h 	.nr		= MACH_TYPE_##_type,		\
nr                 95 arch/arm/include/asm/mach/arch.h 	.nr		= ~0,				\
nr                 25 arch/arm/include/asm/mach/pci.h 	int		(*setup)(int nr, struct pci_sys_data *);
nr                 26 arch/arm/include/asm/mach/pci.h 	int		(*scan)(int nr, struct pci_host_bridge *);
nr                 84 arch/arm/include/asm/mach/pci.h extern int iop3xx_pci_setup(int nr, struct pci_sys_data *);
nr                 89 arch/arm/include/asm/mach/pci.h extern int dc21285_setup(int nr, struct pci_sys_data *);
nr                158 arch/arm/include/asm/proc-fns.h #define cpu_get_ttbr(nr)					\
nr                161 arch/arm/include/asm/proc-fns.h 		__asm__("mrrc	p15, " #nr ", %Q0, %R0, c2"	\
nr                 17 arch/arm/include/asm/sync_bitops.h #define sync_set_bit(nr, p)		_set_bit(nr, p)
nr                 18 arch/arm/include/asm/sync_bitops.h #define sync_clear_bit(nr, p)		_clear_bit(nr, p)
nr                 19 arch/arm/include/asm/sync_bitops.h #define sync_change_bit(nr, p)		_change_bit(nr, p)
nr                 20 arch/arm/include/asm/sync_bitops.h #define sync_test_and_set_bit(nr, p)	_test_and_set_bit(nr, p)
nr                 21 arch/arm/include/asm/sync_bitops.h #define sync_test_and_clear_bit(nr, p)	_test_and_clear_bit(nr, p)
nr                 22 arch/arm/include/asm/sync_bitops.h #define sync_test_and_change_bit(nr, p)	_test_and_change_bit(nr, p)
nr                 23 arch/arm/include/asm/sync_bitops.h #define sync_test_bit(nr, addr)		test_bit(nr, addr)
nr                135 arch/arm/kernel/asm-offsets.c   DEFINE(MACHINFO_TYPE,		offsetof(struct machine_desc, nr));
nr                191 arch/arm/kernel/atags_parse.c 		if (machine_nr == p->nr) {
nr                459 arch/arm/kernel/bios32.c 	int nr, busnr;
nr                461 arch/arm/kernel/bios32.c 	for (nr = busnr = 0; nr < hw->nr_controllers; nr++) {
nr                476 arch/arm/kernel/bios32.c 			sys->private_data = hw->private_data[nr];
nr                478 arch/arm/kernel/bios32.c 		ret = hw->setup(nr, sys);
nr                482 arch/arm/kernel/bios32.c 			ret = pcibios_init_resource(nr, sys, hw->io_optional);
nr                492 arch/arm/kernel/bios32.c 				ret = hw->scan(nr, bridge);
nr                256 arch/arm/kernel/devtree.c 	__machine_arch_type = mdesc->nr;
nr                 79 arch/arm/kernel/perf_callchain.c 	while ((entry->nr < entry->max_stack) &&
nr                741 arch/arm/kernel/setup.c 		early_print("%08x\t%s\n", p->nr, p->name);
nr                107 arch/arm/mach-cns3xxx/pcie.c static int cns3xxx_pci_setup(int nr, struct pci_sys_data *sys)
nr                 38 arch/arm/mach-dove/pcie.c static int __init dove_pcie_setup(int nr, struct pci_sys_data *sys)
nr                 42 arch/arm/mach-dove/pcie.c 	if (nr >= num_pcie_ports)
nr                 45 arch/arm/mach-dove/pcie.c 	pp = &pcie_port[nr];
nr                156 arch/arm/mach-dove/pcie.c dove_pcie_scan_bus(int nr, struct pci_host_bridge *bridge)
nr                160 arch/arm/mach-dove/pcie.c 	if (nr >= num_pcie_ports) {
nr                245 arch/arm/mach-footbridge/dc21285.c int __init dc21285_setup(int nr, struct pci_sys_data *sys)
nr                249 arch/arm/mach-footbridge/dc21285.c 	if (nr || !footbridge_cfn_mode())
nr                112 arch/arm/mach-imx/hardware.h #define IMX_GPIO_NR(bank, nr)		(((bank) - 1) * 32 + (nr))
nr                185 arch/arm/mach-iop32x/pci.c int iop3xx_pci_setup(int nr, struct pci_sys_data *sys)
nr                189 arch/arm/mach-iop32x/pci.c 	if (nr != 0)
nr                413 arch/arm/mach-ixp4xx/common-pci.c int ixp4xx_setup(int nr, struct pci_sys_data *sys)
nr                417 arch/arm/mach-ixp4xx/common-pci.c 	if (nr >= 1)
nr                534 arch/arm/mach-ixp4xx/include/mach/io.h #define ioport_map(port, nr) ioport_map(port, nr)
nr                535 arch/arm/mach-ixp4xx/include/mach/io.h static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                132 arch/arm/mach-ixp4xx/include/mach/platform.h extern int ixp4xx_setup(int nr, struct pci_sys_data *sys);
nr                101 arch/arm/mach-mv78xx0/pcie.c static int __init mv78xx0_pcie_setup(int nr, struct pci_sys_data *sys)
nr                105 arch/arm/mach-mv78xx0/pcie.c 	if (nr >= num_pcie_ports)
nr                108 arch/arm/mach-mv78xx0/pcie.c 	pp = &pcie_port[nr];
nr                118 arch/arm/mach-mv78xx0/pcie.c 	pci_ioremap_io(nr * SZ_64K, MV78XX0_PCIE_IO_PHYS_BASE(nr));
nr                197 arch/arm/mach-mv78xx0/pcie.c static int __init mv78xx0_pcie_scan_bus(int nr, struct pci_host_bridge *bridge)
nr                201 arch/arm/mach-mv78xx0/pcie.c 	if (nr >= num_pcie_ports) {
nr                 48 arch/arm/mach-mxs/mach-mxs.c #define MXS_GPIO_NR(bank, nr)	((bank) * 32 + (nr))
nr                 31 arch/arm/mach-omap1/include/mach/mtd-xip.h static inline unsigned long xip_omap_mpu_timer_read(int nr)
nr                 33 arch/arm/mach-omap1/include/mach/mtd-xip.h 	volatile xip_omap_mpu_timer_regs_t* timer = xip_omap_mpu_timer_base(nr);
nr                 72 arch/arm/mach-omap1/time.c static inline unsigned long notrace omap_mpu_timer_read(int nr)
nr                 74 arch/arm/mach-omap1/time.c 	omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
nr                 78 arch/arm/mach-omap1/time.c static inline void omap_mpu_set_autoreset(int nr)
nr                 80 arch/arm/mach-omap1/time.c 	omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
nr                 85 arch/arm/mach-omap1/time.c static inline void omap_mpu_remove_autoreset(int nr)
nr                 87 arch/arm/mach-omap1/time.c 	omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
nr                 92 arch/arm/mach-omap1/time.c static inline void omap_mpu_timer_start(int nr, unsigned long load_val,
nr                 95 arch/arm/mach-omap1/time.c 	omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
nr                108 arch/arm/mach-omap1/time.c static inline void omap_mpu_timer_stop(int nr)
nr                110 arch/arm/mach-omap1/time.c 	omap_mpu_timer_regs_t __iomem *timer = omap_mpu_timer_base(nr);
nr                 65 arch/arm/mach-orion5x/common.h int orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys);
nr                 66 arch/arm/mach-orion5x/common.h int orion5x_pci_sys_scan_bus(int nr, struct pci_host_bridge *bridge);
nr                369 arch/arm/mach-orion5x/pci.c static void __init orion5x_pci_set_bus_nr(int nr)
nr                382 arch/arm/mach-orion5x/pci.c 		pcix_status |= (nr << PCIX_STAT_BUS_OFFS);
nr                389 arch/arm/mach-orion5x/pci.c 		p2p |= (nr << PCI_P2P_BUS_OFFS);
nr                541 arch/arm/mach-orion5x/pci.c int __init orion5x_pci_sys_setup(int nr, struct pci_sys_data *sys)
nr                545 arch/arm/mach-orion5x/pci.c 	if (nr == 0) {
nr                550 arch/arm/mach-orion5x/pci.c 	if (nr == 1 && !orion5x_pci_disabled) {
nr                558 arch/arm/mach-orion5x/pci.c int __init orion5x_pci_sys_scan_bus(int nr, struct pci_host_bridge *bridge)
nr                567 arch/arm/mach-orion5x/pci.c 	if (nr == 0) {
nr                572 arch/arm/mach-orion5x/pci.c 	if (nr == 1 && !orion5x_pci_disabled) {
nr                239 arch/arm/mach-pxa/spitz.c static void spitz_pcmcia_pwr(struct device *scoop, uint16_t cpr, int nr)
nr                242 arch/arm/mach-pxa/spitz.c 	if (nr == 0)
nr                670 arch/arm/mach-rpc/ecard.c #define ec_set_resource(ec,nr,st,sz)				\
nr                672 arch/arm/mach-rpc/ecard.c 		(ec)->resource[nr].name = dev_name(&ec->dev);	\
nr                673 arch/arm/mach-rpc/ecard.c 		(ec)->resource[nr].start = st;			\
nr                674 arch/arm/mach-rpc/ecard.c 		(ec)->resource[nr].end = (st) + (sz) - 1;	\
nr                675 arch/arm/mach-rpc/ecard.c 		(ec)->resource[nr].flags = IORESOURCE_MEM;	\
nr                248 arch/arm/mach-sa1100/generic.c 			 struct resource *res, int nr)
nr                252 arch/arm/mach-sa1100/generic.c 	sa11x0mtd_device.num_resources = nr;
nr                 31 arch/arm/mach-sa1100/generic.h 			 struct resource *res, int nr);
nr                155 arch/arm/mach-sa1100/pci-nanoengine.c int __init pci_nanoengine_setup(int nr, struct pci_sys_data *sys)
nr                162 arch/arm/mach-sa1100/pci-nanoengine.c 	if (nr == 0) {
nr                513 arch/arm/mm/fault.c hook_fault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *),
nr                516 arch/arm/mm/fault.c 	if (nr < 0 || nr >= ARRAY_SIZE(fsr_info))
nr                519 arch/arm/mm/fault.c 	fsr_info[nr].fn   = fn;
nr                520 arch/arm/mm/fault.c 	fsr_info[nr].sig  = sig;
nr                521 arch/arm/mm/fault.c 	fsr_info[nr].code = code;
nr                522 arch/arm/mm/fault.c 	fsr_info[nr].name = name;
nr                546 arch/arm/mm/fault.c hook_ifault_code(int nr, int (*fn)(unsigned long, unsigned int, struct pt_regs *),
nr                549 arch/arm/mm/fault.c 	if (nr < 0 || nr >= ARRAY_SIZE(ifsr_info))
nr                552 arch/arm/mm/fault.c 	ifsr_info[nr].fn   = fn;
nr                553 arch/arm/mm/fault.c 	ifsr_info[nr].sig  = sig;
nr                554 arch/arm/mm/fault.c 	ifsr_info[nr].code = code;
nr                555 arch/arm/mm/fault.c 	ifsr_info[nr].name = name;
nr                 17 arch/arm/mm/iomap.c void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                990 arch/arm/mm/mmu.c void __init iotable_init(struct map_desc *io_desc, int nr)
nr                996 arch/arm/mm/mmu.c 	if (!nr)
nr                999 arch/arm/mm/mmu.c 	svm = memblock_alloc(sizeof(*svm) * nr, __alignof__(*svm));
nr               1002 arch/arm/mm/mmu.c 		      __func__, sizeof(*svm) * nr, __alignof__(*svm));
nr               1004 arch/arm/mm/mmu.c 	for (md = io_desc; nr; md++, nr--) {
nr                 21 arch/arm/plat-orion/include/plat/pcie.h void orion_pcie_set_local_bus_nr(void __iomem *base, int nr);
nr                 82 arch/arm/plat-orion/pcie.c void __init orion_pcie_set_local_bus_nr(void __iomem *base, int nr)
nr                 88 arch/arm/plat-orion/pcie.c 	stat |= nr << PCIE_STAT_BUS_OFFS;
nr               1220 arch/arm/plat-samsung/gpio-samsung.c int s3c_gpio_cfgpin_range(unsigned int start, unsigned int nr,
nr               1225 arch/arm/plat-samsung/gpio-samsung.c 	for (; nr > 0; nr--, start++) {
nr               1235 arch/arm/plat-samsung/gpio-samsung.c int s3c_gpio_cfgall_range(unsigned int start, unsigned int nr,
nr               1240 arch/arm/plat-samsung/gpio-samsung.c 	for (; nr > 0; nr--, start++) {
nr                118 arch/arm/plat-samsung/include/plat/gpio-cfg.h extern int s3c_gpio_cfgpin_range(unsigned int start, unsigned int nr,
nr                169 arch/arm/plat-samsung/include/plat/gpio-cfg.h extern int s3c_gpio_cfgall_range(unsigned int start, unsigned int nr,
nr                129 arch/arm/plat-samsung/pm-gpio.c 	int nr;
nr                139 arch/arm/plat-samsung/pm-gpio.c 	for (nr = 0, mask = 0x03; nr < 32; nr += 2, mask <<= 2) {
nr                140 arch/arm/plat-samsung/pm-gpio.c 		old = (old_gpcon & mask) >> nr;
nr                141 arch/arm/plat-samsung/pm-gpio.c 		new = (gps_gpcon & mask) >> nr;
nr                206 arch/arm/plat-samsung/pm-gpio.c 	int nr;
nr                208 arch/arm/plat-samsung/pm-gpio.c 	for (nr = 0, mask = 0x0f; nr < 16; nr += 4, mask <<= 4) {
nr                209 arch/arm/plat-samsung/pm-gpio.c 		old = (old_gpcon & mask) >> nr;
nr                210 arch/arm/plat-samsung/pm-gpio.c 		new = (gps_gpcon & mask) >> nr;
nr                 56 arch/arm/vdso/vgettimeofday.c 	register long nr asm("r7") = __NR_clock_gettime;
nr                 61 arch/arm/vdso/vgettimeofday.c 	: "r" (clkid), "r" (ts), "r" (nr)
nr                224 arch/arm/vdso/vgettimeofday.c 	register long nr asm("r7") = __NR_gettimeofday;
nr                229 arch/arm/vdso/vgettimeofday.c 	: "r" (tv), "r" (tz), "r" (nr)
nr                 66 arch/arm/xen/enlighten.c 			       int nr, struct page **pages)
nr                 68 arch/arm/xen/enlighten.c 	return xen_xlate_unmap_gfn_range(vma, nr, pages);
nr                 70 arch/arm64/include/asm/fpsimdmacros.h .macro _check_general_reg nr
nr                 77 arch/arm64/include/asm/fpsimdmacros.h 	.if (\znr) < 0 || (\znr) > 31
nr                 83 arch/arm64/include/asm/fpsimdmacros.h 	.if (\pnr) < 0 || (\pnr) > 15
nr                 18 arch/arm64/include/asm/sync_bitops.h #define sync_set_bit(nr, p)			set_bit(nr, p)
nr                 19 arch/arm64/include/asm/sync_bitops.h #define sync_clear_bit(nr, p)			clear_bit(nr, p)
nr                 20 arch/arm64/include/asm/sync_bitops.h #define sync_change_bit(nr, p)			change_bit(nr, p)
nr                 21 arch/arm64/include/asm/sync_bitops.h #define sync_test_and_set_bit(nr, p)		test_and_set_bit(nr, p)
nr                 22 arch/arm64/include/asm/sync_bitops.h #define sync_test_and_clear_bit(nr, p)		test_and_clear_bit(nr, p)
nr                 23 arch/arm64/include/asm/sync_bitops.h #define sync_test_and_change_bit(nr, p)		test_and_change_bit(nr, p)
nr                 24 arch/arm64/include/asm/sync_bitops.h #define sync_test_bit(nr, addr)			test_bit(nr, addr)
nr                 28 arch/arm64/include/asm/system_misc.h void hook_debug_fault_code(int nr, int (*fn)(unsigned long, unsigned int,
nr                 28 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	register long nr asm("r7") = __NR_compat_gettimeofday;
nr                 33 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	: "r" (tv), "r" (tz), "r" (nr)
nr                 45 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	register long nr asm("r7") = __NR_compat_clock_gettime64;
nr                 50 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                 62 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	register long nr asm("r7") = __NR_compat_clock_gettime;
nr                 67 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                 79 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	register long nr asm("r7") = __NR_compat_clock_getres_time64;
nr                 88 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                100 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	register long nr asm("r7") = __NR_compat_clock_getres;
nr                109 arch/arm64/include/asm/vdso/compat_gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                 24 arch/arm64/include/asm/vdso/gettimeofday.h 	register long nr asm("x8") = __NR_gettimeofday;
nr                 29 arch/arm64/include/asm/vdso/gettimeofday.h 	: "r" (tv), "r" (tz), "r" (nr)
nr                 41 arch/arm64/include/asm/vdso/gettimeofday.h 	register long nr asm("x8") = __NR_clock_gettime;
nr                 46 arch/arm64/include/asm/vdso/gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                 58 arch/arm64/include/asm/vdso/gettimeofday.h 	register long nr asm("x8") = __NR_clock_getres;
nr                 63 arch/arm64/include/asm/vdso/gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                118 arch/arm64/kernel/perf_callchain.c 		while (entry->nr < entry->max_stack &&
nr                128 arch/arm64/kernel/perf_callchain.c 		while ((entry->nr < entry->max_stack) &&
nr                 52 arch/arm64/kernel/sys.c #define __SYSCALL(nr, sym)	asmlinkage long __arm64_##sym(const struct pt_regs *);
nr                 56 arch/arm64/kernel/sys.c #define __SYSCALL(nr, sym)	[nr] = __arm64_##sym,
nr                126 arch/arm64/kernel/sys32.c #define __SYSCALL(nr, sym)	asmlinkage long __arm64_##sym(const struct pt_regs *);
nr                130 arch/arm64/kernel/sys32.c #define __SYSCALL(nr, sym)	[nr] = __arm64_##sym,
nr                 18 arch/arm64/kvm/hyp/debug-sr.c #define save_debug(ptr,reg,nr)						\
nr                 19 arch/arm64/kvm/hyp/debug-sr.c 	switch (nr) {							\
nr                 53 arch/arm64/kvm/hyp/debug-sr.c #define restore_debug(ptr,reg,nr)					\
nr                 54 arch/arm64/kvm/hyp/debug-sr.c 	switch (nr) {							\
nr                813 arch/arm64/mm/fault.c void __init hook_debug_fault_code(int nr,
nr                817 arch/arm64/mm/fault.c 	BUG_ON(nr < 0 || nr >= ARRAY_SIZE(debug_fault_info));
nr                819 arch/arm64/mm/fault.c 	debug_fault_info[nr].fn		= fn;
nr                820 arch/arm64/mm/fault.c 	debug_fault_info[nr].sig	= sig;
nr                821 arch/arm64/mm/fault.c 	debug_fault_info[nr].code	= code;
nr                822 arch/arm64/mm/fault.c 	debug_fault_info[nr].name	= name;
nr                 16 arch/c6x/include/asm/bug.h extern void die(char *str, struct pt_regs *fp, int nr);
nr                 48 arch/c6x/kernel/sys_c6x.c #define __SYSCALL(nr, call) [nr] = (call),
nr                 68 arch/c6x/kernel/traps.c void die(char *str, struct pt_regs *fp, int nr)
nr                 71 arch/c6x/kernel/traps.c 	pr_err("%s: %08x\n", str, nr);
nr                 83 arch/c6x/kernel/traps.c static void die_if_kernel(char *str, struct pt_regs *fp, int nr)
nr                 88 arch/c6x/kernel/traps.c 	die(str, fp, nr);
nr                 78 arch/csky/include/asm/bitops.h #define __clear_bit(nr, vaddr) clear_bit(nr, vaddr)
nr                 23 arch/csky/include/asm/bug.h void die_if_kernel(char *str, struct pt_regs *regs, int nr);
nr                 31 arch/csky/include/asm/highmem.h #define PKMAP_ADDR(nr)  (PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                106 arch/csky/kernel/perf_callchain.c 	while (fp && !(fp & 0x3) && entry->nr < entry->max_stack)
nr                  8 arch/csky/kernel/syscall_table.c #define __SYSCALL(nr, call)[nr] = (call),
nr                 79 arch/csky/kernel/traps.c void die_if_kernel(char *str, struct pt_regs *regs, int nr)
nr                 85 arch/csky/kernel/traps.c 	pr_err("%s: %08x\n", str, nr);
nr                 41 arch/h8300/include/asm/bitops.h static inline void FNAME(int nr, volatile unsigned long *addr)	\
nr                 44 arch/h8300/include/asm/bitops.h 	unsigned char bit = nr & 7;				\
nr                 46 arch/h8300/include/asm/bitops.h 	b_addr = (unsigned char *)addr + ((nr >> 3) ^ 3);	\
nr                 47 arch/h8300/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {				\
nr                 48 arch/h8300/include/asm/bitops.h 		__asm__(OP " %1,%0" : "+WU"(*b_addr) : "i"(nr & 7));	\
nr                 57 arch/h8300/include/asm/bitops.h #define __set_bit(nr, addr)    set_bit((nr), (addr))
nr                 58 arch/h8300/include/asm/bitops.h #define __clear_bit(nr, addr)  clear_bit((nr), (addr))
nr                 59 arch/h8300/include/asm/bitops.h #define __change_bit(nr, addr) change_bit((nr), (addr))
nr                 63 arch/h8300/include/asm/bitops.h static inline int test_bit(int nr, const volatile unsigned long *addr)
nr                 67 arch/h8300/include/asm/bitops.h 	unsigned char bit = nr & 7;
nr                 69 arch/h8300/include/asm/bitops.h 	b_addr = (unsigned char *)addr + ((nr >> 3) ^ 3);
nr                 70 arch/h8300/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {
nr                 74 arch/h8300/include/asm/bitops.h 			: "WU"(*b_addr), "i"(nr & 7), "0"(ret) : "cc");
nr                 86 arch/h8300/include/asm/bitops.h #define __test_bit(nr, addr) test_bit(nr, addr)
nr                 89 arch/h8300/include/asm/bitops.h static inline int FNNAME(int nr, void *addr)				\
nr                 94 arch/h8300/include/asm/bitops.h 	unsigned char bit = nr & 7;					\
nr                 96 arch/h8300/include/asm/bitops.h 	b_addr = (unsigned char *)addr + ((nr >> 3) ^ 3);		\
nr                 97 arch/h8300/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {					\
nr                105 arch/h8300/include/asm/bitops.h 			: "0"(retval), "i"(nr & 7) : "cc");		\
nr                121 arch/h8300/include/asm/bitops.h static inline int __ ## FNNAME(int nr, void *addr)			\
nr                125 arch/h8300/include/asm/bitops.h 	unsigned char bit = nr & 7;					\
nr                127 arch/h8300/include/asm/bitops.h 	b_addr = (unsigned char *)addr + ((nr >> 3) ^ 3);		\
nr                128 arch/h8300/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {					\
nr                133 arch/h8300/include/asm/bitops.h 			: "0" (retval), "i"(nr & 7));			\
nr                  7 arch/h8300/kernel/syscalls.c #define __SYSCALL(nr, call) [nr] = (call),
nr                 31 arch/hexagon/include/asm/bitops.h static inline int test_and_clear_bit(int nr, volatile void *addr)
nr                 43 arch/hexagon/include/asm/bitops.h 	: "r" (addr), "r" (nr)
nr                 55 arch/hexagon/include/asm/bitops.h static inline int test_and_set_bit(int nr, volatile void *addr)
nr                 67 arch/hexagon/include/asm/bitops.h 	: "r" (addr), "r" (nr)
nr                 81 arch/hexagon/include/asm/bitops.h static inline int test_and_change_bit(int nr, volatile void *addr)
nr                 93 arch/hexagon/include/asm/bitops.h 	: "r" (addr), "r" (nr)
nr                106 arch/hexagon/include/asm/bitops.h static inline void clear_bit(int nr, volatile void *addr)
nr                108 arch/hexagon/include/asm/bitops.h 	test_and_clear_bit(nr, addr);
nr                111 arch/hexagon/include/asm/bitops.h static inline void set_bit(int nr, volatile void *addr)
nr                113 arch/hexagon/include/asm/bitops.h 	test_and_set_bit(nr, addr);
nr                116 arch/hexagon/include/asm/bitops.h static inline void change_bit(int nr, volatile void *addr)
nr                118 arch/hexagon/include/asm/bitops.h 	test_and_change_bit(nr, addr);
nr                130 arch/hexagon/include/asm/bitops.h static inline void __clear_bit(int nr, volatile unsigned long *addr)
nr                132 arch/hexagon/include/asm/bitops.h 	test_and_clear_bit(nr, addr);
nr                135 arch/hexagon/include/asm/bitops.h static inline void __set_bit(int nr, volatile unsigned long *addr)
nr                137 arch/hexagon/include/asm/bitops.h 	test_and_set_bit(nr, addr);
nr                140 arch/hexagon/include/asm/bitops.h static inline void __change_bit(int nr, volatile unsigned long *addr)
nr                142 arch/hexagon/include/asm/bitops.h 	test_and_change_bit(nr, addr);
nr                146 arch/hexagon/include/asm/bitops.h static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr)
nr                148 arch/hexagon/include/asm/bitops.h 	return test_and_clear_bit(nr, addr);
nr                151 arch/hexagon/include/asm/bitops.h static inline int __test_and_set_bit(int nr, volatile unsigned long *addr)
nr                153 arch/hexagon/include/asm/bitops.h 	return test_and_set_bit(nr, addr);
nr                156 arch/hexagon/include/asm/bitops.h static inline int __test_and_change_bit(int nr, volatile unsigned long *addr)
nr                158 arch/hexagon/include/asm/bitops.h 	return test_and_change_bit(nr, addr);
nr                161 arch/hexagon/include/asm/bitops.h static inline int __test_bit(int nr, const volatile unsigned long *addr)
nr                168 arch/hexagon/include/asm/bitops.h 	: "r" (addr[BIT_WORD(nr)]), "r" (nr % BITS_PER_LONG)
nr                175 arch/hexagon/include/asm/bitops.h #define test_bit(nr, addr) __test_bit(nr, addr)
nr                 87 arch/hexagon/include/asm/mem-layout.h #define PKMAP_ADDR(nr)	(PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                 15 arch/hexagon/kernel/syscalltab.c #define __SYSCALL(nr, call) [nr] = (call),
nr                 40 arch/ia64/include/asm/bitops.h set_bit (int nr, volatile void *addr)
nr                 46 arch/ia64/include/asm/bitops.h 	m = (volatile __u32 *) addr + (nr >> 5);
nr                 47 arch/ia64/include/asm/bitops.h 	bit = 1 << (nr & 31);
nr                 65 arch/ia64/include/asm/bitops.h __set_bit (int nr, volatile void *addr)
nr                 67 arch/ia64/include/asm/bitops.h 	*((__u32 *) addr + (nr >> 5)) |= (1 << (nr & 31));
nr                 81 arch/ia64/include/asm/bitops.h clear_bit (int nr, volatile void *addr)
nr                 87 arch/ia64/include/asm/bitops.h 	m = (volatile __u32 *) addr + (nr >> 5);
nr                 88 arch/ia64/include/asm/bitops.h 	mask = ~(1 << (nr & 31));
nr                105 arch/ia64/include/asm/bitops.h clear_bit_unlock (int nr, volatile void *addr)
nr                111 arch/ia64/include/asm/bitops.h 	m = (volatile __u32 *) addr + (nr >> 5);
nr                112 arch/ia64/include/asm/bitops.h 	mask = ~(1 << (nr & 31));
nr                129 arch/ia64/include/asm/bitops.h __clear_bit_unlock(int nr, void *addr)
nr                131 arch/ia64/include/asm/bitops.h 	__u32 * const m = (__u32 *) addr + (nr >> 5);
nr                132 arch/ia64/include/asm/bitops.h 	__u32 const new = *m & ~(1 << (nr & 31));
nr                147 arch/ia64/include/asm/bitops.h __clear_bit (int nr, volatile void *addr)
nr                149 arch/ia64/include/asm/bitops.h 	*((__u32 *) addr + (nr >> 5)) &= ~(1 << (nr & 31));
nr                162 arch/ia64/include/asm/bitops.h change_bit (int nr, volatile void *addr)
nr                168 arch/ia64/include/asm/bitops.h 	m = (volatile __u32 *) addr + (nr >> 5);
nr                169 arch/ia64/include/asm/bitops.h 	bit = (1 << (nr & 31));
nr                187 arch/ia64/include/asm/bitops.h __change_bit (int nr, volatile void *addr)
nr                189 arch/ia64/include/asm/bitops.h 	*((__u32 *) addr + (nr >> 5)) ^= (1 << (nr & 31));
nr                201 arch/ia64/include/asm/bitops.h test_and_set_bit (int nr, volatile void *addr)
nr                207 arch/ia64/include/asm/bitops.h 	m = (volatile __u32 *) addr + (nr >> 5);
nr                208 arch/ia64/include/asm/bitops.h 	bit = 1 << (nr & 31);
nr                236 arch/ia64/include/asm/bitops.h __test_and_set_bit (int nr, volatile void *addr)
nr                238 arch/ia64/include/asm/bitops.h 	__u32 *p = (__u32 *) addr + (nr >> 5);
nr                239 arch/ia64/include/asm/bitops.h 	__u32 m = 1 << (nr & 31);
nr                255 arch/ia64/include/asm/bitops.h test_and_clear_bit (int nr, volatile void *addr)
nr                261 arch/ia64/include/asm/bitops.h 	m = (volatile __u32 *) addr + (nr >> 5);
nr                262 arch/ia64/include/asm/bitops.h 	mask = ~(1 << (nr & 31));
nr                281 arch/ia64/include/asm/bitops.h __test_and_clear_bit(int nr, volatile void * addr)
nr                283 arch/ia64/include/asm/bitops.h 	__u32 *p = (__u32 *) addr + (nr >> 5);
nr                284 arch/ia64/include/asm/bitops.h 	__u32 m = 1 << (nr & 31);
nr                300 arch/ia64/include/asm/bitops.h test_and_change_bit (int nr, volatile void *addr)
nr                306 arch/ia64/include/asm/bitops.h 	m = (volatile __u32 *) addr + (nr >> 5);
nr                307 arch/ia64/include/asm/bitops.h 	bit = (1 << (nr & 31));
nr                324 arch/ia64/include/asm/bitops.h __test_and_change_bit (int nr, void *addr)
nr                326 arch/ia64/include/asm/bitops.h 	__u32 old, bit = (1 << (nr & 31));
nr                327 arch/ia64/include/asm/bitops.h 	__u32 *m = (__u32 *) addr + (nr >> 5);
nr                335 arch/ia64/include/asm/bitops.h test_bit (int nr, const volatile void *addr)
nr                337 arch/ia64/include/asm/bitops.h 	return 1 & (((const volatile __u32 *) addr)[nr >> 5] >> (nr & 31));
nr                 24 arch/ia64/include/asm/unistd.h extern long __ia64_syscall (long a0, long a1, long a2, long a3, long a4, long nr);
nr                 31 arch/m68k/include/asm/bitops.h static inline void bset_reg_set_bit(int nr, volatile unsigned long *vaddr)
nr                 33 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                 37 arch/m68k/include/asm/bitops.h 		: "a" (p), "di" (nr & 7)
nr                 41 arch/m68k/include/asm/bitops.h static inline void bset_mem_set_bit(int nr, volatile unsigned long *vaddr)
nr                 43 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                 47 arch/m68k/include/asm/bitops.h 		: "di" (nr & 7));
nr                 50 arch/m68k/include/asm/bitops.h static inline void bfset_mem_set_bit(int nr, volatile unsigned long *vaddr)
nr                 54 arch/m68k/include/asm/bitops.h 		: "d" (nr ^ 31), "o" (*vaddr)
nr                 59 arch/m68k/include/asm/bitops.h #define	set_bit(nr, vaddr)	bset_reg_set_bit(nr, vaddr)
nr                 61 arch/m68k/include/asm/bitops.h #define	set_bit(nr, vaddr)	bset_mem_set_bit(nr, vaddr)
nr                 63 arch/m68k/include/asm/bitops.h #define set_bit(nr, vaddr)	(__builtin_constant_p(nr) ? \
nr                 64 arch/m68k/include/asm/bitops.h 				bset_mem_set_bit(nr, vaddr) : \
nr                 65 arch/m68k/include/asm/bitops.h 				bfset_mem_set_bit(nr, vaddr))
nr                 68 arch/m68k/include/asm/bitops.h #define __set_bit(nr, vaddr)	set_bit(nr, vaddr)
nr                 71 arch/m68k/include/asm/bitops.h static inline void bclr_reg_clear_bit(int nr, volatile unsigned long *vaddr)
nr                 73 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                 77 arch/m68k/include/asm/bitops.h 		: "a" (p), "di" (nr & 7)
nr                 81 arch/m68k/include/asm/bitops.h static inline void bclr_mem_clear_bit(int nr, volatile unsigned long *vaddr)
nr                 83 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                 87 arch/m68k/include/asm/bitops.h 		: "di" (nr & 7));
nr                 90 arch/m68k/include/asm/bitops.h static inline void bfclr_mem_clear_bit(int nr, volatile unsigned long *vaddr)
nr                 94 arch/m68k/include/asm/bitops.h 		: "d" (nr ^ 31), "o" (*vaddr)
nr                 99 arch/m68k/include/asm/bitops.h #define	clear_bit(nr, vaddr)	bclr_reg_clear_bit(nr, vaddr)
nr                101 arch/m68k/include/asm/bitops.h #define	clear_bit(nr, vaddr)	bclr_mem_clear_bit(nr, vaddr)
nr                103 arch/m68k/include/asm/bitops.h #define clear_bit(nr, vaddr)	(__builtin_constant_p(nr) ? \
nr                104 arch/m68k/include/asm/bitops.h 				bclr_mem_clear_bit(nr, vaddr) : \
nr                105 arch/m68k/include/asm/bitops.h 				bfclr_mem_clear_bit(nr, vaddr))
nr                108 arch/m68k/include/asm/bitops.h #define __clear_bit(nr, vaddr)	clear_bit(nr, vaddr)
nr                111 arch/m68k/include/asm/bitops.h static inline void bchg_reg_change_bit(int nr, volatile unsigned long *vaddr)
nr                113 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                117 arch/m68k/include/asm/bitops.h 		: "a" (p), "di" (nr & 7)
nr                121 arch/m68k/include/asm/bitops.h static inline void bchg_mem_change_bit(int nr, volatile unsigned long *vaddr)
nr                123 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                127 arch/m68k/include/asm/bitops.h 		: "di" (nr & 7));
nr                130 arch/m68k/include/asm/bitops.h static inline void bfchg_mem_change_bit(int nr, volatile unsigned long *vaddr)
nr                134 arch/m68k/include/asm/bitops.h 		: "d" (nr ^ 31), "o" (*vaddr)
nr                139 arch/m68k/include/asm/bitops.h #define	change_bit(nr, vaddr)	bchg_reg_change_bit(nr, vaddr)
nr                141 arch/m68k/include/asm/bitops.h #define	change_bit(nr, vaddr)	bchg_mem_change_bit(nr, vaddr)
nr                143 arch/m68k/include/asm/bitops.h #define change_bit(nr, vaddr)	(__builtin_constant_p(nr) ? \
nr                144 arch/m68k/include/asm/bitops.h 				bchg_mem_change_bit(nr, vaddr) : \
nr                145 arch/m68k/include/asm/bitops.h 				bfchg_mem_change_bit(nr, vaddr))
nr                148 arch/m68k/include/asm/bitops.h #define __change_bit(nr, vaddr)	change_bit(nr, vaddr)
nr                151 arch/m68k/include/asm/bitops.h static inline int test_bit(int nr, const volatile unsigned long *vaddr)
nr                153 arch/m68k/include/asm/bitops.h 	return (vaddr[nr >> 5] & (1UL << (nr & 31))) != 0;
nr                157 arch/m68k/include/asm/bitops.h static inline int bset_reg_test_and_set_bit(int nr,
nr                160 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                165 arch/m68k/include/asm/bitops.h 		: "a" (p), "di" (nr & 7)
nr                170 arch/m68k/include/asm/bitops.h static inline int bset_mem_test_and_set_bit(int nr,
nr                173 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                178 arch/m68k/include/asm/bitops.h 		: "di" (nr & 7));
nr                182 arch/m68k/include/asm/bitops.h static inline int bfset_mem_test_and_set_bit(int nr,
nr                189 arch/m68k/include/asm/bitops.h 		: "d" (nr ^ 31), "o" (*vaddr)
nr                195 arch/m68k/include/asm/bitops.h #define	test_and_set_bit(nr, vaddr)	bset_reg_test_and_set_bit(nr, vaddr)
nr                197 arch/m68k/include/asm/bitops.h #define	test_and_set_bit(nr, vaddr)	bset_mem_test_and_set_bit(nr, vaddr)
nr                199 arch/m68k/include/asm/bitops.h #define test_and_set_bit(nr, vaddr)	(__builtin_constant_p(nr) ? \
nr                200 arch/m68k/include/asm/bitops.h 					bset_mem_test_and_set_bit(nr, vaddr) : \
nr                201 arch/m68k/include/asm/bitops.h 					bfset_mem_test_and_set_bit(nr, vaddr))
nr                204 arch/m68k/include/asm/bitops.h #define __test_and_set_bit(nr, vaddr)	test_and_set_bit(nr, vaddr)
nr                207 arch/m68k/include/asm/bitops.h static inline int bclr_reg_test_and_clear_bit(int nr,
nr                210 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                215 arch/m68k/include/asm/bitops.h 		: "a" (p), "di" (nr & 7)
nr                220 arch/m68k/include/asm/bitops.h static inline int bclr_mem_test_and_clear_bit(int nr,
nr                223 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                228 arch/m68k/include/asm/bitops.h 		: "di" (nr & 7));
nr                232 arch/m68k/include/asm/bitops.h static inline int bfclr_mem_test_and_clear_bit(int nr,
nr                239 arch/m68k/include/asm/bitops.h 		: "d" (nr ^ 31), "o" (*vaddr)
nr                245 arch/m68k/include/asm/bitops.h #define	test_and_clear_bit(nr, vaddr)	bclr_reg_test_and_clear_bit(nr, vaddr)
nr                247 arch/m68k/include/asm/bitops.h #define	test_and_clear_bit(nr, vaddr)	bclr_mem_test_and_clear_bit(nr, vaddr)
nr                249 arch/m68k/include/asm/bitops.h #define test_and_clear_bit(nr, vaddr)	(__builtin_constant_p(nr) ? \
nr                250 arch/m68k/include/asm/bitops.h 					bclr_mem_test_and_clear_bit(nr, vaddr) : \
nr                251 arch/m68k/include/asm/bitops.h 					bfclr_mem_test_and_clear_bit(nr, vaddr))
nr                254 arch/m68k/include/asm/bitops.h #define __test_and_clear_bit(nr, vaddr)	test_and_clear_bit(nr, vaddr)
nr                257 arch/m68k/include/asm/bitops.h static inline int bchg_reg_test_and_change_bit(int nr,
nr                260 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                265 arch/m68k/include/asm/bitops.h 		: "a" (p), "di" (nr & 7)
nr                270 arch/m68k/include/asm/bitops.h static inline int bchg_mem_test_and_change_bit(int nr,
nr                273 arch/m68k/include/asm/bitops.h 	char *p = (char *)vaddr + (nr ^ 31) / 8;
nr                278 arch/m68k/include/asm/bitops.h 		: "di" (nr & 7));
nr                282 arch/m68k/include/asm/bitops.h static inline int bfchg_mem_test_and_change_bit(int nr,
nr                289 arch/m68k/include/asm/bitops.h 		: "d" (nr ^ 31), "o" (*vaddr)
nr                295 arch/m68k/include/asm/bitops.h #define	test_and_change_bit(nr, vaddr)	bchg_reg_test_and_change_bit(nr, vaddr)
nr                297 arch/m68k/include/asm/bitops.h #define	test_and_change_bit(nr, vaddr)	bchg_mem_test_and_change_bit(nr, vaddr)
nr                299 arch/m68k/include/asm/bitops.h #define test_and_change_bit(nr, vaddr)	(__builtin_constant_p(nr) ? \
nr                300 arch/m68k/include/asm/bitops.h 					bchg_mem_test_and_change_bit(nr, vaddr) : \
nr                301 arch/m68k/include/asm/bitops.h 					bfchg_mem_test_and_change_bit(nr, vaddr))
nr                304 arch/m68k/include/asm/bitops.h #define __test_and_change_bit(nr, vaddr) test_and_change_bit(nr, vaddr)
nr                273 arch/m68k/include/asm/io_mm.h #define isa_insb(port, buf, nr) raw_insb(isa_itb(port), (u8 *)(buf), (nr))
nr                274 arch/m68k/include/asm/io_mm.h #define isa_outsb(port, buf, nr) raw_outsb(isa_itb(port), (u8 *)(buf), (nr))
nr                276 arch/m68k/include/asm/io_mm.h #define isa_insw(port, buf, nr)     \
nr                277 arch/m68k/include/asm/io_mm.h        (ISA_SEX ? raw_insw(isa_itw(port), (u16 *)(buf), (nr)) :    \
nr                278 arch/m68k/include/asm/io_mm.h                   raw_insw_swapw(isa_itw(port), (u16 *)(buf), (nr)))
nr                280 arch/m68k/include/asm/io_mm.h #define isa_outsw(port, buf, nr)    \
nr                281 arch/m68k/include/asm/io_mm.h        (ISA_SEX ? raw_outsw(isa_itw(port), (u16 *)(buf), (nr)) :  \
nr                282 arch/m68k/include/asm/io_mm.h                   raw_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr)))
nr                284 arch/m68k/include/asm/io_mm.h #define isa_insl(port, buf, nr)     \
nr                285 arch/m68k/include/asm/io_mm.h        (ISA_SEX ? raw_insl(isa_itl(port), (u32 *)(buf), (nr)) :    \
nr                286 arch/m68k/include/asm/io_mm.h                   raw_insw_swapw(isa_itw(port), (u16 *)(buf), (nr)<<1))
nr                288 arch/m68k/include/asm/io_mm.h #define isa_outsl(port, buf, nr)    \
nr                289 arch/m68k/include/asm/io_mm.h        (ISA_SEX ? raw_outsl(isa_itl(port), (u32 *)(buf), (nr)) :  \
nr                290 arch/m68k/include/asm/io_mm.h                   raw_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr)<<1))
nr                299 arch/m68k/include/asm/io_mm.h #define isa_rom_insb(port, buf, nr) raw_rom_insb(isa_itb(port), (u8 *)(buf), (nr))
nr                301 arch/m68k/include/asm/io_mm.h #define isa_rom_insw(port, buf, nr)     \
nr                302 arch/m68k/include/asm/io_mm.h        (ISA_SEX ? raw_rom_insw(isa_itw(port), (u16 *)(buf), (nr)) :    \
nr                303 arch/m68k/include/asm/io_mm.h 		  raw_rom_insw_swapw(isa_itw(port), (u16 *)(buf), (nr)))
nr                305 arch/m68k/include/asm/io_mm.h #define isa_rom_outsb(port, buf, nr) raw_rom_outsb(isa_itb(port), (u8 *)(buf), (nr))
nr                307 arch/m68k/include/asm/io_mm.h #define isa_rom_outsw(port, buf, nr)    \
nr                308 arch/m68k/include/asm/io_mm.h        (ISA_SEX ? raw_rom_outsw(isa_itw(port), (u16 *)(buf), (nr)) :  \
nr                309 arch/m68k/include/asm/io_mm.h 		  raw_rom_outsw_swapw(isa_itw(port), (u16 *)(buf), (nr)))
nr                361 arch/m68k/include/asm/io_mm.h #define insb(port, buf, nr)	((port) < 1024 ? isa_rom_insb((port), (buf), (nr)) : isa_insb((port), (buf), (nr)))
nr                362 arch/m68k/include/asm/io_mm.h #define insw(port, buf, nr)	((port) < 1024 ? isa_rom_insw((port), (buf), (nr)) : isa_insw((port), (buf), (nr)))
nr                364 arch/m68k/include/asm/io_mm.h #define outsb(port, buf, nr)	((port) < 1024 ? isa_rom_outsb((port), (buf), (nr)) : isa_outsb((port), (buf), (nr)))
nr                365 arch/m68k/include/asm/io_mm.h #define outsw(port, buf, nr)	((port) < 1024 ? isa_rom_outsw((port), (buf), (nr)) : isa_outsw((port), (buf), (nr)))
nr                377 arch/m68k/include/asm/io_mm.h #define readsb(port, buf, nr)     raw_insb((port), (u8 *)(buf), (nr))
nr                378 arch/m68k/include/asm/io_mm.h #define readsw(port, buf, nr)     raw_insw((port), (u16 *)(buf), (nr))
nr                379 arch/m68k/include/asm/io_mm.h #define readsl(port, buf, nr)     raw_insl((port), (u32 *)(buf), (nr))
nr                380 arch/m68k/include/asm/io_mm.h #define writesb(port, buf, nr)    raw_outsb((port), (u8 *)(buf), (nr))
nr                381 arch/m68k/include/asm/io_mm.h #define writesw(port, buf, nr)    raw_outsw((port), (u16 *)(buf), (nr))
nr                382 arch/m68k/include/asm/io_mm.h #define writesl(port, buf, nr)    raw_outsl((port), (u32 *)(buf), (nr))
nr                 64 arch/m68k/include/asm/kmap.h static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                246 arch/m68k/include/asm/math-emu.h .macro	movestack	nr,arg1,arg2,arg3,arg4,arg5
nr                253 arch/m68k/include/asm/math-emu.h .macro	printf	bit=-1,string,nr=0,arg1,arg2,arg3,arg4,arg5
nr                110 arch/m68k/include/asm/raw_io.h 			     unsigned int nr)
nr                114 arch/m68k/include/asm/raw_io.h 	if (nr & 15) {
nr                115 arch/m68k/include/asm/raw_io.h 		tmp = (nr & 15) - 1;
nr                122 arch/m68k/include/asm/raw_io.h 	if (nr >> 4) {
nr                123 arch/m68k/include/asm/raw_io.h 		tmp = (nr >> 4) - 1;
nr                149 arch/m68k/include/asm/raw_io.h static inline void raw_insw(volatile u16 __iomem *port, u16 *buf, unsigned int nr)
nr                153 arch/m68k/include/asm/raw_io.h 	if (nr & 15) {
nr                154 arch/m68k/include/asm/raw_io.h 		tmp = (nr & 15) - 1;
nr                161 arch/m68k/include/asm/raw_io.h 	if (nr >> 4) {
nr                162 arch/m68k/include/asm/raw_io.h 		tmp = (nr >> 4) - 1;
nr                189 arch/m68k/include/asm/raw_io.h 			     unsigned int nr)
nr                193 arch/m68k/include/asm/raw_io.h 	if (nr & 15) {
nr                194 arch/m68k/include/asm/raw_io.h 		tmp = (nr & 15) - 1;
nr                201 arch/m68k/include/asm/raw_io.h 	if (nr >> 4) {
nr                202 arch/m68k/include/asm/raw_io.h 		tmp = (nr >> 4) - 1;
nr                228 arch/m68k/include/asm/raw_io.h static inline void raw_insl(volatile u32 __iomem *port, u32 *buf, unsigned int nr)
nr                232 arch/m68k/include/asm/raw_io.h 	if (nr & 15) {
nr                233 arch/m68k/include/asm/raw_io.h 		tmp = (nr & 15) - 1;
nr                240 arch/m68k/include/asm/raw_io.h 	if (nr >> 4) {
nr                241 arch/m68k/include/asm/raw_io.h 		tmp = (nr >> 4) - 1;
nr                268 arch/m68k/include/asm/raw_io.h 			     unsigned int nr)
nr                272 arch/m68k/include/asm/raw_io.h 	if (nr & 15) {
nr                273 arch/m68k/include/asm/raw_io.h 		tmp = (nr & 15) - 1;
nr                280 arch/m68k/include/asm/raw_io.h 	if (nr >> 4) {
nr                281 arch/m68k/include/asm/raw_io.h 		tmp = (nr >> 4) - 1;
nr                309 arch/m68k/include/asm/raw_io.h 				  unsigned int nr)
nr                311 arch/m68k/include/asm/raw_io.h     if ((nr) % 8)
nr                322 arch/m68k/include/asm/raw_io.h 		: "g" (port), "g" (buf), "g" (nr)
nr                357 arch/m68k/include/asm/raw_io.h 		: "g" (port), "g" (buf), "g" (nr)
nr                362 arch/m68k/include/asm/raw_io.h 				   unsigned int nr)
nr                364 arch/m68k/include/asm/raw_io.h     if ((nr) % 8)
nr                375 arch/m68k/include/asm/raw_io.h 		: "g" (port), "g" (buf), "g" (nr)
nr                410 arch/m68k/include/asm/raw_io.h 		: "g" (port), "g" (buf), "g" (nr)
nr                434 arch/m68k/include/asm/raw_io.h 				   unsigned int nr)
nr                438 arch/m68k/include/asm/raw_io.h 	for (i = 0; i < nr; i++)
nr                443 arch/m68k/include/asm/raw_io.h 				   unsigned int nr)
nr                447 arch/m68k/include/asm/raw_io.h 	for (i = 0; i < nr; i++)
nr                452 arch/m68k/include/asm/raw_io.h 				   unsigned int nr)
nr                456 arch/m68k/include/asm/raw_io.h 	for (i = 0; i < nr; i++)
nr                461 arch/m68k/include/asm/raw_io.h 				   unsigned int nr)
nr                465 arch/m68k/include/asm/raw_io.h 	for (i = 0; i < nr; i++)
nr               1133 arch/m68k/kernel/traps.c void die_if_kernel (char *str, struct pt_regs *fp, int nr)
nr               1139 arch/m68k/kernel/traps.c 	pr_crit("%s: %08x\n", str, nr);
nr                141 arch/m68k/math-emu/fp_decode.h 	bfextu	%d2{#17,#3},%d0		| get the register nr
nr                 52 arch/microblaze/include/asm/highmem.h #define PKMAP_ADDR(nr)  (PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                399 arch/mips/alchemy/common/clock.c 	long tdv, tpr, pr, nr, br, bpr, diff, lastdiff;
nr                431 arch/mips/alchemy/common/clock.c 		nr = pr / tdv;
nr                432 arch/mips/alchemy/common/clock.c 		diff = req->rate - nr;
nr                433 arch/mips/alchemy/common/clock.c 		if (nr > req->rate)
nr                440 arch/mips/alchemy/common/clock.c 			br = nr;
nr                459 arch/mips/alchemy/common/clock.c 			nr = pr / tdv;
nr                460 arch/mips/alchemy/common/clock.c 			diff = req->rate - nr;
nr                461 arch/mips/alchemy/common/clock.c 			if (nr > req->rate)
nr                467 arch/mips/alchemy/common/clock.c 				br = nr;
nr                 76 arch/mips/ath25/ar2315.c 	unsigned nr, misc_irq = 0;
nr                 81 arch/mips/ath25/ar2315.c 		nr = __ffs(pending);
nr                 82 arch/mips/ath25/ar2315.c 		misc_irq = irq_find_mapping(domain, nr);
nr                 86 arch/mips/ath25/ar2315.c 		if (nr == AR2315_MISC_IRQ_GPIO)
nr                 88 arch/mips/ath25/ar2315.c 		else if (nr == AR2315_MISC_IRQ_WATCHDOG)
nr                 80 arch/mips/ath25/ar5312.c 	unsigned nr, misc_irq = 0;
nr                 85 arch/mips/ath25/ar5312.c 		nr = __ffs(pending);
nr                 86 arch/mips/ath25/ar5312.c 		misc_irq = irq_find_mapping(domain, nr);
nr                 91 arch/mips/ath25/ar5312.c 		if (nr == AR5312_MISC_IRQ_TIMER)
nr                 92 arch/mips/ath25/devices.c int __init ath25_add_wmac(int nr, u32 base, int irq)
nr                 96 arch/mips/ath25/devices.c 	ath25_wmac[nr].dev.platform_data = &ath25_board;
nr                 97 arch/mips/ath25/devices.c 	res = &ath25_wmac[nr].resource[0];
nr                103 arch/mips/ath25/devices.c 	return platform_device_register(&ath25_wmac[nr]);
nr                 32 arch/mips/ath25/devices.h int ath25_add_wmac(int nr, u32 base, int irq);
nr                 30 arch/mips/include/asm/bitops.h void __mips_set_bit(unsigned long nr, volatile unsigned long *addr);
nr                 31 arch/mips/include/asm/bitops.h void __mips_clear_bit(unsigned long nr, volatile unsigned long *addr);
nr                 32 arch/mips/include/asm/bitops.h void __mips_change_bit(unsigned long nr, volatile unsigned long *addr);
nr                 33 arch/mips/include/asm/bitops.h int __mips_test_and_set_bit(unsigned long nr,
nr                 35 arch/mips/include/asm/bitops.h int __mips_test_and_set_bit_lock(unsigned long nr,
nr                 37 arch/mips/include/asm/bitops.h int __mips_test_and_clear_bit(unsigned long nr,
nr                 39 arch/mips/include/asm/bitops.h int __mips_test_and_change_bit(unsigned long nr,
nr                 53 arch/mips/include/asm/bitops.h static inline void set_bit(unsigned long nr, volatile unsigned long *addr)
nr                 55 arch/mips/include/asm/bitops.h 	unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                 56 arch/mips/include/asm/bitops.h 	int bit = nr & SZLONG_MASK;
nr                 99 arch/mips/include/asm/bitops.h 		__mips_set_bit(nr, addr);
nr                112 arch/mips/include/asm/bitops.h static inline void clear_bit(unsigned long nr, volatile unsigned long *addr)
nr                114 arch/mips/include/asm/bitops.h 	unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                115 arch/mips/include/asm/bitops.h 	int bit = nr & SZLONG_MASK;
nr                158 arch/mips/include/asm/bitops.h 		__mips_clear_bit(nr, addr);
nr                169 arch/mips/include/asm/bitops.h static inline void clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
nr                172 arch/mips/include/asm/bitops.h 	clear_bit(nr, addr);
nr                184 arch/mips/include/asm/bitops.h static inline void change_bit(unsigned long nr, volatile unsigned long *addr)
nr                186 arch/mips/include/asm/bitops.h 	int bit = nr & SZLONG_MASK;
nr                189 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                204 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                221 arch/mips/include/asm/bitops.h 		__mips_change_bit(nr, addr);
nr                232 arch/mips/include/asm/bitops.h static inline int test_and_set_bit(unsigned long nr,
nr                235 arch/mips/include/asm/bitops.h 	int bit = nr & SZLONG_MASK;
nr                241 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                257 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                276 arch/mips/include/asm/bitops.h 		res = __mips_test_and_set_bit(nr, addr);
nr                291 arch/mips/include/asm/bitops.h static inline int test_and_set_bit_lock(unsigned long nr,
nr                294 arch/mips/include/asm/bitops.h 	int bit = nr & SZLONG_MASK;
nr                298 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                314 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                333 arch/mips/include/asm/bitops.h 		res = __mips_test_and_set_bit_lock(nr, addr);
nr                347 arch/mips/include/asm/bitops.h static inline int test_and_clear_bit(unsigned long nr,
nr                350 arch/mips/include/asm/bitops.h 	int bit = nr & SZLONG_MASK;
nr                356 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                373 arch/mips/include/asm/bitops.h 	} else if (kernel_uses_llsc && __builtin_constant_p(nr)) {
nr                374 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                390 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                410 arch/mips/include/asm/bitops.h 		res = __mips_test_and_clear_bit(nr, addr);
nr                425 arch/mips/include/asm/bitops.h static inline int test_and_change_bit(unsigned long nr,
nr                428 arch/mips/include/asm/bitops.h 	int bit = nr & SZLONG_MASK;
nr                434 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                450 arch/mips/include/asm/bitops.h 		unsigned long *m = ((unsigned long *) addr) + (nr >> SZLONG_LOG);
nr                469 arch/mips/include/asm/bitops.h 		res = __mips_test_and_change_bit(nr, addr);
nr                487 arch/mips/include/asm/bitops.h static inline void __clear_bit_unlock(unsigned long nr, volatile unsigned long *addr)
nr                490 arch/mips/include/asm/bitops.h 	__clear_bit(nr, addr);
nr                 47 arch/mips/include/asm/highmem.h #define PKMAP_ADDR(nr)	(PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                 27 arch/mips/include/asm/mach-lantiq/xway/xway_dma.h 	int nr;				/* the channel number */
nr                 36 arch/mips/include/asm/vdso/gettimeofday.h 	register long nr asm("v0") = __NR_gettimeofday;
nr                 42 arch/mips/include/asm/vdso/gettimeofday.h 	: "r" (tv), "r" (tz), "r" (nr)
nr                 57 arch/mips/include/asm/vdso/gettimeofday.h 	register long nr asm("v0") = __NR_clock_gettime;
nr                 59 arch/mips/include/asm/vdso/gettimeofday.h 	register long nr asm("v0") = __NR_clock_gettime64;
nr                 66 arch/mips/include/asm/vdso/gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                 81 arch/mips/include/asm/vdso/gettimeofday.h 	register long nr asm("v0") = __NR_clock_getres;
nr                 83 arch/mips/include/asm/vdso/gettimeofday.h 	register long nr asm("v0") = __NR_clock_getres_time64;
nr                 90 arch/mips/include/asm/vdso/gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                108 arch/mips/include/asm/vdso/gettimeofday.h 	register long nr asm("v0") = __NR_clock_gettime;
nr                114 arch/mips/include/asm/vdso/gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                128 arch/mips/include/asm/vdso/gettimeofday.h 	register long nr asm("v0") = __NR_clock_getres;
nr                134 arch/mips/include/asm/vdso/gettimeofday.h 	: "r" (clkid), "r" (ts), "r" (nr)
nr                393 arch/mips/kernel/ftrace.c unsigned long __init arch_syscall_addr(int nr)
nr                395 arch/mips/kernel/ftrace.c 	return (unsigned long)sys_call_table[nr - __NR_O32_Linux];
nr                401 arch/mips/kernel/ftrace.c unsigned long __init arch_syscall_addr(int nr)
nr                404 arch/mips/kernel/ftrace.c 	if (nr >= __NR_N32_Linux && nr < __NR_N32_Linux + __NR_N32_Linux_syscalls)
nr                405 arch/mips/kernel/ftrace.c 		return (unsigned long)sysn32_call_table[nr - __NR_N32_Linux];
nr                407 arch/mips/kernel/ftrace.c 	if (nr >= __NR_64_Linux  && nr < __NR_64_Linux + __NR_64_Linux_syscalls)
nr                408 arch/mips/kernel/ftrace.c 		return (unsigned long)sys_call_table[nr - __NR_64_Linux];
nr                410 arch/mips/kernel/ftrace.c 	if (nr >= __NR_O32_Linux && nr < __NR_O32_Linux + __NR_O32_Linux_syscalls)
nr                411 arch/mips/kernel/ftrace.c 		return (unsigned long)sys32_call_table[nr - __NR_O32_Linux];
nr                 36 arch/mips/kernel/perf_event.c 			if (entry->nr >= entry->max_stack)
nr                 60 arch/mips/kernel/perf_event.c 		if (entry->nr >= entry->max_stack)
nr               1420 arch/mips/kernel/ptrace.c 		sd.nr = syscall;
nr                 60 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
nr                 61 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(0, 1 << ch->nr, LTQ_DMA_IRNEN);
nr                 72 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
nr                 73 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(1 << ch->nr, 0, LTQ_DMA_IRNEN);
nr                 84 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
nr                 96 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
nr                108 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
nr                110 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(1 << ch->nr, 0, LTQ_DMA_IRNEN);
nr                126 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32(ch->nr, LTQ_DMA_CS);
nr                146 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(0, 1 << ch->nr, LTQ_DMA_IRNEN);
nr                161 arch/mips/lantiq/xway/dma.c 	ltq_dma_w32_mask(0, 1 << ch->nr, LTQ_DMA_IRNEN);
nr                 20 arch/mips/lib/bitops.c void __mips_set_bit(unsigned long nr, volatile unsigned long *addr)
nr                 23 arch/mips/lib/bitops.c 	unsigned bit = nr & SZLONG_MASK;
nr                 27 arch/mips/lib/bitops.c 	a += nr >> SZLONG_LOG;
nr                 42 arch/mips/lib/bitops.c void __mips_clear_bit(unsigned long nr, volatile unsigned long *addr)
nr                 45 arch/mips/lib/bitops.c 	unsigned bit = nr & SZLONG_MASK;
nr                 49 arch/mips/lib/bitops.c 	a += nr >> SZLONG_LOG;
nr                 64 arch/mips/lib/bitops.c void __mips_change_bit(unsigned long nr, volatile unsigned long *addr)
nr                 67 arch/mips/lib/bitops.c 	unsigned bit = nr & SZLONG_MASK;
nr                 71 arch/mips/lib/bitops.c 	a += nr >> SZLONG_LOG;
nr                 86 arch/mips/lib/bitops.c int __mips_test_and_set_bit(unsigned long nr,
nr                 90 arch/mips/lib/bitops.c 	unsigned bit = nr & SZLONG_MASK;
nr                 95 arch/mips/lib/bitops.c 	a += nr >> SZLONG_LOG;
nr                112 arch/mips/lib/bitops.c int __mips_test_and_set_bit_lock(unsigned long nr,
nr                116 arch/mips/lib/bitops.c 	unsigned bit = nr & SZLONG_MASK;
nr                121 arch/mips/lib/bitops.c 	a += nr >> SZLONG_LOG;
nr                138 arch/mips/lib/bitops.c int __mips_test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)
nr                141 arch/mips/lib/bitops.c 	unsigned bit = nr & SZLONG_MASK;
nr                146 arch/mips/lib/bitops.c 	a += nr >> SZLONG_LOG;
nr                163 arch/mips/lib/bitops.c int __mips_test_and_change_bit(unsigned long nr, volatile unsigned long *addr)
nr                166 arch/mips/lib/bitops.c 	unsigned bit = nr & SZLONG_MASK;
nr                171 arch/mips/lib/bitops.c 	a += nr >> SZLONG_LOG;
nr                 17 arch/mips/lib/iomap-pci.c 			       unsigned long port, unsigned int nr)
nr                 57 arch/mips/sgi-ip27/ip27-nmi.c 	struct reg_struct *nr;
nr                 61 arch/mips/sgi-ip27/ip27-nmi.c 	nr = (struct reg_struct *)
nr                 73 arch/mips/sgi-ip27/ip27-nmi.c 		pr_cont(" %016lx", nr->gpr[i]);
nr                 86 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("epc   : %016lx %pS\n", nr->epc, (void *)nr->epc);
nr                 88 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("ErrEPC: %016lx %pS\n", nr->error_epc, (void *)nr->error_epc);
nr                 89 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("ra    : %016lx %pS\n", nr->gpr[31], (void *)nr->gpr[31]);
nr                 90 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("Status: %08lx	      ", nr->sr);
nr                 92 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_KX)
nr                 94 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_SX)
nr                 96 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_UX)
nr                 99 arch/mips/sgi-ip27/ip27-nmi.c 	switch (nr->sr & ST0_KSU) {
nr                114 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_ERL)
nr                116 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_EXL)
nr                118 arch/mips/sgi-ip27/ip27-nmi.c 	if (nr->sr & ST0_IE)
nr                122 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("Cause : %08lx\n", nr->cause);
nr                124 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("BadVA : %016lx\n", nr->badva);
nr                125 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("CErr  : %016lx\n", nr->cache_err);
nr                126 arch/mips/sgi-ip27/ip27-nmi.c 	pr_emerg("NMI_SR: %016lx\n", nr->nmi_sr);
nr                 34 arch/nds32/include/asm/highmem.h #define PKMAP_ADDR(nr)		(PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr               1384 arch/nds32/kernel/perf_event_cpu.c 	if (entry->nr < PERF_MAX_STACK_DEPTH &&
nr               1438 arch/nds32/kernel/perf_event_cpu.c 				while ((entry->nr < PERF_MAX_STACK_DEPTH) &&
nr               1452 arch/nds32/kernel/perf_event_cpu.c 				while ((entry->nr < PERF_MAX_STACK_DEPTH) &&
nr               1466 arch/nds32/kernel/perf_event_cpu.c 			while ((entry->nr < PERF_MAX_STACK_DEPTH) &&
nr                 10 arch/nds32/kernel/syscall_table.c #define __SYSCALL(nr, call) [nr] = (call),
nr                 13 arch/nios2/kernel/syscall_table.c #define __SYSCALL(nr, call) [nr] = (call),
nr                 12 arch/openrisc/include/asm/bitops/atomic.h static inline void set_bit(int nr, volatile unsigned long *addr)
nr                 14 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 15 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 29 arch/openrisc/include/asm/bitops/atomic.h static inline void clear_bit(int nr, volatile unsigned long *addr)
nr                 31 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 32 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 46 arch/openrisc/include/asm/bitops/atomic.h static inline void change_bit(int nr, volatile unsigned long *addr)
nr                 48 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 49 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 63 arch/openrisc/include/asm/bitops/atomic.h static inline int test_and_set_bit(int nr, volatile unsigned long *addr)
nr                 65 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 66 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 83 arch/openrisc/include/asm/bitops/atomic.h static inline int test_and_clear_bit(int nr, volatile unsigned long *addr)
nr                 85 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 86 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                103 arch/openrisc/include/asm/bitops/atomic.h static inline int test_and_change_bit(int nr, volatile unsigned long *addr)
nr                105 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                106 arch/openrisc/include/asm/bitops/atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 20 arch/openrisc/kernel/sys_call_table.c #define __SYSCALL(nr, call) [nr] = (call),
nr                 36 arch/parisc/include/asm/bitops.h static __inline__ void set_bit(int nr, volatile unsigned long * addr)
nr                 38 arch/parisc/include/asm/bitops.h 	unsigned long mask = 1UL << CHOP_SHIFTCOUNT(nr);
nr                 41 arch/parisc/include/asm/bitops.h 	addr += (nr >> SHIFT_PER_LONG);
nr                 47 arch/parisc/include/asm/bitops.h static __inline__ void clear_bit(int nr, volatile unsigned long * addr)
nr                 49 arch/parisc/include/asm/bitops.h 	unsigned long mask = ~(1UL << CHOP_SHIFTCOUNT(nr));
nr                 52 arch/parisc/include/asm/bitops.h 	addr += (nr >> SHIFT_PER_LONG);
nr                 58 arch/parisc/include/asm/bitops.h static __inline__ void change_bit(int nr, volatile unsigned long * addr)
nr                 60 arch/parisc/include/asm/bitops.h 	unsigned long mask = 1UL << CHOP_SHIFTCOUNT(nr);
nr                 63 arch/parisc/include/asm/bitops.h 	addr += (nr >> SHIFT_PER_LONG);
nr                 69 arch/parisc/include/asm/bitops.h static __inline__ int test_and_set_bit(int nr, volatile unsigned long * addr)
nr                 71 arch/parisc/include/asm/bitops.h 	unsigned long mask = 1UL << CHOP_SHIFTCOUNT(nr);
nr                 76 arch/parisc/include/asm/bitops.h 	addr += (nr >> SHIFT_PER_LONG);
nr                 87 arch/parisc/include/asm/bitops.h static __inline__ int test_and_clear_bit(int nr, volatile unsigned long * addr)
nr                 89 arch/parisc/include/asm/bitops.h 	unsigned long mask = 1UL << CHOP_SHIFTCOUNT(nr);
nr                 94 arch/parisc/include/asm/bitops.h 	addr += (nr >> SHIFT_PER_LONG);
nr                105 arch/parisc/include/asm/bitops.h static __inline__ int test_and_change_bit(int nr, volatile unsigned long * addr)
nr                107 arch/parisc/include/asm/bitops.h 	unsigned long mask = 1UL << CHOP_SHIFTCOUNT(nr);
nr                111 arch/parisc/include/asm/bitops.h 	addr += (nr >> SHIFT_PER_LONG);
nr                 49 arch/parisc/include/asm/unistd.h #define K_INLINE_SYSCALL(name, nr, args...)	({			\
nr                 53 arch/parisc/include/asm/unistd.h 		K_LOAD_ARGS_##nr(args)					\
nr                 61 arch/parisc/include/asm/unistd.h 			: "i" (SYS_ify(name)) K_ASM_ARGS_##nr   	\
nr                 62 arch/parisc/include/asm/unistd.h 			: "memory", K_CALL_CLOB_REGS K_CLOB_ARGS_##nr	\
nr                488 arch/parisc/lib/iomap.c void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                 89 arch/powerpc/include/asm/bitops.h static __inline__ void set_bit(int nr, volatile unsigned long *addr)
nr                 91 arch/powerpc/include/asm/bitops.h 	set_bits(BIT_MASK(nr), addr + BIT_WORD(nr));
nr                 94 arch/powerpc/include/asm/bitops.h static __inline__ void clear_bit(int nr, volatile unsigned long *addr)
nr                 96 arch/powerpc/include/asm/bitops.h 	clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr));
nr                 99 arch/powerpc/include/asm/bitops.h static __inline__ void clear_bit_unlock(int nr, volatile unsigned long *addr)
nr                101 arch/powerpc/include/asm/bitops.h 	clear_bits_unlock(BIT_MASK(nr), addr + BIT_WORD(nr));
nr                104 arch/powerpc/include/asm/bitops.h static __inline__ void change_bit(int nr, volatile unsigned long *addr)
nr                106 arch/powerpc/include/asm/bitops.h 	change_bits(BIT_MASK(nr), addr + BIT_WORD(nr));
nr                141 arch/powerpc/include/asm/bitops.h static __inline__ int test_and_set_bit(unsigned long nr,
nr                144 arch/powerpc/include/asm/bitops.h 	return test_and_set_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0;
nr                147 arch/powerpc/include/asm/bitops.h static __inline__ int test_and_set_bit_lock(unsigned long nr,
nr                150 arch/powerpc/include/asm/bitops.h 	return test_and_set_bits_lock(BIT_MASK(nr),
nr                151 arch/powerpc/include/asm/bitops.h 				addr + BIT_WORD(nr)) != 0;
nr                154 arch/powerpc/include/asm/bitops.h static __inline__ int test_and_clear_bit(unsigned long nr,
nr                157 arch/powerpc/include/asm/bitops.h 	return test_and_clear_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0;
nr                160 arch/powerpc/include/asm/bitops.h static __inline__ int test_and_change_bit(unsigned long nr,
nr                163 arch/powerpc/include/asm/bitops.h 	return test_and_change_bits(BIT_MASK(nr), addr + BIT_WORD(nr)) != 0;
nr                167 arch/powerpc/include/asm/bitops.h static __inline__ unsigned long clear_bit_unlock_return_word(int nr,
nr                171 arch/powerpc/include/asm/bitops.h 	unsigned long *p = (unsigned long *)addr + BIT_WORD(nr);
nr                172 arch/powerpc/include/asm/bitops.h 	unsigned long mask = BIT_MASK(nr);
nr                189 arch/powerpc/include/asm/bitops.h #define clear_bit_unlock_is_negative_byte(nr, addr)			\
nr                190 arch/powerpc/include/asm/bitops.h 	(clear_bit_unlock_return_word(nr, addr) & BIT_MASK(PG_waiters))
nr                196 arch/powerpc/include/asm/bitops.h static __inline__ void __clear_bit_unlock(int nr, volatile unsigned long *addr)
nr                199 arch/powerpc/include/asm/bitops.h 	__clear_bit(nr, addr);
nr                467 arch/powerpc/include/asm/epapr_hcalls.h 			    unsigned long nr)
nr                478 arch/powerpc/include/asm/epapr_hcalls.h 	register unsigned long r11 asm("r11") = nr;
nr                503 arch/powerpc/include/asm/epapr_hcalls.h 				   unsigned long nr)
nr                509 arch/powerpc/include/asm/epapr_hcalls.h static inline long epapr_hypercall0_1(unsigned int nr, unsigned long *r2)
nr                515 arch/powerpc/include/asm/epapr_hcalls.h 	r = epapr_hypercall(in, out, nr);
nr                521 arch/powerpc/include/asm/epapr_hcalls.h static inline long epapr_hypercall0(unsigned int nr)
nr                526 arch/powerpc/include/asm/epapr_hcalls.h 	return epapr_hypercall(in, out, nr);
nr                529 arch/powerpc/include/asm/epapr_hcalls.h static inline long epapr_hypercall1(unsigned int nr, unsigned long p1)
nr                535 arch/powerpc/include/asm/epapr_hcalls.h 	return epapr_hypercall(in, out, nr);
nr                538 arch/powerpc/include/asm/epapr_hcalls.h static inline long epapr_hypercall2(unsigned int nr, unsigned long p1,
nr                546 arch/powerpc/include/asm/epapr_hcalls.h 	return epapr_hypercall(in, out, nr);
nr                549 arch/powerpc/include/asm/epapr_hcalls.h static inline long epapr_hypercall3(unsigned int nr, unsigned long p1,
nr                558 arch/powerpc/include/asm/epapr_hcalls.h 	return epapr_hypercall(in, out, nr);
nr                561 arch/powerpc/include/asm/epapr_hcalls.h static inline long epapr_hypercall4(unsigned int nr, unsigned long p1,
nr                572 arch/powerpc/include/asm/epapr_hcalls.h 	return epapr_hypercall(in, out, nr);
nr                 60 arch/powerpc/include/asm/highmem.h #define PKMAP_ADDR(nr)  (PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                988 arch/powerpc/include/asm/kvm_ppc.h static inline u32 kvmppc_get_sr(struct kvm_vcpu *vcpu, int nr)
nr                991 arch/powerpc/include/asm/kvm_ppc.h 	       return be32_to_cpu(vcpu->arch.shared->sr[nr]);
nr                993 arch/powerpc/include/asm/kvm_ppc.h 	       return le32_to_cpu(vcpu->arch.shared->sr[nr]);
nr                996 arch/powerpc/include/asm/kvm_ppc.h static inline void kvmppc_set_sr(struct kvm_vcpu *vcpu, int nr, u32 val)
nr                999 arch/powerpc/include/asm/kvm_ppc.h 	       vcpu->arch.shared->sr[nr] = cpu_to_be32(val);
nr               1001 arch/powerpc/include/asm/kvm_ppc.h 	       vcpu->arch.shared->sr[nr] = cpu_to_le32(val);
nr                 44 arch/powerpc/include/asm/smp.h 	int   (*kick_cpu)(int nr);
nr                 45 arch/powerpc/include/asm/smp.h 	int   (*prepare_cpu)(int nr);
nr                 46 arch/powerpc/include/asm/smp.h 	void  (*setup_cpu)(int nr);
nr                 51 arch/powerpc/include/asm/smp.h 	void  (*cpu_die)(unsigned int nr);
nr                 52 arch/powerpc/include/asm/smp.h 	int   (*cpu_bootable)(unsigned int nr);
nr                229 arch/powerpc/include/asm/smp.h extern int smp_generic_kick_cpu(int nr);
nr                230 arch/powerpc/include/asm/smp.h extern int smp_generic_cpu_bootable(unsigned int nr);
nr                116 arch/powerpc/kernel/smp.c int smp_generic_cpu_bootable(unsigned int nr)
nr                122 arch/powerpc/kernel/smp.c 		if (!smt_enabled_at_boot && cpu_thread_in_core(nr) != 0)
nr                125 arch/powerpc/kernel/smp.c 		    && cpu_thread_in_core(nr) >= smt_enabled_at_boot)
nr                134 arch/powerpc/kernel/smp.c int smp_generic_kick_cpu(int nr)
nr                136 arch/powerpc/kernel/smp.c 	if (nr < 0 || nr >= nr_cpu_ids)
nr                144 arch/powerpc/kernel/smp.c 	if (!paca_ptrs[nr]->cpu_start) {
nr                145 arch/powerpc/kernel/smp.c 		paca_ptrs[nr]->cpu_start = 1;
nr                155 arch/powerpc/kernel/smp.c 	generic_set_cpu_up(nr);
nr                157 arch/powerpc/kernel/smp.c 	smp_send_reschedule(nr);
nr                374 arch/powerpc/kvm/book3s_emulate.c 			run->papr_hcall.nr = cmd;
nr               1348 arch/powerpc/kvm/book3s_hv.c 		run->papr_hcall.nr = kvmppc_get_gpr(vcpu, 3);
nr               1291 arch/powerpc/kvm/book3s_pr.c 			run->papr_hcall.nr = cmd;
nr                116 arch/powerpc/kvm/book3s_xics.h 							 u32 nr)
nr                122 arch/powerpc/kvm/book3s_xics.h 		if (vcpu->arch.icp && nr == vcpu->arch.icp->server_num)
nr                193 arch/powerpc/kvm/book3s_xive.h static inline struct kvm_vcpu *kvmppc_xive_find_server(struct kvm *kvm, u32 nr)
nr                199 arch/powerpc/kvm/book3s_xive.h 		if (vcpu->arch.xive_vcpu && nr == vcpu->arch.xive_vcpu->server_num)
nr                162 arch/powerpc/kvm/powerpc.c 	int nr = kvmppc_get_gpr(vcpu, 11);
nr                178 arch/powerpc/kvm/powerpc.c 	switch (nr) {
nr                646 arch/powerpc/lib/rheap.c 	int nr;
nr                663 arch/powerpc/lib/rheap.c 	nr = 0;
nr                666 arch/powerpc/lib/rheap.c 		if (stats != NULL && nr < max_stats) {
nr                672 arch/powerpc/lib/rheap.c 		nr++;
nr                675 arch/powerpc/lib/rheap.c 	return nr;
nr                708 arch/powerpc/lib/rheap.c 	int i, nr;
nr                717 arch/powerpc/lib/rheap.c 	nr = rh_get_stats(info, RHGS_FREE, maxnr, st);
nr                718 arch/powerpc/lib/rheap.c 	if (nr > maxnr)
nr                719 arch/powerpc/lib/rheap.c 		nr = maxnr;
nr                720 arch/powerpc/lib/rheap.c 	for (i = 0; i < nr; i++)
nr                728 arch/powerpc/lib/rheap.c 	nr = rh_get_stats(info, RHGS_TAKEN, maxnr, st);
nr                729 arch/powerpc/lib/rheap.c 	if (nr > maxnr)
nr                730 arch/powerpc/lib/rheap.c 		nr = maxnr;
nr                731 arch/powerpc/lib/rheap.c 	for (i = 0; i < nr; i++)
nr                247 arch/powerpc/perf/callchain.c 	while (entry->nr < entry->max_stack) {
nr                453 arch/powerpc/perf/callchain.c 	while (entry->nr < entry->max_stack) {
nr                528 arch/powerpc/perf/core-book3s.c 	cpuhw->bhrb_stack.nr = u_index;
nr                267 arch/powerpc/platforms/85xx/smp.c static int smp_85xx_kick_cpu(int nr)
nr                271 arch/powerpc/platforms/85xx/smp.c 	int primary = nr;
nr                274 arch/powerpc/platforms/85xx/smp.c 	WARN_ON(nr < 0 || nr >= num_possible_cpus());
nr                276 arch/powerpc/platforms/85xx/smp.c 	pr_debug("kick CPU #%d\n", nr);
nr                283 arch/powerpc/platforms/85xx/smp.c 		booting_thread_hwid = cpu_thread_in_core(nr);
nr                284 arch/powerpc/platforms/85xx/smp.c 		primary = cpu_first_thread_sibling(nr);
nr                287 arch/powerpc/platforms/85xx/smp.c 			qoriq_pm_ops->cpu_up_prepare(nr);
nr                295 arch/powerpc/platforms/85xx/smp.c 					wake_hw_thread, &nr, 1);
nr                299 arch/powerpc/platforms/85xx/smp.c 					wake_hw_thread, &nr, 1);
nr                327 arch/powerpc/platforms/85xx/smp.c 	paca_ptrs[nr]->cpu_start = 1;
nr                328 arch/powerpc/platforms/85xx/smp.c 	generic_set_cpu_up(nr);
nr                332 arch/powerpc/platforms/85xx/smp.c 	ret = smp_85xx_start_cpu(nr);
nr                336 arch/powerpc/platforms/85xx/smp.c 	generic_set_cpu_up(nr);
nr                 34 arch/powerpc/platforms/86xx/mpc86xx_smp.c smp_86xx_release_core(int nr)
nr                 39 arch/powerpc/platforms/86xx/mpc86xx_smp.c 	if (nr < 0 || nr >= NR_CPUS)
nr                 48 arch/powerpc/platforms/86xx/mpc86xx_smp.c 	pcr |= 1 << (nr + 24);
nr                 56 arch/powerpc/platforms/86xx/mpc86xx_smp.c smp_86xx_kick_cpu(int nr)
nr                 63 arch/powerpc/platforms/86xx/mpc86xx_smp.c 	if (nr < 0 || nr >= NR_CPUS)
nr                 66 arch/powerpc/platforms/86xx/mpc86xx_smp.c 	pr_debug("smp_86xx_kick_cpu: kick CPU #%d\n", nr);
nr                 78 arch/powerpc/platforms/86xx/mpc86xx_smp.c 	smp_86xx_release_core(nr);
nr                 81 arch/powerpc/platforms/86xx/mpc86xx_smp.c 	while ((__secondary_hold_acknowledge != nr) && (n++, n < 1000))
nr                 89 arch/powerpc/platforms/86xx/mpc86xx_smp.c 	pr_debug("wait CPU #%d for %d msecs.\n", nr, n);
nr                112 arch/powerpc/platforms/cell/smp.c static int smp_cell_kick_cpu(int nr)
nr                114 arch/powerpc/platforms/cell/smp.c 	if (nr < 0 || nr >= nr_cpu_ids)
nr                117 arch/powerpc/platforms/cell/smp.c 	if (!smp_startup_cpu(nr))
nr                125 arch/powerpc/platforms/cell/smp.c 	paca_ptrs[nr]->cpu_start = 1;
nr                 99 arch/powerpc/platforms/cell/spu_base.c 	int nr = (NR_CPUS > 1) ? NR_CPUS : NR_CPUS + 1;
nr                102 arch/powerpc/platforms/cell/spu_base.c 	bitmap_fill(cpumask_bits(mm_cpumask(mm)), nr);
nr                 38 arch/powerpc/platforms/cell/spu_callbacks.c #define __SYSCALL(nr, entry)	entry,
nr                189 arch/powerpc/platforms/cell/spu_manage.c static int spu_map_resource(struct spu *spu, int nr,
nr                197 arch/powerpc/platforms/cell/spu_manage.c 	ret = of_address_to_resource(np, nr, &resource);
nr                 33 arch/powerpc/platforms/chrp/smp.c static int smp_chrp_kick_cpu(int nr)
nr                 35 arch/powerpc/platforms/chrp/smp.c 	*(unsigned long *)KERNELBASE = nr;
nr                333 arch/powerpc/platforms/powermac/smp.c static int __init smp_psurge_kick_cpu(int nr)
nr                335 arch/powerpc/platforms/powermac/smp.c 	unsigned long start = __pa(__secondary_start_pmac_0) + nr * 8;
nr                358 arch/powerpc/platforms/powermac/smp.c 	psurge_set_ipi(nr);
nr                365 arch/powerpc/platforms/powermac/smp.c 	psurge_clr_ipi(nr);
nr                372 arch/powerpc/platforms/powermac/smp.c 	for (i = 0; i < 100000 && !cpu_callin_map[nr]; ++i) {
nr                377 arch/powerpc/platforms/powermac/smp.c 	if (!cpu_callin_map[nr])
nr                797 arch/powerpc/platforms/powermac/smp.c static int smp_core99_kick_cpu(int nr)
nr                803 arch/powerpc/platforms/powermac/smp.c 	if (nr < 0 || nr > 3)
nr                817 arch/powerpc/platforms/powermac/smp.c 	target = (unsigned long) __secondary_start_pmac_0 + nr * 8;
nr                821 arch/powerpc/platforms/powermac/smp.c 	pmac_call_feature(PMAC_FTR_RESET_CPU, NULL, nr, 0);
nr                 64 arch/powerpc/platforms/powernv/smp.c static int pnv_smp_kick_cpu(int nr)
nr                 72 arch/powerpc/platforms/powernv/smp.c 	if (nr < 0 || nr >= nr_cpu_ids)
nr                 75 arch/powerpc/platforms/powernv/smp.c 	pcpu = get_hard_smp_processor_id(nr);
nr                 80 arch/powerpc/platforms/powernv/smp.c 	if (paca_ptrs[nr]->cpu_start || !firmware_has_feature(FW_FEATURE_OPAL))
nr                 91 arch/powerpc/platforms/powernv/smp.c 		pr_warn("OPAL Error %ld querying CPU %d state\n", rc, nr);
nr                106 arch/powerpc/platforms/powernv/smp.c 		pr_devel("OPAL: Starting CPU %d (HW 0x%x)...\n", nr, pcpu);
nr                109 arch/powerpc/platforms/powernv/smp.c 			pr_warn("OPAL Error %ld starting CPU %d\n", rc, nr);
nr                120 arch/powerpc/platforms/powernv/smp.c 			 " (status %d)...\n", nr, pcpu, status);
nr                125 arch/powerpc/platforms/powernv/smp.c 	return smp_generic_kick_cpu(nr);
nr                296 arch/powerpc/platforms/powernv/smp.c static int pnv_cpu_bootable(unsigned int nr)
nr                307 arch/powerpc/platforms/powernv/smp.c 	return smp_generic_cpu_bootable(nr);
nr                139 arch/powerpc/platforms/pseries/cmm.c static long cmm_alloc_pages(long nr)
nr                145 arch/powerpc/platforms/pseries/cmm.c 	cmm_dbg("Begin request for %ld pages\n", nr);
nr                147 arch/powerpc/platforms/pseries/cmm.c 	while (nr) {
nr                199 arch/powerpc/platforms/pseries/cmm.c 		nr--;
nr                202 arch/powerpc/platforms/pseries/cmm.c 	cmm_dbg("End request with %ld pages unfulfilled\n", nr);
nr                203 arch/powerpc/platforms/pseries/cmm.c 	return nr;
nr                213 arch/powerpc/platforms/pseries/cmm.c static long cmm_free_pages(long nr)
nr                218 arch/powerpc/platforms/pseries/cmm.c 	cmm_dbg("Begin free of %ld pages.\n", nr);
nr                221 arch/powerpc/platforms/pseries/cmm.c 	while (nr) {
nr                235 arch/powerpc/platforms/pseries/cmm.c 		nr--;
nr                239 arch/powerpc/platforms/pseries/cmm.c 	cmm_dbg("End request with %ld pages unfulfilled\n", nr);
nr                240 arch/powerpc/platforms/pseries/cmm.c 	return nr;
nr                256 arch/powerpc/platforms/pseries/cmm.c 	long nr = KB2PAGES(oom_kb);
nr                259 arch/powerpc/platforms/pseries/cmm.c 	nr = cmm_free_pages(nr);
nr                261 arch/powerpc/platforms/pseries/cmm.c 	*freed += KB2PAGES(oom_kb) - nr;
nr                262 arch/powerpc/platforms/pseries/cmm.c 	oom_freed_pages += KB2PAGES(oom_kb) - nr;
nr                152 arch/powerpc/platforms/pseries/smp.c static int smp_pSeries_kick_cpu(int nr)
nr                154 arch/powerpc/platforms/pseries/smp.c 	if (nr < 0 || nr >= nr_cpu_ids)
nr                157 arch/powerpc/platforms/pseries/smp.c 	if (!smp_startup_cpu(nr))
nr                165 arch/powerpc/platforms/pseries/smp.c 	paca_ptrs[nr]->cpu_start = 1;
nr                167 arch/powerpc/platforms/pseries/smp.c 	set_preferred_offline_state(nr, CPU_STATE_ONLINE);
nr                169 arch/powerpc/platforms/pseries/smp.c 	if (get_cpu_current_state(nr) == CPU_STATE_INACTIVE) {
nr                173 arch/powerpc/platforms/pseries/smp.c 		hcpuid = get_hard_smp_processor_id(nr);
nr                177 arch/powerpc/platforms/pseries/smp.c 						"Ret= %ld\n", nr, rc);
nr               2378 arch/powerpc/xmon/xmon.c 	long n, m, r, nr;
nr               2383 arch/powerpc/xmon/xmon.c 		nr = mread(adrs, temp, r);
nr               2384 arch/powerpc/xmon/xmon.c 		adrs += nr;
nr               2386 arch/powerpc/xmon/xmon.c 			if (m < nr)
nr               2392 arch/powerpc/xmon/xmon.c 		if (nr < r)
nr               2797 arch/powerpc/xmon/xmon.c 	long n, m, c, r, nr;
nr               2804 arch/powerpc/xmon/xmon.c 		nr = mread(adrs, temp, r);
nr               2805 arch/powerpc/xmon/xmon.c 		adrs += nr;
nr               2809 arch/powerpc/xmon/xmon.c 			if (m < nr)
nr               2821 arch/powerpc/xmon/xmon.c 			if (m < nr) {
nr               2831 arch/powerpc/xmon/xmon.c 		if (nr < r)
nr               2842 arch/powerpc/xmon/xmon.c 	int nr, dotted;
nr               2849 arch/powerpc/xmon/xmon.c 		nr = mread(adr, val, 4);
nr               2850 arch/powerpc/xmon/xmon.c 		if (nr == 0) {
nr                 37 arch/riscv/include/asm/bitops.h #define __test_and_op_bit_ord(op, mod, nr, addr, ord)		\
nr                 40 arch/riscv/include/asm/bitops.h 	__mask = BIT_MASK(nr);					\
nr                 43 arch/riscv/include/asm/bitops.h 		: "=r" (__res), "+A" (addr[BIT_WORD(nr)])	\
nr                 49 arch/riscv/include/asm/bitops.h #define __op_bit_ord(op, mod, nr, addr, ord)			\
nr                 52 arch/riscv/include/asm/bitops.h 		: "+A" (addr[BIT_WORD(nr)])			\
nr                 53 arch/riscv/include/asm/bitops.h 		: "r" (mod(BIT_MASK(nr)))			\
nr                 56 arch/riscv/include/asm/bitops.h #define __test_and_op_bit(op, mod, nr, addr) 			\
nr                 57 arch/riscv/include/asm/bitops.h 	__test_and_op_bit_ord(op, mod, nr, addr, .aqrl)
nr                 58 arch/riscv/include/asm/bitops.h #define __op_bit(op, mod, nr, addr)				\
nr                 59 arch/riscv/include/asm/bitops.h 	__op_bit_ord(op, mod, nr, addr, )
nr                 72 arch/riscv/include/asm/bitops.h static inline int test_and_set_bit(int nr, volatile unsigned long *addr)
nr                 74 arch/riscv/include/asm/bitops.h 	return __test_and_op_bit(or, __NOP, nr, addr);
nr                 84 arch/riscv/include/asm/bitops.h static inline int test_and_clear_bit(int nr, volatile unsigned long *addr)
nr                 86 arch/riscv/include/asm/bitops.h 	return __test_and_op_bit(and, __NOT, nr, addr);
nr                 97 arch/riscv/include/asm/bitops.h static inline int test_and_change_bit(int nr, volatile unsigned long *addr)
nr                 99 arch/riscv/include/asm/bitops.h 	return __test_and_op_bit(xor, __NOP, nr, addr);
nr                114 arch/riscv/include/asm/bitops.h static inline void set_bit(int nr, volatile unsigned long *addr)
nr                116 arch/riscv/include/asm/bitops.h 	__op_bit(or, __NOP, nr, addr);
nr                128 arch/riscv/include/asm/bitops.h static inline void clear_bit(int nr, volatile unsigned long *addr)
nr                130 arch/riscv/include/asm/bitops.h 	__op_bit(and, __NOT, nr, addr);
nr                142 arch/riscv/include/asm/bitops.h static inline void change_bit(int nr, volatile unsigned long *addr)
nr                144 arch/riscv/include/asm/bitops.h 	__op_bit(xor, __NOP, nr, addr);
nr                156 arch/riscv/include/asm/bitops.h 	unsigned long nr, volatile unsigned long *addr)
nr                158 arch/riscv/include/asm/bitops.h 	return __test_and_op_bit_ord(or, __NOP, nr, addr, .aq);
nr                169 arch/riscv/include/asm/bitops.h 	unsigned long nr, volatile unsigned long *addr)
nr                171 arch/riscv/include/asm/bitops.h 	__op_bit_ord(and, __NOT, nr, addr, .rl);
nr                190 arch/riscv/include/asm/bitops.h 	unsigned long nr, volatile unsigned long *addr)
nr                192 arch/riscv/include/asm/bitops.h 	clear_bit_unlock(nr, addr);
nr                 73 arch/riscv/kernel/perf_callchain.c 	while (fp && !(fp & 0x3) && entry->nr < entry->max_stack)
nr                 14 arch/riscv/kernel/syscall_table.c #define __SYSCALL(nr, call)	[nr] = (call),
nr                153 arch/s390/boot/ipl_parm.c static void modify_facility(unsigned long nr, bool clear)
nr                156 arch/s390/boot/ipl_parm.c 		__clear_facility(nr, S390_lowcore.stfle_fac_list);
nr                158 arch/s390/boot/ipl_parm.c 		__set_facility(nr, S390_lowcore.stfle_fac_list);
nr                 45 arch/s390/include/asm/bitops.h __bitops_word(unsigned long nr, volatile unsigned long *ptr)
nr                 49 arch/s390/include/asm/bitops.h 	addr = (unsigned long)ptr + ((nr ^ (nr & (BITS_PER_LONG - 1))) >> 3);
nr                 54 arch/s390/include/asm/bitops.h __bitops_byte(unsigned long nr, volatile unsigned long *ptr)
nr                 56 arch/s390/include/asm/bitops.h 	return ((unsigned char *)ptr) + ((nr ^ (BITS_PER_LONG - 8)) >> 3);
nr                 59 arch/s390/include/asm/bitops.h static __always_inline void arch_set_bit(unsigned long nr, volatile unsigned long *ptr)
nr                 61 arch/s390/include/asm/bitops.h 	unsigned long *addr = __bitops_word(nr, ptr);
nr                 65 arch/s390/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {
nr                 66 arch/s390/include/asm/bitops.h 		unsigned char *caddr = __bitops_byte(nr, ptr);
nr                 71 arch/s390/include/asm/bitops.h 			: "i" (1 << (nr & 7))
nr                 76 arch/s390/include/asm/bitops.h 	mask = 1UL << (nr & (BITS_PER_LONG - 1));
nr                 80 arch/s390/include/asm/bitops.h static __always_inline void arch_clear_bit(unsigned long nr, volatile unsigned long *ptr)
nr                 82 arch/s390/include/asm/bitops.h 	unsigned long *addr = __bitops_word(nr, ptr);
nr                 86 arch/s390/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {
nr                 87 arch/s390/include/asm/bitops.h 		unsigned char *caddr = __bitops_byte(nr, ptr);
nr                 92 arch/s390/include/asm/bitops.h 			: "i" (~(1 << (nr & 7)))
nr                 97 arch/s390/include/asm/bitops.h 	mask = ~(1UL << (nr & (BITS_PER_LONG - 1)));
nr                101 arch/s390/include/asm/bitops.h static __always_inline void arch_change_bit(unsigned long nr,
nr                104 arch/s390/include/asm/bitops.h 	unsigned long *addr = __bitops_word(nr, ptr);
nr                108 arch/s390/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {
nr                109 arch/s390/include/asm/bitops.h 		unsigned char *caddr = __bitops_byte(nr, ptr);
nr                114 arch/s390/include/asm/bitops.h 			: "i" (1 << (nr & 7))
nr                119 arch/s390/include/asm/bitops.h 	mask = 1UL << (nr & (BITS_PER_LONG - 1));
nr                123 arch/s390/include/asm/bitops.h static inline bool arch_test_and_set_bit(unsigned long nr,
nr                126 arch/s390/include/asm/bitops.h 	unsigned long *addr = __bitops_word(nr, ptr);
nr                129 arch/s390/include/asm/bitops.h 	mask = 1UL << (nr & (BITS_PER_LONG - 1));
nr                134 arch/s390/include/asm/bitops.h static inline bool arch_test_and_clear_bit(unsigned long nr,
nr                137 arch/s390/include/asm/bitops.h 	unsigned long *addr = __bitops_word(nr, ptr);
nr                140 arch/s390/include/asm/bitops.h 	mask = ~(1UL << (nr & (BITS_PER_LONG - 1)));
nr                145 arch/s390/include/asm/bitops.h static inline bool arch_test_and_change_bit(unsigned long nr,
nr                148 arch/s390/include/asm/bitops.h 	unsigned long *addr = __bitops_word(nr, ptr);
nr                151 arch/s390/include/asm/bitops.h 	mask = 1UL << (nr & (BITS_PER_LONG - 1));
nr                156 arch/s390/include/asm/bitops.h static inline void arch___set_bit(unsigned long nr, volatile unsigned long *ptr)
nr                158 arch/s390/include/asm/bitops.h 	unsigned char *addr = __bitops_byte(nr, ptr);
nr                160 arch/s390/include/asm/bitops.h 	*addr |= 1 << (nr & 7);
nr                163 arch/s390/include/asm/bitops.h static inline void arch___clear_bit(unsigned long nr,
nr                166 arch/s390/include/asm/bitops.h 	unsigned char *addr = __bitops_byte(nr, ptr);
nr                168 arch/s390/include/asm/bitops.h 	*addr &= ~(1 << (nr & 7));
nr                171 arch/s390/include/asm/bitops.h static inline void arch___change_bit(unsigned long nr,
nr                174 arch/s390/include/asm/bitops.h 	unsigned char *addr = __bitops_byte(nr, ptr);
nr                176 arch/s390/include/asm/bitops.h 	*addr ^= 1 << (nr & 7);
nr                179 arch/s390/include/asm/bitops.h static inline bool arch___test_and_set_bit(unsigned long nr,
nr                182 arch/s390/include/asm/bitops.h 	unsigned char *addr = __bitops_byte(nr, ptr);
nr                186 arch/s390/include/asm/bitops.h 	*addr |= 1 << (nr & 7);
nr                187 arch/s390/include/asm/bitops.h 	return (ch >> (nr & 7)) & 1;
nr                190 arch/s390/include/asm/bitops.h static inline bool arch___test_and_clear_bit(unsigned long nr,
nr                193 arch/s390/include/asm/bitops.h 	unsigned char *addr = __bitops_byte(nr, ptr);
nr                197 arch/s390/include/asm/bitops.h 	*addr &= ~(1 << (nr & 7));
nr                198 arch/s390/include/asm/bitops.h 	return (ch >> (nr & 7)) & 1;
nr                201 arch/s390/include/asm/bitops.h static inline bool arch___test_and_change_bit(unsigned long nr,
nr                204 arch/s390/include/asm/bitops.h 	unsigned char *addr = __bitops_byte(nr, ptr);
nr                208 arch/s390/include/asm/bitops.h 	*addr ^= 1 << (nr & 7);
nr                209 arch/s390/include/asm/bitops.h 	return (ch >> (nr & 7)) & 1;
nr                212 arch/s390/include/asm/bitops.h static inline bool arch_test_bit(unsigned long nr,
nr                218 arch/s390/include/asm/bitops.h 	addr += (nr ^ (BITS_PER_LONG - 8)) >> 3;
nr                219 arch/s390/include/asm/bitops.h 	return (*addr >> (nr & 7)) & 1;
nr                222 arch/s390/include/asm/bitops.h static inline bool arch_test_and_set_bit_lock(unsigned long nr,
nr                225 arch/s390/include/asm/bitops.h 	if (arch_test_bit(nr, ptr))
nr                227 arch/s390/include/asm/bitops.h 	return arch_test_and_set_bit(nr, ptr);
nr                230 arch/s390/include/asm/bitops.h static inline void arch_clear_bit_unlock(unsigned long nr,
nr                234 arch/s390/include/asm/bitops.h 	arch_clear_bit(nr, ptr);
nr                237 arch/s390/include/asm/bitops.h static inline void arch___clear_bit_unlock(unsigned long nr,
nr                241 arch/s390/include/asm/bitops.h 	arch___clear_bit(nr, ptr);
nr                260 arch/s390/include/asm/bitops.h static inline void set_bit_inv(unsigned long nr, volatile unsigned long *ptr)
nr                262 arch/s390/include/asm/bitops.h 	return set_bit(nr ^ (BITS_PER_LONG - 1), ptr);
nr                265 arch/s390/include/asm/bitops.h static inline void clear_bit_inv(unsigned long nr, volatile unsigned long *ptr)
nr                267 arch/s390/include/asm/bitops.h 	return clear_bit(nr ^ (BITS_PER_LONG - 1), ptr);
nr                270 arch/s390/include/asm/bitops.h static inline bool test_and_clear_bit_inv(unsigned long nr,
nr                273 arch/s390/include/asm/bitops.h 	return test_and_clear_bit(nr ^ (BITS_PER_LONG - 1), ptr);
nr                276 arch/s390/include/asm/bitops.h static inline void __set_bit_inv(unsigned long nr, volatile unsigned long *ptr)
nr                278 arch/s390/include/asm/bitops.h 	return __set_bit(nr ^ (BITS_PER_LONG - 1), ptr);
nr                281 arch/s390/include/asm/bitops.h static inline void __clear_bit_inv(unsigned long nr, volatile unsigned long *ptr)
nr                283 arch/s390/include/asm/bitops.h 	return __clear_bit(nr ^ (BITS_PER_LONG - 1), ptr);
nr                286 arch/s390/include/asm/bitops.h static inline bool test_bit_inv(unsigned long nr,
nr                289 arch/s390/include/asm/bitops.h 	return test_bit(nr ^ (BITS_PER_LONG - 1), ptr);
nr                 28 arch/s390/include/asm/cpufeature.h int cpu_have_feature(unsigned int nr);
nr                 40 arch/s390/include/asm/diag.h void diag_stat_inc(enum diag_stat_enum nr);
nr                 41 arch/s390/include/asm/diag.h void diag_stat_inc_norecursion(enum diag_stat_enum nr);
nr                 23 arch/s390/include/asm/ebcdic.h codepage_convert(const __u8 *codepage, volatile char *addr, unsigned long nr)
nr                 25 arch/s390/include/asm/ebcdic.h 	if (nr-- <= 0)
nr                 35 arch/s390/include/asm/ebcdic.h 		: "+&a" (addr), "+&a" (nr)
nr                 39 arch/s390/include/asm/ebcdic.h #define ASCEBC(addr,nr) codepage_convert(_ascebc, addr, nr)
nr                 40 arch/s390/include/asm/ebcdic.h #define EBCASC(addr,nr) codepage_convert(_ebcasc, addr, nr)
nr                 41 arch/s390/include/asm/ebcdic.h #define ASCEBC_500(addr,nr) codepage_convert(_ascebc_500, addr, nr)
nr                 42 arch/s390/include/asm/ebcdic.h #define EBCASC_500(addr,nr) codepage_convert(_ebcasc_500, addr, nr)
nr                 43 arch/s390/include/asm/ebcdic.h #define EBC_TOLOWER(addr,nr) codepage_convert(_ebc_tolower, addr, nr)
nr                 44 arch/s390/include/asm/ebcdic.h #define EBC_TOUPPER(addr,nr) codepage_convert(_ebc_toupper, addr, nr)
nr                 18 arch/s390/include/asm/facility.h static inline void __set_facility(unsigned long nr, void *facilities)
nr                 22 arch/s390/include/asm/facility.h 	if (nr >= MAX_FACILITY_BIT)
nr                 24 arch/s390/include/asm/facility.h 	ptr[nr >> 3] |= 0x80 >> (nr & 7);
nr                 27 arch/s390/include/asm/facility.h static inline void __clear_facility(unsigned long nr, void *facilities)
nr                 31 arch/s390/include/asm/facility.h 	if (nr >= MAX_FACILITY_BIT)
nr                 33 arch/s390/include/asm/facility.h 	ptr[nr >> 3] &= ~(0x80 >> (nr & 7));
nr                 36 arch/s390/include/asm/facility.h static inline int __test_facility(unsigned long nr, void *facilities)
nr                 40 arch/s390/include/asm/facility.h 	if (nr >= MAX_FACILITY_BIT)
nr                 42 arch/s390/include/asm/facility.h 	ptr = (unsigned char *) facilities + (nr >> 3);
nr                 43 arch/s390/include/asm/facility.h 	return (*ptr & (0x80 >> (nr & 7))) != 0;
nr                 51 arch/s390/include/asm/facility.h static inline int test_facility(unsigned long nr)
nr                 55 arch/s390/include/asm/facility.h 	if (__builtin_constant_p(nr) && nr < sizeof(facilities_als) * 8) {
nr                 56 arch/s390/include/asm/facility.h 		if (__test_facility(nr, &facilities_als))
nr                 59 arch/s390/include/asm/facility.h 	return __test_facility(nr, &S390_lowcore.stfle_fac_list);
nr                 81 arch/s390/include/asm/facility.h 	unsigned long nr;
nr                 86 arch/s390/include/asm/facility.h 	nr = 4; /* bytes stored by stfl */
nr                 90 arch/s390/include/asm/facility.h 		nr = __stfle_asm(stfle_fac_list, size);
nr                 91 arch/s390/include/asm/facility.h 		nr = min_t(unsigned long, (nr + 1) * 8, size * 8);
nr                 93 arch/s390/include/asm/facility.h 	memset((char *) stfle_fac_list + nr, 0, size * 8 - nr);
nr                 36 arch/s390/include/asm/io.h static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                 27 arch/s390/include/asm/kvm_para.h static inline long __kvm_hypercall0(unsigned long nr)
nr                 29 arch/s390/include/asm/kvm_para.h 	register unsigned long __nr asm("1") = nr;
nr                 37 arch/s390/include/asm/kvm_para.h static inline long kvm_hypercall0(unsigned long nr)
nr                 40 arch/s390/include/asm/kvm_para.h 	return __kvm_hypercall0(nr);
nr                 43 arch/s390/include/asm/kvm_para.h static inline long __kvm_hypercall1(unsigned long nr, unsigned long p1)
nr                 45 arch/s390/include/asm/kvm_para.h 	register unsigned long __nr asm("1") = nr;
nr                 54 arch/s390/include/asm/kvm_para.h static inline long kvm_hypercall1(unsigned long nr, unsigned long p1)
nr                 57 arch/s390/include/asm/kvm_para.h 	return __kvm_hypercall1(nr, p1);
nr                 60 arch/s390/include/asm/kvm_para.h static inline long __kvm_hypercall2(unsigned long nr, unsigned long p1,
nr                 63 arch/s390/include/asm/kvm_para.h 	register unsigned long __nr asm("1") = nr;
nr                 74 arch/s390/include/asm/kvm_para.h static inline long kvm_hypercall2(unsigned long nr, unsigned long p1,
nr                 78 arch/s390/include/asm/kvm_para.h 	return __kvm_hypercall2(nr, p1, p2);
nr                 81 arch/s390/include/asm/kvm_para.h static inline long __kvm_hypercall3(unsigned long nr, unsigned long p1,
nr                 84 arch/s390/include/asm/kvm_para.h 	register unsigned long __nr asm("1") = nr;
nr                 96 arch/s390/include/asm/kvm_para.h static inline long kvm_hypercall3(unsigned long nr, unsigned long p1,
nr                100 arch/s390/include/asm/kvm_para.h 	return __kvm_hypercall3(nr, p1, p2, p3);
nr                103 arch/s390/include/asm/kvm_para.h static inline long __kvm_hypercall4(unsigned long nr, unsigned long p1,
nr                107 arch/s390/include/asm/kvm_para.h 	register unsigned long __nr asm("1") = nr;
nr                120 arch/s390/include/asm/kvm_para.h static inline long kvm_hypercall4(unsigned long nr, unsigned long p1,
nr                125 arch/s390/include/asm/kvm_para.h 	return __kvm_hypercall4(nr, p1, p2, p3, p4);
nr                128 arch/s390/include/asm/kvm_para.h static inline long __kvm_hypercall5(unsigned long nr, unsigned long p1,
nr                132 arch/s390/include/asm/kvm_para.h 	register unsigned long __nr asm("1") = nr;
nr                146 arch/s390/include/asm/kvm_para.h static inline long kvm_hypercall5(unsigned long nr, unsigned long p1,
nr                151 arch/s390/include/asm/kvm_para.h 	return __kvm_hypercall5(nr, p1, p2, p3, p4, p5);
nr                154 arch/s390/include/asm/kvm_para.h static inline long __kvm_hypercall6(unsigned long nr, unsigned long p1,
nr                159 arch/s390/include/asm/kvm_para.h 	register unsigned long __nr asm("1") = nr;
nr                175 arch/s390/include/asm/kvm_para.h static inline long kvm_hypercall6(unsigned long nr, unsigned long p1,
nr                181 arch/s390/include/asm/kvm_para.h 	return __kvm_hypercall6(nr, p1, p2, p3, p4, p5, p6);
nr                 36 arch/s390/include/asm/os_info.h void os_info_entry_add(int nr, void *ptr, u64 len);
nr                 41 arch/s390/include/asm/os_info.h void *os_info_old_entry(int nr, unsigned long *size);
nr                 44 arch/s390/include/asm/os_info.h static inline void *os_info_old_entry(int nr, unsigned long *size)
nr               1029 arch/s390/include/asm/pgtable.h static __always_inline void __ptep_ipte_range(unsigned long address, int nr,
nr               1038 arch/s390/include/asm/pgtable.h 			: [r2] "+a" (address), [r3] "+a" (nr)
nr               1040 arch/s390/include/asm/pgtable.h 	} while (nr != 255);
nr                420 arch/s390/include/asm/qdio.h extern int qdio_inspect_queue(struct ccw_device *cdev, unsigned int nr,
nr                 96 arch/s390/include/asm/stacktrace.h #define CALL_ON_STACK(fn, stack, nr, args...)				\
nr                 98 arch/s390/include/asm/stacktrace.h 	CALL_ARGS_##nr(args);						\
nr                107 arch/s390/include/asm/stacktrace.h 		: [_prev] "=&a" (prev), CALL_FMT_##nr			\
nr                110 arch/s390/include/asm/stacktrace.h 		  [_fn] "X" (fn) : CALL_CLOBBER_##nr);			\
nr                 81 arch/s390/include/asm/timex.h static inline int ptff_query(unsigned int nr)
nr                 85 arch/s390/include/asm/timex.h 	ptr = ptff_function_mask + (nr >> 3);
nr                 86 arch/s390/include/asm/timex.h 	return (*ptr & (0x80 >> (nr & 7))) != 0;
nr                 24 arch/s390/include/asm/trace/diag.h 	TP_PROTO(unsigned short nr),
nr                 25 arch/s390/include/asm/trace/diag.h 	TP_ARGS(nr),
nr                 27 arch/s390/include/asm/trace/diag.h 		__field(unsigned short, nr)
nr                 30 arch/s390/include/asm/trace/diag.h 		__entry->nr = nr;
nr                 32 arch/s390/include/asm/trace/diag.h 	TP_printk("nr=0x%x", __entry->nr)
nr                129 arch/s390/kernel/diag.c void diag_stat_inc(enum diag_stat_enum nr)
nr                131 arch/s390/kernel/diag.c 	this_cpu_inc(diag_stat.counter[nr]);
nr                132 arch/s390/kernel/diag.c 	trace_s390_diagnose(diag_map[nr].code);
nr                136 arch/s390/kernel/diag.c void notrace diag_stat_inc_norecursion(enum diag_stat_enum nr)
nr                138 arch/s390/kernel/diag.c 	this_cpu_inc(diag_stat.counter[nr]);
nr                139 arch/s390/kernel/diag.c 	trace_s390_diagnose_norecursion(diag_map[nr].code);
nr                 46 arch/s390/kernel/os_info.c void os_info_entry_add(int nr, void *ptr, u64 size)
nr                 48 arch/s390/kernel/os_info.c 	os_info.entry[nr].addr = (u64)(unsigned long)ptr;
nr                 49 arch/s390/kernel/os_info.c 	os_info.entry[nr].size = size;
nr                 50 arch/s390/kernel/os_info.c 	os_info.entry[nr].csum = (__force u32)csum_partial(ptr, size, 0);
nr                 75 arch/s390/kernel/os_info.c static void os_info_old_alloc(int nr, int align)
nr                 81 arch/s390/kernel/os_info.c 	addr = os_info_old->entry[nr].addr;
nr                 86 arch/s390/kernel/os_info.c 	size = os_info_old->entry[nr].size;
nr                 98 arch/s390/kernel/os_info.c 	if (csum != os_info_old->entry[nr].csum) {
nr                102 arch/s390/kernel/os_info.c 	os_info_old->entry[nr].addr = (u64)(unsigned long)buf_align;
nr                108 arch/s390/kernel/os_info.c 	os_info_old->entry[nr].addr = 0;
nr                111 arch/s390/kernel/os_info.c 		nr, msg, addr, size);
nr                159 arch/s390/kernel/os_info.c void *os_info_old_entry(int nr, unsigned long *size)
nr                165 arch/s390/kernel/os_info.c 	if (!os_info_old->entry[nr].addr)
nr                167 arch/s390/kernel/os_info.c 	*size = (unsigned long) os_info_old->entry[nr].size;
nr                168 arch/s390/kernel/os_info.c 	return (void *)(unsigned long)os_info_old->entry[nr].addr;
nr                736 arch/s390/kernel/smp.c 	int cpu, nr, i;
nr                739 arch/s390/kernel/smp.c 	nr = 0;
nr                741 arch/s390/kernel/smp.c 		return nr;
nr                758 arch/s390/kernel/smp.c 			nr++;
nr                762 arch/s390/kernel/smp.c 	return nr;
nr                771 arch/s390/kernel/smp.c 	int nr, i;
nr                773 arch/s390/kernel/smp.c 	nr = 0;
nr                784 arch/s390/kernel/smp.c 				nr += smp_add_core(core, &avail, true, early);
nr                791 arch/s390/kernel/smp.c 		nr += smp_add_core(&info->core[i], &avail, configured, early);
nr                793 arch/s390/kernel/smp.c 	return nr;
nr               1178 arch/s390/kernel/smp.c 	int nr;
nr               1186 arch/s390/kernel/smp.c 	nr = __smp_rescan_cpus(info, false);
nr               1190 arch/s390/kernel/smp.c 	if (nr)
nr               1581 arch/s390/kvm/interrupt.c 	u16 nr = schid & 0x0000ffffU;
nr               1586 arch/s390/kvm/interrupt.c 			      nr != iter->io.subchannel_nr))
nr                314 arch/s390/kvm/kvm-s390.c static void allow_cpu_feat(unsigned long nr)
nr                316 arch/s390/kvm/kvm-s390.c 	set_bit_inv(nr, kvm_s390_available_cpu_feat);
nr                319 arch/s390/kvm/kvm-s390.c static inline int plo_test_bit(unsigned char nr)
nr                321 arch/s390/kvm/kvm-s390.c 	register unsigned long r0 asm("0") = (unsigned long) nr | 0x100;
nr               2898 arch/s390/kvm/kvm-s390.c static bool kvm_has_pckmo_subfunc(struct kvm *kvm, unsigned long nr)
nr               2900 arch/s390/kvm/kvm-s390.c 	if (test_bit_inv(nr, (unsigned long *)&kvm->arch.model.subfuncs.pckmo) &&
nr               2901 arch/s390/kvm/kvm-s390.c 	    test_bit_inv(nr, (unsigned long *)&kvm_s390_available_subfunc.pckmo))
nr                170 arch/s390/kvm/kvm-s390.h static inline int test_kvm_facility(struct kvm *kvm, unsigned long nr)
nr                172 arch/s390/kvm/kvm-s390.h 	return __test_facility(nr, kvm->arch.model.fac_mask) &&
nr                173 arch/s390/kvm/kvm-s390.h 		__test_facility(nr, kvm->arch.model.fac_list);
nr                176 arch/s390/kvm/kvm-s390.h static inline int set_kvm_facility(u64 *fac_list, unsigned long nr)
nr                180 arch/s390/kvm/kvm-s390.h 	if (nr >= MAX_FACILITY_BIT)
nr                182 arch/s390/kvm/kvm-s390.h 	ptr = (unsigned char *) fac_list + (nr >> 3);
nr                183 arch/s390/kvm/kvm-s390.h 	*ptr |= (0x80UL >> (nr & 7));
nr                187 arch/s390/kvm/kvm-s390.h static inline int test_kvm_cpu_feat(struct kvm *kvm, unsigned long nr)
nr                189 arch/s390/kvm/kvm-s390.h 	WARN_ON_ONCE(nr >= KVM_S390_VM_CPU_FEAT_NR_BITS);
nr                190 arch/s390/kvm/kvm-s390.h 	return test_bit_inv(nr, kvm->arch.cpu_feat);
nr                 65 arch/s390/mm/cmm.c static long cmm_alloc_pages(long nr, long *counter,
nr                 71 arch/s390/mm/cmm.c 	while (nr) {
nr                100 arch/s390/mm/cmm.c 		nr--;
nr                102 arch/s390/mm/cmm.c 	return nr;
nr                105 arch/s390/mm/cmm.c static long cmm_free_pages(long nr, long *counter, struct cmm_page_array **list)
nr                112 arch/s390/mm/cmm.c 	while (nr) {
nr                123 arch/s390/mm/cmm.c 		nr--;
nr                126 arch/s390/mm/cmm.c 	return nr;
nr                133 arch/s390/mm/cmm.c 	long nr = 256;
nr                135 arch/s390/mm/cmm.c 	nr = cmm_free_pages(nr, &cmm_timed_pages, &cmm_timed_page_list);
nr                136 arch/s390/mm/cmm.c 	if (nr > 0)
nr                137 arch/s390/mm/cmm.c 		nr = cmm_free_pages(nr, &cmm_pages, &cmm_page_list);
nr                140 arch/s390/mm/cmm.c 	*freed += 256 - nr;
nr                199 arch/s390/mm/cmm.c 	long nr;
nr                201 arch/s390/mm/cmm.c 	nr = cmm_timed_pages_target - cmm_timeout_pages;
nr                202 arch/s390/mm/cmm.c 	if (nr < 0)
nr                205 arch/s390/mm/cmm.c 		cmm_timed_pages_target = nr;
nr                210 arch/s390/mm/cmm.c static void cmm_set_pages(long nr)
nr                212 arch/s390/mm/cmm.c 	cmm_pages_target = nr;
nr                221 arch/s390/mm/cmm.c static void cmm_add_timed_pages(long nr)
nr                223 arch/s390/mm/cmm.c 	cmm_timed_pages_target += nr;
nr                232 arch/s390/mm/cmm.c static void cmm_set_timeout(long nr, long seconds)
nr                234 arch/s390/mm/cmm.c 	cmm_timeout_pages = nr;
nr                252 arch/s390/mm/cmm.c 	long nr = cmm_get_pages();
nr                255 arch/s390/mm/cmm.c 		.data		= &nr,
nr                264 arch/s390/mm/cmm.c 	cmm_set_pages(nr);
nr                272 arch/s390/mm/cmm.c 	long nr = cmm_get_timed_pages();
nr                275 arch/s390/mm/cmm.c 		.data		= &nr,
nr                284 arch/s390/mm/cmm.c 	cmm_add_timed_pages(nr);
nr                292 arch/s390/mm/cmm.c 	long nr, seconds;
nr                306 arch/s390/mm/cmm.c 		nr = simple_strtoul(p, &p, 0);
nr                309 arch/s390/mm/cmm.c 		cmm_set_timeout(nr, seconds);
nr                357 arch/s390/mm/cmm.c 	long nr, seconds;
nr                366 arch/s390/mm/cmm.c 		nr = simple_strtoul(msg, &msg, 0);
nr                369 arch/s390/mm/cmm.c 			cmm_set_pages(nr);
nr                373 arch/s390/mm/cmm.c 		nr = simple_strtoul(msg, &msg, 0);
nr                376 arch/s390/mm/cmm.c 			cmm_add_timed_pages(nr);
nr                380 arch/s390/mm/cmm.c 		nr = simple_strtoul(msg, &msg, 0);
nr                386 arch/s390/mm/cmm.c 			cmm_set_timeout(nr, seconds);
nr                132 arch/s390/mm/gmap.c 	int i, nr;
nr                137 arch/s390/mm/gmap.c 		nr = 0;
nr                139 arch/s390/mm/gmap.c 			indices[nr] = iter.index;
nr                140 arch/s390/mm/gmap.c 			if (++nr == 16)
nr                143 arch/s390/mm/gmap.c 		for (i = 0; i < nr; i++) {
nr                147 arch/s390/mm/gmap.c 	} while (nr > 0);
nr                157 arch/s390/mm/gmap.c 	int i, nr;
nr                162 arch/s390/mm/gmap.c 		nr = 0;
nr                164 arch/s390/mm/gmap.c 			indices[nr] = iter.index;
nr                165 arch/s390/mm/gmap.c 			if (++nr == 16)
nr                168 arch/s390/mm/gmap.c 		for (i = 0; i < nr; i++) {
nr                174 arch/s390/mm/gmap.c 	} while (nr > 0);
nr                322 arch/s390/mm/pageattr.c static void ipte_range(pte_t *pte, unsigned long address, int nr)
nr                327 arch/s390/mm/pageattr.c 		__ptep_ipte_range(address, nr - 1, pte, IPTE_GLOBAL);
nr                330 arch/s390/mm/pageattr.c 	for (i = 0; i < nr; i++) {
nr                340 arch/s390/mm/pageattr.c 	int nr, i, j;
nr                354 arch/s390/mm/pageattr.c 		nr = (unsigned long)pte >> ilog2(sizeof(long));
nr                355 arch/s390/mm/pageattr.c 		nr = PTRS_PER_PTE - (nr & (PTRS_PER_PTE - 1));
nr                356 arch/s390/mm/pageattr.c 		nr = min(numpages - i, nr);
nr                358 arch/s390/mm/pageattr.c 			for (j = 0; j < nr; j++) {
nr                364 arch/s390/mm/pageattr.c 			ipte_range(pte, address, nr);
nr                366 arch/s390/mm/pageattr.c 		i += nr;
nr                 45 arch/s390/tools/gen_opcode_table.c 	int nr;
nr                167 arch/s390/tools/gen_opcode_table.c 		desc->nr++;
nr                168 arch/s390/tools/gen_opcode_table.c 		desc->insn = realloc(desc->insn, desc->nr * sizeof(*desc->insn));
nr                171 arch/s390/tools/gen_opcode_table.c 		desc->insn[desc->nr - 1] = insn;
nr                185 arch/s390/tools/gen_opcode_table.c 	qsort(desc->insn, desc->nr, sizeof(*desc->insn), cmpformat);
nr                189 arch/s390/tools/gen_opcode_table.c 	for (i = 0; i < desc->nr; i++) {
nr                209 arch/s390/tools/gen_opcode_table.c 	qsort(desc->insn, desc->nr, sizeof(*desc->insn), cmp_long_insn);
nr                212 arch/s390/tools/gen_opcode_table.c 	for (i = 0; i < desc->nr; i++) {
nr                222 arch/s390/tools/gen_opcode_table.c 	for (i = 0; i < desc->nr; i++) {
nr                231 arch/s390/tools/gen_opcode_table.c static void print_opcode(struct insn *insn, int nr)
nr                238 arch/s390/tools/gen_opcode_table.c 	printf("\t[%4d] = { .opfrag = 0x%s, .format = INSTR_%s, ", nr, opcode, insn->format);
nr                277 arch/s390/tools/gen_opcode_table.c 	qsort(desc->insn, desc->nr, sizeof(*desc->insn), cmpopcode);
nr                280 arch/s390/tools/gen_opcode_table.c 	for (i = 0; i < desc->nr; i++) {
nr                293 arch/s390/tools/gen_opcode_table.c 	for (i = 0; i < desc->nr; i++) {
nr                 62 arch/sh/drivers/dma/dma-api.c 	unsigned int nr = 0;
nr                 65 arch/sh/drivers/dma/dma-api.c 		return nr;
nr                 68 arch/sh/drivers/dma/dma-api.c 		nr += info->nr_channels;
nr                 70 arch/sh/drivers/dma/dma-api.c 	return nr;
nr                276 arch/sh/drivers/pci/pci.c 			       unsigned long port, unsigned int nr)
nr                 14 arch/sh/include/asm/bitops-cas.h static inline void set_bit(int nr, volatile void *addr)
nr                 19 arch/sh/include/asm/bitops-cas.h 	a += nr >> 5;
nr                 20 arch/sh/include/asm/bitops-cas.h 	mask = 1U << (nr & 0x1f);
nr                 26 arch/sh/include/asm/bitops-cas.h static inline void clear_bit(int nr, volatile void *addr)
nr                 31 arch/sh/include/asm/bitops-cas.h 	a += nr >> 5;
nr                 32 arch/sh/include/asm/bitops-cas.h 	mask = 1U << (nr & 0x1f);
nr                 38 arch/sh/include/asm/bitops-cas.h static inline void change_bit(int nr, volatile void *addr)
nr                 43 arch/sh/include/asm/bitops-cas.h 	a += nr >> 5;
nr                 44 arch/sh/include/asm/bitops-cas.h 	mask = 1U << (nr & 0x1f);
nr                 50 arch/sh/include/asm/bitops-cas.h static inline int test_and_set_bit(int nr, volatile void *addr)
nr                 55 arch/sh/include/asm/bitops-cas.h 	a += nr >> 5;
nr                 56 arch/sh/include/asm/bitops-cas.h 	mask = 1U << (nr & 0x1f);
nr                 64 arch/sh/include/asm/bitops-cas.h static inline int test_and_clear_bit(int nr, volatile void *addr)
nr                 69 arch/sh/include/asm/bitops-cas.h 	a += nr >> 5;
nr                 70 arch/sh/include/asm/bitops-cas.h 	mask = 1U << (nr & 0x1f);
nr                 78 arch/sh/include/asm/bitops-cas.h static inline int test_and_change_bit(int nr, volatile void *addr)
nr                 83 arch/sh/include/asm/bitops-cas.h 	a += nr >> 5;
nr                 84 arch/sh/include/asm/bitops-cas.h 	mask = 1U << (nr & 0x1f);
nr                  5 arch/sh/include/asm/bitops-grb.h static inline void set_bit(int nr, volatile void * addr)
nr                 11 arch/sh/include/asm/bitops-grb.h 	a += nr >> 5;
nr                 12 arch/sh/include/asm/bitops-grb.h 	mask = 1 << (nr & 0x1f);
nr                 29 arch/sh/include/asm/bitops-grb.h static inline void clear_bit(int nr, volatile void * addr)
nr                 35 arch/sh/include/asm/bitops-grb.h 	a += nr >> 5;
nr                 36 arch/sh/include/asm/bitops-grb.h         mask = ~(1 << (nr & 0x1f));
nr                 52 arch/sh/include/asm/bitops-grb.h static inline void change_bit(int nr, volatile void * addr)
nr                 58 arch/sh/include/asm/bitops-grb.h         a += nr >> 5;
nr                 59 arch/sh/include/asm/bitops-grb.h         mask = 1 << (nr & 0x1f);
nr                 75 arch/sh/include/asm/bitops-grb.h static inline int test_and_set_bit(int nr, volatile void * addr)
nr                 81 arch/sh/include/asm/bitops-grb.h 	a += nr >> 5;
nr                 82 arch/sh/include/asm/bitops-grb.h 	mask = 1 << (nr & 0x1f);
nr                106 arch/sh/include/asm/bitops-grb.h static inline int test_and_clear_bit(int nr, volatile void * addr)
nr                112 arch/sh/include/asm/bitops-grb.h         a += nr >> 5;
nr                113 arch/sh/include/asm/bitops-grb.h         mask = 1 << (nr & 0x1f);
nr                140 arch/sh/include/asm/bitops-grb.h static inline int test_and_change_bit(int nr, volatile void * addr)
nr                146 arch/sh/include/asm/bitops-grb.h         a += nr >> 5;
nr                147 arch/sh/include/asm/bitops-grb.h         mask = 1 << (nr & 0x1f);
nr                  5 arch/sh/include/asm/bitops-llsc.h static inline void set_bit(int nr, volatile void *addr)
nr                 11 arch/sh/include/asm/bitops-llsc.h 	a += nr >> 5;
nr                 12 arch/sh/include/asm/bitops-llsc.h 	mask = 1 << (nr & 0x1f);
nr                 26 arch/sh/include/asm/bitops-llsc.h static inline void clear_bit(int nr, volatile void *addr)
nr                 32 arch/sh/include/asm/bitops-llsc.h 	a += nr >> 5;
nr                 33 arch/sh/include/asm/bitops-llsc.h 	mask = 1 << (nr & 0x1f);
nr                 47 arch/sh/include/asm/bitops-llsc.h static inline void change_bit(int nr, volatile void *addr)
nr                 53 arch/sh/include/asm/bitops-llsc.h 	a += nr >> 5;
nr                 54 arch/sh/include/asm/bitops-llsc.h 	mask = 1 << (nr & 0x1f);
nr                 68 arch/sh/include/asm/bitops-llsc.h static inline int test_and_set_bit(int nr, volatile void *addr)
nr                 74 arch/sh/include/asm/bitops-llsc.h 	a += nr >> 5;
nr                 75 arch/sh/include/asm/bitops-llsc.h 	mask = 1 << (nr & 0x1f);
nr                 93 arch/sh/include/asm/bitops-llsc.h static inline int test_and_clear_bit(int nr, volatile void *addr)
nr                 99 arch/sh/include/asm/bitops-llsc.h 	a += nr >> 5;
nr                100 arch/sh/include/asm/bitops-llsc.h 	mask = 1 << (nr & 0x1f);
nr                119 arch/sh/include/asm/bitops-llsc.h static inline int test_and_change_bit(int nr, volatile void *addr)
nr                125 arch/sh/include/asm/bitops-llsc.h 	a += nr >> 5;
nr                126 arch/sh/include/asm/bitops-llsc.h 	mask = 1 << (nr & 0x1f);
nr                 12 arch/sh/include/asm/bitops-op32.h #define BYTE_NUMBER(nr)		((nr ^ BITOP_LE_SWIZZLE) / BITS_PER_BYTE)
nr                 13 arch/sh/include/asm/bitops-op32.h #define BYTE_OFFSET(nr)		((nr ^ BITOP_LE_SWIZZLE) % BITS_PER_BYTE)
nr                 15 arch/sh/include/asm/bitops-op32.h #define BYTE_NUMBER(nr)		((nr) / BITS_PER_BYTE)
nr                 16 arch/sh/include/asm/bitops-op32.h #define BYTE_OFFSET(nr)		((nr) % BITS_PER_BYTE)
nr                 19 arch/sh/include/asm/bitops-op32.h #define IS_IMMEDIATE(nr)	(__builtin_constant_p(nr))
nr                 21 arch/sh/include/asm/bitops-op32.h static inline void __set_bit(int nr, volatile unsigned long *addr)
nr                 23 arch/sh/include/asm/bitops-op32.h 	if (IS_IMMEDIATE(nr)) {
nr                 27 arch/sh/include/asm/bitops-op32.h 			: "i" (BYTE_OFFSET(nr)), "i" (BYTE_NUMBER(nr))
nr                 31 arch/sh/include/asm/bitops-op32.h 		unsigned long mask = BIT_MASK(nr);
nr                 32 arch/sh/include/asm/bitops-op32.h 		unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 38 arch/sh/include/asm/bitops-op32.h static inline void __clear_bit(int nr, volatile unsigned long *addr)
nr                 40 arch/sh/include/asm/bitops-op32.h 	if (IS_IMMEDIATE(nr)) {
nr                 44 arch/sh/include/asm/bitops-op32.h 			: "i" (BYTE_OFFSET(nr)),
nr                 45 arch/sh/include/asm/bitops-op32.h 			  "i" (BYTE_NUMBER(nr))
nr                 49 arch/sh/include/asm/bitops-op32.h 		unsigned long mask = BIT_MASK(nr);
nr                 50 arch/sh/include/asm/bitops-op32.h 		unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 65 arch/sh/include/asm/bitops-op32.h static inline void __change_bit(int nr, volatile unsigned long *addr)
nr                 67 arch/sh/include/asm/bitops-op32.h 	if (IS_IMMEDIATE(nr)) {
nr                 71 arch/sh/include/asm/bitops-op32.h 			: "i" (BYTE_OFFSET(nr)),
nr                 72 arch/sh/include/asm/bitops-op32.h 			  "i" (BYTE_NUMBER(nr))
nr                 76 arch/sh/include/asm/bitops-op32.h 		unsigned long mask = BIT_MASK(nr);
nr                 77 arch/sh/include/asm/bitops-op32.h 		unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 92 arch/sh/include/asm/bitops-op32.h static inline int __test_and_set_bit(int nr, volatile unsigned long *addr)
nr                 94 arch/sh/include/asm/bitops-op32.h 	unsigned long mask = BIT_MASK(nr);
nr                 95 arch/sh/include/asm/bitops-op32.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                111 arch/sh/include/asm/bitops-op32.h static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr)
nr                113 arch/sh/include/asm/bitops-op32.h 	unsigned long mask = BIT_MASK(nr);
nr                114 arch/sh/include/asm/bitops-op32.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                122 arch/sh/include/asm/bitops-op32.h static inline int __test_and_change_bit(int nr,
nr                125 arch/sh/include/asm/bitops-op32.h 	unsigned long mask = BIT_MASK(nr);
nr                126 arch/sh/include/asm/bitops-op32.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                138 arch/sh/include/asm/bitops-op32.h static inline int test_bit(int nr, const volatile unsigned long *addr)
nr                140 arch/sh/include/asm/bitops-op32.h 	return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1)));
nr                 64 arch/sh/include/asm/romimage-macros.h .macro  DD, addr, addr2, nr
nr                  8 arch/sh/include/mach-common/mach/romimage.h static inline void mmcif_update_progress(int nr)
nr                 39 arch/sh/include/mach-ecovec24/mach/romimage.h static inline void mmcif_update_progress(int nr)
nr                 45 arch/sh/include/mach-ecovec24/mach/romimage.h 	__raw_writeb(1 << (nr - 1), PGDR);
nr                 27 arch/sh/include/mach-kfr2r09/mach/romimage.h static inline void mmcif_update_progress(int nr)
nr                 23 arch/sh/kernel/ioport.c void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                 27 arch/sh/kernel/ioport.c 	ret = __ioport_map_trapped(port, nr);
nr                 31 arch/sh/kernel/ioport.c 	return __ioport_map(port, nr);
nr                 32 arch/sparc/include/asm/bitops_32.h static inline int test_and_set_bit(unsigned long nr, volatile unsigned long *addr)
nr                 36 arch/sparc/include/asm/bitops_32.h 	ADDR = ((unsigned long *) addr) + (nr >> 5);
nr                 37 arch/sparc/include/asm/bitops_32.h 	mask = 1 << (nr & 31);
nr                 42 arch/sparc/include/asm/bitops_32.h static inline void set_bit(unsigned long nr, volatile unsigned long *addr)
nr                 46 arch/sparc/include/asm/bitops_32.h 	ADDR = ((unsigned long *) addr) + (nr >> 5);
nr                 47 arch/sparc/include/asm/bitops_32.h 	mask = 1 << (nr & 31);
nr                 52 arch/sparc/include/asm/bitops_32.h static inline int test_and_clear_bit(unsigned long nr, volatile unsigned long *addr)
nr                 56 arch/sparc/include/asm/bitops_32.h 	ADDR = ((unsigned long *) addr) + (nr >> 5);
nr                 57 arch/sparc/include/asm/bitops_32.h 	mask = 1 << (nr & 31);
nr                 62 arch/sparc/include/asm/bitops_32.h static inline void clear_bit(unsigned long nr, volatile unsigned long *addr)
nr                 66 arch/sparc/include/asm/bitops_32.h 	ADDR = ((unsigned long *) addr) + (nr >> 5);
nr                 67 arch/sparc/include/asm/bitops_32.h 	mask = 1 << (nr & 31);
nr                 72 arch/sparc/include/asm/bitops_32.h static inline int test_and_change_bit(unsigned long nr, volatile unsigned long *addr)
nr                 76 arch/sparc/include/asm/bitops_32.h 	ADDR = ((unsigned long *) addr) + (nr >> 5);
nr                 77 arch/sparc/include/asm/bitops_32.h 	mask = 1 << (nr & 31);
nr                 82 arch/sparc/include/asm/bitops_32.h static inline void change_bit(unsigned long nr, volatile unsigned long *addr)
nr                 86 arch/sparc/include/asm/bitops_32.h 	ADDR = ((unsigned long *) addr) + (nr >> 5);
nr                 87 arch/sparc/include/asm/bitops_32.h 	mask = 1 << (nr & 31);
nr                 19 arch/sparc/include/asm/bitops_64.h int test_and_set_bit(unsigned long nr, volatile unsigned long *addr);
nr                 20 arch/sparc/include/asm/bitops_64.h int test_and_clear_bit(unsigned long nr, volatile unsigned long *addr);
nr                 21 arch/sparc/include/asm/bitops_64.h int test_and_change_bit(unsigned long nr, volatile unsigned long *addr);
nr                 22 arch/sparc/include/asm/bitops_64.h void set_bit(unsigned long nr, volatile unsigned long *addr);
nr                 23 arch/sparc/include/asm/bitops_64.h void clear_bit(unsigned long nr, volatile unsigned long *addr);
nr                 24 arch/sparc/include/asm/bitops_64.h void change_bit(unsigned long nr, volatile unsigned long *addr);
nr                 49 arch/sparc/include/asm/highmem.h #define PKMAP_ADDR(nr)  (PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                132 arch/sparc/include/asm/io_32.h void __iomem *ioport_map(unsigned long port, unsigned int nr);
nr                430 arch/sparc/include/asm/io_64.h void __iomem *ioport_map(unsigned long port, unsigned int nr);
nr                 39 arch/sparc/include/uapi/asm/ioctl.h #define _IOC(dir,type,nr,size) \
nr                 42 arch/sparc/include/uapi/asm/ioctl.h          ((nr)   << _IOC_NRSHIFT) | \
nr                 45 arch/sparc/include/uapi/asm/ioctl.h #define _IO(type,nr)        _IOC(_IOC_NONE,(type),(nr),0)
nr                 46 arch/sparc/include/uapi/asm/ioctl.h #define _IOR(type,nr,size)  _IOC(_IOC_READ,(type),(nr),sizeof(size))
nr                 47 arch/sparc/include/uapi/asm/ioctl.h #define _IOW(type,nr,size)  _IOC(_IOC_WRITE,(type),(nr),sizeof(size))
nr                 48 arch/sparc/include/uapi/asm/ioctl.h #define _IOWR(type,nr,size) _IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
nr                 51 arch/sparc/include/uapi/asm/ioctl.h #define _IOC_DIR(nr)    \
nr                 52 arch/sparc/include/uapi/asm/ioctl.h  ( (((((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) & (_IOC_WRITE|_IOC_READ)) != 0)?   \
nr                 53 arch/sparc/include/uapi/asm/ioctl.h                             (((nr) >> _IOC_DIRSHIFT) & (_IOC_WRITE|_IOC_READ)):  \
nr                 54 arch/sparc/include/uapi/asm/ioctl.h                             (((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) )
nr                 55 arch/sparc/include/uapi/asm/ioctl.h #define _IOC_TYPE(nr)       (((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
nr                 56 arch/sparc/include/uapi/asm/ioctl.h #define _IOC_NR(nr)         (((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
nr                 57 arch/sparc/include/uapi/asm/ioctl.h #define _IOC_SIZE(nr)   \
nr                 58 arch/sparc/include/uapi/asm/ioctl.h  ((((((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK) & (_IOC_WRITE|_IOC_READ)) == 0)?    \
nr                 59 arch/sparc/include/uapi/asm/ioctl.h                          0: (((nr) >> _IOC_SIZESHIFT) & _IOC_XSIZEMASK))
nr                 45 arch/sparc/kernel/iommu_common.h 	int nr = iommu_num_pages(paddr, outs->dma_length + sg->length,
nr                 48 arch/sparc/kernel/iommu_common.h 	return iommu_is_span_boundary(entry, nr, shift, boundary_size);
nr               1784 arch/sparc/kernel/perf_event.c 	} while (entry->nr < entry->max_stack);
nr               1818 arch/sparc/kernel/perf_event.c 	} while (entry->nr < entry->max_stack);
nr               1850 arch/sparc/kernel/perf_event.c 	} while (entry->nr < entry->max_stack);
nr                526 arch/sparc/kernel/smp_64.c 			u64 target, nr;
nr                528 arch/sparc/kernel/smp_64.c 			nr = cpu_list[i];
nr                529 arch/sparc/kernel/smp_64.c 			if (nr == 0xffff)
nr                532 arch/sparc/kernel/smp_64.c 			target = (nr << 14) | 0x70;
nr                534 arch/sparc/kernel/smp_64.c 				busy_mask |= (0x1UL << (nr * 2));
nr                606 arch/sparc/kernel/smp_64.c 				u64 check_mask, nr;
nr                608 arch/sparc/kernel/smp_64.c 				nr = cpu_list[i];
nr                609 arch/sparc/kernel/smp_64.c 				if (nr == 0xffff)
nr                613 arch/sparc/kernel/smp_64.c 					check_mask = (0x2UL << (2*nr));
nr               1102 arch/sparc/kernel/smp_64.c 	unsigned long nr;
nr               1110 arch/sparc/kernel/smp_64.c 	__flush_tlb_pending(t->ctx, t->nr, t->vaddrs);
nr               1113 arch/sparc/kernel/smp_64.c void smp_flush_tlb_pending(struct mm_struct *mm, unsigned long nr, unsigned long *vaddrs)
nr               1120 arch/sparc/kernel/smp_64.c 	info.nr = nr;
nr               1129 arch/sparc/kernel/smp_64.c 	__flush_tlb_pending(ctx, nr, vaddrs);
nr                 10 arch/sparc/lib/iomap.c void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                 63 arch/sparc/mm/init_32.c 	int nr = 0;
nr                 75 arch/sparc/mm/init_32.c 		nr += end_pfn - start_pfn;
nr                 78 arch/sparc/mm/init_32.c 	return nr;
nr                 74 arch/sparc/mm/tlb.c 	unsigned long nr;
nr                 80 arch/sparc/mm/tlb.c 	nr = tb->tlb_nr;
nr                 82 arch/sparc/mm/tlb.c 	if (unlikely(nr != 0 && mm != tb->mm)) {
nr                 84 arch/sparc/mm/tlb.c 		nr = 0;
nr                 93 arch/sparc/mm/tlb.c 	if (nr == 0) {
nr                101 arch/sparc/mm/tlb.c 		nr = 0;
nr                104 arch/sparc/mm/tlb.c 	tb->vaddrs[nr] = vaddr;
nr                105 arch/sparc/mm/tlb.c 	tb->tlb_nr = ++nr;
nr                106 arch/sparc/mm/tlb.c 	if (nr >= TLB_BATCH_NR)
nr                612 arch/sparc/mm/tsb.c 		unsigned long nr = CTX_NRBITS(mm->context);
nr                613 arch/sparc/mm/tsb.c 		mmu_context_bmap[nr>>6] &= ~(1UL << (nr & 63));
nr                 30 arch/unicore32/kernel/sys.c #define __SYSCALL(nr, call)	[nr] = (call),
nr                440 arch/unicore32/mm/fault.c void __init hook_fault_code(int nr,
nr                444 arch/unicore32/mm/fault.c 	if (nr < 0 || nr >= ARRAY_SIZE(fsr_info))
nr                447 arch/unicore32/mm/fault.c 	fsr_info[nr].fn   = fn;
nr                448 arch/unicore32/mm/fault.c 	fsr_info[nr].sig  = sig;
nr                449 arch/unicore32/mm/fault.c 	fsr_info[nr].code = code;
nr                450 arch/unicore32/mm/fault.c 	fsr_info[nr].name = name;
nr                 36 arch/unicore32/mm/mm.h extern void hook_fault_code(int nr, int (*fn)
nr                 20 arch/x86/boot/bitops.h static inline bool constant_test_bit(int nr, const void *addr)
nr                 23 arch/x86/boot/bitops.h 	return ((1UL << (nr & 31)) & (p[nr >> 5])) != 0;
nr                 25 arch/x86/boot/bitops.h static inline bool variable_test_bit(int nr, const void *addr)
nr                 30 arch/x86/boot/bitops.h 	asm("btl %2,%1" CC_SET(c) : CC_OUT(c) (v) : "m" (*p), "Ir" (nr));
nr                 34 arch/x86/boot/bitops.h #define test_bit(nr,addr) \
nr                 35 arch/x86/boot/bitops.h (__builtin_constant_p(nr) ? \
nr                 36 arch/x86/boot/bitops.h  constant_test_bit((nr),(addr)) : \
nr                 37 arch/x86/boot/bitops.h  variable_test_bit((nr),(addr)))
nr                 39 arch/x86/boot/bitops.h static inline void set_bit(int nr, void *addr)
nr                 41 arch/x86/boot/bitops.h 	asm("btsl %1,%0" : "+m" (*(u32 *)addr) : "Ir" (nr));
nr                 96 arch/x86/entry/common.c 		sd.nr = regs->orig_ax;
nr                278 arch/x86/entry/common.c __visible void do_syscall_64(unsigned long nr, struct pt_regs *regs)
nr                286 arch/x86/entry/common.c 		nr = syscall_trace_enter(regs);
nr                288 arch/x86/entry/common.c 	if (likely(nr < NR_syscalls)) {
nr                289 arch/x86/entry/common.c 		nr = array_index_nospec(nr, NR_syscalls);
nr                290 arch/x86/entry/common.c 		regs->ax = sys_call_table[nr](regs);
nr                292 arch/x86/entry/common.c 	} else if (likely((nr & __X32_SYSCALL_BIT) &&
nr                293 arch/x86/entry/common.c 			  (nr & ~__X32_SYSCALL_BIT) < X32_NR_syscalls)) {
nr                294 arch/x86/entry/common.c 		nr = array_index_nospec(nr & ~__X32_SYSCALL_BIT,
nr                296 arch/x86/entry/common.c 		regs->ax = x32_sys_call_table[nr](regs);
nr                314 arch/x86/entry/common.c 	unsigned int nr = (unsigned int)regs->orig_ax;
nr                327 arch/x86/entry/common.c 		nr = syscall_trace_enter(regs);
nr                330 arch/x86/entry/common.c 	if (likely(nr < IA32_NR_syscalls)) {
nr                331 arch/x86/entry/common.c 		nr = array_index_nospec(nr, IA32_NR_syscalls);
nr                333 arch/x86/entry/common.c 		regs->ax = ia32_sys_call_table[nr](regs);
nr                341 arch/x86/entry/common.c 		regs->ax = ia32_sys_call_table[nr](
nr                 12 arch/x86/entry/syscall_32.c #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
nr                 15 arch/x86/entry/syscall_32.c #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long);
nr                 23 arch/x86/entry/syscall_32.c #define __SYSCALL_I386(nr, sym, qual) [nr] = sym,
nr                 18 arch/x86/entry/syscall_64.c #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(const struct pt_regs *);
nr                 19 arch/x86/entry/syscall_64.c #define __SYSCALL_X32(nr, sym, qual) __SYSCALL_64(nr, sym, qual)
nr                 24 arch/x86/entry/syscall_64.c #define __SYSCALL_64(nr, sym, qual) [nr] = sym,
nr                 25 arch/x86/entry/syscall_64.c #define __SYSCALL_X32(nr, sym, qual)
nr                 41 arch/x86/entry/syscall_64.c #define __SYSCALL_64(nr, sym, qual)
nr                 42 arch/x86/entry/syscall_64.c #define __SYSCALL_X32(nr, sym, qual) [nr] = sym,
nr                 87 arch/x86/entry/vsyscall/vsyscall_64.c 	int nr;
nr                 92 arch/x86/entry/vsyscall/vsyscall_64.c 	nr = (addr & 0xC00UL) >> 10;
nr                 93 arch/x86/entry/vsyscall/vsyscall_64.c 	if (nr >= 3)
nr                 96 arch/x86/entry/vsyscall/vsyscall_64.c 	return nr;
nr                 12 arch/x86/entry/vsyscall/vsyscall_trace.h 	    TP_PROTO(int nr),
nr                 14 arch/x86/entry/vsyscall/vsyscall_trace.h 	    TP_ARGS(nr),
nr                 16 arch/x86/entry/vsyscall/vsyscall_trace.h 	    TP_STRUCT__entry(__field(int, nr)),
nr                 19 arch/x86/entry/vsyscall/vsyscall_trace.h 			   __entry->nr = nr;
nr                 22 arch/x86/entry/vsyscall/vsyscall_trace.h 	    TP_printk("nr = %d", __entry->nr)
nr               2445 arch/x86/events/core.c 	while (entry->nr < entry->max_stack) {
nr               2502 arch/x86/events/core.c 	while (entry->nr < entry->max_stack) {
nr               3326 arch/x86/events/intel/core.c struct perf_guest_switch_msr *perf_guest_get_msrs(int *nr)
nr               3329 arch/x86/events/intel/core.c 		return x86_pmu.guest_get_msrs(nr);
nr               3330 arch/x86/events/intel/core.c 	*nr = 0;
nr               3335 arch/x86/events/intel/core.c static struct perf_guest_switch_msr *intel_guest_get_msrs(int *nr)
nr               3347 arch/x86/events/intel/core.c 	*nr = 1;
nr               3361 arch/x86/events/intel/core.c 		*nr = 2;
nr               3367 arch/x86/events/intel/core.c static struct perf_guest_switch_msr *core_guest_get_msrs(int *nr)
nr               3391 arch/x86/events/intel/core.c 	*nr = x86_pmu.num_counters;
nr               1218 arch/x86/events/intel/ds.c 	if (!cpuc->lbr_stack.nr || !from || !to)
nr                564 arch/x86/events/intel/lbr.c 	cpuc->lbr_stack.nr = i;
nr                659 arch/x86/events/intel/lbr.c 	cpuc->lbr_stack.nr = out;
nr               1054 arch/x86/events/intel/lbr.c 	for (i = 0; i < cpuc->lbr_stack.nr; i++) {
nr               1081 arch/x86/events/intel/lbr.c 	for (i = 0; i < cpuc->lbr_stack.nr; ) {
nr               1084 arch/x86/events/intel/lbr.c 			while (++j < cpuc->lbr_stack.nr)
nr               1086 arch/x86/events/intel/lbr.c 			cpuc->lbr_stack.nr--;
nr               1099 arch/x86/events/intel/lbr.c 	cpuc->lbr_stack.nr = x86_pmu.lbr_nr;
nr                700 arch/x86/events/perf_event.h 	struct perf_guest_switch_msr *(*guest_get_msrs)(int *nr);
nr                 48 arch/x86/include/asm/bitops.h #define CONST_MASK_ADDR(nr, addr)	WBYTE_ADDR((void *)(addr) + ((nr)>>3))
nr                 49 arch/x86/include/asm/bitops.h #define CONST_MASK(nr)			(1 << ((nr) & 7))
nr                 52 arch/x86/include/asm/bitops.h arch_set_bit(long nr, volatile unsigned long *addr)
nr                 54 arch/x86/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {
nr                 56 arch/x86/include/asm/bitops.h 			: CONST_MASK_ADDR(nr, addr)
nr                 57 arch/x86/include/asm/bitops.h 			: "iq" ((u8)CONST_MASK(nr))
nr                 61 arch/x86/include/asm/bitops.h 			: : RLONG_ADDR(addr), "Ir" (nr) : "memory");
nr                 66 arch/x86/include/asm/bitops.h arch___set_bit(long nr, volatile unsigned long *addr)
nr                 68 arch/x86/include/asm/bitops.h 	asm volatile(__ASM_SIZE(bts) " %1,%0" : : ADDR, "Ir" (nr) : "memory");
nr                 72 arch/x86/include/asm/bitops.h arch_clear_bit(long nr, volatile unsigned long *addr)
nr                 74 arch/x86/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {
nr                 76 arch/x86/include/asm/bitops.h 			: CONST_MASK_ADDR(nr, addr)
nr                 77 arch/x86/include/asm/bitops.h 			: "iq" ((u8)~CONST_MASK(nr)));
nr                 80 arch/x86/include/asm/bitops.h 			: : RLONG_ADDR(addr), "Ir" (nr) : "memory");
nr                 85 arch/x86/include/asm/bitops.h arch_clear_bit_unlock(long nr, volatile unsigned long *addr)
nr                 88 arch/x86/include/asm/bitops.h 	arch_clear_bit(nr, addr);
nr                 92 arch/x86/include/asm/bitops.h arch___clear_bit(long nr, volatile unsigned long *addr)
nr                 94 arch/x86/include/asm/bitops.h 	asm volatile(__ASM_SIZE(btr) " %1,%0" : : ADDR, "Ir" (nr) : "memory");
nr                 98 arch/x86/include/asm/bitops.h arch_clear_bit_unlock_is_negative_byte(long nr, volatile unsigned long *addr)
nr                104 arch/x86/include/asm/bitops.h 		: "ir" ((char) ~(1 << nr)) : "memory");
nr                111 arch/x86/include/asm/bitops.h arch___clear_bit_unlock(long nr, volatile unsigned long *addr)
nr                113 arch/x86/include/asm/bitops.h 	arch___clear_bit(nr, addr);
nr                117 arch/x86/include/asm/bitops.h arch___change_bit(long nr, volatile unsigned long *addr)
nr                119 arch/x86/include/asm/bitops.h 	asm volatile(__ASM_SIZE(btc) " %1,%0" : : ADDR, "Ir" (nr) : "memory");
nr                123 arch/x86/include/asm/bitops.h arch_change_bit(long nr, volatile unsigned long *addr)
nr                125 arch/x86/include/asm/bitops.h 	if (__builtin_constant_p(nr)) {
nr                127 arch/x86/include/asm/bitops.h 			: CONST_MASK_ADDR(nr, addr)
nr                128 arch/x86/include/asm/bitops.h 			: "iq" ((u8)CONST_MASK(nr)));
nr                131 arch/x86/include/asm/bitops.h 			: : RLONG_ADDR(addr), "Ir" (nr) : "memory");
nr                136 arch/x86/include/asm/bitops.h arch_test_and_set_bit(long nr, volatile unsigned long *addr)
nr                138 arch/x86/include/asm/bitops.h 	return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(bts), *addr, c, "Ir", nr);
nr                142 arch/x86/include/asm/bitops.h arch_test_and_set_bit_lock(long nr, volatile unsigned long *addr)
nr                144 arch/x86/include/asm/bitops.h 	return arch_test_and_set_bit(nr, addr);
nr                148 arch/x86/include/asm/bitops.h arch___test_and_set_bit(long nr, volatile unsigned long *addr)
nr                155 arch/x86/include/asm/bitops.h 	    : ADDR, "Ir" (nr) : "memory");
nr                160 arch/x86/include/asm/bitops.h arch_test_and_clear_bit(long nr, volatile unsigned long *addr)
nr                162 arch/x86/include/asm/bitops.h 	return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(btr), *addr, c, "Ir", nr);
nr                174 arch/x86/include/asm/bitops.h arch___test_and_clear_bit(long nr, volatile unsigned long *addr)
nr                181 arch/x86/include/asm/bitops.h 		     : ADDR, "Ir" (nr) : "memory");
nr                186 arch/x86/include/asm/bitops.h arch___test_and_change_bit(long nr, volatile unsigned long *addr)
nr                193 arch/x86/include/asm/bitops.h 		     : ADDR, "Ir" (nr) : "memory");
nr                199 arch/x86/include/asm/bitops.h arch_test_and_change_bit(long nr, volatile unsigned long *addr)
nr                201 arch/x86/include/asm/bitops.h 	return GEN_BINARY_RMWcc(LOCK_PREFIX __ASM_SIZE(btc), *addr, c, "Ir", nr);
nr                204 arch/x86/include/asm/bitops.h static __always_inline bool constant_test_bit(long nr, const volatile unsigned long *addr)
nr                206 arch/x86/include/asm/bitops.h 	return ((1UL << (nr & (BITS_PER_LONG-1))) &
nr                207 arch/x86/include/asm/bitops.h 		(addr[nr >> _BITOPS_LONG_SHIFT])) != 0;
nr                210 arch/x86/include/asm/bitops.h static __always_inline bool variable_test_bit(long nr, volatile const unsigned long *addr)
nr                217 arch/x86/include/asm/bitops.h 		     : "m" (*(unsigned long *)addr), "Ir" (nr) : "memory");
nr                222 arch/x86/include/asm/bitops.h #define arch_test_bit(nr, addr)			\
nr                223 arch/x86/include/asm/bitops.h 	(__builtin_constant_p((nr))		\
nr                224 arch/x86/include/asm/bitops.h 	 ? constant_test_bit((nr), (addr))	\
nr                225 arch/x86/include/asm/bitops.h 	 : variable_test_bit((nr), (addr)))
nr                 59 arch/x86/include/asm/highmem.h #define PKMAP_ADDR(nr)  (PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                635 arch/x86/include/asm/kvm_host.h 		u8 nr;
nr                645 arch/x86/include/asm/kvm_host.h 		u8 nr;
nr               1400 arch/x86/include/asm/kvm_host.h void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr);
nr               1401 arch/x86/include/asm/kvm_host.h void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code);
nr               1402 arch/x86/include/asm/kvm_host.h void kvm_requeue_exception(struct kvm_vcpu *vcpu, unsigned nr);
nr               1403 arch/x86/include/asm/kvm_host.h void kvm_requeue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code);
nr                 33 arch/x86/include/asm/kvm_para.h static inline long kvm_hypercall0(unsigned int nr)
nr                 38 arch/x86/include/asm/kvm_para.h 		     : "a"(nr)
nr                 43 arch/x86/include/asm/kvm_para.h static inline long kvm_hypercall1(unsigned int nr, unsigned long p1)
nr                 48 arch/x86/include/asm/kvm_para.h 		     : "a"(nr), "b"(p1)
nr                 53 arch/x86/include/asm/kvm_para.h static inline long kvm_hypercall2(unsigned int nr, unsigned long p1,
nr                 59 arch/x86/include/asm/kvm_para.h 		     : "a"(nr), "b"(p1), "c"(p2)
nr                 64 arch/x86/include/asm/kvm_para.h static inline long kvm_hypercall3(unsigned int nr, unsigned long p1,
nr                 70 arch/x86/include/asm/kvm_para.h 		     : "a"(nr), "b"(p1), "c"(p2), "d"(p3)
nr                 75 arch/x86/include/asm/kvm_para.h static inline long kvm_hypercall4(unsigned int nr, unsigned long p1,
nr                 82 arch/x86/include/asm/kvm_para.h 		     : "a"(nr), "b"(p1), "c"(p2), "d"(p3), "S"(p4)
nr                 47 arch/x86/include/asm/nospec-branch.h #define __FILL_RETURN_BUFFER(reg, nr, sp)	\
nr                 48 arch/x86/include/asm/nospec-branch.h 	mov	$(nr/2), reg;			\
nr                 64 arch/x86/include/asm/nospec-branch.h 	add	$(BITS_PER_LONG/8) * nr, sp;
nr                139 arch/x86/include/asm/nospec-branch.h .macro FILL_RETURN_BUFFER reg:req nr:req ftr:req
nr                524 arch/x86/include/asm/percpu.h static __always_inline bool x86_this_cpu_constant_test_bit(unsigned int nr,
nr                528 arch/x86/include/asm/percpu.h 		(unsigned long __percpu *)addr + nr / BITS_PER_LONG;
nr                531 arch/x86/include/asm/percpu.h 	return ((1UL << (nr % BITS_PER_LONG)) & raw_cpu_read_8(*a)) != 0;
nr                533 arch/x86/include/asm/percpu.h 	return ((1UL << (nr % BITS_PER_LONG)) & raw_cpu_read_4(*a)) != 0;
nr                537 arch/x86/include/asm/percpu.h static inline bool x86_this_cpu_variable_test_bit(int nr,
nr                545 arch/x86/include/asm/percpu.h 			: "m" (*(unsigned long __percpu *)addr), "Ir" (nr));
nr                550 arch/x86/include/asm/percpu.h #define x86_this_cpu_test_bit(nr, addr)			\
nr                551 arch/x86/include/asm/percpu.h 	(__builtin_constant_p((nr))			\
nr                552 arch/x86/include/asm/percpu.h 	 ? x86_this_cpu_constant_test_bit((nr), (addr))	\
nr                553 arch/x86/include/asm/percpu.h 	 : x86_this_cpu_variable_test_bit((nr), (addr)))
nr                325 arch/x86/include/asm/perf_event.h extern struct perf_guest_switch_msr *perf_guest_get_msrs(int *nr);
nr                330 arch/x86/include/asm/perf_event.h static inline struct perf_guest_switch_msr *perf_guest_get_msrs(int *nr)
nr                332 arch/x86/include/asm/perf_event.h 	*nr = 0;
nr                 32 arch/x86/include/asm/sync_bitops.h static inline void sync_set_bit(long nr, volatile unsigned long *addr)
nr                 36 arch/x86/include/asm/sync_bitops.h 		     : "Ir" (nr)
nr                 50 arch/x86/include/asm/sync_bitops.h static inline void sync_clear_bit(long nr, volatile unsigned long *addr)
nr                 54 arch/x86/include/asm/sync_bitops.h 		     : "Ir" (nr)
nr                 67 arch/x86/include/asm/sync_bitops.h static inline void sync_change_bit(long nr, volatile unsigned long *addr)
nr                 71 arch/x86/include/asm/sync_bitops.h 		     : "Ir" (nr)
nr                 83 arch/x86/include/asm/sync_bitops.h static inline bool sync_test_and_set_bit(long nr, volatile unsigned long *addr)
nr                 85 arch/x86/include/asm/sync_bitops.h 	return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(bts), *addr, c, "Ir", nr);
nr                 96 arch/x86/include/asm/sync_bitops.h static inline int sync_test_and_clear_bit(long nr, volatile unsigned long *addr)
nr                 98 arch/x86/include/asm/sync_bitops.h 	return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(btr), *addr, c, "Ir", nr);
nr                109 arch/x86/include/asm/sync_bitops.h static inline int sync_test_and_change_bit(long nr, volatile unsigned long *addr)
nr                111 arch/x86/include/asm/sync_bitops.h 	return GEN_BINARY_RMWcc("lock; " __ASM_SIZE(btc), *addr, c, "Ir", nr);
nr                114 arch/x86/include/asm/sync_bitops.h #define sync_test_bit(nr, addr) test_bit(nr, addr)
nr                301 arch/x86/include/uapi/asm/kvm.h 		__u8 nr;
nr                308 arch/x86/include/uapi/asm/kvm.h 		__u8 nr;
nr                642 arch/x86/kernel/apic/vector.c 	int nr;
nr                647 arch/x86/kernel/apic/vector.c 	nr = (gsi_top + nr_legacy_irqs()) + 8 * nr_cpu_ids;
nr                653 arch/x86/kernel/apic/vector.c 		nr +=  8 * nr_cpu_ids;
nr                655 arch/x86/kernel/apic/vector.c 		nr += gsi_top * 16;
nr                657 arch/x86/kernel/apic/vector.c 	if (nr < nr_irqs)
nr                658 arch/x86/kernel/apic/vector.c 		nr_irqs = nr;
nr                  8 arch/x86/kernel/asm-offsets_32.c #define __SYSCALL_I386(nr, sym, qual) [nr] = 1,
nr                  8 arch/x86/kernel/asm-offsets_64.c #define __SYSCALL_64(nr, sym, qual) [nr] = 1,
nr                  9 arch/x86/kernel/asm-offsets_64.c #define __SYSCALL_X32(nr, sym, qual)
nr                 17 arch/x86/kernel/asm-offsets_64.c #define __SYSCALL_64(nr, sym, qual)
nr                 18 arch/x86/kernel/asm-offsets_64.c #define __SYSCALL_X32(nr, sym, qual) [nr] = 1,
nr                 26 arch/x86/kernel/asm-offsets_64.c #define __SYSCALL_I386(nr, sym, qual) [nr] = 1,
nr                315 arch/x86/kernel/fpu/xstate.c #define CHECK_XFEATURE(nr) do {		\
nr                316 arch/x86/kernel/fpu/xstate.c 	WARN_ON(nr < FIRST_EXTENDED_XFEATURE);	\
nr                317 arch/x86/kernel/fpu/xstate.c 	WARN_ON(nr >= XFEATURE_MAX);	\
nr                524 arch/x86/kernel/fpu/xstate.c #define XCHECK_SZ(sz, nr, nr_macro, __struct) do {			\
nr                525 arch/x86/kernel/fpu/xstate.c 	if ((nr == nr_macro) &&						\
nr                538 arch/x86/kernel/fpu/xstate.c static void check_xstate_against_struct(int nr)
nr                543 arch/x86/kernel/fpu/xstate.c 	int sz = xfeature_size(nr);
nr                548 arch/x86/kernel/fpu/xstate.c 	XCHECK_SZ(sz, nr, XFEATURE_YMM,       struct ymmh_struct);
nr                549 arch/x86/kernel/fpu/xstate.c 	XCHECK_SZ(sz, nr, XFEATURE_BNDREGS,   struct mpx_bndreg_state);
nr                550 arch/x86/kernel/fpu/xstate.c 	XCHECK_SZ(sz, nr, XFEATURE_BNDCSR,    struct mpx_bndcsr_state);
nr                551 arch/x86/kernel/fpu/xstate.c 	XCHECK_SZ(sz, nr, XFEATURE_OPMASK,    struct avx_512_opmask_state);
nr                552 arch/x86/kernel/fpu/xstate.c 	XCHECK_SZ(sz, nr, XFEATURE_ZMM_Hi256, struct avx_512_zmm_uppers_state);
nr                553 arch/x86/kernel/fpu/xstate.c 	XCHECK_SZ(sz, nr, XFEATURE_Hi16_ZMM,  struct avx_512_hi16_state);
nr                554 arch/x86/kernel/fpu/xstate.c 	XCHECK_SZ(sz, nr, XFEATURE_PKRU,      struct pkru_state);
nr                561 arch/x86/kernel/fpu/xstate.c 	if ((nr < XFEATURE_YMM) ||
nr                562 arch/x86/kernel/fpu/xstate.c 	    (nr >= XFEATURE_MAX) ||
nr                563 arch/x86/kernel/fpu/xstate.c 	    (nr == XFEATURE_PT_UNIMPLEMENTED_SO_FAR)) {
nr                564 arch/x86/kernel/fpu/xstate.c 		WARN_ONCE(1, "no structure for xstate: %d\n", nr);
nr                 62 arch/x86/kernel/ksysfs.c static int kobj_to_setup_data_nr(struct kobject *kobj, int *nr)
nr                 67 arch/x86/kernel/ksysfs.c 	return kstrtoint(name, 10, nr);
nr                 70 arch/x86/kernel/ksysfs.c static int get_setup_data_paddr(int nr, u64 *paddr)
nr                 77 arch/x86/kernel/ksysfs.c 		if (nr == i) {
nr                 92 arch/x86/kernel/ksysfs.c static int __init get_setup_data_size(int nr, size_t *size)
nr                102 arch/x86/kernel/ksysfs.c 		if (nr == i) {
nr                118 arch/x86/kernel/ksysfs.c 	int nr, ret;
nr                122 arch/x86/kernel/ksysfs.c 	ret = kobj_to_setup_data_nr(kobj, &nr);
nr                126 arch/x86/kernel/ksysfs.c 	ret = get_setup_data_paddr(nr, &paddr);
nr                144 arch/x86/kernel/ksysfs.c 	int nr, ret = 0;
nr                149 arch/x86/kernel/ksysfs.c 	ret = kobj_to_setup_data_nr(kobj, &nr);
nr                153 arch/x86/kernel/ksysfs.c 	ret = get_setup_data_paddr(nr, &paddr);
nr                210 arch/x86/kernel/ksysfs.c 					 struct kobject **kobjp, int nr)
nr                216 arch/x86/kernel/ksysfs.c 	snprintf(name, 16, "%d", nr);
nr                222 arch/x86/kernel/ksysfs.c 	ret = get_setup_data_size(nr, &size);
nr                244 arch/x86/kernel/ksysfs.c static int __init get_setup_data_total_num(u64 pa_data, int *nr)
nr                249 arch/x86/kernel/ksysfs.c 	*nr = 0;
nr                251 arch/x86/kernel/ksysfs.c 		*nr += 1;
nr                269 arch/x86/kernel/ksysfs.c 	int i, j, nr, ret = 0;
nr                281 arch/x86/kernel/ksysfs.c 	ret = get_setup_data_total_num(pa_data, &nr);
nr                285 arch/x86/kernel/ksysfs.c 	kobjp = kmalloc_array(nr, sizeof(*kobjp), GFP_KERNEL);
nr                291 arch/x86/kernel/ksysfs.c 	for (i = 0; i < nr; i++) {
nr                634 arch/x86/kernel/ptrace.c static int ptrace_set_breakpoint_addr(struct task_struct *tsk, int nr,
nr                638 arch/x86/kernel/ptrace.c 	struct perf_event *bp = t->ptrace_bps[nr];
nr                659 arch/x86/kernel/ptrace.c 			t->ptrace_bps[nr] = bp;
nr               1251 arch/x86/kernel/smpboot.c 		unsigned nr;
nr               1256 arch/x86/kernel/smpboot.c 		nr = 0;
nr               1258 arch/x86/kernel/smpboot.c 			if (nr >= 8)
nr               1260 arch/x86/kernel/smpboot.c 			nr++;
nr               1263 arch/x86/kernel/smpboot.c 		nr = 0;
nr               1265 arch/x86/kernel/smpboot.c 			if (nr >= 8)
nr               1267 arch/x86/kernel/smpboot.c 			nr++;
nr                143 arch/x86/kernel/tboot.c 			   unsigned long nr)
nr                150 arch/x86/kernel/tboot.c 	for (; nr > 0; nr--, vaddr += PAGE_SIZE, start_pfn++) {
nr                450 arch/x86/kernel/vm86_32.c static inline int is_revectored(int nr, struct revectored_struct *bitmap)
nr                452 arch/x86/kernel/vm86_32.c 	return test_bit(nr, bitmap->__map);
nr                265 arch/x86/kvm/emulate.c static ulong reg_read(struct x86_emulate_ctxt *ctxt, unsigned nr)
nr                267 arch/x86/kvm/emulate.c 	if (!(ctxt->regs_valid & (1 << nr))) {
nr                268 arch/x86/kvm/emulate.c 		ctxt->regs_valid |= 1 << nr;
nr                269 arch/x86/kvm/emulate.c 		ctxt->_regs[nr] = ctxt->ops->read_gpr(ctxt, nr);
nr                271 arch/x86/kvm/emulate.c 	return ctxt->_regs[nr];
nr                274 arch/x86/kvm/emulate.c static ulong *reg_write(struct x86_emulate_ctxt *ctxt, unsigned nr)
nr                276 arch/x86/kvm/emulate.c 	ctxt->regs_valid |= 1 << nr;
nr                277 arch/x86/kvm/emulate.c 	ctxt->regs_dirty |= 1 << nr;
nr                278 arch/x86/kvm/emulate.c 	return &ctxt->_regs[nr];
nr                281 arch/x86/kvm/emulate.c static ulong *reg_rmw(struct x86_emulate_ctxt *ctxt, unsigned nr)
nr                283 arch/x86/kvm/emulate.c 	reg_read(ctxt, nr);
nr                284 arch/x86/kvm/emulate.c 	return reg_write(ctxt, nr);
nr               4210 arch/x86/kvm/emulate.c static bool valid_cr(int nr)
nr               4212 arch/x86/kvm/emulate.c 	switch (nr) {
nr                140 arch/x86/kvm/irq.c 		return v->arch.interrupt.nr;
nr               2134 arch/x86/kvm/mmu.c static inline void kvm_mod_used_mmu_pages(struct kvm *kvm, unsigned long nr)
nr               2136 arch/x86/kvm/mmu.c 	kvm->arch.n_used_mmu_pages += nr;
nr               2137 arch/x86/kvm/mmu.c 	percpu_counter_add(&kvm_total_used_mmu_pages, nr);
nr               2248 arch/x86/kvm/mmu.c 	unsigned int nr;
nr               2257 arch/x86/kvm/mmu.c 		for (i=0; i < pvec->nr; i++)
nr               2261 arch/x86/kvm/mmu.c 	pvec->page[pvec->nr].sp = sp;
nr               2262 arch/x86/kvm/mmu.c 	pvec->page[pvec->nr].idx = idx;
nr               2263 arch/x86/kvm/mmu.c 	pvec->nr++;
nr               2264 arch/x86/kvm/mmu.c 	return (pvec->nr == KVM_PAGE_ARRAY_NR);
nr               2318 arch/x86/kvm/mmu.c 	pvec->nr = 0;
nr               2438 arch/x86/kvm/mmu.c 			i < pvec.nr && ({ sp = pvec.page[i].sp; 1;});	\
nr               2447 arch/x86/kvm/mmu.c 	for (n = i+1; n < pvec->nr; n++) {
nr               2468 arch/x86/kvm/mmu.c 	if (pvec->nr == 0)
nr                393 arch/x86/kvm/svm.c static int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr,
nr                803 arch/x86/kvm/svm.c 	unsigned nr = vcpu->arch.exception.nr;
nr                813 arch/x86/kvm/svm.c 	    nested_svm_check_exception(svm, nr, has_error_code, error_code))
nr                818 arch/x86/kvm/svm.c 	if (nr == BP_VECTOR && !nrips) {
nr                834 arch/x86/kvm/svm.c 	svm->vmcb->control.event_inj = nr
nr               3065 arch/x86/kvm/svm.c static int nested_svm_check_exception(struct vcpu_svm *svm, unsigned nr,
nr               3077 arch/x86/kvm/svm.c 	svm->vmcb->control.exit_code = SVM_EXIT_EXCP_BASE + nr;
nr               5125 arch/x86/kvm/svm.c 	trace_kvm_inj_virq(vcpu->arch.interrupt.nr);
nr               5128 arch/x86/kvm/svm.c 	svm->vmcb->control.event_inj = vcpu->arch.interrupt.nr |
nr                 36 arch/x86/kvm/trace.h 	TP_PROTO(unsigned long nr, unsigned long a0, unsigned long a1,
nr                 38 arch/x86/kvm/trace.h 	TP_ARGS(nr, a0, a1, a2, a3),
nr                 41 arch/x86/kvm/trace.h 		__field(	unsigned long, 	nr		)
nr                 49 arch/x86/kvm/trace.h 		__entry->nr		= nr;
nr                 57 arch/x86/kvm/trace.h 		 __entry->nr, __entry->a0, __entry->a1,  __entry->a2,
nr                390 arch/x86/kvm/vmx/nested.c 	unsigned int nr = vcpu->arch.exception.nr;
nr                394 arch/x86/kvm/vmx/nested.c 	if (nr == PF_VECTOR) {
nr                404 arch/x86/kvm/vmx/nested.c 	} else if (vmcs12->exception_bitmap & (1u << nr)) {
nr                405 arch/x86/kvm/vmx/nested.c 		if (nr == DB_VECTOR) {
nr               2289 arch/x86/kvm/vmx/nested.c 	vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, vmx->msr_autoload.host.nr);
nr               2290 arch/x86/kvm/vmx/nested.c 	vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, vmx->msr_autoload.guest.nr);
nr               2832 arch/x86/kvm/vmx/nested.c 	if (vmx->msr_autoload.host.nr)
nr               2834 arch/x86/kvm/vmx/nested.c 	if (vmx->msr_autoload.guest.nr)
nr               2891 arch/x86/kvm/vmx/nested.c 	if (vmx->msr_autoload.host.nr)
nr               2892 arch/x86/kvm/vmx/nested.c 		vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, vmx->msr_autoload.host.nr);
nr               2893 arch/x86/kvm/vmx/nested.c 	if (vmx->msr_autoload.guest.nr)
nr               2894 arch/x86/kvm/vmx/nested.c 		vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, vmx->msr_autoload.guest.nr);
nr               3346 arch/x86/kvm/vmx/nested.c 	unsigned int nr;
nr               3349 arch/x86/kvm/vmx/nested.c 		nr = vcpu->arch.exception.nr;
nr               3350 arch/x86/kvm/vmx/nested.c 		idt_vectoring = nr | VECTORING_INFO_VALID_MASK;
nr               3352 arch/x86/kvm/vmx/nested.c 		if (kvm_exception_is_soft(nr)) {
nr               3370 arch/x86/kvm/vmx/nested.c 		nr = vcpu->arch.interrupt.nr;
nr               3371 arch/x86/kvm/vmx/nested.c 		idt_vectoring = nr | VECTORING_INFO_VALID_MASK;
nr               3443 arch/x86/kvm/vmx/nested.c 	unsigned int nr = vcpu->arch.exception.nr;
nr               3444 arch/x86/kvm/vmx/nested.c 	u32 intr_info = nr | INTR_INFO_VALID_MASK;
nr               3451 arch/x86/kvm/vmx/nested.c 	if (kvm_exception_is_soft(nr))
nr               3948 arch/x86/kvm/vmx/nested.c 	for (i = 0; i < vmx->msr_autoload.guest.nr; ++i) {
nr               4122 arch/x86/kvm/vmx/nested.c 	vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, vmx->msr_autoload.host.nr);
nr               4123 arch/x86/kvm/vmx/nested.c 	vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, vmx->msr_autoload.guest.nr);
nr                819 arch/x86/kvm/vmx/vmx.c 	for (i = 0; i < m->nr; ++i) {
nr                852 arch/x86/kvm/vmx/vmx.c 	--m->guest.nr;
nr                853 arch/x86/kvm/vmx/vmx.c 	m->guest.val[i] = m->guest.val[m->guest.nr];
nr                854 arch/x86/kvm/vmx/vmx.c 	vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, m->guest.nr);
nr                861 arch/x86/kvm/vmx/vmx.c 	--m->host.nr;
nr                862 arch/x86/kvm/vmx/vmx.c 	m->host.val[i] = m->host.val[m->host.nr];
nr                863 arch/x86/kvm/vmx/vmx.c 	vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, m->host.nr);
nr                920 arch/x86/kvm/vmx/vmx.c 	if ((i < 0 && m->guest.nr == NR_AUTOLOAD_MSRS) ||
nr                921 arch/x86/kvm/vmx/vmx.c 		(j < 0 &&  m->host.nr == NR_AUTOLOAD_MSRS)) {
nr                927 arch/x86/kvm/vmx/vmx.c 		i = m->guest.nr++;
nr                928 arch/x86/kvm/vmx/vmx.c 		vmcs_write32(VM_ENTRY_MSR_LOAD_COUNT, m->guest.nr);
nr                937 arch/x86/kvm/vmx/vmx.c 		j = m->host.nr++;
nr                938 arch/x86/kvm/vmx/vmx.c 		vmcs_write32(VM_EXIT_MSR_LOAD_COUNT, m->host.nr);
nr               1582 arch/x86/kvm/vmx/vmx.c 	unsigned nr = vcpu->arch.exception.nr;
nr               1585 arch/x86/kvm/vmx/vmx.c 	u32 intr_info = nr | INTR_INFO_VALID_MASK;
nr               1596 arch/x86/kvm/vmx/vmx.c 		if (kvm_exception_is_soft(nr))
nr               1598 arch/x86/kvm/vmx/vmx.c 		kvm_inject_realmode_interrupt(vcpu, nr, inc_eip);
nr               1604 arch/x86/kvm/vmx/vmx.c 	if (kvm_exception_is_soft(nr)) {
nr               4373 arch/x86/kvm/vmx/vmx.c 	int irq = vcpu->arch.interrupt.nr;
nr                 28 arch/x86/kvm/vmx/vmx.h 	unsigned int		nr;
nr                165 arch/x86/kvm/x86.c 	int nr;
nr                256 arch/x86/kvm/x86.c 	for (slot = 0; slot < shared_msrs_global.nr; ++slot) {
nr                273 arch/x86/kvm/x86.c 	if (slot >= shared_msrs_global.nr) {
nr                286 arch/x86/kvm/x86.c 	if (slot >= shared_msrs_global.nr)
nr                287 arch/x86/kvm/x86.c 		shared_msrs_global.nr = slot + 1;
nr                295 arch/x86/kvm/x86.c 	for (i = 0; i < shared_msrs_global.nr; ++i)
nr                419 arch/x86/kvm/x86.c 	unsigned nr = vcpu->arch.exception.nr;
nr                426 arch/x86/kvm/x86.c 	switch (nr) {
nr                468 arch/x86/kvm/x86.c 		unsigned nr, bool has_error, u32 error_code,
nr                504 arch/x86/kvm/x86.c 		vcpu->arch.exception.nr = nr;
nr                526 arch/x86/kvm/x86.c 	prev_nr = vcpu->arch.exception.nr;
nr                533 arch/x86/kvm/x86.c 	class2 = exception_class(nr);
nr                544 arch/x86/kvm/x86.c 		vcpu->arch.exception.nr = DF_VECTOR;
nr                555 arch/x86/kvm/x86.c void kvm_queue_exception(struct kvm_vcpu *vcpu, unsigned nr)
nr                557 arch/x86/kvm/x86.c 	kvm_multiple_exception(vcpu, nr, false, 0, false, 0, false);
nr                561 arch/x86/kvm/x86.c void kvm_requeue_exception(struct kvm_vcpu *vcpu, unsigned nr)
nr                563 arch/x86/kvm/x86.c 	kvm_multiple_exception(vcpu, nr, false, 0, false, 0, true);
nr                567 arch/x86/kvm/x86.c static void kvm_queue_exception_p(struct kvm_vcpu *vcpu, unsigned nr,
nr                570 arch/x86/kvm/x86.c 	kvm_multiple_exception(vcpu, nr, false, 0, true, payload, false);
nr                573 arch/x86/kvm/x86.c static void kvm_queue_exception_e_p(struct kvm_vcpu *vcpu, unsigned nr,
nr                576 arch/x86/kvm/x86.c 	kvm_multiple_exception(vcpu, nr, true, error_code,
nr                623 arch/x86/kvm/x86.c void kvm_queue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code)
nr                625 arch/x86/kvm/x86.c 	kvm_multiple_exception(vcpu, nr, true, error_code, false, 0, false);
nr                629 arch/x86/kvm/x86.c void kvm_requeue_exception_e(struct kvm_vcpu *vcpu, unsigned nr, u32 error_code)
nr                631 arch/x86/kvm/x86.c 	kvm_multiple_exception(vcpu, nr, true, error_code, false, 0, true);
nr               3776 arch/x86/kvm/x86.c 	if (kvm_exception_is_soft(vcpu->arch.exception.nr)) {
nr               3791 arch/x86/kvm/x86.c 	events->exception.nr = vcpu->arch.exception.nr;
nr               3799 arch/x86/kvm/x86.c 	events->interrupt.nr = vcpu->arch.interrupt.nr;
nr               3850 arch/x86/kvm/x86.c 	    (events->exception.nr > 31 || events->exception.nr == NMI_VECTOR))
nr               3862 arch/x86/kvm/x86.c 	vcpu->arch.exception.nr = events->exception.nr;
nr               3869 arch/x86/kvm/x86.c 	vcpu->arch.interrupt.nr = events->interrupt.nr;
nr               7452 arch/x86/kvm/x86.c 	unsigned long nr, a0, a1, a2, a3, ret;
nr               7458 arch/x86/kvm/x86.c 	nr = kvm_rax_read(vcpu);
nr               7464 arch/x86/kvm/x86.c 	trace_kvm_hypercall(nr, a0, a1, a2, a3);
nr               7468 arch/x86/kvm/x86.c 		nr &= 0xFFFFFFFF;
nr               7480 arch/x86/kvm/x86.c 	switch (nr) {
nr               7615 arch/x86/kvm/x86.c 		trace_kvm_inj_exception(vcpu->arch.exception.nr,
nr               7623 arch/x86/kvm/x86.c 		if (exception_type(vcpu->arch.exception.nr) == EXCPT_FAULT)
nr               7627 arch/x86/kvm/x86.c 		if (vcpu->arch.exception.nr == DB_VECTOR) {
nr               8754 arch/x86/kvm/x86.c 		set_bit(vcpu->arch.interrupt.nr,
nr               10233 arch/x86/kvm/x86.c 		    vcpu->arch.exception.nr == PF_VECTOR &&
nr               10237 arch/x86/kvm/x86.c 			vcpu->arch.exception.nr = 0;
nr                 60 arch/x86/kvm/x86.h 	vcpu->arch.interrupt.nr = vector;
nr                 74 arch/x86/kvm/x86.h static inline bool kvm_exception_is_soft(unsigned int nr)
nr                 76 arch/x86/kvm/x86.h 	return (nr == BP_VECTOR) || (nr == OF_VECTOR);
nr                207 arch/x86/math-emu/reg_compare.c static int compare_st_st(int nr)
nr                212 arch/x86/math-emu/reg_compare.c 	if (!NOT_EMPTY(0) || !NOT_EMPTY(nr)) {
nr                219 arch/x86/math-emu/reg_compare.c 	st_ptr = &st(nr);
nr                220 arch/x86/math-emu/reg_compare.c 	c = compare(st_ptr, FPU_gettagi(nr));
nr                253 arch/x86/math-emu/reg_compare.c static int compare_i_st_st(int nr)
nr                258 arch/x86/math-emu/reg_compare.c 	if (!NOT_EMPTY(0) || !NOT_EMPTY(nr)) {
nr                266 arch/x86/math-emu/reg_compare.c 	st_ptr = &st(nr);
nr                267 arch/x86/math-emu/reg_compare.c 	c = compare(st_ptr, FPU_gettagi(nr));
nr                301 arch/x86/math-emu/reg_compare.c static int compare_u_st_st(int nr)
nr                306 arch/x86/math-emu/reg_compare.c 	if (!NOT_EMPTY(0) || !NOT_EMPTY(nr)) {
nr                313 arch/x86/math-emu/reg_compare.c 	st_ptr = &st(nr);
nr                314 arch/x86/math-emu/reg_compare.c 	c = compare(st_ptr, FPU_gettagi(nr));
nr                351 arch/x86/math-emu/reg_compare.c static int compare_ui_st_st(int nr)
nr                356 arch/x86/math-emu/reg_compare.c 	if (!NOT_EMPTY(0) || !NOT_EMPTY(nr)) {
nr                364 arch/x86/math-emu/reg_compare.c 	st_ptr = &st(nr);
nr                365 arch/x86/math-emu/reg_compare.c 	c = compare(st_ptr, FPU_gettagi(nr));
nr                559 arch/x86/mm/fault.c 	unsigned long nr;
nr                565 arch/x86/mm/fault.c 		nr = (address - idt_descr.address) >> 3;
nr                567 arch/x86/mm/fault.c 		if (nr == 6) {
nr                 30 arch/x86/mm/hugetlbpage.c 	int nr;
nr                176 arch/x86/pci/irq.c static unsigned int read_config_nybble(struct pci_dev *router, unsigned offset, unsigned nr)
nr                179 arch/x86/pci/irq.c 	unsigned reg = offset + (nr >> 1);
nr                182 arch/x86/pci/irq.c 	return (nr & 1) ? (x >> 4) : (x & 0xf);
nr                186 arch/x86/pci/irq.c 	unsigned nr, unsigned int val)
nr                189 arch/x86/pci/irq.c 	unsigned reg = offset + (nr >> 1);
nr                192 arch/x86/pci/irq.c 	x = (nr & 1) ? ((x & 0x0f) | (val << 4)) : ((x & 0xf0) | val);
nr                 20 arch/x86/platform/intel-mid/device_libs/platform_max7315.c 	static int nr;
nr                 21 arch/x86/platform/intel-mid/device_libs/platform_max7315.c 	struct pca953x_platform_data *max7315 = &max7315_pdata[nr];
nr                 27 arch/x86/platform/intel-mid/device_libs/platform_max7315.c 	if (nr == MAX7315_NUM) {
nr                 36 arch/x86/platform/intel-mid/device_libs/platform_max7315.c 	if (nr++) {
nr                 38 arch/x86/platform/intel-mid/device_libs/platform_max7315.c 			 "max7315_%d_base", nr);
nr                 40 arch/x86/platform/intel-mid/device_libs/platform_max7315.c 			 "max7315_%d_int", nr);
nr                 22 arch/x86/platform/intel-mid/device_libs/platform_pcal9555a.c static int nr;
nr                 43 arch/x86/platform/intel-mid/device_libs/platform_pcal9555a.c 	if (nr >= PCAL9555A_NUM) {
nr                 49 arch/x86/platform/intel-mid/device_libs/platform_pcal9555a.c 	pcal9555a = &pcal9555a_pdata[nr++];
nr                 29 arch/x86/um/sys_call_table_32.c #define __SYSCALL_I386(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
nr                 33 arch/x86/um/sys_call_table_32.c #define __SYSCALL_I386(nr, sym, qual) [ nr ] = sym,
nr                 39 arch/x86/um/sys_call_table_64.c #define __SYSCALL_64(nr, sym, qual) extern asmlinkage long sym(unsigned long, unsigned long, unsigned long, unsigned long, unsigned long, unsigned long) ;
nr                 43 arch/x86/um/sys_call_table_64.c #define __SYSCALL_64(nr, sym, qual) [ nr ] = sym,
nr                 13 arch/x86/um/user-offsets.c #define __SYSCALL_I386(nr, sym, qual) [nr] = 1,
nr                 18 arch/x86/um/user-offsets.c #define __SYSCALL_64(nr, sym, qual) [nr] = 1,
nr                635 arch/x86/xen/enlighten_pv.c 	unsigned int nr;
nr                645 arch/x86/xen/enlighten_pv.c 	for (nr = 0; nr < ARRAY_SIZE(trap_array); nr++) {
nr                646 arch/x86/xen/enlighten_pv.c 		struct trap_array_entry *entry = trap_array + nr;
nr                655 arch/x86/xen/enlighten_pv.c 	if (nr == ARRAY_SIZE(trap_array) &&
nr                658 arch/x86/xen/enlighten_pv.c 		nr = (*addr - (void *)early_idt_handler_array[0]) /
nr                660 arch/x86/xen/enlighten_pv.c 		*addr = (void *)xen_early_idt_handler_array[nr];
nr               1121 arch/x86/xen/enlighten_pv.c 	unsigned nr;
nr               1130 arch/x86/xen/enlighten_pv.c 	for (nr = 0; nr < EDDMAXNR; nr++) {
nr               1131 arch/x86/xen/enlighten_pv.c 		struct edd_info *info = edd_info + nr;
nr               1133 arch/x86/xen/enlighten_pv.c 		op.u.firmware_info.index = nr;
nr               1150 arch/x86/xen/enlighten_pv.c 	boot_params.eddbuf_entries = nr;
nr               1153 arch/x86/xen/enlighten_pv.c 	for (nr = 0; nr < EDD_MBR_SIG_MAX; nr++) {
nr               1154 arch/x86/xen/enlighten_pv.c 		op.u.firmware_info.index = nr;
nr               1158 arch/x86/xen/enlighten_pv.c 		mbr_signature[nr] = op.u.firmware_info.u.disk_mbr_signature.mbr_signature;
nr               1160 arch/x86/xen/enlighten_pv.c 	boot_params.edd_mbr_sig_buf_entries = nr;
nr                 43 arch/x86/xen/mmu.c 			       int nr, struct page **pages)
nr                 46 arch/x86/xen/mmu.c 		return xen_xlate_unmap_gfn_range(vma, nr, pages);
nr                580 arch/x86/xen/mmu_pv.c 	int i, nr, flush = 0;
nr                582 arch/x86/xen/mmu_pv.c 	nr = last ? pmd_index(limit) + 1 : PTRS_PER_PMD;
nr                583 arch/x86/xen/mmu_pv.c 	for (i = 0; i < nr; i++) {
nr                594 arch/x86/xen/mmu_pv.c 	int i, nr, flush = 0;
nr                596 arch/x86/xen/mmu_pv.c 	nr = last ? pud_index(limit) + 1 : PTRS_PER_PUD;
nr                597 arch/x86/xen/mmu_pv.c 	for (i = 0; i < nr; i++) {
nr                607 arch/x86/xen/mmu_pv.c 				last && i == nr - 1, limit);
nr                650 arch/x86/xen/mmu_pv.c 	int i, nr, flush = 0;
nr                666 arch/x86/xen/mmu_pv.c 	nr = pgd_index(limit) + 1;
nr                667 arch/x86/xen/mmu_pv.c 	for (i = 0; i < nr; i++) {
nr                677 arch/x86/xen/mmu_pv.c 		flush |= xen_p4d_walk(mm, p4d, func, i == nr - 1, limit);
nr               2716 arch/x86/xen/mmu_pv.c 		  xen_pfn_t *pfn, int nr, int *err_ptr, pgprot_t prot,
nr               2736 arch/x86/xen/mmu_pv.c 	while (nr) {
nr               2739 arch/x86/xen/mmu_pv.c 		int batch = min(REMAP_BATCH_SIZE, nr);
nr               2780 arch/x86/xen/mmu_pv.c 		nr -= batch;
nr                 26 arch/xtensa/include/asm/highmem.h #define PKMAP_ADDR(nr)		(PKMAP_BASE + ((nr) << PAGE_SHIFT))
nr                 34 arch/xtensa/kernel/syscall.c #define __SYSCALL(nr, entry, nargs)[nr] = (syscall_t)entry,
nr                169 block/bio.c    struct bio_vec *bvec_alloc(gfp_t gfp_mask, int nr, unsigned long *idx,
nr                177 block/bio.c    	switch (nr) {
nr               3156 block/blk-mq.c int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr)
nr               3165 block/blk-mq.c 	if (q->nr_requests == nr)
nr               3180 block/blk-mq.c 			ret = blk_mq_tag_update_depth(hctx, &hctx->tags, nr,
nr               3184 block/blk-mq.c 							nr, true);
nr               3193 block/blk-mq.c 		q->nr_requests = nr;
nr                 41 block/blk-mq.h int blk_mq_update_nr_requests(struct request_queue *q, unsigned int nr);
nr                 68 block/blk-sysfs.c 	unsigned long nr;
nr                 74 block/blk-sysfs.c 	ret = queue_var_store(&nr, page, count);
nr                 78 block/blk-sysfs.c 	if (nr < BLKDEV_MIN_RQ)
nr                 79 block/blk-sysfs.c 		nr = BLKDEV_MIN_RQ;
nr                 81 block/blk-sysfs.c 	err = blk_mq_update_nr_requests(q, nr);
nr                542 block/kyber-iosched.c 	int nr;
nr                544 block/kyber-iosched.c 	nr = rq_get_domain_token(rq);
nr                545 block/kyber-iosched.c 	if (nr != -1) {
nr                547 block/kyber-iosched.c 		sbitmap_queue_clear(&kqd->domain_tokens[sched_domain], nr,
nr                710 block/kyber-iosched.c 	int nr;
nr                712 block/kyber-iosched.c 	nr = __sbitmap_queue_get(domain_tokens);
nr                719 block/kyber-iosched.c 	if (nr < 0 && list_empty_careful(&wait->wait.entry)) {
nr                729 block/kyber-iosched.c 		nr = __sbitmap_queue_get(domain_tokens);
nr                739 block/kyber-iosched.c 	if (nr >= 0 && !list_empty_careful(&wait->wait.entry)) {
nr                746 block/kyber-iosched.c 	return nr;
nr                756 block/kyber-iosched.c 	int nr;
nr                770 block/kyber-iosched.c 		nr = kyber_get_domain_token(kqd, khd, hctx);
nr                771 block/kyber-iosched.c 		if (nr >= 0) {
nr                773 block/kyber-iosched.c 			rq_set_domain_token(rq, nr);
nr                781 block/kyber-iosched.c 		nr = kyber_get_domain_token(kqd, khd, hctx);
nr                782 block/kyber-iosched.c 		if (nr >= 0) {
nr                786 block/kyber-iosched.c 			rq_set_domain_token(rq, nr);
nr                118 block/partitions/check.c 	int nr;
nr                124 block/partitions/check.c 	nr = disk_max_parts(hd);
nr                125 block/partitions/check.c 	state->parts = vzalloc(array_size(nr, sizeof(state->parts[0])));
nr                131 block/partitions/check.c 	state->limit = nr;
nr               2293 drivers/acpi/nfit/core.c 	u16 nr = ndr_desc->num_mappings;
nr               2303 drivers/acpi/nfit/core.c 	info = devm_kzalloc(dev, sizeof_nfit_set_info(nr), GFP_KERNEL);
nr               2307 drivers/acpi/nfit/core.c 	info2 = devm_kzalloc(dev, sizeof_nfit_set_info2(nr), GFP_KERNEL);
nr               2311 drivers/acpi/nfit/core.c 	for (i = 0; i < nr; i++) {
nr               2337 drivers/acpi/nfit/core.c 	sort(&info->mapping[0], nr, sizeof(struct nfit_set_info_map),
nr               2339 drivers/acpi/nfit/core.c 	nd_set->cookie1 = nd_fletcher64(info, sizeof_nfit_set_info(nr), 0);
nr               2342 drivers/acpi/nfit/core.c 	sort(&info2->mapping[0], nr, sizeof(struct nfit_set_info_map2),
nr               2344 drivers/acpi/nfit/core.c 	nd_set->cookie2 = nd_fletcher64(info2, sizeof_nfit_set_info2(nr), 0);
nr               2347 drivers/acpi/nfit/core.c 	sort(&info->mapping[0], nr, sizeof(struct nfit_set_info_map),
nr               2349 drivers/acpi/nfit/core.c 	nd_set->altcookie = nd_fletcher64(info, sizeof_nfit_set_info(nr), 0);
nr               2352 drivers/acpi/nfit/core.c 	for (i = 0; i < nr; i++) {
nr               2356 drivers/acpi/nfit/core.c 		for (j = 0; j < nr; j++) {
nr               1205 drivers/acpi/property.c 		u32 nr;
nr               1207 drivers/acpi/property.c 		if (fwnode_property_read_u32(child, prop_name, &nr))
nr               1210 drivers/acpi/property.c 		if (val == nr)
nr               2269 drivers/acpi/scan.c int __init __acpi_probe_device_table(struct acpi_probe_entry *ap_head, int nr)
nr               2277 drivers/acpi/scan.c 	for (ape = ap_head; nr; ape++, nr--) {
nr                805 drivers/ata/libata-eh.c 	int nr = 0;
nr                810 drivers/ata/libata-eh.c 			nr++;
nr                813 drivers/ata/libata-eh.c 	return nr;
nr                 67 drivers/atm/solos-pci.c #define RX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2)
nr                 68 drivers/atm/solos-pci.c #define TX_BUF(card, nr) ((card->buffers) + (nr)*(card->buffer_size)*2 + (card->buffer_size))
nr                660 drivers/base/memory.c 	unsigned long nr;
nr                662 drivers/base/memory.c 	for (nr = base_section_nr; nr < base_section_nr + sections_per_block;
nr                663 drivers/base/memory.c 	     nr++)
nr                664 drivers/base/memory.c 		if (present_section_nr(nr))
nr                789 drivers/base/memory.c 	unsigned long block_sz, nr;
nr                806 drivers/base/memory.c 	for (nr = 0; nr <= __highest_present_section_nr;
nr                807 drivers/base/memory.c 	     nr += sections_per_block) {
nr                808 drivers/base/memory.c 		err = add_memory_block(nr);
nr                208 drivers/base/platform.c 	int ret, nr = 0;
nr                210 drivers/base/platform.c 	while ((ret = __platform_get_irq(dev, nr)) >= 0)
nr                211 drivers/base/platform.c 		nr++;
nr                216 drivers/base/platform.c 	return nr;
nr                455 drivers/block/amiflop.c static int fd_motor_on(int nr)
nr                457 drivers/block/amiflop.c 	nr &= 3;
nr                459 drivers/block/amiflop.c 	del_timer(motor_off_timer + nr);
nr                461 drivers/block/amiflop.c 	if (!unit[nr].motor) {
nr                462 drivers/block/amiflop.c 		unit[nr].motor = 1;
nr                463 drivers/block/amiflop.c 		fd_select(nr);
nr                470 drivers/block/amiflop.c 		fd_deselect(nr);
nr                477 drivers/block/amiflop.c 		fd_motor_off (motor_off_timer + nr);
nr                506 drivers/block/amiflop.c static void floppy_off (unsigned int nr)
nr                510 drivers/block/amiflop.c 	drive = nr & 3;
nr               1367 drivers/block/amiflop.c 	unsigned long nr = ((unsigned long)timer -
nr               1371 drivers/block/amiflop.c 	nr&=3;
nr               1373 drivers/block/amiflop.c 	if (!try_fdc(nr)) {
nr               1375 drivers/block/amiflop.c 		flush_track_timer[nr].expires = jiffies + 1;
nr               1376 drivers/block/amiflop.c 		add_timer(flush_track_timer + nr);
nr               1379 drivers/block/amiflop.c 	get_fdc(nr);
nr               1380 drivers/block/amiflop.c 	(*unit[nr].dtype->write_fkt)(nr);
nr               1381 drivers/block/amiflop.c 	if (!raw_write(nr)) {
nr               1389 drivers/block/amiflop.c static int non_int_flush_track (unsigned long nr)
nr               1393 drivers/block/amiflop.c 	nr&=3;
nr               1396 drivers/block/amiflop.c 	get_fdc(nr);
nr               1397 drivers/block/amiflop.c 	if (!fd_motor_on(nr)) {
nr               1405 drivers/block/amiflop.c 		(*unit[nr].dtype->write_fkt)(nr);
nr               1406 drivers/block/amiflop.c 		if (!raw_write(nr)) {
nr               1417 drivers/block/amiflop.c 		post_write(nr);
nr               1515 drivers/block/drbd/drbd_receiver.c 	sector_t tmp, nr;
nr               1543 drivers/block/drbd/drbd_receiver.c 		nr = tmp - start;
nr               1546 drivers/block/drbd/drbd_receiver.c 		err |= blkdev_issue_zeroout(bdev, start, nr, GFP_NOIO, 0);
nr               1547 drivers/block/drbd/drbd_receiver.c 		nr_sectors -= nr;
nr               1560 drivers/block/drbd/drbd_receiver.c 		nr = nr_sectors;
nr               1561 drivers/block/drbd/drbd_receiver.c 		nr -= (unsigned int)nr % granularity;
nr               1562 drivers/block/drbd/drbd_receiver.c 		if (nr) {
nr               1563 drivers/block/drbd/drbd_receiver.c 			err |= blkdev_issue_discard(bdev, start, nr, GFP_NOIO, 0);
nr               1564 drivers/block/drbd/drbd_receiver.c 			nr_sectors -= nr;
nr               1565 drivers/block/drbd/drbd_receiver.c 			start += nr;
nr               1612 drivers/block/drbd/drbd_receiver.c 	sector_t nr = peer_req->i.size >> 9;
nr               1613 drivers/block/drbd/drbd_receiver.c 	if (blkdev_issue_write_same(bdev, s, nr, GFP_NOIO, peer_req->pages))
nr                912 drivers/block/floppy.c 	unsigned long nr = t - motor_off_timer;
nr                913 drivers/block/floppy.c 	unsigned char mask = ~(0x10 << UNIT(nr));
nr                915 drivers/block/floppy.c 	if (WARN_ON_ONCE(nr >= N_DRIVE))
nr                918 drivers/block/floppy.c 	set_dor(FDC(nr), mask, 0);
nr               2240 drivers/block/loop.c 	int i, nr;
nr               2279 drivers/block/loop.c 		nr = max_loop;
nr               2282 drivers/block/loop.c 		nr = CONFIG_BLK_DEV_LOOP_MIN_COUNT;
nr               2301 drivers/block/loop.c 	for (i = 0; i < nr; i++)
nr                423 drivers/block/xen-blkfront.c static int xlbd_reserve_minors(unsigned int minor, unsigned int nr)
nr                425 drivers/block/xen-blkfront.c 	unsigned int end = minor + nr;
nr                451 drivers/block/xen-blkfront.c 		bitmap_set(minors, minor, nr);
nr                460 drivers/block/xen-blkfront.c static void xlbd_release_minors(unsigned int minor, unsigned int nr)
nr                462 drivers/block/xen-blkfront.c 	unsigned int end = minor + nr;
nr                466 drivers/block/xen-blkfront.c 	bitmap_clear(minors,  minor, nr);
nr                804 drivers/bluetooth/hci_ldisc.c 				 unsigned char __user *buf, size_t nr)
nr               2132 drivers/cdrom/cdrom.c 	int nr;
nr               2141 drivers/cdrom/cdrom.c 	nr = nframes;
nr               2143 drivers/cdrom/cdrom.c 		cgc.buffer = kmalloc_array(nr, CD_FRAMESIZE_RAW, GFP_KERNEL);
nr               2147 drivers/cdrom/cdrom.c 		nr >>= 1;
nr               2148 drivers/cdrom/cdrom.c 	} while (nr);
nr               2150 drivers/cdrom/cdrom.c 	if (!nr)
nr               2155 drivers/cdrom/cdrom.c 		if (nr > nframes)
nr               2156 drivers/cdrom/cdrom.c 			nr = nframes;
nr               2158 drivers/cdrom/cdrom.c 		ret = cdrom_read_block(cdi, &cgc, lba, nr, 1, CD_FRAMESIZE_RAW);
nr               2161 drivers/cdrom/cdrom.c 		if (copy_to_user(ubuf, cgc.buffer, CD_FRAMESIZE_RAW * nr)) {
nr               2165 drivers/cdrom/cdrom.c 		ubuf += CD_FRAMESIZE_RAW * nr;
nr               2166 drivers/cdrom/cdrom.c 		nframes -= nr;
nr               2167 drivers/cdrom/cdrom.c 		lba += nr;
nr               2181 drivers/cdrom/cdrom.c 	int nr, ret = 0;
nr               2195 drivers/cdrom/cdrom.c 		nr = nframes;
nr               2197 drivers/cdrom/cdrom.c 			nr = 1;
nr               2198 drivers/cdrom/cdrom.c 		if (nr * CD_FRAMESIZE_RAW > (queue_max_sectors(q) << 9))
nr               2199 drivers/cdrom/cdrom.c 			nr = (queue_max_sectors(q) << 9) / CD_FRAMESIZE_RAW;
nr               2201 drivers/cdrom/cdrom.c 		len = nr * CD_FRAMESIZE_RAW;
nr               2222 drivers/cdrom/cdrom.c 		req->cmd[6] = (nr >> 16) & 0xff;
nr               2223 drivers/cdrom/cdrom.c 		req->cmd[7] = (nr >>  8) & 0xff;
nr               2224 drivers/cdrom/cdrom.c 		req->cmd[8] = nr & 0xff;
nr               2248 drivers/cdrom/cdrom.c 		nframes -= nr;
nr               2249 drivers/cdrom/cdrom.c 		lba += nr;
nr                108 drivers/char/ds1620.c static void ds1620_send_bits(int nr, int value)
nr                112 drivers/char/ds1620.c 	for (i = 0; i < nr; i++) {
nr                123 drivers/char/ds1620.c static unsigned int ds1620_recv_bits(int nr)
nr                130 drivers/char/ds1620.c 	for (i = 0; i < nr; i++) {
nr                311 drivers/char/ipmi/ipmb_dev_int.c 						client->adapter->nr);
nr                918 drivers/char/lp.c static int lp_register(int nr, struct parport *port)
nr                924 drivers/char/lp.c 	ppdev_cb.private = &lp_table[nr];
nr                925 drivers/char/lp.c 	lp_table[nr].dev = parport_register_dev_model(port, "lp",
nr                926 drivers/char/lp.c 						      &ppdev_cb, nr);
nr                927 drivers/char/lp.c 	if (lp_table[nr].dev == NULL)
nr                929 drivers/char/lp.c 	lp_table[nr].flags |= LP_EXIST;
nr                932 drivers/char/lp.c 		lp_reset(nr);
nr                934 drivers/char/lp.c 	device_create(lp_class, port->dev, MKDEV(LP_MAJOR, nr), NULL,
nr                935 drivers/char/lp.c 		      "lp%d", nr);
nr                937 drivers/char/lp.c 	printk(KERN_INFO "lp%d: using %s (%s).\n", nr, port->name,
nr                941 drivers/char/lp.c 	if (!nr) {
nr                951 drivers/char/lp.c 	port_num[nr] = port->number;
nr               1055 drivers/char/pcmcia/cm4000_cs.c 	unsigned short nr;
nr               1070 drivers/char/pcmcia/cm4000_cs.c 	nr = count & 0x1ff;	/* max bytes to write */
nr               1072 drivers/char/pcmcia/cm4000_cs.c 	sendT0 = dev->proto ? 0 : nr > 5 ? 0x08 : 0;
nr               1160 drivers/char/pcmcia/cm4000_cs.c 	for (i = 0; i < nr; i++) {
nr               1188 drivers/char/pcmcia/cm4000_cs.c 		if (nr == 4) {
nr               1199 drivers/char/pcmcia/cm4000_cs.c 			nsend = nr;
nr               1201 drivers/char/pcmcia/cm4000_cs.c 			if (nr == 4)
nr               1210 drivers/char/pcmcia/cm4000_cs.c 		nsend = nr;
nr               1346 drivers/char/pcmcia/cm4000_cs.c 	dev->rpos = dev->proto ? 0 : nr == 4 ? 5 : nr > dev->rlen ? 5 : nr;
nr               1348 drivers/char/pcmcia/cm4000_cs.c 	      dev->rlen, dev->rpos, nr);
nr               1369 drivers/char/pcmcia/cm4000_cs.c 	return rc < 0 ? rc : nr;
nr                477 drivers/clk/hisilicon/clk-hi3660.c 	int nr = ARRAY_SIZE(hi3660_iomcu_gate_sep_clks);
nr                479 drivers/clk/hisilicon/clk-hi3660.c 	clk_data = hisi_clk_init(np, nr);
nr                491 drivers/clk/hisilicon/clk-hi3660.c 	int nr = ARRAY_SIZE(hi3660_pmu_gate_clks);
nr                493 drivers/clk/hisilicon/clk-hi3660.c 	clk_data = hisi_clk_init(np, nr);
nr                504 drivers/clk/hisilicon/clk-hi3660.c 	int nr = ARRAY_SIZE(hi3660_pctrl_gate_clks);
nr                506 drivers/clk/hisilicon/clk-hi3660.c 	clk_data = hisi_clk_init(np, nr);
nr                516 drivers/clk/hisilicon/clk-hi3660.c 	int nr = ARRAY_SIZE(hi3660_sctrl_gate_clks) +
nr                521 drivers/clk/hisilicon/clk-hi3660.c 	clk_data = hisi_clk_init(np, nr);
nr                538 drivers/clk/hisilicon/clk-hi3660.c 	int nr = ARRAY_SIZE(hi3660_fixed_rate_clks) +
nr                546 drivers/clk/hisilicon/clk-hi3660.c 	clk_crgctrl_data = hisi_clk_init(np, nr);
nr                550 drivers/clk/hisilicon/clk-hi3660.c 	for (i = 0; i < nr; i++)
nr                829 drivers/clk/hisilicon/clk-hi3670.c 	int nr = ARRAY_SIZE(hi3670_fixed_rate_clks) +
nr                836 drivers/clk/hisilicon/clk-hi3670.c 	clk_data = hisi_clk_init(np, nr);
nr                863 drivers/clk/hisilicon/clk-hi3670.c 	int nr = ARRAY_SIZE(hi3670_pctrl_gate_clks);
nr                865 drivers/clk/hisilicon/clk-hi3670.c 	clk_data = hisi_clk_init(np, nr);
nr                875 drivers/clk/hisilicon/clk-hi3670.c 	int nr = ARRAY_SIZE(hi3670_pmu_gate_clks);
nr                877 drivers/clk/hisilicon/clk-hi3670.c 	clk_data = hisi_clk_init(np, nr);
nr                888 drivers/clk/hisilicon/clk-hi3670.c 	int nr = ARRAY_SIZE(hi3670_sctrl_gate_sep_clks) +
nr                893 drivers/clk/hisilicon/clk-hi3670.c 	clk_data = hisi_clk_init(np, nr);
nr                914 drivers/clk/hisilicon/clk-hi3670.c 	int nr = ARRAY_SIZE(hi3670_iomcu_gate_sep_clks) +
nr                917 drivers/clk/hisilicon/clk-hi3670.c 	clk_data = hisi_clk_init(np, nr);
nr                933 drivers/clk/hisilicon/clk-hi3670.c 	int nr = ARRAY_SIZE(hi3670_media1_gate_sep_clks) +
nr                938 drivers/clk/hisilicon/clk-hi3670.c 	clk_data = hisi_clk_init(np, nr);
nr                960 drivers/clk/hisilicon/clk-hi3670.c 	int nr = ARRAY_SIZE(hi3670_media2_gate_sep_clks);
nr                962 drivers/clk/hisilicon/clk-hi3670.c 	clk_data = hisi_clk_init(np, nr);
nr                295 drivers/clk/hisilicon/clk-hi6220.c 	int nr = ARRAY_SIZE(hi6220_acpu_sc_gate_sep_clks);
nr                297 drivers/clk/hisilicon/clk-hi6220.c 	clk_data = hisi_clk_init(np, nr);
nr                352 drivers/clk/rockchip/clk-pll.c #define RK3066_PLL_RESET_DELAY(nr)	((nr * 500) / 24 + 1)
nr                373 drivers/clk/rockchip/clk-pll.c 	rate->nr = ((pllcon >> RK3066_PLLCON0_NR_SHIFT)
nr                405 drivers/clk/rockchip/clk-pll.c 	do_div(rate64, cur.nr);
nr                422 drivers/clk/rockchip/clk-pll.c 		 __func__, rate->rate, rate->nr, rate->no, rate->nf);
nr                438 drivers/clk/rockchip/clk-pll.c 	writel(HIWORD_UPDATE(rate->nr - 1, RK3066_PLLCON0_NR_MASK,
nr                454 drivers/clk/rockchip/clk-pll.c 	udelay(RK3066_PLL_RESET_DELAY(rate->nr));
nr                538 drivers/clk/rockchip/clk-pll.c 		 __func__, clk_hw_get_name(hw), drate, rate->nr, cur.nr,
nr                540 drivers/clk/rockchip/clk-pll.c 	if (rate->nr != cur.nr || rate->no != cur.no || rate->nf != cur.nf
nr                213 drivers/clk/rockchip/clk.h 	.nr = _nr,				\
nr                222 drivers/clk/rockchip/clk.h 	.nr = _nr,						\
nr                246 drivers/clk/rockchip/clk.h 	unsigned int nr;
nr                363 drivers/clk/sirf/clk-atlas7.c 	u32 nr = (regfreq  >> 16 & (BIT(3) - 1)) + 1;
nr                375 drivers/clk/sirf/clk-atlas7.c 		do_div(rate, nr);
nr                381 drivers/clk/sirf/clk-atlas7.c 		do_div(rate, nr);
nr                 88 drivers/clk/sirf/clk-common.c 		u32 nr = ((cfg0 >> 13) & (BIT(6) - 1)) + 1;
nr                 91 drivers/clk/sirf/clk-common.c 		return fin / MHZ * nf / nr / od * MHZ;
nr                 98 drivers/clk/sirf/clk-common.c 	unsigned long fin, nf, nr, od;
nr                115 drivers/clk/sirf/clk-common.c 	nr = fin / MHZ;
nr                116 drivers/clk/sirf/clk-common.c 	if (nr > BIT(6))
nr                117 drivers/clk/sirf/clk-common.c 		nr = BIT(6);
nr                121 drivers/clk/sirf/clk-common.c 	do_div(dividend, nr * od);
nr                130 drivers/clk/sirf/clk-common.c 	unsigned long fin, nf, nr, od, reg;
nr                144 drivers/clk/sirf/clk-common.c 	nr = fin / MHZ;
nr                145 drivers/clk/sirf/clk-common.c 	BUG_ON((fin % MHZ) || nr > BIT(6));
nr                149 drivers/clk/sirf/clk-common.c 	reg = (nf - 1) | ((nr - 1) << 13) | ((od - 1) << 19);
nr                338 drivers/cpufreq/imx6q-cpufreq.c 	u32 nr, i, j;
nr                431 drivers/cpufreq/imx6q-cpufreq.c 	nr = prop->length / sizeof(u32);
nr                432 drivers/cpufreq/imx6q-cpufreq.c 	if (nr % 2 || (nr / 2) < num)
nr                437 drivers/cpufreq/imx6q-cpufreq.c 		for (i = 0; i < nr / 2; i++) {
nr                240 drivers/crypto/chelsio/chcr_algo.c 	u8  nr, nk;
nr                245 drivers/crypto/chelsio/chcr_algo.c 		nr = NUMBER_OF_ROUNDS_10;
nr                249 drivers/crypto/chelsio/chcr_algo.c 		nr = NUMBER_OF_ROUNDS_12;
nr                253 drivers/crypto/chelsio/chcr_algo.c 		nr = NUMBER_OF_ROUNDS_14;
nr                263 drivers/crypto/chelsio/chcr_algo.c 	while (i + nk < (nr + 1) * 4) {
nr               1185 drivers/dma/dmaengine.c static struct dmaengine_unmap_pool *__get_unmap_pool(int nr)
nr               1187 drivers/dma/dmaengine.c 	int order = get_count_order(nr);
nr               1280 drivers/dma/dmaengine.c dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags)
nr               1284 drivers/dma/dmaengine.c 	unmap = mempool_alloc(__get_unmap_pool(nr)->pool, flags);
nr               1291 drivers/dma/dmaengine.c 	unmap->map_cnt = nr;
nr                143 drivers/dma/hsu/hsu.c int hsu_dma_get_status(struct hsu_dma_chip *chip, unsigned short nr,
nr                151 drivers/dma/hsu/hsu.c 	if (nr >= chip->hsu->nr_channels)
nr                154 drivers/dma/hsu/hsu.c 	hsuc = &chip->hsu->chan[nr];
nr                202 drivers/dma/hsu/hsu.c int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr, u32 status)
nr                209 drivers/dma/hsu/hsu.c 	if (nr >= chip->hsu->nr_channels)
nr                212 drivers/dma/hsu/hsu.c 	hsuc = &chip->hsu->chan[nr];
nr                871 drivers/dma/sa11x0-dma.c static int sa11x0_dma_request_irq(struct platform_device *pdev, int nr,
nr                874 drivers/dma/sa11x0-dma.c 	int irq = platform_get_irq(pdev, nr);
nr                882 drivers/dma/sa11x0-dma.c static void sa11x0_dma_free_irq(struct platform_device *pdev, int nr,
nr                885 drivers/dma/sa11x0-dma.c 	int irq = platform_get_irq(pdev, nr);
nr                252 drivers/dma/sun4i-dma.c 	int nr = pchan - priv->pchans;
nr                257 drivers/dma/sun4i-dma.c 	clear_bit(nr, priv->pchans_used);
nr                 34 drivers/edac/cpc925_edac.c #define CPC925_BIT(nr)		(1UL << (CPC925_BITS_PER_REG - 1 - nr))
nr                390 drivers/firmware/dmi_scan.c 	static int nr;
nr                396 drivers/firmware/dmi_scan.c 	if (nr >= dmi_memdev_nr) {
nr                400 drivers/firmware/dmi_scan.c 	dmi_memdev[nr].handle = get_unaligned(&dm->handle);
nr                401 drivers/firmware/dmi_scan.c 	dmi_memdev[nr].device = dmi_string(dm, d[0x10]);
nr                402 drivers/firmware/dmi_scan.c 	dmi_memdev[nr].bank = dmi_string(dm, d[0x11]);
nr                416 drivers/firmware/dmi_scan.c 	dmi_memdev[nr].size = bytes;
nr                417 drivers/firmware/dmi_scan.c 	nr++;
nr                104 drivers/firmware/efi/runtime-map.c add_sysfs_runtime_map_entry(struct kobject *kobj, int nr,
nr                127 drivers/firmware/efi/runtime-map.c 	ret = kobject_add(&entry->kobj, NULL, "%d", nr);
nr                 48 drivers/gpio/gpio-altera-a10sr.c 					   unsigned int nr)
nr                 50 drivers/gpio/gpio-altera-a10sr.c 	if (nr < (ALTR_A10SR_IN_VALID_RANGE_LO - ALTR_A10SR_LED_VALID_SHIFT))
nr                 57 drivers/gpio/gpio-altera-a10sr.c 					    unsigned int nr, int value)
nr                 59 drivers/gpio/gpio-altera-a10sr.c 	if (nr > (ALTR_A10SR_OUT_VALID_RANGE_HI - ALTR_A10SR_LED_VALID_SHIFT))
nr                 62 drivers/gpio/gpio-altera-a10sr.c 	altr_a10sr_gpio_set(gc, nr, value);
nr                 69 drivers/gpio/gpio-bt8xx.c static int bt8xxgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
nr                 78 drivers/gpio/gpio-bt8xx.c 	data &= ~(1 << nr);
nr                 82 drivers/gpio/gpio-bt8xx.c 	outen &= ~(1 << nr);
nr                 90 drivers/gpio/gpio-bt8xx.c static int bt8xxgpio_gpio_get(struct gpio_chip *gpio, unsigned nr)
nr                100 drivers/gpio/gpio-bt8xx.c 	return !!(val & (1 << nr));
nr                104 drivers/gpio/gpio-bt8xx.c 					unsigned nr, int val)
nr                113 drivers/gpio/gpio-bt8xx.c 	outen |= (1 << nr);
nr                118 drivers/gpio/gpio-bt8xx.c 		data |= (1 << nr);
nr                120 drivers/gpio/gpio-bt8xx.c 		data &= ~(1 << nr);
nr                129 drivers/gpio/gpio-bt8xx.c 			    unsigned nr, int val)
nr                139 drivers/gpio/gpio-bt8xx.c 		data |= (1 << nr);
nr                141 drivers/gpio/gpio-bt8xx.c 		data &= ~(1 << nr);
nr                103 drivers/gpio/gpio-ich.c static int ichx_write_bit(int reg, unsigned nr, int val, int verify)
nr                107 drivers/gpio/gpio-ich.c 	int reg_nr = nr / 32;
nr                108 drivers/gpio/gpio-ich.c 	int bit = nr & 0x1f;
nr                135 drivers/gpio/gpio-ich.c static int ichx_read_bit(int reg, unsigned nr)
nr                139 drivers/gpio/gpio-ich.c 	int reg_nr = nr / 32;
nr                140 drivers/gpio/gpio-ich.c 	int bit = nr & 0x1f;
nr                155 drivers/gpio/gpio-ich.c static bool ichx_gpio_check_available(struct gpio_chip *gpio, unsigned nr)
nr                157 drivers/gpio/gpio-ich.c 	return !!(ichx_priv.use_gpio & BIT(nr / 32));
nr                160 drivers/gpio/gpio-ich.c static int ichx_gpio_get_direction(struct gpio_chip *gpio, unsigned nr)
nr                162 drivers/gpio/gpio-ich.c 	return ichx_read_bit(GPIO_IO_SEL, nr);
nr                165 drivers/gpio/gpio-ich.c static int ichx_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
nr                171 drivers/gpio/gpio-ich.c 	return ichx_write_bit(GPIO_IO_SEL, nr, 1, 1);
nr                174 drivers/gpio/gpio-ich.c static int ichx_gpio_direction_output(struct gpio_chip *gpio, unsigned nr,
nr                178 drivers/gpio/gpio-ich.c 	if (nr < 32 && ichx_priv.desc->have_blink)
nr                179 drivers/gpio/gpio-ich.c 		ichx_write_bit(GPO_BLINK, nr, 0, 0);
nr                182 drivers/gpio/gpio-ich.c 	ichx_write_bit(GPIO_LVL, nr, val, 0);
nr                188 drivers/gpio/gpio-ich.c 	return ichx_write_bit(GPIO_IO_SEL, nr, 0, 1);
nr                191 drivers/gpio/gpio-ich.c static int ichx_gpio_get(struct gpio_chip *chip, unsigned nr)
nr                193 drivers/gpio/gpio-ich.c 	return ichx_read_bit(GPIO_LVL, nr);
nr                196 drivers/gpio/gpio-ich.c static int ich6_gpio_get(struct gpio_chip *chip, unsigned nr)
nr                205 drivers/gpio/gpio-ich.c 	if (nr < 16) {
nr                212 drivers/gpio/gpio-ich.c 		ICHX_WRITE(BIT(16 + nr), 0, ichx_priv.pm_base);
nr                217 drivers/gpio/gpio-ich.c 		return !!((data >> 16) & BIT(nr));
nr                219 drivers/gpio/gpio-ich.c 		return ichx_gpio_get(chip, nr);
nr                223 drivers/gpio/gpio-ich.c static int ichx_gpio_request(struct gpio_chip *chip, unsigned nr)
nr                225 drivers/gpio/gpio-ich.c 	if (!ichx_gpio_check_available(chip, nr))
nr                234 drivers/gpio/gpio-ich.c 	if (ichx_priv.desc->use_sel_ignore[nr / 32] & BIT(nr & 0x1f))
nr                237 drivers/gpio/gpio-ich.c 	return ichx_read_bit(GPIO_USE_SEL, nr) ? 0 : -ENODEV;
nr                240 drivers/gpio/gpio-ich.c static int ich6_gpio_request(struct gpio_chip *chip, unsigned nr)
nr                248 drivers/gpio/gpio-ich.c 	if (nr == 16 || nr == 17)
nr                249 drivers/gpio/gpio-ich.c 		nr -= 16;
nr                251 drivers/gpio/gpio-ich.c 	return ichx_gpio_request(chip, nr);
nr                254 drivers/gpio/gpio-ich.c static void ichx_gpio_set(struct gpio_chip *chip, unsigned nr, int val)
nr                256 drivers/gpio/gpio-ich.c 	ichx_write_bit(GPIO_LVL, nr, val, 0);
nr                 92 drivers/gpio/gpio-ml-ioh.c static void ioh_gpio_set(struct gpio_chip *gpio, unsigned nr, int val)
nr                101 drivers/gpio/gpio-ml-ioh.c 		reg_val |= (1 << nr);
nr                103 drivers/gpio/gpio-ml-ioh.c 		reg_val &= ~(1 << nr);
nr                109 drivers/gpio/gpio-ml-ioh.c static int ioh_gpio_get(struct gpio_chip *gpio, unsigned nr)
nr                113 drivers/gpio/gpio-ml-ioh.c 	return !!(ioread32(&chip->reg->regs[chip->ch].pi) & (1 << nr));
nr                116 drivers/gpio/gpio-ml-ioh.c static int ioh_gpio_direction_output(struct gpio_chip *gpio, unsigned nr,
nr                127 drivers/gpio/gpio-ml-ioh.c 	pm |= (1 << nr);
nr                132 drivers/gpio/gpio-ml-ioh.c 		reg_val |= (1 << nr);
nr                134 drivers/gpio/gpio-ml-ioh.c 		reg_val &= ~(1 << nr);
nr                142 drivers/gpio/gpio-ml-ioh.c static int ioh_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
nr                151 drivers/gpio/gpio-ml-ioh.c 	pm &= ~(1 << nr);
nr                 97 drivers/gpio/gpio-pch.c static void pch_gpio_set(struct gpio_chip *gpio, unsigned nr, int val)
nr                106 drivers/gpio/gpio-pch.c 		reg_val |= (1 << nr);
nr                108 drivers/gpio/gpio-pch.c 		reg_val &= ~(1 << nr);
nr                114 drivers/gpio/gpio-pch.c static int pch_gpio_get(struct gpio_chip *gpio, unsigned nr)
nr                118 drivers/gpio/gpio-pch.c 	return (ioread32(&chip->reg->pi) >> nr) & 1;
nr                121 drivers/gpio/gpio-pch.c static int pch_gpio_direction_output(struct gpio_chip *gpio, unsigned nr,
nr                133 drivers/gpio/gpio-pch.c 		reg_val |= (1 << nr);
nr                135 drivers/gpio/gpio-pch.c 		reg_val &= ~(1 << nr);
nr                139 drivers/gpio/gpio-pch.c 	pm |= (1 << nr);
nr                147 drivers/gpio/gpio-pch.c static int pch_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
nr                155 drivers/gpio/gpio-pch.c 	pm &= ~(1 << nr);
nr                 53 drivers/gpio/gpio-sta2x11.c static void gsta_gpio_set(struct gpio_chip *gpio, unsigned nr, int val)
nr                 56 drivers/gpio/gpio-sta2x11.c 	struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK];
nr                 57 drivers/gpio/gpio-sta2x11.c 	u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK);
nr                 65 drivers/gpio/gpio-sta2x11.c static int gsta_gpio_get(struct gpio_chip *gpio, unsigned nr)
nr                 68 drivers/gpio/gpio-sta2x11.c 	struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK];
nr                 69 drivers/gpio/gpio-sta2x11.c 	u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK);
nr                 74 drivers/gpio/gpio-sta2x11.c static int gsta_gpio_direction_output(struct gpio_chip *gpio, unsigned nr,
nr                 78 drivers/gpio/gpio-sta2x11.c 	struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK];
nr                 79 drivers/gpio/gpio-sta2x11.c 	u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK);
nr                 90 drivers/gpio/gpio-sta2x11.c static int gsta_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
nr                 93 drivers/gpio/gpio-sta2x11.c 	struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK];
nr                 94 drivers/gpio/gpio-sta2x11.c 	u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK);
nr                144 drivers/gpio/gpio-sta2x11.c static void gsta_set_config(struct gsta_gpio *chip, int nr, unsigned cfg)
nr                146 drivers/gpio/gpio-sta2x11.c 	struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK];
nr                148 drivers/gpio/gpio-sta2x11.c 	u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK);
nr                152 drivers/gpio/gpio-sta2x11.c 	pr_info("%s: %p %i %i\n", __func__, chip, nr, cfg);
nr                203 drivers/gpio/gpio-sta2x11.c 		       __func__, chip, nr, cfg);
nr                214 drivers/gpio/gpio-sta2x11.c 	int nr = data->irq - chip->irq_base;
nr                215 drivers/gpio/gpio-sta2x11.c 	struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK];
nr                216 drivers/gpio/gpio-sta2x11.c 	u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK);
nr                221 drivers/gpio/gpio-sta2x11.c 	if (chip->irq_type[nr] & IRQ_TYPE_EDGE_RISING) {
nr                225 drivers/gpio/gpio-sta2x11.c 	if (chip->irq_type[nr] & IRQ_TYPE_EDGE_FALLING) {
nr                237 drivers/gpio/gpio-sta2x11.c 	int nr = data->irq - chip->irq_base;
nr                238 drivers/gpio/gpio-sta2x11.c 	struct gsta_regs __iomem *regs = chip->regs[nr / GSTA_GPIO_PER_BLOCK];
nr                239 drivers/gpio/gpio-sta2x11.c 	u32 bit = BIT(nr % GSTA_GPIO_PER_BLOCK);
nr                244 drivers/gpio/gpio-sta2x11.c 	type = chip->irq_type[nr];
nr                265 drivers/gpio/gpio-sta2x11.c 	int nr = d->irq - chip->irq_base;
nr                273 drivers/gpio/gpio-sta2x11.c 	chip->irq_type[nr] = type; /* used for enable/disable */
nr                284 drivers/gpio/gpio-sta2x11.c 	int i, nr, base;
nr                291 drivers/gpio/gpio-sta2x11.c 			nr = __ffs(is);
nr                292 drivers/gpio/gpio-sta2x11.c 			irq = base + nr;
nr                294 drivers/gpio/gpio-sta2x11.c 			writel(1 << nr, &regs->ic);
nr                 62 drivers/gpio/gpio-timberdale.c static int timbgpio_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
nr                 64 drivers/gpio/gpio-timberdale.c 	return timbgpio_update_bit(gpio, nr, TGPIODIR, true);
nr                 67 drivers/gpio/gpio-timberdale.c static int timbgpio_gpio_get(struct gpio_chip *gpio, unsigned nr)
nr                 73 drivers/gpio/gpio-timberdale.c 	return (value & (1 << nr)) ? 1 : 0;
nr                 77 drivers/gpio/gpio-timberdale.c 						unsigned nr, int val)
nr                 79 drivers/gpio/gpio-timberdale.c 	return timbgpio_update_bit(gpio, nr, TGPIODIR, false);
nr                 83 drivers/gpio/gpio-timberdale.c 				unsigned nr, int val)
nr                 85 drivers/gpio/gpio-timberdale.c 	timbgpio_update_bit(gpio, nr, TGPIOVAL, val != 0);
nr                 81 drivers/gpio/gpio-vx855.c 				     unsigned int nr)
nr                 88 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPI)
nr                 92 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPInO)
nr                 98 drivers/gpio/gpio-vx855.c 	reg_out |= gpio_o_bit(nr - NR_VX855_GPInO);
nr                105 drivers/gpio/gpio-vx855.c static int vx855gpio_get(struct gpio_chip *gpio, unsigned int nr)
nr                111 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPI) {
nr                113 drivers/gpio/gpio-vx855.c 		if (reg_in & gpi_i_bit(nr))
nr                115 drivers/gpio/gpio-vx855.c 	} else if (nr < NR_VX855_GPInO) {
nr                119 drivers/gpio/gpio-vx855.c 		if (reg_in & gpo_o_bit(nr - NR_VX855_GPI))
nr                123 drivers/gpio/gpio-vx855.c 		if (reg_in & gpio_i_bit(nr - NR_VX855_GPInO))
nr                130 drivers/gpio/gpio-vx855.c static void vx855gpio_set(struct gpio_chip *gpio, unsigned int nr,
nr                138 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPI)
nr                143 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPInO) {
nr                145 drivers/gpio/gpio-vx855.c 			reg_out |= gpo_o_bit(nr - NR_VX855_GPI);
nr                147 drivers/gpio/gpio-vx855.c 			reg_out &= ~gpo_o_bit(nr - NR_VX855_GPI);
nr                150 drivers/gpio/gpio-vx855.c 			reg_out |= gpio_o_bit(nr - NR_VX855_GPInO);
nr                152 drivers/gpio/gpio-vx855.c 			reg_out &= ~gpio_o_bit(nr - NR_VX855_GPInO);
nr                159 drivers/gpio/gpio-vx855.c 				      unsigned int nr, int val)
nr                162 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPI)
nr                168 drivers/gpio/gpio-vx855.c 	vx855gpio_set(gpio, nr, val);
nr                173 drivers/gpio/gpio-vx855.c static int vx855gpio_set_config(struct gpio_chip *gpio, unsigned int nr,
nr                179 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPI)
nr                183 drivers/gpio/gpio-vx855.c 	if (nr < NR_VX855_GPInO) {
nr                 39 drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                 42 drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c 	if (nr < DRM_COMMAND_BASE)
nr               1781 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	unsigned int nr = _IOC_NR(cmd);
nr               1787 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	if (nr >= AMDKFD_CORE_IOCTL_COUNT)
nr               1790 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	if ((nr >= AMDKFD_COMMAND_START) && (nr < AMDKFD_COMMAND_END)) {
nr               1793 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 		ioctl = &amdkfd_ioctls[nr];
nr               1804 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 	dev_dbg(kfd_device, "ioctl cmd 0x%x (#%d), arg 0x%lx\n", cmd, nr, arg);
nr               1853 drivers/gpu/drm/amd/amdkfd/kfd_chardev.c 			  task_pid_nr(current), cmd, nr);
nr                 13 drivers/gpu/drm/arm/display/include/malidp_utils.h #define has_bit(nr, mask)	(BIT(nr) & (mask))
nr               2006 drivers/gpu/drm/bridge/sil-sii8620.c static bool sii8620_test_bit(unsigned int nr, const u8 *addr)
nr               2008 drivers/gpu/drm/bridge/sil-sii8620.c 	return 1 & (addr[nr / BITS_PER_BYTE] >> (nr % BITS_PER_BYTE));
nr                972 drivers/gpu/drm/drm_ioc32.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                981 drivers/gpu/drm/drm_ioc32.c 	if (nr >= ARRAY_SIZE(drm_compat_ioctls))
nr                984 drivers/gpu/drm/drm_ioc32.c 	fn = drm_compat_ioctls[nr].fn;
nr                992 drivers/gpu/drm/drm_ioc32.c 		  drm_compat_ioctls[nr].name);
nr                816 drivers/gpu/drm/drm_ioctl.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                828 drivers/gpu/drm/drm_ioctl.c 	is_driver_ioctl = nr >= DRM_COMMAND_BASE && nr < DRM_COMMAND_END;
nr                832 drivers/gpu/drm/drm_ioctl.c 		unsigned int index = nr - DRM_COMMAND_BASE;
nr                840 drivers/gpu/drm/drm_ioctl.c 		if (nr >= DRM_CORE_IOCTL_COUNT)
nr                842 drivers/gpu/drm/drm_ioctl.c 		nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT);
nr                843 drivers/gpu/drm/drm_ioctl.c 		ioctl = &drm_ioctls[nr];
nr                895 drivers/gpu/drm/drm_ioctl.c 			  file_priv->authenticated, cmd, nr);
nr                917 drivers/gpu/drm/drm_ioctl.c bool drm_ioctl_flags(unsigned int nr, unsigned int *flags)
nr                919 drivers/gpu/drm/drm_ioctl.c 	if (nr >= DRM_COMMAND_BASE && nr < DRM_COMMAND_END)
nr                922 drivers/gpu/drm/drm_ioctl.c 	if (nr >= DRM_CORE_IOCTL_COUNT)
nr                924 drivers/gpu/drm/drm_ioctl.c 	nr = array_index_nospec(nr, DRM_CORE_IOCTL_COUNT);
nr                926 drivers/gpu/drm/drm_ioctl.c 	*flags = drm_ioctls[nr].flags;
nr                272 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	int nr;
nr                293 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	for (nr = 0; nr < G2D_CMDLIST_NUM; nr++) {
nr                296 drivers/gpu/drm/exynos/exynos_drm_g2d.c 		node[nr].cmdlist =
nr                297 drivers/gpu/drm/exynos/exynos_drm_g2d.c 			g2d->cmdlist_pool_virt + nr * G2D_CMDLIST_SIZE;
nr                298 drivers/gpu/drm/exynos/exynos_drm_g2d.c 		node[nr].dma_addr =
nr                299 drivers/gpu/drm/exynos/exynos_drm_g2d.c 			g2d->cmdlist_pool + nr * G2D_CMDLIST_SIZE;
nr                301 drivers/gpu/drm/exynos/exynos_drm_g2d.c 		buf_info = &node[nr].buf_info;
nr                305 drivers/gpu/drm/exynos/exynos_drm_g2d.c 		list_add_tail(&node[nr].list, &g2d->free_cmdlist);
nr               1022 drivers/gpu/drm/exynos/exynos_drm_g2d.c 				int nr, bool for_addr)
nr               1029 drivers/gpu/drm/exynos/exynos_drm_g2d.c 	for (i = 0; i < nr; i++) {
nr                104 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	struct intel_range vco, np, nr, nf;
nr                109 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	int nr;
nr                126 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	.nr  = { .min = NR_MIN,			.max = NR_MAX  },
nr                180 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	int np, nr, nf;
nr                191 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	if (nr_min < oaktrail_hdmi_limit.nr.min)
nr                192 drivers/gpu/drm/gma500/oaktrail_hdmi.c 		nr_min = oaktrail_hdmi_limit.nr.min;
nr                193 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	if (nr_max > oaktrail_hdmi_limit.nr.max)
nr                194 drivers/gpu/drm/gma500/oaktrail_hdmi.c 		nr_max = oaktrail_hdmi_limit.nr.max;
nr                197 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	nr = DIV_ROUND_UP((refclk * 1000), (target * 10 * np));
nr                198 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	nf = DIV_ROUND_CLOSEST((target * 10 * np * nr), refclk);
nr                199 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	DRM_DEBUG_KMS("np, nr, nf %d %d %d\n", np, nr, nf);
nr                206 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	best_clock->nr = nr - 1;
nr                313 drivers/gpu/drm/gma500/oaktrail_hdmi.c 	REG_WRITE(DPLL_DIV_CTRL, ((clock.nf << 6) | clock.nr));
nr                169 drivers/gpu/drm/gma500/oaktrail_hdmi_i2c.c 	.nr		= 3,
nr                 66 drivers/gpu/drm/i915/gvt/hypercall.h 			      unsigned long mfn, unsigned int nr, bool map);
nr                270 drivers/gpu/drm/i915/gvt/mpt.h 		unsigned long mfn, unsigned int nr,
nr                277 drivers/gpu/drm/i915/gvt/mpt.h 	return intel_gvt_host.mpt->map_gfn_to_mfn(vgpu->handle, gfn, mfn, nr,
nr                341 drivers/gpu/drm/i915/i915_gem_gtt.c 	if (likely(stash->pvec.nr))
nr                342 drivers/gpu/drm/i915/i915_gem_gtt.c 		page = stash->pvec.pages[--stash->pvec.nr];
nr                350 drivers/gpu/drm/i915/i915_gem_gtt.c 	unsigned int nr;
nr                354 drivers/gpu/drm/i915/i915_gem_gtt.c 	nr = min_t(typeof(nr), pvec->nr, pagevec_space(&stash->pvec));
nr                355 drivers/gpu/drm/i915/i915_gem_gtt.c 	memcpy(stash->pvec.pages + stash->pvec.nr,
nr                356 drivers/gpu/drm/i915/i915_gem_gtt.c 	       pvec->pages + pvec->nr - nr,
nr                357 drivers/gpu/drm/i915/i915_gem_gtt.c 	       sizeof(pvec->pages[0]) * nr);
nr                358 drivers/gpu/drm/i915/i915_gem_gtt.c 	stash->pvec.nr += nr;
nr                362 drivers/gpu/drm/i915/i915_gem_gtt.c 	pvec->nr -= nr;
nr                401 drivers/gpu/drm/i915/i915_gem_gtt.c 		stack.pages[stack.nr++] = page;
nr                404 drivers/gpu/drm/i915/i915_gem_gtt.c 	if (stack.nr && !set_pages_array_wc(stack.pages, stack.nr)) {
nr                405 drivers/gpu/drm/i915/i915_gem_gtt.c 		page = stack.pages[--stack.nr];
nr                408 drivers/gpu/drm/i915/i915_gem_gtt.c 		if (stack.nr)
nr                412 drivers/gpu/drm/i915/i915_gem_gtt.c 		if (stack.nr)
nr                417 drivers/gpu/drm/i915/i915_gem_gtt.c 	if (unlikely(stack.nr)) {
nr                418 drivers/gpu/drm/i915/i915_gem_gtt.c 		WARN_ON_ONCE(set_pages_array_wb(stack.pages, stack.nr));
nr                447 drivers/gpu/drm/i915/i915_gem_gtt.c 		if (pvec->nr <= (immediate ? 0 : PAGEVEC_SIZE - 1))
nr                460 drivers/gpu/drm/i915/i915_gem_gtt.c 		set_pages_array_wb(pvec->pages, pvec->nr);
nr               2795 drivers/gpu/drm/i915/i915_gem_gtt.c 	if (pvec->nr) {
nr               2796 drivers/gpu/drm/i915/i915_gem_gtt.c 		set_pages_array_wb(pvec->pages, pvec->nr);
nr                217 drivers/gpu/drm/i915/i915_gpu_error.c 		p = pv->pages[--pv->nr];
nr                 80 drivers/gpu/drm/i915/i915_ioc32.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                 84 drivers/gpu/drm/i915/i915_ioc32.c 	if (nr < DRM_COMMAND_BASE || nr >= DRM_COMMAND_END)
nr                 87 drivers/gpu/drm/i915/i915_ioc32.c 	if (nr < DRM_COMMAND_BASE + ARRAY_SIZE(i915_compat_ioctls))
nr                 88 drivers/gpu/drm/i915/i915_ioc32.c 		fn = i915_compat_ioctls[nr - DRM_COMMAND_BASE];
nr                172 drivers/gpu/drm/mga/mga_ioc32.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                177 drivers/gpu/drm/mga/mga_ioc32.c 	if (nr < DRM_COMMAND_BASE)
nr                180 drivers/gpu/drm/mga/mga_ioc32.c 	if (nr >= DRM_COMMAND_BASE + ARRAY_SIZE(mga_compat_ioctls))
nr                183 drivers/gpu/drm/mga/mga_ioc32.c 	fn = mga_compat_ioctls[nr - DRM_COMMAND_BASE].fn;
nr                191 drivers/gpu/drm/mga/mga_ioc32.c 		  mga_compat_ioctls[nr - DRM_COMMAND_BASE].name);
nr                 83 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c void *state_kcalloc(struct a6xx_gpu_state *a6xx_state, int nr, size_t objsize)
nr                 86 drivers/gpu/drm/msm/adreno/a6xx_gpu_state.c 		kzalloc((nr * objsize) + sizeof(*obj), GFP_KERNEL);
nr                218 drivers/gpu/drm/nouveau/dispnv50/disp.c evo_wait(struct nv50_dmac *evoc, int nr)
nr                225 drivers/gpu/drm/nouveau/dispnv50/disp.c 	if (put + nr >= (PAGE_SIZE / 4) - 8) {
nr                 76 drivers/gpu/drm/nouveau/dispnv50/disp.h u32 *evo_wait(struct nv50_dmac *, int nr);
nr                 40 drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h 	int nr;
nr                531 drivers/gpu/drm/nouveau/nouveau_chan.c 	drm->chan.nr = args.v.channels.data;
nr                532 drivers/gpu/drm/nouveau/nouveau_chan.c 	drm->chan.context_base = dma_fence_context_alloc(drm->chan.nr);
nr                176 drivers/gpu/drm/nouveau/nouveau_drv.h 		int nr;
nr                 83 drivers/gpu/drm/nouveau/nouveau_fence.c 	    fence->context >= drm->chan.context_base + drm->chan.nr)
nr                 53 drivers/gpu/drm/nouveau/nouveau_ioc32.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                 57 drivers/gpu/drm/nouveau/nouveau_ioc32.c 	if (nr < DRM_COMMAND_BASE)
nr                 61 drivers/gpu/drm/nouveau/nouveau_ioc32.c 	if (nr < DRM_COMMAND_BASE + ARRAY_SIZE(mga_compat_ioctls))
nr                 62 drivers/gpu/drm/nouveau/nouveau_ioc32.c 		fn = nouveau_compat_ioctls[nr - DRM_COMMAND_BASE];
nr                143 drivers/gpu/drm/nouveau/nv84_fence.c 	priv->suspend = vmalloc(array_size(sizeof(u32), drm->chan.nr));
nr                145 drivers/gpu/drm/nouveau/nv84_fence.c 		for (i = 0; i < drm->chan.nr; i++)
nr                159 drivers/gpu/drm/nouveau/nv84_fence.c 		for (i = 0; i < drm->chan.nr; i++)
nr                206 drivers/gpu/drm/nouveau/nv84_fence.c 	ret = nouveau_bo_new(&drm->client, 16 * drm->chan.nr, 0,
nr                 49 drivers/gpu/drm/nouveau/nvkm/core/memory.c 		     u32 nr, void (*clr)(struct nvkm_device *, u32, u32),
nr                 61 drivers/gpu/drm/nouveau/nvkm/core/memory.c 		if (tags->mn && tags->mn->length != nr) {
nr                 77 drivers/gpu/drm/nouveau/nvkm/core/memory.c 	if (!nvkm_mm_head(&fb->tags, 0, 1, nr, nr, 1, &tags->mn)) {
nr                 61 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	int nr = 0;
nr                 64 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 		if (nr++ < size)
nr                 65 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 			name[nr - 1] = device->handle;
nr                 68 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c 	return nr;
nr                 82 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c 		for (j = 0; j < mthd->data[i].nr; j++, base += list->addr) {
nr                 93 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.c 			if (mthd->data[i].nr > 1) {
nr                165 drivers/gpu/drm/nouveau/nvkm/engine/disp/channv50.h 		int nr;
nr                 85 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	for (i = 0; i < ior->dp.nr; i++) {
nr                172 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		for (i = 0; i < lt->dp->outp.ior->dp.nr && eq_done; i++) {
nr                200 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		for (i = 0; i < lt->dp->outp.ior->dp.nr; i++) {
nr                234 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		 ior->dp.nr, ior->dp.bw * 27);
nr                269 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	ior->func->dp.power(ior, ior->dp.nr);
nr                273 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	sink[1] = ior->dp.nr;
nr                330 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	u8  nr;
nr                368 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		if (cfg->nr <= outp_nr && cfg->nr <= outp_bw) {
nr                373 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 			    (cfg->nr <= sink_nr && cfg->bw <= sink_bw))
nr                395 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		 failsafe->nr, failsafe->bw * 27);
nr                399 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		if ((cfg->nr > outp_nr || cfg->bw > outp_bw ||
nr                400 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		     cfg->nr > sink_nr || cfg->bw > sink_bw)) {
nr                408 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		ior->dp.nr = cfg->nr;
nr                442 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	dp->outp.ior->dp.nr = 0;
nr                468 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 	linkKBps = ior->dp.bw * 27000 * ior->dp.nr;
nr                486 drivers/gpu/drm/nouveau/nvkm/engine/disp/dp.c 		for (i = 0; i < ior->dp.nr; i++) {
nr                210 drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c 	for (i = 0; i < disp->dac.nr; i++) {
nr                216 drivers/gpu/drm/nouveau/nvkm/engine/disp/gf119.c 	for (i = 0; i < disp->sor.nr; i++) {
nr                160 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c 		for_each_set_bit(wndw, &wndws, disp->wndw.nr) {
nr                185 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c 		for_each_set_bit(head, &mask, disp->wndw.nr) {
nr                206 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c 	for_each_set_bit(wndw, &stat, disp->wndw.nr) {
nr                226 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c 	for_each_set_bit(wndw, &stat, disp->wndw.nr) {
nr                333 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c 	for (i = 0; i < disp->sor.nr; i++) {
nr                355 drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c 	for (i = 0; i < disp->wndw.nr; i++) {
nr                 41 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h 		u8 nr;
nr                 75 drivers/gpu/drm/nouveau/nvkm/engine/disp/ior.h 		void (*power)(struct nvkm_ior *, int nr);
nr                 91 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		disp->wndw.nr = func->wndw.cnt(&disp->base, &disp->wndw.mask);
nr                 93 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 			   disp->wndw.nr, disp->wndw.mask);
nr                 96 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	disp->head.nr = func->head.cnt(&disp->base, &disp->head.mask);
nr                 98 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		   disp->head.nr, disp->head.mask);
nr                 99 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	for_each_set_bit(i, &disp->head.mask, disp->head.nr) {
nr                106 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		disp->dac.nr = func->dac.cnt(&disp->base, &disp->dac.mask);
nr                108 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 			   disp->dac.nr, disp->dac.mask);
nr                109 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		for_each_set_bit(i, &disp->dac.mask, disp->dac.nr) {
nr                117 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		disp->pior.nr = func->pior.cnt(&disp->base, &disp->pior.mask);
nr                119 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 			   disp->pior.nr, disp->pior.mask);
nr                120 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		for_each_set_bit(i, &disp->pior.mask, disp->pior.nr) {
nr                127 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	disp->sor.nr = func->sor.cnt(&disp->base, &disp->sor.mask);
nr                129 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 		   disp->sor.nr, disp->sor.mask);
nr                130 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	for_each_set_bit(i, &disp->sor.mask, disp->sor.nr) {
nr                341 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	h = h - (3 * ior->dp.ef) - (12 / ior->dp.nr);
nr                347 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	v = v - ((36 / ior->dp.nr) + 3) - 1;
nr                352 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	link_data_rate = (khz * head->asy.or.depth / 8) / ior->dp.nr;
nr                720 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	for (i = 0; i < disp->dac.nr; i++) {
nr                726 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	for (i = 0; i < disp->sor.nr; i++) {
nr                732 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.c 	for (i = 0; i < disp->pior.nr; i++) {
nr                 22 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h 		int nr;
nr                 27 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h 		int nr;
nr                 33 drivers/gpu/drm/nouveau/nvkm/engine/disp/nv50.h 		int nr;
nr                 41 drivers/gpu/drm/nouveau/nvkm/engine/disp/piornv50.c 	int ret = nvkm_i2c_aux_lnk_ctl(aux, pior->dp.nr, pior->dp.bw,
nr                 84 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c g94_sor_dp_power(struct nvkm_ior *sor, int nr)
nr                 91 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	for (i = 0; i < nr; i++)
nr                111 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorg94.c 	dpctrl |= ((1 << sor->dp.nr) - 1) << 16;
nr                108 drivers/gpu/drm/nouveau/nvkm/engine/disp/sorgf119.c 	dpctrl |= ((1 << sor->dp.nr) - 1) << 16;
nr                 47 drivers/gpu/drm/nouveau/nvkm/engine/disp/sortu102.c 	dpctrl |= ((1 << sor->dp.nr) - 1) << 16;
nr                 54 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c 	for (i = 0; i < disp->sor.nr; i++) {
nr                 76 drivers/gpu/drm/nouveau/nvkm/engine/disp/tu102.c 	for (i = 0; i < disp->wndw.nr; i++) {
nr                295 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c 	case NV_DEVICE_FIFO_CHANNELS: *data = fifo->nr; return 0;
nr                354 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c 	       int index, int nr, struct nvkm_fifo *fifo)
nr                362 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c 	if (WARN_ON(fifo->nr > NVKM_FIFO_CHID_NR))
nr                363 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c 		fifo->nr = NVKM_FIFO_CHID_NR;
nr                365 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c 		fifo->nr = nr;
nr                366 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c 	bitmap_clear(fifo->mask, 0, fifo->nr);
nr                383 drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c 	return nvkm_event_init(&nvkm_fifo_kevent_func, 1, nr, &fifo->kevent);
nr                 82 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv04.c 	u32 mask = fifo->base.nr - 1;
nr                 76 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c 	chid = nvkm_rd32(device, 0x003204) & (fifo->base.nr - 1);
nr                107 drivers/gpu/drm/nouveau/nvkm/engine/fifo/dmanv40.c 	chid = nvkm_rd32(device, 0x003204) & (fifo->base.nr - 1);
nr                 57 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	int nr = 0;
nr                 66 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 		nvkm_wo32(cur, (nr * 8) + 0, chan->base.chid);
nr                 67 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 		nvkm_wo32(cur, (nr * 8) + 4, 0x00000004);
nr                 68 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 		nr++;
nr                 83 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gf100.c 	nvkm_wr32(device, 0x002274, 0x01f00000 | nr);
nr                153 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 			  struct nvkm_memory *mem, int nr)
nr                169 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	nvkm_wr32(device, 0x002274, (runl << 20) | nr);
nr                186 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	int nr = 0;
nr                194 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 		func->chan(chan, mem, nr++ * func->size);
nr                198 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 		func->cgrp(cgrp, mem, nr++ * func->size);
nr                200 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 			func->chan(chan, mem, nr++ * func->size);
nr                205 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	func->commit(fifo, runl, mem, nr);
nr                270 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	.nr = gk104_fifo_pbdma_nr,
nr                913 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	fifo->pbdma_nr = fifo->func->pbdma->nr(fifo);
nr                950 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 					      fifo->base.nr * 2/* TSG+chan */ *
nr                964 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 			      fifo->base.nr * 0x200, 0x1000, true,
nr               1045 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 		int index, int nr, struct nvkm_fifo **pfifo)
nr               1055 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.c 	return nvkm_fifo_ctor(&gk104_fifo_, device, index, nr, &fifo->base);
nr                 53 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h 		int (*nr)(struct gk104_fifo *);
nr                 91 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk104.h 		    int index, int nr, struct nvkm_fifo **);
nr                 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gk208.c 	.nr = gk104_fifo_pbdma_nr,
nr                 38 drivers/gpu/drm/nouveau/nvkm/engine/fifo/gm200.c 	.nr = gm200_fifo_pbdma_nr,
nr                252 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c 	chid = nvkm_rd32(device, NV03_PFIFO_CACHE1_PUSH1) & (fifo->base.nr - 1);
nr                317 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c 	nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->base.nr - 1);
nr                329 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c 	       int index, int nr, const struct nv04_fifo_ramfc *ramfc,
nr                340 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c 	ret = nvkm_fifo_ctor(func, device, index, nr, &fifo->base);
nr                344 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.c 	set_bit(nr - 1, fifo->base.mask); /* inactive channel */
nr                 21 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv04.h 		   int index, int nr, const struct nv04_fifo_ramfc *,
nr                 70 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv17.c 	nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->base.nr - 1);
nr                101 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c 	nvkm_wr32(device, NV03_PFIFO_CACHE1_PUSH1, fifo->base.nr - 1);
nr                 40 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv50.c 	for (i = 0, p = 0; i < fifo->base.nr; i++) {
nr                  8 drivers/gpu/drm/nouveau/nvkm/engine/fifo/priv.h 		   int index, int nr, struct nvkm_fifo *);
nr                 33 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c 			  struct nvkm_memory *mem, int nr)
nr                 41 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c 	nvkm_wr32(device, 0x002b08 + (runl * 0x10), nr);
nr                 93 drivers/gpu/drm/nouveau/nvkm/engine/fifo/tu102.c 	.nr = gm200_fifo_pbdma_nr,
nr                125 drivers/gpu/drm/nouveau/nvkm/subdev/fault/base.c 		if (i < fault->func->buffer.nr) {
nr                 68 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gp100.c 	.buffer.nr = 1,
nr                214 drivers/gpu/drm/nouveau/nvkm/subdev/fault/gv100.c 	.buffer.nr = 2,
nr                 30 drivers/gpu/drm/nouveau/nvkm/subdev/fault/priv.h 		int nr;
nr                154 drivers/gpu/drm/nouveau/nvkm/subdev/fault/tu102.c 	.buffer.nr = 2,
nr                144 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c nvkm_i2c_aux_lnk_ctl(struct nvkm_i2c_aux *aux, int nr, int bw, bool ef)
nr                147 drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c 		return aux->func->lnk_ctl(aux, nr, bw, ef);
nr                312 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c 	u8 type, index, nr;
nr                315 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c 	for (nr = 0; page[nr].shift; nr++);
nr                318 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/uvmm.c 		if ((index = args->v0.index) >= nr)
nr                183 drivers/gpu/drm/r128/r128_ioc32.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                187 drivers/gpu/drm/r128/r128_ioc32.c 	if (nr < DRM_COMMAND_BASE)
nr                190 drivers/gpu/drm/r128/r128_ioc32.c 	if (nr < DRM_COMMAND_BASE + ARRAY_SIZE(r128_compat_ioctls))
nr                191 drivers/gpu/drm/r128/r128_ioc32.c 		fn = r128_compat_ioctls[nr - DRM_COMMAND_BASE];
nr                571 drivers/gpu/drm/radeon/radeon_drv.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr                574 drivers/gpu/drm/radeon/radeon_drv.c 	if (nr < DRM_COMMAND_BASE)
nr               1048 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	unsigned int nr = DRM_IOCTL_NR(cmd);
nr               1055 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	if ((nr >= DRM_COMMAND_BASE) && (nr < DRM_COMMAND_END)
nr               1056 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	    && (nr < DRM_COMMAND_BASE + dev->driver->num_ioctls)) {
nr               1058 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 			&vmw_ioctls[nr - DRM_COMMAND_BASE];
nr               1060 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 		if (nr == DRM_COMMAND_BASE + DRM_VMW_EXECBUF) {
nr               1062 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 		} else if (nr == DRM_COMMAND_BASE + DRM_VMW_UPDATE_LAYOUT) {
nr               1072 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 	} else if (!drm_ioctl_flags(nr, &flags))
nr               1079 drivers/gpu/drm/vmwgfx/vmwgfx_drv.c 		  nr - DRM_COMMAND_BASE);
nr                 75 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c 		unsigned long nr = min(num_pages, (unsigned long)VMW_PPN_PER_REMAP);
nr                 78 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c 		remap_cmd.numPages = nr;
nr                 84 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c 		for (i = 0; i < nr; ++i) {
nr                 95 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c 		num_pages -= nr;
nr                 96 drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c 		remap_pos += nr;
nr                804 drivers/hwmon/abituguru.c 		(data->bank1_settings[attr->index][attr->nr] *
nr                825 drivers/hwmon/abituguru.c 		(data->bank2_settings[attr->index][attr->nr] *
nr                848 drivers/hwmon/abituguru.c 	if (data->bank1_settings[attr->index][attr->nr] != val) {
nr                849 drivers/hwmon/abituguru.c 		u8 orig_val = data->bank1_settings[attr->index][attr->nr];
nr                850 drivers/hwmon/abituguru.c 		data->bank1_settings[attr->index][attr->nr] = val;
nr                853 drivers/hwmon/abituguru.c 				3) <= attr->nr) {
nr                854 drivers/hwmon/abituguru.c 			data->bank1_settings[attr->index][attr->nr] = orig_val;
nr                883 drivers/hwmon/abituguru.c 	if (data->bank2_settings[attr->index][attr->nr] != val) {
nr                884 drivers/hwmon/abituguru.c 		u8 orig_val = data->bank2_settings[attr->index][attr->nr];
nr                885 drivers/hwmon/abituguru.c 		data->bank2_settings[attr->index][attr->nr] = val;
nr                888 drivers/hwmon/abituguru.c 				2) <= attr->nr) {
nr                889 drivers/hwmon/abituguru.c 			data->bank2_settings[attr->index][attr->nr] = orig_val;
nr                912 drivers/hwmon/abituguru.c 			(data->bank1_settings[attr->index][0] & attr->nr))
nr                936 drivers/hwmon/abituguru.c 	if (data->bank1_settings[attr->index][0] & attr->nr)
nr                947 drivers/hwmon/abituguru.c 	if (data->bank2_settings[attr->index][0] & attr->nr)
nr                971 drivers/hwmon/abituguru.c 		data->bank1_settings[attr->index][0] |= attr->nr;
nr                973 drivers/hwmon/abituguru.c 		data->bank1_settings[attr->index][0] &= ~attr->nr;
nr               1004 drivers/hwmon/abituguru.c 		data->bank2_settings[attr->index][0] |= attr->nr;
nr               1006 drivers/hwmon/abituguru.c 		data->bank2_settings[attr->index][0] &= ~attr->nr;
nr               1025 drivers/hwmon/abituguru.c 	return sprintf(buf, "%d\n", data->pwm_settings[attr->index][attr->nr] *
nr               1026 drivers/hwmon/abituguru.c 		abituguru_pwm_settings_multiplier[attr->nr]);
nr               1043 drivers/hwmon/abituguru.c 	val = (val + abituguru_pwm_settings_multiplier[attr->nr] / 2) /
nr               1044 drivers/hwmon/abituguru.c 				abituguru_pwm_settings_multiplier[attr->nr];
nr               1047 drivers/hwmon/abituguru.c 	if ((attr->index == 0) && ((attr->nr == 1) || (attr->nr == 2)))
nr               1050 drivers/hwmon/abituguru.c 		min = abituguru_pwm_min[attr->nr];
nr               1053 drivers/hwmon/abituguru.c 	if (val < min || val > abituguru_pwm_max[attr->nr])
nr               1058 drivers/hwmon/abituguru.c 	if ((attr->nr & 1) &&
nr               1059 drivers/hwmon/abituguru.c 			(val >= data->pwm_settings[attr->index][attr->nr + 1]))
nr               1061 drivers/hwmon/abituguru.c 	else if (!(attr->nr & 1) &&
nr               1062 drivers/hwmon/abituguru.c 			(val <= data->pwm_settings[attr->index][attr->nr - 1]))
nr               1064 drivers/hwmon/abituguru.c 	else if (data->pwm_settings[attr->index][attr->nr] != val) {
nr               1065 drivers/hwmon/abituguru.c 		u8 orig_val = data->pwm_settings[attr->index][attr->nr];
nr               1066 drivers/hwmon/abituguru.c 		data->pwm_settings[attr->index][attr->nr] = val;
nr               1069 drivers/hwmon/abituguru.c 				5) <= attr->nr) {
nr               1070 drivers/hwmon/abituguru.c 			data->pwm_settings[attr->index][attr->nr] =
nr                839 drivers/hwmon/abituguru3.c 	if (attr->nr)
nr                840 drivers/hwmon/abituguru3.c 		value = data->settings[sensor->port][attr->nr];
nr                877 drivers/hwmon/abituguru3.c 			(!attr->nr || (data->settings[port][0] & attr->nr)))
nr                889 drivers/hwmon/abituguru3.c 	if (data->settings[data->sensors[attr->index].port][0] & attr->nr)
nr                 33 drivers/hwmon/adc128d818.c #define ADC128_REG_IN_MAX(nr)		(0x2a + (nr) * 2)
nr                 34 drivers/hwmon/adc128d818.c #define ADC128_REG_IN_MIN(nr)		(0x2b + (nr) * 2)
nr                 35 drivers/hwmon/adc128d818.c #define ADC128_REG_IN(nr)		(0x20 + (nr))
nr                152 drivers/hwmon/adc128d818.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                158 drivers/hwmon/adc128d818.c 	val = DIV_ROUND_CLOSEST(data->in[index][nr] * data->vref, 4095);
nr                168 drivers/hwmon/adc128d818.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                180 drivers/hwmon/adc128d818.c 	data->in[index][nr] = regval << 4;
nr                181 drivers/hwmon/adc128d818.c 	reg = index == 1 ? ADC128_REG_IN_MIN(nr) : ADC128_REG_IN_MAX(nr);
nr                 32 drivers/hwmon/adm1021.c #define ADM1021_REG_TEMP(nr)		(nr)
nr                 51 drivers/hwmon/adm1021.c #define ADM1021_REG_TOS_R(nr)		(0x05 + 2 * (nr))
nr                 52 drivers/hwmon/adm1021.c #define ADM1021_REG_TOS_W(nr)		(0x0B + 2 * (nr))
nr                 53 drivers/hwmon/adm1021.c #define ADM1021_REG_THYST_R(nr)		(0x06 + 2 * (nr))
nr                 54 drivers/hwmon/adm1021.c #define ADM1021_REG_THYST_W(nr)		(0x0C + 2 * (nr))
nr                 65 drivers/hwmon/adm1025.c #define ADM1025_REG_IN(nr)		(0x20 + (nr))
nr                 66 drivers/hwmon/adm1025.c #define ADM1025_REG_IN_MAX(nr)		(0x2B + (nr) * 2)
nr                 67 drivers/hwmon/adm1025.c #define ADM1025_REG_IN_MIN(nr)		(0x2C + (nr) * 2)
nr                 68 drivers/hwmon/adm1025.c #define ADM1025_REG_TEMP(nr)		(0x26 + (nr))
nr                 69 drivers/hwmon/adm1025.c #define ADM1025_REG_TEMP_HIGH(nr)	(0x37 + (nr) * 2)
nr                 70 drivers/hwmon/adm1025.c #define ADM1025_REG_TEMP_LOW(nr)	(0x38 + (nr) * 2)
nr                121 drivers/hwmon/adm1026.c #define ADM1026_REG_FAN(nr)		(0x38 + (nr))
nr                122 drivers/hwmon/adm1026.c #define ADM1026_REG_FAN_MIN(nr)		(0x60 + (nr))
nr                471 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                473 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in[nr]));
nr                479 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                481 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_min[nr]));
nr                487 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                498 drivers/hwmon/adm1026.c 	data->in_min[nr] = INS_TO_REG(nr, val);
nr                499 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_IN_MIN[nr], data->in_min[nr]);
nr                507 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                509 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_max[nr]));
nr                515 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                526 drivers/hwmon/adm1026.c 	data->in_max[nr] = INS_TO_REG(nr, val);
nr                527 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_IN_MAX[nr], data->in_max[nr]);
nr                657 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                659 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
nr                660 drivers/hwmon/adm1026.c 		data->fan_div[nr]));
nr                666 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                668 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr],
nr                669 drivers/hwmon/adm1026.c 		data->fan_div[nr]));
nr                676 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                687 drivers/hwmon/adm1026.c 	data->fan_min[nr] = FAN_TO_REG(val, data->fan_div[nr]);
nr                688 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_FAN_MIN(nr),
nr                689 drivers/hwmon/adm1026.c 		data->fan_min[nr]);
nr                734 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                736 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", data->fan_div[nr]);
nr                743 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                757 drivers/hwmon/adm1026.c 	orig_div = data->fan_div[nr];
nr                758 drivers/hwmon/adm1026.c 	data->fan_div[nr] = DIV_FROM_REG(new_div);
nr                760 drivers/hwmon/adm1026.c 	if (nr < 4) { /* 0 <= nr < 4 */
nr                774 drivers/hwmon/adm1026.c 	if (data->fan_div[nr] != orig_div)
nr                775 drivers/hwmon/adm1026.c 		fixup_fan_min(dev, nr, orig_div);
nr                795 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                797 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr]));
nr                803 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                805 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr]));
nr                812 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                823 drivers/hwmon/adm1026.c 	data->temp_min[nr] = TEMP_TO_REG(val);
nr                824 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_TEMP_MIN[nr],
nr                825 drivers/hwmon/adm1026.c 		data->temp_min[nr]);
nr                833 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                835 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr]));
nr                842 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                853 drivers/hwmon/adm1026.c 	data->temp_max[nr] = TEMP_TO_REG(val);
nr                854 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_TEMP_MAX[nr],
nr                855 drivers/hwmon/adm1026.c 		data->temp_max[nr]);
nr                874 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                876 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr]));
nr                883 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                894 drivers/hwmon/adm1026.c 	data->temp_offset[nr] = TEMP_TO_REG(val);
nr                895 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_TEMP_OFFSET[nr],
nr                896 drivers/hwmon/adm1026.c 		data->temp_offset[nr]);
nr                910 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                913 drivers/hwmon/adm1026.c 		ADM1026_FAN_ACTIVATION_TEMP_HYST + data->temp_tmin[nr]));
nr                920 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                922 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr] +
nr                930 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                932 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_tmin[nr]));
nr                939 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr                950 drivers/hwmon/adm1026.c 	data->temp_tmin[nr] = TEMP_TO_REG(val);
nr                951 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_TEMP_TMIN[nr],
nr                952 drivers/hwmon/adm1026.c 		data->temp_tmin[nr]);
nr               1010 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr               1012 drivers/hwmon/adm1026.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr]));
nr               1019 drivers/hwmon/adm1026.c 	int nr = sensor_attr->index;
nr               1030 drivers/hwmon/adm1026.c 	data->temp_crit[nr] = TEMP_TO_REG(val);
nr               1031 drivers/hwmon/adm1026.c 	adm1026_write_value(client, ADM1026_REG_TEMP_THERM[nr],
nr               1032 drivers/hwmon/adm1026.c 		data->temp_crit[nr]);
nr                125 drivers/hwmon/adm1029.c 		int nr;
nr                129 drivers/hwmon/adm1029.c 		for (nr = 0; nr < ARRAY_SIZE(ADM1029_REG_TEMP); nr++) {
nr                130 drivers/hwmon/adm1029.c 			data->temp[nr] =
nr                132 drivers/hwmon/adm1029.c 						     ADM1029_REG_TEMP[nr]);
nr                134 drivers/hwmon/adm1029.c 		for (nr = 0; nr < ARRAY_SIZE(ADM1029_REG_FAN); nr++) {
nr                135 drivers/hwmon/adm1029.c 			data->fan[nr] =
nr                137 drivers/hwmon/adm1029.c 						     ADM1029_REG_FAN[nr]);
nr                139 drivers/hwmon/adm1029.c 		for (nr = 0; nr < ARRAY_SIZE(ADM1029_REG_FAN_DIV); nr++) {
nr                140 drivers/hwmon/adm1029.c 			data->fan_div[nr] =
nr                142 drivers/hwmon/adm1029.c 						     ADM1029_REG_FAN_DIV[nr]);
nr                 22 drivers/hwmon/adm1031.c #define ADM1031_REG_FAN_SPEED(nr)	(0x08 + (nr))
nr                 23 drivers/hwmon/adm1031.c #define ADM1031_REG_FAN_DIV(nr)		(0x20 + (nr))
nr                 25 drivers/hwmon/adm1031.c #define ADM1031_REG_FAN_MIN(nr)		(0x10 + (nr))
nr                 28 drivers/hwmon/adm1031.c #define ADM1031_REG_TEMP_OFFSET(nr)	(0x0d + (nr))
nr                 29 drivers/hwmon/adm1031.c #define ADM1031_REG_TEMP_MAX(nr)	(0x14 + 4 * (nr))
nr                 30 drivers/hwmon/adm1031.c #define ADM1031_REG_TEMP_MIN(nr)	(0x15 + 4 * (nr))
nr                 31 drivers/hwmon/adm1031.c #define ADM1031_REG_TEMP_CRIT(nr)	(0x16 + 4 * (nr))
nr                 33 drivers/hwmon/adm1031.c #define ADM1031_REG_TEMP(nr)		(0x0a + (nr))
nr                 34 drivers/hwmon/adm1031.c #define ADM1031_REG_AUTO_TEMP(nr)	(0x24 + (nr))
nr                 36 drivers/hwmon/adm1031.c #define ADM1031_REG_STATUS(nr)		(0x2 + (nr))
nr                324 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                326 drivers/hwmon/adm1031.c 	return sprintf(buf, "%d\n", GET_FAN_AUTO_BITFIELD(data, nr));
nr                335 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                349 drivers/hwmon/adm1031.c 	ret = get_fan_auto_nearest(data, nr, val, data->conf1);
nr                389 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                392 drivers/hwmon/adm1031.c 		       AUTO_TEMP_OFF_FROM_REG(data->auto_temp[nr]));
nr                397 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                400 drivers/hwmon/adm1031.c 		       AUTO_TEMP_MIN_FROM_REG(data->auto_temp[nr]));
nr                408 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                418 drivers/hwmon/adm1031.c 	data->auto_temp[nr] = AUTO_TEMP_MIN_TO_REG(val, data->auto_temp[nr]);
nr                419 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_AUTO_TEMP(nr),
nr                420 drivers/hwmon/adm1031.c 			    data->auto_temp[nr]);
nr                427 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                430 drivers/hwmon/adm1031.c 		       AUTO_TEMP_MAX_FROM_REG(data->auto_temp[nr]));
nr                438 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                448 drivers/hwmon/adm1031.c 	data->temp_max[nr] = AUTO_TEMP_MAX_TO_REG(val, data->auto_temp[nr],
nr                449 drivers/hwmon/adm1031.c 						  data->pwm[nr]);
nr                450 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_AUTO_TEMP(nr),
nr                451 drivers/hwmon/adm1031.c 			    data->temp_max[nr]);
nr                470 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                472 drivers/hwmon/adm1031.c 	return sprintf(buf, "%d\n", PWM_FROM_REG(data->pwm[nr]));
nr                479 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                494 drivers/hwmon/adm1031.c 	data->pwm[nr] = PWM_TO_REG(val);
nr                497 drivers/hwmon/adm1031.c 			    nr ? ((data->pwm[nr] << 4) & 0xf0) | (reg & 0xf)
nr                498 drivers/hwmon/adm1031.c 			    : (data->pwm[nr] & 0xf) | (reg & 0xf0));
nr                559 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                563 drivers/hwmon/adm1031.c 	value = trust_fan_readings(data, nr) ? FAN_FROM_REG(data->fan[nr],
nr                564 drivers/hwmon/adm1031.c 				 FAN_DIV_FROM_REG(data->fan_div[nr])) : 0;
nr                571 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                573 drivers/hwmon/adm1031.c 	return sprintf(buf, "%d\n", FAN_DIV_FROM_REG(data->fan_div[nr]));
nr                578 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                581 drivers/hwmon/adm1031.c 		       FAN_FROM_REG(data->fan_min[nr],
nr                582 drivers/hwmon/adm1031.c 				    FAN_DIV_FROM_REG(data->fan_div[nr])));
nr                590 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                600 drivers/hwmon/adm1031.c 		data->fan_min[nr] =
nr                601 drivers/hwmon/adm1031.c 			FAN_TO_REG(val, FAN_DIV_FROM_REG(data->fan_div[nr]));
nr                603 drivers/hwmon/adm1031.c 		data->fan_min[nr] = 0xff;
nr                605 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                615 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                636 drivers/hwmon/adm1031.c 	data->fan_div[nr] = adm1031_read_value(client,
nr                637 drivers/hwmon/adm1031.c 					       ADM1031_REG_FAN_DIV(nr));
nr                638 drivers/hwmon/adm1031.c 	data->fan_min[nr] = adm1031_read_value(client,
nr                639 drivers/hwmon/adm1031.c 					       ADM1031_REG_FAN_MIN(nr));
nr                642 drivers/hwmon/adm1031.c 	old_div = FAN_DIV_FROM_REG(data->fan_div[nr]);
nr                643 drivers/hwmon/adm1031.c 	data->fan_div[nr] = tmp | (0x3f & data->fan_div[nr]);
nr                644 drivers/hwmon/adm1031.c 	new_min = data->fan_min[nr] * old_div / val;
nr                645 drivers/hwmon/adm1031.c 	data->fan_min[nr] = new_min > 0xff ? 0xff : new_min;
nr                647 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_FAN_DIV(nr),
nr                648 drivers/hwmon/adm1031.c 			    data->fan_div[nr]);
nr                649 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_FAN_MIN(nr),
nr                650 drivers/hwmon/adm1031.c 			    data->fan_min[nr]);
nr                669 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                672 drivers/hwmon/adm1031.c 	ext = nr == 0 ?
nr                673 drivers/hwmon/adm1031.c 	    ((data->ext_temp[nr] >> 6) & 0x3) * 2 :
nr                674 drivers/hwmon/adm1031.c 	    (((data->ext_temp[nr] >> ((nr - 1) * 3)) & 7));
nr                675 drivers/hwmon/adm1031.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG_EXT(data->temp[nr], ext));
nr                680 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                683 drivers/hwmon/adm1031.c 		       TEMP_OFFSET_FROM_REG(data->temp_offset[nr]));
nr                688 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                690 drivers/hwmon/adm1031.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr]));
nr                695 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                697 drivers/hwmon/adm1031.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr]));
nr                702 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                704 drivers/hwmon/adm1031.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_crit[nr]));
nr                712 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                722 drivers/hwmon/adm1031.c 	data->temp_offset[nr] = TEMP_OFFSET_TO_REG(val);
nr                723 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_TEMP_OFFSET(nr),
nr                724 drivers/hwmon/adm1031.c 			    data->temp_offset[nr]);
nr                734 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                744 drivers/hwmon/adm1031.c 	data->temp_min[nr] = TEMP_TO_REG(val);
nr                745 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_TEMP_MIN(nr),
nr                746 drivers/hwmon/adm1031.c 			    data->temp_min[nr]);
nr                756 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                766 drivers/hwmon/adm1031.c 	data->temp_max[nr] = TEMP_TO_REG(val);
nr                767 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_TEMP_MAX(nr),
nr                768 drivers/hwmon/adm1031.c 			    data->temp_max[nr]);
nr                778 drivers/hwmon/adm1031.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                788 drivers/hwmon/adm1031.c 	data->temp_crit[nr] = TEMP_TO_REG(val);
nr                789 drivers/hwmon/adm1031.c 	adm1031_write_value(client, ADM1031_REG_TEMP_CRIT(nr),
nr                790 drivers/hwmon/adm1031.c 			    data->temp_crit[nr]);
nr                 53 drivers/hwmon/adm9240.c #define ADM9240_REG_IN(nr)		(0x20 + (nr))   /* 0..5 */
nr                 54 drivers/hwmon/adm9240.c #define ADM9240_REG_IN_MAX(nr)		(0x2b + (nr) * 2)
nr                 55 drivers/hwmon/adm9240.c #define ADM9240_REG_IN_MIN(nr)		(0x2c + (nr) * 2)
nr                 56 drivers/hwmon/adm9240.c #define ADM9240_REG_FAN(nr)		(0x28 + (nr))   /* 0..1 */
nr                 57 drivers/hwmon/adm9240.c #define ADM9240_REG_FAN_MIN(nr)		(0x3b + (nr))
nr                 58 drivers/hwmon/adm9240.c #define ADM9240_REG_INT(nr)		(0x41 + (nr))
nr                 59 drivers/hwmon/adm9240.c #define ADM9240_REG_INT_MASK(nr)	(0x43 + (nr))
nr                 61 drivers/hwmon/adm9240.c #define ADM9240_REG_TEMP_MAX(nr)	(0x39 + (nr)) /* 0, 1 = high, hyst */
nr                146 drivers/hwmon/adm9240.c static void adm9240_write_fan_div(struct i2c_client *client, int nr,
nr                149 drivers/hwmon/adm9240.c 	u8 reg, old, shift = (nr + 2) * 2;
nr                158 drivers/hwmon/adm9240.c 		nr + 1, 1 << old, 1 << fan_div);
nr                428 drivers/hwmon/adm9240.c 	int nr = attr->index;
nr                440 drivers/hwmon/adm9240.c 		data->fan_min[nr] = 255;
nr                441 drivers/hwmon/adm9240.c 		new_div = data->fan_div[nr];
nr                444 drivers/hwmon/adm9240.c 				nr + 1);
nr                448 drivers/hwmon/adm9240.c 		data->fan_min[nr] = 254;
nr                451 drivers/hwmon/adm9240.c 				nr + 1, FAN_FROM_REG(254, 1 << new_div));
nr                464 drivers/hwmon/adm9240.c 		data->fan_min[nr] = new_min;
nr                467 drivers/hwmon/adm9240.c 				nr + 1, FAN_FROM_REG(new_min, 1 << new_div));
nr                470 drivers/hwmon/adm9240.c 	if (new_div != data->fan_div[nr]) {
nr                471 drivers/hwmon/adm9240.c 		data->fan_div[nr] = new_div;
nr                472 drivers/hwmon/adm9240.c 		adm9240_write_fan_div(client, nr, new_div);
nr                474 drivers/hwmon/adm9240.c 	i2c_smbus_write_byte_data(client, ADM9240_REG_FAN_MIN(nr),
nr                475 drivers/hwmon/adm9240.c 			data->fan_min[nr]);
nr                 60 drivers/hwmon/adt7411.c #define ADT7411_REG_TEMP_HIGH(nr)		(0x25 + 2 * (nr))
nr                 61 drivers/hwmon/adt7411.c #define ADT7411_REG_TEMP_LOW(nr)		(0x26 + 2 * (nr))
nr                 62 drivers/hwmon/adt7411.c #define ADT7411_REG_IN_HIGH(nr)		((nr) > 1 \
nr                 63 drivers/hwmon/adt7411.c 						  ? 0x2b + 2 * ((nr)-2) \
nr                 65 drivers/hwmon/adt7411.c #define ADT7411_REG_IN_LOW(nr)			((nr) > 1 \
nr                 66 drivers/hwmon/adt7411.c 						  ? 0x2c + 2 * ((nr)-2) \
nr                172 drivers/hwmon/adt7411.c 	return ret < 0 ? ret : sprintf(buf, "%u\n", !!(ret & attr2->nr));
nr                189 drivers/hwmon/adt7411.c 	ret = adt7411_modify_bit(client, s_attr2->index, s_attr2->nr, flag);
nr                295 drivers/hwmon/adt7411.c 	int nr = channel - 1;
nr                304 drivers/hwmon/adt7411.c 		lsb_reg = ADT7411_REG_EXT_TEMP_AIN14_LSB + (nr >> 2);
nr                305 drivers/hwmon/adt7411.c 		lsb_shift = 2 * (nr & 0x03);
nr                307 drivers/hwmon/adt7411.c 					  ADT7411_REG_EXT_TEMP_AIN1_MSB + nr,
nr                334 drivers/hwmon/adt7475.c 	switch (sattr->nr) {
nr                339 drivers/hwmon/adt7475.c 		val = data->voltage[sattr->nr][sattr->index];
nr                361 drivers/hwmon/adt7475.c 	data->voltage[sattr->nr][sattr->index] =
nr                365 drivers/hwmon/adt7475.c 		if (sattr->nr == MIN)
nr                370 drivers/hwmon/adt7475.c 		if (sattr->nr == MIN)
nr                377 drivers/hwmon/adt7475.c 				  data->voltage[sattr->nr][sattr->index] >> 2);
nr                393 drivers/hwmon/adt7475.c 	switch (sattr->nr) {
nr                396 drivers/hwmon/adt7475.c 		out = data->temp[sattr->nr][sattr->index];
nr                416 drivers/hwmon/adt7475.c 		out = (s8)data->temp[sattr->nr][sattr->index];
nr                435 drivers/hwmon/adt7475.c 		out = reg2temp(data, data->temp[sattr->nr][sattr->index]);
nr                460 drivers/hwmon/adt7475.c 	switch (sattr->nr) {
nr                498 drivers/hwmon/adt7475.c 		data->temp[sattr->nr][sattr->index] = temp2reg(data, val);
nr                504 drivers/hwmon/adt7475.c 		out = (u8) (data->temp[sattr->nr][sattr->index] >> 2);
nr                507 drivers/hwmon/adt7475.c 	switch (sattr->nr) {
nr                701 drivers/hwmon/adt7475.c 	if (sattr->nr == ALARM)
nr                704 drivers/hwmon/adt7475.c 		out = tach2rpm(data->tach[sattr->nr][sattr->index]);
nr                741 drivers/hwmon/adt7475.c 	return sprintf(buf, "%d\n", data->pwm[sattr->nr][sattr->index]);
nr                783 drivers/hwmon/adt7475.c 	switch (sattr->nr) {
nr                810 drivers/hwmon/adt7475.c 	data->pwm[sattr->nr][sattr->index] = clamp_val(val, 0, 0xFF);
nr                812 drivers/hwmon/adt7475.c 				  data->pwm[sattr->nr][sattr->index]);
nr                245 drivers/hwmon/adt7x10.c 	int nr = attr->index;
nr                254 drivers/hwmon/adt7x10.c 	data->temp[nr] = ADT7X10_TEMP_TO_REG(temp);
nr                255 drivers/hwmon/adt7x10.c 	ret = adt7x10_write_word(dev, ADT7X10_REG_TEMP[nr], data->temp[nr]);
nr                267 drivers/hwmon/adt7x10.c 	int nr = attr->index;
nr                276 drivers/hwmon/adt7x10.c 	if (nr == 2)	/* min has positive offset, others have negative */
nr                279 drivers/hwmon/adt7x10.c 		       ADT7X10_REG_TO_TEMP(data, data->temp[nr]) - hyst);
nr                437 drivers/hwmon/amc6821.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                439 drivers/hwmon/amc6821.c 	switch (nr) {
nr                447 drivers/hwmon/amc6821.c 		dev_dbg(dev, "Unknown attr->nr (%d).\n", nr);
nr                490 drivers/hwmon/amc6821.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                499 drivers/hwmon/amc6821.c 	switch (nr) {
nr                509 drivers/hwmon/amc6821.c 		dev_dbg(dev, "Unknown attr->nr (%d).\n", nr);
nr                 49 drivers/hwmon/asb100.c #define ASB100_REG_IN(nr)	(0x20 + (nr))
nr                 50 drivers/hwmon/asb100.c #define ASB100_REG_IN_MAX(nr)	(0x2b + (nr * 2))
nr                 51 drivers/hwmon/asb100.c #define ASB100_REG_IN_MIN(nr)	(0x2c + (nr * 2))
nr                 54 drivers/hwmon/asb100.c #define ASB100_REG_FAN(nr)	(0x28 + (nr))
nr                 55 drivers/hwmon/asb100.c #define ASB100_REG_FAN_MIN(nr)	(0x3b + (nr))
nr                 62 drivers/hwmon/asb100.c #define ASB100_REG_TEMP(nr) (asb100_reg_temp[nr])
nr                 63 drivers/hwmon/asb100.c #define ASB100_REG_TEMP_MAX(nr) (asb100_reg_temp_max[nr])
nr                 64 drivers/hwmon/asb100.c #define ASB100_REG_TEMP_HYST(nr) (asb100_reg_temp_hyst[nr])
nr                239 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                241 drivers/hwmon/asb100.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
nr                252 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                260 drivers/hwmon/asb100.c 	data->in_##reg[nr] = IN_TO_REG(val); \
nr                261 drivers/hwmon/asb100.c 	asb100_write_value(client, ASB100_REG_IN_##REG(nr), \
nr                262 drivers/hwmon/asb100.c 		data->in_##reg[nr]); \
nr                290 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                292 drivers/hwmon/asb100.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
nr                293 drivers/hwmon/asb100.c 		DIV_FROM_REG(data->fan_div[nr])));
nr                299 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                301 drivers/hwmon/asb100.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr],
nr                302 drivers/hwmon/asb100.c 		DIV_FROM_REG(data->fan_div[nr])));
nr                308 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                310 drivers/hwmon/asb100.c 	return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
nr                316 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                327 drivers/hwmon/asb100.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                328 drivers/hwmon/asb100.c 	asb100_write_value(client, ASB100_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                342 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                356 drivers/hwmon/asb100.c 	min = FAN_FROM_REG(data->fan_min[nr],
nr                357 drivers/hwmon/asb100.c 			DIV_FROM_REG(data->fan_div[nr]));
nr                358 drivers/hwmon/asb100.c 	data->fan_div[nr] = DIV_TO_REG(val);
nr                360 drivers/hwmon/asb100.c 	switch (nr) {
nr                380 drivers/hwmon/asb100.c 	data->fan_min[nr] =
nr                381 drivers/hwmon/asb100.c 		FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                382 drivers/hwmon/asb100.c 	asb100_write_value(client, ASB100_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                402 drivers/hwmon/asb100.c static int sprintf_temp_from_reg(u16 reg, char *buf, int nr)
nr                406 drivers/hwmon/asb100.c 	switch (nr) {
nr                421 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                423 drivers/hwmon/asb100.c 	return sprintf_temp_from_reg(data->reg[nr], buf, nr); \
nr                434 drivers/hwmon/asb100.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                442 drivers/hwmon/asb100.c 	switch (nr) { \
nr                444 drivers/hwmon/asb100.c 		data->reg[nr] = LM75_TEMP_TO_REG(val); \
nr                447 drivers/hwmon/asb100.c 		data->reg[nr] = TEMP_TO_REG(val); \
nr                450 drivers/hwmon/asb100.c 	asb100_write_value(client, ASB100_REG_TEMP_##REG(nr+1), \
nr                451 drivers/hwmon/asb100.c 			data->reg[nr]); \
nr                299 drivers/hwmon/asc7621.c 	u8 nr = sda->index;
nr                306 drivers/hwmon/asc7621.c 	regval = (regval >> 6) * asc7621_in_scaling[nr] / (0xc0 << 2);
nr                316 drivers/hwmon/asc7621.c 	u8 nr = sda->index;
nr                320 drivers/hwmon/asc7621.c 			 asc7621_in_scaling[nr]) / 0xc0));
nr                328 drivers/hwmon/asc7621.c 	u8 nr = sda->index;
nr                335 drivers/hwmon/asc7621.c 	reqval = reqval * 0xc0 / asc7621_in_scaling[nr];
nr                806 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr                837 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr                884 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr                921 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr                972 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr               1013 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr               1087 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr               1127 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr               1203 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr               1266 drivers/hwmon/dme1737.c 	int fn = sensor_attr_2->nr;
nr                 57 drivers/hwmon/emc1403.c 	retval = regmap_read(data->regmap, sda->nr, &val);
nr                 91 drivers/hwmon/emc1403.c 	retval = regmap_update_bits(data->regmap, sda->nr, sda->index,
nr                177 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                179 drivers/hwmon/emc2103.c 	int millidegrees = data->temp[nr].degrees * 1000
nr                180 drivers/hwmon/emc2103.c 		+ data->temp[nr].fraction * 125;
nr                187 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                189 drivers/hwmon/emc2103.c 	int millidegrees = data->temp_min[nr] * 1000;
nr                196 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                198 drivers/hwmon/emc2103.c 	int millidegrees = data->temp_max[nr] * 1000;
nr                205 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                207 drivers/hwmon/emc2103.c 	bool fault = (data->temp[nr].degrees == -128);
nr                215 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                217 drivers/hwmon/emc2103.c 	bool alarm = data->temp_min_alarm & (1 << nr);
nr                225 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                227 drivers/hwmon/emc2103.c 	bool alarm = data->temp_max_alarm & (1 << nr);
nr                234 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                246 drivers/hwmon/emc2103.c 	data->temp_min[nr] = val;
nr                247 drivers/hwmon/emc2103.c 	i2c_smbus_write_byte_data(client, REG_TEMP_MIN[nr], val);
nr                256 drivers/hwmon/emc2103.c 	int nr = to_sensor_dev_attr(da)->index;
nr                268 drivers/hwmon/emc2103.c 	data->temp_max[nr] = val;
nr                269 drivers/hwmon/emc2103.c 	i2c_smbus_write_byte_data(client, REG_TEMP_MAX[nr], val);
nr                 27 drivers/hwmon/emc6w201.c #define EMC6W201_REG_IN(nr)		(0x20 + (nr))
nr                 28 drivers/hwmon/emc6w201.c #define EMC6W201_REG_TEMP(nr)		(0x26 + (nr))
nr                 29 drivers/hwmon/emc6w201.c #define EMC6W201_REG_FAN(nr)		(0x2C + (nr) * 2)
nr                 33 drivers/hwmon/emc6w201.c #define EMC6W201_REG_IN_LOW(nr)		(0x4A + (nr) * 2)
nr                 34 drivers/hwmon/emc6w201.c #define EMC6W201_REG_IN_HIGH(nr)	(0x4B + (nr) * 2)
nr                 35 drivers/hwmon/emc6w201.c #define EMC6W201_REG_TEMP_LOW(nr)	(0x56 + (nr) * 2)
nr                 36 drivers/hwmon/emc6w201.c #define EMC6W201_REG_TEMP_HIGH(nr)	(0x57 + (nr) * 2)
nr                 37 drivers/hwmon/emc6w201.c #define EMC6W201_REG_FAN_MIN(nr)	(0x62 + (nr) * 2)
nr                126 drivers/hwmon/emc6w201.c 	int nr;
nr                131 drivers/hwmon/emc6w201.c 		for (nr = 0; nr < 6; nr++) {
nr                132 drivers/hwmon/emc6w201.c 			data->in[input][nr] =
nr                134 drivers/hwmon/emc6w201.c 						EMC6W201_REG_IN(nr));
nr                135 drivers/hwmon/emc6w201.c 			data->in[min][nr] =
nr                137 drivers/hwmon/emc6w201.c 						EMC6W201_REG_IN_LOW(nr));
nr                138 drivers/hwmon/emc6w201.c 			data->in[max][nr] =
nr                140 drivers/hwmon/emc6w201.c 						EMC6W201_REG_IN_HIGH(nr));
nr                143 drivers/hwmon/emc6w201.c 		for (nr = 0; nr < 6; nr++) {
nr                144 drivers/hwmon/emc6w201.c 			data->temp[input][nr] =
nr                146 drivers/hwmon/emc6w201.c 						EMC6W201_REG_TEMP(nr));
nr                147 drivers/hwmon/emc6w201.c 			data->temp[min][nr] =
nr                149 drivers/hwmon/emc6w201.c 						EMC6W201_REG_TEMP_LOW(nr));
nr                150 drivers/hwmon/emc6w201.c 			data->temp[max][nr] =
nr                152 drivers/hwmon/emc6w201.c 						EMC6W201_REG_TEMP_HIGH(nr));
nr                155 drivers/hwmon/emc6w201.c 		for (nr = 0; nr < 5; nr++) {
nr                156 drivers/hwmon/emc6w201.c 			data->fan[input][nr] =
nr                158 drivers/hwmon/emc6w201.c 						EMC6W201_REG_FAN(nr));
nr                159 drivers/hwmon/emc6w201.c 			data->fan[min][nr] =
nr                161 drivers/hwmon/emc6w201.c 						EMC6W201_REG_FAN_MIN(nr));
nr                184 drivers/hwmon/emc6w201.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                187 drivers/hwmon/emc6w201.c 		       (unsigned)data->in[sf][nr] * nominal_mv[nr] / 0xC0);
nr                196 drivers/hwmon/emc6w201.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                205 drivers/hwmon/emc6w201.c 	val = clamp_val(val, 0, 255 * nominal_mv[nr] / 192);
nr                206 drivers/hwmon/emc6w201.c 	val = DIV_ROUND_CLOSEST(val * 192, nominal_mv[nr]);
nr                207 drivers/hwmon/emc6w201.c 	reg = (sf == min) ? EMC6W201_REG_IN_LOW(nr)
nr                208 drivers/hwmon/emc6w201.c 			  : EMC6W201_REG_IN_HIGH(nr);
nr                211 drivers/hwmon/emc6w201.c 	data->in[sf][nr] = val;
nr                212 drivers/hwmon/emc6w201.c 	err = emc6w201_write8(client, reg, data->in[sf][nr]);
nr                223 drivers/hwmon/emc6w201.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                225 drivers/hwmon/emc6w201.c 	return sprintf(buf, "%d\n", (int)data->temp[sf][nr] * 1000);
nr                235 drivers/hwmon/emc6w201.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                246 drivers/hwmon/emc6w201.c 	reg = (sf == min) ? EMC6W201_REG_TEMP_LOW(nr)
nr                247 drivers/hwmon/emc6w201.c 			  : EMC6W201_REG_TEMP_HIGH(nr);
nr                250 drivers/hwmon/emc6w201.c 	data->temp[sf][nr] = val;
nr                251 drivers/hwmon/emc6w201.c 	err = emc6w201_write8(client, reg, data->temp[sf][nr]);
nr                262 drivers/hwmon/emc6w201.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                265 drivers/hwmon/emc6w201.c 	if (data->fan[sf][nr] == 0 || data->fan[sf][nr] == 0xFFFF)
nr                268 drivers/hwmon/emc6w201.c 		rpm = 5400000U / data->fan[sf][nr];
nr                279 drivers/hwmon/emc6w201.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                295 drivers/hwmon/emc6w201.c 	data->fan[sf][nr] = val;
nr                296 drivers/hwmon/emc6w201.c 	err = emc6w201_write16(client, EMC6W201_REG_FAN_MIN(nr),
nr                297 drivers/hwmon/emc6w201.c 			       data->fan[sf][nr]);
nr                118 drivers/hwmon/f71805f.c #define F71805F_REG_IN(nr)		(0x10 + (nr))
nr                119 drivers/hwmon/f71805f.c #define F71805F_REG_IN_HIGH(nr)		((nr) < 10 ? 0x40 + 2 * (nr) : 0x2E)
nr                120 drivers/hwmon/f71805f.c #define F71805F_REG_IN_LOW(nr)		((nr) < 10 ? 0x41 + 2 * (nr) : 0x2F)
nr                122 drivers/hwmon/f71805f.c #define F71805F_REG_FAN(nr)		(0x20 + 2 * (nr))
nr                123 drivers/hwmon/f71805f.c #define F71805F_REG_FAN_LOW(nr)		(0x28 + 2 * (nr))
nr                124 drivers/hwmon/f71805f.c #define F71805F_REG_FAN_TARGET(nr)	(0x69 + 16 * (nr))
nr                125 drivers/hwmon/f71805f.c #define F71805F_REG_FAN_CTRL(nr)	(0x60 + 16 * (nr))
nr                126 drivers/hwmon/f71805f.c #define F71805F_REG_PWM_FREQ(nr)	(0x63 + 16 * (nr))
nr                127 drivers/hwmon/f71805f.c #define F71805F_REG_PWM_DUTY(nr)	(0x6B + 16 * (nr))
nr                129 drivers/hwmon/f71805f.c #define F71805F_REG_TEMP(nr)		(0x1B + (nr))
nr                130 drivers/hwmon/f71805f.c #define F71805F_REG_TEMP_HIGH(nr)	(0x54 + 2 * (nr))
nr                131 drivers/hwmon/f71805f.c #define F71805F_REG_TEMP_HYST(nr)	(0x55 + 2 * (nr))
nr                143 drivers/hwmon/f71805f.c #define F71805F_REG_STATUS(nr)		(0x36 + (nr))
nr                335 drivers/hwmon/f71805f.c 	int nr, apnr;
nr                342 drivers/hwmon/f71805f.c 		for (nr = 0; nr < 11; nr++) {
nr                343 drivers/hwmon/f71805f.c 			if (!(data->has_in & (1 << nr)))
nr                345 drivers/hwmon/f71805f.c 			data->in_high[nr] = f71805f_read8(data,
nr                346 drivers/hwmon/f71805f.c 					    F71805F_REG_IN_HIGH(nr));
nr                347 drivers/hwmon/f71805f.c 			data->in_low[nr] = f71805f_read8(data,
nr                348 drivers/hwmon/f71805f.c 					   F71805F_REG_IN_LOW(nr));
nr                350 drivers/hwmon/f71805f.c 		for (nr = 0; nr < 3; nr++) {
nr                351 drivers/hwmon/f71805f.c 			data->fan_low[nr] = f71805f_read16(data,
nr                352 drivers/hwmon/f71805f.c 					    F71805F_REG_FAN_LOW(nr));
nr                353 drivers/hwmon/f71805f.c 			data->fan_target[nr] = f71805f_read16(data,
nr                354 drivers/hwmon/f71805f.c 					       F71805F_REG_FAN_TARGET(nr));
nr                355 drivers/hwmon/f71805f.c 			data->pwm_freq[nr] = f71805f_read8(data,
nr                356 drivers/hwmon/f71805f.c 					     F71805F_REG_PWM_FREQ(nr));
nr                358 drivers/hwmon/f71805f.c 		for (nr = 0; nr < 3; nr++) {
nr                359 drivers/hwmon/f71805f.c 			data->temp_high[nr] = f71805f_read8(data,
nr                360 drivers/hwmon/f71805f.c 					      F71805F_REG_TEMP_HIGH(nr));
nr                361 drivers/hwmon/f71805f.c 			data->temp_hyst[nr] = f71805f_read8(data,
nr                362 drivers/hwmon/f71805f.c 					      F71805F_REG_TEMP_HYST(nr));
nr                365 drivers/hwmon/f71805f.c 		for (nr = 0; nr < 3; nr++) {
nr                367 drivers/hwmon/f71805f.c 				data->auto_points[nr].temp[apnr] =
nr                369 drivers/hwmon/f71805f.c 					F71805F_REG_PWM_AUTO_POINT_TEMP(nr,
nr                371 drivers/hwmon/f71805f.c 				data->auto_points[nr].fan[apnr] =
nr                373 drivers/hwmon/f71805f.c 					F71805F_REG_PWM_AUTO_POINT_FAN(nr,
nr                384 drivers/hwmon/f71805f.c 		for (nr = 0; nr < 11; nr++) {
nr                385 drivers/hwmon/f71805f.c 			if (!(data->has_in & (1 << nr)))
nr                387 drivers/hwmon/f71805f.c 			data->in[nr] = f71805f_read8(data,
nr                388 drivers/hwmon/f71805f.c 				       F71805F_REG_IN(nr));
nr                390 drivers/hwmon/f71805f.c 		for (nr = 0; nr < 3; nr++) {
nr                391 drivers/hwmon/f71805f.c 			data->fan[nr] = f71805f_read16(data,
nr                392 drivers/hwmon/f71805f.c 					F71805F_REG_FAN(nr));
nr                393 drivers/hwmon/f71805f.c 			data->fan_ctrl[nr] = f71805f_read8(data,
nr                394 drivers/hwmon/f71805f.c 					     F71805F_REG_FAN_CTRL(nr));
nr                395 drivers/hwmon/f71805f.c 			data->pwm[nr] = f71805f_read8(data,
nr                396 drivers/hwmon/f71805f.c 					F71805F_REG_PWM_DUTY(nr));
nr                398 drivers/hwmon/f71805f.c 		for (nr = 0; nr < 3; nr++) {
nr                399 drivers/hwmon/f71805f.c 			data->temp[nr] = f71805f_read8(data,
nr                400 drivers/hwmon/f71805f.c 					 F71805F_REG_TEMP(nr));
nr                424 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                426 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", in0_from_reg(data->in[nr]));
nr                434 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                436 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", in0_from_reg(data->in_high[nr]));
nr                444 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                446 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", in0_from_reg(data->in_low[nr]));
nr                454 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                463 drivers/hwmon/f71805f.c 	data->in_high[nr] = in0_to_reg(val);
nr                464 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_IN_HIGH(nr), data->in_high[nr]);
nr                475 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                484 drivers/hwmon/f71805f.c 	data->in_low[nr] = in0_to_reg(val);
nr                485 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_IN_LOW(nr), data->in_low[nr]);
nr                496 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                498 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", in_from_reg(data->in[nr]));
nr                506 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                508 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", in_from_reg(data->in_high[nr]));
nr                516 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                518 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", in_from_reg(data->in_low[nr]));
nr                526 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                535 drivers/hwmon/f71805f.c 	data->in_high[nr] = in_to_reg(val);
nr                536 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_IN_HIGH(nr), data->in_high[nr]);
nr                547 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                556 drivers/hwmon/f71805f.c 	data->in_low[nr] = in_to_reg(val);
nr                557 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_IN_LOW(nr), data->in_low[nr]);
nr                568 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                570 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", fan_from_reg(data->fan[nr]));
nr                578 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                580 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", fan_from_reg(data->fan_low[nr]));
nr                588 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                590 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", fan_from_reg(data->fan_target[nr]));
nr                598 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                607 drivers/hwmon/f71805f.c 	data->fan_low[nr] = fan_to_reg(val);
nr                608 drivers/hwmon/f71805f.c 	f71805f_write16(data, F71805F_REG_FAN_LOW(nr), data->fan_low[nr]);
nr                619 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                628 drivers/hwmon/f71805f.c 	data->fan_target[nr] = fan_to_reg(val);
nr                629 drivers/hwmon/f71805f.c 	f71805f_write16(data, F71805F_REG_FAN_TARGET(nr),
nr                630 drivers/hwmon/f71805f.c 			data->fan_target[nr]);
nr                641 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                643 drivers/hwmon/f71805f.c 	return sprintf(buf, "%d\n", (int)data->pwm[nr]);
nr                651 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                654 drivers/hwmon/f71805f.c 	switch (data->fan_ctrl[nr] & FAN_CTRL_MODE_MASK) {
nr                673 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                675 drivers/hwmon/f71805f.c 	return sprintf(buf, "%lu\n", pwm_freq_from_reg(data->pwm_freq[nr]));
nr                683 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                685 drivers/hwmon/f71805f.c 	return sprintf(buf, "%d\n", pwm_mode_from_reg(data->fan_ctrl[nr]));
nr                693 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                705 drivers/hwmon/f71805f.c 	data->pwm[nr] = val;
nr                706 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_PWM_DUTY(nr), data->pwm[nr]);
nr                719 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                732 drivers/hwmon/f71805f.c 		if (sysfs_chmod_file(&dev->kobj, f71805f_attr_pwm[nr],
nr                734 drivers/hwmon/f71805f.c 			dev_dbg(dev, "chmod -w pwm%d failed\n", nr + 1);
nr                738 drivers/hwmon/f71805f.c 	reg = f71805f_read8(data, F71805F_REG_FAN_CTRL(nr))
nr                751 drivers/hwmon/f71805f.c 	data->fan_ctrl[nr] = reg;
nr                752 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_FAN_CTRL(nr), reg);
nr                756 drivers/hwmon/f71805f.c 		if (sysfs_chmod_file(&dev->kobj, f71805f_attr_pwm[nr],
nr                758 drivers/hwmon/f71805f.c 			dev_dbg(dev, "chmod +w pwm%d failed\n", nr + 1);
nr                769 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                778 drivers/hwmon/f71805f.c 	data->pwm_freq[nr] = pwm_freq_to_reg(val);
nr                779 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_PWM_FREQ(nr), data->pwm_freq[nr]);
nr                791 drivers/hwmon/f71805f.c 	int pwmnr = attr->nr;
nr                804 drivers/hwmon/f71805f.c 	int pwmnr = attr->nr;
nr                828 drivers/hwmon/f71805f.c 	int pwmnr = attr->nr;
nr                841 drivers/hwmon/f71805f.c 	int pwmnr = attr->nr;
nr                864 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                866 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", temp_from_reg(data->temp[nr]));
nr                874 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                876 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", temp_from_reg(data->temp_high[nr]));
nr                884 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                886 drivers/hwmon/f71805f.c 	return sprintf(buf, "%ld\n", temp_from_reg(data->temp_hyst[nr]));
nr                894 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                897 drivers/hwmon/f71805f.c 	return sprintf(buf, "%u\n", (data->temp_mode & (1 << nr)) ? 3 : 4);
nr                905 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                914 drivers/hwmon/f71805f.c 	data->temp_high[nr] = temp_to_reg(val);
nr                915 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_TEMP_HIGH(nr), data->temp_high[nr]);
nr                926 drivers/hwmon/f71805f.c 	int nr = attr->index;
nr                935 drivers/hwmon/f71805f.c 	data->temp_hyst[nr] = temp_to_reg(val);
nr                936 drivers/hwmon/f71805f.c 	f71805f_write8(data, F71805F_REG_TEMP_HYST(nr), data->temp_hyst[nr]);
nr                 59 drivers/hwmon/f71882fg.c #define F71882FG_REG_IN(nr)		(0x20  + (nr))
nr                 66 drivers/hwmon/f71882fg.c #define F71882FG_REG_FAN(nr)		(0xA0 + (16 * (nr)))
nr                 67 drivers/hwmon/f71882fg.c #define F71882FG_REG_FAN_TARGET(nr)	(0xA2 + (16 * (nr)))
nr                 68 drivers/hwmon/f71882fg.c #define F71882FG_REG_FAN_FULL_SPEED(nr)	(0xA4 + (16 * (nr)))
nr                 72 drivers/hwmon/f71882fg.c #define F71882FG_REG_TEMP(nr)		(0x70 + 2 * (nr))
nr                 73 drivers/hwmon/f71882fg.c #define F71882FG_REG_TEMP_OVT(nr)	(0x80 + 2 * (nr))
nr                 74 drivers/hwmon/f71882fg.c #define F71882FG_REG_TEMP_HIGH(nr)	(0x81 + 2 * (nr))
nr                 78 drivers/hwmon/f71882fg.c #define F71882FG_REG_TEMP_HYST(nr)	(0x6C + (nr))
nr                 82 drivers/hwmon/f71882fg.c #define F71882FG_REG_PWM(nr)		(0xA3 + (16 * (nr)))
nr                 86 drivers/hwmon/f71882fg.c #define F71882FG_REG_FAN_HYST(nr)	(0x98 + (nr))
nr                 94 drivers/hwmon/f71882fg.c #define F71882FG_REG_POINT_MAPPING(nr)		(0xAF + 16 * (nr))
nr               1187 drivers/hwmon/f71882fg.c static u16 f71882fg_read_temp(struct f71882fg_data *data, int nr)
nr               1190 drivers/hwmon/f71882fg.c 		return f71882fg_read16(data, F71882FG_REG_TEMP(nr));
nr               1192 drivers/hwmon/f71882fg.c 		return f71882fg_read8(data, F71882FG_REG_TEMP(nr));
nr               1200 drivers/hwmon/f71882fg.c 	int nr, reg, point;
nr               1226 drivers/hwmon/f71882fg.c 		for (nr = data->temp_start; nr < nr_temps + data->temp_start;
nr               1227 drivers/hwmon/f71882fg.c 									nr++) {
nr               1228 drivers/hwmon/f71882fg.c 			data->temp_ovt[nr] = f71882fg_read8(data,
nr               1229 drivers/hwmon/f71882fg.c 						F71882FG_REG_TEMP_OVT(nr));
nr               1230 drivers/hwmon/f71882fg.c 			data->temp_high[nr] = f71882fg_read8(data,
nr               1231 drivers/hwmon/f71882fg.c 						F71882FG_REG_TEMP_HIGH(nr));
nr               1263 drivers/hwmon/f71882fg.c 		for (nr = 0; nr < nr_fans; nr++) {
nr               1264 drivers/hwmon/f71882fg.c 			data->pwm_auto_point_mapping[nr] =
nr               1266 drivers/hwmon/f71882fg.c 					   F71882FG_REG_POINT_MAPPING(nr));
nr               1271 drivers/hwmon/f71882fg.c 					data->pwm_auto_point_pwm[nr][point] =
nr               1274 drivers/hwmon/f71882fg.c 							(nr, point));
nr               1277 drivers/hwmon/f71882fg.c 					data->pwm_auto_point_temp[nr][point] =
nr               1280 drivers/hwmon/f71882fg.c 							(nr, point));
nr               1285 drivers/hwmon/f71882fg.c 				data->pwm_auto_point_pwm[nr][0] =
nr               1287 drivers/hwmon/f71882fg.c 						F71882FG_REG_POINT_PWM(nr, 0));
nr               1290 drivers/hwmon/f71882fg.c 				data->pwm_auto_point_pwm[nr][1] =
nr               1293 drivers/hwmon/f71882fg.c 						(nr, 1));
nr               1294 drivers/hwmon/f71882fg.c 				data->pwm_auto_point_pwm[nr][4] =
nr               1297 drivers/hwmon/f71882fg.c 						(nr, 4));
nr               1298 drivers/hwmon/f71882fg.c 				data->pwm_auto_point_temp[nr][0] =
nr               1301 drivers/hwmon/f71882fg.c 						(nr, 0));
nr               1302 drivers/hwmon/f71882fg.c 				data->pwm_auto_point_temp[nr][3] =
nr               1305 drivers/hwmon/f71882fg.c 						(nr, 3));
nr               1318 drivers/hwmon/f71882fg.c 		for (nr = data->temp_start; nr < nr_temps + data->temp_start;
nr               1319 drivers/hwmon/f71882fg.c 									nr++)
nr               1320 drivers/hwmon/f71882fg.c 			data->temp[nr] = f71882fg_read_temp(data, nr);
nr               1324 drivers/hwmon/f71882fg.c 		for (nr = 0; nr < nr_fans; nr++) {
nr               1325 drivers/hwmon/f71882fg.c 			data->fan[nr] = f71882fg_read16(data,
nr               1326 drivers/hwmon/f71882fg.c 						F71882FG_REG_FAN(nr));
nr               1327 drivers/hwmon/f71882fg.c 			data->fan_target[nr] =
nr               1328 drivers/hwmon/f71882fg.c 			    f71882fg_read16(data, F71882FG_REG_FAN_TARGET(nr));
nr               1329 drivers/hwmon/f71882fg.c 			data->fan_full_speed[nr] =
nr               1331 drivers/hwmon/f71882fg.c 					    F71882FG_REG_FAN_FULL_SPEED(nr));
nr               1332 drivers/hwmon/f71882fg.c 			data->pwm[nr] =
nr               1333 drivers/hwmon/f71882fg.c 			    f71882fg_read8(data, F71882FG_REG_PWM(nr));
nr               1356 drivers/hwmon/f71882fg.c 		for (nr = 0; nr < F71882FG_MAX_INS; nr++)
nr               1357 drivers/hwmon/f71882fg.c 			if (f71882fg_has_in[data->type][nr])
nr               1358 drivers/hwmon/f71882fg.c 				data->in[nr] = f71882fg_read8(data,
nr               1359 drivers/hwmon/f71882fg.c 							F71882FG_REG_IN(nr));
nr               1375 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1376 drivers/hwmon/f71882fg.c 	int speed = fan_from_reg(data->fan[nr]);
nr               1388 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1389 drivers/hwmon/f71882fg.c 	int speed = fan_from_reg(data->fan_full_speed[nr]);
nr               1398 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1409 drivers/hwmon/f71882fg.c 	f71882fg_write16(data, F71882FG_REG_FAN_FULL_SPEED(nr), val);
nr               1410 drivers/hwmon/f71882fg.c 	data->fan_full_speed[nr] = val;
nr               1420 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1422 drivers/hwmon/f71882fg.c 	if (data->fan_beep & (1 << nr))
nr               1432 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1442 drivers/hwmon/f71882fg.c 		data->fan_beep |= 1 << nr;
nr               1444 drivers/hwmon/f71882fg.c 		data->fan_beep &= ~(1 << nr);
nr               1456 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1458 drivers/hwmon/f71882fg.c 	if (data->fan_status & (1 << nr))
nr               1468 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1470 drivers/hwmon/f71882fg.c 	return sprintf(buf, "%d\n", data->in[nr] * 8);
nr               1510 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1512 drivers/hwmon/f71882fg.c 	if (data->in_beep & (1 << nr))
nr               1522 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1536 drivers/hwmon/f71882fg.c 		data->in_beep |= 1 << nr;
nr               1538 drivers/hwmon/f71882fg.c 		data->in_beep &= ~(1 << nr);
nr               1553 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1555 drivers/hwmon/f71882fg.c 	if (data->in_status & (1 << nr))
nr               1565 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1571 drivers/hwmon/f71882fg.c 			sign = data->temp[nr] & 0x0001;
nr               1572 drivers/hwmon/f71882fg.c 			temp = (data->temp[nr] >> 5) & 0x7ff;
nr               1574 drivers/hwmon/f71882fg.c 			sign = data->temp[nr] & 0x8000;
nr               1575 drivers/hwmon/f71882fg.c 			temp = (data->temp[nr] >> 5) & 0x3ff;
nr               1581 drivers/hwmon/f71882fg.c 		temp = data->temp[nr] * 1000;
nr               1590 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1592 drivers/hwmon/f71882fg.c 	return sprintf(buf, "%d\n", data->temp_high[nr] * 1000);
nr               1599 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1610 drivers/hwmon/f71882fg.c 	f71882fg_write8(data, F71882FG_REG_TEMP_HIGH(nr), val);
nr               1611 drivers/hwmon/f71882fg.c 	data->temp_high[nr] = val;
nr               1621 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1625 drivers/hwmon/f71882fg.c 	if (nr & 1)
nr               1626 drivers/hwmon/f71882fg.c 		temp_max_hyst = data->temp_hyst[nr / 2] >> 4;
nr               1628 drivers/hwmon/f71882fg.c 		temp_max_hyst = data->temp_hyst[nr / 2] & 0x0f;
nr               1629 drivers/hwmon/f71882fg.c 	temp_max_hyst = (data->temp_high[nr] - temp_max_hyst) * 1000;
nr               1639 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1653 drivers/hwmon/f71882fg.c 	data->temp_high[nr] = f71882fg_read8(data, F71882FG_REG_TEMP_HIGH(nr));
nr               1654 drivers/hwmon/f71882fg.c 	val = clamp_val(val, data->temp_high[nr] - 15, data->temp_high[nr]);
nr               1655 drivers/hwmon/f71882fg.c 	val = data->temp_high[nr] - val;
nr               1658 drivers/hwmon/f71882fg.c 	reg = f71882fg_read8(data, F71882FG_REG_TEMP_HYST(nr / 2));
nr               1659 drivers/hwmon/f71882fg.c 	if (nr & 1)
nr               1663 drivers/hwmon/f71882fg.c 	f71882fg_write8(data, F71882FG_REG_TEMP_HYST(nr / 2), reg);
nr               1664 drivers/hwmon/f71882fg.c 	data->temp_hyst[nr / 2] = reg;
nr               1674 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1676 drivers/hwmon/f71882fg.c 	return sprintf(buf, "%d\n", data->temp_ovt[nr] * 1000);
nr               1683 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1694 drivers/hwmon/f71882fg.c 	f71882fg_write8(data, F71882FG_REG_TEMP_OVT(nr), val);
nr               1695 drivers/hwmon/f71882fg.c 	data->temp_ovt[nr] = val;
nr               1705 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1709 drivers/hwmon/f71882fg.c 	if (nr & 1)
nr               1710 drivers/hwmon/f71882fg.c 		temp_crit_hyst = data->temp_hyst[nr / 2] >> 4;
nr               1712 drivers/hwmon/f71882fg.c 		temp_crit_hyst = data->temp_hyst[nr / 2] & 0x0f;
nr               1713 drivers/hwmon/f71882fg.c 	temp_crit_hyst = (data->temp_ovt[nr] - temp_crit_hyst) * 1000;
nr               1723 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1725 drivers/hwmon/f71882fg.c 	return sprintf(buf, "%d\n", data->temp_type[nr]);
nr               1732 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1734 drivers/hwmon/f71882fg.c 	if (data->temp_beep & (1 << nr))
nr               1744 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1754 drivers/hwmon/f71882fg.c 		data->temp_beep |= 1 << nr;
nr               1756 drivers/hwmon/f71882fg.c 		data->temp_beep &= ~(1 << nr);
nr               1768 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1770 drivers/hwmon/f71882fg.c 	if (data->temp_status & (1 << nr))
nr               1780 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1782 drivers/hwmon/f71882fg.c 	if (data->temp_diode_open & (1 << nr))
nr               1792 drivers/hwmon/f71882fg.c 	int val, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1794 drivers/hwmon/f71882fg.c 	if (data->pwm_enable & (1 << (2 * nr)))
nr               1796 drivers/hwmon/f71882fg.c 		val = data->pwm[nr];
nr               1799 drivers/hwmon/f71882fg.c 		val = 255 * fan_from_reg(data->fan_target[nr])
nr               1800 drivers/hwmon/f71882fg.c 			/ fan_from_reg(data->fan_full_speed[nr]);
nr               1811 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1822 drivers/hwmon/f71882fg.c 	if ((data->type == f8000 && ((data->pwm_enable >> 2 * nr) & 3) != 2) ||
nr               1823 drivers/hwmon/f71882fg.c 	    (data->type != f8000 && !((data->pwm_enable >> 2 * nr) & 2))) {
nr               1827 drivers/hwmon/f71882fg.c 	if (data->pwm_enable & (1 << (2 * nr))) {
nr               1829 drivers/hwmon/f71882fg.c 		f71882fg_write8(data, F71882FG_REG_PWM(nr), val);
nr               1830 drivers/hwmon/f71882fg.c 		data->pwm[nr] = val;
nr               1835 drivers/hwmon/f71882fg.c 					     F71882FG_REG_FAN_FULL_SPEED(nr));
nr               1837 drivers/hwmon/f71882fg.c 		f71882fg_write16(data, F71882FG_REG_FAN_TARGET(nr), target);
nr               1838 drivers/hwmon/f71882fg.c 		data->fan_target[nr] = target;
nr               1839 drivers/hwmon/f71882fg.c 		data->fan_full_speed[nr] = full_speed;
nr               1851 drivers/hwmon/f71882fg.c 	int val, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1853 drivers/hwmon/f71882fg.c 	val = data->pwm[nr];
nr               1862 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1872 drivers/hwmon/f71882fg.c 	f71882fg_write8(data, F71882FG_REG_PWM(nr), val);
nr               1873 drivers/hwmon/f71882fg.c 	data->pwm[nr] = val;
nr               1884 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               1886 drivers/hwmon/f71882fg.c 	switch ((data->pwm_enable >> 2 * nr) & 3) {
nr               1909 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               1917 drivers/hwmon/f71882fg.c 	if (data->type == f8000 && nr == 2 && val != 2)
nr               1923 drivers/hwmon/f71882fg.c 	if (data->type == f8000 && ((data->pwm_enable >> 2 * nr) & 1)) {
nr               1926 drivers/hwmon/f71882fg.c 			data->pwm_enable &= ~(2 << (2 * nr));
nr               1929 drivers/hwmon/f71882fg.c 			data->pwm_enable |= 2 << (2 * nr);
nr               1940 drivers/hwmon/f71882fg.c 			    ((data->pwm_enable >> (2 * nr)) & 1)) {
nr               1944 drivers/hwmon/f71882fg.c 			data->pwm_enable |= 2 << (2 * nr);
nr               1947 drivers/hwmon/f71882fg.c 			data->pwm_enable &= ~(2 << (2 * nr));
nr               1968 drivers/hwmon/f71882fg.c 	int point = to_sensor_dev_attr_2(devattr)->nr;
nr               1989 drivers/hwmon/f71882fg.c 	int point = to_sensor_dev_attr_2(devattr)->nr;
nr               2022 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               2023 drivers/hwmon/f71882fg.c 	int point = to_sensor_dev_attr_2(devattr)->nr;
nr               2026 drivers/hwmon/f71882fg.c 	if (nr & 1)
nr               2027 drivers/hwmon/f71882fg.c 		result = data->pwm_auto_point_hyst[nr / 2] >> 4;
nr               2029 drivers/hwmon/f71882fg.c 		result = data->pwm_auto_point_hyst[nr / 2] & 0x0f;
nr               2030 drivers/hwmon/f71882fg.c 	result = 1000 * (data->pwm_auto_point_temp[nr][point] - result);
nr               2041 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               2042 drivers/hwmon/f71882fg.c 	int point = to_sensor_dev_attr_2(devattr)->nr;
nr               2053 drivers/hwmon/f71882fg.c 	data->pwm_auto_point_temp[nr][point] =
nr               2054 drivers/hwmon/f71882fg.c 		f71882fg_read8(data, F71882FG_REG_POINT_TEMP(nr, point));
nr               2055 drivers/hwmon/f71882fg.c 	val = clamp_val(val, data->pwm_auto_point_temp[nr][point] - 15,
nr               2056 drivers/hwmon/f71882fg.c 			data->pwm_auto_point_temp[nr][point]);
nr               2057 drivers/hwmon/f71882fg.c 	val = data->pwm_auto_point_temp[nr][point] - val;
nr               2059 drivers/hwmon/f71882fg.c 	reg = f71882fg_read8(data, F71882FG_REG_FAN_HYST(nr / 2));
nr               2060 drivers/hwmon/f71882fg.c 	if (nr & 1)
nr               2065 drivers/hwmon/f71882fg.c 	f71882fg_write8(data, F71882FG_REG_FAN_HYST(nr / 2), reg);
nr               2066 drivers/hwmon/f71882fg.c 	data->pwm_auto_point_hyst[nr / 2] = reg;
nr               2077 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               2079 drivers/hwmon/f71882fg.c 	result = (data->pwm_auto_point_mapping[nr] >> 4) & 1;
nr               2089 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               2097 drivers/hwmon/f71882fg.c 	data->pwm_auto_point_mapping[nr] =
nr               2098 drivers/hwmon/f71882fg.c 		f71882fg_read8(data, F71882FG_REG_POINT_MAPPING(nr));
nr               2100 drivers/hwmon/f71882fg.c 		val = data->pwm_auto_point_mapping[nr] | (1 << 4);
nr               2102 drivers/hwmon/f71882fg.c 		val = data->pwm_auto_point_mapping[nr] & (~(1 << 4));
nr               2103 drivers/hwmon/f71882fg.c 	f71882fg_write8(data, F71882FG_REG_POINT_MAPPING(nr), val);
nr               2104 drivers/hwmon/f71882fg.c 	data->pwm_auto_point_mapping[nr] = val;
nr               2116 drivers/hwmon/f71882fg.c 	int nr = to_sensor_dev_attr_2(devattr)->index;
nr               2118 drivers/hwmon/f71882fg.c 	result = 1 << ((data->pwm_auto_point_mapping[nr] & 3) -
nr               2129 drivers/hwmon/f71882fg.c 	int err, nr = to_sensor_dev_attr_2(devattr)->index;
nr               2151 drivers/hwmon/f71882fg.c 	data->pwm_auto_point_mapping[nr] =
nr               2152 drivers/hwmon/f71882fg.c 		f71882fg_read8(data, F71882FG_REG_POINT_MAPPING(nr));
nr               2153 drivers/hwmon/f71882fg.c 	val = (data->pwm_auto_point_mapping[nr] & 0xfc) | val;
nr               2154 drivers/hwmon/f71882fg.c 	f71882fg_write8(data, F71882FG_REG_POINT_MAPPING(nr), val);
nr               2155 drivers/hwmon/f71882fg.c 	data->pwm_auto_point_mapping[nr] = val;
nr               2168 drivers/hwmon/f71882fg.c 	int point = to_sensor_dev_attr_2(devattr)->nr;
nr               2180 drivers/hwmon/f71882fg.c 	int point = to_sensor_dev_attr_2(devattr)->nr;
nr                 46 drivers/hwmon/f75375s.c #define F75375_REG_VOLT(nr)		(0x10 + (nr))
nr                 47 drivers/hwmon/f75375s.c #define F75375_REG_VOLT_HIGH(nr)	(0x20 + (nr) * 2)
nr                 48 drivers/hwmon/f75375s.c #define F75375_REG_VOLT_LOW(nr)		(0x21 + (nr) * 2)
nr                 50 drivers/hwmon/f75375s.c #define F75375_REG_TEMP(nr)		(0x14 + (nr))
nr                 51 drivers/hwmon/f75375s.c #define F75387_REG_TEMP11_LSB(nr)	(0x1a + (nr))
nr                 52 drivers/hwmon/f75375s.c #define F75375_REG_TEMP_HIGH(nr)	(0x28 + (nr) * 2)
nr                 53 drivers/hwmon/f75375s.c #define F75375_REG_TEMP_HYST(nr)	(0x29 + (nr) * 2)
nr                 55 drivers/hwmon/f75375s.c #define F75375_REG_FAN(nr)		(0x16 + (nr) * 2)
nr                 56 drivers/hwmon/f75375s.c #define F75375_REG_FAN_MIN(nr)		(0x2C + (nr) * 2)
nr                 57 drivers/hwmon/f75375s.c #define F75375_REG_FAN_FULL(nr)		(0x70 + (nr) * 0x10)
nr                 58 drivers/hwmon/f75375s.c #define F75375_REG_FAN_PWM_DUTY(nr)	(0x76 + (nr) * 0x10)
nr                 59 drivers/hwmon/f75375s.c #define F75375_REG_FAN_PWM_CLOCK(nr)	(0x7D + (nr) * 0x10)
nr                 61 drivers/hwmon/f75375s.c #define F75375_REG_FAN_EXP(nr)		(0x74 + (nr) * 0x10)
nr                 62 drivers/hwmon/f75375s.c #define F75375_REG_FAN_B_TEMP(nr, step)	((0xA0 + (nr) * 0x10) + (step))
nr                 63 drivers/hwmon/f75375s.c #define F75375_REG_FAN_B_SPEED(nr, step) \
nr                 64 drivers/hwmon/f75375s.c 	((0xA5 + (nr) * 0x10) + (step) * 2)
nr                 71 drivers/hwmon/f75375s.c #define F75375_FAN_CTRL_LINEAR(nr)	(4 + nr)
nr                 72 drivers/hwmon/f75375s.c #define F75387_FAN_CTRL_LINEAR(nr)	(1 + ((nr) * 4))
nr                 73 drivers/hwmon/f75375s.c #define FAN_CTRL_MODE(nr)		(4 + ((nr) * 2))
nr                 74 drivers/hwmon/f75375s.c #define F75387_FAN_DUTY_MODE(nr)	(2 + ((nr) * 4))
nr                 75 drivers/hwmon/f75375s.c #define F75387_FAN_MANU_MODE(nr)	((nr) * 4)
nr                167 drivers/hwmon/f75375s.c static void f75375_write_pwm(struct i2c_client *client, int nr)
nr                171 drivers/hwmon/f75375s.c 		f75375_write16(client, F75375_REG_FAN_EXP(nr), data->pwm[nr]);
nr                173 drivers/hwmon/f75375s.c 		f75375_write8(client, F75375_REG_FAN_PWM_DUTY(nr),
nr                174 drivers/hwmon/f75375s.c 			      data->pwm[nr]);
nr                181 drivers/hwmon/f75375s.c 	int nr;
nr                188 drivers/hwmon/f75375s.c 		for (nr = 0; nr < 2; nr++) {
nr                189 drivers/hwmon/f75375s.c 			data->temp_high[nr] =
nr                190 drivers/hwmon/f75375s.c 				f75375_read8(client, F75375_REG_TEMP_HIGH(nr));
nr                191 drivers/hwmon/f75375s.c 			data->temp_max_hyst[nr] =
nr                192 drivers/hwmon/f75375s.c 				f75375_read8(client, F75375_REG_TEMP_HYST(nr));
nr                193 drivers/hwmon/f75375s.c 			data->fan_max[nr] =
nr                194 drivers/hwmon/f75375s.c 				f75375_read16(client, F75375_REG_FAN_FULL(nr));
nr                195 drivers/hwmon/f75375s.c 			data->fan_min[nr] =
nr                196 drivers/hwmon/f75375s.c 				f75375_read16(client, F75375_REG_FAN_MIN(nr));
nr                197 drivers/hwmon/f75375s.c 			data->fan_target[nr] =
nr                198 drivers/hwmon/f75375s.c 				f75375_read16(client, F75375_REG_FAN_EXP(nr));
nr                200 drivers/hwmon/f75375s.c 		for (nr = 0; nr < 4; nr++) {
nr                201 drivers/hwmon/f75375s.c 			data->in_max[nr] =
nr                202 drivers/hwmon/f75375s.c 				f75375_read8(client, F75375_REG_VOLT_HIGH(nr));
nr                203 drivers/hwmon/f75375s.c 			data->in_min[nr] =
nr                204 drivers/hwmon/f75375s.c 				f75375_read8(client, F75375_REG_VOLT_LOW(nr));
nr                213 drivers/hwmon/f75375s.c 		for (nr = 0; nr < 2; nr++) {
nr                214 drivers/hwmon/f75375s.c 			data->pwm[nr] =	f75375_read8(client,
nr                215 drivers/hwmon/f75375s.c 				F75375_REG_FAN_PWM_DUTY(nr));
nr                217 drivers/hwmon/f75375s.c 			data->temp11[nr] =
nr                218 drivers/hwmon/f75375s.c 				f75375_read8(client, F75375_REG_TEMP(nr)) << 8;
nr                221 drivers/hwmon/f75375s.c 				data->temp11[nr] |=
nr                223 drivers/hwmon/f75375s.c 						     F75387_REG_TEMP11_LSB(nr));
nr                224 drivers/hwmon/f75375s.c 			data->fan[nr] =
nr                225 drivers/hwmon/f75375s.c 				f75375_read16(client, F75375_REG_FAN(nr));
nr                227 drivers/hwmon/f75375s.c 		for (nr = 0; nr < 4; nr++)
nr                228 drivers/hwmon/f75375s.c 			data->in[nr] =
nr                229 drivers/hwmon/f75375s.c 				f75375_read8(client, F75375_REG_VOLT(nr));
nr                288 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                299 drivers/hwmon/f75375s.c 	data->fan_min[nr] = rpm_to_reg(val);
nr                300 drivers/hwmon/f75375s.c 	f75375_write16(client, F75375_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                308 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                318 drivers/hwmon/f75375s.c 	if (auto_mode_enabled(data->pwm_enable[nr]))
nr                320 drivers/hwmon/f75375s.c 	if (data->kind == f75387 && duty_mode_enabled(data->pwm_enable[nr]))
nr                324 drivers/hwmon/f75375s.c 	data->fan_target[nr] = rpm_to_reg(val);
nr                325 drivers/hwmon/f75375s.c 	f75375_write16(client, F75375_REG_FAN_EXP(nr), data->fan_target[nr]);
nr                333 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                343 drivers/hwmon/f75375s.c 	if (auto_mode_enabled(data->pwm_enable[nr]) ||
nr                344 drivers/hwmon/f75375s.c 	    !duty_mode_enabled(data->pwm_enable[nr]))
nr                348 drivers/hwmon/f75375s.c 	data->pwm[nr] = clamp_val(val, 0, 255);
nr                349 drivers/hwmon/f75375s.c 	f75375_write_pwm(client, nr);
nr                357 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                359 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", data->pwm_enable[nr]);
nr                362 drivers/hwmon/f75375s.c static int set_pwm_enable_direct(struct i2c_client *client, int nr, int val)
nr                373 drivers/hwmon/f75375s.c 		if (duty_mode_enabled(data->pwm_enable[nr]) !=
nr                377 drivers/hwmon/f75375s.c 		fanmode &= ~(1 << F75387_FAN_DUTY_MODE(nr));
nr                378 drivers/hwmon/f75375s.c 		fanmode &= ~(1 << F75387_FAN_MANU_MODE(nr));
nr                381 drivers/hwmon/f75375s.c 			fanmode |= (1 << F75387_FAN_MANU_MODE(nr));
nr                382 drivers/hwmon/f75375s.c 			fanmode |= (1 << F75387_FAN_DUTY_MODE(nr));
nr                383 drivers/hwmon/f75375s.c 			data->pwm[nr] = 255;
nr                386 drivers/hwmon/f75375s.c 			fanmode  |= (1 << F75387_FAN_MANU_MODE(nr));
nr                387 drivers/hwmon/f75375s.c 			fanmode  |= (1 << F75387_FAN_DUTY_MODE(nr));
nr                392 drivers/hwmon/f75375s.c 			fanmode |= (1 << F75387_FAN_MANU_MODE(nr));
nr                395 drivers/hwmon/f75375s.c 			fanmode |= (1 << F75387_FAN_DUTY_MODE(nr));
nr                400 drivers/hwmon/f75375s.c 		fanmode &= ~(3 << FAN_CTRL_MODE(nr));
nr                403 drivers/hwmon/f75375s.c 			fanmode  |= (3 << FAN_CTRL_MODE(nr));
nr                404 drivers/hwmon/f75375s.c 			data->pwm[nr] = 255;
nr                407 drivers/hwmon/f75375s.c 			fanmode  |= (3 << FAN_CTRL_MODE(nr));
nr                410 drivers/hwmon/f75375s.c 			fanmode  |= (1 << FAN_CTRL_MODE(nr));
nr                420 drivers/hwmon/f75375s.c 	data->pwm_enable[nr] = val;
nr                422 drivers/hwmon/f75375s.c 		f75375_write_pwm(client, nr);
nr                429 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                440 drivers/hwmon/f75375s.c 	err = set_pwm_enable_direct(client, nr, val);
nr                448 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                470 drivers/hwmon/f75375s.c 		ctrl = F75387_FAN_CTRL_LINEAR(nr);
nr                473 drivers/hwmon/f75375s.c 		ctrl = F75375_FAN_CTRL_LINEAR(nr);
nr                484 drivers/hwmon/f75375s.c 	data->pwm_mode[nr] = val;
nr                492 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                494 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", data->pwm[nr]);
nr                500 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                502 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", data->pwm_mode[nr]);
nr                511 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                513 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in[nr]));
nr                519 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                521 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_max[nr]));
nr                527 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                529 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_min[nr]));
nr                535 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                547 drivers/hwmon/f75375s.c 	data->in_max[nr] = val;
nr                548 drivers/hwmon/f75375s.c 	f75375_write8(client, F75375_REG_VOLT_HIGH(nr), data->in_max[nr]);
nr                556 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                568 drivers/hwmon/f75375s.c 	data->in_min[nr] = val;
nr                569 drivers/hwmon/f75375s.c 	f75375_write8(client, F75375_REG_VOLT_LOW(nr), data->in_min[nr]);
nr                580 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                582 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", TEMP11_FROM_REG(data->temp11[nr]));
nr                588 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                590 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_high[nr]));
nr                596 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                598 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max_hyst[nr]));
nr                604 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                616 drivers/hwmon/f75375s.c 	data->temp_high[nr] = val;
nr                617 drivers/hwmon/f75375s.c 	f75375_write8(client, F75375_REG_TEMP_HIGH(nr), data->temp_high[nr]);
nr                625 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                637 drivers/hwmon/f75375s.c 	data->temp_max_hyst[nr] = val;
nr                638 drivers/hwmon/f75375s.c 	f75375_write8(client, F75375_REG_TEMP_HYST(nr),
nr                639 drivers/hwmon/f75375s.c 		data->temp_max_hyst[nr]);
nr                648 drivers/hwmon/f75375s.c 	int nr = to_sensor_dev_attr(attr)->index;\
nr                650 drivers/hwmon/f75375s.c 	return sprintf(buf, "%d\n", rpm_from_reg(data->thing[nr])); \
nr                756 drivers/hwmon/f75375s.c 	int nr;
nr                760 drivers/hwmon/f75375s.c 		int nr;
nr                764 drivers/hwmon/f75375s.c 		for (nr = 0; nr < 2; nr++) {
nr                768 drivers/hwmon/f75375s.c 				if (!(mode & (1 << F75387_FAN_CTRL_LINEAR(nr))))
nr                769 drivers/hwmon/f75375s.c 					data->pwm_mode[nr] = 1;
nr                771 drivers/hwmon/f75375s.c 				manu = ((mode >> F75387_FAN_MANU_MODE(nr)) & 1);
nr                772 drivers/hwmon/f75375s.c 				duty = ((mode >> F75387_FAN_DUTY_MODE(nr)) & 1);
nr                775 drivers/hwmon/f75375s.c 					data->pwm_enable[nr] = 4;
nr                778 drivers/hwmon/f75375s.c 					data->pwm_enable[nr] = 3;
nr                781 drivers/hwmon/f75375s.c 					data->pwm_enable[nr] = 2;
nr                784 drivers/hwmon/f75375s.c 					data->pwm_enable[nr] = 1;
nr                786 drivers/hwmon/f75375s.c 				if (!(conf & (1 << F75375_FAN_CTRL_LINEAR(nr))))
nr                787 drivers/hwmon/f75375s.c 					data->pwm_mode[nr] = 1;
nr                789 drivers/hwmon/f75375s.c 				switch ((mode >> FAN_CTRL_MODE(nr)) & 3) {
nr                791 drivers/hwmon/f75375s.c 					data->pwm_enable[nr] = 3;
nr                794 drivers/hwmon/f75375s.c 					data->pwm_enable[nr] = 2;
nr                797 drivers/hwmon/f75375s.c 					data->pwm_enable[nr] = 1;
nr                807 drivers/hwmon/f75375s.c 	for (nr = 0; nr < 2; nr++) {
nr                808 drivers/hwmon/f75375s.c 		if (auto_mode_enabled(f75375s_pdata->pwm_enable[nr]) ||
nr                809 drivers/hwmon/f75375s.c 		    !duty_mode_enabled(f75375s_pdata->pwm_enable[nr]))
nr                811 drivers/hwmon/f75375s.c 		data->pwm[nr] = clamp_val(f75375s_pdata->pwm[nr], 0, 255);
nr                812 drivers/hwmon/f75375s.c 		f75375_write_pwm(client, nr);
nr                257 drivers/hwmon/gl518sm.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                259 drivers/hwmon/gl518sm.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_in[nr],
nr                260 drivers/hwmon/gl518sm.c 					DIV_FROM_REG(data->fan_div[nr])));
nr                266 drivers/hwmon/gl518sm.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                268 drivers/hwmon/gl518sm.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr],
nr                269 drivers/hwmon/gl518sm.c 					DIV_FROM_REG(data->fan_div[nr])));
nr                275 drivers/hwmon/gl518sm.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                277 drivers/hwmon/gl518sm.c 	return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
nr                346 drivers/hwmon/gl518sm.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                357 drivers/hwmon/gl518sm.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                358 drivers/hwmon/gl518sm.c 	regvalue = (regvalue & (0xff << (8 * nr)))
nr                359 drivers/hwmon/gl518sm.c 		 | (data->fan_min[nr] << (8 * (1 - nr)));
nr                363 drivers/hwmon/gl518sm.c 	if (data->fan_min[nr] == 0)
nr                364 drivers/hwmon/gl518sm.c 		data->alarm_mask &= ~(0x20 << nr);
nr                366 drivers/hwmon/gl518sm.c 		data->alarm_mask |= (0x20 << nr);
nr                380 drivers/hwmon/gl518sm.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                411 drivers/hwmon/gl518sm.c 	data->fan_div[nr] = val;
nr                412 drivers/hwmon/gl518sm.c 	regvalue = (regvalue & ~(0xc0 >> (2 * nr)))
nr                413 drivers/hwmon/gl518sm.c 		 | (data->fan_div[nr] << (6 - 2 * nr));
nr                 70 drivers/hwmon/i5500_temp.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                 74 drivers/hwmon/i5500_temp.c 	return sprintf(buf, "%u\n", (unsigned int)ctsts & (1 << nr));
nr                276 drivers/hwmon/ibmpex.c 		       data->sensors[attr->index].values[attr->nr] * mult);
nr                349 drivers/hwmon/ibmpex.c 	data->sensors[sensor].attr[func].nr = func;
nr                238 drivers/hwmon/it87.c #define IT87_REG_TEMP(nr)      (0x29 + (nr))
nr                240 drivers/hwmon/it87.c #define IT87_REG_VIN_MAX(nr)   (0x30 + (nr) * 2)
nr                241 drivers/hwmon/it87.c #define IT87_REG_VIN_MIN(nr)   (0x31 + (nr) * 2)
nr                242 drivers/hwmon/it87.c #define IT87_REG_TEMP_HIGH(nr) (0x40 + (nr) * 2)
nr                243 drivers/hwmon/it87.c #define IT87_REG_TEMP_LOW(nr)  (0x41 + (nr) * 2)
nr                254 drivers/hwmon/it87.c #define IT87_REG_AUTO_TEMP(nr, i) (IT87_REG_AUTO_BASE[nr] + (i))
nr                255 drivers/hwmon/it87.c #define IT87_REG_AUTO_PWM(nr, i)  (IT87_REG_AUTO_BASE[nr] + 5 + (i))
nr                471 drivers/hwmon/it87.c #define has_temp_peci(data, nr)	(((data)->features & FEAT_TEMP_PECI) && \
nr                472 drivers/hwmon/it87.c 				 ((data)->peci_mask & BIT(nr)))
nr                473 drivers/hwmon/it87.c #define has_temp_old_peci(data, nr) \
nr                475 drivers/hwmon/it87.c 				 ((data)->old_peci_mask & BIT(nr)))
nr                566 drivers/hwmon/it87.c static int adc_lsb(const struct it87_data *data, int nr)
nr                576 drivers/hwmon/it87.c 	if (data->in_scaled & BIT(nr))
nr                581 drivers/hwmon/it87.c static u8 in_to_reg(const struct it87_data *data, int nr, long val)
nr                583 drivers/hwmon/it87.c 	val = DIV_ROUND_CLOSEST(val * 10, adc_lsb(data, nr));
nr                587 drivers/hwmon/it87.c static int in_from_reg(const struct it87_data *data, int nr, int val)
nr                589 drivers/hwmon/it87.c 	return DIV_ROUND_CLOSEST(val * adc_lsb(data, nr), 10);
nr                687 drivers/hwmon/it87.c static void it87_update_pwm_ctrl(struct it87_data *data, int nr)
nr                689 drivers/hwmon/it87.c 	data->pwm_ctrl[nr] = it87_read_value(data, IT87_REG_PWM[nr]);
nr                691 drivers/hwmon/it87.c 		data->pwm_temp_map[nr] = data->pwm_ctrl[nr] & 0x03;
nr                692 drivers/hwmon/it87.c 		data->pwm_duty[nr] = it87_read_value(data,
nr                693 drivers/hwmon/it87.c 						     IT87_REG_PWM_DUTY[nr]);
nr                695 drivers/hwmon/it87.c 		if (data->pwm_ctrl[nr] & 0x80)	/* Automatic mode */
nr                696 drivers/hwmon/it87.c 			data->pwm_temp_map[nr] = data->pwm_ctrl[nr] & 0x03;
nr                698 drivers/hwmon/it87.c 			data->pwm_duty[nr] = data->pwm_ctrl[nr] & 0x7f;
nr                705 drivers/hwmon/it87.c 			data->auto_temp[nr][i] = it87_read_value(data,
nr                706 drivers/hwmon/it87.c 						IT87_REG_AUTO_TEMP(nr, i));
nr                708 drivers/hwmon/it87.c 			data->auto_pwm[nr][i] = it87_read_value(data,
nr                709 drivers/hwmon/it87.c 						IT87_REG_AUTO_PWM(nr, i));
nr                719 drivers/hwmon/it87.c 		data->auto_temp[nr][0] =
nr                720 drivers/hwmon/it87.c 			it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 5));
nr                723 drivers/hwmon/it87.c 			data->auto_temp[nr][i + 1] =
nr                725 drivers/hwmon/it87.c 						IT87_REG_AUTO_TEMP(nr, i));
nr                730 drivers/hwmon/it87.c 		data->auto_pwm[nr][0] =
nr                731 drivers/hwmon/it87.c 			it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 3));
nr                732 drivers/hwmon/it87.c 		data->auto_pwm[nr][1] =
nr                733 drivers/hwmon/it87.c 			it87_read_value(data, IT87_REG_AUTO_TEMP(nr, 4));
nr                861 drivers/hwmon/it87.c 	int nr = sattr->nr;
nr                863 drivers/hwmon/it87.c 	return sprintf(buf, "%d\n", in_from_reg(data, nr, data->in[nr][index]));
nr                872 drivers/hwmon/it87.c 	int nr = sattr->nr;
nr                879 drivers/hwmon/it87.c 	data->in[nr][index] = in_to_reg(data, nr, val);
nr                881 drivers/hwmon/it87.c 			 index == 1 ? IT87_REG_VIN_MIN(nr)
nr                882 drivers/hwmon/it87.c 				    : IT87_REG_VIN_MAX(nr),
nr                883 drivers/hwmon/it87.c 			 data->in[nr][index]);
nr                947 drivers/hwmon/it87.c 	int nr = sattr->nr;
nr                951 drivers/hwmon/it87.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index]));
nr                958 drivers/hwmon/it87.c 	int nr = sattr->nr;
nr                972 drivers/hwmon/it87.c 		reg = IT87_REG_TEMP_LOW(nr);
nr                975 drivers/hwmon/it87.c 		reg = IT87_REG_TEMP_HIGH(nr);
nr                984 drivers/hwmon/it87.c 		reg = IT87_REG_TEMP_OFFSET[nr];
nr                988 drivers/hwmon/it87.c 	data->temp[nr][index] = TEMP_TO_REG(val);
nr                989 drivers/hwmon/it87.c 	it87_write_value(data, reg, data->temp[nr][index]);
nr               1023 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1028 drivers/hwmon/it87.c 	if ((has_temp_peci(data, nr) && (reg >> 6 == nr + 1)) ||
nr               1029 drivers/hwmon/it87.c 	    (has_temp_old_peci(data, nr) && (extra & 0x80)))
nr               1031 drivers/hwmon/it87.c 	if (reg & (1 << nr))
nr               1033 drivers/hwmon/it87.c 	if (reg & (8 << nr))
nr               1042 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1052 drivers/hwmon/it87.c 	reg &= ~(1 << nr);
nr               1053 drivers/hwmon/it87.c 	reg &= ~(8 << nr);
nr               1054 drivers/hwmon/it87.c 	if (has_temp_peci(data, nr) && (reg >> 6 == nr + 1 || val == 6))
nr               1057 drivers/hwmon/it87.c 	if (has_temp_old_peci(data, nr) && ((extra & 0x80) || val == 6))
nr               1066 drivers/hwmon/it87.c 		reg |= 1 << nr;
nr               1068 drivers/hwmon/it87.c 		reg |= 8 << nr;
nr               1069 drivers/hwmon/it87.c 	else if (has_temp_peci(data, nr) && val == 6)
nr               1070 drivers/hwmon/it87.c 		reg |= (nr + 1) << 6;
nr               1071 drivers/hwmon/it87.c 	else if (has_temp_old_peci(data, nr) && val == 6)
nr               1080 drivers/hwmon/it87.c 	if (has_temp_old_peci(data, nr))
nr               1096 drivers/hwmon/it87.c static int pwm_mode(const struct it87_data *data, int nr)
nr               1098 drivers/hwmon/it87.c 	if (data->type != it8603 && nr < 3 && !(data->fan_main_ctrl & BIT(nr)))
nr               1100 drivers/hwmon/it87.c 	if (data->pwm_ctrl[nr] & 0x80)
nr               1102 drivers/hwmon/it87.c 	if ((data->type == it8603 || nr >= 3) &&
nr               1103 drivers/hwmon/it87.c 	    data->pwm_duty[nr] == pwm_to_reg(data, 0xff))
nr               1113 drivers/hwmon/it87.c 	int nr = sattr->nr;
nr               1119 drivers/hwmon/it87.c 		FAN16_FROM_REG(data->fan[nr][index]) :
nr               1120 drivers/hwmon/it87.c 		FAN_FROM_REG(data->fan[nr][index],
nr               1121 drivers/hwmon/it87.c 			     DIV_FROM_REG(data->fan_div[nr]));
nr               1130 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1132 drivers/hwmon/it87.c 	return sprintf(buf, "%lu\n", DIV_FROM_REG(data->fan_div[nr]));
nr               1140 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1142 drivers/hwmon/it87.c 	return sprintf(buf, "%d\n", pwm_mode(data, nr));
nr               1150 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1153 drivers/hwmon/it87.c 		       pwm_from_reg(data, data->pwm_duty[nr]));
nr               1161 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1165 drivers/hwmon/it87.c 	if (has_pwm_freq2(data) && nr == 1)
nr               1179 drivers/hwmon/it87.c 	int nr = sattr->nr;
nr               1192 drivers/hwmon/it87.c 		data->fan[nr][index] = FAN16_TO_REG(val);
nr               1193 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_FAN_MIN[nr],
nr               1194 drivers/hwmon/it87.c 				 data->fan[nr][index] & 0xff);
nr               1195 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_FANX_MIN[nr],
nr               1196 drivers/hwmon/it87.c 				 data->fan[nr][index] >> 8);
nr               1199 drivers/hwmon/it87.c 		switch (nr) {
nr               1201 drivers/hwmon/it87.c 			data->fan_div[nr] = reg & 0x07;
nr               1204 drivers/hwmon/it87.c 			data->fan_div[nr] = (reg >> 3) & 0x07;
nr               1207 drivers/hwmon/it87.c 			data->fan_div[nr] = (reg & 0x40) ? 3 : 1;
nr               1210 drivers/hwmon/it87.c 		data->fan[nr][index] =
nr               1211 drivers/hwmon/it87.c 		  FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr               1212 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_FAN_MIN[nr],
nr               1213 drivers/hwmon/it87.c 				 data->fan[nr][index]);
nr               1225 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1237 drivers/hwmon/it87.c 	min = FAN_FROM_REG(data->fan[nr][1], DIV_FROM_REG(data->fan_div[nr]));
nr               1239 drivers/hwmon/it87.c 	switch (nr) {
nr               1242 drivers/hwmon/it87.c 		data->fan_div[nr] = DIV_TO_REG(val);
nr               1246 drivers/hwmon/it87.c 			data->fan_div[nr] = 1;
nr               1248 drivers/hwmon/it87.c 			data->fan_div[nr] = 3;
nr               1258 drivers/hwmon/it87.c 	data->fan[nr][1] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr               1259 drivers/hwmon/it87.c 	it87_write_value(data, IT87_REG_FAN_MIN[nr], data->fan[nr][1]);
nr               1266 drivers/hwmon/it87.c static int check_trip_points(struct device *dev, int nr)
nr               1273 drivers/hwmon/it87.c 			if (data->auto_temp[nr][i] > data->auto_temp[nr][i + 1])
nr               1277 drivers/hwmon/it87.c 			if (data->auto_pwm[nr][i] > data->auto_pwm[nr][i + 1])
nr               1282 drivers/hwmon/it87.c 			if (data->auto_temp[nr][i] > data->auto_temp[nr][i + 1])
nr               1300 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1308 drivers/hwmon/it87.c 		if (check_trip_points(dev, nr) < 0)
nr               1315 drivers/hwmon/it87.c 		if (nr < 3 && data->type != it8603) {
nr               1319 drivers/hwmon/it87.c 			it87_write_value(data, IT87_REG_FAN_CTL, tmp | BIT(nr));
nr               1321 drivers/hwmon/it87.c 			data->fan_main_ctrl &= ~BIT(nr);
nr               1328 drivers/hwmon/it87.c 			data->pwm_duty[nr] = pwm_to_reg(data, 0xff);
nr               1329 drivers/hwmon/it87.c 			it87_write_value(data, IT87_REG_PWM_DUTY[nr],
nr               1330 drivers/hwmon/it87.c 					 data->pwm_duty[nr]);
nr               1333 drivers/hwmon/it87.c 				ctrl = (data->pwm_ctrl[nr] & 0x7c) |
nr               1334 drivers/hwmon/it87.c 					data->pwm_temp_map[nr];
nr               1336 drivers/hwmon/it87.c 				ctrl = data->pwm_duty[nr];
nr               1338 drivers/hwmon/it87.c 			data->pwm_ctrl[nr] = ctrl;
nr               1339 drivers/hwmon/it87.c 			it87_write_value(data, IT87_REG_PWM[nr], ctrl);
nr               1345 drivers/hwmon/it87.c 			ctrl = (data->pwm_ctrl[nr] & 0x7c) |
nr               1346 drivers/hwmon/it87.c 				data->pwm_temp_map[nr];
nr               1350 drivers/hwmon/it87.c 			ctrl = (val == 1 ? data->pwm_duty[nr] : 0x80);
nr               1352 drivers/hwmon/it87.c 		data->pwm_ctrl[nr] = ctrl;
nr               1353 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_PWM[nr], ctrl);
nr               1355 drivers/hwmon/it87.c 		if (data->type != it8603 && nr < 3) {
nr               1357 drivers/hwmon/it87.c 			data->fan_main_ctrl |= BIT(nr);
nr               1372 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1379 drivers/hwmon/it87.c 	it87_update_pwm_ctrl(data, nr);
nr               1385 drivers/hwmon/it87.c 		if (data->pwm_ctrl[nr] & 0x80) {
nr               1389 drivers/hwmon/it87.c 		data->pwm_duty[nr] = pwm_to_reg(data, val);
nr               1390 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_PWM_DUTY[nr],
nr               1391 drivers/hwmon/it87.c 				 data->pwm_duty[nr]);
nr               1393 drivers/hwmon/it87.c 		data->pwm_duty[nr] = pwm_to_reg(data, val);
nr               1398 drivers/hwmon/it87.c 		if (!(data->pwm_ctrl[nr] & 0x80)) {
nr               1399 drivers/hwmon/it87.c 			data->pwm_ctrl[nr] = data->pwm_duty[nr];
nr               1400 drivers/hwmon/it87.c 			it87_write_value(data, IT87_REG_PWM[nr],
nr               1401 drivers/hwmon/it87.c 					 data->pwm_ctrl[nr]);
nr               1413 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1430 drivers/hwmon/it87.c 	if (nr == 0) {
nr               1449 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1452 drivers/hwmon/it87.c 	map = data->pwm_temp_map[nr];
nr               1455 drivers/hwmon/it87.c 	if (nr >= 3)		/* pwm channels 3..6 map to temp4..6 */
nr               1467 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1474 drivers/hwmon/it87.c 	if (nr >= 3)
nr               1492 drivers/hwmon/it87.c 	it87_update_pwm_ctrl(data, nr);
nr               1493 drivers/hwmon/it87.c 	data->pwm_temp_map[nr] = reg;
nr               1498 drivers/hwmon/it87.c 	if (data->pwm_ctrl[nr] & 0x80) {
nr               1499 drivers/hwmon/it87.c 		data->pwm_ctrl[nr] = (data->pwm_ctrl[nr] & 0xfc) |
nr               1500 drivers/hwmon/it87.c 						data->pwm_temp_map[nr];
nr               1501 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_PWM[nr], data->pwm_ctrl[nr]);
nr               1513 drivers/hwmon/it87.c 	int nr = sensor_attr->nr;
nr               1517 drivers/hwmon/it87.c 		       pwm_from_reg(data, data->auto_pwm[nr][point]));
nr               1526 drivers/hwmon/it87.c 	int nr = sensor_attr->nr;
nr               1535 drivers/hwmon/it87.c 	data->auto_pwm[nr][point] = pwm_to_reg(data, val);
nr               1537 drivers/hwmon/it87.c 		regaddr = IT87_REG_AUTO_TEMP(nr, 3);
nr               1539 drivers/hwmon/it87.c 		regaddr = IT87_REG_AUTO_PWM(nr, point);
nr               1540 drivers/hwmon/it87.c 	it87_write_value(data, regaddr, data->auto_pwm[nr][point]);
nr               1550 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1552 drivers/hwmon/it87.c 	return sprintf(buf, "%d\n", data->auto_pwm[nr][1] & 0x7f);
nr               1561 drivers/hwmon/it87.c 	int nr = sensor_attr->index;
nr               1568 drivers/hwmon/it87.c 	data->auto_pwm[nr][1] = (data->auto_pwm[nr][1] & 0x80) | val;
nr               1569 drivers/hwmon/it87.c 	it87_write_value(data, IT87_REG_AUTO_TEMP(nr, 4),
nr               1570 drivers/hwmon/it87.c 			 data->auto_pwm[nr][1]);
nr               1581 drivers/hwmon/it87.c 	int nr = sensor_attr->nr;
nr               1586 drivers/hwmon/it87.c 		reg = data->auto_temp[nr][point];
nr               1588 drivers/hwmon/it87.c 		reg = data->auto_temp[nr][1] - (data->auto_temp[nr][0] & 0x1f);
nr               1599 drivers/hwmon/it87.c 	int nr = sensor_attr->nr;
nr               1609 drivers/hwmon/it87.c 		reg = data->auto_temp[nr][1] - TEMP_TO_REG(val);
nr               1610 drivers/hwmon/it87.c 		reg = clamp_val(reg, 0, 0x1f) | (data->auto_temp[nr][0] & 0xe0);
nr               1611 drivers/hwmon/it87.c 		data->auto_temp[nr][0] = reg;
nr               1612 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_AUTO_TEMP(nr, 5), reg);
nr               1615 drivers/hwmon/it87.c 		data->auto_temp[nr][point] = reg;
nr               1618 drivers/hwmon/it87.c 		it87_write_value(data, IT87_REG_AUTO_TEMP(nr, point), reg);
nr               1963 drivers/hwmon/it87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1966 drivers/hwmon/it87.c 	if (has_vin3_5v(data) && nr == 0)
nr               1969 drivers/hwmon/it87.c 		label = labels_it8721[nr];
nr               1971 drivers/hwmon/it87.c 		label = labels[nr];
nr                282 drivers/hwmon/lineage-pem.c 	status = data->data_string[attr->nr] & attr->index;
nr                 67 drivers/hwmon/lm63.c #define LM63_REG_LUT_TEMP(nr)		(0x50 + 2 * (nr))
nr                 68 drivers/hwmon/lm63.c #define LM63_REG_LUT_PWM(nr)		(0x51 + 2 * (nr))
nr                178 drivers/hwmon/lm63.c static inline int temp8_from_reg(struct lm63_data *data, int nr)
nr                181 drivers/hwmon/lm63.c 		return TEMP8_FROM_REG((u8)data->temp8[nr]);
nr                182 drivers/hwmon/lm63.c 	return TEMP8_FROM_REG(data->temp8[nr]);
nr                185 drivers/hwmon/lm63.c static inline int lut_temp_from_reg(struct lm63_data *data, int nr)
nr                187 drivers/hwmon/lm63.c 	return data->temp8[nr] * (data->lut_temp_highres ? 500 : 1000);
nr                366 drivers/hwmon/lm63.c 	int nr = attr->index;
nr                370 drivers/hwmon/lm63.c 		pwm = data->pwm1[nr];
nr                372 drivers/hwmon/lm63.c 		pwm = data->pwm1[nr] >= 2 * data->pwm1_freq ?
nr                373 drivers/hwmon/lm63.c 		       255 : (data->pwm1[nr] * 255 + data->pwm1_freq) /
nr                385 drivers/hwmon/lm63.c 	int nr = attr->index;
nr                397 drivers/hwmon/lm63.c 	reg = nr ? LM63_REG_LUT_PWM(nr - 1) : LM63_REG_PWM_VALUE;
nr                401 drivers/hwmon/lm63.c 	data->pwm1[nr] = data->pwm_highres ? val :
nr                403 drivers/hwmon/lm63.c 	i2c_smbus_write_byte_data(client, reg, data->pwm1[nr]);
nr                491 drivers/hwmon/lm63.c 	int nr = attr->index;
nr                502 drivers/hwmon/lm63.c 	switch (nr) {
nr                515 drivers/hwmon/lm63.c 		reg = LM63_REG_LUT_TEMP(nr - 3);
nr                518 drivers/hwmon/lm63.c 	data->temp8[nr] = temp;
nr                529 drivers/hwmon/lm63.c 	int nr = attr->index;
nr                532 drivers/hwmon/lm63.c 	if (!nr) {
nr                540 drivers/hwmon/lm63.c 			temp = TEMP11_FROM_REG(data->temp11[nr]);
nr                542 drivers/hwmon/lm63.c 		if (data->remote_unsigned && nr == 2)
nr                543 drivers/hwmon/lm63.c 			temp = TEMP11_FROM_REG((u16)data->temp11[nr]);
nr                545 drivers/hwmon/lm63.c 			temp = TEMP11_FROM_REG(data->temp11[nr]);
nr                567 drivers/hwmon/lm63.c 	int nr = attr->index;
nr                574 drivers/hwmon/lm63.c 	if (data->remote_unsigned && nr == 2)
nr                575 drivers/hwmon/lm63.c 		data->temp11[nr] = TEMP11U_TO_REG(val - data->temp2_offset);
nr                577 drivers/hwmon/lm63.c 		data->temp11[nr] = TEMP11_TO_REG(val - data->temp2_offset);
nr                579 drivers/hwmon/lm63.c 	i2c_smbus_write_byte_data(client, reg[(nr - 1) * 2],
nr                580 drivers/hwmon/lm63.c 				  data->temp11[nr] >> 8);
nr                581 drivers/hwmon/lm63.c 	i2c_smbus_write_byte_data(client, reg[(nr - 1) * 2 + 1],
nr                582 drivers/hwmon/lm63.c 				  data->temp11[nr] & 0xff);
nr                145 drivers/hwmon/lm77.c 	int nr = attr->index;
nr                148 drivers/hwmon/lm77.c 	temp = nr == t_min ? data->temp[nr] + data->temp[t_hyst] :
nr                149 drivers/hwmon/lm77.c 			     data->temp[nr] - data->temp[t_hyst];
nr                161 drivers/hwmon/lm77.c 	int nr = attr->index;
nr                171 drivers/hwmon/lm77.c 	data->temp[nr] = val;
nr                172 drivers/hwmon/lm77.c 	lm77_write_value(client, temp_regs[nr], LM77_TEMP_TO_REG(val));
nr                 43 drivers/hwmon/lm78.c #define LM78_REG_IN_MAX(nr) (0x2b + (nr) * 2)
nr                 44 drivers/hwmon/lm78.c #define LM78_REG_IN_MIN(nr) (0x2c + (nr) * 2)
nr                 45 drivers/hwmon/lm78.c #define LM78_REG_IN(nr) (0x20 + (nr))
nr                 47 drivers/hwmon/lm78.c #define LM78_REG_FAN_MIN(nr) (0x3b + (nr))
nr                 48 drivers/hwmon/lm78.c #define LM78_REG_FAN(nr) (0x28 + (nr))
nr                171 drivers/hwmon/lm78.c 	int nr = attr->index;
nr                180 drivers/hwmon/lm78.c 	data->in_min[nr] = IN_TO_REG(val);
nr                181 drivers/hwmon/lm78.c 	lm78_write_value(data, LM78_REG_IN_MIN(nr), data->in_min[nr]);
nr                191 drivers/hwmon/lm78.c 	int nr = attr->index;
nr                200 drivers/hwmon/lm78.c 	data->in_max[nr] = IN_TO_REG(val);
nr                201 drivers/hwmon/lm78.c 	lm78_write_value(data, LM78_REG_IN_MAX(nr), data->in_max[nr]);
nr                298 drivers/hwmon/lm78.c 	int nr = attr->index;
nr                299 drivers/hwmon/lm78.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
nr                300 drivers/hwmon/lm78.c 		DIV_FROM_REG(data->fan_div[nr])));
nr                308 drivers/hwmon/lm78.c 	int nr = attr->index;
nr                309 drivers/hwmon/lm78.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr],
nr                310 drivers/hwmon/lm78.c 		DIV_FROM_REG(data->fan_div[nr])));
nr                318 drivers/hwmon/lm78.c 	int nr = attr->index;
nr                327 drivers/hwmon/lm78.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                328 drivers/hwmon/lm78.c 	lm78_write_value(data, LM78_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                352 drivers/hwmon/lm78.c 	int nr = attr->index;
nr                363 drivers/hwmon/lm78.c 	min = FAN_FROM_REG(data->fan_min[nr],
nr                364 drivers/hwmon/lm78.c 			   DIV_FROM_REG(data->fan_div[nr]));
nr                368 drivers/hwmon/lm78.c 		data->fan_div[nr] = 0;
nr                371 drivers/hwmon/lm78.c 		data->fan_div[nr] = 1;
nr                374 drivers/hwmon/lm78.c 		data->fan_div[nr] = 2;
nr                377 drivers/hwmon/lm78.c 		data->fan_div[nr] = 3;
nr                388 drivers/hwmon/lm78.c 	switch (nr) {
nr                390 drivers/hwmon/lm78.c 		reg = (reg & 0xcf) | (data->fan_div[nr] << 4);
nr                393 drivers/hwmon/lm78.c 		reg = (reg & 0x3f) | (data->fan_div[nr] << 6);
nr                398 drivers/hwmon/lm78.c 	data->fan_min[nr] =
nr                399 drivers/hwmon/lm78.c 		FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                400 drivers/hwmon/lm78.c 	lm78_write_value(data, LM78_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                440 drivers/hwmon/lm78.c 	int nr = to_sensor_dev_attr(da)->index;
nr                441 drivers/hwmon/lm78.c 	return sprintf(buf, "%u\n", (data->alarms >> nr) & 1);
nr                 28 drivers/hwmon/lm80.c #define LM80_REG_IN_MAX(nr)		(0x2a + (nr) * 2)
nr                 29 drivers/hwmon/lm80.c #define LM80_REG_IN_MIN(nr)		(0x2b + (nr) * 2)
nr                 30 drivers/hwmon/lm80.c #define LM80_REG_IN(nr)			(0x20 + (nr))
nr                 34 drivers/hwmon/lm80.c #define LM80_REG_FAN_MIN(nr)		(0x3b + (nr))
nr                264 drivers/hwmon/lm80.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                268 drivers/hwmon/lm80.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr][index]));
nr                277 drivers/hwmon/lm80.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                284 drivers/hwmon/lm80.c 	reg = nr == i_min ? LM80_REG_IN_MIN(index) : LM80_REG_IN_MAX(index);
nr                287 drivers/hwmon/lm80.c 	data->in[nr][index] = IN_TO_REG(val);
nr                288 drivers/hwmon/lm80.c 	lm80_write_value(client, reg, data->in[nr][index]);
nr                297 drivers/hwmon/lm80.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                301 drivers/hwmon/lm80.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr][index],
nr                308 drivers/hwmon/lm80.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                312 drivers/hwmon/lm80.c 	return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
nr                319 drivers/hwmon/lm80.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                328 drivers/hwmon/lm80.c 	data->fan[nr][index] = FAN_TO_REG(val,
nr                331 drivers/hwmon/lm80.c 			 data->fan[nr][index]);
nr                346 drivers/hwmon/lm80.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                359 drivers/hwmon/lm80.c 	min = FAN_FROM_REG(data->fan[f_min][nr],
nr                360 drivers/hwmon/lm80.c 			   DIV_FROM_REG(data->fan_div[nr]));
nr                364 drivers/hwmon/lm80.c 		data->fan_div[nr] = 0;
nr                367 drivers/hwmon/lm80.c 		data->fan_div[nr] = 1;
nr                370 drivers/hwmon/lm80.c 		data->fan_div[nr] = 2;
nr                373 drivers/hwmon/lm80.c 		data->fan_div[nr] = 3;
nr                388 drivers/hwmon/lm80.c 	reg = (rv & ~(3 << (2 * (nr + 1))))
nr                389 drivers/hwmon/lm80.c 	    | (data->fan_div[nr] << (2 * (nr + 1)));
nr                393 drivers/hwmon/lm80.c 	data->fan[f_min][nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                394 drivers/hwmon/lm80.c 	lm80_write_value(client, LM80_REG_FAN_MIN(nr + 1),
nr                395 drivers/hwmon/lm80.c 			 data->fan[f_min][nr]);
nr                418 drivers/hwmon/lm80.c 	int nr = attr->index;
nr                425 drivers/hwmon/lm80.c 	data->temp[nr] = TEMP_TO_REG(val);
nr                426 drivers/hwmon/lm80.c 	lm80_write_value(client, temp_regs[nr], data->temp[nr] >> 8);
nr                126 drivers/hwmon/lm83.c 		int nr;
nr                129 drivers/hwmon/lm83.c 		for (nr = 0; nr < 9; nr++) {
nr                130 drivers/hwmon/lm83.c 			data->temp[nr] =
nr                132 drivers/hwmon/lm83.c 			    LM83_REG_R_TEMP[nr]);
nr                168 drivers/hwmon/lm83.c 	int nr = attr->index;
nr                176 drivers/hwmon/lm83.c 	data->temp[nr] = TEMP_TO_REG(val);
nr                177 drivers/hwmon/lm83.c 	i2c_smbus_write_byte_data(client, LM83_REG_W_HIGH[nr - 4],
nr                178 drivers/hwmon/lm83.c 				  data->temp[nr]);
nr                 38 drivers/hwmon/lm85.c #define LM85_REG_IN(nr)			(0x20 + (nr))
nr                 39 drivers/hwmon/lm85.c #define LM85_REG_IN_MIN(nr)		(0x44 + (nr) * 2)
nr                 40 drivers/hwmon/lm85.c #define LM85_REG_IN_MAX(nr)		(0x45 + (nr) * 2)
nr                 42 drivers/hwmon/lm85.c #define LM85_REG_TEMP(nr)		(0x25 + (nr))
nr                 43 drivers/hwmon/lm85.c #define LM85_REG_TEMP_MIN(nr)		(0x4e + (nr) * 2)
nr                 44 drivers/hwmon/lm85.c #define LM85_REG_TEMP_MAX(nr)		(0x4f + (nr) * 2)
nr                 47 drivers/hwmon/lm85.c #define LM85_REG_FAN(nr)		(0x28 + (nr) * 2)
nr                 48 drivers/hwmon/lm85.c #define LM85_REG_FAN_MIN(nr)		(0x54 + (nr) * 2)
nr                 50 drivers/hwmon/lm85.c #define LM85_REG_PWM(nr)		(0x30 + (nr))
nr                 91 drivers/hwmon/lm85.c #define LM85_REG_AFAN_CONFIG(nr)	(0x5c + (nr))
nr                 92 drivers/hwmon/lm85.c #define LM85_REG_AFAN_RANGE(nr)		(0x5f + (nr))
nr                 94 drivers/hwmon/lm85.c #define LM85_REG_AFAN_MINPWM(nr)	(0x64 + (nr))
nr                 95 drivers/hwmon/lm85.c #define LM85_REG_AFAN_LIMIT(nr)		(0x67 + (nr))
nr                 96 drivers/hwmon/lm85.c #define LM85_REG_AFAN_CRITICAL(nr)	(0x6a + (nr))
nr                105 drivers/hwmon/lm85.c #define EMC6D100_REG_IN(nr)             (0x70 + ((nr) - 5))
nr                106 drivers/hwmon/lm85.c #define EMC6D100_REG_IN_MIN(nr)         (0x73 + ((nr) - 5) * 2)
nr                107 drivers/hwmon/lm85.c #define EMC6D100_REG_IN_MAX(nr)         (0x74 + ((nr) - 5) * 2)
nr                555 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                557 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr]));
nr                563 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                565 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr]));
nr                572 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                583 drivers/hwmon/lm85.c 	data->fan_min[nr] = FAN_TO_REG(val);
nr                584 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                658 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                660 drivers/hwmon/lm85.c 	return sprintf(buf, "%u\n", (data->alarms >> nr) & 1);
nr                686 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                688 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", PWM_FROM_REG(data->pwm[nr]));
nr                694 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                705 drivers/hwmon/lm85.c 	data->pwm[nr] = PWM_TO_REG(val);
nr                706 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_PWM(nr), data->pwm[nr]);
nr                714 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                718 drivers/hwmon/lm85.c 	pwm_zone = ZONE_FROM_REG(data->autofan[nr].config);
nr                737 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                767 drivers/hwmon/lm85.c 	data->autofan[nr].config = lm85_read_value(client,
nr                768 drivers/hwmon/lm85.c 		LM85_REG_AFAN_CONFIG(nr));
nr                769 drivers/hwmon/lm85.c 	data->autofan[nr].config = (data->autofan[nr].config & ~0xe0)
nr                771 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_AFAN_CONFIG(nr),
nr                772 drivers/hwmon/lm85.c 		data->autofan[nr].config);
nr                780 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                788 drivers/hwmon/lm85.c 				     data->pwm_freq[nr]);
nr                797 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                817 drivers/hwmon/lm85.c 		data->pwm_freq[nr] = FREQ_TO_REG(data->freq_map,
nr                819 drivers/hwmon/lm85.c 		lm85_write_value(client, LM85_REG_AFAN_RANGE(nr),
nr                820 drivers/hwmon/lm85.c 				 (data->zone[nr].range << 4)
nr                821 drivers/hwmon/lm85.c 				 | data->pwm_freq[nr]);
nr                846 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                848 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", INSEXT_FROM_REG(nr, data->in[nr],
nr                849 drivers/hwmon/lm85.c 						    data->in_ext[nr]));
nr                855 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                857 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_min[nr]));
nr                863 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                874 drivers/hwmon/lm85.c 	data->in_min[nr] = INS_TO_REG(nr, val);
nr                875 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_IN_MIN(nr), data->in_min[nr]);
nr                883 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                885 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", INS_FROM_REG(nr, data->in_max[nr]));
nr                891 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                902 drivers/hwmon/lm85.c 	data->in_max[nr] = INS_TO_REG(nr, val);
nr                903 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_IN_MAX(nr), data->in_max[nr]);
nr                938 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                940 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", TEMPEXT_FROM_REG(data->temp[nr],
nr                941 drivers/hwmon/lm85.c 						     data->temp_ext[nr]));
nr                947 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                949 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr]));
nr                956 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                970 drivers/hwmon/lm85.c 	data->temp_min[nr] = TEMP_TO_REG(val);
nr                971 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_TEMP_MIN(nr), data->temp_min[nr]);
nr                979 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                981 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr]));
nr                988 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1002 drivers/hwmon/lm85.c 	data->temp_max[nr] = TEMP_TO_REG(val);
nr               1003 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_TEMP_MAX(nr), data->temp_max[nr]);
nr               1024 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1026 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", ZONE_FROM_REG(data->autofan[nr].config));
nr               1033 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1044 drivers/hwmon/lm85.c 	data->autofan[nr].config = (data->autofan[nr].config & (~0xe0))
nr               1046 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_AFAN_CONFIG(nr),
nr               1047 drivers/hwmon/lm85.c 		data->autofan[nr].config);
nr               1055 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1057 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", PWM_FROM_REG(data->autofan[nr].min_pwm));
nr               1064 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1075 drivers/hwmon/lm85.c 	data->autofan[nr].min_pwm = PWM_TO_REG(val);
nr               1076 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_AFAN_MINPWM(nr),
nr               1077 drivers/hwmon/lm85.c 		data->autofan[nr].min_pwm);
nr               1086 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1088 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", data->autofan[nr].min_off);
nr               1095 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1107 drivers/hwmon/lm85.c 	data->autofan[nr].min_off = val;
nr               1109 drivers/hwmon/lm85.c 	tmp &= ~(0x20 << nr);
nr               1110 drivers/hwmon/lm85.c 	if (data->autofan[nr].min_off)
nr               1111 drivers/hwmon/lm85.c 		tmp |= 0x20 << nr;
nr               1133 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1135 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) -
nr               1136 drivers/hwmon/lm85.c 		HYST_FROM_REG(data->zone[nr].hyst));
nr               1143 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1155 drivers/hwmon/lm85.c 	min = TEMP_FROM_REG(data->zone[nr].limit);
nr               1156 drivers/hwmon/lm85.c 	data->zone[nr].hyst = HYST_TO_REG(min - val);
nr               1157 drivers/hwmon/lm85.c 	if (nr == 0 || nr == 1) {
nr               1173 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1175 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit));
nr               1182 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1193 drivers/hwmon/lm85.c 	data->zone[nr].limit = TEMP_TO_REG(val);
nr               1194 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_AFAN_LIMIT(nr),
nr               1195 drivers/hwmon/lm85.c 		data->zone[nr].limit);
nr               1198 drivers/hwmon/lm85.c 	data->zone[nr].range = RANGE_TO_REG(
nr               1199 drivers/hwmon/lm85.c 		TEMP_FROM_REG(data->zone[nr].max_desired) -
nr               1200 drivers/hwmon/lm85.c 		TEMP_FROM_REG(data->zone[nr].limit));
nr               1201 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_AFAN_RANGE(nr),
nr               1202 drivers/hwmon/lm85.c 		((data->zone[nr].range & 0x0f) << 4)
nr               1203 drivers/hwmon/lm85.c 		| data->pwm_freq[nr]);
nr               1213 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1215 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) +
nr               1216 drivers/hwmon/lm85.c 		RANGE_FROM_REG(data->zone[nr].range));
nr               1223 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1235 drivers/hwmon/lm85.c 	min = TEMP_FROM_REG(data->zone[nr].limit);
nr               1236 drivers/hwmon/lm85.c 	data->zone[nr].max_desired = TEMP_TO_REG(val);
nr               1237 drivers/hwmon/lm85.c 	data->zone[nr].range = RANGE_TO_REG(
nr               1239 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_AFAN_RANGE(nr),
nr               1240 drivers/hwmon/lm85.c 		((data->zone[nr].range & 0x0f) << 4)
nr               1241 drivers/hwmon/lm85.c 		| data->pwm_freq[nr]);
nr               1250 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1252 drivers/hwmon/lm85.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].critical));
nr               1259 drivers/hwmon/lm85.c 	int nr = to_sensor_dev_attr(attr)->index;
nr               1270 drivers/hwmon/lm85.c 	data->zone[nr].critical = TEMP_TO_REG(val);
nr               1271 drivers/hwmon/lm85.c 	lm85_write_value(client, LM85_REG_AFAN_CRITICAL(nr),
nr               1272 drivers/hwmon/lm85.c 		data->zone[nr].critical);
nr                 70 drivers/hwmon/lm87.c #define LM87_REG_IN(nr)			(0x20 + (nr))
nr                 71 drivers/hwmon/lm87.c #define LM87_REG_IN_MAX(nr)		(0x2B + (nr) * 2)
nr                 72 drivers/hwmon/lm87.c #define LM87_REG_IN_MIN(nr)		(0x2C + (nr) * 2)
nr                 74 drivers/hwmon/lm87.c #define LM87_REG_AIN(nr)		(0x28 + (nr))
nr                 75 drivers/hwmon/lm87.c #define LM87_REG_AIN_MIN(nr)		(0x1A + (nr))
nr                 76 drivers/hwmon/lm87.c #define LM87_REG_AIN_MAX(nr)		(0x3B + (nr))
nr                 88 drivers/hwmon/lm87.c #define LM87_REG_FAN(nr)		(0x28 + (nr))
nr                 89 drivers/hwmon/lm87.c #define LM87_REG_FAN_MIN(nr)		(0x3B + (nr))
nr                133 drivers/hwmon/lm87.c #define CHAN_NO_FAN(nr)		(1 << (nr))
nr                270 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                272 drivers/hwmon/lm87.c 	return sprintf(buf, "%u\n", IN_FROM_REG(data->in[nr],
nr                273 drivers/hwmon/lm87.c 		       data->in_scale[nr]));
nr                280 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                282 drivers/hwmon/lm87.c 	return sprintf(buf, "%u\n", IN_FROM_REG(data->in_min[nr],
nr                283 drivers/hwmon/lm87.c 		       data->in_scale[nr]));
nr                290 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                292 drivers/hwmon/lm87.c 	return sprintf(buf, "%u\n", IN_FROM_REG(data->in_max[nr],
nr                293 drivers/hwmon/lm87.c 		       data->in_scale[nr]));
nr                301 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                310 drivers/hwmon/lm87.c 	data->in_min[nr] = IN_TO_REG(val, data->in_scale[nr]);
nr                311 drivers/hwmon/lm87.c 	lm87_write_value(client, nr < 6 ? LM87_REG_IN_MIN(nr) :
nr                312 drivers/hwmon/lm87.c 			 LM87_REG_AIN_MIN(nr - 6), data->in_min[nr]);
nr                322 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                331 drivers/hwmon/lm87.c 	data->in_max[nr] = IN_TO_REG(val, data->in_scale[nr]);
nr                332 drivers/hwmon/lm87.c 	lm87_write_value(client, nr < 6 ? LM87_REG_IN_MAX(nr) :
nr                333 drivers/hwmon/lm87.c 			 LM87_REG_AIN_MAX(nr - 6), data->in_max[nr]);
nr                367 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                369 drivers/hwmon/lm87.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr]));
nr                376 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                379 drivers/hwmon/lm87.c 		       TEMP_FROM_REG(data->temp_low[nr]));
nr                386 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                389 drivers/hwmon/lm87.c 		       TEMP_FROM_REG(data->temp_high[nr]));
nr                398 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                407 drivers/hwmon/lm87.c 	data->temp_low[nr] = TEMP_TO_REG(val);
nr                408 drivers/hwmon/lm87.c 	lm87_write_value(client, LM87_REG_TEMP_LOW[nr], data->temp_low[nr]);
nr                419 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                428 drivers/hwmon/lm87.c 	data->temp_high[nr] = TEMP_TO_REG(val);
nr                429 drivers/hwmon/lm87.c 	lm87_write_value(client, LM87_REG_TEMP_HIGH[nr], data->temp_high[nr]);
nr                466 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                468 drivers/hwmon/lm87.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
nr                469 drivers/hwmon/lm87.c 		       FAN_DIV_FROM_REG(data->fan_div[nr])));
nr                476 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                478 drivers/hwmon/lm87.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr],
nr                479 drivers/hwmon/lm87.c 		       FAN_DIV_FROM_REG(data->fan_div[nr])));
nr                486 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                489 drivers/hwmon/lm87.c 		       FAN_DIV_FROM_REG(data->fan_div[nr]));
nr                498 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                507 drivers/hwmon/lm87.c 	data->fan_min[nr] = FAN_TO_REG(val,
nr                508 drivers/hwmon/lm87.c 			    FAN_DIV_FROM_REG(data->fan_div[nr]));
nr                509 drivers/hwmon/lm87.c 	lm87_write_value(client, LM87_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                526 drivers/hwmon/lm87.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                537 drivers/hwmon/lm87.c 	min = FAN_FROM_REG(data->fan_min[nr],
nr                538 drivers/hwmon/lm87.c 			   FAN_DIV_FROM_REG(data->fan_div[nr]));
nr                542 drivers/hwmon/lm87.c 		data->fan_div[nr] = 0;
nr                545 drivers/hwmon/lm87.c 		data->fan_div[nr] = 1;
nr                548 drivers/hwmon/lm87.c 		data->fan_div[nr] = 2;
nr                551 drivers/hwmon/lm87.c 		data->fan_div[nr] = 3;
nr                559 drivers/hwmon/lm87.c 	switch (nr) {
nr                569 drivers/hwmon/lm87.c 	data->fan_min[nr] = FAN_TO_REG(min, val);
nr                570 drivers/hwmon/lm87.c 	lm87_write_value(client, LM87_REG_FAN_MIN(nr),
nr                571 drivers/hwmon/lm87.c 			 data->fan_min[nr]);
nr                153 drivers/hwmon/lm92.c 	int nr = attr->index;
nr                162 drivers/hwmon/lm92.c 	data->temp[nr] = TEMP_TO_REG(val);
nr                163 drivers/hwmon/lm92.c 	i2c_smbus_write_word_swapped(client, regs[nr], data->temp[nr]);
nr                 52 drivers/hwmon/lm93.c #define LM93_REG_IN(nr)			(0x56 + (nr))
nr                 53 drivers/hwmon/lm93.c #define LM93_REG_IN_MIN(nr)		(0x90 + (nr) * 2)
nr                 54 drivers/hwmon/lm93.c #define LM93_REG_IN_MAX(nr)		(0x91 + (nr) * 2)
nr                 57 drivers/hwmon/lm93.c #define LM93_REG_TEMP(nr)		(0x50 + (nr))
nr                 58 drivers/hwmon/lm93.c #define LM93_REG_TEMP_MIN(nr)		(0x78 + (nr) * 2)
nr                 59 drivers/hwmon/lm93.c #define LM93_REG_TEMP_MAX(nr)		(0x79 + (nr) * 2)
nr                 62 drivers/hwmon/lm93.c #define LM93_REG_BOOST(nr)		(0x80 + (nr))
nr                 65 drivers/hwmon/lm93.c #define LM93_REG_PROCHOT_CUR(nr)	(0x67 + (nr) * 2)
nr                 66 drivers/hwmon/lm93.c #define LM93_REG_PROCHOT_AVG(nr)	(0x68 + (nr) * 2)
nr                 67 drivers/hwmon/lm93.c #define LM93_REG_PROCHOT_MAX(nr)	(0xb0 + (nr))
nr                 70 drivers/hwmon/lm93.c #define LM93_REG_FAN(nr)		(0x6e + (nr) * 2)
nr                 71 drivers/hwmon/lm93.c #define LM93_REG_FAN_MIN(nr)		(0xb4 + (nr) * 2)
nr                 74 drivers/hwmon/lm93.c #define LM93_REG_PWM_CTL(nr, reg)	(0xc8 + (reg) + (nr) * 4)
nr                 84 drivers/hwmon/lm93.c #define LM93_REG_VID(nr)		(0x6c + (nr))
nr                 87 drivers/hwmon/lm93.c #define LM93_REG_VCCP_LIMIT_OFF(nr)	(0xb2 + (nr))
nr                 92 drivers/hwmon/lm93.c #define LM93_REG_BOOST_HYST(nr)		(0xc0 + (nr)/2)
nr                 97 drivers/hwmon/lm93.c #define LM93_REG_PWM_MIN_HYST(nr)	(0xc3 + (nr)/2)
nr                104 drivers/hwmon/lm93.c #define LM93_REG_TEMP_BASE(nr)		(0xd0 + (nr))
nr                342 drivers/hwmon/lm93.c static unsigned LM93_IN_FROM_REG(int nr, u8 reg)
nr                344 drivers/hwmon/lm93.c 	const long uv_max = lm93_vin_val_max[nr] * 1000;
nr                345 drivers/hwmon/lm93.c 	const long uv_min = lm93_vin_val_min[nr] * 1000;
nr                348 drivers/hwmon/lm93.c 		(lm93_vin_reg_max[nr] - lm93_vin_reg_min[nr]);
nr                349 drivers/hwmon/lm93.c 	const long intercept = uv_min - slope * lm93_vin_reg_min[nr];
nr                358 drivers/hwmon/lm93.c static u8 LM93_IN_TO_REG(int nr, unsigned val)
nr                362 drivers/hwmon/lm93.c 				  lm93_vin_val_min[nr], lm93_vin_val_max[nr]);
nr                366 drivers/hwmon/lm93.c 	const long uv_max = lm93_vin_val_max[nr] * 1000;
nr                367 drivers/hwmon/lm93.c 	const long uv_min = lm93_vin_val_min[nr] * 1000;
nr                371 drivers/hwmon/lm93.c 		(lm93_vin_reg_max[nr] - lm93_vin_reg_min[nr]);
nr                372 drivers/hwmon/lm93.c 	const long intercept = uv_min - slope * lm93_vin_reg_min[nr];
nr                376 drivers/hwmon/lm93.c 			   lm93_vin_reg_min[nr], lm93_vin_reg_max[nr]);
nr                433 drivers/hwmon/lm93.c static int LM93_TEMP_OFFSET_MODE_FROM_REG(u8 sfc2, int nr)
nr                436 drivers/hwmon/lm93.c 	return sfc2 & (nr < 2 ? 0x10 : 0x20);
nr                468 drivers/hwmon/lm93.c static int LM93_TEMP_AUTO_OFFSET_FROM_REG(u8 reg, int nr, int mode)
nr                471 drivers/hwmon/lm93.c 	if (nr < 2)
nr                484 drivers/hwmon/lm93.c static u8 LM93_TEMP_AUTO_OFFSET_TO_REG(u8 old, int off, int nr, int mode)
nr                489 drivers/hwmon/lm93.c 	if (nr < 2)
nr                497 drivers/hwmon/lm93.c static int LM93_AUTO_BOOST_HYST_FROM_REGS(struct lm93_data *data, int nr,
nr                502 drivers/hwmon/lm93.c 	switch (nr) {
nr                518 drivers/hwmon/lm93.c 	return LM93_TEMP_FROM_REG(data->boost[nr]) -
nr                523 drivers/hwmon/lm93.c 		int nr, int mode)
nr                526 drivers/hwmon/lm93.c 			(LM93_TEMP_FROM_REG(data->boost[nr]) - hyst), mode);
nr                528 drivers/hwmon/lm93.c 	switch (nr) {
nr               1104 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1107 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_IN_FROM_REG(nr, data->block3[nr]));
nr               1130 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1132 drivers/hwmon/lm93.c 	int vccp = nr - 6;
nr               1135 drivers/hwmon/lm93.c 	if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) {
nr               1139 drivers/hwmon/lm93.c 		rc = LM93_IN_FROM_REG(nr, data->block7[nr].min);
nr               1147 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1150 drivers/hwmon/lm93.c 	int vccp = nr - 6;
nr               1160 drivers/hwmon/lm93.c 	if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) {
nr               1167 drivers/hwmon/lm93.c 		data->block7[nr].min = LM93_IN_TO_REG(nr, val);
nr               1168 drivers/hwmon/lm93.c 		lm93_write_byte(client, LM93_REG_IN_MIN(nr),
nr               1169 drivers/hwmon/lm93.c 				data->block7[nr].min);
nr               1195 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1197 drivers/hwmon/lm93.c 	int vccp = nr - 6;
nr               1200 drivers/hwmon/lm93.c 	if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) {
nr               1204 drivers/hwmon/lm93.c 		rc = LM93_IN_FROM_REG(nr, data->block7[nr].max);
nr               1212 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1215 drivers/hwmon/lm93.c 	int vccp = nr - 6;
nr               1225 drivers/hwmon/lm93.c 	if ((nr == 6 || nr == 7) && vccp_limit_type[vccp]) {
nr               1232 drivers/hwmon/lm93.c 		data->block7[nr].max = LM93_IN_TO_REG(nr, val);
nr               1233 drivers/hwmon/lm93.c 		lm93_write_byte(client, LM93_REG_IN_MAX(nr),
nr               1234 drivers/hwmon/lm93.c 				data->block7[nr].max);
nr               1260 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1262 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_TEMP_FROM_REG(data->block2[nr]));
nr               1272 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1274 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_TEMP_FROM_REG(data->temp_lim[nr].min));
nr               1281 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1292 drivers/hwmon/lm93.c 	data->temp_lim[nr].min = LM93_TEMP_TO_REG(val);
nr               1293 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_TEMP_MIN(nr), data->temp_lim[nr].min);
nr               1305 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1307 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_TEMP_FROM_REG(data->temp_lim[nr].max));
nr               1314 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1325 drivers/hwmon/lm93.c 	data->temp_lim[nr].max = LM93_TEMP_TO_REG(val);
nr               1326 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_TEMP_MAX(nr), data->temp_lim[nr].max);
nr               1338 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1340 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_TEMP_FROM_REG(data->block10.base[nr]));
nr               1347 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1358 drivers/hwmon/lm93.c 	data->block10.base[nr] = LM93_TEMP_TO_REG(val);
nr               1359 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_TEMP_BASE(nr), data->block10.base[nr]);
nr               1371 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1373 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_TEMP_FROM_REG(data->boost[nr]));
nr               1380 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1391 drivers/hwmon/lm93.c 	data->boost[nr] = LM93_TEMP_TO_REG(val);
nr               1392 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_BOOST(nr), data->boost[nr]);
nr               1405 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1407 drivers/hwmon/lm93.c 	int mode = LM93_TEMP_OFFSET_MODE_FROM_REG(data->sfc2, nr);
nr               1409 drivers/hwmon/lm93.c 		       LM93_AUTO_BOOST_HYST_FROM_REGS(data, nr, mode));
nr               1416 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1429 drivers/hwmon/lm93.c 	data->sfc2 |= ((nr < 2) ? 0x10 : 0x20);
nr               1431 drivers/hwmon/lm93.c 	data->boost_hyst[nr/2] = LM93_AUTO_BOOST_HYST_TO_REG(data, val, nr, 1);
nr               1432 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_BOOST_HYST(nr),
nr               1433 drivers/hwmon/lm93.c 			data->boost_hyst[nr/2]);
nr               1446 drivers/hwmon/lm93.c 	int nr = s_attr->index;
nr               1447 drivers/hwmon/lm93.c 	int ofs = s_attr->nr;
nr               1449 drivers/hwmon/lm93.c 	int mode = LM93_TEMP_OFFSET_MODE_FROM_REG(data->sfc2, nr);
nr               1452 drivers/hwmon/lm93.c 					      nr, mode));
nr               1460 drivers/hwmon/lm93.c 	int nr = s_attr->index;
nr               1461 drivers/hwmon/lm93.c 	int ofs = s_attr->nr;
nr               1474 drivers/hwmon/lm93.c 	data->sfc2 |= ((nr < 2) ? 0x10 : 0x20);
nr               1477 drivers/hwmon/lm93.c 			data->block10.offset[ofs], val, nr, 1);
nr               1525 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1528 drivers/hwmon/lm93.c 	reg = data->auto_pwm_min_hyst[nr/2] >> 4 & 0x0f;
nr               1529 drivers/hwmon/lm93.c 	ctl4 = data->block9[nr][LM93_PWM_CTL4];
nr               1538 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1550 drivers/hwmon/lm93.c 	reg = lm93_read_byte(client, LM93_REG_PWM_MIN_HYST(nr));
nr               1551 drivers/hwmon/lm93.c 	ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4));
nr               1556 drivers/hwmon/lm93.c 	data->auto_pwm_min_hyst[nr/2] = reg;
nr               1557 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_MIN_HYST(nr), reg);
nr               1570 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1572 drivers/hwmon/lm93.c 	int mode = LM93_TEMP_OFFSET_MODE_FROM_REG(data->sfc2, nr);
nr               1574 drivers/hwmon/lm93.c 					data->auto_pwm_min_hyst[nr / 2], mode));
nr               1581 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1595 drivers/hwmon/lm93.c 	data->sfc2 |= ((nr < 2) ? 0x10 : 0x20);
nr               1597 drivers/hwmon/lm93.c 	reg = data->auto_pwm_min_hyst[nr/2];
nr               1599 drivers/hwmon/lm93.c 	data->auto_pwm_min_hyst[nr/2] = reg;
nr               1600 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_MIN_HYST(nr), reg);
nr               1613 drivers/hwmon/lm93.c 	int nr = s_attr->index;
nr               1616 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_FAN_FROM_REG(data->block5[nr]));
nr               1627 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1630 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_FAN_FROM_REG(data->block8[nr]));
nr               1637 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1648 drivers/hwmon/lm93.c 	data->block8[nr] = LM93_FAN_TO_REG(val);
nr               1649 drivers/hwmon/lm93.c 	lm93_write_word(client, LM93_REG_FAN_MIN(nr), data->block8[nr]);
nr               1676 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1682 drivers/hwmon/lm93.c 	mapping = (data->sf_tach_to_pwm >> (nr * 2)) & 0x03;
nr               1685 drivers/hwmon/lm93.c 	if (mapping && ((data->sfc2 >> nr) & 0x01))
nr               1716 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1736 drivers/hwmon/lm93.c 		lm93_write_fan_smart_tach(client, data, nr, val);
nr               1750 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1755 drivers/hwmon/lm93.c 	ctl2 = data->block9[nr][LM93_PWM_CTL2];
nr               1756 drivers/hwmon/lm93.c 	ctl4 = data->block9[nr][LM93_PWM_CTL4];
nr               1758 drivers/hwmon/lm93.c 		rc = data->pwm_override[nr];
nr               1768 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1780 drivers/hwmon/lm93.c 	ctl2 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2));
nr               1781 drivers/hwmon/lm93.c 	ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4));
nr               1785 drivers/hwmon/lm93.c 	data->pwm_override[nr] = LM93_PWM_FROM_REG(ctl2 >> 4,
nr               1788 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2), ctl2);
nr               1799 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1804 drivers/hwmon/lm93.c 	ctl2 = data->block9[nr][LM93_PWM_CTL2];
nr               1816 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1828 drivers/hwmon/lm93.c 	ctl2 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2));
nr               1845 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL2), ctl2);
nr               1856 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1860 drivers/hwmon/lm93.c 	ctl4 = data->block9[nr][LM93_PWM_CTL4];
nr               1892 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1904 drivers/hwmon/lm93.c 	ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4));
nr               1906 drivers/hwmon/lm93.c 	data->block9[nr][LM93_PWM_CTL4] = ctl4;
nr               1909 drivers/hwmon/lm93.c 		lm93_disable_fan_smart_tach(client, data, nr);
nr               1910 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4), ctl4);
nr               1922 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1924 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", data->block9[nr][LM93_PWM_CTL1]);
nr               1931 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1942 drivers/hwmon/lm93.c 	data->block9[nr][LM93_PWM_CTL1] = clamp_val(val, 0, 255);
nr               1943 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL1),
nr               1944 drivers/hwmon/lm93.c 				data->block9[nr][LM93_PWM_CTL1]);
nr               1956 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1960 drivers/hwmon/lm93.c 	ctl3 = data->block9[nr][LM93_PWM_CTL3];
nr               1961 drivers/hwmon/lm93.c 	ctl4 = data->block9[nr][LM93_PWM_CTL4];
nr               1971 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               1983 drivers/hwmon/lm93.c 	ctl3 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL3));
nr               1984 drivers/hwmon/lm93.c 	ctl4 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL4));
nr               1988 drivers/hwmon/lm93.c 	data->block9[nr][LM93_PWM_CTL3] = ctl3;
nr               1989 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL3), ctl3);
nr               2001 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2004 drivers/hwmon/lm93.c 				data->block9[nr][LM93_PWM_CTL3]));
nr               2011 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2023 drivers/hwmon/lm93.c 	ctl3 = lm93_read_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL3));
nr               2025 drivers/hwmon/lm93.c 	data->block9[nr][LM93_PWM_CTL3] = ctl3;
nr               2026 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PWM_CTL(nr, LM93_PWM_CTL3), ctl3);
nr               2101 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2103 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", LM93_VID_FROM_REG(data->vid[nr]));
nr               2112 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2114 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", data->block4[nr].cur);
nr               2123 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2125 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", data->block4[nr].avg);
nr               2134 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2136 drivers/hwmon/lm93.c 	return sprintf(buf, "%d\n", data->prochot_max[nr]);
nr               2143 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2154 drivers/hwmon/lm93.c 	data->prochot_max[nr] = LM93_PROCHOT_TO_REG(val);
nr               2155 drivers/hwmon/lm93.c 	lm93_write_byte(client, LM93_REG_PROCHOT_MAX(nr),
nr               2156 drivers/hwmon/lm93.c 			data->prochot_max[nr]);
nr               2169 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2172 drivers/hwmon/lm93.c 		(data->prochot_override & prochot_override_mask[nr]) ? 1 : 0);
nr               2179 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2191 drivers/hwmon/lm93.c 		data->prochot_override |= prochot_override_mask[nr];
nr               2193 drivers/hwmon/lm93.c 		data->prochot_override &= (~prochot_override_mask[nr]);
nr               2206 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2209 drivers/hwmon/lm93.c 	if (nr == 1)
nr               2220 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2233 drivers/hwmon/lm93.c 	if (nr == 1)
nr               2313 drivers/hwmon/lm93.c 	int nr = (to_sensor_dev_attr(attr))->index;
nr               2316 drivers/hwmon/lm93.c 		       data->block1.host_status_1 & (1 << (nr + 4)) ? 1 : 0);
nr                108 drivers/hwmon/ltc4222.c 	ret = regmap_read(regmap, attr->nr, &fault);
nr                113 drivers/hwmon/ltc4222.c 		regmap_update_bits(regmap, attr->nr, attr->index, 0);
nr                180 drivers/hwmon/max16065.c 	int val = data->fault[attr2->nr];
nr                188 drivers/hwmon/max16065.c 					  MAX16065_FAULT(attr2->nr), val);
nr                236 drivers/hwmon/max16065.c 	data->limit[attr2->nr][attr2->index]
nr                239 drivers/hwmon/max16065.c 				  MAX16065_LIMIT(attr2->nr, attr2->index),
nr                253 drivers/hwmon/max16065.c 			data->limit[attr2->nr][attr2->index]);
nr                 25 drivers/hwmon/max1668.c #define MAX1668_REG_TEMP(nr)	(nr)
nr                 34 drivers/hwmon/max1668.c #define MAX1668_REG_LIMH_WR(nr)	(0x13 + 2 * (nr))
nr                 36 drivers/hwmon/max1668.c #define MAX1668_REG_LIML_WR(nr)	(0x14 + 2 * (nr))
nr                 38 drivers/hwmon/max1668.c #define MAX1668_REG_LIMH_RD(nr)	(0x08 + 2 * (nr))
nr                 40 drivers/hwmon/max1668.c #define MAX1668_REG_LIML_RD(nr)	(0x09 + 2 * (nr))
nr                 94 drivers/hwmon/max197.c 	bool is_min = attr->nr;
nr                122 drivers/hwmon/max197.c 	bool is_min = attr->nr;
nr                212 drivers/hwmon/max6642.c 	return sprintf(buf, "%d\n", temp_from_reg(data->temp_high[attr2->nr]));
nr                229 drivers/hwmon/max6642.c 	data->temp_high[attr2->nr] = clamp_val(temp_to_reg(val), 0, 255);
nr                231 drivers/hwmon/max6642.c 				  data->temp_high[attr2->nr]);
nr                263 drivers/hwmon/max6697.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                271 drivers/hwmon/max6697.c 	temp = data->temp[nr][index];
nr                296 drivers/hwmon/max6697.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                309 drivers/hwmon/max6697.c 	data->temp[nr][index] = temp;
nr                311 drivers/hwmon/max6697.c 					index == 2 ? MAX6697_REG_MAX[nr]
nr                312 drivers/hwmon/max6697.c 						   : MAX6697_REG_CRIT[nr],
nr                386 drivers/hwmon/max6697.c 	int nr = index % 6;		/* attribute index within channel */
nr                391 drivers/hwmon/max6697.c 	if ((nr == 3 || nr == 4) && !(chip->have_crit & (1 << channel)))
nr                393 drivers/hwmon/max6697.c 	if (nr == 5 && !(chip->have_fault & (1 << channel)))
nr                342 drivers/hwmon/nct6683.c 			u8 nr;
nr                373 drivers/hwmon/nct6683.c 	  .u.s.nr = _nr,						\
nr                442 drivers/hwmon/nct6683.c 				a2->nr = (*t)->u.s.nr + i;
nr                520 drivers/hwmon/nct6683.c static int get_in_reg(struct nct6683_data *data, int nr, int index)
nr                525 drivers/hwmon/nct6683.c 	switch (nr) {
nr                543 drivers/hwmon/nct6683.c static int get_temp_reg(struct nct6683_data *data, int nr, int index)
nr                550 drivers/hwmon/nct6683.c 		switch (nr) {
nr                562 drivers/hwmon/nct6683.c 		switch (nr) {
nr                657 drivers/hwmon/nct6683.c 	int nr = sattr->index;
nr                659 drivers/hwmon/nct6683.c 	return sprintf(buf, "%s\n", nct6683_mon_label[data->in_src[nr]]);
nr                668 drivers/hwmon/nct6683.c 	int nr = sattr->nr;
nr                671 drivers/hwmon/nct6683.c 		       in_from_reg(data->in[index][nr], data->in_index[index]));
nr                679 drivers/hwmon/nct6683.c 	int nr = index % 4;	/* attribute */
nr                685 drivers/hwmon/nct6683.c 	if ((nr == 2 || nr == 3) &&
nr                724 drivers/hwmon/nct6683.c 	int nr = sattr->index;
nr                726 drivers/hwmon/nct6683.c 	return sprintf(buf, "%d\n", data->fan_min[nr]);
nr                745 drivers/hwmon/nct6683.c 	int nr = index % 3;	/* attribute index */
nr                754 drivers/hwmon/nct6683.c 	if (nr == 2 && data->customer_id == NCT6683_CUSTOMER_ID_INTEL)
nr                787 drivers/hwmon/nct6683.c 	int nr = sattr->index;
nr                789 drivers/hwmon/nct6683.c 	return sprintf(buf, "%s\n", nct6683_mon_label[data->temp_src[nr]]);
nr                798 drivers/hwmon/nct6683.c 	int nr = sattr->nr;
nr                800 drivers/hwmon/nct6683.c 	return sprintf(buf, "%d\n", data->temp[index][nr] * 1000);
nr                808 drivers/hwmon/nct6683.c 	int nr = sattr->index;
nr                809 drivers/hwmon/nct6683.c 	int temp = data->temp[1][nr] - data->temp[2][nr];
nr                853 drivers/hwmon/nct6683.c 	int nr = sattr->index;
nr                854 drivers/hwmon/nct6683.c 	return sprintf(buf, "%d\n", get_temp_type(data->temp_src[nr]));
nr                863 drivers/hwmon/nct6683.c 	int nr = index % 7;	/* attribute index */
nr                869 drivers/hwmon/nct6683.c 	if ((nr == 2 || nr == 4) &&
nr                873 drivers/hwmon/nct6683.c 	if (nr == 6 && get_temp_type(data->temp_src[temp]) == 0)
nr                340 drivers/hwmon/nct6775.c #define NCT6775_AUTO_TEMP(data, nr, p)	((data)->REG_AUTO_TEMP[nr] + (p))
nr                341 drivers/hwmon/nct6775.c #define NCT6775_AUTO_PWM(data, nr, p)	((data)->REG_AUTO_PWM[nr] + (p))
nr               1055 drivers/hwmon/nct6775.c static inline long in_from_reg(u8 reg, u8 nr)
nr               1057 drivers/hwmon/nct6775.c 	return DIV_ROUND_CLOSEST(reg * scale_in[nr], 100);
nr               1060 drivers/hwmon/nct6775.c static inline u8 in_to_reg(u32 val, u8 nr)
nr               1062 drivers/hwmon/nct6775.c 	return clamp_val(DIV_ROUND_CLOSEST(val * 100, scale_in[nr]), 0, 255);
nr               1229 drivers/hwmon/nct6775.c 			u8 nr;
nr               1260 drivers/hwmon/nct6775.c 	  .u.s.nr = _nr,						\
nr               1329 drivers/hwmon/nct6775.c 				a2->nr = (*t)->u.s.nr + i;
nr               1477 drivers/hwmon/nct6775.c static void nct6775_write_fan_div(struct nct6775_data *data, int nr)
nr               1481 drivers/hwmon/nct6775.c 	switch (nr) {
nr               1505 drivers/hwmon/nct6775.c static void nct6775_write_fan_div_common(struct nct6775_data *data, int nr)
nr               1508 drivers/hwmon/nct6775.c 		nct6775_write_fan_div(data, nr);
nr               1576 drivers/hwmon/nct6775.c 				   struct nct6775_data *data, int nr, u16 reg)
nr               1578 drivers/hwmon/nct6775.c 	u8 fan_div = data->fan_div[nr];
nr               1594 drivers/hwmon/nct6775.c 	if (fan_div != data->fan_div[nr]) {
nr               1596 drivers/hwmon/nct6775.c 			nr + 1, div_from_reg(data->fan_div[nr]),
nr               1600 drivers/hwmon/nct6775.c 		if (data->has_fan_min & BIT(nr)) {
nr               1601 drivers/hwmon/nct6775.c 			fan_min = data->fan_min[nr];
nr               1602 drivers/hwmon/nct6775.c 			if (fan_div > data->fan_div[nr]) {
nr               1612 drivers/hwmon/nct6775.c 			if (fan_min != data->fan_min[nr]) {
nr               1613 drivers/hwmon/nct6775.c 				data->fan_min[nr] = fan_min;
nr               1614 drivers/hwmon/nct6775.c 				nct6775_write_value(data, data->REG_FAN_MIN[nr],
nr               1618 drivers/hwmon/nct6775.c 		data->fan_div[nr] = fan_div;
nr               1619 drivers/hwmon/nct6775.c 		nct6775_write_fan_div_common(data, nr);
nr               1876 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               1878 drivers/hwmon/nct6775.c 	return sprintf(buf, "%ld\n", in_from_reg(data->in[nr][index], nr));
nr               1888 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               1896 drivers/hwmon/nct6775.c 	data->in[nr][index] = in_to_reg(val, nr);
nr               1897 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_IN_MINMAX[index - 1][nr],
nr               1898 drivers/hwmon/nct6775.c 			    data->in[nr][index]);
nr               1908 drivers/hwmon/nct6775.c 	int nr = data->ALARM_BITS[sattr->index];
nr               1911 drivers/hwmon/nct6775.c 		       (unsigned int)((data->alarms >> nr) & 0x01));
nr               1917 drivers/hwmon/nct6775.c 	int nr;
nr               1919 drivers/hwmon/nct6775.c 	for (nr = 0; nr < count; nr++) {
nr               1923 drivers/hwmon/nct6775.c 					 data->REG_TEMP_SOURCE[nr]) & 0x1f;
nr               1925 drivers/hwmon/nct6775.c 			return nr;
nr               1936 drivers/hwmon/nct6775.c 	int nr;
nr               1942 drivers/hwmon/nct6775.c 	nr = find_temp_source(data, sattr->index, data->num_temp_alarms);
nr               1943 drivers/hwmon/nct6775.c 	if (nr >= 0) {
nr               1944 drivers/hwmon/nct6775.c 		int bit = data->ALARM_BITS[nr + TEMP_ALARM_BASE];
nr               1956 drivers/hwmon/nct6775.c 	int nr = data->BEEP_BITS[sattr->index];
nr               1959 drivers/hwmon/nct6775.c 		       (unsigned int)((data->beeps >> nr) & 0x01));
nr               1968 drivers/hwmon/nct6775.c 	int nr = data->BEEP_BITS[sattr->index];
nr               1969 drivers/hwmon/nct6775.c 	int regindex = nr >> 3;
nr               1981 drivers/hwmon/nct6775.c 		data->beeps |= (1ULL << nr);
nr               1983 drivers/hwmon/nct6775.c 		data->beeps &= ~(1ULL << nr);
nr               1996 drivers/hwmon/nct6775.c 	int nr;
nr               2003 drivers/hwmon/nct6775.c 	nr = find_temp_source(data, sattr->index, data->num_temp_beeps);
nr               2004 drivers/hwmon/nct6775.c 	if (nr >= 0) {
nr               2005 drivers/hwmon/nct6775.c 		int bit = data->BEEP_BITS[nr + TEMP_ALARM_BASE];
nr               2018 drivers/hwmon/nct6775.c 	int nr, bit, regindex;
nr               2028 drivers/hwmon/nct6775.c 	nr = find_temp_source(data, sattr->index, data->num_temp_beeps);
nr               2029 drivers/hwmon/nct6775.c 	if (nr < 0)
nr               2030 drivers/hwmon/nct6775.c 		return nr;
nr               2032 drivers/hwmon/nct6775.c 	bit = data->BEEP_BITS[nr + TEMP_ALARM_BASE];
nr               2093 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2095 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", data->rpm[nr]);
nr               2103 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2106 drivers/hwmon/nct6775.c 		       data->fan_from_reg_min(data->fan_min[nr],
nr               2107 drivers/hwmon/nct6775.c 					      data->fan_div[nr]));
nr               2115 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2117 drivers/hwmon/nct6775.c 	return sprintf(buf, "%u\n", div_from_reg(data->fan_div[nr]));
nr               2126 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2147 drivers/hwmon/nct6775.c 		data->fan_min[nr] = val;
nr               2152 drivers/hwmon/nct6775.c 		data->fan_min[nr] = 255;
nr               2153 drivers/hwmon/nct6775.c 		new_div = data->fan_div[nr]; /* No change */
nr               2154 drivers/hwmon/nct6775.c 		dev_info(dev, "fan%u low limit and alarm disabled\n", nr + 1);
nr               2163 drivers/hwmon/nct6775.c 		data->fan_min[nr] = 254;
nr               2167 drivers/hwmon/nct6775.c 			 nr + 1, val, data->fan_from_reg_min(254, 7));
nr               2173 drivers/hwmon/nct6775.c 		data->fan_min[nr] = 1;
nr               2177 drivers/hwmon/nct6775.c 			 nr + 1, val, data->fan_from_reg_min(1, 0));
nr               2189 drivers/hwmon/nct6775.c 		data->fan_min[nr] = reg;
nr               2197 drivers/hwmon/nct6775.c 	if (new_div != data->fan_div[nr]) {
nr               2199 drivers/hwmon/nct6775.c 			nr + 1, div_from_reg(data->fan_div[nr]),
nr               2201 drivers/hwmon/nct6775.c 		data->fan_div[nr] = new_div;
nr               2202 drivers/hwmon/nct6775.c 		nct6775_write_fan_div_common(data, nr);
nr               2208 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_FAN_MIN[nr], data->fan_min[nr]);
nr               2230 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2243 drivers/hwmon/nct6775.c 	data->fan_pulses[nr] = val & 3;
nr               2244 drivers/hwmon/nct6775.c 	reg = nct6775_read_value(data, data->REG_FAN_PULSES[nr]);
nr               2245 drivers/hwmon/nct6775.c 	reg &= ~(0x03 << data->FAN_PULSE_SHIFT[nr]);
nr               2246 drivers/hwmon/nct6775.c 	reg |= (val & 3) << data->FAN_PULSE_SHIFT[nr];
nr               2247 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_FAN_PULSES[nr], reg);
nr               2259 drivers/hwmon/nct6775.c 	int nr = index % 6;	/* attribute index */
nr               2264 drivers/hwmon/nct6775.c 	if (nr == 1 && data->ALARM_BITS[FAN_ALARM_BASE + fan] == -1)
nr               2266 drivers/hwmon/nct6775.c 	if (nr == 2 && data->BEEP_BITS[FAN_ALARM_BASE + fan] == -1)
nr               2268 drivers/hwmon/nct6775.c 	if (nr == 3 && !data->REG_FAN_PULSES[fan])
nr               2270 drivers/hwmon/nct6775.c 	if (nr == 4 && !(data->has_fan_min & BIT(fan)))
nr               2272 drivers/hwmon/nct6775.c 	if (nr == 5 && data->kind != nct6775)
nr               2315 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2317 drivers/hwmon/nct6775.c 	return sprintf(buf, "%s\n", data->temp_label[data->temp_src[nr]]);
nr               2325 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               2328 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", LM75_TEMP_FROM_REG(data->temp[index][nr]));
nr               2337 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               2347 drivers/hwmon/nct6775.c 	data->temp[index][nr] = LM75_TEMP_TO_REG(val);
nr               2348 drivers/hwmon/nct6775.c 	nct6775_write_temp(data, data->reg_temp[index][nr],
nr               2349 drivers/hwmon/nct6775.c 			   data->temp[index][nr]);
nr               2369 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2380 drivers/hwmon/nct6775.c 	data->temp_offset[nr] = val;
nr               2381 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_TEMP_OFFSET[nr], val);
nr               2392 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2394 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", (int)data->temp_type[nr]);
nr               2403 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2417 drivers/hwmon/nct6775.c 	data->temp_type[nr] = val;
nr               2418 drivers/hwmon/nct6775.c 	vbit = 0x02 << nr;
nr               2419 drivers/hwmon/nct6775.c 	dbit = data->DIODE_MASK << nr;
nr               2446 drivers/hwmon/nct6775.c 	int nr = index % 10;	/* attribute index */
nr               2451 drivers/hwmon/nct6775.c 	if (nr == 1 && !data->temp_label)
nr               2454 drivers/hwmon/nct6775.c 	if (nr == 2 && find_temp_source(data, temp, data->num_temp_alarms) < 0)
nr               2457 drivers/hwmon/nct6775.c 	if (nr == 3 && find_temp_source(data, temp, data->num_temp_beeps) < 0)
nr               2460 drivers/hwmon/nct6775.c 	if (nr == 4 && !data->reg_temp[1][temp])	/* max */
nr               2463 drivers/hwmon/nct6775.c 	if (nr == 5 && !data->reg_temp[2][temp])	/* max_hyst */
nr               2466 drivers/hwmon/nct6775.c 	if (nr == 6 && !data->reg_temp[3][temp])	/* crit */
nr               2469 drivers/hwmon/nct6775.c 	if (nr == 7 && !data->reg_temp[4][temp])	/* lcrit */
nr               2473 drivers/hwmon/nct6775.c 	if (nr > 7 && !(data->have_temp_fixed & BIT(temp)))
nr               2537 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2550 drivers/hwmon/nct6775.c 	if (data->REG_PWM_MODE[nr] == 0) {
nr               2557 drivers/hwmon/nct6775.c 	data->pwm_mode[nr] = val;
nr               2558 drivers/hwmon/nct6775.c 	reg = nct6775_read_value(data, data->REG_PWM_MODE[nr]);
nr               2559 drivers/hwmon/nct6775.c 	reg &= ~data->PWM_MODE_MASK[nr];
nr               2561 drivers/hwmon/nct6775.c 		reg |= data->PWM_MODE_MASK[nr];
nr               2562 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_PWM_MODE[nr], reg);
nr               2572 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               2580 drivers/hwmon/nct6775.c 	if (index == 0 && data->pwm_enable[nr] > manual)
nr               2581 drivers/hwmon/nct6775.c 		pwm = nct6775_read_value(data, data->REG_PWM_READ[nr]);
nr               2583 drivers/hwmon/nct6775.c 		pwm = data->pwm[index][nr];
nr               2594 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               2597 drivers/hwmon/nct6775.c 	int minval[7] = { 0, 1, 1, data->pwm[2][nr], 0, 0, 0 };
nr               2599 drivers/hwmon/nct6775.c 	  = { 255, 255, data->pwm[3][nr] ? : 255, 255, 255, 255, 255 };
nr               2609 drivers/hwmon/nct6775.c 	data->pwm[index][nr] = val;
nr               2610 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_PWM[index][nr], val);
nr               2612 drivers/hwmon/nct6775.c 		reg = nct6775_read_value(data, data->REG_TEMP_SEL[nr]);
nr               2616 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_TEMP_SEL[nr], reg);
nr               2623 drivers/hwmon/nct6775.c static int check_trip_points(struct nct6775_data *data, int nr)
nr               2628 drivers/hwmon/nct6775.c 		if (data->auto_temp[nr][i] > data->auto_temp[nr][i + 1])
nr               2632 drivers/hwmon/nct6775.c 		if (data->auto_pwm[nr][i] > data->auto_pwm[nr][i + 1])
nr               2636 drivers/hwmon/nct6775.c 	if (data->auto_pwm[nr][data->auto_pwm_num]) {
nr               2637 drivers/hwmon/nct6775.c 		if (data->auto_temp[nr][data->auto_pwm_num - 1] >
nr               2638 drivers/hwmon/nct6775.c 				data->auto_temp[nr][data->auto_pwm_num] ||
nr               2639 drivers/hwmon/nct6775.c 		    data->auto_pwm[nr][data->auto_pwm_num - 1] >
nr               2640 drivers/hwmon/nct6775.c 				data->auto_pwm[nr][data->auto_pwm_num])
nr               2646 drivers/hwmon/nct6775.c static void pwm_update_registers(struct nct6775_data *data, int nr)
nr               2650 drivers/hwmon/nct6775.c 	switch (data->pwm_enable[nr]) {
nr               2655 drivers/hwmon/nct6775.c 		reg = nct6775_read_value(data, data->REG_FAN_MODE[nr]);
nr               2657 drivers/hwmon/nct6775.c 		  (data->target_speed_tolerance[nr] & data->tolerance_mask);
nr               2658 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_FAN_MODE[nr], reg);
nr               2659 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_TARGET[nr],
nr               2660 drivers/hwmon/nct6775.c 				    data->target_speed[nr] & 0xff);
nr               2662 drivers/hwmon/nct6775.c 			reg = (data->target_speed[nr] >> 8) & 0x0f;
nr               2663 drivers/hwmon/nct6775.c 			reg |= (data->target_speed_tolerance[nr] & 0x38) << 1;
nr               2665 drivers/hwmon/nct6775.c 					    data->REG_TOLERANCE_H[nr],
nr               2670 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_TARGET[nr],
nr               2671 drivers/hwmon/nct6775.c 				    data->target_temp[nr]);
nr               2674 drivers/hwmon/nct6775.c 		reg = nct6775_read_value(data, data->REG_FAN_MODE[nr]);
nr               2676 drivers/hwmon/nct6775.c 		  data->temp_tolerance[0][nr];
nr               2677 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_FAN_MODE[nr], reg);
nr               2697 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2712 drivers/hwmon/nct6775.c 	if (val == sf4 && check_trip_points(data, nr)) {
nr               2719 drivers/hwmon/nct6775.c 	data->pwm_enable[nr] = val;
nr               2724 drivers/hwmon/nct6775.c 		data->pwm[0][nr] = 255;
nr               2725 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_PWM[0][nr], 255);
nr               2727 drivers/hwmon/nct6775.c 	pwm_update_registers(data, nr);
nr               2728 drivers/hwmon/nct6775.c 	reg = nct6775_read_value(data, data->REG_FAN_MODE[nr]);
nr               2731 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_FAN_MODE[nr], reg);
nr               2769 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2783 drivers/hwmon/nct6775.c 	data->pwm_temp_sel[nr] = src;
nr               2784 drivers/hwmon/nct6775.c 	reg = nct6775_read_value(data, data->REG_TEMP_SEL[nr]);
nr               2787 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_TEMP_SEL[nr], reg);
nr               2811 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2828 drivers/hwmon/nct6775.c 		data->pwm_weight_temp_sel[nr] = src;
nr               2829 drivers/hwmon/nct6775.c 		reg = nct6775_read_value(data, data->REG_WEIGHT_TEMP_SEL[nr]);
nr               2832 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_WEIGHT_TEMP_SEL[nr], reg);
nr               2834 drivers/hwmon/nct6775.c 		data->pwm_weight_temp_sel[nr] = 0;
nr               2835 drivers/hwmon/nct6775.c 		reg = nct6775_read_value(data, data->REG_WEIGHT_TEMP_SEL[nr]);
nr               2837 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_WEIGHT_TEMP_SEL[nr], reg);
nr               2859 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2871 drivers/hwmon/nct6775.c 	data->target_temp[nr] = val;
nr               2872 drivers/hwmon/nct6775.c 	pwm_update_registers(data, nr);
nr               2882 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2885 drivers/hwmon/nct6775.c 		       fan_from_reg16(data->target_speed[nr],
nr               2886 drivers/hwmon/nct6775.c 				      data->fan_div[nr]));
nr               2895 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2905 drivers/hwmon/nct6775.c 	speed = fan_to_reg(val, data->fan_div[nr]);
nr               2908 drivers/hwmon/nct6775.c 	data->target_speed[nr] = speed;
nr               2909 drivers/hwmon/nct6775.c 	pwm_update_registers(data, nr);
nr               2920 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               2923 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", data->temp_tolerance[index][nr] * 1000);
nr               2932 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               2945 drivers/hwmon/nct6775.c 	data->temp_tolerance[index][nr] = val;
nr               2947 drivers/hwmon/nct6775.c 		pwm_update_registers(data, nr);
nr               2950 drivers/hwmon/nct6775.c 				    data->REG_CRITICAL_TEMP_TOLERANCE[nr],
nr               2969 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               2970 drivers/hwmon/nct6775.c 	int target = data->target_speed[nr];
nr               2974 drivers/hwmon/nct6775.c 		int low = target - data->target_speed_tolerance[nr];
nr               2975 drivers/hwmon/nct6775.c 		int high = target + data->target_speed_tolerance[nr];
nr               2984 drivers/hwmon/nct6775.c 		tolerance = (fan_from_reg16(low, data->fan_div[nr])
nr               2985 drivers/hwmon/nct6775.c 			     - fan_from_reg16(high, data->fan_div[nr])) / 2;
nr               2997 drivers/hwmon/nct6775.c 	int nr = sattr->index;
nr               3006 drivers/hwmon/nct6775.c 	high = fan_from_reg16(data->target_speed[nr],
nr               3007 drivers/hwmon/nct6775.c 			      data->fan_div[nr]) + val;
nr               3008 drivers/hwmon/nct6775.c 	low = fan_from_reg16(data->target_speed[nr],
nr               3009 drivers/hwmon/nct6775.c 			     data->fan_div[nr]) - val;
nr               3015 drivers/hwmon/nct6775.c 	val = (fan_to_reg(low, data->fan_div[nr]) -
nr               3016 drivers/hwmon/nct6775.c 	       fan_to_reg(high, data->fan_div[nr])) / 2;
nr               3022 drivers/hwmon/nct6775.c 	data->target_speed_tolerance[nr] = val;
nr               3023 drivers/hwmon/nct6775.c 	pwm_update_registers(data, nr);
nr               3049 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               3052 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", data->weight_temp[index][nr] * 1000);
nr               3061 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               3073 drivers/hwmon/nct6775.c 	data->weight_temp[index][nr] = val;
nr               3074 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_WEIGHT_TEMP[index][nr], val);
nr               3097 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               3101 drivers/hwmon/nct6775.c 		       step_time_from_reg(data->fan_time[index][nr],
nr               3102 drivers/hwmon/nct6775.c 					  data->pwm_mode[nr]));
nr               3111 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               3120 drivers/hwmon/nct6775.c 	val = step_time_to_reg(val, data->pwm_mode[nr]);
nr               3122 drivers/hwmon/nct6775.c 	data->fan_time[index][nr] = val;
nr               3123 drivers/hwmon/nct6775.c 	nct6775_write_value(data, data->REG_FAN_TIME[index][nr], val);
nr               3134 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", data->auto_pwm[sattr->nr][sattr->index]);
nr               3143 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               3163 drivers/hwmon/nct6775.c 	data->auto_pwm[nr][point] = val;
nr               3166 drivers/hwmon/nct6775.c 				    NCT6775_AUTO_PWM(data, nr, point),
nr               3167 drivers/hwmon/nct6775.c 				    data->auto_pwm[nr][point]);
nr               3173 drivers/hwmon/nct6775.c 						 NCT6775_REG_CRITICAL_ENAB[nr]);
nr               3178 drivers/hwmon/nct6775.c 			nct6775_write_value(data, NCT6775_REG_CRITICAL_ENAB[nr],
nr               3193 drivers/hwmon/nct6775.c 			nct6775_write_value(data, data->REG_CRITICAL_PWM[nr],
nr               3196 drivers/hwmon/nct6775.c 					data->REG_CRITICAL_PWM_ENABLE[nr]);
nr               3202 drivers/hwmon/nct6775.c 					    data->REG_CRITICAL_PWM_ENABLE[nr],
nr               3216 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               3223 drivers/hwmon/nct6775.c 	return sprintf(buf, "%d\n", data->auto_temp[nr][point] * 1000);
nr               3232 drivers/hwmon/nct6775.c 	int nr = sattr->nr;
nr               3244 drivers/hwmon/nct6775.c 	data->auto_temp[nr][point] = DIV_ROUND_CLOSEST(val, 1000);
nr               3247 drivers/hwmon/nct6775.c 				    NCT6775_AUTO_TEMP(data, nr, point),
nr               3248 drivers/hwmon/nct6775.c 				    data->auto_temp[nr][point]);
nr               3250 drivers/hwmon/nct6775.c 		nct6775_write_value(data, data->REG_CRITICAL_TEMP[nr],
nr               3251 drivers/hwmon/nct6775.c 				    data->auto_temp[nr][point]);
nr               3263 drivers/hwmon/nct6775.c 	int nr = index % 36;	/* attribute index */
nr               3268 drivers/hwmon/nct6775.c 	if ((nr >= 14 && nr <= 18) || nr == 21)   /* weight */
nr               3271 drivers/hwmon/nct6775.c 	if (nr == 19 && data->REG_PWM[3] == NULL) /* pwm_max */
nr               3273 drivers/hwmon/nct6775.c 	if (nr == 20 && data->REG_PWM[4] == NULL) /* pwm_step */
nr               3275 drivers/hwmon/nct6775.c 	if (nr == 21 && data->REG_PWM[6] == NULL) /* weight_duty_base */
nr               3278 drivers/hwmon/nct6775.c 	if (nr >= 22 && nr <= 35) {		/* auto point */
nr               3279 drivers/hwmon/nct6775.c 		int api = (nr - 22) / 2;	/* auto point index */
nr               3413 drivers/hwmon/nct6775.c 	int nr = to_sensor_dev_attr(attr)->index - INTRUSION_ALARM_BASE;
nr               3435 drivers/hwmon/nct6775.c 	reg = superio_inb(data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr]);
nr               3436 drivers/hwmon/nct6775.c 	reg |= NCT6775_CR_CASEOPEN_CLR_MASK[nr];
nr               3437 drivers/hwmon/nct6775.c 	superio_outb(data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr], reg);
nr               3438 drivers/hwmon/nct6775.c 	reg &= ~NCT6775_CR_CASEOPEN_CLR_MASK[nr];
nr               3439 drivers/hwmon/nct6775.c 	superio_outb(data->sioreg, NCT6775_REG_CR_CASEOPEN_CLR[nr], reg);
nr                286 drivers/hwmon/nct7802.c static int nct7802_read_voltage(struct nct7802_data *data, int nr, int index)
nr                293 drivers/hwmon/nct7802.c 		ret = regmap_read(data->regmap, REG_VOLTAGE[nr], &v1);
nr                299 drivers/hwmon/nct7802.c 		ret = ((v1 << 2) | (v2 >> 6)) * nct7802_vmul[nr];
nr                301 drivers/hwmon/nct7802.c 		int shift = 8 - REG_VOLTAGE_LIMIT_MSB_SHIFT[index - 1][nr];
nr                304 drivers/hwmon/nct7802.c 				  REG_VOLTAGE_LIMIT_LSB[index - 1][nr], &v1);
nr                307 drivers/hwmon/nct7802.c 		ret = regmap_read(data->regmap, REG_VOLTAGE_LIMIT_MSB[nr],
nr                311 drivers/hwmon/nct7802.c 		ret = (v1 | ((v2 << shift) & 0x300)) * nct7802_vmul[nr];
nr                318 drivers/hwmon/nct7802.c static int nct7802_write_voltage(struct nct7802_data *data, int nr, int index,
nr                321 drivers/hwmon/nct7802.c 	int shift = 8 - REG_VOLTAGE_LIMIT_MSB_SHIFT[index - 1][nr];
nr                324 drivers/hwmon/nct7802.c 	voltage = clamp_val(voltage, 0, 0x3ff * nct7802_vmul[nr]);
nr                325 drivers/hwmon/nct7802.c 	voltage = DIV_ROUND_CLOSEST(voltage, nct7802_vmul[nr]);
nr                329 drivers/hwmon/nct7802.c 			   REG_VOLTAGE_LIMIT_LSB[index - 1][nr],
nr                334 drivers/hwmon/nct7802.c 	err = regmap_update_bits(data->regmap, REG_VOLTAGE_LIMIT_MSB[nr],
nr                348 drivers/hwmon/nct7802.c 	voltage = nct7802_read_voltage(data, sattr->nr, sattr->index);
nr                361 drivers/hwmon/nct7802.c 	int nr = sattr->nr;
nr                369 drivers/hwmon/nct7802.c 	err = nct7802_write_voltage(data, nr, index, val);
nr                404 drivers/hwmon/nct7802.c 		ret = nct7802_read_voltage(data, sattr->nr, 0);
nr                409 drivers/hwmon/nct7802.c 		ret = nct7802_read_voltage(data, sattr->nr, 1);
nr                414 drivers/hwmon/nct7802.c 		ret = nct7802_read_voltage(data, sattr->nr, 2);
nr                440 drivers/hwmon/nct7802.c 	err = nct7802_read_temp(data, sattr->nr, sattr->index, &temp);
nr                452 drivers/hwmon/nct7802.c 	int nr = sattr->nr;
nr                462 drivers/hwmon/nct7802.c 	err = regmap_write(data->regmap, nr, val & 0xff);
nr                487 drivers/hwmon/nct7802.c 	speed = nct7802_read_fan_min(data, sattr->nr, sattr->index);
nr                507 drivers/hwmon/nct7802.c 	err = nct7802_write_fan_min(data, sattr->nr, sattr->index, val);
nr                520 drivers/hwmon/nct7802.c 	ret = regmap_read(data->regmap, sattr->nr, &val);
nr                535 drivers/hwmon/nct7802.c 	err = regmap_read(data->regmap, sattr->nr, &regval);
nr                557 drivers/hwmon/nct7802.c 	err = regmap_update_bits(data->regmap, sattr->nr, 1 << sattr->index,
nr                239 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                275 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                326 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                356 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                386 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                433 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                472 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                552 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                602 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                671 drivers/hwmon/occ/common.c 	switch (sattr->nr) {
nr                713 drivers/hwmon/occ/common.c 	.nr		= _nr,						\
nr                871 drivers/hwmon/occ/common.c 			unsigned int nr = 0;
nr                880 drivers/hwmon/occ/common.c 							     nr++, i);
nr                887 drivers/hwmon/occ/common.c 							     nr++, i);
nr                894 drivers/hwmon/occ/common.c 							     nr++, i);
nr                901 drivers/hwmon/occ/common.c 							     nr++, i);
nr                106 drivers/hwmon/pc87360.c #define PC87360_REG_PRESCALE(nr)	(0x00 + 2 * (nr))
nr                107 drivers/hwmon/pc87360.c #define PC87360_REG_PWM(nr)		(0x01 + 2 * (nr))
nr                108 drivers/hwmon/pc87360.c #define PC87360_REG_FAN_MIN(nr)		(0x06 + 3 * (nr))
nr                109 drivers/hwmon/pc87360.c #define PC87360_REG_FAN(nr)		(0x07 + 3 * (nr))
nr                110 drivers/hwmon/pc87360.c #define PC87360_REG_FAN_STATUS(nr)	(0x08 + 3 * (nr))
nr                119 drivers/hwmon/pc87360.c #define FAN_CONFIG_MONITOR(val, nr)	(((val) >> (2 + (nr) * 3)) & 1)
nr                120 drivers/hwmon/pc87360.c #define FAN_CONFIG_CONTROL(val, nr)	(((val) >> (3 + (nr) * 3)) & 1)
nr                121 drivers/hwmon/pc87360.c #define FAN_CONFIG_INVERT(val, nr)	(((val) >> (4 + (nr) * 3)) & 1)
nr                533 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr                535 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MIN));
nr                541 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr                543 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MAX));
nr                785 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr                787 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MIN));
nr                794 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr                796 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->in_status[nr] & CHAN_ALM_MAX));
nr                803 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr                805 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->in_status[nr] & TEMP_ALM_CRIT));
nr                994 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr                996 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->temp_status[nr] & CHAN_ALM_MIN));
nr               1004 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr               1006 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->temp_status[nr] & CHAN_ALM_MAX));
nr               1014 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr               1016 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->temp_status[nr] & TEMP_ALM_CRIT));
nr               1042 drivers/hwmon/pc87360.c 	unsigned nr = to_sensor_dev_attr(devattr)->index;
nr               1044 drivers/hwmon/pc87360.c 	return sprintf(buf, "%u\n", !!(data->temp_status[nr] & TEMP_FAULT));
nr               1399 drivers/hwmon/pc87360.c 	int i, nr;
nr               1414 drivers/hwmon/pc87360.c 	nr = data->innr < 11 ? data->innr : 11;
nr               1415 drivers/hwmon/pc87360.c 	for (i = 0; i < nr; i++) {
nr               1535 drivers/hwmon/pc87360.c static void pc87360_autodiv(struct device *dev, int nr)
nr               1538 drivers/hwmon/pc87360.c 	u8 old_min = data->fan_min[nr];
nr               1541 drivers/hwmon/pc87360.c 	if ((data->fan_status[nr] & 0x04) /* overflow flag */
nr               1542 drivers/hwmon/pc87360.c 	 || (data->fan[nr] >= 224)) { /* next to overflow */
nr               1543 drivers/hwmon/pc87360.c 		if ((data->fan_status[nr] & 0x60) != 0x60) {
nr               1544 drivers/hwmon/pc87360.c 			data->fan_status[nr] += 0x20;
nr               1545 drivers/hwmon/pc87360.c 			data->fan_min[nr] >>= 1;
nr               1546 drivers/hwmon/pc87360.c 			data->fan[nr] >>= 1;
nr               1549 drivers/hwmon/pc87360.c 				FAN_DIV_FROM_REG(data->fan_status[nr]), nr + 1);
nr               1553 drivers/hwmon/pc87360.c 		while (!(data->fan_min[nr] & 0x80) /* min "nails" divider */
nr               1554 drivers/hwmon/pc87360.c 		 && data->fan[nr] < 85 /* bad accuracy */
nr               1555 drivers/hwmon/pc87360.c 		 && (data->fan_status[nr] & 0x60) != 0x00) {
nr               1556 drivers/hwmon/pc87360.c 			data->fan_status[nr] -= 0x20;
nr               1557 drivers/hwmon/pc87360.c 			data->fan_min[nr] <<= 1;
nr               1558 drivers/hwmon/pc87360.c 			data->fan[nr] <<= 1;
nr               1561 drivers/hwmon/pc87360.c 				FAN_DIV_FROM_REG(data->fan_status[nr]),
nr               1562 drivers/hwmon/pc87360.c 				nr + 1);
nr               1567 drivers/hwmon/pc87360.c 	if (old_min != data->fan_min[nr]) {
nr               1569 drivers/hwmon/pc87360.c 				    PC87360_REG_FAN_MIN(nr),
nr               1570 drivers/hwmon/pc87360.c 				    data->fan_min[nr]);
nr                133 drivers/hwmon/pc87427.c #define BANK_FM(nr)		(nr)
nr                134 drivers/hwmon/pc87427.c #define BANK_FT(nr)		(0x08 + (nr))
nr                135 drivers/hwmon/pc87427.c #define BANK_FC(nr)		(0x10 + (nr) * 2)
nr                136 drivers/hwmon/pc87427.c #define BANK_TM(nr)		(nr)
nr                137 drivers/hwmon/pc87427.c #define BANK_VM(nr)		(0x08 + (nr))
nr                184 drivers/hwmon/pc87427.c static void pc87427_readall_fan(struct pc87427_data *data, u8 nr)
nr                188 drivers/hwmon/pc87427.c 	outb(BANK_FM(nr), iobase + PC87427_REG_BANK);
nr                189 drivers/hwmon/pc87427.c 	data->fan[nr] = inw(iobase + PC87427_REG_FAN);
nr                190 drivers/hwmon/pc87427.c 	data->fan_min[nr] = inw(iobase + PC87427_REG_FAN_MIN);
nr                191 drivers/hwmon/pc87427.c 	data->fan_status[nr] = inb(iobase + PC87427_REG_FAN_STATUS);
nr                193 drivers/hwmon/pc87427.c 	outb(data->fan_status[nr], iobase + PC87427_REG_FAN_STATUS);
nr                239 drivers/hwmon/pc87427.c static void pc87427_readall_pwm(struct pc87427_data *data, u8 nr)
nr                243 drivers/hwmon/pc87427.c 	outb(BANK_FC(nr), iobase + PC87427_REG_BANK);
nr                244 drivers/hwmon/pc87427.c 	data->pwm_enable[nr] = inb(iobase + PC87427_REG_PWM_ENABLE);
nr                245 drivers/hwmon/pc87427.c 	data->pwm[nr] = inb(iobase + PC87427_REG_PWM_DUTY);
nr                303 drivers/hwmon/pc87427.c static void pc87427_readall_temp(struct pc87427_data *data, u8 nr)
nr                307 drivers/hwmon/pc87427.c 	outb(BANK_TM(nr), iobase + PC87427_REG_BANK);
nr                308 drivers/hwmon/pc87427.c 	data->temp[nr] = le16_to_cpu(inw(iobase + PC87427_REG_TEMP));
nr                309 drivers/hwmon/pc87427.c 	data->temp_max[nr] = inb(iobase + PC87427_REG_TEMP_MAX);
nr                310 drivers/hwmon/pc87427.c 	data->temp_min[nr] = inb(iobase + PC87427_REG_TEMP_MIN);
nr                311 drivers/hwmon/pc87427.c 	data->temp_crit[nr] = inb(iobase + PC87427_REG_TEMP_CRIT);
nr                312 drivers/hwmon/pc87427.c 	data->temp_type[nr] = inb(iobase + PC87427_REG_TEMP_TYPE);
nr                313 drivers/hwmon/pc87427.c 	data->temp_status[nr] = inb(iobase + PC87427_REG_TEMP_STATUS);
nr                315 drivers/hwmon/pc87427.c 	outb(data->temp_status[nr], iobase + PC87427_REG_TEMP_STATUS);
nr                391 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                393 drivers/hwmon/pc87427.c 	return sprintf(buf, "%lu\n", fan_from_reg(data->fan[nr]));
nr                400 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                402 drivers/hwmon/pc87427.c 	return sprintf(buf, "%lu\n", fan_from_reg(data->fan_min[nr]));
nr                409 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                411 drivers/hwmon/pc87427.c 	return sprintf(buf, "%d\n", !!(data->fan_status[nr]
nr                419 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                421 drivers/hwmon/pc87427.c 	return sprintf(buf, "%d\n", !!(data->fan_status[nr]
nr                430 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                438 drivers/hwmon/pc87427.c 	outb(BANK_FM(nr), iobase + PC87427_REG_BANK);
nr                445 drivers/hwmon/pc87427.c 	data->fan_min[nr] = fan_to_reg(val);
nr                446 drivers/hwmon/pc87427.c 	outw(data->fan_min[nr], iobase + PC87427_REG_FAN_MIN);
nr                556 drivers/hwmon/pc87427.c static void update_pwm_enable(struct pc87427_data *data, int nr, u8 mode)
nr                559 drivers/hwmon/pc87427.c 	data->pwm_enable[nr] &= ~PWM_ENABLE_MODE_MASK;
nr                560 drivers/hwmon/pc87427.c 	data->pwm_enable[nr] |= mode;
nr                561 drivers/hwmon/pc87427.c 	outb(data->pwm_enable[nr], iobase + PC87427_REG_PWM_ENABLE);
nr                568 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                571 drivers/hwmon/pc87427.c 	pwm_enable = pwm_enable_from_reg(data->pwm_enable[nr]);
nr                582 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                588 drivers/hwmon/pc87427.c 	if (val == 2 && !(data->pwm_auto_ok & (1 << nr)))
nr                592 drivers/hwmon/pc87427.c 	pc87427_readall_pwm(data, nr);
nr                593 drivers/hwmon/pc87427.c 	update_pwm_enable(data, nr, pwm_enable_to_reg(val, data->pwm[nr]));
nr                603 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                605 drivers/hwmon/pc87427.c 	return sprintf(buf, "%d\n", (int)data->pwm[nr]);
nr                612 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                621 drivers/hwmon/pc87427.c 	pc87427_readall_pwm(data, nr);
nr                622 drivers/hwmon/pc87427.c 	mode = data->pwm_enable[nr] & PWM_ENABLE_MODE_MASK;
nr                626 drivers/hwmon/pc87427.c 			   nr + 1);
nr                634 drivers/hwmon/pc87427.c 		update_pwm_enable(data, nr, PWM_MODE_OFF);
nr                636 drivers/hwmon/pc87427.c 		dev_dbg(dev, "Switching PWM%d from %s to %s\n", nr + 1,
nr                640 drivers/hwmon/pc87427.c 		update_pwm_enable(data, nr, PWM_MODE_MANUAL);
nr                642 drivers/hwmon/pc87427.c 		dev_dbg(dev, "Switching PWM%d from %s to %s\n", nr + 1,
nr                646 drivers/hwmon/pc87427.c 	data->pwm[nr] = val;
nr                695 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                697 drivers/hwmon/pc87427.c 	return sprintf(buf, "%ld\n", temp_from_reg(data->temp[nr]));
nr                704 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                706 drivers/hwmon/pc87427.c 	return sprintf(buf, "%ld\n", temp_from_reg8(data->temp_min[nr]));
nr                713 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                715 drivers/hwmon/pc87427.c 	return sprintf(buf, "%ld\n", temp_from_reg8(data->temp_max[nr]));
nr                722 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                724 drivers/hwmon/pc87427.c 	return sprintf(buf, "%ld\n", temp_from_reg8(data->temp_crit[nr]));
nr                731 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                733 drivers/hwmon/pc87427.c 	return sprintf(buf, "%u\n", temp_type_from_reg(data->temp_type[nr]));
nr                741 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                743 drivers/hwmon/pc87427.c 	return sprintf(buf, "%d\n", !!(data->temp_status[nr]
nr                752 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                754 drivers/hwmon/pc87427.c 	return sprintf(buf, "%d\n", !!(data->temp_status[nr]
nr                763 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                765 drivers/hwmon/pc87427.c 	return sprintf(buf, "%d\n", !!(data->temp_status[nr]
nr                773 drivers/hwmon/pc87427.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                775 drivers/hwmon/pc87427.c 	return sprintf(buf, "%d\n", !!(data->temp_status[nr]
nr                 82 drivers/hwmon/sis5595.c #define SIS5595_REG_IN_MAX(nr) (0x2b + (nr) * 2)
nr                 83 drivers/hwmon/sis5595.c #define SIS5595_REG_IN_MIN(nr) (0x2c + (nr) * 2)
nr                 84 drivers/hwmon/sis5595.c #define SIS5595_REG_IN(nr) (0x20 + (nr))
nr                 86 drivers/hwmon/sis5595.c #define SIS5595_REG_FAN_MIN(nr) (0x3b + (nr))
nr                 87 drivers/hwmon/sis5595.c #define SIS5595_REG_FAN(nr) (0x28 + (nr))
nr                216 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                217 drivers/hwmon/sis5595.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr]));
nr                225 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                226 drivers/hwmon/sis5595.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr]));
nr                234 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                235 drivers/hwmon/sis5595.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr]));
nr                243 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                252 drivers/hwmon/sis5595.c 	data->in_min[nr] = IN_TO_REG(val);
nr                253 drivers/hwmon/sis5595.c 	sis5595_write_value(data, SIS5595_REG_IN_MIN(nr), data->in_min[nr]);
nr                263 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                272 drivers/hwmon/sis5595.c 	data->in_max[nr] = IN_TO_REG(val);
nr                273 drivers/hwmon/sis5595.c 	sis5595_write_value(data, SIS5595_REG_IN_MAX(nr), data->in_max[nr]);
nr                364 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                365 drivers/hwmon/sis5595.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
nr                366 drivers/hwmon/sis5595.c 		DIV_FROM_REG(data->fan_div[nr])));
nr                374 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                375 drivers/hwmon/sis5595.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr],
nr                376 drivers/hwmon/sis5595.c 		DIV_FROM_REG(data->fan_div[nr])));
nr                384 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                393 drivers/hwmon/sis5595.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                394 drivers/hwmon/sis5595.c 	sis5595_write_value(data, SIS5595_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                404 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                405 drivers/hwmon/sis5595.c 	return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
nr                419 drivers/hwmon/sis5595.c 	int nr = attr->index;
nr                430 drivers/hwmon/sis5595.c 	min = FAN_FROM_REG(data->fan_min[nr],
nr                431 drivers/hwmon/sis5595.c 			DIV_FROM_REG(data->fan_div[nr]));
nr                436 drivers/hwmon/sis5595.c 		data->fan_div[nr] = 0;
nr                439 drivers/hwmon/sis5595.c 		data->fan_div[nr] = 1;
nr                442 drivers/hwmon/sis5595.c 		data->fan_div[nr] = 2;
nr                445 drivers/hwmon/sis5595.c 		data->fan_div[nr] = 3;
nr                455 drivers/hwmon/sis5595.c 	switch (nr) {
nr                457 drivers/hwmon/sis5595.c 		reg = (reg & 0xcf) | (data->fan_div[nr] << 4);
nr                460 drivers/hwmon/sis5595.c 		reg = (reg & 0x3f) | (data->fan_div[nr] << 6);
nr                464 drivers/hwmon/sis5595.c 	data->fan_min[nr] =
nr                465 drivers/hwmon/sis5595.c 		FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                466 drivers/hwmon/sis5595.c 	sis5595_write_value(data, SIS5595_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                491 drivers/hwmon/sis5595.c 	int nr = to_sensor_dev_attr(da)->index;
nr                492 drivers/hwmon/sis5595.c 	return sprintf(buf, "%u\n", (data->alarms >> nr) & 1);
nr                 87 drivers/hwmon/smsc47b397.c #define SMSC47B397_REG_TEMP(nr)	(smsc47b397_reg_temp[(nr)])
nr                 90 drivers/hwmon/smsc47b397.c #define SMSC47B397_REG_FAN_LSB(nr) (0x28 + 2 * (nr))
nr                 91 drivers/hwmon/smsc47b397.c #define SMSC47B397_REG_FAN_MSB(nr) (0x29 + 2 * (nr))
nr                 91 drivers/hwmon/smsc47m1.c #define SMSC47M1_REG_TPIN(nr)		(0x34 - (nr))
nr                 92 drivers/hwmon/smsc47m1.c #define SMSC47M1_REG_PPIN(nr)		(0x36 - (nr))
nr                202 drivers/hwmon/smsc47m1.c 	int nr = attr->index;
nr                209 drivers/hwmon/smsc47m1.c 	int rpm = (data->pwm[nr] & 0x7F) == 0x00 ? 0 :
nr                210 drivers/hwmon/smsc47m1.c 		  FAN_FROM_REG(data->fan[nr],
nr                211 drivers/hwmon/smsc47m1.c 			       DIV_FROM_REG(data->fan_div[nr]),
nr                212 drivers/hwmon/smsc47m1.c 			       data->fan_preload[nr]);
nr                221 drivers/hwmon/smsc47m1.c 	int nr = attr->index;
nr                222 drivers/hwmon/smsc47m1.c 	int rpm = MIN_FROM_REG(data->fan_preload[nr],
nr                223 drivers/hwmon/smsc47m1.c 			       DIV_FROM_REG(data->fan_div[nr]));
nr                272 drivers/hwmon/smsc47m1.c 	int nr = attr->index;
nr                282 drivers/hwmon/smsc47m1.c 	rpmdiv = val * DIV_FROM_REG(data->fan_div[nr]);
nr                289 drivers/hwmon/smsc47m1.c 	data->fan_preload[nr] = 192 - ((983040 + rpmdiv / 2) / rpmdiv);
nr                290 drivers/hwmon/smsc47m1.c 	smsc47m1_write_value(data, SMSC47M1_REG_FAN_PRELOAD[nr],
nr                291 drivers/hwmon/smsc47m1.c 			     data->fan_preload[nr]);
nr                309 drivers/hwmon/smsc47m1.c 	int nr = attr->index;
nr                313 drivers/hwmon/smsc47m1.c 	u8 old_div = DIV_FROM_REG(data->fan_div[nr]);
nr                325 drivers/hwmon/smsc47m1.c 		data->fan_div[nr] = 0;
nr                328 drivers/hwmon/smsc47m1.c 		data->fan_div[nr] = 1;
nr                331 drivers/hwmon/smsc47m1.c 		data->fan_div[nr] = 2;
nr                334 drivers/hwmon/smsc47m1.c 		data->fan_div[nr] = 3;
nr                341 drivers/hwmon/smsc47m1.c 	switch (nr) {
nr                345 drivers/hwmon/smsc47m1.c 		      & ~(0x03 << (4 + 2 * nr));
nr                346 drivers/hwmon/smsc47m1.c 		tmp |= data->fan_div[nr] << (4 + 2 * nr);
nr                359 drivers/hwmon/smsc47m1.c 	tmp = 192 - (old_div * (192 - data->fan_preload[nr])
nr                361 drivers/hwmon/smsc47m1.c 	data->fan_preload[nr] = clamp_val(tmp, 0, 191);
nr                362 drivers/hwmon/smsc47m1.c 	smsc47m1_write_value(data, SMSC47M1_REG_FAN_PRELOAD[nr],
nr                363 drivers/hwmon/smsc47m1.c 			     data->fan_preload[nr]);
nr                374 drivers/hwmon/smsc47m1.c 	int nr = attr->index;
nr                386 drivers/hwmon/smsc47m1.c 	data->pwm[nr] &= 0x81; /* Preserve additional bits */
nr                387 drivers/hwmon/smsc47m1.c 	data->pwm[nr] |= PWM_TO_REG(val);
nr                388 drivers/hwmon/smsc47m1.c 	smsc47m1_write_value(data, SMSC47M1_REG_PWM[nr],
nr                389 drivers/hwmon/smsc47m1.c 			     data->pwm[nr]);
nr                401 drivers/hwmon/smsc47m1.c 	int nr = attr->index;
nr                413 drivers/hwmon/smsc47m1.c 	data->pwm[nr] &= 0xFE; /* preserve the other bits */
nr                414 drivers/hwmon/smsc47m1.c 	data->pwm[nr] |= !val;
nr                415 drivers/hwmon/smsc47m1.c 	smsc47m1_write_value(data, SMSC47M1_REG_PWM[nr],
nr                416 drivers/hwmon/smsc47m1.c 			     data->pwm[nr]);
nr                 27 drivers/hwmon/smsc47m192.c #define SMSC47M192_REG_IN(nr)		((nr) < 6 ? (0x20 + (nr)) : \
nr                 28 drivers/hwmon/smsc47m192.c 					(0x50 + (nr) - 6))
nr                 29 drivers/hwmon/smsc47m192.c #define SMSC47M192_REG_IN_MAX(nr)	((nr) < 6 ? (0x2b + (nr) * 2) : \
nr                 30 drivers/hwmon/smsc47m192.c 					(0x54 + (((nr) - 6) * 2)))
nr                 31 drivers/hwmon/smsc47m192.c #define SMSC47M192_REG_IN_MIN(nr)	((nr) < 6 ? (0x2c + (nr) * 2) : \
nr                 32 drivers/hwmon/smsc47m192.c 					(0x55 + (((nr) - 6) * 2)))
nr                 36 drivers/hwmon/smsc47m192.c #define SMSC47M192_REG_TEMP_OFFSET(nr)	((nr) == 2 ? 0x1e : 0x1f)
nr                173 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                175 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->in[nr], nr));
nr                182 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                184 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->in_min[nr], nr));
nr                191 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                193 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->in_max[nr], nr));
nr                200 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                211 drivers/hwmon/smsc47m192.c 	data->in_min[nr] = IN_TO_REG(val, nr);
nr                212 drivers/hwmon/smsc47m192.c 	i2c_smbus_write_byte_data(client, SMSC47M192_REG_IN_MIN(nr),
nr                213 drivers/hwmon/smsc47m192.c 							data->in_min[nr]);
nr                222 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                233 drivers/hwmon/smsc47m192.c 	data->in_max[nr] = IN_TO_REG(val, nr);
nr                234 drivers/hwmon/smsc47m192.c 	i2c_smbus_write_byte_data(client, SMSC47M192_REG_IN_MAX(nr),
nr                235 drivers/hwmon/smsc47m192.c 							data->in_max[nr]);
nr                270 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                272 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr]));
nr                279 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                281 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_min[nr]));
nr                288 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                290 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr]));
nr                298 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                309 drivers/hwmon/smsc47m192.c 	data->temp_min[nr] = TEMP_TO_REG(val);
nr                310 drivers/hwmon/smsc47m192.c 	i2c_smbus_write_byte_data(client, SMSC47M192_REG_TEMP_MIN[nr],
nr                311 drivers/hwmon/smsc47m192.c 						data->temp_min[nr]);
nr                321 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                332 drivers/hwmon/smsc47m192.c 	data->temp_max[nr] = TEMP_TO_REG(val);
nr                333 drivers/hwmon/smsc47m192.c 	i2c_smbus_write_byte_data(client, SMSC47M192_REG_TEMP_MAX[nr],
nr                334 drivers/hwmon/smsc47m192.c 						data->temp_max[nr]);
nr                343 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                345 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_offset[nr]));
nr                353 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                365 drivers/hwmon/smsc47m192.c 	data->temp_offset[nr] = TEMP_TO_REG(val);
nr                366 drivers/hwmon/smsc47m192.c 	if (nr > 1)
nr                368 drivers/hwmon/smsc47m192.c 			SMSC47M192_REG_TEMP_OFFSET(nr), data->temp_offset[nr]);
nr                369 drivers/hwmon/smsc47m192.c 	else if (data->temp_offset[nr] != 0) {
nr                375 drivers/hwmon/smsc47m192.c 					(sfr & 0xef) | (nr == 0 ? 0x10 : 0));
nr                376 drivers/hwmon/smsc47m192.c 		data->temp_offset[1-nr] = 0;
nr                378 drivers/hwmon/smsc47m192.c 			SMSC47M192_REG_TEMP_OFFSET(nr), data->temp_offset[nr]);
nr                379 drivers/hwmon/smsc47m192.c 	} else if ((sfr & 0x10) == (nr == 0 ? 0x10 : 0))
nr                381 drivers/hwmon/smsc47m192.c 					SMSC47M192_REG_TEMP_OFFSET(nr), 0);
nr                438 drivers/hwmon/smsc47m192.c 	int nr = sensor_attr->index;
nr                440 drivers/hwmon/smsc47m192.c 	return sprintf(buf, "%u\n", (data->alarms & nr) ? 1 : 0);
nr                197 drivers/hwmon/tc654.c 	int nr = to_sensor_dev_attr(da)->index;
nr                205 drivers/hwmon/tc654.c 		val = data->rpm_output[nr] * TC654_HIGH_RPM_RESOLUTION;
nr                207 drivers/hwmon/tc654.c 		val = data->rpm_output[nr] * TC654_LOW_RPM_RESOLUTION;
nr                215 drivers/hwmon/tc654.c 	int nr = to_sensor_dev_attr(da)->index;
nr                222 drivers/hwmon/tc654.c 		       TC654_FAN_FAULT_FROM_REG(data->fan_fault[nr]));
nr                228 drivers/hwmon/tc654.c 	int nr = to_sensor_dev_attr(da)->index;
nr                241 drivers/hwmon/tc654.c 	data->fan_fault[nr] = TC654_FAN_FAULT_TO_REG(val);
nr                242 drivers/hwmon/tc654.c 	ret = i2c_smbus_write_byte_data(client, TC654_REG_FAN_FAULT(nr),
nr                243 drivers/hwmon/tc654.c 					data->fan_fault[nr]);
nr                252 drivers/hwmon/tc654.c 	int nr = to_sensor_dev_attr(da)->index;
nr                259 drivers/hwmon/tc654.c 	if (nr == 0)
nr                272 drivers/hwmon/tc654.c 	int nr = to_sensor_dev_attr(da)->index;
nr                279 drivers/hwmon/tc654.c 	val = BIT((data->config >> TC654_FAN_PULSE_SHIFT[nr]) & 0x03);
nr                287 drivers/hwmon/tc654.c 	int nr = to_sensor_dev_attr(da)->index;
nr                316 drivers/hwmon/tc654.c 	data->config &= ~(0x03 << TC654_FAN_PULSE_SHIFT[nr]);
nr                317 drivers/hwmon/tc654.c 	data->config |= (config << TC654_FAN_PULSE_SHIFT[nr]);
nr                166 drivers/hwmon/thmc50.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                168 drivers/hwmon/thmc50.c 	return sprintf(buf, "%d\n", data->temp_input[nr] * 1000);
nr                174 drivers/hwmon/thmc50.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                176 drivers/hwmon/thmc50.c 	return sprintf(buf, "%d\n", data->temp_min[nr] * 1000);
nr                183 drivers/hwmon/thmc50.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                194 drivers/hwmon/thmc50.c 	data->temp_min[nr] = clamp_val(val / 1000, -128, 127);
nr                195 drivers/hwmon/thmc50.c 	i2c_smbus_write_byte_data(client, THMC50_REG_TEMP_MIN[nr],
nr                196 drivers/hwmon/thmc50.c 				  data->temp_min[nr]);
nr                204 drivers/hwmon/thmc50.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                206 drivers/hwmon/thmc50.c 	return sprintf(buf, "%d\n", data->temp_max[nr] * 1000);
nr                213 drivers/hwmon/thmc50.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                224 drivers/hwmon/thmc50.c 	data->temp_max[nr] = clamp_val(val / 1000, -128, 127);
nr                225 drivers/hwmon/thmc50.c 	i2c_smbus_write_byte_data(client, THMC50_REG_TEMP_MAX[nr],
nr                226 drivers/hwmon/thmc50.c 				  data->temp_max[nr]);
nr                234 drivers/hwmon/thmc50.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                236 drivers/hwmon/thmc50.c 	return sprintf(buf, "%d\n", data->temp_critical[nr] * 1000);
nr                281 drivers/hwmon/tmp401.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                289 drivers/hwmon/tmp401.c 		tmp401_register_to_temp(data->temp[nr][index], data->config));
nr                313 drivers/hwmon/tmp401.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                320 drivers/hwmon/tmp401.c 	return sprintf(buf, "%d\n", !!(data->status[nr] & mask));
nr                327 drivers/hwmon/tmp401.c 	int nr = to_sensor_dev_attr_2(devattr)->nr;
nr                338 drivers/hwmon/tmp401.c 	reg = tmp401_temp_to_register(val, data->config, nr == 3 ? 8 : 4);
nr                342 drivers/hwmon/tmp401.c 	regaddr = data->kind == tmp432 ? TMP432_TEMP_MSB_WRITE[nr][index]
nr                343 drivers/hwmon/tmp401.c 				       : TMP401_TEMP_MSB_WRITE[nr][index];
nr                344 drivers/hwmon/tmp401.c 	if (nr == 3) { /* crit is msb only */
nr                350 drivers/hwmon/tmp401.c 	data->temp[nr][index] = reg;
nr                 62 drivers/hwmon/via686a.c #define VIA686A_REG_IN_MAX(nr)	(0x2b + ((nr) * 2))
nr                 63 drivers/hwmon/via686a.c #define VIA686A_REG_IN_MIN(nr)	(0x2c + ((nr) * 2))
nr                 64 drivers/hwmon/via686a.c #define VIA686A_REG_IN(nr)	(0x22 + (nr))
nr                 67 drivers/hwmon/via686a.c #define VIA686A_REG_FAN_MIN(nr)	(0x3a + (nr))
nr                 68 drivers/hwmon/via686a.c #define VIA686A_REG_FAN(nr)	(0x28 + (nr))
nr                348 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                349 drivers/hwmon/via686a.c 	return sprintf(buf, "%ld\n", IN_FROM_REG(data->in[nr], nr));
nr                356 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                357 drivers/hwmon/via686a.c 	return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_min[nr], nr));
nr                364 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                365 drivers/hwmon/via686a.c 	return sprintf(buf, "%ld\n", IN_FROM_REG(data->in_max[nr], nr));
nr                372 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                381 drivers/hwmon/via686a.c 	data->in_min[nr] = IN_TO_REG(val, nr);
nr                382 drivers/hwmon/via686a.c 	via686a_write_value(data, VIA686A_REG_IN_MIN(nr),
nr                383 drivers/hwmon/via686a.c 			data->in_min[nr]);
nr                391 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                400 drivers/hwmon/via686a.c 	data->in_max[nr] = IN_TO_REG(val, nr);
nr                401 drivers/hwmon/via686a.c 	via686a_write_value(data, VIA686A_REG_IN_MAX(nr),
nr                402 drivers/hwmon/via686a.c 			data->in_max[nr]);
nr                428 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                429 drivers/hwmon/via686a.c 	return sprintf(buf, "%ld\n", TEMP_FROM_REG10(data->temp[nr]));
nr                435 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                436 drivers/hwmon/via686a.c 	return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_over[nr]));
nr                442 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                443 drivers/hwmon/via686a.c 	return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_hyst[nr]));
nr                450 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                459 drivers/hwmon/via686a.c 	data->temp_over[nr] = TEMP_TO_REG(val);
nr                460 drivers/hwmon/via686a.c 	via686a_write_value(data, VIA686A_REG_TEMP_OVER[nr],
nr                461 drivers/hwmon/via686a.c 			    data->temp_over[nr]);
nr                470 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                479 drivers/hwmon/via686a.c 	data->temp_hyst[nr] = TEMP_TO_REG(val);
nr                480 drivers/hwmon/via686a.c 	via686a_write_value(data, VIA686A_REG_TEMP_HYST[nr],
nr                481 drivers/hwmon/via686a.c 			    data->temp_hyst[nr]);
nr                501 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                502 drivers/hwmon/via686a.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
nr                503 drivers/hwmon/via686a.c 				DIV_FROM_REG(data->fan_div[nr])));
nr                509 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                511 drivers/hwmon/via686a.c 		FAN_FROM_REG(data->fan_min[nr],
nr                512 drivers/hwmon/via686a.c 			     DIV_FROM_REG(data->fan_div[nr])));
nr                518 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                519 drivers/hwmon/via686a.c 	return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
nr                525 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                534 drivers/hwmon/via686a.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                535 drivers/hwmon/via686a.c 	via686a_write_value(data, VIA686A_REG_FAN_MIN(nr+1), data->fan_min[nr]);
nr                543 drivers/hwmon/via686a.c 	int nr = attr->index;
nr                554 drivers/hwmon/via686a.c 	data->fan_div[nr] = DIV_TO_REG(val);
nr                347 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                378 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                421 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                452 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                497 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                528 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                603 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                634 drivers/hwmon/vt1211.c 	int fn = sensor_attr_2->nr;
nr                758 drivers/hwmon/vt1211.c 	int ap = sensor_attr_2->nr;
nr                772 drivers/hwmon/vt1211.c 	int ap = sensor_attr_2->nr;
nr                822 drivers/hwmon/vt1211.c 	int ap = sensor_attr_2->nr;
nr                835 drivers/hwmon/vt1211.c 	int ap = sensor_attr_2->nr;
nr                 64 drivers/hwmon/vt8231.c #define VT8231_REG_FAN_MIN(nr)	(0x3b + (nr))
nr                 65 drivers/hwmon/vt8231.c #define VT8231_REG_FAN(nr)	(0x29 + (nr))
nr                186 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                189 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", ((data->in[nr] - 3) * 10000) / 958);
nr                196 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                199 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", ((data->in_min[nr] - 3) * 10000) / 958);
nr                206 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                209 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", (((data->in_max[nr] - 3) * 10000) / 958));
nr                216 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                226 drivers/hwmon/vt8231.c 	data->in_min[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255);
nr                227 drivers/hwmon/vt8231.c 	vt8231_write_value(data, regvoltmin[nr], data->in_min[nr]);
nr                236 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                246 drivers/hwmon/vt8231.c 	data->in_max[nr] = clamp_val(((val * 958) / 10000) + 3, 0, 255);
nr                247 drivers/hwmon/vt8231.c 	vt8231_write_value(data, regvoltmax[nr], data->in_max[nr]);
nr                403 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                405 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr]));
nr                412 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                414 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", TEMP_MAXMIN_FROM_REG(data->temp_max[nr]));
nr                421 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                423 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", TEMP_MAXMIN_FROM_REG(data->temp_min[nr]));
nr                431 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                441 drivers/hwmon/vt8231.c 	data->temp_max[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255);
nr                442 drivers/hwmon/vt8231.c 	vt8231_write_value(data, regtempmax[nr], data->temp_max[nr]);
nr                451 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                461 drivers/hwmon/vt8231.c 	data->temp_min[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255);
nr                462 drivers/hwmon/vt8231.c 	vt8231_write_value(data, regtempmin[nr], data->temp_min[nr]);
nr                497 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                499 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan[nr],
nr                500 drivers/hwmon/vt8231.c 				DIV_FROM_REG(data->fan_div[nr])));
nr                507 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                509 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", FAN_FROM_REG(data->fan_min[nr],
nr                510 drivers/hwmon/vt8231.c 			DIV_FROM_REG(data->fan_div[nr])));
nr                517 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                519 drivers/hwmon/vt8231.c 	return sprintf(buf, "%d\n", DIV_FROM_REG(data->fan_div[nr]));
nr                527 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                537 drivers/hwmon/vt8231.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                538 drivers/hwmon/vt8231.c 	vt8231_write_value(data, VT8231_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                550 drivers/hwmon/vt8231.c 	int nr = sensor_attr->index;
nr                552 drivers/hwmon/vt8231.c 	long min = FAN_FROM_REG(data->fan_min[nr],
nr                553 drivers/hwmon/vt8231.c 				 DIV_FROM_REG(data->fan_div[nr]));
nr                563 drivers/hwmon/vt8231.c 		data->fan_div[nr] = 0;
nr                566 drivers/hwmon/vt8231.c 		data->fan_div[nr] = 1;
nr                569 drivers/hwmon/vt8231.c 		data->fan_div[nr] = 2;
nr                572 drivers/hwmon/vt8231.c 		data->fan_div[nr] = 3;
nr                583 drivers/hwmon/vt8231.c 	data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                584 drivers/hwmon/vt8231.c 	vt8231_write_value(data, VT8231_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                171 drivers/hwmon/w83627ehf.c #define W83627EHF_REG_IN_MAX(nr)	((nr < 7) ? (0x2b + (nr) * 2) : \
nr                172 drivers/hwmon/w83627ehf.c 					 (0x554 + (((nr) - 7) * 2)))
nr                173 drivers/hwmon/w83627ehf.c #define W83627EHF_REG_IN_MIN(nr)	((nr < 7) ? (0x2c + (nr) * 2) : \
nr                174 drivers/hwmon/w83627ehf.c 					 (0x555 + (((nr) - 7) * 2)))
nr                175 drivers/hwmon/w83627ehf.c #define W83627EHF_REG_IN(nr)		((nr < 7) ? (0x20 + (nr)) : \
nr                176 drivers/hwmon/w83627ehf.c 					 (0x550 + (nr) - 7))
nr                403 drivers/hwmon/w83627ehf.c static inline long in_from_reg(u8 reg, u8 nr, const u16 *scale_in)
nr                405 drivers/hwmon/w83627ehf.c 	return DIV_ROUND_CLOSEST(reg * scale_in[nr], 100);
nr                408 drivers/hwmon/w83627ehf.c static inline u8 in_to_reg(u32 val, u8 nr, const u16 *scale_in)
nr                410 drivers/hwmon/w83627ehf.c 	return clamp_val(DIV_ROUND_CLOSEST(val * 100, scale_in[nr]), 0, 255);
nr                587 drivers/hwmon/w83627ehf.c static void nct6775_write_fan_div(struct w83627ehf_data *data, int nr)
nr                591 drivers/hwmon/w83627ehf.c 	switch (nr) {
nr                616 drivers/hwmon/w83627ehf.c static void w83627ehf_write_fan_div(struct w83627ehf_data *data, int nr)
nr                620 drivers/hwmon/w83627ehf.c 	switch (nr) {
nr                667 drivers/hwmon/w83627ehf.c 					   struct w83627ehf_data *data, int nr)
nr                674 drivers/hwmon/w83627ehf.c 		nct6775_write_fan_div(data, nr);
nr                676 drivers/hwmon/w83627ehf.c 		w83627ehf_write_fan_div(data, nr);
nr                937 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr                938 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%ld\n", in_from_reg(data->reg[nr], nr, \
nr                953 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr                960 drivers/hwmon/w83627ehf.c 	data->in_##reg[nr] = in_to_reg(val, nr, data->scale_in); \
nr                961 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, W83627EHF_REG_IN_##REG(nr), \
nr                962 drivers/hwmon/w83627ehf.c 			      data->in_##reg[nr]); \
nr                975 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr                976 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%u\n", (data->alarms >> nr) & 0x01);
nr               1036 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1037 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%d\n", data->rpm[nr]);
nr               1045 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1047 drivers/hwmon/w83627ehf.c 		       data->fan_from_reg_min(data->fan_min[nr],
nr               1048 drivers/hwmon/w83627ehf.c 					      data->fan_div[nr]));
nr               1057 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1058 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%u\n", div_from_reg(data->fan_div[nr]));
nr               1067 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1091 drivers/hwmon/w83627ehf.c 		data->fan_min[nr] = val;
nr               1096 drivers/hwmon/w83627ehf.c 		data->fan_min[nr] = 255;
nr               1097 drivers/hwmon/w83627ehf.c 		new_div = data->fan_div[nr]; /* No change */
nr               1098 drivers/hwmon/w83627ehf.c 		dev_info(dev, "fan%u low limit and alarm disabled\n", nr + 1);
nr               1104 drivers/hwmon/w83627ehf.c 		data->fan_min[nr] = 254;
nr               1108 drivers/hwmon/w83627ehf.c 			 nr + 1, val, data->fan_from_reg_min(254, 7));
nr               1114 drivers/hwmon/w83627ehf.c 		data->fan_min[nr] = 1;
nr               1118 drivers/hwmon/w83627ehf.c 			 nr + 1, val, data->fan_from_reg_min(1, 0));
nr               1130 drivers/hwmon/w83627ehf.c 		data->fan_min[nr] = reg;
nr               1137 drivers/hwmon/w83627ehf.c 	if (new_div != data->fan_div[nr]) {
nr               1139 drivers/hwmon/w83627ehf.c 			nr + 1, div_from_reg(data->fan_div[nr]),
nr               1141 drivers/hwmon/w83627ehf.c 		data->fan_div[nr] = new_div;
nr               1142 drivers/hwmon/w83627ehf.c 		w83627ehf_write_fan_div_common(dev, data, nr);
nr               1147 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, data->REG_FAN_MIN[nr],
nr               1148 drivers/hwmon/w83627ehf.c 			      data->fan_min[nr]);
nr               1196 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1197 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%s\n", data->temp_label[data->temp_src[nr]]);
nr               1208 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1209 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%d\n", LM75_TEMP_FROM_REG(data->reg[nr])); \
nr               1223 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1230 drivers/hwmon/w83627ehf.c 	data->reg[nr] = LM75_TEMP_TO_REG(val); \
nr               1231 drivers/hwmon/w83627ehf.c 	w83627ehf_write_temp(data, data->addr[nr], data->reg[nr]); \
nr               1254 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1265 drivers/hwmon/w83627ehf.c 	data->temp_offset[nr] = val;
nr               1266 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, W83627EHF_REG_TEMP_OFFSET[nr], val);
nr               1276 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1277 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%d\n", (int)data->temp_type[nr]);
nr               1374 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1375 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%d\n", data->reg[nr]); \
nr               1389 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1402 drivers/hwmon/w83627ehf.c 	if (sio_data->kind == nct6776 && nr && val != 1)
nr               1406 drivers/hwmon/w83627ehf.c 	reg = w83627ehf_read_value(data, W83627EHF_REG_PWM_ENABLE[nr]);
nr               1407 drivers/hwmon/w83627ehf.c 	data->pwm_mode[nr] = val;
nr               1408 drivers/hwmon/w83627ehf.c 	reg &= ~(1 << W83627EHF_PWM_MODE_SHIFT[nr]);
nr               1410 drivers/hwmon/w83627ehf.c 		reg |= 1 << W83627EHF_PWM_MODE_SHIFT[nr];
nr               1411 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, W83627EHF_REG_PWM_ENABLE[nr], reg);
nr               1422 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1433 drivers/hwmon/w83627ehf.c 	data->pwm[nr] = val;
nr               1434 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, data->REG_PWM[nr], val);
nr               1446 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1455 drivers/hwmon/w83627ehf.c 	if (!val || (val > 4 && val != data->pwm_enable_orig[nr]))
nr               1462 drivers/hwmon/w83627ehf.c 	data->pwm_enable[nr] = val;
nr               1465 drivers/hwmon/w83627ehf.c 					   NCT6775_REG_FAN_MODE[nr]);
nr               1469 drivers/hwmon/w83627ehf.c 				      NCT6775_REG_FAN_MODE[nr], reg);
nr               1471 drivers/hwmon/w83627ehf.c 		reg = w83627ehf_read_value(data, W83627EHF_REG_PWM_ENABLE[nr]);
nr               1472 drivers/hwmon/w83627ehf.c 		reg &= ~(0x03 << W83627EHF_PWM_ENABLE_SHIFT[nr]);
nr               1473 drivers/hwmon/w83627ehf.c 		reg |= (val - 1) << W83627EHF_PWM_ENABLE_SHIFT[nr];
nr               1474 drivers/hwmon/w83627ehf.c 		w83627ehf_write_value(data, W83627EHF_REG_PWM_ENABLE[nr], reg);
nr               1488 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1489 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%d\n", data->reg[nr] * 1000); \
nr               1501 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1512 drivers/hwmon/w83627ehf.c 	data->target_temp[nr] = val;
nr               1513 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, data->REG_TARGET[nr], val);
nr               1525 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index;
nr               1542 drivers/hwmon/w83627ehf.c 		reg = w83627ehf_read_value(data, NCT6775_REG_FAN_MODE[nr]);
nr               1544 drivers/hwmon/w83627ehf.c 		w83627ehf_write_value(data, NCT6775_REG_FAN_MODE[nr], reg);
nr               1546 drivers/hwmon/w83627ehf.c 		reg = w83627ehf_read_value(data, W83627EHF_REG_TOLERANCE[nr]);
nr               1547 drivers/hwmon/w83627ehf.c 		if (nr == 1)
nr               1551 drivers/hwmon/w83627ehf.c 		w83627ehf_write_value(data, W83627EHF_REG_TOLERANCE[nr], reg);
nr               1553 drivers/hwmon/w83627ehf.c 	data->tolerance[nr] = val;
nr               1618 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1619 drivers/hwmon/w83627ehf.c 	return sprintf(buf, "%d\n", data->reg[nr]); \
nr               1628 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1636 drivers/hwmon/w83627ehf.c 	data->reg[nr] = val; \
nr               1637 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, data->REG_##REG[nr], val); \
nr               1654 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1656 drivers/hwmon/w83627ehf.c 			step_time_from_reg(data->reg[nr], \
nr               1657 drivers/hwmon/w83627ehf.c 					   data->pwm_mode[nr])); \
nr               1667 drivers/hwmon/w83627ehf.c 	int nr = sensor_attr->index; \
nr               1673 drivers/hwmon/w83627ehf.c 	val = step_time_to_reg(val, data->pwm_mode[nr]); \
nr               1675 drivers/hwmon/w83627ehf.c 	data->reg[nr] = val; \
nr               1676 drivers/hwmon/w83627ehf.c 	w83627ehf_write_value(data, data->REG_##REG[nr], val); \
nr               1780 drivers/hwmon/w83627ehf.c 	mask = to_sensor_dev_attr_2(attr)->nr;
nr                161 drivers/hwmon/w83627hf.c #define W83781D_REG_IN_MAX(nr) ((nr < 7) ? (0x2b + (nr) * 2) : \
nr                162 drivers/hwmon/w83627hf.c 					   (0x554 + (((nr) - 7) * 2)))
nr                163 drivers/hwmon/w83627hf.c #define W83781D_REG_IN_MIN(nr) ((nr < 7) ? (0x2c + (nr) * 2) : \
nr                164 drivers/hwmon/w83627hf.c 					   (0x555 + (((nr) - 7) * 2)))
nr                165 drivers/hwmon/w83627hf.c #define W83781D_REG_IN(nr)     ((nr < 7) ? (0x20 + (nr)) : \
nr                166 drivers/hwmon/w83627hf.c 					   (0x550 + (nr) - 7))
nr                169 drivers/hwmon/w83627hf.c #define W83627HF_REG_FAN_MIN(nr)	(0x3b + (nr))
nr                170 drivers/hwmon/w83627hf.c #define W83627HF_REG_FAN(nr)		(0x28 + (nr))
nr                219 drivers/hwmon/w83627hf.c #define W836X7HF_REG_PWM(type, nr) (((type) == w83627hf) ? \
nr                220 drivers/hwmon/w83627hf.c 				    regpwm_627hf[nr] : regpwm[nr])
nr                479 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                481 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in[nr]));
nr                486 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                488 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_min[nr]));
nr                493 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                495 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (long)IN_FROM_REG(data->in_max[nr]));
nr                501 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                511 drivers/hwmon/w83627hf.c 	data->in_min[nr] = IN_TO_REG(val);
nr                512 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, W83781D_REG_IN_MIN(nr), data->in_min[nr]);
nr                520 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                530 drivers/hwmon/w83627hf.c 	data->in_max[nr] = IN_TO_REG(val);
nr                531 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, W83781D_REG_IN_MAX(nr), data->in_max[nr]);
nr                668 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                670 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan[nr],
nr                671 drivers/hwmon/w83627hf.c 				(long)DIV_FROM_REG(data->fan_div[nr])));
nr                676 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                678 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", FAN_FROM_REG(data->fan_min[nr],
nr                679 drivers/hwmon/w83627hf.c 				(long)DIV_FROM_REG(data->fan_div[nr])));
nr                685 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                695 drivers/hwmon/w83627hf.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                696 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, W83627HF_REG_FAN_MIN(nr),
nr                697 drivers/hwmon/w83627hf.c 			     data->fan_min[nr]);
nr                713 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                716 drivers/hwmon/w83627hf.c 	u16 tmp = data->temp[nr];
nr                717 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (nr) ? (long) LM75_TEMP_FROM_REG(tmp)
nr                724 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                727 drivers/hwmon/w83627hf.c 	u16 tmp = data->temp_max[nr];
nr                728 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (nr) ? (long) LM75_TEMP_FROM_REG(tmp)
nr                736 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                739 drivers/hwmon/w83627hf.c 	u16 tmp = data->temp_max_hyst[nr];
nr                740 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (nr) ? (long) LM75_TEMP_FROM_REG(tmp)
nr                748 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                758 drivers/hwmon/w83627hf.c 	tmp = (nr) ? LM75_TEMP_TO_REG(val) : TEMP_TO_REG(val);
nr                760 drivers/hwmon/w83627hf.c 	data->temp_max[nr] = tmp;
nr                761 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, w83627hf_reg_temp_over[nr], tmp);
nr                770 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                780 drivers/hwmon/w83627hf.c 	tmp = (nr) ? LM75_TEMP_TO_REG(val) : TEMP_TO_REG(val);
nr                782 drivers/hwmon/w83627hf.c 	data->temp_max_hyst[nr] = tmp;
nr                783 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, w83627hf_reg_temp_hyst[nr], tmp);
nr                979 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr                982 drivers/hwmon/w83627hf.c 		       (long) DIV_FROM_REG(data->fan_div[nr]));
nr                994 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1008 drivers/hwmon/w83627hf.c 	min = FAN_FROM_REG(data->fan_min[nr],
nr               1009 drivers/hwmon/w83627hf.c 			   DIV_FROM_REG(data->fan_div[nr]));
nr               1011 drivers/hwmon/w83627hf.c 	data->fan_div[nr] = DIV_TO_REG(val);
nr               1013 drivers/hwmon/w83627hf.c 	reg = (w83627hf_read_value(data, nr==2 ? W83781D_REG_PIN : W83781D_REG_VID_FANDIV)
nr               1014 drivers/hwmon/w83627hf.c 	       & (nr==0 ? 0xcf : 0x3f))
nr               1015 drivers/hwmon/w83627hf.c 	    | ((data->fan_div[nr] & 0x03) << (nr==0 ? 4 : 6));
nr               1016 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, nr==2 ? W83781D_REG_PIN : W83781D_REG_VID_FANDIV, reg);
nr               1019 drivers/hwmon/w83627hf.c 	       & ~(1 << (5 + nr)))
nr               1020 drivers/hwmon/w83627hf.c 	    | ((data->fan_div[nr] & 0x04) << (3 + nr));
nr               1024 drivers/hwmon/w83627hf.c 	data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr               1025 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, W83627HF_REG_FAN_MIN(nr), data->fan_min[nr]);
nr               1038 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1040 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (long) data->pwm[nr]);
nr               1047 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1060 drivers/hwmon/w83627hf.c 		data->pwm[nr] = PWM_TO_REG(val) & 0xf0;
nr               1062 drivers/hwmon/w83627hf.c 				     W836X7HF_REG_PWM(data->type, nr),
nr               1063 drivers/hwmon/w83627hf.c 				     data->pwm[nr] |
nr               1065 drivers/hwmon/w83627hf.c 				     W836X7HF_REG_PWM(data->type, nr)) & 0x0f));
nr               1067 drivers/hwmon/w83627hf.c 		data->pwm[nr] = PWM_TO_REG(val);
nr               1069 drivers/hwmon/w83627hf.c 				     W836X7HF_REG_PWM(data->type, nr),
nr               1070 drivers/hwmon/w83627hf.c 				     data->pwm[nr]);
nr               1085 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1087 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%d\n", data->pwm_enable[nr]);
nr               1094 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1107 drivers/hwmon/w83627hf.c 	data->pwm_enable[nr] = val;
nr               1108 drivers/hwmon/w83627hf.c 	reg = w83627hf_read_value(data, W83627THF_REG_PWM_ENABLE[nr]);
nr               1109 drivers/hwmon/w83627hf.c 	reg &= ~(0x03 << W83627THF_PWM_ENABLE_SHIFT[nr]);
nr               1110 drivers/hwmon/w83627hf.c 	reg |= (val - 1) << W83627THF_PWM_ENABLE_SHIFT[nr];
nr               1111 drivers/hwmon/w83627hf.c 	w83627hf_write_value(data, W83627THF_REG_PWM_ENABLE[nr], reg);
nr               1123 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1127 drivers/hwmon/w83627hf.c 			pwm_freq_from_reg_627hf(data->pwm_freq[nr]));
nr               1130 drivers/hwmon/w83627hf.c 			pwm_freq_from_reg(data->pwm_freq[nr]));
nr               1137 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1150 drivers/hwmon/w83627hf.c 		data->pwm_freq[nr] = pwm_freq_to_reg_627hf(val);
nr               1152 drivers/hwmon/w83627hf.c 				(data->pwm_freq[nr] << (nr*4)) |
nr               1154 drivers/hwmon/w83627hf.c 				W83627HF_REG_PWM_FREQ) & mask[nr]));
nr               1156 drivers/hwmon/w83627hf.c 		data->pwm_freq[nr] = pwm_freq_to_reg(val);
nr               1157 drivers/hwmon/w83627hf.c 		w83627hf_write_value(data, W83637HF_REG_PWM_FREQ[nr],
nr               1158 drivers/hwmon/w83627hf.c 				data->pwm_freq[nr]);
nr               1173 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1175 drivers/hwmon/w83627hf.c 	return sprintf(buf, "%ld\n", (long) data->sens[nr]);
nr               1182 drivers/hwmon/w83627hf.c 	int nr = to_sensor_dev_attr(devattr)->index;
nr               1198 drivers/hwmon/w83627hf.c 				    tmp | BIT_SCFG1[nr]);
nr               1201 drivers/hwmon/w83627hf.c 				    tmp | BIT_SCFG2[nr]);
nr               1202 drivers/hwmon/w83627hf.c 		data->sens[nr] = val;
nr               1207 drivers/hwmon/w83627hf.c 				    tmp | BIT_SCFG1[nr]);
nr               1210 drivers/hwmon/w83627hf.c 				    tmp & ~BIT_SCFG2[nr]);
nr               1211 drivers/hwmon/w83627hf.c 		data->sens[nr] = val;
nr               1220 drivers/hwmon/w83627hf.c 				    tmp & ~BIT_SCFG1[nr]);
nr               1221 drivers/hwmon/w83627hf.c 		data->sens[nr] = val;
nr                 76 drivers/hwmon/w83781d.c #define W83781D_REG_IN_MAX(nr)		((nr < 7) ? (0x2b + (nr) * 2) : \
nr                 77 drivers/hwmon/w83781d.c 						    (0x554 + (((nr) - 7) * 2)))
nr                 78 drivers/hwmon/w83781d.c #define W83781D_REG_IN_MIN(nr)		((nr < 7) ? (0x2c + (nr) * 2) : \
nr                 79 drivers/hwmon/w83781d.c 						    (0x555 + (((nr) - 7) * 2)))
nr                 80 drivers/hwmon/w83781d.c #define W83781D_REG_IN(nr)		((nr < 7) ? (0x20 + (nr)) : \
nr                 81 drivers/hwmon/w83781d.c 						    (0x550 + (nr) - 7))
nr                 84 drivers/hwmon/w83781d.c #define W83781D_REG_FAN_MIN(nr)		(0x3b + (nr))
nr                 85 drivers/hwmon/w83781d.c #define W83781D_REG_FAN(nr)		(0x28 + (nr))
nr                 91 drivers/hwmon/w83781d.c #define W83781D_REG_TEMP(nr)		((nr == 3) ? (0x0250) : \
nr                 92 drivers/hwmon/w83781d.c 					((nr == 2) ? (0x0150) : \
nr                 94 drivers/hwmon/w83781d.c #define W83781D_REG_TEMP_HYST(nr)	((nr == 3) ? (0x253) : \
nr                 95 drivers/hwmon/w83781d.c 					((nr == 2) ? (0x153) : \
nr                 97 drivers/hwmon/w83781d.c #define W83781D_REG_TEMP_OVER(nr)	((nr == 3) ? (0x255) : \
nr                 98 drivers/hwmon/w83781d.c 					((nr == 2) ? (0x155) : \
nr                265 drivers/hwmon/w83781d.c 	int nr = attr->index; \
nr                271 drivers/hwmon/w83781d.c 	data->in_##reg[nr] = IN_TO_REG(val); \
nr                272 drivers/hwmon/w83781d.c 	w83781d_write_value(data, W83781D_REG_IN_##REG(nr), \
nr                273 drivers/hwmon/w83781d.c 			    data->in_##reg[nr]); \
nr                318 drivers/hwmon/w83781d.c 	int nr = attr->index;
nr                327 drivers/hwmon/w83781d.c 	data->fan_min[nr] =
nr                328 drivers/hwmon/w83781d.c 	    FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                329 drivers/hwmon/w83781d.c 	w83781d_write_value(data, W83781D_REG_FAN_MIN(nr),
nr                330 drivers/hwmon/w83781d.c 			    data->fan_min[nr]);
nr                352 drivers/hwmon/w83781d.c 	int nr = attr->index; \
nr                353 drivers/hwmon/w83781d.c 	if (nr >= 2) {	/* TEMP2 and TEMP3 */ \
nr                355 drivers/hwmon/w83781d.c 			LM75_TEMP_FROM_REG(data->reg##_add[nr-2])); \
nr                370 drivers/hwmon/w83781d.c 	int nr = attr->index; \
nr                377 drivers/hwmon/w83781d.c 	if (nr >= 2) {	/* TEMP2 and TEMP3 */ \
nr                378 drivers/hwmon/w83781d.c 		data->temp_##reg##_add[nr-2] = LM75_TEMP_TO_REG(val); \
nr                379 drivers/hwmon/w83781d.c 		w83781d_write_value(data, W83781D_REG_TEMP_##REG(nr), \
nr                380 drivers/hwmon/w83781d.c 				data->temp_##reg##_add[nr-2]); \
nr                383 drivers/hwmon/w83781d.c 		w83781d_write_value(data, W83781D_REG_TEMP_##REG(nr), \
nr                641 drivers/hwmon/w83781d.c 	int nr = attr->index;
nr                653 drivers/hwmon/w83781d.c 	min = FAN_FROM_REG(data->fan_min[nr],
nr                654 drivers/hwmon/w83781d.c 			   DIV_FROM_REG(data->fan_div[nr]));
nr                656 drivers/hwmon/w83781d.c 	data->fan_div[nr] = DIV_TO_REG(val, data->type);
nr                658 drivers/hwmon/w83781d.c 	reg = (w83781d_read_value(data, nr == 2 ?
nr                660 drivers/hwmon/w83781d.c 		& (nr == 0 ? 0xcf : 0x3f))
nr                661 drivers/hwmon/w83781d.c 	      | ((data->fan_div[nr] & 0x03) << (nr == 0 ? 4 : 6));
nr                662 drivers/hwmon/w83781d.c 	w83781d_write_value(data, nr == 2 ?
nr                668 drivers/hwmon/w83781d.c 		       & ~(1 << (5 + nr)))
nr                669 drivers/hwmon/w83781d.c 		    | ((data->fan_div[nr] & 0x04) << (3 + nr));
nr                674 drivers/hwmon/w83781d.c 	data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                675 drivers/hwmon/w83781d.c 	w83781d_write_value(data, W83781D_REG_FAN_MIN(nr), data->fan_min[nr]);
nr                709 drivers/hwmon/w83781d.c 	int nr = attr->index;
nr                718 drivers/hwmon/w83781d.c 	data->pwm[nr] = clamp_val(val, 0, 255);
nr                719 drivers/hwmon/w83781d.c 	w83781d_write_value(data, W83781D_REG_PWM[nr], data->pwm[nr]);
nr                783 drivers/hwmon/w83781d.c 	int nr = attr->index;
nr                798 drivers/hwmon/w83781d.c 				    tmp | BIT_SCFG1[nr]);
nr                801 drivers/hwmon/w83781d.c 				    tmp | BIT_SCFG2[nr]);
nr                802 drivers/hwmon/w83781d.c 		data->sens[nr] = val;
nr                807 drivers/hwmon/w83781d.c 				    tmp | BIT_SCFG1[nr]);
nr                810 drivers/hwmon/w83781d.c 				    tmp & ~BIT_SCFG2[nr]);
nr                811 drivers/hwmon/w83781d.c 		data->sens[nr] = val;
nr                821 drivers/hwmon/w83781d.c 				    tmp & ~BIT_SCFG1[nr]);
nr                822 drivers/hwmon/w83781d.c 		data->sens[nr] = val;
nr                255 drivers/hwmon/w83791d.c static u8 div_to_reg(int nr, long val)
nr                360 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index; \
nr                361 drivers/hwmon/w83791d.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
nr                377 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index; \
nr                383 drivers/hwmon/w83791d.c 	data->in_##reg[nr] = IN_TO_REG(val); \
nr                384 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_IN_##REG[nr], data->in_##reg[nr]); \
nr                526 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index; \
nr                528 drivers/hwmon/w83791d.c 		FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
nr                540 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                549 drivers/hwmon/w83791d.c 	data->fan_min[nr] = fan_to_reg(val, DIV_FROM_REG(data->fan_div[nr]));
nr                550 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_FAN_MIN[nr], data->fan_min[nr]);
nr                560 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                562 drivers/hwmon/w83791d.c 	return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr]));
nr                577 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                593 drivers/hwmon/w83791d.c 	min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
nr                596 drivers/hwmon/w83791d.c 	data->fan_div[nr] = div_to_reg(nr, val);
nr                598 drivers/hwmon/w83791d.c 	switch (nr) {
nr                626 drivers/hwmon/w83791d.c 		dev_warn(dev, "store_fan_div: Unexpected nr seen: %d\n", nr);
nr                634 drivers/hwmon/w83791d.c 	tmp_fan_div = (data->fan_div[nr] << new_shift) & ~keep_mask;
nr                640 drivers/hwmon/w83791d.c 	if (nr < 3) {
nr                641 drivers/hwmon/w83791d.c 		keep_mask = ~(1 << (nr + 5));
nr                644 drivers/hwmon/w83791d.c 		tmp_fan_div = (data->fan_div[nr] << (3 + nr)) & ~keep_mask;
nr                650 drivers/hwmon/w83791d.c 	data->fan_min[nr] = fan_to_reg(min, DIV_FROM_REG(data->fan_div[nr]));
nr                651 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_FAN_MIN[nr], data->fan_min[nr]);
nr                716 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                718 drivers/hwmon/w83791d.c 	return sprintf(buf, "%u\n", data->pwm[nr]);
nr                727 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                734 drivers/hwmon/w83791d.c 	data->pwm[nr] = clamp_val(val, 0, 255);
nr                735 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_PWM[nr], data->pwm[nr]);
nr                757 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                759 drivers/hwmon/w83791d.c 	return sprintf(buf, "%u\n", data->pwm_enable[nr] + 1);
nr                768 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                781 drivers/hwmon/w83791d.c 	data->pwm_enable[nr] = val - 1;
nr                782 drivers/hwmon/w83791d.c 	switch (nr) {
nr                802 drivers/hwmon/w83791d.c 					data->pwm_enable[nr] << val_shift;
nr                824 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                825 drivers/hwmon/w83791d.c 	return sprintf(buf, "%d\n", TEMP1_FROM_REG(data->temp_target[nr]));
nr                834 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                842 drivers/hwmon/w83791d.c 	data->temp_target[nr] = TARGET_TEMP_TO_REG(val);
nr                844 drivers/hwmon/w83791d.c 				W83791D_REG_TEMP_TARGET[nr]) & 0x80;
nr                845 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_TEMP_TARGET[nr],
nr                846 drivers/hwmon/w83791d.c 				data->temp_target[nr] | target_mask);
nr                865 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                866 drivers/hwmon/w83791d.c 	return sprintf(buf, "%d\n", TEMP1_FROM_REG(data->temp_tolerance[nr]));
nr                875 drivers/hwmon/w83791d.c 	int nr = sensor_attr->index;
nr                885 drivers/hwmon/w83791d.c 	switch (nr) {
nr                904 drivers/hwmon/w83791d.c 	data->temp_tolerance[nr] = TOL_TEMP_TO_REG(val);
nr                908 drivers/hwmon/w83791d.c 			(data->temp_tolerance[nr] << val_shift) | target_mask);
nr                937 drivers/hwmon/w83791d.c 	int nr = attr->index;
nr                946 drivers/hwmon/w83791d.c 	data->temp1[nr] = TEMP1_TO_REG(val);
nr                947 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_TEMP1[nr], data->temp1[nr]);
nr                958 drivers/hwmon/w83791d.c 	int nr = attr->nr;
nr                960 drivers/hwmon/w83791d.c 	return sprintf(buf, "%d\n", TEMP23_FROM_REG(data->temp_add[nr][index]));
nr                972 drivers/hwmon/w83791d.c 	int nr = attr->nr;
nr                980 drivers/hwmon/w83791d.c 	data->temp_add[nr][index] = TEMP23_TO_REG(val);
nr                981 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_TEMP_ADD[nr][index * 2],
nr                982 drivers/hwmon/w83791d.c 				data->temp_add[nr][index] >> 8);
nr                983 drivers/hwmon/w83791d.c 	w83791d_write(client, W83791D_REG_TEMP_ADD[nr][index * 2 + 1],
nr                984 drivers/hwmon/w83791d.c 				data->temp_add[nr][index] & 0x80);
nr                215 drivers/hwmon/w83792d.c #define IN_FROM_REG(nr, val) (((nr) <= 1) ? ((val) * 2) : \
nr                216 drivers/hwmon/w83792d.c 		((((nr) == 6) || ((nr) == 7)) ? ((val) * 6) : ((val) * 4)))
nr                217 drivers/hwmon/w83792d.c #define IN_TO_REG(nr, val) (((nr) <= 1) ? ((val) / 2) : \
nr                218 drivers/hwmon/w83792d.c 		((((nr) == 6) || ((nr) == 7)) ? ((val) / 6) : ((val) / 4)))
nr                320 drivers/hwmon/w83792d.c static inline long in_count_from_reg(int nr, struct w83792d_data *data)
nr                323 drivers/hwmon/w83792d.c 	return (data->in[nr] << 2) | ((data->low_bits >> (2 * nr)) & 0x03);
nr                347 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                350 drivers/hwmon/w83792d.c 		       IN_FROM_REG(nr, in_count_from_reg(nr, data)));
nr                359 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index; \
nr                362 drivers/hwmon/w83792d.c 		       (long)(IN_FROM_REG(nr, data->reg[nr]) * 4)); \
nr                375 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index; \
nr                383 drivers/hwmon/w83792d.c 	data->in_##reg[nr] = clamp_val(IN_TO_REG(nr, val) / 4, 0, 255); \
nr                384 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_IN_##REG[nr], \
nr                385 drivers/hwmon/w83792d.c 			    data->in_##reg[nr]); \
nr                399 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index - 1; \
nr                402 drivers/hwmon/w83792d.c 		FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
nr                413 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index - 1;
nr                424 drivers/hwmon/w83792d.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                425 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_FAN_MIN[nr],
nr                426 drivers/hwmon/w83792d.c 				data->fan_min[nr]);
nr                437 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                439 drivers/hwmon/w83792d.c 	return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr - 1]));
nr                453 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index - 1;
nr                469 drivers/hwmon/w83792d.c 	min = FAN_FROM_REG(data->fan_min[nr],
nr                470 drivers/hwmon/w83792d.c 			   DIV_FROM_REG(data->fan_div[nr]));
nr                472 drivers/hwmon/w83792d.c 	data->fan_div[nr] = DIV_TO_REG(val);
nr                474 drivers/hwmon/w83792d.c 	fan_div_reg = w83792d_read_value(client, W83792D_REG_FAN_DIV[nr >> 1]);
nr                475 drivers/hwmon/w83792d.c 	fan_div_reg &= (nr & 0x01) ? 0x8f : 0xf8;
nr                476 drivers/hwmon/w83792d.c 	tmp_fan_div = (nr & 0x01) ? (((data->fan_div[nr]) << 4) & 0x70)
nr                477 drivers/hwmon/w83792d.c 					: ((data->fan_div[nr]) & 0x07);
nr                478 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_FAN_DIV[nr >> 1],
nr                482 drivers/hwmon/w83792d.c 	data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                483 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_FAN_MIN[nr], data->fan_min[nr]);
nr                495 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                497 drivers/hwmon/w83792d.c 	return sprintf(buf, "%d\n", TEMP1_FROM_REG(data->temp1[nr]));
nr                504 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                515 drivers/hwmon/w83792d.c 	data->temp1[nr] = TEMP1_TO_REG(val);
nr                516 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_TEMP1[nr],
nr                517 drivers/hwmon/w83792d.c 		data->temp1[nr]);
nr                530 drivers/hwmon/w83792d.c 	int nr = sensor_attr->nr;
nr                534 drivers/hwmon/w83792d.c 		(long)TEMP_ADD_FROM_REG(data->temp_add[nr][index],
nr                535 drivers/hwmon/w83792d.c 			data->temp_add[nr][index+1]));
nr                543 drivers/hwmon/w83792d.c 	int nr = sensor_attr->nr;
nr                555 drivers/hwmon/w83792d.c 	data->temp_add[nr][index] = TEMP_ADD_TO_REG_HIGH(val);
nr                556 drivers/hwmon/w83792d.c 	data->temp_add[nr][index+1] = TEMP_ADD_TO_REG_LOW(val);
nr                557 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_TEMP_ADD[nr][index],
nr                558 drivers/hwmon/w83792d.c 		data->temp_add[nr][index]);
nr                559 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_TEMP_ADD[nr][index+1],
nr                560 drivers/hwmon/w83792d.c 		data->temp_add[nr][index+1]);
nr                578 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                580 drivers/hwmon/w83792d.c 	return sprintf(buf, "%d\n", (data->alarms >> nr) & 1);
nr                588 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                590 drivers/hwmon/w83792d.c 	return sprintf(buf, "%d\n", (data->pwm[nr] & 0x0f) << 4);
nr                598 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index - 1;
nr                602 drivers/hwmon/w83792d.c 	switch (data->pwmenable[nr]) {
nr                622 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                634 drivers/hwmon/w83792d.c 	val |= w83792d_read_value(client, W83792D_REG_PWM[nr]) & 0xf0;
nr                635 drivers/hwmon/w83792d.c 	data->pwm[nr] = val;
nr                636 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_PWM[nr], data->pwm[nr]);
nr                647 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index - 1;
nr                664 drivers/hwmon/w83792d.c 		data->pwmenable[nr] = 0; /* manual mode */
nr                667 drivers/hwmon/w83792d.c 		data->pwmenable[nr] = 2; /* Smart Fan II */
nr                670 drivers/hwmon/w83792d.c 		data->pwmenable[nr] = 1; /* thermal cruise/Smart Fan I */
nr                689 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                691 drivers/hwmon/w83792d.c 	return sprintf(buf, "%d\n", data->pwm[nr] >> 7);
nr                699 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                712 drivers/hwmon/w83792d.c 	data->pwm[nr] = w83792d_read_value(client, W83792D_REG_PWM[nr]);
nr                714 drivers/hwmon/w83792d.c 		data->pwm[nr] |= 0x80;
nr                716 drivers/hwmon/w83792d.c 		data->pwm[nr] &= 0x7f;
nr                718 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_PWM[nr], data->pwm[nr]);
nr                759 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                761 drivers/hwmon/w83792d.c 	return sprintf(buf, "%ld\n", (long)data->thermal_cruise[nr-1]);
nr                769 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index - 1;
nr                784 drivers/hwmon/w83792d.c 					 W83792D_REG_THERMAL[nr]) & 0x80;
nr                785 drivers/hwmon/w83792d.c 	data->thermal_cruise[nr] = clamp_val(target_tmp, 0, 255);
nr                786 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_THERMAL[nr],
nr                787 drivers/hwmon/w83792d.c 		(data->thermal_cruise[nr]) | target_mask);
nr                799 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index;
nr                801 drivers/hwmon/w83792d.c 	return sprintf(buf, "%ld\n", (long)data->tolerance[nr-1]);
nr                809 drivers/hwmon/w83792d.c 	int nr = sensor_attr->index - 1;
nr                822 drivers/hwmon/w83792d.c 		W83792D_REG_TOLERANCE[nr]) & ((nr == 1) ? 0x0f : 0xf0);
nr                825 drivers/hwmon/w83792d.c 	data->tolerance[nr] = tol_tmp;
nr                826 drivers/hwmon/w83792d.c 	if (nr == 1)
nr                828 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_TOLERANCE[nr],
nr                842 drivers/hwmon/w83792d.c 	int nr = sensor_attr->nr;
nr                845 drivers/hwmon/w83792d.c 	return sprintf(buf, "%ld\n", (long)data->sf2_points[index-1][nr-1]);
nr                854 drivers/hwmon/w83792d.c 	int nr = sensor_attr->nr - 1;
nr                867 drivers/hwmon/w83792d.c 	data->sf2_points[index][nr] = clamp_val(val, 0, 127);
nr                869 drivers/hwmon/w83792d.c 					W83792D_REG_POINTS[index][nr]) & 0x80;
nr                870 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_POINTS[index][nr],
nr                871 drivers/hwmon/w83792d.c 		mask_tmp|data->sf2_points[index][nr]);
nr                883 drivers/hwmon/w83792d.c 	int nr = sensor_attr->nr;
nr                887 drivers/hwmon/w83792d.c 			(((data->sf2_levels[index-1][nr]) * 100) / 15));
nr                896 drivers/hwmon/w83792d.c 	int nr = sensor_attr->nr;
nr                909 drivers/hwmon/w83792d.c 	data->sf2_levels[index][nr] = clamp_val((val * 15) / 100, 0, 15);
nr                910 drivers/hwmon/w83792d.c 	mask_tmp = w83792d_read_value(client, W83792D_REG_LEVELS[index][nr])
nr                911 drivers/hwmon/w83792d.c 		& ((nr == 3) ? 0xf0 : 0x0f);
nr                912 drivers/hwmon/w83792d.c 	if (nr == 3)
nr                913 drivers/hwmon/w83792d.c 		level_tmp = data->sf2_levels[index][nr];
nr                915 drivers/hwmon/w83792d.c 		level_tmp = data->sf2_levels[index][nr] << 4;
nr                916 drivers/hwmon/w83792d.c 	w83792d_write_value(client, W83792D_REG_LEVELS[index][nr],
nr                159 drivers/hwmon/w83793.c #define W83793_REG_PWM(index, nr)	(((nr) == 0 ? 0xb3 : \
nr                160 drivers/hwmon/w83793.c 					 (nr) == 1 ? 0x220 : 0x218) + (index))
nr                167 drivers/hwmon/w83793.c #define W83793_REG_SF2_TEMP(index, nr)	(0x230 + ((index) << 4) + (nr))
nr                168 drivers/hwmon/w83793.c #define W83793_REG_SF2_PWM(index, nr)	(0x238 + ((index) << 4) + (nr))
nr                358 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                363 drivers/hwmon/w83793.c 	if (nr == ALARM_STATUS) {
nr                469 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                474 drivers/hwmon/w83793.c 	if (nr == FAN_INPUT)
nr                516 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                519 drivers/hwmon/w83793.c 	if (nr == PWM_STOP_TIME)
nr                522 drivers/hwmon/w83793.c 		val = (data->pwm[index][nr] & 0x3f) << 2;
nr                535 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                545 drivers/hwmon/w83793.c 	if (nr == PWM_STOP_TIME) {
nr                552 drivers/hwmon/w83793.c 		data->pwm[index][nr] =
nr                553 drivers/hwmon/w83793.c 		    w83793_read_value(client, W83793_REG_PWM(index, nr)) & 0xc0;
nr                554 drivers/hwmon/w83793.c 		data->pwm[index][nr] |= val;
nr                555 drivers/hwmon/w83793.c 		w83793_write_value(client, W83793_REG_PWM(index, nr),
nr                556 drivers/hwmon/w83793.c 							data->pwm[index][nr]);
nr                568 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                571 drivers/hwmon/w83793.c 	long temp = TEMP_FROM_REG(data->temp[index][nr]);
nr                573 drivers/hwmon/w83793.c 	if (nr == TEMP_READ && index < 4) {	/* Only TD1-TD4 have low bits */
nr                586 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                598 drivers/hwmon/w83793.c 	data->temp[index][nr] = TEMP_TO_REG(tmp, -128, 127);
nr                599 drivers/hwmon/w83793.c 	w83793_write_value(client, W83793_REG_TEMP[index][nr],
nr                600 drivers/hwmon/w83793.c 			   data->temp[index][nr]);
nr                696 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                700 drivers/hwmon/w83793.c 	if (nr == SETUP_PWM_DEFAULT)
nr                702 drivers/hwmon/w83793.c 	else if (nr == SETUP_PWM_UPTIME)
nr                704 drivers/hwmon/w83793.c 	else if (nr == SETUP_PWM_DOWNTIME)
nr                706 drivers/hwmon/w83793.c 	else if (nr == SETUP_TEMP_CRITICAL)
nr                718 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                729 drivers/hwmon/w83793.c 	if (nr == SETUP_PWM_DEFAULT) {
nr                735 drivers/hwmon/w83793.c 	} else if (nr == SETUP_PWM_UPTIME) {
nr                740 drivers/hwmon/w83793.c 	} else if (nr == SETUP_PWM_DOWNTIME) {
nr                793 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                798 drivers/hwmon/w83793.c 	if (nr == TEMP_FAN_MAP) {
nr                800 drivers/hwmon/w83793.c 	} else if (nr == TEMP_PWM_ENABLE) {
nr                803 drivers/hwmon/w83793.c 	} else if (nr == TEMP_CRUISE) {
nr                818 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                830 drivers/hwmon/w83793.c 	if (nr == TEMP_FAN_MAP) {
nr                834 drivers/hwmon/w83793.c 	} else if (nr == TEMP_PWM_ENABLE) {
nr                848 drivers/hwmon/w83793.c 	} else if (nr == TEMP_CRUISE) {
nr                877 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                881 drivers/hwmon/w83793.c 	return sprintf(buf, "%d\n", (data->sf2_pwm[index][nr] & 0x3f) << 2);
nr                892 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                903 drivers/hwmon/w83793.c 	data->sf2_pwm[index][nr] =
nr                904 drivers/hwmon/w83793.c 	    w83793_read_value(client, W83793_REG_SF2_PWM(index, nr)) & 0xc0;
nr                905 drivers/hwmon/w83793.c 	data->sf2_pwm[index][nr] |= val;
nr                906 drivers/hwmon/w83793.c 	w83793_write_value(client, W83793_REG_SF2_PWM(index, nr),
nr                907 drivers/hwmon/w83793.c 						data->sf2_pwm[index][nr]);
nr                917 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                922 drivers/hwmon/w83793.c 		       TEMP_FROM_REG(data->sf2_temp[index][nr] & 0x7f));
nr                933 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                944 drivers/hwmon/w83793.c 	data->sf2_temp[index][nr] =
nr                945 drivers/hwmon/w83793.c 	    w83793_read_value(client, W83793_REG_SF2_TEMP(index, nr)) & 0x80;
nr                946 drivers/hwmon/w83793.c 	data->sf2_temp[index][nr] |= val;
nr                947 drivers/hwmon/w83793.c 	w83793_write_value(client, W83793_REG_SF2_TEMP(index, nr),
nr                948 drivers/hwmon/w83793.c 					     data->sf2_temp[index][nr]);
nr                959 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                962 drivers/hwmon/w83793.c 	u16 val = data->in[index][nr];
nr                966 drivers/hwmon/w83793.c 		val += (data->in_low_bits[nr] >> (index * 2)) & 0x3;
nr                979 drivers/hwmon/w83793.c 	int nr = sensor_attr->nr;
nr                994 drivers/hwmon/w83793.c 		if (nr == 1 || nr == 2)
nr                999 drivers/hwmon/w83793.c 		data->in_low_bits[nr] =
nr               1000 drivers/hwmon/w83793.c 		    w83793_read_value(client, W83793_REG_IN_LOW_BITS[nr]);
nr               1001 drivers/hwmon/w83793.c 		data->in_low_bits[nr] &= ~(0x03 << (2 * index));
nr               1002 drivers/hwmon/w83793.c 		data->in_low_bits[nr] |= (val & 0x03) << (2 * index);
nr               1003 drivers/hwmon/w83793.c 		w83793_write_value(client, W83793_REG_IN_LOW_BITS[nr],
nr               1004 drivers/hwmon/w83793.c 						     data->in_low_bits[nr]);
nr               1007 drivers/hwmon/w83793.c 	data->in[index][nr] = val;
nr               1008 drivers/hwmon/w83793.c 	w83793_write_value(client, W83793_REG_IN[index][nr],
nr               1009 drivers/hwmon/w83793.c 							data->in[index][nr]);
nr                188 drivers/hwmon/w83795.c #define W83795_REG_PWM(index, nr)	(0x210 + (nr) * 8 + (index))
nr                706 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr                711 drivers/hwmon/w83795.c 	if (nr == ALARM_STATUS)
nr                779 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr                784 drivers/hwmon/w83795.c 	if (nr == FAN_INPUT)
nr                831 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr                835 drivers/hwmon/w83795.c 	data = nr == PWM_OUTPUT ? w83795_update_device(dev)
nr                838 drivers/hwmon/w83795.c 	switch (nr) {
nr                840 drivers/hwmon/w83795.c 		val = time_from_reg(data->pwm[index][nr]);
nr                843 drivers/hwmon/w83795.c 		val = pwm_freq_from_reg(data->pwm[index][nr], data->clkin);
nr                846 drivers/hwmon/w83795.c 		val = data->pwm[index][nr];
nr                861 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr                869 drivers/hwmon/w83795.c 	switch (nr) {
nr                880 drivers/hwmon/w83795.c 	w83795_write(client, W83795_REG_PWM(index, nr), val);
nr                881 drivers/hwmon/w83795.c 	data->pwm[index][nr] = val;
nr               1066 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1070 drivers/hwmon/w83795.c 	switch (nr) {
nr               1094 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1101 drivers/hwmon/w83795.c 	switch (nr) {
nr               1131 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1135 drivers/hwmon/w83795.c 	switch (nr) {
nr               1155 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1163 drivers/hwmon/w83795.c 	switch (nr) {
nr               1188 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1190 drivers/hwmon/w83795.c 	long tmp = temp_from_reg(data->pwm_temp[index][nr]);
nr               1203 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1213 drivers/hwmon/w83795.c 	switch (nr) {
nr               1237 drivers/hwmon/w83795.c 	data->pwm_temp[index][nr] = val;
nr               1249 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1252 drivers/hwmon/w83795.c 	return sprintf(buf, "%u\n", data->sf4_reg[index][SF4_PWM][nr]);
nr               1263 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1271 drivers/hwmon/w83795.c 	w83795_write(client, W83795_REG_SF4_PWM(index, nr), val);
nr               1272 drivers/hwmon/w83795.c 	data->sf4_reg[index][SF4_PWM][nr] = val;
nr               1284 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1288 drivers/hwmon/w83795.c 		(data->sf4_reg[index][SF4_TEMP][nr]) * 1000);
nr               1299 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1308 drivers/hwmon/w83795.c 	w83795_write(client, W83795_REG_SF4_TEMP(index, nr), val);
nr               1309 drivers/hwmon/w83795.c 	data->sf4_reg[index][SF4_TEMP][nr] = val;
nr               1321 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1324 drivers/hwmon/w83795.c 	long temp = temp_from_reg(data->temp[index][nr]);
nr               1326 drivers/hwmon/w83795.c 	if (nr == TEMP_READ)
nr               1337 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1347 drivers/hwmon/w83795.c 	data->temp[index][nr] = temp_to_reg(tmp, -128, 127);
nr               1348 drivers/hwmon/w83795.c 	w83795_write(client, W83795_REG_TEMP[index][nr], data->temp[index][nr]);
nr               1386 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1388 drivers/hwmon/w83795.c 	long temp = temp_from_reg(data->dts_ext[nr]);
nr               1399 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1408 drivers/hwmon/w83795.c 	data->dts_ext[nr] = temp_to_reg(tmp, -128, 127);
nr               1409 drivers/hwmon/w83795.c 	w83795_write(client, W83795_REG_DTS_EXT(nr), data->dts_ext[nr]);
nr               1479 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1482 drivers/hwmon/w83795.c 	u16 val = data->in[index][nr];
nr               1485 drivers/hwmon/w83795.c 	switch (nr) {
nr               1496 drivers/hwmon/w83795.c 		val |= (data->in_lsb[lsb_idx][nr] >>
nr               1514 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1533 drivers/hwmon/w83795.c 	tmp = w83795_read(client, IN_LSB_REG(lsb_idx, nr));
nr               1536 drivers/hwmon/w83795.c 	w83795_write(client, IN_LSB_REG(lsb_idx, nr), tmp);
nr               1537 drivers/hwmon/w83795.c 	data->in_lsb[lsb_idx][nr] = tmp;
nr               1540 drivers/hwmon/w83795.c 	w83795_write(client, W83795_REG_IN[index][nr], tmp);
nr               1541 drivers/hwmon/w83795.c 	data->in[index][nr] = tmp;
nr               1554 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1556 drivers/hwmon/w83795.c 	u16 val = data->setup_pwm[nr];
nr               1558 drivers/hwmon/w83795.c 	switch (nr) {
nr               1574 drivers/hwmon/w83795.c 	int nr = sensor_attr->nr;
nr               1582 drivers/hwmon/w83795.c 	switch (nr) {
nr               1595 drivers/hwmon/w83795.c 	data->setup_pwm[nr] = val;
nr               1596 drivers/hwmon/w83795.c 	w83795_write(client, W83795_REG_SETUP_PWM(nr), val);
nr                 34 drivers/hwmon/w83l786ng.c #define W83L786NG_REG_IN_MIN(nr)	(0x2C + (nr) * 2)
nr                 35 drivers/hwmon/w83l786ng.c #define W83L786NG_REG_IN_MAX(nr)	(0x2B + (nr) * 2)
nr                 36 drivers/hwmon/w83l786ng.c #define W83L786NG_REG_IN(nr)		((nr) + 0x20)
nr                 38 drivers/hwmon/w83l786ng.c #define W83L786NG_REG_FAN(nr)		((nr) + 0x28)
nr                 39 drivers/hwmon/w83l786ng.c #define W83L786NG_REG_FAN_MIN(nr)	((nr) + 0x3B)
nr                227 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                229 drivers/hwmon/w83l786ng.c 	return sprintf(buf, "%d\n", IN_FROM_REG(data->reg[nr])); \
nr                241 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                249 drivers/hwmon/w83l786ng.c 	data->in_##reg[nr] = IN_TO_REG(val); \
nr                250 drivers/hwmon/w83l786ng.c 	w83l786ng_write_value(client, W83L786NG_REG_IN_##REG(nr), \
nr                251 drivers/hwmon/w83l786ng.c 			      data->in_##reg[nr]); \
nr                281 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                284 drivers/hwmon/w83l786ng.c 		FAN_FROM_REG(data->reg[nr], DIV_FROM_REG(data->fan_div[nr]))); \
nr                294 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                305 drivers/hwmon/w83l786ng.c 	data->fan_min[nr] = FAN_TO_REG(val, DIV_FROM_REG(data->fan_div[nr]));
nr                306 drivers/hwmon/w83l786ng.c 	w83l786ng_write_value(client, W83L786NG_REG_FAN_MIN(nr),
nr                307 drivers/hwmon/w83l786ng.c 			      data->fan_min[nr]);
nr                317 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                319 drivers/hwmon/w83l786ng.c 	return sprintf(buf, "%u\n", DIV_FROM_REG(data->fan_div[nr]));
nr                332 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                351 drivers/hwmon/w83l786ng.c 	min = FAN_FROM_REG(data->fan_min[nr], DIV_FROM_REG(data->fan_div[nr]));
nr                353 drivers/hwmon/w83l786ng.c 	data->fan_div[nr] = DIV_TO_REG(val);
nr                355 drivers/hwmon/w83l786ng.c 	switch (nr) {
nr                369 drivers/hwmon/w83l786ng.c 	tmp_fan_div = (data->fan_div[nr] << new_shift) & ~keep_mask;
nr                375 drivers/hwmon/w83l786ng.c 	data->fan_min[nr] = FAN_TO_REG(min, DIV_FROM_REG(data->fan_div[nr]));
nr                376 drivers/hwmon/w83l786ng.c 	w83l786ng_write_value(client, W83L786NG_REG_FAN_MIN(nr),
nr                377 drivers/hwmon/w83l786ng.c 			      data->fan_min[nr]);
nr                410 drivers/hwmon/w83l786ng.c 	int nr = sensor_attr->nr;
nr                413 drivers/hwmon/w83l786ng.c 	return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[nr][index]));
nr                422 drivers/hwmon/w83l786ng.c 	int nr = sensor_attr->nr;
nr                434 drivers/hwmon/w83l786ng.c 	data->temp[nr][index] = TEMP_TO_REG(val);
nr                435 drivers/hwmon/w83l786ng.c 	w83l786ng_write_value(client, W83L786NG_REG_TEMP[nr][index],
nr                436 drivers/hwmon/w83l786ng.c 			      data->temp[nr][index]);
nr                466 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index; \
nr                467 drivers/hwmon/w83l786ng.c 	return sprintf(buf, "%d\n", data->reg[nr]); \
nr                478 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                492 drivers/hwmon/w83l786ng.c 	data->pwm_mode[nr] = val;
nr                494 drivers/hwmon/w83l786ng.c 	reg &= ~(1 << W83L786NG_PWM_MODE_SHIFT[nr]);
nr                496 drivers/hwmon/w83l786ng.c 		reg |= 1 << W83L786NG_PWM_MODE_SHIFT[nr];
nr                506 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                519 drivers/hwmon/w83l786ng.c 	data->pwm[nr] = val * 0x11;
nr                520 drivers/hwmon/w83l786ng.c 	val |= w83l786ng_read_value(client, W83L786NG_REG_PWM[nr]) & 0xf0;
nr                521 drivers/hwmon/w83l786ng.c 	w83l786ng_write_value(client, W83L786NG_REG_PWM[nr], val);
nr                530 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                546 drivers/hwmon/w83l786ng.c 	data->pwm_enable[nr] = val;
nr                547 drivers/hwmon/w83l786ng.c 	reg &= ~(0x03 << W83L786NG_PWM_ENABLE_SHIFT[nr]);
nr                548 drivers/hwmon/w83l786ng.c 	reg |= (val - 1) << W83L786NG_PWM_ENABLE_SHIFT[nr];
nr                577 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                579 drivers/hwmon/w83l786ng.c 	return sprintf(buf, "%ld\n", (long)data->tolerance[nr]);
nr                586 drivers/hwmon/w83l786ng.c 	int nr = to_sensor_dev_attr(attr)->index;
nr                599 drivers/hwmon/w83l786ng.c 	    W83L786NG_REG_TOLERANCE) & ((nr == 1) ? 0x0f : 0xf0);
nr                602 drivers/hwmon/w83l786ng.c 	data->tolerance[nr] = tol_tmp;
nr                603 drivers/hwmon/w83l786ng.c 	if (nr == 1)
nr                 80 drivers/i2c/busses/i2c-acorn.c 	.nr			= 0,
nr               1046 drivers/i2c/busses/i2c-aspeed.c 		 bus->adap.nr, irq);
nr                240 drivers/i2c/busses/i2c-at91-core.c 	dev->adapter.nr = pdev->id;
nr                320 drivers/i2c/busses/i2c-au1550.c 	priv->adap.nr = pdev->id;
nr                244 drivers/i2c/busses/i2c-cbus-gpio.c 	adapter->nr		= pdev->id;
nr                658 drivers/i2c/busses/i2c-cpm.c 	cpm->adap.nr = (data && len == 4) ? be32_to_cpup(data) : -1;
nr                879 drivers/i2c/busses/i2c-davinci.c 	adap->nr = pdev->id;
nr                291 drivers/i2c/busses/i2c-designware-pcidrv.c 	adap->nr = controller->bus_num;
nr                371 drivers/i2c/busses/i2c-designware-platdrv.c 	adap->nr = -1;
nr                797 drivers/i2c/busses/i2c-eg20t.c 		pch_adap->nr = i;
nr                411 drivers/i2c/busses/i2c-emev2.c 	dev_info(&pdev->dev, "Added i2c controller %d, irq %d\n", priv->adap.nr,
nr                380 drivers/i2c/busses/i2c-exynos5.c 		writel(HSI2C_MASTER_ID(MASTER_ID(i2c->adap.nr)),
nr                448 drivers/i2c/busses/i2c-gpio.c 	adap->nr = pdev->id;
nr                408 drivers/i2c/busses/i2c-highlander.c 	adap->nr = pdev->id;
nr               1419 drivers/i2c/busses/i2c-i801.c 	gpio_data.parent = priv->adapter.nr;
nr               1384 drivers/i2c/busses/i2c-img-scb.c 	i2c->adap.nr = pdev->id;
nr               1096 drivers/i2c/busses/i2c-imx.c 	i2c_imx->adapter.nr		= pdev->id;
nr                486 drivers/i2c/busses/i2c-iop3xx.c 	new_adapter->nr = pdev->id;
nr                319 drivers/i2c/busses/i2c-kempld.c 		i2c->adap.nr = i2c_bus;
nr                489 drivers/i2c/busses/i2c-mlxcpld.c 	.nr		= MLXCPLD_I2C_BUS_NUM,
nr                519 drivers/i2c/busses/i2c-mlxcpld.c 		mlxcpld_i2c_adapter.nr = pdev->id;
nr                938 drivers/i2c/busses/i2c-mv64xxx.c 	drv_data->adapter.nr = pd->id;
nr                858 drivers/i2c/busses/i2c-mxs.c 	adap->nr = pdev->id;
nr               1504 drivers/i2c/busses/i2c-omap.c 	adap->nr = pdev->id;
nr               1509 drivers/i2c/busses/i2c-omap.c 	dev_info(omap->dev, "bus %d rev%d.%d at %d kHz\n", adap->nr,
nr                164 drivers/i2c/busses/i2c-pca-platform.c 	i2c->adap.nr = pdev->id;
nr                658 drivers/i2c/busses/i2c-pnx.c 	alg_data->adapter.nr = pdev->id;
nr                210 drivers/i2c/busses/i2c-puv3.c 	adapter->nr = pdev->id;
nr               1171 drivers/i2c/busses/i2c-pxa.c 	i2c->adap.nr = -1;
nr               1227 drivers/i2c/busses/i2c-pxa.c 	i2c->adap.nr = dev->id;
nr                949 drivers/i2c/busses/i2c-rcar.c 	adap->nr = pdev->id;
nr               1169 drivers/i2c/busses/i2c-s3c2410.c 	i2c->adap.nr = i2c->pdata->bus_num;
nr                311 drivers/i2c/busses/i2c-sh7760.c 		dev_err(&adap->dev, "sh7760-i2c%d: bus busy!\n", adap->nr);
nr                476 drivers/i2c/busses/i2c-sh7760.c 	id->adap.nr = pdev->id;
nr                890 drivers/i2c/busses/i2c-sh_mobile.c 	adap->nr = dev->id;
nr                904 drivers/i2c/busses/i2c-sh_mobile.c 	dev_info(&dev->dev, "I2C adapter %d, bus speed %lu Hz\n", adap->nr, pd->bus_speed);
nr                148 drivers/i2c/busses/i2c-sibyte.c 		.nr		= 0,
nr                156 drivers/i2c/busses/i2c-sibyte.c 		.nr		= 1,
nr                336 drivers/i2c/busses/i2c-sirf.c 	adap->nr = pdev->id;
nr                448 drivers/i2c/busses/i2c-sprd.c 			 i2c_dev->adap.nr);
nr                455 drivers/i2c/busses/i2c-sprd.c 			 i2c_dev->adap.nr);
nr                465 drivers/i2c/busses/i2c-sprd.c 		i2c_dev->adap.nr, i2c_dev->src_clk);
nr                470 drivers/i2c/busses/i2c-sprd.c 			i2c_dev->adap.nr);
nr                512 drivers/i2c/busses/i2c-sprd.c 	i2c_dev->adap.nr = pdev->id;
nr               1984 drivers/i2c/busses/i2c-stm32f7.c 	dev_info(i2c_dev->dev, "STM32F7 I2C-%d bus adapter\n", adap->nr);
nr                912 drivers/i2c/busses/i2c-stu300.c 	adap->nr = bus_nr;
nr                602 drivers/i2c/busses/i2c-synquacer.c 	i2c->adapter.nr = pdev->id;
nr               1660 drivers/i2c/busses/i2c-tegra.c 	i2c_dev->adapter.nr = pdev->id;
nr                 89 drivers/i2c/busses/i2c-versatile.c 	i2c->adap.nr = dev->id;
nr                559 drivers/i2c/busses/i2c-xlp9xx.c 	dev_dbg(&pdev->dev, "I2C bus:%d added\n", priv->adapter.nr);
nr                429 drivers/i2c/busses/i2c-xlr.c 	priv->adap.nr		= pdev->id;
nr                566 drivers/i2c/busses/i2c-zx2967.c 	i2c->adap.nr = pdev->id;
nr               1214 drivers/i2c/i2c-core-base.c 		if (devinfo->busnum == adapter->nr
nr               1357 drivers/i2c/i2c-core-base.c 	dev_set_name(&adap->dev, "i2c-%d", adap->nr);
nr               1391 drivers/i2c/i2c-core-base.c 	if (adap->nr < __i2c_first_dynamic_bus_num)
nr               1407 drivers/i2c/i2c-core-base.c 	idr_remove(&i2c_adapter_idr, adap->nr);
nr               1424 drivers/i2c/i2c-core-base.c 	id = idr_alloc(&i2c_adapter_idr, adap, adap->nr, adap->nr + 1, GFP_KERNEL);
nr               1454 drivers/i2c/i2c-core-base.c 			adapter->nr = id;
nr               1466 drivers/i2c/i2c-core-base.c 	adapter->nr = id;
nr               1497 drivers/i2c/i2c-core-base.c 	if (adap->nr == -1) /* -1 means dynamically assign bus id */
nr               1557 drivers/i2c/i2c-core-base.c 	found = idr_find(&i2c_adapter_idr, adap->nr);
nr               1616 drivers/i2c/i2c-core-base.c 	idr_remove(&i2c_adapter_idr, adap->nr);
nr               2332 drivers/i2c/i2c-core-base.c struct i2c_adapter *i2c_get_adapter(int nr)
nr               2337 drivers/i2c/i2c-core-base.c 	adapter = idr_find(&i2c_adapter_idr, nr);
nr                 57 drivers/i2c/i2c-dev.c 		if (i2c_dev->adap->nr == index)
nr                 70 drivers/i2c/i2c-dev.c 	if (adap->nr >= I2C_MINORS) {
nr                 72 drivers/i2c/i2c-dev.c 		       adap->nr);
nr                599 drivers/i2c/i2c-dev.c 	snprintf(client->name, I2C_NAME_SIZE, "i2c-dev %d", adap->nr);
nr                659 drivers/i2c/i2c-dev.c 	i2c_dev->dev.devt = MKDEV(I2C_MAJOR, adap->nr);
nr                663 drivers/i2c/i2c-dev.c 	dev_set_name(&i2c_dev->dev, "i2c-%d", adap->nr);
nr                672 drivers/i2c/i2c-dev.c 		 adap->name, adap->nr);
nr                685 drivers/i2c/i2c-dev.c 	i2c_dev = i2c_dev_get_by_minor(adap->nr);
nr                402 drivers/i2c/i2c-mux.c 		priv->adap.nr = force_nr;
nr                192 drivers/i2c/muxes/i2c-mux-gpio.c 		u32 nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0;
nr                195 drivers/i2c/muxes/i2c-mux-gpio.c 		ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class);
nr                163 drivers/i2c/muxes/i2c-mux-reg.c 	int i, ret, nr;
nr                220 drivers/i2c/muxes/i2c-mux-reg.c 		nr = mux->data.base_nr ? (mux->data.base_nr + i) : 0;
nr                223 drivers/i2c/muxes/i2c-mux-reg.c 		ret = i2c_mux_add_adapter(muxc, nr, mux->data.values[i], class);
nr                100 drivers/iio/adc/ad7266.c static void ad7266_select_input(struct ad7266_state *st, unsigned int nr)
nr                109 drivers/iio/adc/ad7266.c 		nr >>= 1;
nr                112 drivers/iio/adc/ad7266.c 		nr |= 1;
nr                115 drivers/iio/adc/ad7266.c 		nr &= ~1;
nr                120 drivers/iio/adc/ad7266.c 		gpio_set_value(st->gpios[i].gpio, (bool)(nr & BIT(i)));
nr                127 drivers/iio/adc/ad7266.c 	unsigned int nr = find_first_bit(scan_mask, indio_dev->masklength);
nr                129 drivers/iio/adc/ad7266.c 	ad7266_select_input(st, nr);
nr                311 drivers/iio/light/lm3533-als.c static inline u8 lm3533_als_get_threshold_reg(unsigned nr, bool raising)
nr                315 drivers/iio/light/lm3533-als.c 	return LM3533_REG_ALS_BOUNDARY_BASE + 2 * nr + offset;
nr                318 drivers/iio/light/lm3533-als.c static int lm3533_als_get_threshold(struct iio_dev *indio_dev, unsigned nr,
nr                325 drivers/iio/light/lm3533-als.c 	if (nr > LM3533_ALS_THRESH_MAX)
nr                328 drivers/iio/light/lm3533-als.c 	reg = lm3533_als_get_threshold_reg(nr, raising);
nr                336 drivers/iio/light/lm3533-als.c static int lm3533_als_set_threshold(struct iio_dev *indio_dev, unsigned nr,
nr                344 drivers/iio/light/lm3533-als.c 	if (nr > LM3533_ALS_THRESH_MAX)
nr                347 drivers/iio/light/lm3533-als.c 	reg = lm3533_als_get_threshold_reg(nr, raising);
nr                348 drivers/iio/light/lm3533-als.c 	reg2 = lm3533_als_get_threshold_reg(nr, !raising);
nr                377 drivers/iio/light/lm3533-als.c static int lm3533_als_get_hysteresis(struct iio_dev *indio_dev, unsigned nr,
nr                385 drivers/iio/light/lm3533-als.c 	if (nr > LM3533_ALS_THRESH_MAX)
nr                389 drivers/iio/light/lm3533-als.c 	ret = lm3533_als_get_threshold(indio_dev, nr, false, &falling);
nr                392 drivers/iio/light/lm3533-als.c 	ret = lm3533_als_get_threshold(indio_dev, nr, true, &raising);
nr                 36 drivers/infiniband/core/mr_pool.c int ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr,
nr                 43 drivers/infiniband/core/mr_pool.c 	for (i = 0; i < nr; i++) {
nr                 49 drivers/infiniband/hw/cxgb3/cxio_resource.c 				   u32 nr, u32 skip_low,
nr                 58 drivers/infiniband/hw/cxgb3/cxio_resource.c 	if (kfifo_alloc(fifo, nr * sizeof(u32), GFP_KERNEL))
nr                 68 drivers/infiniband/hw/cxgb3/cxio_resource.c 		for (i = skip_low + RANDOM_SIZE; i < nr - skip_high; i++) {
nr                 85 drivers/infiniband/hw/cxgb3/cxio_resource.c 		for (i = skip_low; i < nr - skip_high; i++)
nr                 96 drivers/infiniband/hw/cxgb3/cxio_resource.c 				   u32 nr, u32 skip_low, u32 skip_high)
nr                 98 drivers/infiniband/hw/cxgb3/cxio_resource.c 	return (__cxio_init_resource_fifo(fifo, fifo_lock, nr, skip_low,
nr                104 drivers/infiniband/hw/cxgb3/cxio_resource.c 				   u32 nr, u32 skip_low, u32 skip_high)
nr                107 drivers/infiniband/hw/cxgb3/cxio_resource.c 	return (__cxio_init_resource_fifo(fifo, fifo_lock, nr, skip_low,
nr                120 drivers/infiniband/hw/hfi1/msix.c 	unsigned long nr;
nr                129 drivers/infiniband/hw/hfi1/msix.c 	nr = find_first_zero_bit(dd->msix_info.in_use_msix,
nr                131 drivers/infiniband/hw/hfi1/msix.c 	if (nr < dd->msix_info.max_requested)
nr                132 drivers/infiniband/hw/hfi1/msix.c 		__set_bit(nr, dd->msix_info.in_use_msix);
nr                135 drivers/infiniband/hw/hfi1/msix.c 	if (nr == dd->msix_info.max_requested)
nr                142 drivers/infiniband/hw/hfi1/msix.c 		if (nr) {
nr                144 drivers/infiniband/hw/hfi1/msix.c 			__clear_bit(nr, dd->msix_info.in_use_msix);
nr                147 drivers/infiniband/hw/hfi1/msix.c 				   nr);
nr                169 drivers/infiniband/hw/hfi1/msix.c 	irq = pci_irq_vector(dd->pcidev, nr);
nr                170 drivers/infiniband/hw/hfi1/msix.c 	ret = pci_request_irq(dd->pcidev, nr, handler, thread, arg, name);
nr                176 drivers/infiniband/hw/hfi1/msix.c 		__clear_bit(nr, dd->msix_info.in_use_msix);
nr                185 drivers/infiniband/hw/hfi1/msix.c 	me = &dd->msix_info.msix_entries[nr];
nr                195 drivers/infiniband/hw/hfi1/msix.c 	return nr;
nr                205 drivers/infiniband/hw/hfi1/msix.c 	int nr;
nr                207 drivers/infiniband/hw/hfi1/msix.c 	nr = msix_request_irq(rcd->dd, rcd, receive_context_interrupt,
nr                209 drivers/infiniband/hw/hfi1/msix.c 	if (nr < 0)
nr                210 drivers/infiniband/hw/hfi1/msix.c 		return nr;
nr                218 drivers/infiniband/hw/hfi1/msix.c 	rcd->msix_intr = nr;
nr                219 drivers/infiniband/hw/hfi1/msix.c 	remap_intr(rcd->dd, IS_RCVAVAIL_START + rcd->ctxt, nr);
nr                231 drivers/infiniband/hw/hfi1/msix.c 	int nr;
nr                233 drivers/infiniband/hw/hfi1/msix.c 	nr = msix_request_irq(sde->dd, sde, sdma_interrupt, NULL,
nr                235 drivers/infiniband/hw/hfi1/msix.c 	if (nr < 0)
nr                236 drivers/infiniband/hw/hfi1/msix.c 		return nr;
nr                237 drivers/infiniband/hw/hfi1/msix.c 	sde->msix_intr = nr;
nr                238 drivers/infiniband/hw/hfi1/msix.c 	remap_sdma_interrupts(sde->dd, sde->this_idx, nr);
nr               3292 drivers/infiniband/hw/hfi1/sdma.c 	int nr;
nr               3300 drivers/infiniband/hw/hfi1/sdma.c 		nr = ffz(READ_ONCE(sde->ahg_bits));
nr               3301 drivers/infiniband/hw/hfi1/sdma.c 		if (nr > 31) {
nr               3305 drivers/infiniband/hw/hfi1/sdma.c 		oldbit = test_and_set_bit(nr, &sde->ahg_bits);
nr               3310 drivers/infiniband/hw/hfi1/sdma.c 	trace_hfi1_ahg_allocate(sde, nr);
nr               3311 drivers/infiniband/hw/hfi1/sdma.c 	return nr;
nr                714 drivers/infiniband/hw/hfi1/tid_rdma.c 	int nr;
nr                721 drivers/infiniband/hw/hfi1/tid_rdma.c 	nr = ffz(rcd->flow_mask);
nr                724 drivers/infiniband/hw/hfi1/tid_rdma.c 	if (nr > (RXE_NUM_TID_FLOWS - 1))
nr                726 drivers/infiniband/hw/hfi1/tid_rdma.c 	set_bit(nr, &rcd->flow_mask);
nr                727 drivers/infiniband/hw/hfi1/tid_rdma.c 	return nr;
nr               1557 drivers/infiniband/hw/hns/hns_roce_hem.c 	int nr = 0;
nr               1561 drivers/infiniband/hw/hns/hns_roce_hem.c 			nr = offset - hem->start;
nr               1562 drivers/infiniband/hw/hns/hns_roce_hem.c 			cpu_base = hem->addr + nr * BA_BYTE_LEN;
nr               1563 drivers/infiniband/hw/hns/hns_roce_hem.c 			phy_base = hem->dma_addr + nr * BA_BYTE_LEN;
nr               1564 drivers/infiniband/hw/hns/hns_roce_hem.c 			nr = hem->end + 1 - offset;
nr               1570 drivers/infiniband/hw/hns/hns_roce_hem.c 		*mtt_cnt = nr;
nr                291 drivers/infiniband/sw/rdmavt/qp.c 	u32 nr = page & (BITS_PER_LONG - 1);
nr                293 drivers/infiniband/sw/rdmavt/qp.c 	if (!test_and_set_bit(nr, &wss->entries[entry]))
nr               1143 drivers/input/evdev.c #define EVIOC_MASK_SIZE(nr)	((nr) & ~(_IOC_SIZEMASK << _IOC_SIZESHIFT))
nr                345 drivers/input/input-mt.c static void find_reduced_matrix(int *w, int nr, int nc, int nrc, int mu)
nr                350 drivers/input/input-mt.c 		for (i = 0; i < nr; i++)
nr                351 drivers/input/input-mt.c 			adjust_dual(w + i, nr, w + i + nrc, nr <= nc, mu);
nr                353 drivers/input/input-mt.c 		for (i = 0; i < nrc; i += nr)
nr                354 drivers/input/input-mt.c 			sum += adjust_dual(w + i, 1, w + i + nr, nc <= nr, mu);
nr               1379 drivers/input/misc/ims-pcu.c 	u8 nr;
nr               1400 drivers/input/misc/ims-pcu.c 	return scnprintf(buf, PAGE_SIZE, "%d\n", !!(data & (1 << attr->nr)));
nr               1427 drivers/input/misc/ims-pcu.c 			data |= 1U << attr->nr;
nr               1429 drivers/input/misc/ims-pcu.c 			data &= ~(1U << attr->nr);
nr               1444 drivers/input/misc/ims-pcu.c 	.nr = _nr,							\
nr               1278 drivers/input/mouse/cyapa.c 	sprintf(cyapa->phys, "i2c-%d-%04x/input0", client->adapter->nr,
nr                159 drivers/input/serio/serport.c static ssize_t serport_ldisc_read(struct tty_struct * tty, struct file * file, unsigned char __user * buf, size_t nr)
nr               3071 drivers/input/touchscreen/atmel_mxt_ts.c 		 client->adapter->nr, client->addr);
nr               1074 drivers/input/touchscreen/wdt87xx_i2c.c 		client->adapter->nr, client->irq);
nr               1089 drivers/input/touchscreen/wdt87xx_i2c.c 		 client->adapter->nr, client->addr);
nr                295 drivers/iommu/iommu.c 	struct iommu_resv_region *iter, *tmp, *nr, *top;
nr                298 drivers/iommu/iommu.c 	nr = iommu_alloc_resv_region(new->start, new->length,
nr                300 drivers/iommu/iommu.c 	if (!nr)
nr                305 drivers/iommu/iommu.c 		if (nr->start < iter->start ||
nr                306 drivers/iommu/iommu.c 		    (nr->start == iter->start && nr->type <= iter->type))
nr                309 drivers/iommu/iommu.c 	list_add_tail(&nr->list, &iter->list);
nr                 37 drivers/irqchip/alphascale_asm9260-icoll.h #define ASM9260_BM_LEVELn(nr)				BIT(nr)
nr                133 drivers/irqchip/irq-gic-common.c void gic_cpu_config(void __iomem *base, int nr, void (*sync_access)(void))
nr                141 drivers/irqchip/irq-gic-common.c 	for (i = 0; i < nr; i += 32) {
nr                151 drivers/irqchip/irq-gic-common.c 	for (i = 0; i < nr; i += 4)
nr                 25 drivers/irqchip/irq-gic-common.h void gic_cpu_config(void __iomem *base, int nr, void (*sync_access)(void));
nr                251 drivers/isdn/hardware/mISDN/avmfritz.c 	    (fc->bch[0].nr & channel))
nr                254 drivers/isdn/hardware/mISDN/avmfritz.c 		 (fc->bch[1].nr & channel))
nr                279 drivers/isdn/hardware/mISDN/avmfritz.c 	hdlc = &fc->hdlc[(bch->nr - 1) & 1];
nr                280 drivers/isdn/hardware/mISDN/avmfritz.c 	pr_debug("%s: hdlc %c wr%x ctrl %x\n", fc->name, '@' + bch->nr,
nr                284 drivers/isdn/hardware/mISDN/avmfritz.c 		__write_ctrl_pciv2(fc, hdlc, bch->nr);
nr                287 drivers/isdn/hardware/mISDN/avmfritz.c 		__write_ctrl_pci(fc, hdlc, bch->nr);
nr                342 drivers/isdn/hardware/mISDN/avmfritz.c 	hdlc = &fc->hdlc[(bch->nr - 1) & 1];
nr                344 drivers/isdn/hardware/mISDN/avmfritz.c 		 '@' + bch->nr, bch->state, protocol, bch->nr);
nr                406 drivers/isdn/hardware/mISDN/avmfritz.c 				   fc->name, bch->nr, count);
nr                413 drivers/isdn/hardware/mISDN/avmfritz.c 		addr = fc->addr + (bch->nr == 2 ?
nr                417 drivers/isdn/hardware/mISDN/avmfritz.c 		outl(bch->nr == 2 ? AVM_HDLC_2 : AVM_HDLC_1, fc->addr);
nr                430 drivers/isdn/hardware/mISDN/avmfritz.c 			 bch->nr, fc->name, count);
nr                445 drivers/isdn/hardware/mISDN/avmfritz.c 	idx = (bch->nr - 1) & 1;
nr                470 drivers/isdn/hardware/mISDN/avmfritz.c 		pr_debug("%s.B%d: %d/%d/%d", fc->name, bch->nr, count,
nr                474 drivers/isdn/hardware/mISDN/avmfritz.c 		pr_debug("%s.B%d: fillempty %d\n", fc->name, bch->nr, count);
nr                478 drivers/isdn/hardware/mISDN/avmfritz.c 		__write_ctrl_pciv2(fc, hdlc, bch->nr);
nr                479 drivers/isdn/hardware/mISDN/avmfritz.c 		addr = fc->addr + (bch->nr == 2 ?
nr                482 drivers/isdn/hardware/mISDN/avmfritz.c 		__write_ctrl_pci(fc, hdlc, bch->nr);
nr                501 drivers/isdn/hardware/mISDN/avmfritz.c 			 bch->nr, fc->name, count);
nr                530 drivers/isdn/hardware/mISDN/avmfritz.c 	hdlc = &fc->hdlc[(bch->nr - 1) & 1];
nr                531 drivers/isdn/hardware/mISDN/avmfritz.c 	pr_debug("%s: ch%d stat %#x\n", fc->name, bch->nr, stat);
nr                542 drivers/isdn/hardware/mISDN/avmfritz.c 				   fc->name, bch->nr, stat);
nr                577 drivers/isdn/hardware/mISDN/avmfritz.c 		pr_warning("%s: ch%d stat %x XDU %s\n", fc->name, bch->nr,
nr               1046 drivers/isdn/hardware/mISDN/avmfritz.c 		card->bch[i].nr = i + 1;
nr               1056 drivers/isdn/hardware/mISDN/avmfritz.c 		card->bch[i].ch.nr = i + 1;
nr               2252 drivers/isdn/hardware/mISDN/hfcmulti.c 				   hc->id + 1, bch->nr, Zsize);
nr               3580 drivers/isdn/hardware/mISDN/hfcmulti.c 			       __func__, bch->nr, hc->chan[bch->slot].rx_off);
nr               4837 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->nr = ch;
nr               4844 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.nr = ch;
nr               4848 drivers/isdn/hardware/mISDN/hfcmulti.c 		set_channelmap(bch->nr, dch->dev.channelmap);
nr               4910 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->nr = ch + 1;
nr               4917 drivers/isdn/hardware/mISDN/hfcmulti.c 		bch->ch.nr = ch + 1;
nr               4921 drivers/isdn/hardware/mISDN/hfcmulti.c 		set_channelmap(bch->nr, dch->dev.channelmap);
nr                309 drivers/isdn/hardware/mISDN/hfcpci.c 	    (hc->bch[0].nr & channel))
nr                312 drivers/isdn/hardware/mISDN/hfcpci.c 		 (hc->bch[1].nr & channel))
nr                570 drivers/isdn/hardware/mISDN/hfcpci.c 			   bch->nr, fcnt_rx);
nr                607 drivers/isdn/hardware/mISDN/hfcpci.c 	if ((bch->nr & 2) && (!hc->hw.bswapped)) {
nr                623 drivers/isdn/hardware/mISDN/hfcpci.c 			       bch->nr, rxbz->f1, rxbz->f2);
nr                633 drivers/isdn/hardware/mISDN/hfcpci.c 			       bch->nr, le16_to_cpu(zp->z1),
nr                759 drivers/isdn/hardware/mISDN/hfcpci.c 	if ((bch->nr & 2) && (!hc->hw.bswapped)) {
nr                772 drivers/isdn/hardware/mISDN/hfcpci.c 			       "cnt(%d) z1(%x) z2(%x)\n", bch->nr, count,
nr                850 drivers/isdn/hardware/mISDN/hfcpci.c 		       __func__, bch->nr, bz->f1, bz->f2,
nr                869 drivers/isdn/hardware/mISDN/hfcpci.c 		       bch->nr, count, maxlen);
nr               1246 drivers/isdn/hardware/mISDN/hfcpci.c 		       bch->state, protocol, bch->nr, bc);
nr               1282 drivers/isdn/hardware/mISDN/hfcpci.c 		bch->nr = bc;
nr               1304 drivers/isdn/hardware/mISDN/hfcpci.c 		if (bch->nr & 2)
nr               1310 drivers/isdn/hardware/mISDN/hfcpci.c 		bch->nr = bc;
nr               1316 drivers/isdn/hardware/mISDN/hfcpci.c 		bch->nr = bc;
nr               1351 drivers/isdn/hardware/mISDN/hfcpci.c 		bch->nr = bc;
nr               1437 drivers/isdn/hardware/mISDN/hfcpci.c 		       bch->state, protocol, bch->nr, chan);
nr               1438 drivers/isdn/hardware/mISDN/hfcpci.c 	if (bch->nr != chan) {
nr               1441 drivers/isdn/hardware/mISDN/hfcpci.c 		       bch->nr, chan);
nr               1512 drivers/isdn/hardware/mISDN/hfcpci.c 	mode_hfcpci(bch, bch->nr, ISDN_P_NONE);
nr               1547 drivers/isdn/hardware/mISDN/hfcpci.c 		mode_hfcpci(bch, bch->nr, ISDN_P_NONE);
nr               1678 drivers/isdn/hardware/mISDN/hfcpci.c 			ret = mode_hfcpci(bch, bch->nr, ch->protocol);
nr               2091 drivers/isdn/hardware/mISDN/hfcpci.c 		card->bch[i].nr = i + 1;
nr               2098 drivers/isdn/hardware/mISDN/hfcpci.c 		card->bch[i].ch.nr = i + 1;
nr                220 drivers/isdn/hardware/mISDN/hfcsusb.c 			hfcsusb_start_endpoint(hw, bch->nr - 1);
nr                689 drivers/isdn/hardware/mISDN/hfcsusb.c 		       bch->nr);
nr                724 drivers/isdn/hardware/mISDN/hfcsusb.c 		write_reg(hw, HFCUSB_FIFO, (bch->nr == 1) ? 0 : 2);
nr                727 drivers/isdn/hardware/mISDN/hfcsusb.c 		write_reg(hw, HFCUSB_FIFO, (bch->nr == 1) ? 1 : 3);
nr                745 drivers/isdn/hardware/mISDN/hfcsusb.c 			handle_led(hw, (bch->nr == 1) ? LED_B1_ON : LED_B2_ON);
nr                747 drivers/isdn/hardware/mISDN/hfcsusb.c 			handle_led(hw, (bch->nr == 1) ? LED_B1_OFF :
nr                845 drivers/isdn/hardware/mISDN/hfcsusb.c 				   hw->name, fifo->bch->nr, len);
nr               1788 drivers/isdn/hardware/mISDN/hfcsusb.c 		       hw->name, __func__, bch->nr);
nr               1794 drivers/isdn/hardware/mISDN/hfcsusb.c 	hfcsusb_stop_endpoint(hw, bch->nr - 1);
nr               1861 drivers/isdn/hardware/mISDN/hfcsusb.c 		hw->bch[i].nr = i + 1;
nr               1868 drivers/isdn/hardware/mISDN/hfcsusb.c 		hw->bch[i].ch.nr = i + 1;
nr                 19 drivers/isdn/hardware/mISDN/isar.h 	u8			nr;
nr                885 drivers/isdn/hardware/mISDN/mISDNipac.c 		pr_debug("%s: B%1d CEC %d us\n", hx->ip->name, hx->bch.nr,
nr                888 drivers/isdn/hardware/mISDN/mISDNipac.c 		pr_info("%s: B%1d CEC timeout\n", hx->ip->name, hx->bch.nr);
nr                905 drivers/isdn/hardware/mISDN/mISDNipac.c 		pr_debug("%s: B%1d XFW %d us\n", hx->ip->name, hx->bch.nr,
nr                908 drivers/isdn/hardware/mISDN/mISDNipac.c 		pr_info("%s: B%1d XFW timeout\n", hx->ip->name, hx->bch.nr);
nr                928 drivers/isdn/hardware/mISDN/mISDNipac.c 	pr_debug("%s: B%1d %d\n", hscx->ip->name, hscx->bch.nr, count);
nr                940 drivers/isdn/hardware/mISDN/mISDNipac.c 			   hscx->ip->name, hscx->bch.nr, count);
nr                956 drivers/isdn/hardware/mISDN/mISDNipac.c 			 hscx->bch.nr, hscx->ip->name, count);
nr                985 drivers/isdn/hardware/mISDN/mISDNipac.c 		pr_debug("%s: B%1d %d/%d/%d\n", hscx->ip->name, hscx->bch.nr,
nr               1001 drivers/isdn/hardware/mISDN/mISDNipac.c 			 hscx->bch.nr, hscx->ip->name, count);
nr               1032 drivers/isdn/hardware/mISDN/mISDNipac.c 	pr_debug("%s: B%1d RSTAB %02x\n", hx->ip->name, hx->bch.nr, rstab);
nr               1038 drivers/isdn/hardware/mISDN/mISDNipac.c 					  hx->ip->name, hx->bch.nr);
nr               1043 drivers/isdn/hardware/mISDN/mISDNipac.c 					  hx->ip->name, hx->bch.nr,
nr               1049 drivers/isdn/hardware/mISDN/mISDNipac.c 					  hx->ip->name, hx->bch.nr);
nr               1066 drivers/isdn/hardware/mISDN/mISDNipac.c 			 hx->ip->name, hx->bch.nr, hx->bch.rx_skb->len);
nr               1083 drivers/isdn/hardware/mISDN/mISDNipac.c 		m = (hx->bch.nr & 1) ? IPAC__EXA : IPAC__EXB;
nr               1087 drivers/isdn/hardware/mISDN/mISDNipac.c 				 hx->bch.nr, exirb);
nr               1089 drivers/isdn/hardware/mISDN/mISDNipac.c 	} else if (hx->bch.nr & 2) { /* HSCX B */
nr               1095 drivers/isdn/hardware/mISDN/mISDNipac.c 				 hx->bch.nr, exirb);
nr               1103 drivers/isdn/hardware/mISDN/mISDNipac.c 				 hx->bch.nr, exirb);
nr               1111 drivers/isdn/hardware/mISDN/mISDNipac.c 	pr_debug("%s: B%1d ISTAB %02x\n", hx->ip->name, hx->bch.nr, istab);
nr               1126 drivers/isdn/hardware/mISDN/mISDNipac.c 		pr_debug("%s: B%1d RFO error\n", hx->ip->name, hx->bch.nr);
nr               1141 drivers/isdn/hardware/mISDN/mISDNipac.c 			 hx->bch.nr, hx->bch.tx_idx);
nr               1215 drivers/isdn/hardware/mISDN/mISDNipac.c 		 '@' + hscx->bch.nr, hscx->bch.state, bprotocol, hscx->bch.nr);
nr               1217 drivers/isdn/hardware/mISDN/mISDNipac.c 		if (hscx->bch.nr & 1) { /* B1 and ICA */
nr               1597 drivers/isdn/hardware/mISDN/mISDNipac.c 		ipac->hscx[i].bch.nr = i + 1;
nr               1603 drivers/isdn/hardware/mISDN/mISDNipac.c 		ipac->hscx[i].bch.ch.nr = i + 1;
nr                436 drivers/isdn/hardware/mISDN/mISDNisar.c 				   ch->is->name, ch->bch.nr, ch->is->clsb);
nr                447 drivers/isdn/hardware/mISDN/mISDNisar.c 				   ch->is->name, ch->bch.nr, ch->is->clsb);
nr                580 drivers/isdn/hardware/mISDN/mISDNisar.c 	pr_debug("%s: ch%d  tx_skb %d tx_idx %d\n", ch->is->name, ch->bch.nr,
nr                678 drivers/isdn/hardware/mISDN/mISDNisar.c 		 ch->bch.nr, ch->bch.tx_skb ? ch->bch.tx_skb->len : -1,
nr               1242 drivers/isdn/hardware/mISDN/mISDNisar.c 	if (ch->bch.nr == 2) {
nr               1322 drivers/isdn/hardware/mISDN/mISDNisar.c 		 ch->bch.nr, ch->dpath, ch->bch.state, bprotocol);
nr               1334 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->ctrl(ch->is->hw, HW_DEACT_IND, ch->bch.nr);
nr               1336 drivers/isdn/hardware/mISDN/mISDNisar.c 		ch->is->ctrl(ch->is->hw, HW_ACTIVATE_IND, ch->bch.nr);
nr               1659 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.nr = i + 1;
nr               1661 drivers/isdn/hardware/mISDN/mISDNisar.c 		isar->ch[i].bch.ch.nr = i + 1;
nr                181 drivers/isdn/hardware/mISDN/netjet.c 		 bc->bch.nr, fill, cnt, idx, card->send.idx);
nr                182 drivers/isdn/hardware/mISDN/netjet.c 	if (bc->bch.nr & 2) {
nr                203 drivers/isdn/hardware/mISDN/netjet.c 		 bc->bch.nr, bc->bch.state, protocol);
nr                373 drivers/isdn/hardware/mISDN/netjet.c 			bc->bch.nr, idx);
nr                384 drivers/isdn/hardware/mISDN/netjet.c 			   card->name, bc->bch.nr, cnt);
nr                394 drivers/isdn/hardware/mISDN/netjet.c 		if (bc->bch.nr & 2)
nr                414 drivers/isdn/hardware/mISDN/netjet.c 					 "B%1d-recv %s %d ", bc->bch.nr,
nr                424 drivers/isdn/hardware/mISDN/netjet.c 					   card->name, bc->bch.nr, cnt);
nr                429 drivers/isdn/hardware/mISDN/netjet.c 				card->name, bc->bch.nr);
nr                432 drivers/isdn/hardware/mISDN/netjet.c 				card->name, bc->bch.nr);
nr                435 drivers/isdn/hardware/mISDN/netjet.c 				card->name, bc->bch.nr, bc->bch.maxlen);
nr                481 drivers/isdn/hardware/mISDN/netjet.c 		 __func__, bc->bch.nr, bc->free, bc->idx, card->send.idx);
nr                497 drivers/isdn/hardware/mISDN/netjet.c 		 __func__, bc->bch.nr, bc->free, bc->txstate,
nr                504 drivers/isdn/hardware/mISDN/netjet.c 		 bc->bch.nr, count);
nr                507 drivers/isdn/hardware/mISDN/netjet.c 	m = (bc->bch.nr & 1) ? 0xffffff00 : 0xffff00ff;
nr                513 drivers/isdn/hardware/mISDN/netjet.c 		v |= (bc->bch.nr & 1) ? (u32)(p[i]) : ((u32)(p[i])) << 8;
nr                518 drivers/isdn/hardware/mISDN/netjet.c 			 bc->bch.nr, card->name, count);
nr                544 drivers/isdn/hardware/mISDN/netjet.c 			 card->name, __func__, bc->bch.nr, count, bc->free,
nr                555 drivers/isdn/hardware/mISDN/netjet.c 			 bc->bch.nr, i, count);
nr                566 drivers/isdn/hardware/mISDN/netjet.c 	m = (bc->bch.nr & 1) ? 0xffffff00 : 0xffff00ff;
nr                569 drivers/isdn/hardware/mISDN/netjet.c 		if (!(bc->bch.nr & 1))
nr                586 drivers/isdn/hardware/mISDN/netjet.c 			v |= (bc->bch.nr & 1) ? n : n << 8;
nr                592 drivers/isdn/hardware/mISDN/netjet.c 			 bc->bch.nr, card->name, count);
nr                633 drivers/isdn/hardware/mISDN/netjet.c 				bc->bch.nr, bc->txstate);
nr                645 drivers/isdn/hardware/mISDN/netjet.c 			 bc->bch.nr, bc->free, bc->idx, card->send.idx);
nr               1018 drivers/isdn/hardware/mISDN/netjet.c 		card->bc[i].bch.nr = i + 1;
nr               1025 drivers/isdn/hardware/mISDN/netjet.c 		card->bc[i].bch.ch.nr = i + 1;
nr                470 drivers/isdn/hardware/mISDN/w6692.c 			   card->name, wch->bch.nr, count);
nr                478 drivers/isdn/hardware/mISDN/w6692.c 			 wch->bch.nr, card->name, count);
nr                522 drivers/isdn/hardware/mISDN/w6692.c 			 wch->bch.nr, card->name, count);
nr                566 drivers/isdn/hardware/mISDN/w6692.c 	card->pctl |= ((wch->bch.nr & 2) ? W_PCTL_PCX : 0);
nr                593 drivers/isdn/hardware/mISDN/w6692.c 		 wch->bch.nr, wch->bch.state, pr);
nr                655 drivers/isdn/hardware/mISDN/w6692.c 	pr_debug("%s: B%d EXIR %02x\n", card->name, wch->bch.nr, stat);
nr                662 drivers/isdn/hardware/mISDN/w6692.c 					 wch->bch.nr, wch->bch.state);
nr                670 drivers/isdn/hardware/mISDN/w6692.c 						 card->name, wch->bch.nr);
nr                677 drivers/isdn/hardware/mISDN/w6692.c 						 card->name, wch->bch.nr);
nr                701 drivers/isdn/hardware/mISDN/w6692.c 				 wch->bch.nr, wch->bch.state);
nr                717 drivers/isdn/hardware/mISDN/w6692.c 				 wch->bch.nr, wch->bch.state);
nr                729 drivers/isdn/hardware/mISDN/w6692.c 				 wch->bch.nr, star);
nr                733 drivers/isdn/hardware/mISDN/w6692.c 				   wch->bch.nr, wch->bch.state);
nr                751 drivers/isdn/hardware/mISDN/w6692.c 			   wch->bch.nr, wch->bch.state);
nr               1297 drivers/isdn/hardware/mISDN/w6692.c 		card->bc[i].bch.nr = i + 1;
nr               1298 drivers/isdn/hardware/mISDN/w6692.c 		card->bc[i].bch.ch.nr = i + 1;
nr                272 drivers/isdn/mISDN/hwchannel.c 			       bch->nr);
nr                478 drivers/isdn/mISDN/hwchannel.c 				   bch->nr, reqlen, len);
nr                512 drivers/isdn/mISDN/hwchannel.c 			   bch->nr, len);
nr               1398 drivers/isdn/mISDN/l1oip_core.c 		bch->nr = i + ch;
nr               1405 drivers/isdn/mISDN/l1oip_core.c 		bch->ch.nr = i + ch;
nr               1408 drivers/isdn/mISDN/l1oip_core.c 		set_channelmap(bch->nr, dch->dev.channelmap);
nr                145 drivers/isdn/mISDN/layer2.c 	mISDN_HEAD_ID(skb) = (l2->ch.nr << 16) | l2->ch.addr;
nr                168 drivers/isdn/mISDN/layer2.c 	hh->id = (l2->ch.nr << 16) | l2->ch.addr;
nr                288 drivers/isdn/mISDN/layer2.c 		       l2->ch.nr, event == EV_L2_T200 ? "T200" : "T203");
nr                293 drivers/isdn/mISDN/layer2.c 	hh->id = l2->ch.nr;
nr                297 drivers/isdn/mISDN/layer2.c 		       l2->ch.nr, event == EV_L2_T200 ? "T200" : "T203");
nr                583 drivers/isdn/mISDN/layer2.c legalnr(struct layer2 *l2, unsigned int nr)
nr                586 drivers/isdn/mISDN/layer2.c 		return ((nr - l2->va) % 128) <= ((l2->vs - l2->va) % 128);
nr                588 drivers/isdn/mISDN/layer2.c 		return ((nr - l2->va) % 8) <= ((l2->vs - l2->va) % 8);
nr                592 drivers/isdn/mISDN/layer2.c setva(struct layer2 *l2, unsigned int nr)
nr                596 drivers/isdn/mISDN/layer2.c 	while (l2->va != nr) {
nr               1155 drivers/isdn/mISDN/layer2.c invoke_retransmission(struct layer2 *l2, unsigned int nr)
nr               1159 drivers/isdn/mISDN/layer2.c 	if (l2->vs != nr) {
nr               1160 drivers/isdn/mISDN/layer2.c 		while (l2->vs != nr) {
nr               1188 drivers/isdn/mISDN/layer2.c 	unsigned int nr;
nr               1205 drivers/isdn/mISDN/layer2.c 		nr = skb->data[1] >> 1;
nr               1208 drivers/isdn/mISDN/layer2.c 		nr = (skb->data[0] >> 5) & 0x7;
nr               1218 drivers/isdn/mISDN/layer2.c 	if (legalnr(l2, nr)) {
nr               1220 drivers/isdn/mISDN/layer2.c 			setva(l2, nr);
nr               1221 drivers/isdn/mISDN/layer2.c 			invoke_retransmission(l2, nr);
nr               1226 drivers/isdn/mISDN/layer2.c 		} else if ((nr == l2->vs) && (typ == RR)) {
nr               1227 drivers/isdn/mISDN/layer2.c 			setva(l2, nr);
nr               1231 drivers/isdn/mISDN/layer2.c 		} else if ((l2->va != nr) || (typ == RNR)) {
nr               1232 drivers/isdn/mISDN/layer2.c 			setva(l2, nr);
nr               1280 drivers/isdn/mISDN/layer2.c 	u_int		ns, nr;
nr               1286 drivers/isdn/mISDN/layer2.c 		nr = (skb->data[i + 1] >> 1) & 0x7f;
nr               1290 drivers/isdn/mISDN/layer2.c 		nr = (skb->data[i] >> 5) & 0x7;
nr               1322 drivers/isdn/mISDN/layer2.c 	if (legalnr(l2, nr)) {
nr               1325 drivers/isdn/mISDN/layer2.c 			if (nr == l2->vs) {
nr               1329 drivers/isdn/mISDN/layer2.c 			} else if (nr != l2->va)
nr               1332 drivers/isdn/mISDN/layer2.c 		setva(l2, nr);
nr               1521 drivers/isdn/mISDN/layer2.c 	unsigned int nr;
nr               1537 drivers/isdn/mISDN/layer2.c 		nr = skb->data[1] >> 1;
nr               1540 drivers/isdn/mISDN/layer2.c 		nr = (skb->data[0] >> 5) & 0x7;
nr               1544 drivers/isdn/mISDN/layer2.c 		if (legalnr(l2, nr)) {
nr               1551 drivers/isdn/mISDN/layer2.c 				setva(l2, nr);
nr               1553 drivers/isdn/mISDN/layer2.c 			invoke_retransmission(l2, nr);
nr               1562 drivers/isdn/mISDN/layer2.c 		if (legalnr(l2, nr))
nr               1563 drivers/isdn/mISDN/layer2.c 			setva(l2, nr);
nr                116 drivers/isdn/mISDN/socket.c 		       __func__, (int)len, flags, _pms(sk)->ch.nr,
nr                139 drivers/isdn/mISDN/socket.c 			maddr->channel = _pms(sk)->ch.nr;
nr                175 drivers/isdn/mISDN/socket.c 		       __func__, (int)len, msg->msg_flags, _pms(sk)->ch.nr,
nr                211 drivers/isdn/mISDN/socket.c 			mISDN_HEAD_ID(skb) = _pms(sk)->ch.nr;
nr                299 drivers/isdn/mISDN/socket.c 				if (bchan->nr == cq.channel) {
nr                565 drivers/isdn/mISDN/socket.c 	maddr->channel = _pms(sk)->ch.nr;
nr                 49 drivers/isdn/mISDN/stack.c 		if (id == ch->nr)
nr                107 drivers/isdn/mISDN/stack.c 						       __func__, ch->nr,
nr                113 drivers/isdn/mISDN/stack.c 				       __func__, ch->nr, ch->addr);
nr                507 drivers/isdn/mISDN/stack.c 	ch->nr = rq.ch->nr;
nr                592 drivers/isdn/mISDN/stack.c 		pch = get_channel4id(ch->st, ch->nr);
nr                249 drivers/isdn/mISDN/tei.c 		if (l2->ch.nr > 63) {
nr                255 drivers/isdn/mISDN/tei.c 		__set_bit(l2->ch.nr, ids);
nr                273 drivers/isdn/mISDN/tei.c 		if (l2->ch.nr == 0)
nr                304 drivers/isdn/mISDN/tei.c 	hh->id = (mgr->ch.nr << 16) | mgr->ch.addr;
nr                830 drivers/isdn/mISDN/tei.c 		l2->ch.nr = id;
nr               1083 drivers/isdn/mISDN/tei.c 		l2->ch.nr = id;
nr               1084 drivers/isdn/mISDN/tei.c 		l2->up->nr = id;
nr               1311 drivers/isdn/mISDN/tei.c 				hhc->id = l2->ch.nr;
nr               1318 drivers/isdn/mISDN/tei.c 						       __func__, l2->ch.nr,
nr               1324 drivers/isdn/mISDN/tei.c 				       __func__, ch->nr, ch->addr);
nr                613 drivers/leds/leds-blinkm.c 					 client->adapter->nr,
nr                630 drivers/leds/leds-blinkm.c 					 client->adapter->nr,
nr                647 drivers/leds/leds-blinkm.c 					 client->adapter->nr,
nr                367 drivers/leds/leds-lp5521.c 				char *buf, int nr)
nr                371 drivers/leds/leds-lp5521.c 	enum lp55xx_engine_mode mode = chip->engines[nr - 1].mode;
nr                389 drivers/leds/leds-lp5521.c 				 const char *buf, size_t len, int nr)
nr                393 drivers/leds/leds-lp5521.c 	struct lp55xx_engine *engine = &chip->engines[nr - 1];
nr                397 drivers/leds/leds-lp5521.c 	chip->engine_idx = nr;
nr                421 drivers/leds/leds-lp5521.c 			     const char *buf, size_t len, int nr)
nr                429 drivers/leds/leds-lp5521.c 	chip->engine_idx = nr;
nr                390 drivers/leds/leds-lp5523.c 				char *buf, int nr)
nr                394 drivers/leds/leds-lp5523.c 	enum lp55xx_engine_mode mode = chip->engines[nr - 1].mode;
nr                412 drivers/leds/leds-lp5523.c 				 const char *buf, size_t len, int nr)
nr                416 drivers/leds/leds-lp5523.c 	struct lp55xx_engine *engine = &chip->engines[nr - 1];
nr                420 drivers/leds/leds-lp5523.c 	chip->engine_idx = nr;
nr                479 drivers/leds/leds-lp5523.c 			    char *buf, int nr)
nr                485 drivers/leds/leds-lp5523.c 	lp5523_mux_to_array(chip->engines[nr - 1].led_mux, mux);
nr                493 drivers/leds/leds-lp5523.c static int lp5523_load_mux(struct lp55xx_chip *chip, u16 mux, int nr)
nr                495 drivers/leds/leds-lp5523.c 	struct lp55xx_engine *engine = &chip->engines[nr - 1];
nr                505 drivers/leds/leds-lp5523.c 	ret = lp55xx_write(chip, LP5523_REG_PROG_PAGE_SEL, mux_page[nr]);
nr                523 drivers/leds/leds-lp5523.c 			     const char *buf, size_t len, int nr)
nr                527 drivers/leds/leds-lp5523.c 	struct lp55xx_engine *engine = &chip->engines[nr - 1];
nr                536 drivers/leds/leds-lp5523.c 	chip->engine_idx = nr;
nr                542 drivers/leds/leds-lp5523.c 	if (lp5523_load_mux(chip, mux, nr))
nr                556 drivers/leds/leds-lp5523.c 			     const char *buf, size_t len, int nr)
nr                564 drivers/leds/leds-lp5523.c 	chip->engine_idx = nr;
nr                663 drivers/leds/leds-lp5523.c #define show_fader(nr)						\
nr                664 drivers/leds/leds-lp5523.c static ssize_t show_master_fader##nr(struct device *dev,	\
nr                668 drivers/leds/leds-lp5523.c 	return show_master_fader(dev, attr, buf, nr);		\
nr                671 drivers/leds/leds-lp5523.c #define store_fader(nr)						\
nr                672 drivers/leds/leds-lp5523.c static ssize_t store_master_fader##nr(struct device *dev,	\
nr                676 drivers/leds/leds-lp5523.c 	return store_master_fader(dev, attr, buf, len, nr);	\
nr                681 drivers/leds/leds-lp5523.c 				 char *buf, int nr)
nr                689 drivers/leds/leds-lp5523.c 	ret = lp55xx_read(chip, LP5523_REG_MASTER_FADER_BASE + nr - 1, &val);
nr                703 drivers/leds/leds-lp5523.c 				  const char *buf, size_t len, int nr)
nr                717 drivers/leds/leds-lp5523.c 	ret = lp55xx_write(chip, LP5523_REG_MASTER_FADER_BASE + nr - 1,
nr                 36 drivers/leds/leds-lp55xx-common.h #define show_mode(nr)							\
nr                 37 drivers/leds/leds-lp55xx-common.h static ssize_t show_engine##nr##_mode(struct device *dev,		\
nr                 41 drivers/leds/leds-lp55xx-common.h 	return show_engine_mode(dev, attr, buf, nr);			\
nr                 44 drivers/leds/leds-lp55xx-common.h #define store_mode(nr)							\
nr                 45 drivers/leds/leds-lp55xx-common.h static ssize_t store_engine##nr##_mode(struct device *dev,		\
nr                 49 drivers/leds/leds-lp55xx-common.h 	return store_engine_mode(dev, attr, buf, len, nr);		\
nr                 52 drivers/leds/leds-lp55xx-common.h #define show_leds(nr)							\
nr                 53 drivers/leds/leds-lp55xx-common.h static ssize_t show_engine##nr##_leds(struct device *dev,		\
nr                 57 drivers/leds/leds-lp55xx-common.h 	return show_engine_leds(dev, attr, buf, nr);			\
nr                 60 drivers/leds/leds-lp55xx-common.h #define store_leds(nr)						\
nr                 61 drivers/leds/leds-lp55xx-common.h static ssize_t store_engine##nr##_leds(struct device *dev,	\
nr                 65 drivers/leds/leds-lp55xx-common.h 	return store_engine_leds(dev, attr, buf, len, nr);	\
nr                 68 drivers/leds/leds-lp55xx-common.h #define store_load(nr)							\
nr                 69 drivers/leds/leds-lp55xx-common.h static ssize_t store_engine##nr##_load(struct device *dev,		\
nr                 73 drivers/leds/leds-lp55xx-common.h 	return store_engine_load(dev, attr, buf, len, nr);		\
nr                421 drivers/leds/leds-pca963x.c 				 "pca963x:%d:%.2x:%d", client->adapter->nr,
nr                420 drivers/leds/leds-ss4200.c static struct led_classdev *get_classdev_for_led_nr(int nr)
nr                422 drivers/leds/leds-ss4200.c 	struct nasgpio_led *nas_led = &nasgpio_leds[nr];
nr                 89 drivers/macintosh/windfarm_fcu_controls.c 	int tries, nr, nw;
nr                104 drivers/macintosh/windfarm_fcu_controls.c 		nr = nw;
nr                109 drivers/macintosh/windfarm_fcu_controls.c 		nr = i2c_master_recv(pv->i2c, buf, nb);
nr                110 drivers/macintosh/windfarm_fcu_controls.c 		if (nr > 0 || (nr < 0 && nr != -ENODEV) || tries >= 100)
nr                115 drivers/macintosh/windfarm_fcu_controls.c 	if (nr <= 0)
nr                119 drivers/macintosh/windfarm_fcu_controls.c 	return nr;
nr                 29 drivers/macintosh/windfarm_smu_sat.c 	int			nr;
nr                172 drivers/macintosh/windfarm_smu_sat.c 	if (sat->nr >= 0)
nr                173 drivers/macintosh/windfarm_smu_sat.c 		sats[sat->nr] = NULL;
nr                209 drivers/macintosh/windfarm_smu_sat.c 	sat->nr = -1;
nr                242 drivers/macintosh/windfarm_smu_sat.c 		if (sat->nr < 0)
nr                243 drivers/macintosh/windfarm_smu_sat.c 			sat->nr = chip;
nr                244 drivers/macintosh/windfarm_smu_sat.c 		else if (sat->nr != chip) {
nr                291 drivers/macintosh/windfarm_smu_sat.c 		cpu = 2 * sat->nr + core;
nr                314 drivers/macintosh/windfarm_smu_sat.c 	if (sat->nr >= 0)
nr                315 drivers/macintosh/windfarm_smu_sat.c 		sats[sat->nr] = sat;
nr                702 drivers/md/bcache/btree.c 	unsigned long i, nr = sc->nr_to_scan;
nr                725 drivers/md/bcache/btree.c 	nr /= c->btree_pages;
nr                726 drivers/md/bcache/btree.c 	if (nr == 0)
nr                727 drivers/md/bcache/btree.c 		nr = 1;
nr                728 drivers/md/bcache/btree.c 	nr = min_t(unsigned long, nr, mca_can_free(c));
nr                733 drivers/md/bcache/btree.c 		if (nr <= 0)
nr                742 drivers/md/bcache/btree.c 		nr--;
nr                745 drivers/md/bcache/btree.c 	for (;  (nr--) && i < btree_cache_used; i++) {
nr                425 drivers/md/bcache/journal.c 	unsigned int i, nr;
nr                456 drivers/md/bcache/journal.c 	nr = 0;
nr                482 drivers/md/bcache/journal.c 		if (nr >= ref_nr)
nr                524 drivers/md/bcache/journal.c 		btree_nodes[nr++] = b;
nr                532 drivers/md/bcache/journal.c 		if (nr == BTREE_FLUSH_NR)
nr                537 drivers/md/bcache/journal.c 	for (i = 0; i < nr; i++) {
nr                261 drivers/md/dm-kcopyd.c 			    unsigned int nr, struct page_list **pages)
nr                279 drivers/md/dm-kcopyd.c 	} while (--nr);
nr                768 drivers/md/md.c struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr)
nr                773 drivers/md/md.c 		if (rdev->desc_nr == nr)
nr               6365 drivers/md/md.c 	int nr,working,insync,failed,spare;
nr               6368 drivers/md/md.c 	nr = working = insync = failed = spare = 0;
nr               6371 drivers/md/md.c 		nr++;
nr               6395 drivers/md/md.c 	info.nr_disks      = nr;
nr               9499 drivers/md/md.c void md_reload_sb(struct mddev *mddev, int nr)
nr               9506 drivers/md/md.c 		if (rdev->desc_nr == nr)
nr               9510 drivers/md/md.c 	if (!rdev || rdev->desc_nr != nr) {
nr               9511 drivers/md/md.c 		pr_warn("%s: %d Could not find rdev with nr %d\n", __func__, __LINE__, nr);
nr                742 drivers/md/md.h struct md_rdev *md_find_rdev_nr_rcu(struct mddev *mddev, int nr);
nr                353 drivers/md/persistent-data/dm-array.c 			     unsigned block_index, uint32_t nr,
nr                364 drivers/md/persistent-data/dm-array.c 	fill_ablock(info, ab, value, nr);
nr                 52 drivers/md/persistent-data/dm-bitset.c 	unsigned bit, nr = min(64u, p->nr_bits - (index * 64));
nr                 56 drivers/md/persistent-data/dm-bitset.c 	for (bit = 0; bit < nr; bit++) {
nr                954 drivers/md/persistent-data/dm-btree.c 	unsigned i, nr;
nr                965 drivers/md/persistent-data/dm-btree.c 	nr = le32_to_cpu(n->header.nr_entries);
nr                966 drivers/md/persistent-data/dm-btree.c 	for (i = 0; i < nr; i++) {
nr                997 drivers/md/persistent-data/dm-btree.c 	unsigned i, nr;
nr               1005 drivers/md/persistent-data/dm-btree.c 	nr = le32_to_cpu(bn->header.nr_entries);
nr               1006 drivers/md/persistent-data/dm-btree.c 	for (i = 0; i < nr; i++) {
nr                 41 drivers/media/common/videobuf2/videobuf2-memops.c 	unsigned long nr;
nr                 47 drivers/media/common/videobuf2/videobuf2-memops.c 	nr = last - first + 1;
nr                 48 drivers/media/common/videobuf2/videobuf2-memops.c 	vec = frame_vector_create(nr);
nr                 51 drivers/media/common/videobuf2/videobuf2-memops.c 	ret = get_vaddr_frames(start & PAGE_MASK, nr, flags, vec);
nr                 55 drivers/media/common/videobuf2/videobuf2-memops.c 	if (ret != nr) {
nr                421 drivers/media/dvb-frontends/cxd2820r_core.c static int cxd2820r_gpio_direction_output(struct gpio_chip *chip, unsigned nr,
nr                428 drivers/media/dvb-frontends/cxd2820r_core.c 	dev_dbg(&client->dev, "nr=%u val=%d\n", nr, val);
nr                431 drivers/media/dvb-frontends/cxd2820r_core.c 	gpio[nr] = CXD2820R_GPIO_E | CXD2820R_GPIO_O | (val << 2);
nr                436 drivers/media/dvb-frontends/cxd2820r_core.c static void cxd2820r_gpio_set(struct gpio_chip *chip, unsigned nr, int val)
nr                442 drivers/media/dvb-frontends/cxd2820r_core.c 	dev_dbg(&client->dev, "nr=%u val=%d\n", nr, val);
nr                445 drivers/media/dvb-frontends/cxd2820r_core.c 	gpio[nr] = CXD2820R_GPIO_E | CXD2820R_GPIO_O | (val << 2);
nr                452 drivers/media/dvb-frontends/cxd2820r_core.c static int cxd2820r_gpio_get(struct gpio_chip *chip, unsigned nr)
nr                457 drivers/media/dvb-frontends/cxd2820r_core.c 	dev_dbg(&client->dev, "nr=%u\n", nr);
nr                459 drivers/media/dvb-frontends/cxd2820r_core.c 	return (priv->gpio[nr] >> 2) & 0x01;
nr                 23 drivers/media/dvb-frontends/dvb-pll.c 	int nr;
nr                790 drivers/media/dvb-frontends/dvb-pll.c 	int nr;
nr                799 drivers/media/dvb-frontends/dvb-pll.c 	nr = ida_simple_get(&pll_ida, 0, DVB_PLL_MAX, GFP_KERNEL);
nr                800 drivers/media/dvb-frontends/dvb-pll.c 	if (nr < 0) {
nr                805 drivers/media/dvb-frontends/dvb-pll.c 	if (id[nr] > DVB_PLL_UNDEFINED && id[nr] < ARRAY_SIZE(pll_list))
nr                806 drivers/media/dvb-frontends/dvb-pll.c 		pll_desc_id = id[nr];
nr                830 drivers/media/dvb-frontends/dvb-pll.c 	priv->nr = nr;
nr                851 drivers/media/dvb-frontends/dvb-pll.c 	if ((debug) || (id[priv->nr] == pll_desc_id)) {
nr                852 drivers/media/dvb-frontends/dvb-pll.c 		dprintk("dvb-pll[%d]", priv->nr);
nr                856 drivers/media/dvb-frontends/dvb-pll.c 		       id[priv->nr] == pll_desc_id ?
nr                865 drivers/media/dvb-frontends/dvb-pll.c 	ida_simple_remove(&pll_ida, nr);
nr                907 drivers/media/dvb-frontends/dvb-pll.c 	ida_simple_remove(&pll_ida, priv->nr);
nr                 93 drivers/media/dvb-frontends/stv0910.c 	int                  nr;
nr                215 drivers/media/dvb-frontends/stv0910.c 	write_field(state, state->nr ? FSTV0910_P2_##_reg :	\
nr                219 drivers/media/dvb-frontends/stv0910.c 	write_reg(state, state->nr ? RSTV0910_P2_##_reg :	\
nr                223 drivers/media/dvb-frontends/stv0910.c 	read_reg(state, state->nr ? RSTV0910_P2_##_reg :	\
nr                573 drivers/media/dvb-frontends/stv0910.c 				 RSTV0910_TSTTSRS, state->nr ? 0x02 : 0x01,
nr               1072 drivers/media/dvb-frontends/stv0910.c 			 RSTV0910_TSTTSRS, state->nr ? 0x02 : 0x01, 0x00);
nr               1097 drivers/media/dvb-frontends/stv0910.c 	write_reg(state, RSTV0910_TSTRES0, state->nr ? 0x04 : 0x08);
nr               1137 drivers/media/dvb-frontends/stv0910.c 	u16 offs = state->nr ? 0x40 : 0; /* Address offset */
nr               1254 drivers/media/dvb-frontends/stv0910.c 	if (write_reg(state, state->nr ? RSTV0910_P2_I2CRPT :
nr               1649 drivers/media/dvb-frontends/stv0910.c 	u16 offs = state->nr ? 0x40 : 0;
nr               1666 drivers/media/dvb-frontends/stv0910.c 	u16 offs = state->nr ? 0x40 : 0;
nr               1778 drivers/media/dvb-frontends/stv0910.c 				    int nr)
nr               1792 drivers/media/dvb-frontends/stv0910.c 	state->nr = nr;
nr               1793 drivers/media/dvb-frontends/stv0910.c 	state->regoff = state->nr ? 0 : 0x200;
nr               1826 drivers/media/dvb-frontends/stv0910.c 	state->nr = nr;
nr                 37 drivers/media/dvb-frontends/stv0910.h 				    struct stv0910_cfg *cfg, int nr);
nr                 43 drivers/media/dvb-frontends/stv0910.h 						  int nr)
nr                842 drivers/media/i2c/s5k4ecgx.c static int s5k4ecgx_config_gpio(int nr, int val, const char *name)
nr                847 drivers/media/i2c/s5k4ecgx.c 	if (!gpio_is_valid(nr))
nr                849 drivers/media/i2c/s5k4ecgx.c 	ret = gpio_request_one(nr, flags, name);
nr                851 drivers/media/i2c/s5k4ecgx.c 		gpio_export(nr, 0);
nr                576 drivers/media/i2c/video-i2c.c 	sprintf(vcap->bus_info, "I2C:%d-%d", client->adapter->nr, client->addr);
nr                808 drivers/media/i2c/video-i2c.c 				 client->adapter->nr, client->addr);
nr                237 drivers/media/pci/bt8xx/bt878.c 		bt->nr, i, stat);
nr                269 drivers/media/pci/bt8xx/bt878.c 				       bt->nr,
nr                280 drivers/media/pci/bt8xx/bt878.c 				     bt->nr,
nr                293 drivers/media/pci/bt8xx/bt878.c 				     bt->nr,
nr                311 drivers/media/pci/bt8xx/bt878.c 			       bt->nr);
nr                421 drivers/media/pci/bt8xx/bt878.c 	bt->nr = bt878_num;
nr                498 drivers/media/pci/bt8xx/bt878.c 		printk(KERN_INFO "bt878(%d): unloading\n", bt->nr);
nr                 96 drivers/media/pci/bt8xx/bt878.h 	unsigned int nr;
nr               2911 drivers/media/pci/bt8xx/bttv-cards.c 				btv->c.nr, cards[type].name, cards[type].cardnr,
nr               2918 drivers/media/pci/bt8xx/bttv-cards.c 				btv->c.nr, btv->cardid & 0xffff,
nr               2925 drivers/media/pci/bt8xx/bttv-cards.c 	if (card[btv->c.nr] < bttv_num_tvcards)
nr               2926 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.type=card[btv->c.nr];
nr               2930 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type,
nr               2931 drivers/media/pci/bt8xx/bttv-cards.c 		card[btv->c.nr] < bttv_num_tvcards
nr               2952 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, bttv_tvcards[btv->c.type].gpiomask);
nr               2979 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, bttv_tvcards[btv->c.type].name, btv->c.type);
nr               3023 drivers/media/pci/bt8xx/bttv-cards.c 		pr_info("%d: FlyVideo_gpio: unknown tuner type\n", btv->c.nr);
nr               3041 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, has_radio ? "yes" : "no",
nr               3044 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, is_lr90 ? "yes" : "no",
nr               3096 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, id+1, btv->tuner_type,
nr               3142 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, id, info, btv->has_radio ? "yes" : "no");
nr               3284 drivers/media/pci/bt8xx/bttv-cards.c 		pr_debug("%d: BT878A ARESET\n", btv->c.nr);
nr               3391 drivers/media/pci/bt8xx/bttv-cards.c 				btv->c.nr);
nr               3454 drivers/media/pci/bt8xx/bttv-cards.c 		switch (pll[btv->c.nr]) {
nr               3486 drivers/media/pci/bt8xx/bttv-cards.c 	if (UNSET != tuner[btv->c.nr])
nr               3487 drivers/media/pci/bt8xx/bttv-cards.c 		btv->tuner_type = tuner[btv->c.nr];
nr               3490 drivers/media/pci/bt8xx/bttv-cards.c 		pr_info("%d: tuner absent\n", btv->c.nr);
nr               3492 drivers/media/pci/bt8xx/bttv-cards.c 		pr_warn("%d: tuner type unset\n", btv->c.nr);
nr               3494 drivers/media/pci/bt8xx/bttv-cards.c 		pr_info("%d: tuner type=%d\n", btv->c.nr, btv->tuner_type);
nr               3497 drivers/media/pci/bt8xx/bttv-cards.c 		pr_warn("%d: the autoload option is obsolete\n", btv->c.nr);
nr               3499 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr);
nr               3509 drivers/media/pci/bt8xx/bttv-cards.c 	if (svhs[btv->c.nr] != UNSET)
nr               3510 drivers/media/pci/bt8xx/bttv-cards.c 		btv->svhs = svhs[btv->c.nr];
nr               3511 drivers/media/pci/bt8xx/bttv-cards.c 	if (remote[btv->c.nr] != UNSET)
nr               3512 drivers/media/pci/bt8xx/bttv-cards.c 		btv->has_remote = remote[btv->c.nr];
nr               3528 drivers/media/pci/bt8xx/bttv-cards.c 	if (btv->has_saa6588 || saa6588[btv->c.nr]) {
nr               3547 drivers/media/pci/bt8xx/bttv-cards.c 	switch (audiodev[btv->c.nr]) {
nr               3592 drivers/media/pci/bt8xx/bttv-cards.c 		pr_warn("%d: unknown audiodev value!\n", btv->c.nr);
nr               3642 drivers/media/pci/bt8xx/bttv-cards.c 	pr_warn("%d: audio absent, no audio device found!\n", btv->c.nr);
nr               3696 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, &eeprom_data[0x1e]);
nr               3700 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, &eeprom_data[0x1e]);
nr               3704 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, &eeprom_data[0x1e]);
nr               3707 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, &eeprom_data[0x1e]);
nr               3720 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, tv.model);
nr               3728 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr,
nr               3814 drivers/media/pci/bt8xx/bttv-cards.c 		pr_info("%d: detected TEA575x radio\n", btv->c.nr);
nr               3841 drivers/media/pci/bt8xx/bttv-cards.c 		pr_info("%d: Terratec Active Radio Upgrade found\n", btv->c.nr);
nr               3908 drivers/media/pci/bt8xx/bttv-cards.c 		pr_warn("%d: no altera firmware [via hotplug]\n", btv->c.nr);
nr               3913 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, (rc < 0) ? "failed" : "ok");
nr               4010 drivers/media/pci/bt8xx/bttv-cards.c 				btv->c.nr, type);
nr               4017 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, cardid,
nr               4024 drivers/media/pci/bt8xx/bttv-cards.c 	if (card[btv->c.nr] < bttv_num_tvcards) {
nr               4026 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr);
nr               4029 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, btv->c.type, cardid);
nr               4073 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, eeprom_data[0x41], eeprom_data[0x42]);
nr               4128 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, pin);
nr               4240 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr);
nr               4254 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, dataRead);
nr               4267 drivers/media/pci/bt8xx/bttv-cards.c 			btv->c.nr, dataRead);
nr               4272 drivers/media/pci/bt8xx/bttv-cards.c 	pr_info("%d: Adlink RTV-24 initialisation complete\n", btv->c.nr);
nr               4503 drivers/media/pci/bt8xx/bttv-cards.c 	mctlr = master[btv->c.nr];
nr               4507 drivers/media/pci/bt8xx/bttv-cards.c 	yaddr = (btv->c.nr - mctlr->c.nr + 1) & 3; /* the '&' is for safety */
nr               4543 drivers/media/pci/bt8xx/bttv-cards.c 	if ((btv->c.nr<1) || (btv->c.nr>BTTV_MAX-3))
nr               4545 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr-1] = btv;
nr               4546 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr]   = btv;
nr               4547 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr+1] = btv;
nr               4548 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr+2] = btv;
nr               4588 drivers/media/pci/bt8xx/bttv-cards.c 	dprintk("%d : picolo_tetra_muxsel =>  input = %d\n", btv->c.nr, input);
nr               4634 drivers/media/pci/bt8xx/bttv-cards.c 		btv->c.nr, input, matrix, key);
nr               4691 drivers/media/pci/bt8xx/bttv-cards.c 			 btv->c.nr, rc);
nr               4699 drivers/media/pci/bt8xx/bttv-cards.c 			 btv->c.nr, rc);
nr               4739 drivers/media/pci/bt8xx/bttv-cards.c 	pr_debug("%d: setting input channel to:%d\n", btv->c.nr, (int)mux);
nr               4818 drivers/media/pci/bt8xx/bttv-cards.c 	mctlr = master[btv->c.nr];
nr               4823 drivers/media/pci/bt8xx/bttv-cards.c 	yaddr = (btv->c.nr - mctlr->c.nr) & 3;
nr               4853 drivers/media/pci/bt8xx/bttv-cards.c 	if (btv->c.nr > BTTV_MAX-4)
nr               4859 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr]   = btv;
nr               4860 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr+1] = btv;
nr               4861 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr+2] = btv;
nr               4862 drivers/media/pci/bt8xx/bttv-cards.c 	master[btv->c.nr+3] = btv;
nr               4921 drivers/media/pci/bt8xx/bttv-cards.c 				btv->c.nr);
nr               4923 drivers/media/pci/bt8xx/bttv-cards.c 			pr_info("%d: enabling VSFX\n", btv->c.nr);
nr               4926 drivers/media/pci/bt8xx/bttv-cards.c 				btv->c.nr, latency);
nr                803 drivers/media/pci/bt8xx/bttv-driver.c 		dprintk("%d: PLL: no change required\n", btv->c.nr);
nr                813 drivers/media/pci/bt8xx/bttv-driver.c 				btv->c.nr, btv->pll.pll_ifreq);
nr                822 drivers/media/pci/bt8xx/bttv-driver.c 			btv->c.nr,
nr                855 drivers/media/pci/bt8xx/bttv-driver.c 			btv->c.nr,table_idx);
nr                957 drivers/media/pci/bt8xx/bttv-driver.c 	dprintk("%d: video mux: input=%d mux=%d\n", btv->c.nr, input, mux);
nr               1241 drivers/media/pci/bt8xx/bttv-driver.c 		pr_info("%d: reset, reinitialize\n", btv->c.nr);
nr               1460 drivers/media/pci/bt8xx/bttv-driver.c 		 btv->c.nr, outbits, data & outbits, data & ~outbits, comment);
nr               2548 drivers/media/pci/bt8xx/bttv-driver.c 			dprintk("%d: overlay: !setup_ok\n", btv->c.nr);
nr               2877 drivers/media/pci/bt8xx/bttv-driver.c 		fh->btv->c.nr, (int)count, v4l2_type_names[fh->type]);
nr               2977 drivers/media/pci/bt8xx/bttv-driver.c 		btv->c.nr, v4l2_type_names[type]);
nr               3081 drivers/media/pci/bt8xx/bttv-driver.c 		fh->btv->c.nr, v4l2_type_names[fh->type],
nr               3159 drivers/media/pci/bt8xx/bttv-driver.c 	dprintk("%d: open called (radio)\n", btv->c.nr);
nr               3445 drivers/media/pci/bt8xx/bttv-driver.c 		btv->c.nr,
nr               3453 drivers/media/pci/bt8xx/bttv-driver.c 			  btv->c.nr);
nr               3457 drivers/media/pci/bt8xx/bttv-driver.c 		  btv->c.nr);
nr               3459 drivers/media/pci/bt8xx/bttv-driver.c 		  btv->c.nr);
nr               3541 drivers/media/pci/bt8xx/bttv-driver.c 		btv->c.nr, set->top, set->bottom,
nr               3556 drivers/media/pci/bt8xx/bttv-driver.c 					 btv->c.nr, wakeup->top);
nr               3566 drivers/media/pci/bt8xx/bttv-driver.c 					 btv->c.nr, wakeup->top);
nr               3575 drivers/media/pci/bt8xx/bttv-driver.c 					 btv->c.nr, wakeup->bottom);
nr               3607 drivers/media/pci/bt8xx/bttv-driver.c 			btv->c.nr, btv->framedrop, btv->irq_me, btv->irq_total,
nr               3774 drivers/media/pci/bt8xx/bttv-driver.c 				 btv->c.nr, count, btv->field_count,
nr               3819 drivers/media/pci/bt8xx/bttv-driver.c 				btv->c.nr,
nr               3830 drivers/media/pci/bt8xx/bttv-driver.c 				btv->c.nr, btread(BT848_RISC_COUNT));
nr               3842 drivers/media/pci/bt8xx/bttv-driver.c 				       btv->c.nr);
nr               3845 drivers/media/pci/bt8xx/bttv-driver.c 				       btv->c.nr);
nr               3909 drivers/media/pci/bt8xx/bttv-driver.c 				  video_nr[btv->c.nr]) < 0)
nr               3912 drivers/media/pci/bt8xx/bttv-driver.c 		btv->c.nr, video_device_node_name(&btv->video_dev));
nr               3915 drivers/media/pci/bt8xx/bttv-driver.c 		pr_err("%d: device_create_file 'card' failed\n", btv->c.nr);
nr               3927 drivers/media/pci/bt8xx/bttv-driver.c 				  vbi_nr[btv->c.nr]) < 0)
nr               3930 drivers/media/pci/bt8xx/bttv-driver.c 		btv->c.nr, video_device_node_name(&btv->vbi_dev));
nr               3944 drivers/media/pci/bt8xx/bttv-driver.c 				  radio_nr[btv->c.nr]) < 0)
nr               3947 drivers/media/pci/bt8xx/bttv-driver.c 		btv->c.nr, video_device_node_name(&btv->radio_dev));
nr               3991 drivers/media/pci/bt8xx/bttv-driver.c 	btv->c.nr  = bttv_num;
nr               3993 drivers/media/pci/bt8xx/bttv-driver.c 			"bttv%d", btv->c.nr);
nr               4009 drivers/media/pci/bt8xx/bttv-driver.c 	btv->has_radio=radio[btv->c.nr];
nr               4015 drivers/media/pci/bt8xx/bttv-driver.c 		pr_warn("%d: Can't enable device\n", btv->c.nr);
nr               4019 drivers/media/pci/bt8xx/bttv-driver.c 		pr_warn("%d: No suitable DMA available\n", btv->c.nr);
nr               4026 drivers/media/pci/bt8xx/bttv-driver.c 			btv->c.nr,
nr               4035 drivers/media/pci/bt8xx/bttv-driver.c 		pr_warn("%d: v4l2_device_register() failed\n", btv->c.nr);
nr               4053 drivers/media/pci/bt8xx/bttv-driver.c 		pr_err("%d: ioremap() failed\n", btv->c.nr);
nr               4223 drivers/media/pci/bt8xx/bttv-driver.c 		pr_info("%d: unloading\n", btv->c.nr);
nr               4260 drivers/media/pci/bt8xx/bttv-driver.c 	bttvs[btv->c.nr] = NULL;
nr               4274 drivers/media/pci/bt8xx/bttv-driver.c 	dprintk("%d: suspend %d\n", btv->c.nr, state.event);
nr               4310 drivers/media/pci/bt8xx/bttv-driver.c 	dprintk("%d: resume\n", btv->c.nr);
nr               4316 drivers/media/pci/bt8xx/bttv-driver.c 			pr_warn("%d: Can't enable device\n", btv->c.nr);
nr               4324 drivers/media/pci/bt8xx/bttv-driver.c 		pr_warn("%d: Can't enable device\n", btv->c.nr);
nr                 85 drivers/media/pci/bt8xx/bttv-gpio.c 	dev_set_name(&sub->dev, "%s%d", name, core->nr);
nr                 92 drivers/media/pci/bt8xx/bttv-gpio.c 	pr_info("%d: add subdevice \"%s\"\n", core->nr, dev_name(&sub->dev));
nr                267 drivers/media/pci/bt8xx/bttv-i2c.c 			btv->c.nr, probe_for, addr);
nr                275 drivers/media/pci/bt8xx/bttv-i2c.c 				btv->c.nr, addr);
nr                364 drivers/media/pci/bt8xx/bttv-i2c.c 		 "bt%d #%d [%s]", btv->id, btv->c.nr,
nr                469 drivers/media/pci/bt8xx/bttv-risc.c 		 btv->c.nr,capctl,btv->loop_irq,
nr                512 drivers/media/pci/bt8xx/bttv-risc.c 		btv->c.nr, (unsigned long long)btv->main.dma);
nr                551 drivers/media/pci/bt8xx/bttv-risc.c 		d2printk("%d: risc=%p slot[%d]=NULL\n", btv->c.nr, risc, slot);
nr                555 drivers/media/pci/bt8xx/bttv-risc.c 			 btv->c.nr, risc, slot,
nr                703 drivers/media/pci/bt8xx/bttv-risc.c 		btv->c.nr, v4l2_field_names[buf->vb.field],
nr                864 drivers/media/pci/bt8xx/bttv-risc.c 		btv->c.nr, v4l2_field_names[buf->vb.field],
nr                 61 drivers/media/pci/bt8xx/bttv-vbi.c 		pr_debug("%d: " fmt, btv->c.nr, ##__VA_ARGS__);		\
nr                211 drivers/media/pci/bt8xx/bttv.h 	unsigned int         nr;       /* dev nr (for printk("bttv%d: ...");  */
nr                811 drivers/media/pci/bt8xx/dvb-bt8xx.c 	card->bttv_nr = sub->core->nr;
nr                902 drivers/media/pci/bt8xx/dvb-bt8xx.c 	card->bt->bttv_nr = sub->core->nr;
nr                114 drivers/media/pci/cx23885/altera-ci.c 	int nr;
nr                126 drivers/media/pci/cx23885/altera-ci.c 	int nr;
nr                277 drivers/media/pci/cx23885/altera-ci.c 	store |= ((state->nr << 7) | (flag << 6));
nr                334 drivers/media/pci/cx23885/altera-ci.c 				(ret & 0xcf) | (1 << (5 - state->nr)), 0);
nr                347 drivers/media/pci/cx23885/altera-ci.c 		if ((ret & (1 << (5 - state->nr))) == 0)
nr                381 drivers/media/pci/cx23885/altera-ci.c 				(ret & 0x0f) | (1 << (3 - state->nr)), 0);
nr                528 drivers/media/pci/cx23885/altera-ci.c 			((pid >> 11) & 0x03) | (pid_filt->nr << 2), 0);
nr                542 drivers/media/pci/cx23885/altera-ci.c 		pid_filt->nr, pid, pid, onoff ? "off" : "on");
nr                552 drivers/media/pci/cx23885/altera-ci.c 	pid_dbg_print("%s: pid_filt->nr[%d]  now %s\n", __func__, pid_filt->nr,
nr                566 drivers/media/pci/cx23885/altera-ci.c 				((i >> 8) & 0x03) | (pid_filt->nr << 2), 0);
nr                675 drivers/media/pci/cx23885/altera-ci.c 	pid_filt->nr = hw_filt_nr - 1;
nr                746 drivers/media/pci/cx23885/altera-ci.c 	state->nr = ci_nr - 1;
nr                463 drivers/media/pci/cx23885/cimax2.c 	switch (port->nr) {
nr               1445 drivers/media/pci/cx23885/cx23885-cards.c 		if (port->nr == 1)
nr               1447 drivers/media/pci/cx23885/cx23885-cards.c 		else if (port->nr == 2)
nr               1455 drivers/media/pci/cx23885/cx23885-cards.c 		altera_ci_tuner_reset(dev, port->nr);
nr                744 drivers/media/pci/cx23885/cx23885-core.c 	port->nr = portno;
nr                884 drivers/media/pci/cx23885/cx23885-core.c 	dev->nr = cx23885_devcount++;
nr                885 drivers/media/pci/cx23885/cx23885-core.c 	sprintf(dev->name, "cx23885[%d]", dev->nr);
nr                908 drivers/media/pci/cx23885/cx23885-core.c 	if (card[dev->nr] < cx23885_bcount)
nr                909 drivers/media/pci/cx23885/cx23885-core.c 		dev->board = card[dev->nr];
nr                946 drivers/media/pci/cx23885/cx23885-core.c 	dev->i2c_bus[0].nr = 0;
nr                956 drivers/media/pci/cx23885/cx23885-core.c 	dev->i2c_bus[1].nr = 1;
nr                966 drivers/media/pci/cx23885/cx23885-core.c 	dev->i2c_bus[2].nr = 2;
nr               1001 drivers/media/pci/cx23885/cx23885-core.c 		dev->board, card[dev->nr] == dev->board ?
nr               1093 drivers/media/pci/cx23885/cx23885-dvb.c 				cinfo.port[port->nr - 1].mac, 6);
nr               1095 drivers/media/pci/cx23885/cx23885-dvb.c 			port->nr, port->frontends.adapter.proposed_mac);
nr               1108 drivers/media/pci/cx23885/cx23885-dvb.c 		altera_ci_init(&netup_ci_cfg, port->nr);
nr               1114 drivers/media/pci/cx23885/cx23885-dvb.c 		if (port->nr != 1)
nr               1130 drivers/media/pci/cx23885/cx23885-dvb.c 		if (port->nr > 2)
nr               1138 drivers/media/pci/cx23885/cx23885-dvb.c 			cx23885_boards[dev->board].name, port->nr,
nr               1139 drivers/media/pci/cx23885/cx23885-dvb.c 			eeprom + 0xc0 + (port->nr-1) * 8);
nr               1141 drivers/media/pci/cx23885/cx23885-dvb.c 			(port->nr-1) * 8, 6);
nr               1171 drivers/media/pci/cx23885/cx23885-dvb.c 		if (port->nr != 1)
nr               1412 drivers/media/pci/cx23885/cx23885-dvb.c 		i2c_bus = &dev->i2c_bus[port->nr - 1];
nr               1427 drivers/media/pci/cx23885/cx23885-dvb.c 		i2c_bus = &dev->i2c_bus[port->nr - 1];
nr               1452 drivers/media/pci/cx23885/cx23885-dvb.c 		i2c_bus = &dev->i2c_bus[port->nr - 1];
nr               1541 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               1578 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               1688 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               1715 drivers/media/pci/cx23885/cx23885-dvb.c 		if (port->nr > 2)
nr               1724 drivers/media/pci/cx23885/cx23885-dvb.c 					&netup_stv0367_config[port->nr - 1],
nr               1730 drivers/media/pci/cx23885/cx23885-dvb.c 					&netup_xc5000_config[port->nr - 1]))
nr               1741 drivers/media/pci/cx23885/cx23885-dvb.c 					&netup_stv0367_config[port->nr - 1],
nr               1750 drivers/media/pci/cx23885/cx23885-dvb.c 				       &netup_xc5000_config[port->nr - 1]))
nr               1757 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               1820 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               1932 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               2106 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               2176 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               2230 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               2329 drivers/media/pci/cx23885/cx23885-dvb.c 			dev->board, port->nr);
nr               2330 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               2429 drivers/media/pci/cx23885/cx23885-dvb.c 			dev->board, port->nr);
nr               2430 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               2505 drivers/media/pci/cx23885/cx23885-dvb.c 		switch (port->nr) {
nr               2721 drivers/media/pci/cx23885/cx23885-dvb.c 		altera_ci_release(port->dev, port->nr);
nr                303 drivers/media/pci/cx23885/cx23885-i2c.c 	dprintk(1, "%s(bus = %d)\n", __func__, bus->nr);
nr                319 drivers/media/pci/cx23885/cx23885-i2c.c 		dprintk(1, "%s: i2c bus %d registered\n", dev->name, bus->nr);
nr                322 drivers/media/pci/cx23885/cx23885-i2c.c 					dev->name, bus->nr);
nr                327 drivers/media/pci/cx23885/cx23885-i2c.c 			dev->name, bus->nr);
nr               1308 drivers/media/pci/cx23885/cx23885-video.c 				    video_nr[dev->nr]);
nr               1326 drivers/media/pci/cx23885/cx23885-video.c 				    vbi_nr[dev->nr]);
nr                 37 drivers/media/pci/cx23885/cx23885.h #define INPUT(nr) (&cx23885_boards[dev->board].input[nr])
nr                232 drivers/media/pci/cx23885/cx23885.h 	int                        nr;
nr                256 drivers/media/pci/cx23885/cx23885.h 	unsigned                   nr;
nr                374 drivers/media/pci/cx23885/cx23885.h 	int                        nr;
nr                857 drivers/media/pci/cx25821/cx25821-core.c 	dev->nr = ++cx25821_devcount;
nr                858 drivers/media/pci/cx25821/cx25821-core.c 	sprintf(dev->name, "cx25821[%d]", dev->nr);
nr                860 drivers/media/pci/cx25821/cx25821-core.c 	if (dev->nr >= ARRAY_SIZE(card)) {
nr                888 drivers/media/pci/cx25821/cx25821-core.c 	dev->i2c_bus[0].nr = 0;
nr                927 drivers/media/pci/cx25821/cx25821-core.c 		dev->board, card[dev->nr] == dev->board ?
nr                293 drivers/media/pci/cx25821/cx25821-i2c.c 	dprintk(1, "%s(bus = %d)\n", __func__, bus->nr);
nr                761 drivers/media/pci/cx25821/cx25821-video.c 					    video_nr[dev->nr]);
nr                141 drivers/media/pci/cx25821/cx25821.h 	int nr;
nr                241 drivers/media/pci/cx25821/cx25821.h 	int nr;
nr               3655 drivers/media/pci/cx88/cx88-cards.c struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr)
nr               3672 drivers/media/pci/cx88/cx88-cards.c 	core->nr = nr;
nr               3673 drivers/media/pci/cx88/cx88-cards.c 	sprintf(core->name, "cx88[%d]", core->nr);
nr               3732 drivers/media/pci/cx88/cx88-cards.c 	if (card[core->nr] < ARRAY_SIZE(cx88_boards))
nr               3733 drivers/media/pci/cx88/cx88-cards.c 		core->boardnr = card[core->nr];
nr               3750 drivers/media/pci/cx88/cx88-cards.c 		core->boardnr, card[core->nr] == core->boardnr ?
nr               3754 drivers/media/pci/cx88/cx88-cards.c 	if (tuner[core->nr] != UNSET)
nr               3755 drivers/media/pci/cx88/cx88-cards.c 		core->board.tuner_type = tuner[core->nr];
nr               3756 drivers/media/pci/cx88/cx88-cards.c 	if (radio[core->nr] != UNSET)
nr               3757 drivers/media/pci/cx88/cx88-cards.c 		core->board.radio_type = radio[core->nr];
nr               1455 drivers/media/pci/cx88/cx88-video.c 				    video_nr[core->nr]);
nr               1472 drivers/media/pci/cx88/cx88-video.c 				    vbi_nr[core->nr]);
nr               1487 drivers/media/pci/cx88/cx88-video.c 					    radio_nr[core->nr]);
nr                294 drivers/media/pci/cx88/cx88.h #define INPUT(nr) (core->board.input[nr])
nr                336 drivers/media/pci/cx88/cx88.h 	int                        nr;
nr                677 drivers/media/pci/cx88/cx88.h struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr);
nr                 36 drivers/media/pci/ddbridge/ddbridge-ci.c 			     CI_CONTROL(ci->nr)) & CI_READY)
nr                 54 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_DO_READ_ATTRIBUTES(ci->nr));
nr                 56 drivers/media/pci/ddbridge/ddbridge-ci.c 	val = 0xff & ddbreadl(ci->port->dev, CI_BUFFER(ci->nr) + off);
nr                 66 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_DO_ATTRIBUTE_RW(ci->nr));
nr                 79 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_DO_IO_RW(ci->nr));
nr                 82 drivers/media/pci/ddbridge/ddbridge-ci.c 		res = ddbreadl(ci->port->dev, CI_READDATA(ci->nr));
nr                 98 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_DO_IO_RW(ci->nr));
nr                108 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_CONTROL(ci->nr));
nr                111 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_CONTROL(ci->nr));
nr                113 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_CONTROL(ci->nr));
nr                116 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_CONTROL(ci->nr));
nr                124 drivers/media/pci/ddbridge/ddbridge-ci.c 	ddbwritel(ci->port->dev, 0, CI_CONTROL(ci->nr));
nr                132 drivers/media/pci/ddbridge/ddbridge-ci.c 	u32 val = ddbreadl(ci->port->dev, CI_CONTROL(ci->nr));
nr                135 drivers/media/pci/ddbridge/ddbridge-ci.c 		  CI_CONTROL(ci->nr));
nr                142 drivers/media/pci/ddbridge/ddbridge-ci.c 	u32 val = ddbreadl(ci->port->dev, CI_CONTROL(ci->nr));
nr                175 drivers/media/pci/ddbridge/ddbridge-ci.c 	ci->nr = port->nr - 2;
nr                308 drivers/media/pci/ddbridge/ddbridge-ci.c 	ci->nr = port->nr - 2;
nr                122 drivers/media/pci/ddbridge/ddbridge-core.c struct ddb_irq *ddb_irq_set(struct ddb *dev, u32 link, u32 nr,
nr                125 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_irq *irq = &dev->link[link].irq[nr];
nr                402 drivers/media/pci/ddbridge/ddbridge-core.c 	if (dev->link[0].info->type == DDB_OCTOPUS_CI && output->port->nr > 1) {
nr                873 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &port->dvb[input->nr & 1];
nr                889 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr                894 drivers/media/pci/ddbridge/ddbridge-core.c 	config.adr = 0x29 + (input->nr & 1);
nr                911 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr                952 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr                957 drivers/media/pci/ddbridge/ddbridge-core.c 			     &ddb_stv0367_config[(input->nr & 1)], i2c);
nr                972 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr                995 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1000 drivers/media/pci/ddbridge/ddbridge-core.c 	cfg.i2c_addr = ((input->nr & 1) ? 0x6d : 0x6c) << 1;
nr               1026 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1039 drivers/media/pci/ddbridge/ddbridge-core.c 	u8 addr = (input->nr & 1) ? 0x63 : 0x60;
nr               1124 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1128 drivers/media/pci/ddbridge/ddbridge-core.c 			     (input->nr & 1) ? STV090x_DEMODULATOR_1
nr               1135 drivers/media/pci/ddbridge/ddbridge-core.c 			0, (input->nr & 1) ?
nr               1147 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1150 drivers/media/pci/ddbridge/ddbridge-core.c 	struct stv6110x_config *tunerconf = (input->nr & 1) ?
nr               1160 drivers/media/pci/ddbridge/ddbridge-core.c 		 input->nr, tunerconf->addr);
nr               1200 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1216 drivers/media/pci/ddbridge/ddbridge-core.c 	dvb->fe = dvb_attach(stv0910_attach, i2c, &cfg, (input->nr & 1));
nr               1220 drivers/media/pci/ddbridge/ddbridge-core.c 				     &cfg, (input->nr & 1));
nr               1231 drivers/media/pci/ddbridge/ddbridge-core.c 		lnbcfg.i2c_address = (((input->nr & 1) ? 0x0d : 0x0c) << 1);
nr               1233 drivers/media/pci/ddbridge/ddbridge-core.c 		lnbcfg.i2c_address = (((input->nr & 1) ? 0x09 : 0x08) << 1);
nr               1247 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1250 drivers/media/pci/ddbridge/ddbridge-core.c 	u8 adr = (type ? 0 : 4) + ((input->nr & 1) ? 0x63 : 0x60);
nr               1265 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1281 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1293 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1304 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1448 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr               1464 drivers/media/pci/ddbridge/ddbridge-core.c 	if (port->nr == 0 &&
nr               1739 drivers/media/pci/ddbridge/ddbridge-core.c 		dev_info(dev->dev, "Port %d: invalid XO2\n", port->nr);
nr               1786 drivers/media/pci/ddbridge/ddbridge-core.c 			 port->nr, data[0]);
nr               1790 drivers/media/pci/ddbridge/ddbridge-core.c 		 port->nr, data[0], data[1]);
nr               1858 drivers/media/pci/ddbridge/ddbridge-core.c 	if (dummy_tuner && !port->nr &&
nr               1867 drivers/media/pci/ddbridge/ddbridge-core.c 	if (port->nr == ts_loop) {
nr               1873 drivers/media/pci/ddbridge/ddbridge-core.c 	if (port->nr == 1 && link->info->type == DDB_OCTOPUS_CI &&
nr               1892 drivers/media/pci/ddbridge/ddbridge-core.c 		if (port->nr >= link->info->mci_ports)
nr               1901 drivers/media/pci/ddbridge/ddbridge-core.c 	if (port->nr > 1 && link->info->type == DDB_OCTOPUS_CI) {
nr               1923 drivers/media/pci/ddbridge/ddbridge-core.c 				 port->nr);
nr               1985 drivers/media/pci/ddbridge/ddbridge-core.c 			if (port->nr == 0 &&
nr               2051 drivers/media/pci/ddbridge/ddbridge-core.c 			port->nr);
nr               2137 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_dvb *dvb = &input2->port->dvb[input2->nr & 1];
nr               2249 drivers/media/pci/ddbridge/ddbridge-core.c static void ddb_dma_init(struct ddb_io *io, int nr, int out)
nr               2254 drivers/media/pci/ddbridge/ddbridge-core.c 	dma = out ? &io->port->dev->odma[nr] : &io->port->dev->idma[nr];
nr               2262 drivers/media/pci/ddbridge/ddbridge-core.c 		dma->regs = rm->odma->base + rm->odma->size * nr;
nr               2263 drivers/media/pci/ddbridge/ddbridge-core.c 		dma->bufregs = rm->odma_buf->base + rm->odma_buf->size * nr;
nr               2269 drivers/media/pci/ddbridge/ddbridge-core.c 		dma->regs = rm->idma->base + rm->idma->size * nr;
nr               2270 drivers/media/pci/ddbridge/ddbridge-core.c 		dma->bufregs = rm->idma_buf->base + rm->idma_buf->size * nr;
nr               2277 drivers/media/pci/ddbridge/ddbridge-core.c 		io->port->lnr, io->nr, nr, dma->regs, dma->bufregs);
nr               2280 drivers/media/pci/ddbridge/ddbridge-core.c static void ddb_input_init(struct ddb_port *port, int nr, int pnr, int anr)
nr               2287 drivers/media/pci/ddbridge/ddbridge-core.c 	input->nr = nr;
nr               2291 drivers/media/pci/ddbridge/ddbridge-core.c 		(rm->input->base + rm->input->size * nr);
nr               2293 drivers/media/pci/ddbridge/ddbridge-core.c 		port->lnr, nr, input->regs);
nr               2298 drivers/media/pci/ddbridge/ddbridge-core.c 		u32 dma_nr = nr;
nr               2304 drivers/media/pci/ddbridge/ddbridge-core.c 			port->lnr, nr, dma_nr + base);
nr               2311 drivers/media/pci/ddbridge/ddbridge-core.c static void ddb_output_init(struct ddb_port *port, int nr)
nr               2314 drivers/media/pci/ddbridge/ddbridge-core.c 	struct ddb_output *output = &dev->output[nr];
nr               2318 drivers/media/pci/ddbridge/ddbridge-core.c 	output->nr = nr;
nr               2322 drivers/media/pci/ddbridge/ddbridge-core.c 		(rm->output->base + rm->output->size * nr);
nr               2325 drivers/media/pci/ddbridge/ddbridge-core.c 		port->lnr, nr, output->regs);
nr               2331 drivers/media/pci/ddbridge/ddbridge-core.c 		ddb_irq_set(dev, 0, nr + base, &output_handler, output);
nr               2332 drivers/media/pci/ddbridge/ddbridge-core.c 		ddb_dma_init(output, nr, 1);
nr               2343 drivers/media/pci/ddbridge/ddbridge-core.c 		    dev->i2c[i].nr == port->nr) {
nr               2382 drivers/media/pci/ddbridge/ddbridge-core.c 			port->nr = i;
nr               2408 drivers/media/pci/ddbridge/ddbridge-core.c 				 port->pnr, port->lnr, port->nr, port->nr + 1,
nr               2731 drivers/media/pci/ddbridge/ddbridge-core.c 	return kasprintf(GFP_KERNEL, "ddbridge/card%d", dev->nr);
nr               3210 drivers/media/pci/ddbridge/ddbridge-core.c 	dev->nr = ddb_num;
nr               3211 drivers/media/pci/ddbridge/ddbridge-core.c 	ddbs[dev->nr] = dev;
nr               3213 drivers/media/pci/ddbridge/ddbridge-core.c 				     MKDEV(ddb_major, dev->nr),
nr               3214 drivers/media/pci/ddbridge/ddbridge-core.c 				     dev, "ddbridge%d", dev->nr);
nr               3217 drivers/media/pci/ddbridge/ddbridge-core.c 		dev_info(dev->dev, "Could not create ddbridge%d\n", dev->nr);
nr               3223 drivers/media/pci/ddbridge/ddbridge-core.c 		device_destroy(&ddb_class, MKDEV(ddb_major, dev->nr));
nr               3224 drivers/media/pci/ddbridge/ddbridge-core.c 		ddbs[dev->nr] = NULL;
nr               3239 drivers/media/pci/ddbridge/ddbridge-core.c 	device_destroy(&ddb_class, MKDEV(ddb_major, dev->nr));
nr               3291 drivers/media/pci/ddbridge/ddbridge-core.c 	u32 l = link->nr;
nr                 51 drivers/media/pci/ddbridge/ddbridge-i2c.c 			dev->nr, i2c->nr, i2c->link);
nr                166 drivers/media/pci/ddbridge/ddbridge-i2c.c 	i2c->nr = i;
nr                190 drivers/media/pci/ddbridge/ddbridge-i2c.c 		 dev->nr, i2c->link, i);
nr                103 drivers/media/pci/ddbridge/ddbridge-main.c static void ddb_irq_msi(struct ddb *dev, int nr)
nr                108 drivers/media/pci/ddbridge/ddbridge-main.c 		stat = pci_alloc_irq_vectors(dev->pdev, 1, nr,
nr                 82 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_dvb *dvb = &port->dvb[input->nr & 1];
nr                184 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_dvb *dvb = &port->dvb[input->nr & 1];
nr                190 drivers/media/pci/ddbridge/ddbridge-max.c 		u32 bit = (1ULL << input->nr);
nr                207 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_dvb *dvb = &port->dvb[input->nr & 1];
nr                245 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_dvb *dvb = &port->dvb[input->nr & 1];
nr                262 drivers/media/pci/ddbridge/ddbridge-max.c 				~(1ULL << input->nr);
nr                265 drivers/media/pci/ddbridge/ddbridge-max.c 				(1ULL << input->nr);
nr                273 drivers/media/pci/ddbridge/ddbridge-max.c 				~(1ULL << input->nr);
nr                276 drivers/media/pci/ddbridge/ddbridge-max.c 				(1ULL << input->nr);
nr                359 drivers/media/pci/ddbridge/ddbridge-max.c 	dev_info(dev->dev, "Read mxl_fw from link %u\n", link->nr);
nr                361 drivers/media/pci/ddbridge/ddbridge-max.c 	return ddbridge_flashread(dev, link->nr, buf, 0xc0000, len);
nr                366 drivers/media/pci/ddbridge/ddbridge-max.c 	u32 l = link->nr;
nr                412 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr                422 drivers/media/pci/ddbridge/ddbridge-max.c 	demod = input->nr;
nr                440 drivers/media/pci/ddbridge/ddbridge-max.c 	if (input->nr < 4) {
nr                441 drivers/media/pci/ddbridge/ddbridge-max.c 		lnb_command(dev, port->lnr, input->nr, LNB_CMD_INIT);
nr                442 drivers/media/pci/ddbridge/ddbridge-max.c 		lnb_set_voltage(dev, port->lnr, input->nr, SEC_VOLTAGE_OFF);
nr                463 drivers/media/pci/ddbridge/ddbridge-max.c 	struct ddb_dvb *dvb = &input->port->dvb[input->nr & 1];
nr                469 drivers/media/pci/ddbridge/ddbridge-max.c 	demod = input->nr;
nr                489 drivers/media/pci/ddbridge/ddbridge-max.c 	if (input->nr < 4) {
nr                490 drivers/media/pci/ddbridge/ddbridge-max.c 		lnb_command(dev, port->lnr, input->nr, LNB_CMD_INIT);
nr                491 drivers/media/pci/ddbridge/ddbridge-max.c 		lnb_set_voltage(dev, port->lnr, input->nr, SEC_VOLTAGE_OFF);
nr                 80 drivers/media/pci/ddbridge/ddbridge-mci.c 		dev_warn(state->base->dev, "MCI-%d: MCI timeout\n", state->nr);
nr                127 drivers/media/pci/ddbridge/ddbridge-mci.c *ddb_mci_attach(struct ddb_input *input, struct mci_cfg *cfg, int nr,
nr                155 drivers/media/pci/ddbridge/ddbridge-mci.c 		ddb_irq_set(dev, link->nr, 0, mci_handler, base);
nr                168 drivers/media/pci/ddbridge/ddbridge-mci.c 	state->nr = nr;
nr                170 drivers/media/pci/ddbridge/ddbridge-mci.c 	state->tuner = nr;
nr                171 drivers/media/pci/ddbridge/ddbridge-mci.c 	state->demod = nr;
nr                236 drivers/media/pci/ddbridge/ddbridge-mci.h 	int                  nr;
nr                259 drivers/media/pci/ddbridge/ddbridge-mci.h *ddb_mci_attach(struct ddb_input *input, struct mci_cfg *cfg, int nr,
nr                176 drivers/media/pci/ddbridge/ddbridge-sx8.c 	sx8_base->used_ldpc_bitrate[state->mci.nr] = 0;
nr                219 drivers/media/pci/ddbridge/ddbridge-sx8.c 			if (state->mci.nr < 4)
nr                220 drivers/media/pci/ddbridge/ddbridge-sx8.c 				i = state->mci.nr;
nr                222 drivers/media/pci/ddbridge/ddbridge-sx8.c 			i = state->mci.nr;
nr                263 drivers/media/pci/ddbridge/ddbridge-sx8.c 	sx8_base->used_ldpc_bitrate[state->mci.nr] = p->symbol_rate
nr                287 drivers/media/pci/ddbridge/ddbridge-sx8.c 		state->mci.nr, state->mci.tuner, state->mci.demod);
nr                300 drivers/media/pci/ddbridge/ddbridge-sx8.c 	cmd.output = state->mci.nr;
nr                447 drivers/media/pci/ddbridge/ddbridge-sx8.c 	dev_dbg(mci_base->dev, "MCI-%d: input=%d\n", state->mci.nr, input);
nr                193 drivers/media/pci/ddbridge/ddbridge.h 	u32                    nr;
nr                198 drivers/media/pci/ddbridge/ddbridge.h 	u32                    nr;
nr                210 drivers/media/pci/ddbridge/ddbridge.h 	u32                    nr;
nr                222 drivers/media/pci/ddbridge/ddbridge.h 	u32                    nr;
nr                305 drivers/media/pci/ddbridge/ddbridge.h 	u32                    nr;
nr                343 drivers/media/pci/ddbridge/ddbridge.h 	u32                      nr;
nr                364 drivers/media/pci/ddbridge/ddbridge.h struct ddb_irq *ddb_irq_set(struct ddb *dev, u32 link, u32 nr,
nr                336 drivers/media/pci/dm1105/dm1105.c 	int nr;
nr                987 drivers/media/pci/dm1105/dm1105.c 	dev->nr = dm1105_devcount;
nr                989 drivers/media/pci/dm1105/dm1105.c 	if (card[dev->nr] < ARRAY_SIZE(dm1105_boards))
nr                990 drivers/media/pci/dm1105/dm1105.c 		dev->boardnr = card[dev->nr];
nr                 97 drivers/media/pci/netup_unidvb/netup_unidvb.h 	int nr;
nr                 57 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c 	u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0;
nr                 86 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c 	u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0;
nr                119 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c 	u16 shift = (state->nr == 1) ? CAM1_SHIFT : 0;
nr                196 drivers/media/pci/netup_unidvb/netup_unidvb_ci.c 	state->nr = num;
nr               1441 drivers/media/pci/ngene/ngene-core.c 	int ret = 0, nr = chan->number;
nr               1446 drivers/media/pci/ngene/ngene-core.c 	int io = ni->io_type[nr];
nr               1456 drivers/media/pci/ngene/ngene-core.c 		if (ni->demod_attach[nr]) {
nr               1457 drivers/media/pci/ngene/ngene-core.c 			ret = ni->demod_attach[nr](chan);
nr               1461 drivers/media/pci/ngene/ngene-core.c 		if (chan->fe && ni->tuner_attach[nr]) {
nr               1462 drivers/media/pci/ngene/ngene-core.c 			ret = ni->tuner_attach[nr](chan);
nr               1472 drivers/media/pci/ngene/ngene-core.c 		if (nr >= STREAM_AUDIOIN1)
nr               1475 drivers/media/pci/ngene/ngene-core.c 		if (nr == 0 || !one_adapter || dev->first_adapter == NULL) {
nr               1476 drivers/media/pci/ngene/ngene-core.c 			adapter = &dev->adapter[nr];
nr                743 drivers/media/pci/ngene/ngene.h 	int                   nr;
nr               1193 drivers/media/pci/saa7134/saa7134-alsa.c 	alsa_card_saa7134_create(dev,dev->nr);
nr               1199 drivers/media/pci/saa7134/saa7134-alsa.c 	if (!snd_saa7134_cards[dev->nr])
nr               1202 drivers/media/pci/saa7134/saa7134-alsa.c 	snd_card_free(snd_saa7134_cards[dev->nr]);
nr               1203 drivers/media/pci/saa7134/saa7134-alsa.c 	snd_saa7134_cards[dev->nr] = NULL;
nr               1029 drivers/media/pci/saa7134/saa7134-core.c 	dev->nr = saa7134_devcount;
nr               1030 drivers/media/pci/saa7134/saa7134-core.c 	sprintf(dev->name, "saa%x[%d]", pci_dev->device, dev->nr);
nr               1105 drivers/media/pci/saa7134/saa7134-core.c 	if ((unsigned)card[dev->nr] < saa7134_bcount)
nr               1106 drivers/media/pci/saa7134/saa7134-core.c 		dev->board = card[dev->nr];
nr               1113 drivers/media/pci/saa7134/saa7134-core.c 	dev->autodetected = card[dev->nr] != dev->board;
nr               1119 drivers/media/pci/saa7134/saa7134-core.c 	if (UNSET != tuner[dev->nr])
nr               1120 drivers/media/pci/saa7134/saa7134-core.c 		dev->tuner_type = tuner[dev->nr];
nr               1218 drivers/media/pci/saa7134/saa7134-core.c 				    video_nr[dev->nr]);
nr               1237 drivers/media/pci/saa7134/saa7134-core.c 				    vbi_nr[dev->nr]);
nr               1251 drivers/media/pci/saa7134/saa7134-core.c 					    radio_nr[dev->nr]);
nr                295 drivers/media/pci/saa7134/saa7134-empress.c 				    empress_nr[dev->nr]);
nr                569 drivers/media/pci/saa7134/saa7134.h 	int                        nr;
nr                 32 drivers/media/pci/saa7164/saa7164-api.c 	printk(KERN_INFO "saa7164[%d]-CPU: %d percent", dev->nr, i->CPULoad);
nr                 58 drivers/media/pci/saa7164/saa7164-api.c 		printk(KERN_INFO "saa7164[%d]-FWMSG: %s", dev->nr,
nr                 98 drivers/media/pci/saa7164/saa7164-api.c 		port->nr, port->hwcfg.unitid);
nr                149 drivers/media/pci/saa7164/saa7164-api.c 		dprintk(DBGLVL_API, "%s(nr=%d) Success\n", __func__, port->nr);
nr                618 drivers/media/pci/saa7164/saa7164-api.c 		port->nr, port->type, val);
nr                620 drivers/media/pci/saa7164/saa7164-api.c 	if (port->nr == 0)
nr                671 drivers/media/pci/saa7164/saa7164-api.c 	dprintk(DBGLVL_API, "%s(nr=%d, 0x%x)\n", __func__, port->nr, std);
nr                737 drivers/media/pci/saa7164/saa7164-api.c 		port->nr, port->type);
nr                747 drivers/media/pci/saa7164/saa7164-api.c 		if (port->nr == SAA7164_PORT_TS1)
nr                754 drivers/media/pci/saa7164/saa7164-api.c 		if (port->nr == SAA7164_PORT_VBI1)
nr                774 drivers/media/pci/saa7164/saa7164-api.c 		__func__, port->nr, port->hwcfg.unitid, mode);
nr                780 drivers/media/pci/saa7164/saa7164-api.c 			__func__, port->nr, port->hwcfg.unitid, ret);
nr                841 drivers/media/pci/saa7164/saa7164-api.c 		port->nr);
nr                876 drivers/media/pci/saa7164/saa7164-api.c 		port->nr);
nr                910 drivers/media/pci/saa7164/saa7164-api.c 		port->nr);
nr               1152 drivers/media/pci/saa7164/saa7164-api.c 					encport->nr);
nr               1182 drivers/media/pci/saa7164/saa7164-api.c 					encport->nr);
nr               1201 drivers/media/pci/saa7164/saa7164-api.c 				encport->nr);
nr               1222 drivers/media/pci/saa7164/saa7164-api.c 					encport->nr);
nr               1288 drivers/media/pci/saa7164/saa7164-api.c 					encport->nr);
nr                226 drivers/media/pci/saa7164/saa7164-buffer.c 	dprintk(DBGLVL_BUF, "%s(port=%d)\n", __func__, port->nr);
nr                881 drivers/media/pci/saa7164/saa7164-cards.c 		if ((bus->nr == unit->i2c_bus_nr) &&
nr                909 drivers/media/pci/saa7164/saa7164-cards.c 		if ((bus->nr == unit->i2c_bus_nr) &&
nr                295 drivers/media/pci/saa7164/saa7164-core.c 			if ((port->nr != SAA7164_PORT_VBI1) && (port->nr != SAA7164_PORT_VBI2)) {
nr                417 drivers/media/pci/saa7164/saa7164-core.c 	if (print_histogram == port->nr) {
nr                424 drivers/media/pci/saa7164/saa7164-core.c 		print_histogram = 64 + port->nr;
nr                493 drivers/media/pci/saa7164/saa7164-core.c 	if (print_histogram == port->nr) {
nr                500 drivers/media/pci/saa7164/saa7164-core.c 		print_histogram = 64 + port->nr;
nr                905 drivers/media/pci/saa7164/saa7164-core.c 	port->nr = portnr;
nr                951 drivers/media/pci/saa7164/saa7164-core.c 	dev->nr = saa7164_devcount++;
nr                953 drivers/media/pci/saa7164/saa7164-core.c 	snprintf(dev->name, sizeof(dev->name), "saa7164[%d]", dev->nr);
nr                961 drivers/media/pci/saa7164/saa7164-core.c 	if (card[dev->nr] < saa7164_bcount)
nr                962 drivers/media/pci/saa7164/saa7164-core.c 		dev->board = card[dev->nr];
nr                980 drivers/media/pci/saa7164/saa7164-core.c 	dev->i2c_bus[0].nr = 0;
nr                982 drivers/media/pci/saa7164/saa7164-core.c 	dev->i2c_bus[1].nr = 1;
nr                984 drivers/media/pci/saa7164/saa7164-core.c 	dev->i2c_bus[2].nr = 2;
nr               1021 drivers/media/pci/saa7164/saa7164-core.c 	       dev->board, card[dev->nr] == dev->board ?
nr                198 drivers/media/pci/saa7164/saa7164-dvb.c 	dprintk(DBGLVL_DVB, "%s(port=%d)\n", __func__, port->nr);
nr                220 drivers/media/pci/saa7164/saa7164-dvb.c 	dprintk(DBGLVL_DVB, "%s(port=%d)\n", __func__, port->nr);
nr                288 drivers/media/pci/saa7164/saa7164-dvb.c 	dprintk(DBGLVL_DVB, "%s(port=%d)\n", __func__, port->nr);
nr                301 drivers/media/pci/saa7164/saa7164-dvb.c 			__func__, port->nr, dvb->feeding);
nr                315 drivers/media/pci/saa7164/saa7164-dvb.c 	dprintk(DBGLVL_DVB, "%s(port=%d)\n", __func__, port->nr);
nr                325 drivers/media/pci/saa7164/saa7164-dvb.c 			__func__, port->nr, dvb->feeding);
nr                338 drivers/media/pci/saa7164/saa7164-dvb.c 	dprintk(DBGLVL_DVB, "%s(port=%d)\n", __func__, port->nr);
nr                547 drivers/media/pci/saa7164/saa7164-dvb.c 		i2c_bus = &dev->i2c_bus[port->nr + 1];
nr                548 drivers/media/pci/saa7164/saa7164-dvb.c 		switch (port->nr) {
nr                580 drivers/media/pci/saa7164/saa7164-dvb.c 		i2c_bus = &dev->i2c_bus[port->nr + 1];
nr                587 drivers/media/pci/saa7164/saa7164-dvb.c 			if (port->nr == 0) {
nr                606 drivers/media/pci/saa7164/saa7164-dvb.c 		if (port->nr == 0) {
nr                616 drivers/media/pci/saa7164/saa7164-dvb.c 			if (port->nr == 0) {
nr                629 drivers/media/pci/saa7164/saa7164-dvb.c 		if (port->nr == 0) {
nr                 69 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d) dmaqueue\n", __func__, port->nr);
nr                 76 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d) used\n", __func__, port->nr);
nr                 83 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d) free\n", __func__, port->nr);
nr                 91 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d) done\n", __func__, port->nr);
nr                381 drivers/media/pci/saa7164/saa7164-encoder.c 	if (port->nr == SAA7164_PORT_ENC1)
nr                383 drivers/media/pci/saa7164/saa7164-encoder.c 	else if (port->nr == SAA7164_PORT_ENC2)
nr                595 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d)\n", __func__, port->nr);
nr                602 drivers/media/pci/saa7164/saa7164-encoder.c 		port->nr);
nr                625 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d) Released\n", __func__, port->nr);
nr                635 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d)\n", __func__, port->nr);
nr               1129 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d)\n", __func__, port->nr);
nr               1143 drivers/media/pci/saa7164/saa7164-encoder.c 	dprintk(DBGLVL_ENC, "%s(port=%d) done\n", __func__, port->nr);
nr                 85 drivers/media/pci/saa7164/saa7164-i2c.c 	dprintk(DBGLVL_I2C, "%s(bus = %d)\n", __func__, bus->nr);
nr                103 drivers/media/pci/saa7164/saa7164-i2c.c 			dev->name, bus->nr);
nr                 38 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d) dmaqueue\n", __func__, port->nr);
nr                 45 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d) used\n", __func__, port->nr);
nr                 52 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d) free\n", __func__, port->nr);
nr                 60 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d) done\n", __func__, port->nr);
nr                279 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d)\n", __func__, port->nr);
nr                286 drivers/media/pci/saa7164/saa7164-vbi.c 		port->nr);
nr                309 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d) Released\n", __func__, port->nr);
nr                319 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d)\n", __func__, port->nr);
nr                730 drivers/media/pci/saa7164/saa7164-vbi.c 	port->enc_port = &dev->ports[port->nr - 2];
nr                757 drivers/media/pci/saa7164/saa7164-vbi.c 	dprintk(DBGLVL_VBI, "%s(port=%d)\n", __func__, port->nr);
nr                244 drivers/media/pci/saa7164/saa7164.h 	enum saa7164_i2c_bus_nr		nr;
nr                325 drivers/media/pci/saa7164/saa7164.h 	int nr;
nr                437 drivers/media/pci/saa7164/saa7164.h 	int	nr;
nr                957 drivers/media/pci/smipcie/smipcie-main.c 	dev->nr = dev->info->type;
nr                277 drivers/media/pci/smipcie/smipcie.h 	int nr;
nr               1210 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 					   u8 ch, unsigned nr)
nr               1307 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 	ret = video_register_device(solo_enc->vfd, VFL_TYPE_GRABBER, nr);
nr               1342 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c int solo_enc_v4l2_init(struct solo_dev *solo_dev, unsigned nr)
nr               1356 drivers/media/pci/solo6x10/solo6x10-v4l2-enc.c 		solo_dev->v4l2_enc[i] = solo_enc_alloc(solo_dev, i, nr);
nr                641 drivers/media/pci/solo6x10/solo6x10-v4l2.c int solo_v4l2_init(struct solo_dev *solo_dev, unsigned nr)
nr                695 drivers/media/pci/solo6x10/solo6x10-v4l2.c 	ret = video_register_device(solo_dev->vfd, VFL_TYPE_GRABBER, nr);
nr                314 drivers/media/pci/solo6x10/solo6x10.h int solo_v4l2_init(struct solo_dev *solo_dev, unsigned nr);
nr                320 drivers/media/pci/solo6x10/solo6x10.h int solo_enc_v4l2_init(struct solo_dev *solo_dev, unsigned nr);
nr                211 drivers/media/pci/tw5864/tw5864-core.c 						 2 * input->nr);
nr                231 drivers/media/pci/tw5864/tw5864-core.c 					     2 * input->nr, input->buf_id + 3);
nr                212 drivers/media/pci/tw5864/tw5864-video.c 	u8 std_reg = tw_indir_readb(TW5864_INDIR_VIN_E(input->nr));
nr                228 drivers/media/pci/tw5864/tw5864-video.c 	int nr = input->nr;
nr                238 drivers/media/pci/tw5864/tw5864-video.c 	dev_dbg(&dev->pci->dev, "Enabling channel %d\n", nr);
nr                249 drivers/media/pci/tw5864/tw5864-video.c 	input->reg_dsp = nr /* channel id */
nr                274 drivers/media/pci/tw5864/tw5864-video.c 		tw_setl(TW5864_FULL_HALF_FLAG, 1 << nr);
nr                287 drivers/media/pci/tw5864/tw5864-video.c 		tw_clearl(TW5864_FULL_HALF_FLAG, 1 << nr);
nr                300 drivers/media/pci/tw5864/tw5864-video.c 		tw_clearl(TW5864_FULL_HALF_FLAG, 1 << nr);
nr                312 drivers/media/pci/tw5864/tw5864-video.c 		tw_clearl(TW5864_FULL_HALF_FLAG, 1 << nr);
nr                317 drivers/media/pci/tw5864/tw5864-video.c 	tw_indir_writeb(TW5864_INDIR_IN_PIC_WIDTH(nr), d1_width / 4);
nr                318 drivers/media/pci/tw5864/tw5864-video.c 	tw_indir_writeb(TW5864_INDIR_IN_PIC_HEIGHT(nr), d1_height / 4);
nr                321 drivers/media/pci/tw5864/tw5864-video.c 	tw_indir_writeb(TW5864_INDIR_OUT_PIC_WIDTH(nr), input->width / 4);
nr                322 drivers/media/pci/tw5864/tw5864-video.c 	tw_indir_writeb(TW5864_INDIR_OUT_PIC_HEIGHT(nr), input->height / 4);
nr                336 drivers/media/pci/tw5864/tw5864-video.c 	tw_writel(TW5864_FRAME_WIDTH_BUS_A(nr),
nr                338 drivers/media/pci/tw5864/tw5864-video.c 	tw_writel(TW5864_FRAME_WIDTH_BUS_B(nr),
nr                340 drivers/media/pci/tw5864/tw5864-video.c 	tw_writel(TW5864_FRAME_HEIGHT_BUS_A(nr),
nr                342 drivers/media/pci/tw5864/tw5864-video.c 	tw_writel(TW5864_FRAME_HEIGHT_BUS_B(nr),
nr                348 drivers/media/pci/tw5864/tw5864-video.c 		tw_setl(TW5864_H264EN_CH_DNS, 1 << nr);
nr                350 drivers/media/pci/tw5864/tw5864-video.c 	tw_mask_shift_writel(TW5864_H264EN_CH_FMT_REG1, 0x3, 2 * nr,
nr                353 drivers/media/pci/tw5864/tw5864-video.c 	tw_mask_shift_writel((nr < 2
nr                356 drivers/media/pci/tw5864/tw5864-video.c 			     0x1f, 5 * (nr % 2),
nr                359 drivers/media/pci/tw5864/tw5864-video.c 	tw_mask_shift_writel((nr < 2) ? TW5864_FRAME_BUS1 :
nr                360 drivers/media/pci/tw5864/tw5864-video.c 			     TW5864_FRAME_BUS2, 0xff, (nr % 2) * 8,
nr                404 drivers/media/pci/tw5864/tw5864-video.c 					     2 * input->nr);
nr                419 drivers/media/pci/tw5864/tw5864-video.c 	dev_dbg(&dev->pci->dev, "Disabling channel %d\n", input->nr);
nr                486 drivers/media/pci/tw5864/tw5864-video.c 		tw_indir_writeb(TW5864_INDIR_VIN_A_BRIGHT(input->nr),
nr                490 drivers/media/pci/tw5864/tw5864-video.c 		tw_indir_writeb(TW5864_INDIR_VIN_7_HUE(input->nr),
nr                494 drivers/media/pci/tw5864/tw5864-video.c 		tw_indir_writeb(TW5864_INDIR_VIN_9_CNTRST(input->nr),
nr                498 drivers/media/pci/tw5864/tw5864-video.c 		tw_indir_writeb(TW5864_INDIR_VIN_B_SAT_U(input->nr),
nr                500 drivers/media/pci/tw5864/tw5864-video.c 		tw_indir_writeb(TW5864_INDIR_VIN_C_SAT_V(input->nr),
nr                561 drivers/media/pci/tw5864/tw5864-video.c 	u8 indir_0x000 = tw_indir_readb(TW5864_INDIR_VIN_0(input->nr));
nr                562 drivers/media/pci/tw5864/tw5864-video.c 	u8 indir_0x00d = tw_indir_readb(TW5864_INDIR_VIN_D(input->nr));
nr                570 drivers/media/pci/tw5864/tw5864-video.c 	snprintf(i->name, sizeof(i->name), "Encoder %d", input->nr);
nr                606 drivers/media/pci/tw5864/tw5864-video.c 		 input->nr);
nr                640 drivers/media/pci/tw5864/tw5864-video.c 	tw_indir_writeb(TW5864_INDIR_VIN_E(input->nr), input->std);
nr                702 drivers/media/pci/tw5864/tw5864-video.c 	tw_writel(TW5864_H264EN_RATE_CNTL_LO_WORD(input->nr, 0),
nr                704 drivers/media/pci/tw5864/tw5864-video.c 	tw_writel(TW5864_H264EN_RATE_CNTL_HI_WORD(input->nr, 0),
nr               1065 drivers/media/pci/tw5864/tw5864-video.c 		dev->inputs[i].nr = i;
nr                 85 drivers/media/pci/tw5864/tw5864.h 	int nr; /* input number */
nr               1692 drivers/media/platform/am437x/am437x-vpfe.c 		    client->adapter->nr == curr_client->adapter->nr) {
nr                 17 drivers/media/platform/exynos4-is/fimc-is-regs.c void fimc_is_fw_clear_irq1(struct fimc_is *is, unsigned int nr)
nr                 19 drivers/media/platform/exynos4-is/fimc-is-regs.c 	mcuctl_write(1UL << nr, is, MCUCTL_REG_INTCR1);
nr                108 drivers/media/tuners/tuner-simple.c 	unsigned int nr;
nr                416 drivers/media/tuners/tuner-simple.c 	if (atv_input[priv->nr])
nr                417 drivers/media/tuners/tuner-simple.c 		simple_set_rf_input(fe, config, cb, atv_input[priv->nr]);
nr                823 drivers/media/tuners/tuner-simple.c 		if (dtv_input[priv->nr])
nr                824 drivers/media/tuners/tuner-simple.c 			new_rf = dtv_input[priv->nr];
nr               1099 drivers/media/tuners/tuner-simple.c 		priv->nr   = simple_devcount++;
nr               1118 drivers/media/tuners/tuner-simple.c 	if ((debug) || ((atv_input[priv->nr] > 0) ||
nr               1119 drivers/media/tuners/tuner-simple.c 			(dtv_input[priv->nr] > 0))) {
nr               1120 drivers/media/tuners/tuner-simple.c 		if (0 == atv_input[priv->nr])
nr               1122 drivers/media/tuners/tuner-simple.c 				   priv->nr);
nr               1125 drivers/media/tuners/tuner-simple.c 				   priv->nr, atv_input[priv->nr]);
nr               1126 drivers/media/tuners/tuner-simple.c 		if (0 == dtv_input[priv->nr])
nr               1128 drivers/media/tuners/tuner-simple.c 				   priv->nr);
nr               1131 drivers/media/tuners/tuner-simple.c 				   priv->nr, dtv_input[priv->nr]);
nr                107 drivers/media/usb/au0828/au0828.h #define AUVI_INPUT(nr) (dev->board.input[nr])
nr               1697 drivers/media/usb/cx231xx/cx231xx-cards.c 	int nr = 0, ifnum;
nr               1714 drivers/media/usb/cx231xx/cx231xx-cards.c 		nr = find_first_zero_bit(&cx231xx_devused, CX231XX_MAXBOARDS);
nr               1715 drivers/media/usb/cx231xx/cx231xx-cards.c 		if (nr >= CX231XX_MAXBOARDS) {
nr               1722 drivers/media/usb/cx231xx/cx231xx-cards.c 	} while (test_and_set_bit(nr, &cx231xx_devused));
nr               1733 drivers/media/usb/cx231xx/cx231xx-cards.c 	snprintf(dev->name, 29, "cx231xx #%d", nr);
nr               1734 drivers/media/usb/cx231xx/cx231xx-cards.c 	dev->devno = nr;
nr               1791 drivers/media/usb/cx231xx/cx231xx-cards.c 	nr = dev->devno;
nr               1823 drivers/media/usb/cx231xx/cx231xx-cards.c 	retval = cx231xx_init_dev(dev, udev, nr);
nr               1921 drivers/media/usb/cx231xx/cx231xx-cards.c 	clear_bit(nr, &cx231xx_devused);
nr                174 drivers/media/usb/cx231xx/cx231xx-core.c 		ven_req.bRequest = i2c_bus->nr + 4;
nr                176 drivers/media/usb/cx231xx/cx231xx-core.c 		ven_req.bRequest = i2c_bus->nr;	/* channel number,  */
nr               1299 drivers/media/usb/cx231xx/cx231xx-core.c 	dev->i2c_bus[0].nr = 0;
nr               1307 drivers/media/usb/cx231xx/cx231xx-core.c 	dev->i2c_bus[1].nr = 1;
nr               1315 drivers/media/usb/cx231xx/cx231xx-core.c 	dev->i2c_bus[2].nr = 2;
nr                 55 drivers/media/usb/cx231xx/cx231xx-i2c.c 	int i2c_port = get_real_i2c_port(dev, bus->nr);
nr                393 drivers/media/usb/cx231xx/cx231xx-i2c.c 			   && (msgs[i].len <= 2) && (bus->nr < 3)) {
nr                523 drivers/media/usb/cx231xx/cx231xx-i2c.c 	snprintf(bus->i2c_adap.name, sizeof(bus->i2c_adap.name), "%s-%d", bus->dev->name, bus->nr);
nr                531 drivers/media/usb/cx231xx/cx231xx-i2c.c 			 "i2c bus %d register FAILED\n", bus->nr);
nr                310 drivers/media/usb/cx231xx/cx231xx.h #define INPUT(nr) (&cx231xx_boards[dev->model].input[nr])
nr                465 drivers/media/usb/cx231xx/cx231xx.h 	int nr;
nr                532 drivers/media/usb/cx231xx/cx231xx.h 	int                        nr;
nr               3568 drivers/media/usb/em28xx/em28xx-cards.c 	int nr;
nr               3577 drivers/media/usb/em28xx/em28xx-cards.c 		nr = find_first_zero_bit(em28xx_devused, EM28XX_MAXBOARDS);
nr               3578 drivers/media/usb/em28xx/em28xx-cards.c 		if (nr >= EM28XX_MAXBOARDS) {
nr               3586 drivers/media/usb/em28xx/em28xx-cards.c 	} while (test_and_set_bit(nr, em28xx_devused));
nr               3587 drivers/media/usb/em28xx/em28xx-cards.c 	sec_dev->devno = nr;
nr               3588 drivers/media/usb/em28xx/em28xx-cards.c 	snprintf(sec_dev->name, 28, "em28xx #%d", nr);
nr               3712 drivers/media/usb/em28xx/em28xx-cards.c 	int i, nr, try_bulk;
nr               3720 drivers/media/usb/em28xx/em28xx-cards.c 		nr = find_first_zero_bit(em28xx_devused, EM28XX_MAXBOARDS);
nr               3721 drivers/media/usb/em28xx/em28xx-cards.c 		if (nr >= EM28XX_MAXBOARDS) {
nr               3729 drivers/media/usb/em28xx/em28xx-cards.c 	} while (test_and_set_bit(nr, em28xx_devused));
nr               3818 drivers/media/usb/em28xx/em28xx-cards.c 	dev->devno = nr;
nr               3861 drivers/media/usb/em28xx/em28xx-cards.c 	if ((unsigned int)card[nr] < em28xx_bcount)
nr               3862 drivers/media/usb/em28xx/em28xx-cards.c 		dev->model = card[nr];
nr               3869 drivers/media/usb/em28xx/em28xx-cards.c 	retval = em28xx_init_dev(dev, udev, intf, nr);
nr               3996 drivers/media/usb/em28xx/em28xx-cards.c 	clear_bit(nr, em28xx_devused);
nr                427 drivers/media/usb/em28xx/em28xx.h #define INPUT(nr) (&em28xx_boards[dev->model].input[nr])
nr               3304 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 	int nr = pvr2_hdw_get_unit_number(hdw);
nr               3307 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		pr_info("pvrusb2: =================  START STATUS CARD #%d  =================\n", nr);
nr               3312 drivers/media/usb/pvrusb2/pvrusb2-hdw.c 		pr_info("pvrusb2: ==================  END STATUS CARD #%d  ==================\n", nr);
nr               1178 drivers/media/usb/tm6000/tm6000-cards.c 	int nr = 0;
nr               1189 drivers/media/usb/tm6000/tm6000-cards.c 	nr = find_first_zero_bit(&tm6000_devused, TM6000_MAXBOARDS);
nr               1190 drivers/media/usb/tm6000/tm6000-cards.c 	if (nr >= TM6000_MAXBOARDS) {
nr               1206 drivers/media/usb/tm6000/tm6000-cards.c 	set_bit(nr, &tm6000_devused);
nr               1207 drivers/media/usb/tm6000/tm6000-cards.c 	snprintf(dev->name, 29, "tm6000 #%d", nr);
nr               1210 drivers/media/usb/tm6000/tm6000-cards.c 	if (card[nr] < ARRAY_SIZE(tm6000_boards))
nr               1211 drivers/media/usb/tm6000/tm6000-cards.c 		dev->model = card[nr];
nr               1214 drivers/media/usb/tm6000/tm6000-cards.c 	dev->devno = nr;
nr               1323 drivers/media/usb/tm6000/tm6000-cards.c 	clear_bit(nr, &tm6000_devused);
nr               1277 drivers/media/usb/usbvision/usbvision-video.c 	       usbvision->nr, video_device_node_name(&usbvision->vdev));
nr               1288 drivers/media/usb/usbvision/usbvision-video.c 		       usbvision->nr, video_device_node_name(&usbvision->rdev));
nr               1296 drivers/media/usb/usbvision/usbvision-video.c 			usbvision->nr);
nr               1513 drivers/media/usb/usbvision/usbvision-video.c 	usbvision->nr = usbvision_nr++;
nr                370 drivers/media/usb/usbvision/usbvision.h 	unsigned int nr;						/* Number of the device */
nr                 59 drivers/media/v4l2-core/v4l2-async.c 		asd->match.i2c.adapter_id == client->adapter->nr &&
nr                843 drivers/media/v4l2-core/v4l2-dev.c 			    int nr, int warn_if_nr_in_use,
nr                937 drivers/media/v4l2-core/v4l2-dev.c 	nr = devnode_find(vdev, nr == -1 ? 0 : nr, minor_cnt);
nr                938 drivers/media/v4l2-core/v4l2-dev.c 	if (nr == minor_cnt)
nr                939 drivers/media/v4l2-core/v4l2-dev.c 		nr = devnode_find(vdev, 0, minor_cnt);
nr                940 drivers/media/v4l2-core/v4l2-dev.c 	if (nr == minor_cnt) {
nr                947 drivers/media/v4l2-core/v4l2-dev.c 	i = nr;
nr                961 drivers/media/v4l2-core/v4l2-dev.c 	vdev->num = nr;
nr               1007 drivers/media/v4l2-core/v4l2-dev.c 	if (nr != -1 && nr != vdev->num && warn_if_nr_in_use)
nr               1009 drivers/media/v4l2-core/v4l2-dev.c 			name_base, nr, video_device_node_name(vdev));
nr                817 drivers/mfd/si476x-i2c.c 			       (client->adapter->nr << 8) + client->addr,
nr                 69 drivers/misc/cb710/core.c 	unsigned nr;
nr                 73 drivers/misc/cb710/core.c 	for (nr = chip->slots; nr; ++slot, --nr) {
nr                 98 drivers/misc/cb710/core.c 	int nr = chip->slots;
nr                 99 drivers/misc/cb710/core.c 	struct cb710_slot *slot = &chip->slot[nr];
nr                104 drivers/misc/cb710/core.c 		name, chip->platform_id, nr, slot_mask, io_offset);
nr                141 drivers/misc/cb710/core.c 	int nr = chip->slots - 1;
nr                146 drivers/misc/cb710/core.c 	platform_device_unregister(&chip->slot[nr].pdev);
nr                150 drivers/misc/cb710/core.c 	BUG_ON(chip->slot[nr].irq_handler != NULL);
nr                 32 drivers/misc/cs5535-mfgpt.c 	int nr;
nr                 67 drivers/misc/cs5535-mfgpt.c 		mask = 1 << (timer->nr + 24);
nr                 72 drivers/misc/cs5535-mfgpt.c 		mask = 1 << (timer->nr + shift);
nr                 77 drivers/misc/cs5535-mfgpt.c 		mask = 1 << (timer->nr + shift);
nr                116 drivers/misc/cs5535-mfgpt.c 	shift = ((cmp == MFGPT_CMP1 ? 0 : 4) + timer->nr % 4) * 4;
nr                198 drivers/misc/cs5535-mfgpt.c 	timer->nr = timer_nr;
nr                220 drivers/misc/cs5535-mfgpt.c 		__set_bit(timer->nr, timer->chip->avail);
nr                230 drivers/misc/cs5535-mfgpt.c 	return inw(timer->chip->base + reg + (timer->nr * 8));
nr                237 drivers/misc/cs5535-mfgpt.c 	outw(value, timer->chip->base + reg + (timer->nr * 8));
nr                269 drivers/misc/cs5535-mfgpt.c 		t.nr = i;
nr                304 drivers/misc/cs5535-mfgpt.c 		timer.nr = i;
nr                 66 drivers/misc/ds1682.c 	rc = i2c_smbus_read_i2c_block_data(client, sattr->index, sattr->nr,
nr                 79 drivers/misc/ds1682.c 							   sattr->nr,
nr                 94 drivers/misc/ds1682.c 	return sprintf(buf, "%llu\n", (sattr->nr == 4) ? (val * 250) : val);
nr                117 drivers/misc/ds1682.c 	if (sattr->nr == 4)
nr                122 drivers/misc/ds1682.c 	rc = i2c_smbus_write_i2c_block_data(client, sattr->index, sattr->nr,
nr                126 drivers/misc/ds1682.c 			sattr->index, sattr->nr);
nr               1375 drivers/misc/eeprom/idt_89hpesx.c 	snprintf(fname, CSRNAME_LEN, "%d-%04hx", cli->adapter->nr, cli->addr);
nr                356 drivers/misc/habanalabs/habanalabs_ioctl.c 	unsigned int nr = _IOC_NR(cmd);
nr                416 drivers/misc/habanalabs/habanalabs_ioctl.c 			  task_pid_nr(current), cmd, nr);
nr                429 drivers/misc/habanalabs/habanalabs_ioctl.c 	unsigned int nr = _IOC_NR(cmd);
nr                431 drivers/misc/habanalabs/habanalabs_ioctl.c 	if ((nr >= HL_COMMAND_START) && (nr < HL_COMMAND_END)) {
nr                432 drivers/misc/habanalabs/habanalabs_ioctl.c 		ioctl = &hl_ioctls[nr];
nr                435 drivers/misc/habanalabs/habanalabs_ioctl.c 			task_pid_nr(current), nr);
nr                447 drivers/misc/habanalabs/habanalabs_ioctl.c 	unsigned int nr = _IOC_NR(cmd);
nr                449 drivers/misc/habanalabs/habanalabs_ioctl.c 	if (nr == _IOC_NR(HL_IOCTL_INFO)) {
nr                450 drivers/misc/habanalabs/habanalabs_ioctl.c 		ioctl = &hl_ioctls_control[nr];
nr                453 drivers/misc/habanalabs/habanalabs_ioctl.c 			task_pid_nr(current), nr);
nr               1090 drivers/mmc/core/block.c 	unsigned int from, nr;
nr               1100 drivers/mmc/core/block.c 	nr = blk_rq_sectors(req);
nr               1113 drivers/mmc/core/block.c 			err = mmc_erase(card, from, nr, card->erase_arg);
nr               1128 drivers/mmc/core/block.c 	unsigned int from, nr, arg;
nr               1138 drivers/mmc/core/block.c 	nr = blk_rq_sectors(req);
nr               1140 drivers/mmc/core/block.c 	if (mmc_can_trim(card) && !mmc_erase_group_aligned(card, from, nr))
nr               1157 drivers/mmc/core/block.c 	err = mmc_erase(card, from, nr, arg);
nr               1175 drivers/mmc/core/block.c 		err = mmc_erase(card, from, nr, MMC_SECURE_TRIM2_ARG);
nr               1807 drivers/mmc/core/core.c 					 unsigned int nr)
nr               1809 drivers/mmc/core/core.c 	unsigned int from_new = *from, nr_new = nr, rem;
nr               1861 drivers/mmc/core/core.c int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr,
nr               1864 drivers/mmc/core/core.c 	unsigned int rem, to = from + nr;
nr               1886 drivers/mmc/core/core.c 		if (from % card->erase_size || nr % card->erase_size)
nr               1891 drivers/mmc/core/core.c 		nr = mmc_align_erase_size(card, &from, &to, nr);
nr               1893 drivers/mmc/core/core.c 	if (nr == 0)
nr               1911 drivers/mmc/core/core.c 	if ((arg & MMC_TRIM_ARGS) && (card->eg_boundary) && (nr > rem)) {
nr               1972 drivers/mmc/core/core.c 			    unsigned int nr)
nr               1976 drivers/mmc/core/core.c 	if (from % card->erase_size || nr % card->erase_size)
nr                109 drivers/mmc/core/core.h int mmc_erase(struct mmc_card *card, unsigned int from, unsigned int nr,
nr                117 drivers/mmc/core/core.h 			unsigned int nr);
nr                157 drivers/mtd/maps/sa1100-flash.c 	int nr, size, i, ret = 0;
nr                162 drivers/mtd/maps/sa1100-flash.c 	for (nr = 0; ; nr++)
nr                163 drivers/mtd/maps/sa1100-flash.c 		if (!platform_get_resource(pdev, IORESOURCE_MEM, nr))
nr                166 drivers/mtd/maps/sa1100-flash.c 	if (nr == 0) {
nr                171 drivers/mtd/maps/sa1100-flash.c 	size = sizeof(struct sa_info) + sizeof(struct sa_subdev_info) * nr;
nr                191 drivers/mtd/maps/sa1100-flash.c 	for (i = 0; i < nr; i++) {
nr                228 drivers/mtd/maps/sa1100-flash.c 		cdev = kmalloc_array(nr, sizeof(*cdev), GFP_KERNEL);
nr                369 drivers/mtd/nand/raw/diskonchip.c static uint16_t __init doc200x_ident_chip(struct mtd_info *mtd, int nr)
nr                375 drivers/mtd/nand/raw/diskonchip.c 	doc200x_select_chip(this, nr);
nr                389 drivers/mtd/nand/raw/diskonchip.c 	if (doc->ChipID == DOC_ChipID_Doc2k && try_dword && !nr) {
nr                 33 drivers/mtd/spi-nor/hisi-sfc.c #define TIMING_CFG_TCSH(nr)		(((nr) & 0xf) << 8)
nr                 34 drivers/mtd/spi-nor/hisi-sfc.c #define TIMING_CFG_TCSS(nr)		(((nr) & 0xf) << 4)
nr                 35 drivers/mtd/spi-nor/hisi-sfc.c #define TIMING_CFG_TSHSL(nr)		((nr) & 0xf)
nr                 39 drivers/mtd/tests/mtd_nandecctest.c #define __change_bit_le(nr, addr) __change_bit(nr, addr)
nr                 41 drivers/mtd/tests/mtd_nandecctest.c #define __change_bit_le(nr, addr) \
nr                 42 drivers/mtd/tests/mtd_nandecctest.c 		__change_bit((nr) ^ ((BITS_PER_LONG - 1) & ~0x7), addr)
nr                301 drivers/net/can/kvaser_pciefd.c 	__le32 nr;
nr                 52 drivers/net/can/softing/softing.h 		int nr;
nr                424 drivers/net/can/softing/softing_main.c 	if (!card->irq.nr) {
nr                427 drivers/net/can/softing/softing_main.c 		free_irq(card->irq.nr, card);
nr                430 drivers/net/can/softing/softing_main.c 		ret = request_threaded_irq(card->irq.nr,
nr                438 drivers/net/can/softing/softing_main.c 					card->irq.nr);
nr                455 drivers/net/can/softing/softing_main.c 	if (card->irq.requested && card->irq.nr) {
nr                456 drivers/net/can/softing/softing_main.c 		free_irq(card->irq.nr, card);
nr                788 drivers/net/can/softing/softing_main.c 		card->irq.nr = pres->start;
nr                100 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 			int nr;
nr                138 drivers/net/ethernet/atheros/atl1e/atl1e_param.c 			for (i = 0; i < opt->arg.l.nr; i++) {
nr                120 drivers/net/ethernet/atheros/atlx/atl1.c 			int nr;
nr                159 drivers/net/ethernet/atheros/atlx/atl1.c 			for (i = 0; i < opt->arg.l.nr; i++) {
nr               2893 drivers/net/ethernet/atheros/atlx/atl2.c 			int nr;
nr               2927 drivers/net/ethernet/atheros/atlx/atl2.c 		for (i = 0; i < opt->arg.l.nr; i++) {
nr                615 drivers/net/ethernet/broadcom/bnx2x/bnx2x.h #define bnx2x_fp(bp, nr, var)	((bp)->fp[(nr)].var)
nr                179 drivers/net/ethernet/broadcom/bnx2x/bnx2x_sriov.h #define bnx2x_vfq(vf, nr, var)		((vf)->vfqs[(nr)].var)
nr                971 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c 		struct netevent_redirect *nr = ctx;
nr                972 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c 		cxgb_redirect(nr->old, nr->new, nr->neigh,
nr                973 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c 			      nr->daddr);
nr                974 drivers/net/ethernet/chelsio/cxgb3/cxgb3_offload.c 		cxgb_neigh_update(nr->neigh);
nr                 88 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c 				   unsigned int nr,
nr                 93 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c 	i = bitmap_find_next_zero_area(bmap, max_ppods, start, nr, align_mask);
nr                 95 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c 	if (unlikely(i >= max_ppods) && (start > nr))
nr                101 drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c 	bitmap_set(bmap, i, nr);
nr                 64 drivers/net/ethernet/cisco/enic/vnic_devcmd.h #define _CMDCF(dir, flags, vtype, nr)  \
nr                 68 drivers/net/ethernet/cisco/enic/vnic_devcmd.h 	((nr)    << _CMD_NSHIFT))
nr                 69 drivers/net/ethernet/cisco/enic/vnic_devcmd.h #define _CMDC(dir, vtype, nr)    _CMDCF(dir, 0, vtype, nr)
nr                 70 drivers/net/ethernet/cisco/enic/vnic_devcmd.h #define _CMDCNW(dir, vtype, nr)  _CMDCF(dir, _CMD_FLAGS_NOWAIT, vtype, nr)
nr                325 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	int nr, napi_ok;
nr                331 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	nr = 0;
nr                333 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 		nr++;
nr                357 drivers/net/ethernet/freescale/fs_enet/fs_enet-main.c 	handled = nr > 0;
nr                177 drivers/net/ethernet/intel/e1000/e1000_param.c 			int nr;
nr                213 drivers/net/ethernet/intel/e1000/e1000_param.c 		for (i = 0; i < opt->arg.l.nr; i++) {
nr                343 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .l = { .nr = ARRAY_SIZE(fc_list),
nr                555 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .l = { .nr = ARRAY_SIZE(speed_list),
nr                577 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .l = { .nr = ARRAY_SIZE(dplx_list),
nr                633 drivers/net/ethernet/intel/e1000/e1000_param.c 			.arg  = { .l = { .nr = ARRAY_SIZE(an_list),
nr                154 drivers/net/ethernet/intel/e1000e/param.c 			int nr;
nr                196 drivers/net/ethernet/intel/e1000e/param.c 		for (i = 0; i < opt->arg.l.nr; i++) {
nr                168 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			int nr;
nr                206 drivers/net/ethernet/intel/ixgb/ixgb_param.c 		for (i = 0; i < opt->arg.l.nr; i++) {
nr                313 drivers/net/ethernet/intel/ixgb/ixgb_param.c 			.arg  = { .l = { .nr = ARRAY_SIZE(fc_list),
nr                268 drivers/net/ethernet/lantiq_etop.c 		ch->idx = ch->dma.nr = i;
nr                361 drivers/net/ethernet/lantiq_xrx200.c 	ch_rx->dma.nr = XRX200_DMA_RX;
nr                381 drivers/net/ethernet/lantiq_xrx200.c 	ch_tx->dma.nr = XRX200_DMA_TX;
nr               1343 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 				   u16 nr, u16 *max_area)
nr               1355 drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c 	end = ((index + nr) >= size) ? size : index + nr;
nr                173 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	int nr;
nr                176 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	for (nr = 0; nr < priv->num_frags; nr++) {
nr                177 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		en_dbg(DRV, priv, "Freeing fragment:%d\n", nr);
nr                178 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		mlx4_en_free_frag(priv, frags + nr);
nr                475 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	int nr, frag_size;
nr                480 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	for (nr = 0;; frags++) {
nr                491 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		__skb_fill_page_desc(skb, nr, page, frags->page_offset,
nr                517 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		nr++;
nr                524 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	return nr;
nr                527 drivers/net/ethernet/mellanox/mlx4/en_rx.c 	while (nr > 0) {
nr                528 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		nr--;
nr                529 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		__skb_frag_unref(skb_shinfo(skb)->frags + nr);
nr                703 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		int nr;
nr                886 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		nr = mlx4_en_complete_rx_desc(priv, frags, skb, length);
nr                887 drivers/net/ethernet/mellanox/mlx4/en_rx.c 		if (likely(nr)) {
nr                888 drivers/net/ethernet/mellanox/mlx4/en_rx.c 			skb_shinfo(skb)->nr_frags = nr;
nr                188 drivers/net/ethernet/mellanox/mlxsw/i2c.c 		cpu_to_be32(client->adapter->nr & 0xffff),
nr                234 drivers/net/ethernet/mellanox/mlxsw/i2c.c 		cpu_to_be32(client->adapter->nr & 0xffff),
nr                825 drivers/net/ethernet/natsemi/ns83820.c 	int nr = 0;
nr                911 drivers/net/ethernet/natsemi/ns83820.c 		nr++;
nr                919 drivers/net/ethernet/natsemi/ns83820.c 	if (0 && !nr) {
nr                145 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 			int nr;
nr                246 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 		for (i = 0; i < opt->arg.l.nr; i++) {
nr                282 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 			.arg  = { .l = { .nr = (int)ARRAY_SIZE(speed_list),
nr                294 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 			.arg  = { .l = { .nr = (int)ARRAY_SIZE(dplx_list),
nr                307 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 			.arg  = { .l = { .nr = (int)ARRAY_SIZE(an_list),
nr                500 drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c 			.arg  = { .l = { .nr = (int)ARRAY_SIZE(fc_list),
nr                 52 drivers/net/ethernet/sfc/falcon/falcon_boards.c #define LM87_IN_LIMITS(nr, _min, _max)			\
nr                 53 drivers/net/ethernet/sfc/falcon/falcon_boards.c 	0x2B + (nr) * 2, _max, 0x2C + (nr) * 2, _min
nr                 54 drivers/net/ethernet/sfc/falcon/falcon_boards.c #define LM87_AIN_LIMITS(nr, _min, _max)			\
nr                 55 drivers/net/ethernet/sfc/falcon/falcon_boards.c 	0x3B + (nr), _max, 0x1A + (nr), _min
nr               1172 drivers/net/ethernet/socionext/sni_ave.c 	int nc, nr, ret;
nr               1183 drivers/net/ethernet/socionext/sni_ave.c 	for (nr = 0; nr < priv->nrsts; nr++) {
nr               1184 drivers/net/ethernet/socionext/sni_ave.c 		ret = reset_control_deassert(priv->rst[nr]);
nr               1239 drivers/net/ethernet/socionext/sni_ave.c 	while (--nr >= 0)
nr               1240 drivers/net/ethernet/socionext/sni_ave.c 		reset_control_assert(priv->rst[nr]);
nr                 71 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c #define GRF_BIT(nr)	(BIT(nr) | BIT(nr+16))
nr                 72 drivers/net/ethernet/stmicro/stmmac/dwmac-rk.c #define GRF_CLR_BIT(nr)	(BIT(nr+16))
nr                467 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 			u32 nr = (bitrev32(~crc32_le(~0, ha->addr, 6)) >>
nr                469 drivers/net/ethernet/stmicro/stmmac/dwxgmac2_core.c 			mc_filter[nr >> 5] |= (1 << (nr & 0x1F));
nr                505 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 		u32 nr = bitrev32(~crc32_le(~0, ha->addr, ETH_ALEN)) >> mc_offset;
nr                506 drivers/net/ethernet/stmicro/stmmac/stmmac_selftests.c 		if (((nr >> 5) == hash_nr) && ((1 << (nr & 0x1f)) == hash))
nr                659 drivers/net/fddi/skfp/h/cmtdef.h #define	SMT_PANIC(smc,nr,msg)	smt_panic (smc, msg)
nr                663 drivers/net/fddi/skfp/h/cmtdef.h #define	SMT_ERR_LOG(smc,nr,msg)	SMT_PANIC (smc, nr, msg)
nr                 48 drivers/net/fddi/skfp/h/osdef1st.h #define	SMT_PANIC(smc, nr, msg)	printk(KERN_INFO "SMT PANIC: code: %d, msg: %s\n",nr,msg)
nr               2920 drivers/net/wireless/intel/ipw2x00/ipw2200.c 				 int nr, u32 dest_address, u32 len)
nr               2927 drivers/net/wireless/intel/ipw2x00/ipw2200.c 			  nr, dest_address, len);
nr               2929 drivers/net/wireless/intel/ipw2x00/ipw2200.c 	for (i = 0; i < nr; i++) {
nr               3228 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		int nr = 0;
nr               3235 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		nr = (chunk_len + CB_MAX_LENGTH - 1) / CB_MAX_LENGTH;
nr               3236 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		for (i = 0; i < nr; i++) {
nr               3256 drivers/net/wireless/intel/ipw2x00/ipw2200.c 		ret = ipw_fw_dma_add_buffer(priv, &phys[total_nr - nr],
nr               3257 drivers/net/wireless/intel/ipw2x00/ipw2200.c 					    nr, le32_to_cpu(chunk->address),
nr                625 drivers/net/wireless/intersil/p54/fwio.c 	psm->nr = 1;
nr                478 drivers/net/wireless/intersil/p54/lmac.h 	u8 nr;
nr                492 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	range->num_channels = freq->nr;
nr                493 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	range->num_frequency = freq->nr;
nr                495 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	m = min(IW_MAX_FREQUENCIES, (int) freq->nr);
nr                713 drivers/net/wireless/intersil/prism54/isl_ioctl.c 	for (i = 0; i < (int) bsslist->nr; i++) {
nr                 70 drivers/net/wireless/intersil/prism54/isl_oid.h 	u32 nr;
nr                 75 drivers/net/wireless/intersil/prism54/isl_oid.h 	u16 nr;
nr                290 drivers/net/wireless/intersil/prism54/oid_mgt.c 			list->nr = le32_to_cpu(list->nr);
nr                291 drivers/net/wireless/intersil/prism54/oid_mgt.c 			for (i = 0; i < list->nr; i++)
nr                298 drivers/net/wireless/intersil/prism54/oid_mgt.c 			freq->nr = le16_to_cpu(freq->nr);
nr                299 drivers/net/wireless/intersil/prism54/oid_mgt.c 			for (i = 0; i < freq->nr; i++)
nr                359 drivers/net/wireless/intersil/prism54/oid_mgt.c 			list->nr = cpu_to_le32(list->nr);
nr                360 drivers/net/wireless/intersil/prism54/oid_mgt.c 			for (i = 0; i < list->nr; i++)
nr                367 drivers/net/wireless/intersil/prism54/oid_mgt.c 			freq->nr = cpu_to_le16(freq->nr);
nr                368 drivers/net/wireless/intersil/prism54/oid_mgt.c 			for (i = 0; i < freq->nr; i++)
nr                804 drivers/net/wireless/intersil/prism54/oid_mgt.c 			k = snprintf(str, PRIV_STR_SIZE, "nr=%u\n", list->nr);
nr                805 drivers/net/wireless/intersil/prism54/oid_mgt.c 			for (i = 0; i < list->nr; i++)
nr                821 drivers/net/wireless/intersil/prism54/oid_mgt.c 			printk("nr : %u\n", freq->nr);
nr                822 drivers/net/wireless/intersil/prism54/oid_mgt.c 			t = snprintf(str, PRIV_STR_SIZE, "nr=%u\n", freq->nr);
nr                823 drivers/net/wireless/intersil/prism54/oid_mgt.c 			for (i = 0; i < freq->nr; i++)
nr               2731 drivers/net/wireless/ray_cs.c 	int nr, len;
nr               2741 drivers/net/wireless/ray_cs.c 	nr = 0;
nr               2747 drivers/net/wireless/ray_cs.c 		nr = nr * 10 + c;
nr               2750 drivers/net/wireless/ray_cs.c 	*(int *)PDE_DATA(file_inode(file)) = nr;
nr                337 drivers/net/xen-netback/hash.c 	unsigned int nr = 1;
nr                359 drivers/net/xen-netback/hash.c 		nr = 2;
nr                366 drivers/net/xen-netback/hash.c 		gnttab_batch_copy(copy_op, nr);
nr                369 drivers/net/xen-netback/hash.c 		    copy_op[nr - 1].status != GNTST_okay)
nr                657 drivers/nvme/host/core.c 	cmnd->dsm.nr = cpu_to_le32(segments - 1);
nr               1515 drivers/nvme/host/pci.c 	int nr = nvmeq->dev->ctrl.instance;
nr               1519 drivers/nvme/host/pci.c 				nvme_irq, nvmeq, "nvme%dq%d", nr, nvmeq->qid);
nr               1522 drivers/nvme/host/pci.c 				NULL, nvmeq, "nvme%dq%d", nr, nvmeq->qid);
nr               1223 drivers/nvme/host/rdma.c 	int nr;
nr               1233 drivers/nvme/host/rdma.c 	nr = ib_map_mr_sg(req->mr, req->sg_table.sgl, count, NULL, SZ_4K);
nr               1234 drivers/nvme/host/rdma.c 	if (unlikely(nr < count)) {
nr               1237 drivers/nvme/host/rdma.c 		if (nr < 0)
nr               1238 drivers/nvme/host/rdma.c 			return nr;
nr                250 drivers/nvme/target/io-cmd-bdev.c 	for (i = 0; i <= le32_to_cpu(req->cmd->dsm.nr); i++) {
nr                330 drivers/nvme/target/io-cmd-bdev.c 		req->data_len = (le32_to_cpu(cmd->dsm.nr) + 1) *
nr                289 drivers/nvme/target/io-cmd-file.c 	for (i = 0; i <= le32_to_cpu(req->cmd->dsm.nr); i++) {
nr                382 drivers/nvme/target/io-cmd-file.c 		req->data_len = (le32_to_cpu(cmd->dsm.nr) + 1) *
nr                436 drivers/of/irq.c 	int nr = 0;
nr                438 drivers/of/irq.c 	while (of_irq_parse_one(dev, nr, &irq) == 0)
nr                439 drivers/of/irq.c 		nr++;
nr                441 drivers/of/irq.c 	return nr;
nr               1382 drivers/of/unittest.c static const char *unittest_path(int nr, enum overlay_type ovtype)
nr               1398 drivers/of/unittest.c 	snprintf(buf, sizeof(buf) - 1, "%s/test-unittest%d", base, nr);
nr               1418 drivers/of/unittest.c static const char *overlay_name_from_nr(int nr)
nr               1423 drivers/of/unittest.c 		"overlay_%d", nr);
nr               1866 drivers/of/unittest.c 	adap->nr = -1;
nr                722 drivers/opp/of.c 	int nr, ret = 0;
nr                734 drivers/opp/of.c 	nr = prop->length / sizeof(u32);
nr                735 drivers/opp/of.c 	if (nr % 2) {
nr                741 drivers/opp/of.c 	while (nr) {
nr                752 drivers/opp/of.c 		nr -= 2;
nr                130 drivers/pci/controller/pci-mvebu.c static void mvebu_pcie_set_local_bus_nr(struct mvebu_pcie_port *port, int nr)
nr                136 drivers/pci/controller/pci-mvebu.c 	stat |= nr << 8;
nr                140 drivers/pci/controller/pci-mvebu.c static void mvebu_pcie_set_local_dev_nr(struct mvebu_pcie_port *port, int nr)
nr                146 drivers/pci/controller/pci-mvebu.c 	stat |= nr << 16;
nr                192 drivers/pci/controller/pci-rcar-gen2.c static int rcar_pci_setup(int nr, struct pci_sys_data *sys)
nr                409 drivers/pci/controller/pci-tegra.c 	unsigned int nr;
nr                 83 drivers/pci/irq.c int pci_request_irq(struct pci_dev *dev, unsigned int nr, irq_handler_t handler,
nr                 98 drivers/pci/irq.c 	ret = request_threaded_irq(pci_irq_vector(dev, nr), handler, thread_fn,
nr                120 drivers/pci/irq.c void pci_free_irq(struct pci_dev *dev, unsigned int nr, void *dev_id)
nr                122 drivers/pci/irq.c 	kfree(free_irq(pci_irq_vector(dev, nr), dev_id));
nr               1258 drivers/pci/msi.c int pci_irq_vector(struct pci_dev *dev, unsigned int nr)
nr               1265 drivers/pci/msi.c 			if (i == nr)
nr               1276 drivers/pci/msi.c 		if (WARN_ON_ONCE(nr >= entry->nvec_used))
nr               1279 drivers/pci/msi.c 		if (WARN_ON_ONCE(nr > 0))
nr               1283 drivers/pci/msi.c 	return dev->irq + nr;
nr               1292 drivers/pci/msi.c const struct cpumask *pci_irq_get_affinity(struct pci_dev *dev, int nr)
nr               1299 drivers/pci/msi.c 			if (i == nr)
nr               1309 drivers/pci/msi.c 				 nr >= entry->nvec_used))
nr               1312 drivers/pci/msi.c 		return &entry->affinity[nr].mask;
nr                991 drivers/pci/pci-sysfs.c 	unsigned long nr, start, size;
nr                996 drivers/pci/pci-sysfs.c 	nr = vma_pages(vma);
nr               1005 drivers/pci/pci-sysfs.c 			start + nr <= pci_start + size)
nr               2525 drivers/pci/probe.c 	unsigned fn, nr = 0;
nr               2535 drivers/pci/probe.c 		nr++;
nr               2541 drivers/pci/probe.c 				nr++;
nr               2547 drivers/pci/probe.c 	if (bus->self && nr)
nr               2550 drivers/pci/probe.c 	return nr;
nr                559 drivers/pci/quirks.c 				unsigned size, int nr, const char *name)
nr                563 drivers/pci/quirks.c 	struct resource *res = dev->resource + nr;
nr                579 drivers/pci/quirks.c 	if (!pci_claim_resource(dev, nr))
nr                232 drivers/pcmcia/cs.c struct pcmcia_socket *pcmcia_get_socket_by_nr(unsigned int nr)
nr                238 drivers/pcmcia/cs.c 		if (s->sock == nr) {
nr                119 drivers/pcmcia/cs_internal.h struct pcmcia_socket *pcmcia_get_socket_by_nr(unsigned int nr);
nr                 45 drivers/pcmcia/db1xxx_ss.c 	int		nr;		/* socket number */
nr                 82 drivers/pcmcia/db1xxx_ss.c 	return sigstat & 1 << (8 + 2 * sock->nr);
nr                251 drivers/pcmcia/db1xxx_ss.c 	cr_clr = (0xf << (sock->nr * 8)); /* clear voltage settings */
nr                266 drivers/pcmcia/db1xxx_ss.c 			sock->nr, state->Vcc);
nr                281 drivers/pcmcia/db1xxx_ss.c 			sock->nr, state->Vpp);
nr                288 drivers/pcmcia/db1xxx_ss.c 			sock->nr, state->Vcc, state->Vpp);
nr                295 drivers/pcmcia/db1xxx_ss.c 		cr_set |= ((v << 2) | p) << (sock->nr * 8);
nr                303 drivers/pcmcia/db1xxx_ss.c 			cr_clr |= (1 << (7 + (sock->nr * 8)));
nr                304 drivers/pcmcia/db1xxx_ss.c 			cr_clr |= (1 << (4 + (sock->nr * 8)));
nr                307 drivers/pcmcia/db1xxx_ss.c 			cr_set |= 1 << (7 + (sock->nr * 8));
nr                308 drivers/pcmcia/db1xxx_ss.c 			cr_set |= 1 << (4 + (sock->nr * 8));
nr                355 drivers/pcmcia/db1xxx_ss.c 	switch (GET_VS(sr, sock->nr)) {
nr                366 drivers/pcmcia/db1xxx_ss.c 	status |= GET_VCC(cr, sock->nr) ? SS_POWERON : 0;
nr                373 drivers/pcmcia/db1xxx_ss.c 	status |= (GET_RESET(cr, sock->nr)) ? SS_READY : SS_RESET;
nr                433 drivers/pcmcia/db1xxx_ss.c 	sock->nr = pdev->id;
nr                495 drivers/pcmcia/db1xxx_ss.c 			sock->nr);
nr                504 drivers/pcmcia/db1xxx_ss.c 			sock->nr);
nr                513 drivers/pcmcia/db1xxx_ss.c 			sock->nr);
nr                531 drivers/pcmcia/db1xxx_ss.c 			sock->nr);
nr                550 drivers/pcmcia/db1xxx_ss.c 			sock->nr);
nr                558 drivers/pcmcia/db1xxx_ss.c 		printk(KERN_ERR "pcmcia%d failed to register\n", sock->nr);
nr                564 drivers/pcmcia/db1xxx_ss.c 		"%d %d %d\n", sock->nr, sock->phys_io, sock->virt_io,
nr                 61 drivers/pcmcia/pxa2xx_balloon3.c 	flip = (status ^ balloon3_pcmcia_status[skt->nr])
nr                 69 drivers/pcmcia/pxa2xx_balloon3.c 		balloon3_pcmcia_status[skt->nr] = status;
nr                 98 drivers/pcmcia/pxa2xx_balloon3.c 	.nr			= 1,
nr                167 drivers/pcmcia/pxa2xx_base.c 	int sock = skt->nr;
nr                225 drivers/pcmcia/pxa2xx_base.c 	if ((ops->first + ops->nr) > 1 ||
nr                243 drivers/pcmcia/pxa2xx_base.c 	skt->res_skt.start = _PCMCIA(skt->nr);
nr                244 drivers/pcmcia/pxa2xx_base.c 	skt->res_skt.end = _PCMCIA(skt->nr) + PCMCIASp - 1;
nr                245 drivers/pcmcia/pxa2xx_base.c 	skt->res_skt.name = skt_names[skt->nr];
nr                248 drivers/pcmcia/pxa2xx_base.c 	skt->res_io.start = _PCMCIAIO(skt->nr);
nr                249 drivers/pcmcia/pxa2xx_base.c 	skt->res_io.end = _PCMCIAIO(skt->nr) + PCMCIAIOSp - 1;
nr                253 drivers/pcmcia/pxa2xx_base.c 	skt->res_mem.start = _PCMCIAMem(skt->nr);
nr                254 drivers/pcmcia/pxa2xx_base.c 	skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1;
nr                258 drivers/pcmcia/pxa2xx_base.c 	skt->res_attr.start = _PCMCIAAttr(skt->nr);
nr                259 drivers/pcmcia/pxa2xx_base.c 	skt->res_attr.end = _PCMCIAAttr(skt->nr) + PCMCIAAttrSp - 1;
nr                291 drivers/pcmcia/pxa2xx_base.c 	if (cpu_is_pxa320() && ops->nr > 1) {
nr                303 drivers/pcmcia/pxa2xx_base.c 	sinfo = devm_kzalloc(&dev->dev, SKT_DEV_INFO_SIZE(ops->nr),
nr                308 drivers/pcmcia/pxa2xx_base.c 	sinfo->nskt = ops->nr;
nr                311 drivers/pcmcia/pxa2xx_base.c 	for (i = 0; i < ops->nr; i++) {
nr                314 drivers/pcmcia/pxa2xx_base.c 		skt->nr = ops->first + i;
nr                 31 drivers/pcmcia/pxa2xx_cm_x255.c 	if (skt->nr == 0) {
nr                 63 drivers/pcmcia/pxa2xx_cm_x255.c 	switch (skt->nr) {
nr                 93 drivers/pcmcia/pxa2xx_cm_x255.c 	.nr			= 1,
nr                 53 drivers/pcmcia/pxa2xx_cm_x270.c 	switch (skt->nr) {
nr                 72 drivers/pcmcia/pxa2xx_cm_x270.c 	.nr			= 1,
nr                102 drivers/pcmcia/pxa2xx_colibri.c 	.nr			= 1,
nr                 25 drivers/pcmcia/pxa2xx_e740.c 	if (skt->nr == 0) {
nr                 51 drivers/pcmcia/pxa2xx_e740.c 		if (skt->nr == 0)
nr                 56 drivers/pcmcia/pxa2xx_e740.c 		if (skt->nr == 0)
nr                 64 drivers/pcmcia/pxa2xx_e740.c 		if (skt->nr == 0)
nr                 71 drivers/pcmcia/pxa2xx_e740.c 		if (skt->nr == 0)
nr                 88 drivers/pcmcia/pxa2xx_e740.c 	.nr               = 2,
nr                 82 drivers/pcmcia/pxa2xx_hx4700.c 	.nr             = 1,
nr                 32 drivers/pcmcia/pxa2xx_mainstone.c 	skt->stat[SOC_STAT_CD].name = skt->nr ? "bdetect" : "adetect";
nr                 33 drivers/pcmcia/pxa2xx_mainstone.c 	skt->stat[SOC_STAT_BVD1].name = skt->nr ? "bbvd1" : "abvd1";
nr                 34 drivers/pcmcia/pxa2xx_mainstone.c 	skt->stat[SOC_STAT_BVD2].name = skt->nr ? "bbvd2" : "abvd2";
nr                 35 drivers/pcmcia/pxa2xx_mainstone.c 	skt->stat[SOC_STAT_RDY].name = skt->nr ? "bready" : "aready";
nr                 36 drivers/pcmcia/pxa2xx_mainstone.c 	skt->stat[SOC_STAT_VS1].name = skt->nr ? "bvs1" : "avs1";
nr                 37 drivers/pcmcia/pxa2xx_mainstone.c 	skt->stat[SOC_STAT_VS2].name = skt->nr ? "bvs2" : "avs2";
nr                 39 drivers/pcmcia/pxa2xx_mainstone.c 	skt->gpio_reset = devm_gpiod_get(dev, skt->nr ? "breset" : "areset",
nr                 44 drivers/pcmcia/pxa2xx_mainstone.c 	ret = max1600_init(dev, &m, skt->nr ? MAX1600_CHAN_B : MAX1600_CHAN_A,
nr                 59 drivers/pcmcia/pxa2xx_mainstone.c 	unsigned int flip = mst_pcmcia_bvd1_status[skt->nr] ^ state->bvd1;
nr                 67 drivers/pcmcia/pxa2xx_mainstone.c 		mst_pcmcia_bvd1_status[skt->nr] = state->bvd1;
nr                 86 drivers/pcmcia/pxa2xx_mainstone.c 	.nr			= 2,
nr                 64 drivers/pcmcia/pxa2xx_palmld.c 	.nr			= 1,
nr                116 drivers/pcmcia/pxa2xx_palmtc.c 	.nr			= 1,
nr                 66 drivers/pcmcia/pxa2xx_palmtx.c 	.nr			= 1,
nr                 29 drivers/pcmcia/pxa2xx_sharpsl.c 	struct scoop_pcmcia_dev *scoopdev = &SCOOP_DEV[skt->nr];
nr                 35 drivers/pcmcia/pxa2xx_sharpsl.c 		platform_scoop_config->power_ctrl(scoopdev->dev, 0x0000, skt->nr);
nr                 45 drivers/pcmcia/pxa2xx_sharpsl.c 	if (SCOOP_DEV[skt->nr].cd_irq >= 0) {
nr                 46 drivers/pcmcia/pxa2xx_sharpsl.c 		skt->stat[SOC_STAT_CD].irq = SCOOP_DEV[skt->nr].cd_irq;
nr                 47 drivers/pcmcia/pxa2xx_sharpsl.c 		skt->stat[SOC_STAT_CD].name = SCOOP_DEV[skt->nr].cd_irq_str;
nr                 50 drivers/pcmcia/pxa2xx_sharpsl.c 	skt->socket.pci_irq = SCOOP_DEV[skt->nr].irq;
nr                 59 drivers/pcmcia/pxa2xx_sharpsl.c 	struct device *scoop = SCOOP_DEV[skt->nr].dev;
nr                 61 drivers/pcmcia/pxa2xx_sharpsl.c 	cpr = read_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_CPR);
nr                 70 drivers/pcmcia/pxa2xx_sharpsl.c 		SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS;
nr                 72 drivers/pcmcia/pxa2xx_sharpsl.c 	else if (!(SCOOP_DEV[skt->nr].keep_vs & NO_KEEP_VS)) {
nr                 75 drivers/pcmcia/pxa2xx_sharpsl.c 		csr |= SCOOP_DEV[skt->nr].keep_vs;
nr                 80 drivers/pcmcia/pxa2xx_sharpsl.c 		SCOOP_DEV[skt->nr].keep_vs = (csr & 0x00C0);
nr                 84 drivers/pcmcia/pxa2xx_sharpsl.c 	        if ((machine_is_spitz() || machine_is_borzoi()) && skt->nr == 1) {
nr                109 drivers/pcmcia/pxa2xx_sharpsl.c 	struct device *scoop = SCOOP_DEV[skt->nr].dev;
nr                134 drivers/pcmcia/pxa2xx_sharpsl.c 	if ((machine_is_spitz() || machine_is_borzoi() || machine_is_akita()) && skt->nr == 0) {
nr                152 drivers/pcmcia/pxa2xx_sharpsl.c 		SCOOP_DEV[skt->nr].keep_rd = 0;
nr                153 drivers/pcmcia/pxa2xx_sharpsl.c 	} else if (!SCOOP_DEV[skt->nr].keep_rd) {
nr                155 drivers/pcmcia/pxa2xx_sharpsl.c 			SCOOP_DEV[skt->nr].keep_rd = 1;
nr                164 drivers/pcmcia/pxa2xx_sharpsl.c 			platform_scoop_config->power_ctrl(scoop, ncpr , skt->nr);
nr                183 drivers/pcmcia/pxa2xx_sharpsl.c 	write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_IMR, 0x00C0);
nr                184 drivers/pcmcia/pxa2xx_sharpsl.c 	write_scoop_reg(SCOOP_DEV[skt->nr].dev, SCOOP_MCR, 0x0101);
nr                185 drivers/pcmcia/pxa2xx_sharpsl.c 	SCOOP_DEV[skt->nr].keep_vs = NO_KEEP_VS;
nr                201 drivers/pcmcia/pxa2xx_sharpsl.c 	.nr                     = 0,
nr                228 drivers/pcmcia/pxa2xx_sharpsl.c 	sharpsl_pcmcia_ops.nr = platform_scoop_config->num_devs;
nr                 88 drivers/pcmcia/pxa2xx_stargate2.c 	.nr			= 1,
nr                 34 drivers/pcmcia/pxa2xx_trizeps4.c 	switch (skt->nr) {
nr                 45 drivers/pcmcia/pxa2xx_trizeps4.c 	pr_debug("%s: sock %d irq %d\n", __func__, skt->nr, skt->socket.pci_irq);
nr                 57 drivers/pcmcia/pxa2xx_trizeps4.c 	change = (status ^ trizeps_pcmcia_status[skt->nr]) &
nr                 60 drivers/pcmcia/pxa2xx_trizeps4.c 		trizeps_pcmcia_status[skt->nr] = status;
nr                 68 drivers/pcmcia/pxa2xx_trizeps4.c 	switch (skt->nr) {
nr                123 drivers/pcmcia/pxa2xx_trizeps4.c 	switch (skt->nr) {
nr                158 drivers/pcmcia/pxa2xx_trizeps4.c 	.nr			= 1,
nr                160 drivers/pcmcia/pxa2xx_trizeps4.c 	.nr			= 2,
nr                118 drivers/pcmcia/pxa2xx_viper.c 	.nr         		= 1,
nr                 33 drivers/pcmcia/pxa2xx_vpac270.c 	if (skt->nr == 0) {
nr                 56 drivers/pcmcia/pxa2xx_vpac270.c 	if (skt->nr == 0)
nr                 75 drivers/pcmcia/pxa2xx_vpac270.c 	if (skt->nr == 0) {
nr                 92 drivers/pcmcia/pxa2xx_vpac270.c 	.nr			= 2,
nr                155 drivers/pcmcia/sa1100_generic.c 	skt->nr = pdev->id;
nr                 27 drivers/pcmcia/sa1100_h3600.c 	skt->stat[SOC_STAT_CD].name = skt->nr ? "pcmcia1-detect" : "pcmcia0-detect";
nr                 28 drivers/pcmcia/sa1100_h3600.c 	skt->stat[SOC_STAT_RDY].name = skt->nr ? "pcmcia1-ready" : "pcmcia0-ready";
nr                 34 drivers/pcmcia/sa1100_h3600.c 	switch (skt->nr) {
nr                 76 drivers/pcmcia/sa1100_h3600.c 	switch (skt->nr) {
nr                136 drivers/pcmcia/sa1100_h3600.c 	if (skt->nr == 1) {
nr                 77 drivers/pcmcia/sa1111_badge4.c 	switch (skt->nr) {
nr                116 drivers/pcmcia/sa1111_badge4.c 		badge4_set_5V(BADGE4_5V_PCMCIA_SOCK(skt->nr), need5V);
nr                128 drivers/pcmcia/sa1111_badge4.c 	.nr			= 2,
nr                 74 drivers/pcmcia/sa1111_generic.c 	switch (skt->nr) {
nr                103 drivers/pcmcia/sa1111_generic.c 	switch (skt->nr) {
nr                156 drivers/pcmcia/sa1111_generic.c 	for (i = 0; i < ops->nr; i++) {
nr                161 drivers/pcmcia/sa1111_generic.c 		s->soc.nr = ops->first + i;
nr                166 drivers/pcmcia/sa1111_generic.c 		if (s->soc.nr) {
nr                 45 drivers/pcmcia/sa1111_jornada720.c 	j->gpio[J720_GPIO_PWR] = devm_gpiod_get(dev, skt->nr ? "s1-power" :
nr                 50 drivers/pcmcia/sa1111_jornada720.c 	j->gpio[J720_GPIO_3V] = devm_gpiod_get(dev, skt->nr ? "s1-3v" :
nr                 68 drivers/pcmcia/sa1111_jornada720.c 		skt->nr, state->Vcc, state->Vpp);
nr                 70 drivers/pcmcia/sa1111_jornada720.c 	switch (skt->nr) {
nr                127 drivers/pcmcia/sa1111_jornada720.c 	.nr			= 2,
nr                 33 drivers/pcmcia/sa1111_lubbock.c 			   skt->nr ? MAX1600_CHAN_B : MAX1600_CHAN_A,
nr                 79 drivers/pcmcia/sa1111_lubbock.c 	switch (skt->nr) {
nr                143 drivers/pcmcia/sa1111_lubbock.c 	.nr			= 2,
nr                 47 drivers/pcmcia/sa1111_neponset.c 			   skt->nr ? MAX1600_CHAN_B : MAX1600_CHAN_A,
nr                 73 drivers/pcmcia/sa1111_neponset.c 	.nr			= 2,
nr                 95 drivers/pcmcia/sa11xx_base.c 	MECR_FAST_SET(mecr, skt->nr, 0);
nr                 96 drivers/pcmcia/sa11xx_base.c 	MECR_BSIO_SET(mecr, skt->nr, bs_io);
nr                 97 drivers/pcmcia/sa11xx_base.c 	MECR_BSA_SET(mecr, skt->nr, bs_attr);
nr                 98 drivers/pcmcia/sa11xx_base.c 	MECR_BSM_SET(mecr, skt->nr, bs_mem);
nr                105 drivers/pcmcia/sa11xx_base.c 	      MECR_FAST_GET(mecr, skt->nr),
nr                106 drivers/pcmcia/sa11xx_base.c 	      MECR_BSM_GET(mecr, skt->nr), MECR_BSA_GET(mecr, skt->nr),
nr                107 drivers/pcmcia/sa11xx_base.c 	      MECR_BSIO_GET(mecr, skt->nr));
nr                154 drivers/pcmcia/sa11xx_base.c 		   sa1100_pcmcia_cmd_time(clock, MECR_BSIO_GET(mecr, skt->nr)));
nr                157 drivers/pcmcia/sa11xx_base.c 		   sa1100_pcmcia_cmd_time(clock, MECR_BSA_GET(mecr, skt->nr)));
nr                160 drivers/pcmcia/sa11xx_base.c 		   sa1100_pcmcia_cmd_time(clock, MECR_BSM_GET(mecr, skt->nr)));
nr                175 drivers/pcmcia/sa11xx_base.c 	skt->res_skt.start = _PCMCIA(skt->nr);
nr                176 drivers/pcmcia/sa11xx_base.c 	skt->res_skt.end = _PCMCIA(skt->nr) + PCMCIASp - 1;
nr                177 drivers/pcmcia/sa11xx_base.c 	skt->res_skt.name = skt_names[skt->nr];
nr                180 drivers/pcmcia/sa11xx_base.c 	skt->res_io.start = _PCMCIAIO(skt->nr);
nr                181 drivers/pcmcia/sa11xx_base.c 	skt->res_io.end = _PCMCIAIO(skt->nr) + PCMCIAIOSp - 1;
nr                185 drivers/pcmcia/sa11xx_base.c 	skt->res_mem.start = _PCMCIAMem(skt->nr);
nr                186 drivers/pcmcia/sa11xx_base.c 	skt->res_mem.end = _PCMCIAMem(skt->nr) + PCMCIAMemSp - 1;
nr                190 drivers/pcmcia/sa11xx_base.c 	skt->res_attr.start = _PCMCIAAttr(skt->nr);
nr                191 drivers/pcmcia/sa11xx_base.c 	skt->res_attr.end = _PCMCIAAttr(skt->nr) + PCMCIAAttrSp - 1;
nr                218 drivers/pcmcia/sa11xx_base.c 			    int first, int nr)
nr                231 drivers/pcmcia/sa11xx_base.c 	sinfo = devm_kzalloc(dev, SKT_DEV_INFO_SIZE(nr), GFP_KERNEL);
nr                235 drivers/pcmcia/sa11xx_base.c 	sinfo->nskt = nr;
nr                238 drivers/pcmcia/sa11xx_base.c 	for (i = 0; i < nr; i++) {
nr                241 drivers/pcmcia/sa11xx_base.c 		skt->nr = first + i;
nr                123 drivers/pcmcia/sa11xx_base.h extern int sa11xx_drv_pcmcia_probe(struct device *dev, struct pcmcia_low_level *ops, int first, int nr);
nr                 72 drivers/pcmcia/soc_common.c 		printk(KERN_DEBUG "skt%u: %s: %pV", skt->nr, func, &vaf);
nr                147 drivers/pcmcia/soc_common.c 	unsigned int nr)
nr                151 drivers/pcmcia/soc_common.c 	for (i = 0; i < nr; i++)
nr                346 drivers/pcmcia/soc_common.c 		       skt->nr);
nr                713 drivers/pcmcia/soc_common.c 	p += sprintf(p, "slot     : %d\n", skt->nr);
nr                 40 drivers/pcmcia/soc_common.h 	unsigned int		nr;
nr                110 drivers/pcmcia/soc_common.h 	int nr;
nr                691 drivers/pcmcia/yenta_socket.c static int yenta_allocate_res(struct yenta_socket *socket, int nr, unsigned type, int addr_start, int addr_end)
nr                698 drivers/pcmcia/yenta_socket.c 	res = dev->resource + PCI_BRIDGE_RESOURCES + nr;
nr                715 drivers/pcmcia/yenta_socket.c 		if (pci_claim_resource(dev, PCI_BRIDGE_RESOURCES + nr) == 0)
nr                719 drivers/pcmcia/yenta_socket.c 			 nr);
nr                 23 drivers/perf/hisilicon/hisi_uncore_pmu.c #define HISI_MAX_PERIOD(nr) (BIT_ULL(nr) - 1)
nr                425 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(old-nr-replacement,		0x22),
nr                427 drivers/perf/xgene_pmu.c 	XGENE_PMU_EVENT_ATTR(young-nr-replacement,		0x24),
nr                728 drivers/pinctrl/sh-pfc/sh_pfc.h #define PORTCR(nr, reg)							\
nr                730 drivers/pinctrl/sh-pfc/sh_pfc.h 		PINMUX_CFG_REG_VAR("PORT" nr "CR", reg, 8,		\
nr                736 drivers/pinctrl/sh-pfc/sh_pfc.h 			0, PORT##nr##_OUT, PORT##nr##_IN, 0,		\
nr                740 drivers/pinctrl/sh-pfc/sh_pfc.h 			PORT##nr##_FN0, PORT##nr##_FN1,			\
nr                741 drivers/pinctrl/sh-pfc/sh_pfc.h 			PORT##nr##_FN2, PORT##nr##_FN3,			\
nr                742 drivers/pinctrl/sh-pfc/sh_pfc.h 			PORT##nr##_FN4, PORT##nr##_FN5,			\
nr                743 drivers/pinctrl/sh-pfc/sh_pfc.h 			PORT##nr##_FN6, PORT##nr##_FN7			\
nr                104 drivers/platform/chrome/chromeos_laptop.c 				 adapter->nr, info->addr, dummy->addr);
nr                112 drivers/platform/chrome/chromeos_laptop.c 			 adapter->nr, info->addr);
nr                115 drivers/platform/chrome/chromeos_laptop.c 			 adapter->nr, info->addr);
nr                112 drivers/platform/mellanox/mlxreg-hotplug.c 	if (data->hpdev.nr < 0)
nr                116 drivers/platform/mellanox/mlxreg-hotplug.c 	data->hpdev.adapter = i2c_get_adapter(data->hpdev.nr +
nr                120 drivers/platform/mellanox/mlxreg-hotplug.c 			data->hpdev.nr + pdata->shift_nr);
nr                128 drivers/platform/mellanox/mlxreg-hotplug.c 			data->hpdev.brdinfo->type, data->hpdev.nr +
nr                164 drivers/platform/mellanox/mlxreg-hotplug.c 	int nr = to_sensor_dev_attr_2(attr)->nr;
nr                171 drivers/platform/mellanox/mlxreg-hotplug.c 	item = pdata->items + nr;
nr                226 drivers/platform/mellanox/mlxreg-hotplug.c 			PRIV_DEV_ATTR(id).nr = i;
nr                286 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
nr                293 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
nr                303 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
nr                310 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_DEFAULT_NR,
nr                320 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_FAN1_DEFAULT_NR,
nr                327 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_FAN2_DEFAULT_NR,
nr                334 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_FAN3_DEFAULT_NR,
nr                341 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_FAN4_DEFAULT_NR,
nr                350 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                408 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                414 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                457 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
nr                464 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
nr                474 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
nr                481 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
nr                490 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                496 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                502 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                508 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                567 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                573 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                615 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
nr                622 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_PSU_MSNXXXX_NR,
nr                633 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                641 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                649 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                657 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                665 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr                673 drivers/platform/x86/mlx-platform.c 		.hpdev.nr = MLXPLAT_CPLD_NR_NONE,
nr               2038 drivers/platform/x86/mlx-platform.c static int mlxplat_mlxcpld_verify_bus_topology(int *nr)
nr               2044 drivers/platform/x86/mlx-platform.c 	*nr = MLXPLAT_CPLD_PHYS_ADAPTER_DEF_NR;
nr               2064 drivers/platform/x86/mlx-platform.c 	*nr = i;
nr               2066 drivers/platform/x86/mlx-platform.c 		shift = *nr - mlxplat_mux_data[i].parent;
nr               2067 drivers/platform/x86/mlx-platform.c 		mlxplat_mux_data[i].parent = *nr;
nr               2079 drivers/platform/x86/mlx-platform.c 	int i, j, nr, err;
nr               2117 drivers/platform/x86/mlx-platform.c 	err = mlxplat_mlxcpld_verify_bus_topology(&nr);
nr               2118 drivers/platform/x86/mlx-platform.c 	if (nr < 0)
nr               2121 drivers/platform/x86/mlx-platform.c 	nr = (nr == MLXPLAT_CPLD_MAX_PHYS_ADAPTER_NUM) ? -1 : nr;
nr               2126 drivers/platform/x86/mlx-platform.c 					nr, mlxplat_mlxcpld_resources,
nr                227 drivers/power/supply/max1721x_battery.c 			uint16_t reg, uint8_t nr, char *str)
nr                235 drivers/power/supply/max1721x_battery.c 	while (nr--) {
nr                 59 drivers/pwm/pwm-vt8500.c static inline void pwm_busy_wait(struct vt8500_chip *vt8500, int nr, u8 bitmask)
nr                 62 drivers/pwm/pwm-vt8500.c 	u32 mask = bitmask << (nr << 8);
nr                283 drivers/rapidio/rio_cm.c static struct rio_channel *riocm_get_channel(u16 nr)
nr                288 drivers/rapidio/rio_cm.c 	ch = idr_find(&ch_idr, nr);
nr                 51 drivers/regulator/uniphier-regulator.c 	int i, ret, nr;
nr                 83 drivers/regulator/uniphier-regulator.c 	for (nr = 0; nr < priv->data->nrsts; nr++) {
nr                 84 drivers/regulator/uniphier-regulator.c 		ret = reset_control_deassert(priv->rst[nr]);
nr                112 drivers/regulator/uniphier-regulator.c 	while (nr--)
nr                113 drivers/regulator/uniphier-regulator.c 		reset_control_assert(priv->rst[nr]);
nr                 39 drivers/reset/reset-uniphier-glue.c 	int i, ret, nr;
nr                 73 drivers/reset/reset-uniphier-glue.c 	for (nr = 0; nr < priv->data->nrsts; nr++) {
nr                 74 drivers/reset/reset-uniphier-glue.c 		ret = reset_control_deassert(priv->rst[nr]);
nr                 95 drivers/reset/reset-uniphier-glue.c 	while (nr--)
nr                 96 drivers/reset/reset-uniphier-glue.c 		reset_control_assert(priv->rst[nr]);
nr                 98 drivers/rtc/rtc-meson.c 				unsigned int nr)
nr                100 drivers/rtc/rtc-meson.c 	u32 bit = 1 << (nr - 1);
nr                 23 drivers/rtc/rtc-pcf8583.c 	unsigned int	nr;
nr                144 drivers/rtc/rtc-pcf8583.c 			.len = mem->nr,
nr                162 drivers/rtc/rtc-pcf8583.c 	if (mem->loc < 8 || mem->nr > 8)
nr                166 drivers/rtc/rtc-pcf8583.c 	memcpy(buf + 1, mem->data, mem->nr);
nr                168 drivers/rtc/rtc-pcf8583.c 	ret = i2c_master_send(client, buf, mem->nr + 1);
nr                169 drivers/rtc/rtc-pcf8583.c 	return ret == mem->nr + 1 ? 0 : -EIO;
nr                178 drivers/rtc/rtc-pcf8583.c 		.nr = sizeof(year),
nr                228 drivers/rtc/rtc-pcf8583.c 		.nr = sizeof(year),
nr                233 drivers/rtc/rtc-pcf8583.c 		.nr = 1,
nr                 89 drivers/s390/block/dasd_fba.c 	      int blksize, int beg, int nr)
nr                104 drivers/s390/block/dasd_fba.c 	data->ext_end = nr - 1;
nr                126 drivers/s390/char/con3270.c con3270_update_string(struct con3270 *cp, struct string *s, int nr)
nr                136 drivers/s390/char/con3270.c 			       cp->view.cols * (nr + 1));
nr                146 drivers/s390/char/con3270.c 	int nr;
nr                154 drivers/s390/char/con3270.c 	nr = cp->view.rows - 2 + cp->nr_up;
nr                156 drivers/s390/char/con3270.c 		if (nr < cp->view.rows - 1)
nr                158 drivers/s390/char/con3270.c 		if (--nr < 0)
nr                370 drivers/s390/char/sclp.h sclp_ebcasc_str(char *str, int nr)
nr                372 drivers/s390/char/sclp.h 	(MACHINE_IS_VM) ? EBCASC(str, nr) : EBCASC_500(str, nr);
nr                377 drivers/s390/char/sclp.h sclp_ascebc_str(char *str, int nr)
nr                379 drivers/s390/char/sclp.h 	(MACHINE_IS_VM) ? ASCEBC(str, nr) : ASCEBC_500(str, nr);
nr                229 drivers/s390/char/tty3270.c tty3270_update_string(struct tty3270 *tp, struct string *line, int nr)
nr                234 drivers/s390/char/tty3270.c 			       tp->view.cols * nr);
nr                238 drivers/s390/char/tty3270.c 				       tp->view.cols * (nr + 1));
nr                951 drivers/s390/cio/css.c static int __init setup_css(int nr)
nr                960 drivers/s390/cio/css.c 	channel_subsystems[nr] = css;
nr                961 drivers/s390/cio/css.c 	dev_set_name(&css->device, "css%x", nr);
nr                973 drivers/s390/cio/css.c 	css->cssid = chsc_get_cssid(nr);
nr               1010 drivers/s390/cio/css.c 	channel_subsystems[nr] = NULL;
nr                247 drivers/s390/cio/qdio.h 	int nr;
nr                337 drivers/s390/cio/qdio.h 	       (q->nr == q->irq_ptr->nr_output_qs - 1);
nr                294 drivers/s390/cio/qdio_debug.c 		 q->nr);
nr                115 drivers/s390/cio/qdio_main.c 	int tmp_count = count, tmp_start = start, nr = q->nr;
nr                121 drivers/s390/cio/qdio_main.c 		nr += q->irq_ptr->nr_input_qs;
nr                123 drivers/s390/cio/qdio_main.c 	ccq = do_eqbs(q->irq_ptr->sch_token, state, nr, &tmp_start, &tmp_count,
nr                144 drivers/s390/cio/qdio_main.c 		DBF_ERROR("%3d%3d%2d", count, tmp_count, nr);
nr                145 drivers/s390/cio/qdio_main.c 		q->handler(q->irq_ptr->cdev, QDIO_ERROR_GET_BUF_STATE, q->nr,
nr                167 drivers/s390/cio/qdio_main.c 	int nr = q->nr;
nr                174 drivers/s390/cio/qdio_main.c 		nr += q->irq_ptr->nr_input_qs;
nr                176 drivers/s390/cio/qdio_main.c 	ccq = do_sqbs(q->irq_ptr->sch_token, state, nr, &tmp_start, &tmp_count);
nr                192 drivers/s390/cio/qdio_main.c 		DBF_ERROR("%3d%3d%2d", count, tmp_count, nr);
nr                193 drivers/s390/cio/qdio_main.c 		q->handler(q->irq_ptr->cdev, QDIO_ERROR_SET_BUF_STATE, q->nr,
nr                291 drivers/s390/cio/qdio_main.c 	DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "siga-s:%1d", q->nr);
nr                347 drivers/s390/cio/qdio_main.c 			      "%4x cc2 BB1:%1d", SCH_NO(q), q->nr);
nr                359 drivers/s390/cio/qdio_main.c 	DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "siga-r:%1d", q->nr);
nr                440 drivers/s390/cio/qdio_main.c 	DBF_ERROR((q->is_input_q) ? "IN:%2d" : "OUT:%2d", q->nr);
nr                459 drivers/s390/cio/qdio_main.c 	DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "in prim:%1d %02x", q->nr, count);
nr                544 drivers/s390/cio/qdio_main.c 			      q->nr, start);
nr                652 drivers/s390/cio/qdio_main.c 	q->handler(q->irq_ptr->cdev, q->qdio_error, q->nr, start, count,
nr                735 drivers/s390/cio/qdio_main.c 			"out empty:%1d %02x", q->nr, count);
nr                752 drivers/s390/cio/qdio_main.c 			      q->nr);
nr                776 drivers/s390/cio/qdio_main.c 		DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "out moved:%1d", q->nr);
nr                792 drivers/s390/cio/qdio_main.c 	DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "siga-w:%1d", q->nr);
nr                806 drivers/s390/cio/qdio_main.c 			DBF_ERROR("%4x cc2 BBC:%1d", SCH_NO(q), q->nr);
nr                809 drivers/s390/cio/qdio_main.c 			DBF_DEV_EVENT(DBF_INFO, q->irq_ptr, "siga-w cc2:%1d", q->nr);
nr                820 drivers/s390/cio/qdio_main.c 		DBF_ERROR("%4x cc2 BB2:%1d", SCH_NO(q), q->nr);
nr                969 drivers/s390/cio/qdio_main.c 			q->u.in.queue_start_poll(q->irq_ptr->cdev, q->nr,
nr               1010 drivers/s390/cio/qdio_main.c 		   q->nr, q->first_to_kick, count, irq_ptr->int_parm);
nr               1631 drivers/s390/cio/qdio_main.c int qdio_start_irq(struct ccw_device *cdev, int nr)
nr               1638 drivers/s390/cio/qdio_main.c 	q = irq_ptr->input_qs[nr];
nr               1685 drivers/s390/cio/qdio_main.c int qdio_inspect_queue(struct ccw_device *cdev, unsigned int nr, bool is_input,
nr               1693 drivers/s390/cio/qdio_main.c 	q = is_input ? irq_ptr->input_qs[nr] : irq_ptr->output_qs[nr];
nr               1714 drivers/s390/cio/qdio_main.c int qdio_get_next_buffers(struct ccw_device *cdev, int nr, int *bufnr,
nr               1722 drivers/s390/cio/qdio_main.c 	q = irq_ptr->input_qs[nr];
nr               1750 drivers/s390/cio/qdio_main.c int qdio_stop_irq(struct ccw_device *cdev, int nr)
nr               1757 drivers/s390/cio/qdio_main.c 	q = irq_ptr->input_qs[nr];
nr                181 drivers/s390/cio/qdio_setup.c 	q->nr = i;
nr                399 drivers/s390/cio/qdio_setup.c 				     int i, int nr)
nr                401 drivers/s390/cio/qdio_setup.c 	irq_ptr->qdr->qdf0[i + nr].sliba =
nr                404 drivers/s390/cio/qdio_setup.c 	irq_ptr->qdr->qdf0[i + nr].sla =
nr                407 drivers/s390/cio/qdio_setup.c 	irq_ptr->qdr->qdf0[i + nr].slsba =
nr                410 drivers/s390/cio/qdio_setup.c 	irq_ptr->qdr->qdf0[i + nr].akey = PAGE_DEFAULT_KEY >> 4;
nr                411 drivers/s390/cio/qdio_setup.c 	irq_ptr->qdr->qdf0[i + nr].bkey = PAGE_DEFAULT_KEY >> 4;
nr                412 drivers/s390/cio/qdio_setup.c 	irq_ptr->qdr->qdf0[i + nr].ckey = PAGE_DEFAULT_KEY >> 4;
nr                413 drivers/s390/cio/qdio_setup.c 	irq_ptr->qdr->qdf0[i + nr].dkey = PAGE_DEFAULT_KEY >> 4;
nr                162 drivers/s390/cio/qdio_thinint.c 			q->u.in.queue_start_poll(irq->cdev, q->nr,
nr                234 drivers/s390/crypto/ap_bus.c static inline int ap_test_config(unsigned int *field, unsigned int nr)
nr                236 drivers/s390/crypto/ap_bus.c 	return ap_test_bit((field + (nr >> 5)), (nr & 0x1f));
nr                 33 drivers/s390/crypto/ap_bus.h static inline int ap_test_bit(unsigned int *ptr, unsigned int nr)
nr                 35 drivers/s390/crypto/ap_bus.h 	return (*ptr & (0x80000000u >> nr)) != 0;
nr                332 drivers/scsi/atari_scsi.c 	int nr;
nr                338 drivers/scsi/atari_scsi.c 	nr = phys_dst & 3;
nr                339 drivers/scsi/atari_scsi.c 	if (nr) {
nr                342 drivers/scsi/atari_scsi.c 		phys_dst ^= nr;
nr                344 drivers/scsi/atari_scsi.c 			   nr, phys_dst);
nr                348 drivers/scsi/atari_scsi.c 		for (src = (char *)&tt_scsi_dma.dma_restdata; nr != 0; --nr)
nr               1784 drivers/scsi/csiostor/csio_scsi.c 	int rv = SCSI_MLQUEUE_HOST_BUSY, nr;
nr               1791 drivers/scsi/csiostor/csio_scsi.c 	nr = fc_remote_port_chkready(rport);
nr               1792 drivers/scsi/csiostor/csio_scsi.c 	if (nr) {
nr               1793 drivers/scsi/csiostor/csio_scsi.c 		cmnd->result = nr;
nr                597 drivers/scsi/dpt_i2o.c 	u32 nr, i;
nr                600 drivers/scsi/dpt_i2o.c 	nr = ARRAY_SIZE(pHba->ioctl_reply_context);
nr                601 drivers/scsi/dpt_i2o.c 	for (i = 0; i < nr; i++) {
nr                608 drivers/scsi/dpt_i2o.c 	if (i >= nr) {
nr                 62 drivers/scsi/fnic/vnic_devcmd.h #define _CMDCF(dir, flags, vtype, nr)  \
nr                 66 drivers/scsi/fnic/vnic_devcmd.h 	((nr)    << _CMD_NSHIFT))
nr                 67 drivers/scsi/fnic/vnic_devcmd.h #define _CMDC(dir, vtype, nr)    _CMDCF(dir, 0, vtype, nr)
nr                 68 drivers/scsi/fnic/vnic_devcmd.h #define _CMDCNW(dir, vtype, nr)  _CMDCF(dir, _CMD_FLAGS_NOWAIT, vtype, nr)
nr               2439 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 		int nr = hisi_sas_intr_conv ? 16 : 16 + i;
nr               2442 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 		rc = devm_request_irq(dev, pci_irq_vector(pdev, nr),
nr               3282 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 		int nr = hisi_sas_intr_conv ? 16 : 16 + i;
nr               3284 drivers/scsi/hisi_sas/hisi_sas_v3_hw.c 		free_irq(pci_irq_vector(pdev, nr), cq);
nr                105 drivers/scsi/ibmvscsi_tgt/libsrp.c 		     size_t nr, size_t iu_size)
nr                114 drivers/scsi/ibmvscsi_tgt/libsrp.c 	target->rx_ring_size = nr;
nr                115 drivers/scsi/ibmvscsi_tgt/libsrp.c 	target->rx_ring = srp_ring_alloc(target->dev, nr, iu_size);
nr                118 drivers/scsi/ibmvscsi_tgt/libsrp.c 	err = srp_iu_pool_alloc(&target->iu_queue, nr, target->rx_ring);
nr                126 drivers/scsi/ibmvscsi_tgt/libsrp.c 	srp_ring_free(target->dev, target->rx_ring, nr, iu_size);
nr                551 drivers/scsi/mvsas/mv_64xx.c static void mvs_64xx_make_prd(struct scatterlist *scatter, int nr, void *prd)
nr                556 drivers/scsi/mvsas/mv_64xx.c 	for_each_sg(scatter, sg, nr, i) {
nr                783 drivers/scsi/mvsas/mv_94xx.c static void mvs_94xx_make_prd(struct scatterlist *scatter, int nr, void *prd)
nr                790 drivers/scsi/mvsas/mv_94xx.c 	for_each_sg(scatter, sg, nr, i) {
nr                128 drivers/scsi/mvsas/mv_sas.h 	void (*make_prd)(struct scatterlist *scatter, int nr, void *prd);
nr               4212 drivers/scsi/pm8001/pm8001_hwi.c pm8001_chip_make_sg(struct scatterlist *scatter, int nr, void *prd)
nr               4218 drivers/scsi/pm8001/pm8001_hwi.c 	for_each_sg(scatter, sg, nr, i) {
nr                203 drivers/scsi/pm8001/pm8001_sas.h 	void (*make_prd)(struct scatterlist *scatter, int nr, void *prd);
nr                689 drivers/scsi/pm8001/pm8001_sas.h void pm8001_chip_make_sg(struct scatterlist *scatter, int nr, void *prd);
nr                 62 drivers/scsi/snic/vnic_devcmd.h #define _CMDCF(dir, flags, vtype, nr)  \
nr                 66 drivers/scsi/snic/vnic_devcmd.h 	((nr)    << _CMD_NSHIFT))
nr                 67 drivers/scsi/snic/vnic_devcmd.h #define _CMDC(dir, vtype, nr)    _CMDCF(dir, 0, vtype, nr)
nr                 68 drivers/scsi/snic/vnic_devcmd.h #define _CMDCNW(dir, vtype, nr)  _CMDCF(dir, _CMD_FLAGS_NOWAIT, vtype, nr)
nr                 94 drivers/sh/clk/cpg.c int __init sh_clk_mstp_register(struct clk *clks, int nr)
nr                100 drivers/sh/clk/cpg.c 	for (k = 0; !ret && (k < nr); k++) {
nr                241 drivers/sh/clk/cpg.c static int __init sh_clk_div_register_ops(struct clk *clks, int nr,
nr                252 drivers/sh/clk/cpg.c 	freq_table = kcalloc(nr, freq_table_size, GFP_KERNEL);
nr                258 drivers/sh/clk/cpg.c 	for (k = 0; !ret && (k < nr); k++) {
nr                336 drivers/sh/clk/cpg.c int __init sh_clk_div6_register(struct clk *clks, int nr)
nr                338 drivers/sh/clk/cpg.c 	return sh_clk_div_register_ops(clks, nr, &sh_clk_div6_table,
nr                342 drivers/sh/clk/cpg.c int __init sh_clk_div6_reparent_register(struct clk *clks, int nr)
nr                344 drivers/sh/clk/cpg.c 	return sh_clk_div_register_ops(clks, nr, &sh_clk_div6_table,
nr                389 drivers/sh/clk/cpg.c int __init sh_clk_div4_register(struct clk *clks, int nr,
nr                392 drivers/sh/clk/cpg.c 	return sh_clk_div_register_ops(clks, nr, table, &sh_clk_div_clk_ops);
nr                395 drivers/sh/clk/cpg.c int __init sh_clk_div4_enable_register(struct clk *clks, int nr,
nr                398 drivers/sh/clk/cpg.c 	return sh_clk_div_register_ops(clks, nr, table,
nr                402 drivers/sh/clk/cpg.c int __init sh_clk_div4_reparent_register(struct clk *clks, int nr,
nr                405 drivers/sh/clk/cpg.c 	return sh_clk_div_register_ops(clks, nr, table,
nr                467 drivers/sh/clk/cpg.c int __init sh_clk_fsidiv_register(struct clk *clks, int nr)
nr                472 drivers/sh/clk/cpg.c 	for (i = 0; i < nr; i++) {
nr                293 drivers/spi/spi-sc18is602.c 	master->bus_num = np ? -1 : client->adapter->nr;
nr                 36 drivers/spmi/spmi.c 	ida_simple_remove(&ctrl_ida, ctrl->nr);
nr                 65 drivers/spmi/spmi.c 	dev_set_name(&sdev->dev, "%d-%02x", ctrl->nr, sdev->usid);
nr                441 drivers/spmi/spmi.c 	ctrl->nr = id;
nr                524 drivers/spmi/spmi.c 		ctrl->nr, &ctrl->dev);
nr               1241 drivers/staging/isdn/avm/c4.c 	int nr = ent->driver_data;
nr               1246 drivers/staging/isdn/avm/c4.c 		printk(KERN_ERR "c4: failed to enable AVM-C%d\n", nr);
nr               1256 drivers/staging/isdn/avm/c4.c 	       nr, param.port, param.irq, param.membase);
nr               1258 drivers/staging/isdn/avm/c4.c 	retval = c4_add_card(&param, dev, nr);
nr               1261 drivers/staging/isdn/avm/c4.c 		       nr, param.port, param.irq, param.membase);
nr                 14 drivers/staging/media/hantro/hantro_g1_mpeg2_dec.c #define G1_SWREG(nr)			((nr) * 4)
nr                 14 drivers/staging/media/hantro/rk3399_vpu_hw_mpeg2_dec.c #define VDPU_SWREG(nr)			((nr) * 4)
nr               1053 drivers/staging/media/soc_camera/soc_camera.c 		if (icd->iface == ici->nr) {
nr               1402 drivers/staging/media/soc_camera/soc_camera.c 	struct soc_camera_desc sdesc = {.host_desc.bus_id = ici->nr,};
nr               1511 drivers/staging/media/soc_camera/soc_camera.c 	struct soc_camera_desc sdesc = {.host_desc.bus_id = ici->nr,};
nr               1563 drivers/staging/media/soc_camera/soc_camera.c 				  client->adapter->nr, client->addr);
nr               1881 drivers/staging/media/soc_camera/soc_camera.c 		if (ix->nr == ici->nr) {
nr               1928 drivers/staging/media/soc_camera/soc_camera.c 		if (icd->iface == ici->nr && icd->sasc) {
nr               1945 drivers/staging/media/soc_camera/soc_camera.c 		if (icd->iface == ici->nr)
nr                 63 drivers/staging/media/tegra-vde/uapi.h #define VDE_IO(nr)			_IO(VDE_IOCTL_BASE, nr)
nr                 64 drivers/staging/media/tegra-vde/uapi.h #define VDE_IOR(nr, type)		_IOR(VDE_IOCTL_BASE, nr, type)
nr                 65 drivers/staging/media/tegra-vde/uapi.h #define VDE_IOW(nr, type)		_IOW(VDE_IOCTL_BASE, nr, type)
nr                 66 drivers/staging/media/tegra-vde/uapi.h #define VDE_IOWR(nr, type)		_IOWR(VDE_IOCTL_BASE, nr, type)
nr                299 drivers/staging/most/i2c/i2c.c 		 client->adapter->nr, client->addr);
nr                 97 drivers/thermal/intel/int340x_thermal/int3406_thermal.c static int int3406_thermal_get_index(int *array, int nr, int value)
nr                101 drivers/thermal/intel/int340x_thermal/int3406_thermal.c 	for (i = 2; i < nr; i++) {
nr                105 drivers/thermal/intel/int340x_thermal/int3406_thermal.c 	return i == nr ? -ENOENT : i;
nr               2551 drivers/tty/n_gsm.c 			 unsigned char __user *buf, size_t nr)
nr               2571 drivers/tty/n_gsm.c 			   const unsigned char *buf, size_t nr)
nr               2574 drivers/tty/n_gsm.c 	if (space >= nr)
nr               2575 drivers/tty/n_gsm.c 		return tty->ops->write(tty, buf, nr);
nr                178 drivers/tty/n_hdlc.c 			   __u8 __user *buf, size_t nr);
nr                180 drivers/tty/n_hdlc.c 			    const unsigned char *buf, size_t nr);
nr                561 drivers/tty/n_hdlc.c 			   __u8 __user *buf, size_t nr)
nr                576 drivers/tty/n_hdlc.c 	if (!access_ok(buf, nr)) {
nr                596 drivers/tty/n_hdlc.c 			if (rbuf->count > nr) {
nr                 23 drivers/tty/n_null.c 			   unsigned char __user * buf, size_t nr)
nr                 29 drivers/tty/n_null.c 			    const unsigned char *buf, size_t nr)
nr                132 drivers/tty/n_r3964.c 		unsigned char __user * buf, size_t nr);
nr                134 drivers/tty/n_r3964.c 		const unsigned char *buf, size_t nr);
nr               1062 drivers/tty/n_r3964.c 			  unsigned char __user * buf, size_t nr)
nr                121 drivers/tty/n_tracerouter.c 				  unsigned char __user *buf, size_t nr) {
nr                145 drivers/tty/n_tracerouter.c 				   const unsigned char *buf, size_t nr) {
nr                118 drivers/tty/n_tracesink.c 				unsigned char __user *buf, size_t nr) {
nr                142 drivers/tty/n_tracesink.c 				 const unsigned char *buf, size_t nr) {
nr                543 drivers/tty/n_tty.c 				    const unsigned char *buf, unsigned int nr)
nr                557 drivers/tty/n_tty.c 	if (nr > space)
nr                558 drivers/tty/n_tty.c 		nr = space;
nr                560 drivers/tty/n_tty.c 	for (i = 0, cp = buf; i < nr; i++, cp++) {
nr                775 drivers/tty/n_tty.c 	size_t nr, old, echoed;
nr                786 drivers/tty/n_tty.c 	nr = head - ldata->echo_tail;
nr                787 drivers/tty/n_tty.c 	if (nr < ECHO_COMMIT_WATERMARK ||
nr                788 drivers/tty/n_tty.c 	    (nr % ECHO_BLOCK > old % ECHO_BLOCK)) {
nr               1964 drivers/tty/n_tty.c 				      size_t *nr)
nr               1976 drivers/tty/n_tty.c 	n = min(*nr, n);
nr               1990 drivers/tty/n_tty.c 		*nr -= n;
nr               2020 drivers/tty/n_tty.c 				    size_t *nr)
nr               2029 drivers/tty/n_tty.c 	if (!*nr)
nr               2032 drivers/tty/n_tty.c 	n = min(*nr + 1, smp_load_acquire(&ldata->canon_head) - ldata->read_tail);
nr               2038 drivers/tty/n_tty.c 		    __func__, *nr, tail, n, size);
nr               2055 drivers/tty/n_tty.c 		c = min(*nr, c);
nr               2066 drivers/tty/n_tty.c 	*nr -= n;
nr               2133 drivers/tty/n_tty.c 			 unsigned char __user *buf, size_t nr)
nr               2178 drivers/tty/n_tty.c 	while (nr) {
nr               2193 drivers/tty/n_tty.c 			nr--;
nr               2235 drivers/tty/n_tty.c 			retval = canon_copy_from_read_buf(tty, &b, &nr);
nr               2248 drivers/tty/n_tty.c 				nr--;
nr               2251 drivers/tty/n_tty.c 			uncopied = copy_from_read_buf(tty, &b, &nr);
nr               2252 drivers/tty/n_tty.c 			uncopied += copy_from_read_buf(tty, &b, &nr);
nr               2302 drivers/tty/n_tty.c 			   const unsigned char *buf, size_t nr)
nr               2332 drivers/tty/n_tty.c 			while (nr > 0) {
nr               2333 drivers/tty/n_tty.c 				ssize_t num = process_output_block(tty, b, nr);
nr               2341 drivers/tty/n_tty.c 				nr -= num;
nr               2342 drivers/tty/n_tty.c 				if (nr == 0)
nr               2347 drivers/tty/n_tty.c 				b++; nr--;
nr               2354 drivers/tty/n_tty.c 			while (nr > 0) {
nr               2356 drivers/tty/n_tty.c 				c = tty->ops->write(tty, b, nr);
nr               2365 drivers/tty/n_tty.c 				nr -= c;
nr               2368 drivers/tty/n_tty.c 		if (!nr)
nr               2382 drivers/tty/n_tty.c 	if (nr && tty->fasync)
nr               2431 drivers/tty/n_tty.c 	size_t nr, head, tail;
nr               2437 drivers/tty/n_tty.c 	nr = head - tail;
nr               2442 drivers/tty/n_tty.c 			nr--;
nr               2445 drivers/tty/n_tty.c 	return nr;
nr                 77 drivers/tty/serdev/core.c 	ida_simple_remove(&ctrl_ida, ctrl->nr);
nr                107 drivers/tty/serdev/core.c 	dev_set_name(&serdev->dev, "%s-%d", dev_name(parent), serdev->nr);
nr                497 drivers/tty/serdev/core.c 	ctrl->nr = id;
nr                664 drivers/tty/serdev/core.c 		ctrl->nr, &ctrl->dev);
nr                477 drivers/tty/serial/21285.c 	.nr			= 1,
nr               1159 drivers/tty/serial/8250/8250_core.c 	serial8250_reg.nr = UART_NR;
nr                135 drivers/tty/serial/8250/8250_exar.c 	unsigned int		nr;
nr                619 drivers/tty/serial/8250/8250_exar.c 	priv->nr = i;
nr                629 drivers/tty/serial/8250/8250_exar.c 	for (i = 0; i < priv->nr; i++)
nr                642 drivers/tty/serial/8250/8250_exar.c 	for (i = 0; i < priv->nr; i++)
nr                660 drivers/tty/serial/8250/8250_exar.c 	for (i = 0; i < priv->nr; i++)
nr                 55 drivers/tty/serial/8250/8250_pci.c 	unsigned int		nr;
nr               3945 drivers/tty/serial/8250/8250_pci.c 	priv->nr = i;
nr               3962 drivers/tty/serial/8250/8250_pci.c 	for (i = 0; i < priv->nr; i++)
nr               3984 drivers/tty/serial/8250/8250_pci.c 	for (i = 0; i < priv->nr; i++)
nr               4006 drivers/tty/serial/8250/8250_pci.c 	for (i = 0; i < priv->nr; i++)
nr                414 drivers/tty/serial/altera_jtaguart.c 	.nr		= ALTERA_JTAGUART_MAXPORTS,
nr                549 drivers/tty/serial/altera_uart.c 	.nr		= CONFIG_SERIAL_ALTERA_UART_MAXPORTS,
nr                694 drivers/tty/serial/amba-pl010.c 	.nr			= UART_NR,
nr               2506 drivers/tty/serial/amba-pl011.c 	.nr			= UART_NR,
nr                544 drivers/tty/serial/apbuart.c 	.nr = UART_NR,
nr                640 drivers/tty/serial/apbuart.c 	grlib_apbuart_driver.nr = grlib_apbuart_port_nr = line;
nr                617 drivers/tty/serial/ar933x_uart.c 	.nr		= CONFIG_SERIAL_AR933X_NR_UARTS,
nr                120 drivers/tty/serial/arc_uart.c 	.nr		= CONFIG_SERIAL_ARC_NR_PORTS,
nr               2698 drivers/tty/serial/atmel_serial.c 	.nr		= ATMEL_MAX_UART,
nr                804 drivers/tty/serial/bcm63xx_uart.c 	.nr		= BCM63XX_NR_UARTS,
nr                 72 drivers/tty/serial/clps711x.c 	.nr		= UART_CLPS711X_NR,
nr               1399 drivers/tty/serial/cpm_uart/cpm_uart_core.c 	.nr		= UART_NR,
nr                446 drivers/tty/serial/digicolor-usart.c 	.nr		= DIGICOLOR_USART_NR,
nr                923 drivers/tty/serial/dz.c 	.nr			= DZ_NB_PORT,
nr                660 drivers/tty/serial/efm32-uart.c 	.nr = ARRAY_SIZE(efm32_uart_ports),
nr                823 drivers/tty/serial/fsl_linflexuart.c 	.nr		= ARRAY_SIZE(linflex_ports),
nr               2368 drivers/tty/serial/fsl_lpuart.c 	.nr		= ARRAY_SIZE(lpuart_ports),
nr               1299 drivers/tty/serial/icom.c 	.nr = NR_PORTS,
nr               2157 drivers/tty/serial/imx.c 	.nr             = ARRAY_SIZE(imx_uart_ports),
nr               1075 drivers/tty/serial/ip22zilog.c 	.nr		= NUM_CHANNELS,
nr                 34 drivers/tty/serial/jsm/jsm_driver.c 	.nr		= NR_PORTS,
nr                715 drivers/tty/serial/lantiq.c 	.nr =		MAXPORTS,
nr                207 drivers/tty/serial/lpc32xx_hs.c 	.nr		= MAX_PORTS,
nr                733 drivers/tty/serial/max3100.c 	.nr             = MAX_MAX3100,
nr                250 drivers/tty/serial/max310x.c 	int	nr;
nr                285 drivers/tty/serial/max310x.c 	.nr		= MAX310X_UART_NRMAX,
nr                418 drivers/tty/serial/max310x.c 	.nr	= 1,
nr                426 drivers/tty/serial/max310x.c 	.nr	= 1,
nr                434 drivers/tty/serial/max310x.c 	.nr	= 2,
nr                442 drivers/tty/serial/max310x.c 	.nr	= 4,
nr                831 drivers/tty/serial/max310x.c 	if (s->devtype->nr > 1) {
nr                837 drivers/tty/serial/max310x.c 			val = ((1 << s->devtype->nr) - 1) & ~val;
nr               1163 drivers/tty/serial/max310x.c 	for (i = 0; i < s->devtype->nr; i++) {
nr               1176 drivers/tty/serial/max310x.c 	for (i = 0; i < s->devtype->nr; i++) {
nr               1265 drivers/tty/serial/max310x.c 	s = devm_kzalloc(dev, struct_size(s, p, devtype->nr), GFP_KERNEL);
nr               1310 drivers/tty/serial/max310x.c 	for (i = 0; i < devtype->nr; i++) {
nr               1332 drivers/tty/serial/max310x.c 	for (i = 0; i < devtype->nr; i++) {
nr               1392 drivers/tty/serial/max310x.c 	s->gpio.ngpio		= devtype->nr * 4;
nr               1408 drivers/tty/serial/max310x.c 	for (i = 0; i < devtype->nr; i++) {
nr               1426 drivers/tty/serial/max310x.c 	for (i = 0; i < s->devtype->nr; i++) {
nr               1487 drivers/tty/serial/max310x.c 	regcfg.max_register = devtype->nr * 0x20 - 1;
nr                608 drivers/tty/serial/mcf.c 	.nr		= MCF_MAXPORTS,
nr                798 drivers/tty/serial/men_z135_uart.c 	.nr = MEN_Z135_MAX_PORTS,
nr                583 drivers/tty/serial/meson_uart.c 	.nr		= AML_UART_PORT_NUM,
nr                498 drivers/tty/serial/milbeaut_usio.c 	.nr		= CONFIG_SERIAL_MILBEAUT_USIO_PORTS,
nr               1717 drivers/tty/serial/mpc52xx_uart.c 	.nr		= MPC52xx_PSC_MAXNUM,
nr                522 drivers/tty/serial/mps2-uart.c 	.nr = MPS2_MAX_PORTS,
nr               1746 drivers/tty/serial/msm_serial.c 	.nr = UART_NR,
nr                 62 drivers/tty/serial/mux.c 	.nr = MUX_NR,
nr                743 drivers/tty/serial/mvebu-uart.c 	.nr			= MVEBU_NR_UARTS,
nr               1489 drivers/tty/serial/mxs-auart.c 	.nr		= MXS_AUART_PORTS,
nr               1478 drivers/tty/serial/omap-serial.c 	.nr		= OMAP_MAX_HSUART_PORTS,
nr                619 drivers/tty/serial/owl-uart.c 	.nr = OWL_UART_PORT_NUM,
nr               1730 drivers/tty/serial/pch_uart.c 	.nr = PCH_UART_NR,
nr                797 drivers/tty/serial/pic32_uart.c 	.nr			= PIC32_MAX_UARTS,
nr               1823 drivers/tty/serial/pmac_zilog.c 	pmz_uart_reg.nr = pmz_ports_count;
nr                772 drivers/tty/serial/pnx8xxx_uart.c 	.nr			= NR_PORTS,
nr                734 drivers/tty/serial/pxa.c 	if (co->index == -1 || co->index >= serial_pxa_reg.nr)
nr                791 drivers/tty/serial/pxa.c 	.nr		= 4,
nr               1185 drivers/tty/serial/qcom_geni_serial.c 	.nr =  GENI_UART_CONS_PORTS,
nr               1203 drivers/tty/serial/qcom_geni_serial.c 	.nr =  GENI_UART_PORTS,
nr                707 drivers/tty/serial/rda-uart.c 	.nr = RDA_UART_PORT_NUM,
nr                173 drivers/tty/serial/rp2.c 	.nr				= CONFIG_SERIAL_RP2_NR_UARTS,
nr                836 drivers/tty/serial/sa1100.c 	.nr			= NR_PORTS,
nr               1520 drivers/tty/serial/samsung.c 	.nr		= CONFIG_SERIAL_SAMSUNG_UARTS,
nr                923 drivers/tty/serial/sb1250-duart.c 	.nr		= DUART_MAX_CHIP * DUART_MAX_SIDE,
nr                340 drivers/tty/serial/sc16is7xx.c 	.nr		= SC16IS7XX_MAX_DEVS,
nr                105 drivers/tty/serial/sccnxp.c 	unsigned int		nr;
nr                141 drivers/tty/serial/sccnxp.c 	.nr		= 2,
nr                152 drivers/tty/serial/sccnxp.c 	.nr		= 1,
nr                163 drivers/tty/serial/sccnxp.c 	.nr		= 2,
nr                174 drivers/tty/serial/sccnxp.c 	.nr		= 1,
nr                185 drivers/tty/serial/sccnxp.c 	.nr		= 2,
nr                196 drivers/tty/serial/sccnxp.c 	.nr		= 2,
nr                207 drivers/tty/serial/sccnxp.c 	.nr		= 2,
nr                218 drivers/tty/serial/sccnxp.c 	.nr		= 2,
nr                494 drivers/tty/serial/sccnxp.c 		for (i = 0; i < s->uart.nr; i++) {
nr                973 drivers/tty/serial/sccnxp.c 	s->uart.nr		= s->chip->nr;
nr                990 drivers/tty/serial/sccnxp.c 	for (i = 0; i < s->uart.nr; i++) {
nr               1048 drivers/tty/serial/sccnxp.c 	for (i = 0; i < s->uart.nr; i++)
nr               1411 drivers/tty/serial/serial-tegra.c 	.nr		= TEGRA_UART_MAXIMUM,
nr               1672 drivers/tty/serial/serial-tegra.c 		tegra_uart_driver.nr = cdata->uart_max_port;
nr               1905 drivers/tty/serial/serial_core.c 	for (i = 0; i < drv->nr; i++)
nr               1939 drivers/tty/serial/serial_core.c uart_get_console(struct uart_port *ports, int nr, struct console *co)
nr               1943 drivers/tty/serial/serial_core.c 	if (idx < 0 || idx >= nr || (ports[idx].iobase == 0 &&
nr               1945 drivers/tty/serial/serial_core.c 		for (idx = 0; idx < nr; idx++)
nr               2530 drivers/tty/serial/serial_core.c 	drv->state = kcalloc(drv->nr, sizeof(struct uart_state), GFP_KERNEL);
nr               2534 drivers/tty/serial/serial_core.c 	normal = alloc_tty_driver(drv->nr);
nr               2556 drivers/tty/serial/serial_core.c 	for (i = 0; i < drv->nr; i++) {
nr               2568 drivers/tty/serial/serial_core.c 	for (i = 0; i < drv->nr; i++)
nr               2593 drivers/tty/serial/serial_core.c 	for (i = 0; i < drv->nr; i++)
nr               2797 drivers/tty/serial/serial_core.c 	if (uport->line >= drv->nr)
nr                987 drivers/tty/serial/serial_txx9.c 	.nr			= UART_NR,
nr               3150 drivers/tty/serial/sh-sci.c 	.nr		= SCI_NPORTS,
nr                887 drivers/tty/serial/sifive.c 	.nr		= SIFIVE_SERIAL_MAX_PORTS,
nr               1156 drivers/tty/serial/sirfsoc_uart.c 	.nr		= SIRFSOC_UART_NR,
nr               1072 drivers/tty/serial/sprd_serial.c 	.nr = UART_NR_MAX,
nr                962 drivers/tty/serial/st-asc.c 	.nr		= ASC_MAX_PORTS,
nr               1341 drivers/tty/serial/stm32-usart.c 	.nr		= STM32_MAX_PORTS,
nr                 33 drivers/tty/serial/suncore.c 	drv->nr += count;
nr                 35 drivers/tty/serial/suncore.c 	if (drv->nr == count)
nr                 47 drivers/tty/serial/suncore.c 	drv->nr -= count;
nr                 50 drivers/tty/serial/suncore.c 	if (drv->nr == 0)
nr               1149 drivers/tty/serial/sunsab.c 	if (sunsab_reg.nr) {
nr               1150 drivers/tty/serial/sunsab.c 		sunserial_unregister_minors(&sunsab_reg, sunsab_reg.nr);
nr               1625 drivers/tty/serial/sunsu.c 	if (sunsu_reg.nr)
nr               1626 drivers/tty/serial/sunsu.c 		sunserial_unregister_minors(&sunsu_reg, sunsu_reg.nr);
nr               1641 drivers/tty/serial/sunzilog.c 	if (sunzilog_reg.nr) {
nr               1642 drivers/tty/serial/sunzilog.c 		sunserial_unregister_minors(&sunzilog_reg, sunzilog_reg.nr);
nr                223 drivers/tty/serial/tegra-tcu.c 	tcu->driver.nr = 1;
nr                410 drivers/tty/serial/timbuart.c 	.nr = 1
nr                599 drivers/tty/serial/uartlite.c 	.nr		= ULITE_NR_UARTS,
nr                205 drivers/tty/serial/ucc_uart.c 	.nr     	= UCC_MAX_UART,
nr                863 drivers/tty/serial/vr41xx_siu.c 	siu_uart_driver.nr = num;
nr                893 drivers/tty/serial/vr41xx_siu.c 	for (i = 0; i < siu_uart_driver.nr; i++) {
nr                911 drivers/tty/serial/vr41xx_siu.c 	for (i = 0; i < siu_uart_driver.nr; i++) {
nr                927 drivers/tty/serial/vr41xx_siu.c 	for (i = 0; i < siu_uart_driver.nr; i++) {
nr                505 drivers/tty/serial/vt8500_serial.c 	BUG_ON(co->index < 0 || co->index >= vt8500_uart_driver.nr);
nr                529 drivers/tty/serial/vt8500_serial.c 	if (unlikely(co->index >= vt8500_uart_driver.nr || co->index < 0))
nr                614 drivers/tty/serial/vt8500_serial.c 	.nr		= 6,
nr               1445 drivers/tty/serial/xilinx_uartps.c 		cdns_uart_uart_driver.nr = CDNS_UART_NR_PORTS;
nr               1261 drivers/tty/serial/zs.c 	.nr			= ZS_NUM_SCCS * ZS_NUM_CHAN,
nr                320 drivers/tty/vt/vc_screen.c 			unsigned int nr;
nr                328 drivers/tty/vt/vc_screen.c 			nr = maxcol - col;
nr                330 drivers/tty/vt/vc_screen.c 				if (nr > this_round/4)
nr                331 drivers/tty/vt/vc_screen.c 					nr = this_round/4;
nr                333 drivers/tty/vt/vc_screen.c 						    row, col, nr);
nr                334 drivers/tty/vt/vc_screen.c 				con_buf0 += nr * 4;
nr                335 drivers/tty/vt/vc_screen.c 				this_round -= nr * 4;
nr                338 drivers/tty/vt/vc_screen.c 				nr = maxcol;
nr                387 drivers/tty/vt/vt.c static void vc_uniscr_insert(struct vc_data *vc, unsigned int nr)
nr                395 drivers/tty/vt/vt.c 		memmove(&ln[x + nr], &ln[x], (cols - x - nr) * sizeof(*ln));
nr                396 drivers/tty/vt/vt.c 		memset32(&ln[x], ' ', nr);
nr                400 drivers/tty/vt/vt.c static void vc_uniscr_delete(struct vc_data *vc, unsigned int nr)
nr                408 drivers/tty/vt/vt.c 		memcpy(&ln[x], &ln[x + nr], (cols - x - nr) * sizeof(*ln));
nr                409 drivers/tty/vt/vt.c 		memset32(&ln[cols - nr], ' ', nr);
nr                414 drivers/tty/vt/vt.c 				 unsigned int nr)
nr                421 drivers/tty/vt/vt.c 		memset32(&ln[x], ' ', nr);
nr                426 drivers/tty/vt/vt.c 				  unsigned int nr)
nr                433 drivers/tty/vt/vt.c 		while (nr--)
nr                439 drivers/tty/vt/vt.c 			     enum con_scroll dir, unsigned int nr)
nr                447 drivers/tty/vt/vt.c 		clear = b - nr;
nr                448 drivers/tty/vt/vt.c 		d = nr;
nr                451 drivers/tty/vt/vt.c 			d = sz - nr;
nr                467 drivers/tty/vt/vt.c 		vc_uniscr_clear_lines(vc, clear, nr);
nr                555 drivers/tty/vt/vt.c 			 unsigned int row, unsigned int col, unsigned int nr)
nr                572 drivers/tty/vt/vt.c 		memcpy(dest, &uniscr->lines[row][col], nr * sizeof(char32_t));
nr                583 drivers/tty/vt/vt.c 		while (nr--) {
nr                628 drivers/tty/vt/vt.c 		enum con_scroll dir, unsigned int nr)
nr                632 drivers/tty/vt/vt.c 	if (t + nr >= b)
nr                633 drivers/tty/vt/vt.c 		nr = b - t - 1;
nr                634 drivers/tty/vt/vt.c 	if (b > vc->vc_rows || t >= b || nr < 1)
nr                636 drivers/tty/vt/vt.c 	vc_uniscr_scroll(vc, t, b, dir, nr);
nr                637 drivers/tty/vt/vt.c 	if (con_is_visible(vc) && vc->vc_sw->con_scroll(vc, t, b, dir, nr))
nr                641 drivers/tty/vt/vt.c 	d = (u16 *)(vc->vc_origin + vc->vc_size_row * (t + nr));
nr                644 drivers/tty/vt/vt.c 		clear = s + (b - t - nr) * vc->vc_cols;
nr                647 drivers/tty/vt/vt.c 	scr_memmovew(d, s, (b - t - nr) * vc->vc_size_row);
nr                648 drivers/tty/vt/vt.c 	scr_memsetw(clear, vc->vc_video_erase_char, vc->vc_size_row * nr);
nr                840 drivers/tty/vt/vt.c static void insert_char(struct vc_data *vc, unsigned int nr)
nr                844 drivers/tty/vt/vt.c 	vc_uniscr_insert(vc, nr);
nr                845 drivers/tty/vt/vt.c 	scr_memmovew(p + nr, p, (vc->vc_cols - vc->vc_x - nr) * 2);
nr                846 drivers/tty/vt/vt.c 	scr_memsetw(p, vc->vc_video_erase_char, nr * 2);
nr                853 drivers/tty/vt/vt.c static void delete_char(struct vc_data *vc, unsigned int nr)
nr                857 drivers/tty/vt/vt.c 	vc_uniscr_delete(vc, nr);
nr                858 drivers/tty/vt/vt.c 	scr_memcpyw(p, p + nr, (vc->vc_cols - vc->vc_x - nr) * 2);
nr                859 drivers/tty/vt/vt.c 	scr_memsetw(p + vc->vc_cols - vc->vc_x - nr, vc->vc_video_erase_char,
nr                860 drivers/tty/vt/vt.c 			nr * 2);
nr               1988 drivers/tty/vt/vt.c static void csi_at(struct vc_data *vc, unsigned int nr)
nr               1990 drivers/tty/vt/vt.c 	if (nr > vc->vc_cols - vc->vc_x)
nr               1991 drivers/tty/vt/vt.c 		nr = vc->vc_cols - vc->vc_x;
nr               1992 drivers/tty/vt/vt.c 	else if (!nr)
nr               1993 drivers/tty/vt/vt.c 		nr = 1;
nr               1994 drivers/tty/vt/vt.c 	insert_char(vc, nr);
nr               1998 drivers/tty/vt/vt.c static void csi_L(struct vc_data *vc, unsigned int nr)
nr               2000 drivers/tty/vt/vt.c 	if (nr > vc->vc_rows - vc->vc_y)
nr               2001 drivers/tty/vt/vt.c 		nr = vc->vc_rows - vc->vc_y;
nr               2002 drivers/tty/vt/vt.c 	else if (!nr)
nr               2003 drivers/tty/vt/vt.c 		nr = 1;
nr               2004 drivers/tty/vt/vt.c 	con_scroll(vc, vc->vc_y, vc->vc_bottom, SM_DOWN, nr);
nr               2009 drivers/tty/vt/vt.c static void csi_P(struct vc_data *vc, unsigned int nr)
nr               2011 drivers/tty/vt/vt.c 	if (nr > vc->vc_cols - vc->vc_x)
nr               2012 drivers/tty/vt/vt.c 		nr = vc->vc_cols - vc->vc_x;
nr               2013 drivers/tty/vt/vt.c 	else if (!nr)
nr               2014 drivers/tty/vt/vt.c 		nr = 1;
nr               2015 drivers/tty/vt/vt.c 	delete_char(vc, nr);
nr               2019 drivers/tty/vt/vt.c static void csi_M(struct vc_data *vc, unsigned int nr)
nr               2021 drivers/tty/vt/vt.c 	if (nr > vc->vc_rows - vc->vc_y)
nr               2022 drivers/tty/vt/vt.c 		nr = vc->vc_rows - vc->vc_y;
nr               2023 drivers/tty/vt/vt.c 	else if (!nr)
nr               2024 drivers/tty/vt/vt.c 		nr=1;
nr               2025 drivers/tty/vt/vt.c 	con_scroll(vc, vc->vc_y, vc->vc_bottom, SM_UP, nr);
nr               2881 drivers/tty/vt/vt.c int set_console(int nr)
nr               2885 drivers/tty/vt/vt.c 	if (!vc_cons_allocated(nr) || vt_dont_switch ||
nr               2899 drivers/tty/vt/vt.c 	want_console = nr;
nr                280 drivers/usb/c67x00/c67x00-ll-hpi.c static int c67x00_comm_exec_int(struct c67x00_device *dev, u16 nr,
nr                286 drivers/usb/c67x00/c67x00-ll-hpi.c 	hpi_write_word(dev, COMM_INT_NUM, nr);
nr                535 drivers/usb/cdns3/gadget.h #define select_ep_in(nr)	(EP_SEL_EPNO(p) | EP_SEL_DIR)
nr                871 drivers/usb/gadget/function/rndis.c static inline void rndis_put_nr(int nr)
nr                873 drivers/usb/gadget/function/rndis.c 	ida_simple_remove(&rndis_ida, nr);
nr               1824 drivers/vhost/vhost.c static int set_bit_to_user(int nr, void __user *addr)
nr               1829 drivers/vhost/vhost.c 	int bit = nr + (log % PAGE_SIZE) * 8;
nr                 83 drivers/video/fbdev/via/via-gpio.c static void via_gpio_set(struct gpio_chip *chip, unsigned int nr,
nr                 92 drivers/video/fbdev/via/via-gpio.c 	gpio = cfg->active_gpios[nr];
nr                103 drivers/video/fbdev/via/via-gpio.c static int via_gpio_dir_out(struct gpio_chip *chip, unsigned int nr,
nr                106 drivers/video/fbdev/via/via-gpio.c 	via_gpio_set(chip, nr, value);
nr                114 drivers/video/fbdev/via/via-gpio.c static int via_gpio_dir_input(struct gpio_chip *chip, unsigned int nr)
nr                121 drivers/video/fbdev/via/via-gpio.c 	gpio = cfg->active_gpios[nr];
nr                128 drivers/video/fbdev/via/via-gpio.c static int via_gpio_get(struct gpio_chip *chip, unsigned int nr)
nr                136 drivers/video/fbdev/via/via-gpio.c 	gpio = cfg->active_gpios[nr];
nr                 17 drivers/xen/arm-device.c 	unsigned int i, j, nr;
nr                 24 drivers/xen/arm-device.c 		nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE);
nr                 25 drivers/xen/arm-device.c 		if ((resource_type(r) != IORESOURCE_MEM) || (nr == 0))
nr                 28 drivers/xen/arm-device.c 		for (j = 0; j < nr; j++) {
nr                 44 drivers/xen/arm-device.c 	unsigned int i, j, nr;
nr                 58 drivers/xen/arm-device.c 		nr = DIV_ROUND_UP(resource_size(r), XEN_PAGE_SIZE);
nr                 59 drivers/xen/arm-device.c 		if ((resource_type(r) != IORESOURCE_MEM) || (nr == 0))
nr                 62 drivers/xen/arm-device.c 		gpfns = kcalloc(nr, sizeof(xen_pfn_t), GFP_KERNEL);
nr                 63 drivers/xen/arm-device.c 		idxs = kcalloc(nr, sizeof(xen_ulong_t), GFP_KERNEL);
nr                 64 drivers/xen/arm-device.c 		errs = kcalloc(nr, sizeof(int), GFP_KERNEL);
nr                 73 drivers/xen/arm-device.c 		for (j = 0; j < nr; j++) {
nr                 83 drivers/xen/arm-device.c 		xatp.size = nr;
nr                370 drivers/xen/grant-table.c 	unsigned int nr = 10;
nr                375 drivers/xen/grant-table.c 	while (nr--) {
nr                192 drivers/xen/privcmd.c 				int (*fn)(void *data, int nr, void *state),
nr                201 drivers/xen/privcmd.c 		int nr = (PAGE_SIZE/size);
nr                203 drivers/xen/privcmd.c 		if (nr > nelem)
nr                204 drivers/xen/privcmd.c 			nr = nelem;
nr                208 drivers/xen/privcmd.c 		ret = (*fn)(pagedata, nr, state);
nr                211 drivers/xen/privcmd.c 		nelem -= nr;
nr                337 drivers/xen/privcmd.c static int mmap_batch_fn(void *data, int nr, void *state)
nr                349 drivers/xen/privcmd.c 	BUG_ON(nr < 0);
nr                350 drivers/xen/privcmd.c 	ret = xen_remap_domain_gfn_array(st->vma, st->va & PAGE_MASK, gfnp, nr,
nr                355 drivers/xen/privcmd.c 	if (ret != nr) {
nr                364 drivers/xen/privcmd.c 	st->va += XEN_PAGE_SIZE * nr;
nr                365 drivers/xen/privcmd.c 	st->index += nr / XEN_PFN_PER_PAGE;
nr                402 drivers/xen/privcmd.c static int mmap_return_errors(void *data, int nr, void *state)
nr                409 drivers/xen/privcmd.c 	for (i = 0; i < nr; i++) {
nr                760 drivers/xen/privcmd.c 		unsigned int nr = DIV_ROUND_UP(kdata.num, XEN_PFN_PER_PAGE);
nr                764 drivers/xen/privcmd.c 		rc = alloc_empty_pages(vma, nr);
nr                336 drivers/xen/xen-pciback/pciback_ops.c 	unsigned int nr = 0;
nr                366 drivers/xen/xen-pciback/pciback_ops.c 			nr = op->value;
nr                389 drivers/xen/xen-pciback/pciback_ops.c 		for (i = 0; i < nr; i++)
nr                145 drivers/xen/xlate_mmu.c 			      xen_pfn_t *gfn, int nr,
nr                152 drivers/xen/xlate_mmu.c 	unsigned long range = DIV_ROUND_UP(nr, XEN_PFN_PER_PAGE) << PAGE_SHIFT;
nr                159 drivers/xen/xlate_mmu.c 	data.nr_fgfn = nr;
nr                184 drivers/xen/xlate_mmu.c 			      int nr, struct page **pages)
nr                186 drivers/xen/xlate_mmu.c 	xen_for_each_gfn(pages, nr, unmap_gfn, NULL);
nr                 27 drivers/zorro/names.c 	unsigned short nr;
nr                 75 drivers/zorro/names.c 		int i = manuf_p->nr;
nr                 92 drivers/zorro/names.c 			int nr = prod_p->seen + 1;
nr                 93 drivers/zorro/names.c 			prod_p->seen = nr;
nr                 94 drivers/zorro/names.c 			if (nr > 1)
nr                 95 drivers/zorro/names.c 				sprintf(n, " (#%d)", nr);
nr                 28 fs/afs/addr_list.c struct afs_addr_list *afs_alloc_addrlist(unsigned int nr,
nr                 35 fs/afs/addr_list.c 	_enter("%u,%u,%u", nr, service, port);
nr                 37 fs/afs/addr_list.c 	if (nr > AFS_MAX_ADDRESSES)
nr                 38 fs/afs/addr_list.c 		nr = AFS_MAX_ADDRESSES;
nr                 40 fs/afs/addr_list.c 	alist = kzalloc(struct_size(alist, addrs, nr), GFP_KERNEL);
nr                 45 fs/afs/addr_list.c 	alist->max_addrs = nr;
nr                 47 fs/afs/addr_list.c 	for (i = 0; i < nr; i++) {
nr                 73 fs/afs/addr_list.c 	unsigned int nr = 0;
nr                 95 fs/afs/addr_list.c 		nr++;
nr                118 fs/afs/addr_list.c 	_debug("%u/%u addresses", nr, AFS_MAX_ADDRESSES);
nr                129 fs/afs/addr_list.c 	alist = afs_alloc_addrlist(nr, service, AFS_VL_PORT);
nr                877 fs/afs/dir.c   	for (i = 0; i < subs->nr; i++) {
nr                267 fs/afs/internal.h 	unsigned short		nr;
nr                105 fs/afs/main.c  	sysnames->nr = 1;
nr                433 fs/afs/proc.c  	if (i < sysnames->nr)
nr                447 fs/afs/proc.c  	if (*pos >= names->nr)
nr                458 fs/afs/proc.c  	if (*pos >= names->nr)
nr                520 fs/afs/proc.c  		if (sysnames->nr >= AFS_NR_SYSNAME)
nr                532 fs/afs/proc.c  		sysnames->subs[sysnames->nr] = sub;
nr                533 fs/afs/proc.c  		sysnames->nr++;
nr                536 fs/afs/proc.c  	if (sysnames->nr == 0) {
nr                538 fs/afs/proc.c  		sysnames->nr++;
nr                561 fs/afs/proc.c  		for (i = 0; i < sysnames->nr; i++)
nr                287 fs/afs/rxrpc.c 	unsigned int nr, n, i, to, bytes = 0;
nr                289 fs/afs/rxrpc.c 	nr = min_t(pgoff_t, last - first + 1, AFS_BVEC_MAX);
nr                290 fs/afs/rxrpc.c 	n = find_get_pages_contig(call->mapping, first, nr, pages);
nr                291 fs/afs/rxrpc.c 	ASSERTCMP(n, ==, nr);
nr                294 fs/afs/rxrpc.c 	for (i = 0; i < nr; i++) {
nr                307 fs/afs/rxrpc.c 	iov_iter_bvec(&msg->msg_iter, WRITE, bv, nr, bytes);
nr                328 fs/afs/rxrpc.c 	unsigned int bytes, nr, loop, offset;
nr                341 fs/afs/rxrpc.c 		nr = msg->msg_iter.nr_segs;
nr                345 fs/afs/rxrpc.c 		for (loop = 0; loop < nr; loop++)
nr                350 fs/afs/rxrpc.c 		first += nr;
nr                250 fs/afs/write.c 		pv.nr = find_get_pages_contig(mapping, first, count, pv.pages);
nr                251 fs/afs/write.c 		ASSERTCMP(pv.nr, ==, count);
nr                293 fs/afs/write.c 		pv.nr = find_get_pages_contig(mapping, first, count, pv.pages);
nr                294 fs/afs/write.c 		ASSERTCMP(pv.nr, ==, count);
nr                332 fs/afs/write.c 		pv.nr = find_get_pages_contig(vnode->vfs_inode.i_mapping,
nr                334 fs/afs/write.c 		ASSERTCMP(pv.nr, ==, count);
nr                 60 fs/aio.c       	unsigned	nr;	/* number of io_events */
nr                 84 fs/aio.c       	unsigned		nr;
nr                338 fs/aio.c       	for (i = 0; i < table->nr; i++) {
nr                545 fs/aio.c       	ring->nr = nr_events;	/* user copy */
nr                645 fs/aio.c       			for (i = 0; i < table->nr; i++)
nr                661 fs/aio.c       		new_nr = (table ? table->nr : 1) * 4;
nr                669 fs/aio.c       		table->nr = new_nr;
nr                676 fs/aio.c       		} else if (table->nr > old->nr) {
nr                678 fs/aio.c       			       old->nr * sizeof(struct kioctx *));
nr                689 fs/aio.c       static void aio_nr_sub(unsigned nr)
nr                692 fs/aio.c       	if (WARN_ON(aio_nr - nr > aio_nr))
nr                695 fs/aio.c       		aio_nr -= nr;
nr                870 fs/aio.c       	atomic_set(&wait.count, table->nr);
nr                874 fs/aio.c       	for (i = 0; i < table->nr; ++i) {
nr                903 fs/aio.c       static void put_reqs_available(struct kioctx *ctx, unsigned nr)
nr                910 fs/aio.c       	kcpu->reqs_available += nr;
nr               1062 fs/aio.c       	if (!table || id >= table->nr)
nr               1065 fs/aio.c       	id = array_index_nospec(id, table->nr);
nr               1175 fs/aio.c       				 struct io_event __user *event, long nr)
nr               1211 fs/aio.c       	while (ret < nr) {
nr               1224 fs/aio.c       		avail = min(avail, nr - ret);
nr               1254 fs/aio.c       static bool aio_read_events(struct kioctx *ctx, long min_nr, long nr,
nr               1257 fs/aio.c       	long ret = aio_read_events_ring(ctx, event + *i, nr - *i);
nr               1271 fs/aio.c       static long read_events(struct kioctx *ctx, long min_nr, long nr,
nr               1292 fs/aio.c       		aio_read_events(ctx, min_nr, nr, event, &ret);
nr               1295 fs/aio.c       				aio_read_events(ctx, min_nr, nr, event, &ret),
nr               1915 fs/aio.c       SYSCALL_DEFINE3(io_submit, aio_context_t, ctx_id, long, nr,
nr               1923 fs/aio.c       	if (unlikely(nr < 0))
nr               1932 fs/aio.c       	if (nr > ctx->nr_events)
nr               1933 fs/aio.c       		nr = ctx->nr_events;
nr               1935 fs/aio.c       	if (nr > AIO_PLUG_THRESHOLD)
nr               1937 fs/aio.c       	for (i = 0; i < nr; i++) {
nr               1949 fs/aio.c       	if (nr > AIO_PLUG_THRESHOLD)
nr               1958 fs/aio.c       		       int, nr, compat_uptr_t __user *, iocbpp)
nr               1965 fs/aio.c       	if (unlikely(nr < 0))
nr               1974 fs/aio.c       	if (nr > ctx->nr_events)
nr               1975 fs/aio.c       		nr = ctx->nr_events;
nr               1977 fs/aio.c       	if (nr > AIO_PLUG_THRESHOLD)
nr               1979 fs/aio.c       	for (i = 0; i < nr; i++) {
nr               1991 fs/aio.c       	if (nr > AIO_PLUG_THRESHOLD)
nr               2054 fs/aio.c       		long nr,
nr               2063 fs/aio.c       		if (likely(min_nr <= nr && min_nr >= 0))
nr               2064 fs/aio.c       			ret = read_events(ioctx, min_nr, nr, events, until);
nr               2087 fs/aio.c       		long, nr,
nr               2097 fs/aio.c       	ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL);
nr               2113 fs/aio.c       		long, nr,
nr               2133 fs/aio.c       	ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL);
nr               2148 fs/aio.c       		long, nr,
nr               2169 fs/aio.c       	ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &ts : NULL);
nr               2185 fs/aio.c       		__s32, nr,
nr               2195 fs/aio.c       	ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &t : NULL);
nr               2215 fs/aio.c       		compat_long_t, nr,
nr               2235 fs/aio.c       	ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &t : NULL);
nr               2250 fs/aio.c       		compat_long_t, nr,
nr               2270 fs/aio.c       	ret = do_io_getevents(ctx_id, min_nr, nr, events, timeout ? &t : NULL);
nr                389 fs/binfmt_elf.c static unsigned long total_mapping_size(const struct elf_phdr *cmds, int nr)
nr                393 fs/binfmt_elf.c 	for (i = 0; i < nr; i++) {
nr                509 fs/binfmt_elf_fdpic.c 	int nr;	/* reset for each csp adjustment */
nr                610 fs/binfmt_elf_fdpic.c 		__put_user((id), &ent[nr]._id);				\
nr                611 fs/binfmt_elf_fdpic.c 		__put_user((val), &ent[nr]._val);			\
nr                612 fs/binfmt_elf_fdpic.c 		nr++;							\
nr                615 fs/binfmt_elf_fdpic.c 	nr = 0;
nr                619 fs/binfmt_elf_fdpic.c 		nr = 0;
nr                626 fs/binfmt_elf_fdpic.c 		nr = 0;
nr                633 fs/binfmt_elf_fdpic.c 		nr = 0;
nr                638 fs/binfmt_elf_fdpic.c 	nr = 0;
nr                660 fs/binfmt_elf_fdpic.c 	nr = 0;
nr               1530 fs/btrfs/block-group.c 	int i, nr, ret;
nr               1544 fs/btrfs/block-group.c 				       bytenr, &logical, &nr, &stripe_len);
nr               1548 fs/btrfs/block-group.c 		while (nr--) {
nr               1551 fs/btrfs/block-group.c 			if (logical[nr] > cache->key.objectid +
nr               1555 fs/btrfs/block-group.c 			if (logical[nr] + stripe_len <= cache->key.objectid)
nr               1558 fs/btrfs/block-group.c 			start = logical[nr];
nr               1561 fs/btrfs/block-group.c 				len = (logical[nr] + stripe_len) - start;
nr                222 fs/btrfs/check-integrity.c 	u32 nr;
nr                972 fs/btrfs/check-integrity.c 			sf->nr = btrfs_stack_header_nritems(&leafhdr->header);
nr                976 fs/btrfs/check-integrity.c 				       sf->block_ctx->start, sf->nr,
nr                989 fs/btrfs/check-integrity.c 		if (sf->i < sf->nr) {
nr               1095 fs/btrfs/check-integrity.c 			sf->nr = btrfs_stack_header_nritems(&nodehdr->header);
nr               1100 fs/btrfs/check-integrity.c 				       nodehdr->header.level, sf->nr,
nr               1113 fs/btrfs/check-integrity.c 		if (sf->i < sf->nr) {
nr               2222 fs/btrfs/ctree.c 	u32 nr;
nr               2245 fs/btrfs/ctree.c 	nr = slot;
nr               2249 fs/btrfs/ctree.c 			if (nr == 0)
nr               2251 fs/btrfs/ctree.c 			nr--;
nr               2253 fs/btrfs/ctree.c 			nr++;
nr               2254 fs/btrfs/ctree.c 			if (nr >= nritems)
nr               2258 fs/btrfs/ctree.c 			btrfs_node_key(node, &disk_key, nr);
nr               2262 fs/btrfs/ctree.c 		search = btrfs_node_blockptr(node, nr);
nr               3581 fs/btrfs/ctree.c static int leaf_space_used(struct extent_buffer *l, int start, int nr)
nr               3588 fs/btrfs/ctree.c 	int end = min(nritems, start + nr) - 1;
nr               3590 fs/btrfs/ctree.c 	if (!nr)
nr               3598 fs/btrfs/ctree.c 	data_len += sizeof(struct btrfs_item) * nr;
nr               3645 fs/btrfs/ctree.c 	u32 nr;
nr               3651 fs/btrfs/ctree.c 		nr = 0;
nr               3653 fs/btrfs/ctree.c 		nr = max_t(u32, 1, min_slot);
nr               3660 fs/btrfs/ctree.c 	while (i >= nr) {
nr               3871 fs/btrfs/ctree.c 	u32 nr;
nr               3878 fs/btrfs/ctree.c 		nr = min(right_nritems, max_slot);
nr               3880 fs/btrfs/ctree.c 		nr = min(right_nritems - 1, max_slot);
nr               3882 fs/btrfs/ctree.c 	for (i = 0; i < nr; i++) {
nr               4747 fs/btrfs/ctree.c 			    u32 total_data, u32 total_size, int nr)
nr               4801 fs/btrfs/ctree.c 		memmove_extent_buffer(leaf, btrfs_item_nr_offset(slot + nr),
nr               4813 fs/btrfs/ctree.c 	for (i = 0; i < nr; i++) {
nr               4823 fs/btrfs/ctree.c 	btrfs_set_header_nritems(leaf, nritems + nr);
nr               4840 fs/btrfs/ctree.c 			    int nr)
nr               4848 fs/btrfs/ctree.c 	for (i = 0; i < nr; i++)
nr               4851 fs/btrfs/ctree.c 	total_size = total_data + (nr * sizeof(struct btrfs_item));
nr               4862 fs/btrfs/ctree.c 			       total_data, total_size, nr);
nr               4974 fs/btrfs/ctree.c 		    struct btrfs_path *path, int slot, int nr)
nr               4987 fs/btrfs/ctree.c 	last_off = btrfs_item_offset_nr(leaf, slot + nr - 1);
nr               4989 fs/btrfs/ctree.c 	for (i = 0; i < nr; i++)
nr               4994 fs/btrfs/ctree.c 	if (slot + nr != nritems) {
nr               5004 fs/btrfs/ctree.c 		for (i = slot + nr; i < nritems; i++) {
nr               5014 fs/btrfs/ctree.c 			      btrfs_item_nr_offset(slot + nr),
nr               5016 fs/btrfs/ctree.c 			      (nritems - slot - nr));
nr               5018 fs/btrfs/ctree.c 	btrfs_set_header_nritems(leaf, nritems - nr);
nr               5019 fs/btrfs/ctree.c 	nritems -= nr;
nr               1494 fs/btrfs/ctree.h 						   int nr)
nr               1498 fs/btrfs/ctree.h 	offset += nr * sizeof(struct btrfs_stripe);
nr               1502 fs/btrfs/ctree.h static inline char *btrfs_stripe_dev_uuid_nr(struct btrfs_chunk *c, int nr)
nr               1504 fs/btrfs/ctree.h 	return btrfs_stripe_dev_uuid(btrfs_stripe_nr(c, nr));
nr               1508 fs/btrfs/ctree.h 					 struct btrfs_chunk *c, int nr)
nr               1510 fs/btrfs/ctree.h 	return btrfs_stripe_offset(eb, btrfs_stripe_nr(c, nr));
nr               1514 fs/btrfs/ctree.h 					 struct btrfs_chunk *c, int nr)
nr               1516 fs/btrfs/ctree.h 	return btrfs_stripe_devid(eb, btrfs_stripe_nr(c, nr));
nr               1669 fs/btrfs/ctree.h static inline u64 btrfs_node_blockptr(struct extent_buffer *eb, int nr)
nr               1673 fs/btrfs/ctree.h 		sizeof(struct btrfs_key_ptr) * nr;
nr               1678 fs/btrfs/ctree.h 					   int nr, u64 val)
nr               1682 fs/btrfs/ctree.h 		sizeof(struct btrfs_key_ptr) * nr;
nr               1686 fs/btrfs/ctree.h static inline u64 btrfs_node_ptr_generation(struct extent_buffer *eb, int nr)
nr               1690 fs/btrfs/ctree.h 		sizeof(struct btrfs_key_ptr) * nr;
nr               1695 fs/btrfs/ctree.h 						 int nr, u64 val)
nr               1699 fs/btrfs/ctree.h 		sizeof(struct btrfs_key_ptr) * nr;
nr               1703 fs/btrfs/ctree.h static inline unsigned long btrfs_node_key_ptr_offset(int nr)
nr               1706 fs/btrfs/ctree.h 		sizeof(struct btrfs_key_ptr) * nr;
nr               1710 fs/btrfs/ctree.h 		    struct btrfs_disk_key *disk_key, int nr);
nr               1713 fs/btrfs/ctree.h 				      struct btrfs_disk_key *disk_key, int nr)
nr               1716 fs/btrfs/ctree.h 	ptr = btrfs_node_key_ptr_offset(nr);
nr               1727 fs/btrfs/ctree.h static inline unsigned long btrfs_item_nr_offset(int nr)
nr               1730 fs/btrfs/ctree.h 		sizeof(struct btrfs_item) * nr;
nr               1733 fs/btrfs/ctree.h static inline struct btrfs_item *btrfs_item_nr(int nr)
nr               1735 fs/btrfs/ctree.h 	return (struct btrfs_item *)btrfs_item_nr_offset(nr);
nr               1744 fs/btrfs/ctree.h static inline u32 btrfs_item_end_nr(const struct extent_buffer *eb, int nr)
nr               1746 fs/btrfs/ctree.h 	return btrfs_item_end(eb, btrfs_item_nr(nr));
nr               1749 fs/btrfs/ctree.h static inline u32 btrfs_item_offset_nr(const struct extent_buffer *eb, int nr)
nr               1751 fs/btrfs/ctree.h 	return btrfs_item_offset(eb, btrfs_item_nr(nr));
nr               1754 fs/btrfs/ctree.h static inline u32 btrfs_item_size_nr(const struct extent_buffer *eb, int nr)
nr               1756 fs/btrfs/ctree.h 	return btrfs_item_size(eb, btrfs_item_nr(nr));
nr               1760 fs/btrfs/ctree.h 			   struct btrfs_disk_key *disk_key, int nr)
nr               1762 fs/btrfs/ctree.h 	struct btrfs_item *item = btrfs_item_nr(nr);
nr               1767 fs/btrfs/ctree.h 			       struct btrfs_disk_key *disk_key, int nr)
nr               1769 fs/btrfs/ctree.h 	struct btrfs_item *item = btrfs_item_nr(nr);
nr               1853 fs/btrfs/ctree.h 					 struct btrfs_key *key, int nr)
nr               1856 fs/btrfs/ctree.h 	btrfs_node_key(eb, &disk_key, nr);
nr               1861 fs/btrfs/ctree.h 					 struct btrfs_key *key, int nr)
nr               1864 fs/btrfs/ctree.h 	btrfs_item_key(eb, &disk_key, nr);
nr               2172 fs/btrfs/ctree.h 	u32 nr = btrfs_header_nritems(leaf);
nr               2174 fs/btrfs/ctree.h 	if (nr == 0)
nr               2176 fs/btrfs/ctree.h 	return btrfs_item_offset_nr(leaf, nr - 1);
nr               2572 fs/btrfs/ctree.h 		   struct btrfs_path *path, int slot, int nr);
nr               2582 fs/btrfs/ctree.h 			    u32 total_data, u32 total_size, int nr);
nr               2589 fs/btrfs/ctree.h 			     int nr);
nr               2841 fs/btrfs/ctree.h int btrfs_start_delalloc_roots(struct btrfs_fs_info *fs_info, int nr);
nr               1144 fs/btrfs/delayed-inode.c static int __btrfs_run_delayed_items(struct btrfs_trans_handle *trans, int nr)
nr               1152 fs/btrfs/delayed-inode.c 	bool count = (nr > 0);
nr               1168 fs/btrfs/delayed-inode.c 	while (curr_node && (!count || (count && nr--))) {
nr               1196 fs/btrfs/delayed-inode.c int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, int nr)
nr               1198 fs/btrfs/delayed-inode.c 	return __btrfs_run_delayed_items(trans, nr);
nr               1308 fs/btrfs/delayed-inode.c 	int nr;
nr               1363 fs/btrfs/delayed-inode.c 	} while ((async_work->nr == 0 && total_done < BTRFS_DELAYED_WRITEBACK)
nr               1364 fs/btrfs/delayed-inode.c 		 || total_done < async_work->nr);
nr               1374 fs/btrfs/delayed-inode.c 				     struct btrfs_fs_info *fs_info, int nr)
nr               1385 fs/btrfs/delayed-inode.c 	async_work->nr = nr;
nr                100 fs/btrfs/delayed-inode.h int btrfs_run_delayed_items_nr(struct btrfs_trans_handle *trans, int nr);
nr                 79 fs/btrfs/delayed-ref.c void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr)
nr                 82 fs/btrfs/delayed-ref.c 	u64 num_bytes = btrfs_calc_insert_metadata_size(fs_info, nr);
nr                367 fs/btrfs/delayed-ref.h void btrfs_delayed_refs_rsv_release(struct btrfs_fs_info *fs_info, int nr);
nr               1982 fs/btrfs/extent-tree.c 					     unsigned long nr)
nr               2050 fs/btrfs/extent-tree.c 	} while ((nr != -1 && count < nr) || locked_ref);
nr               3074 fs/btrfs/extent_io.c 	int nr = 0;
nr               3245 fs/btrfs/extent_io.c 			nr++;
nr               3256 fs/btrfs/extent_io.c 	if (!nr) {
nr               3431 fs/btrfs/extent_io.c 	int nr = 0;
nr               3510 fs/btrfs/extent_io.c 				nr++;
nr               3538 fs/btrfs/extent_io.c 		nr++;
nr               3541 fs/btrfs/extent_io.c 	*nr_ret = nr;
nr               3561 fs/btrfs/extent_io.c 	int nr = 0;
nr               3607 fs/btrfs/extent_io.c 				    i_size, nr_written, write_flags, &nr);
nr               3612 fs/btrfs/extent_io.c 	if (nr == 0) {
nr               4340 fs/btrfs/extent_io.c 	int nr = 0;
nr               4346 fs/btrfs/extent_io.c 		for (nr = 0; nr < ARRAY_SIZE(pagepool) && !list_empty(pages);) {
nr               4357 fs/btrfs/extent_io.c 			pagepool[nr++] = page;
nr               4361 fs/btrfs/extent_io.c 		if (nr) {
nr               4364 fs/btrfs/extent_io.c 			ASSERT(contig_start + nr * PAGE_SIZE - 1 == contig_end);
nr               4366 fs/btrfs/extent_io.c 			contiguous_readpages(tree, pagepool, nr, contig_start,
nr               5844 fs/btrfs/extent_io.c 				    unsigned long start, unsigned long nr,
nr               5849 fs/btrfs/extent_io.c 	size_t byte_offset = BIT_BYTE(nr);
nr               5870 fs/btrfs/extent_io.c 			   unsigned long nr)
nr               5877 fs/btrfs/extent_io.c 	eb_bitmap_offset(eb, start, nr, &i, &offset);
nr               5881 fs/btrfs/extent_io.c 	return 1U & (kaddr[offset] >> (nr & (BITS_PER_BYTE - 1)));
nr                 85 fs/btrfs/extent_io.h #define BIT_BYTE(nr) ((nr) / BITS_PER_BYTE)
nr                197 fs/btrfs/free-space-tree.c 	int done = 0, nr;
nr                221 fs/btrfs/free-space-tree.c 		nr = 0;
nr                245 fs/btrfs/free-space-tree.c 				nr++;
nr                252 fs/btrfs/free-space-tree.c 		ret = btrfs_del_items(trans, root, path, path->slots[0], nr);
nr                336 fs/btrfs/free-space-tree.c 	int done = 0, nr;
nr                360 fs/btrfs/free-space-tree.c 		nr = 0;
nr                390 fs/btrfs/free-space-tree.c 				nr++;
nr                397 fs/btrfs/free-space-tree.c 		ret = btrfs_del_items(trans, root, path, path->slots[0], nr);
nr               1188 fs/btrfs/free-space-tree.c 	int nr;
nr               1206 fs/btrfs/free-space-tree.c 		nr = btrfs_header_nritems(path->nodes[0]);
nr               1207 fs/btrfs/free-space-tree.c 		if (!nr)
nr               1211 fs/btrfs/free-space-tree.c 		ret = btrfs_del_items(trans, root, path, 0, nr);
nr               1322 fs/btrfs/free-space-tree.c 	int done = 0, nr;
nr               1352 fs/btrfs/free-space-tree.c 		nr = 0;
nr               1361 fs/btrfs/free-space-tree.c 				nr++;
nr               1369 fs/btrfs/free-space-tree.c 				nr++;
nr               1376 fs/btrfs/free-space-tree.c 		ret = btrfs_del_items(trans, root, path, path->slots[0], nr);
nr               10223 fs/btrfs/inode.c static int start_delalloc_inodes(struct btrfs_root *root, int nr, bool snapshot)
nr               10264 fs/btrfs/inode.c 		if (nr != -1 && ret >= nr)
nr               10301 fs/btrfs/inode.c int btrfs_start_delalloc_roots(struct btrfs_fs_info *fs_info, int nr)
nr               10315 fs/btrfs/inode.c 	while (!list_empty(&splice) && nr) {
nr               10324 fs/btrfs/inode.c 		ret = start_delalloc_inodes(root, nr, false);
nr               10329 fs/btrfs/inode.c 		if (nr != -1) {
nr               10330 fs/btrfs/inode.c 			nr -= ret;
nr               10331 fs/btrfs/inode.c 			WARN_ON(nr < 0);
nr                519 fs/btrfs/ordered-data.c u64 btrfs_wait_ordered_extents(struct btrfs_root *root, u64 nr,
nr                533 fs/btrfs/ordered-data.c 	while (!list_empty(&splice) && nr) {
nr                556 fs/btrfs/ordered-data.c 		if (nr != U64_MAX)
nr                557 fs/btrfs/ordered-data.c 			nr--;
nr                575 fs/btrfs/ordered-data.c u64 btrfs_wait_ordered_roots(struct btrfs_fs_info *fs_info, u64 nr,
nr                588 fs/btrfs/ordered-data.c 	while (!list_empty(&splice) && nr) {
nr                597 fs/btrfs/ordered-data.c 		done = btrfs_wait_ordered_extents(root, nr,
nr                603 fs/btrfs/ordered-data.c 		if (nr != U64_MAX) {
nr                604 fs/btrfs/ordered-data.c 			nr -= done;
nr                187 fs/btrfs/ordered-data.h u64 btrfs_wait_ordered_extents(struct btrfs_root *root, u64 nr,
nr                189 fs/btrfs/ordered-data.h u64 btrfs_wait_ordered_roots(struct btrfs_fs_info *fs_info, u64 nr,
nr                170 fs/btrfs/print-tree.c 	u32 type, nr;
nr                187 fs/btrfs/print-tree.c 	nr = btrfs_header_nritems(l);
nr                191 fs/btrfs/print-tree.c 		   btrfs_header_bytenr(l), btrfs_header_generation(l), nr,
nr                194 fs/btrfs/print-tree.c 	for (i = 0 ; i < nr ; i++) {
nr                327 fs/btrfs/print-tree.c 	int i; u32 nr;
nr                334 fs/btrfs/print-tree.c 	nr = btrfs_header_nritems(c);
nr                343 fs/btrfs/print-tree.c 		   nr, (u32)BTRFS_NODEPTRS_PER_BLOCK(fs_info) - nr,
nr                346 fs/btrfs/print-tree.c 	for (i = 0; i < nr; i++) {
nr                355 fs/btrfs/print-tree.c 	for (i = 0; i < nr; i++) {
nr                841 fs/btrfs/qgroup.c 	int nr = 0;
nr                858 fs/btrfs/qgroup.c 		nr = btrfs_header_nritems(leaf);
nr                859 fs/btrfs/qgroup.c 		if (!nr)
nr                867 fs/btrfs/qgroup.c 		ret = btrfs_del_items(trans, root, path, 0, nr);
nr               1640 fs/btrfs/qgroup.c 	int nr = btrfs_header_nritems(eb);
nr               1650 fs/btrfs/qgroup.c 	for (i = 0; i < nr; i++) {
nr               1695 fs/btrfs/qgroup.c 	int nr, slot;
nr               1703 fs/btrfs/qgroup.c 		nr = btrfs_header_nritems(eb);
nr               1706 fs/btrfs/qgroup.c 		if (slot >= nr || level == 0) {
nr                145 fs/btrfs/relocation.c 	unsigned int nr;
nr               3204 fs/btrfs/relocation.c 	int nr = 0;
nr               3220 fs/btrfs/relocation.c 	while (nr < cluster->nr) {
nr               3221 fs/btrfs/relocation.c 		start = cluster->boundary[nr] - offset;
nr               3222 fs/btrfs/relocation.c 		if (nr + 1 < cluster->nr)
nr               3223 fs/btrfs/relocation.c 			end = cluster->boundary[nr + 1] - 1 - offset;
nr               3239 fs/btrfs/relocation.c 		nr++;
nr               3297 fs/btrfs/relocation.c 	int nr = 0;
nr               3300 fs/btrfs/relocation.c 	if (!cluster->nr)
nr               3371 fs/btrfs/relocation.c 		if (nr < cluster->nr &&
nr               3372 fs/btrfs/relocation.c 		    page_start + offset == cluster->boundary[nr]) {
nr               3376 fs/btrfs/relocation.c 			nr++;
nr               3407 fs/btrfs/relocation.c 	WARN_ON(nr != cluster->nr);
nr               3419 fs/btrfs/relocation.c 	if (cluster->nr > 0 && extent_key->objectid != cluster->end + 1) {
nr               3423 fs/btrfs/relocation.c 		cluster->nr = 0;
nr               3426 fs/btrfs/relocation.c 	if (!cluster->nr)
nr               3429 fs/btrfs/relocation.c 		BUG_ON(cluster->nr >= MAX_EXTENTS);
nr               3431 fs/btrfs/relocation.c 	cluster->boundary[cluster->nr] = extent_key->objectid;
nr               3432 fs/btrfs/relocation.c 	cluster->nr++;
nr               3434 fs/btrfs/relocation.c 	if (cluster->nr >= MAX_EXTENTS) {
nr               3438 fs/btrfs/relocation.c 		cluster->nr = 0;
nr                341 fs/btrfs/space-info.c 	u64 nr;
nr                344 fs/btrfs/space-info.c 	nr = div64_u64(to_reclaim, bytes);
nr                345 fs/btrfs/space-info.c 	if (!nr)
nr                346 fs/btrfs/space-info.c 		nr = 1;
nr                347 fs/btrfs/space-info.c 	return nr;
nr                554 fs/btrfs/space-info.c 	int nr;
nr                561 fs/btrfs/space-info.c 			nr = calc_reclaim_items_nr(fs_info, num_bytes) * 2;
nr                563 fs/btrfs/space-info.c 			nr = -1;
nr                570 fs/btrfs/space-info.c 		ret = btrfs_run_delayed_items_nr(trans, nr);
nr                586 fs/btrfs/space-info.c 			nr = calc_reclaim_items_nr(fs_info, num_bytes);
nr                588 fs/btrfs/space-info.c 			nr = 0;
nr                589 fs/btrfs/space-info.c 		btrfs_run_delayed_refs(trans, nr);
nr                173 fs/btrfs/struct-funcs.c 		    struct btrfs_disk_key *disk_key, int nr)
nr                175 fs/btrfs/struct-funcs.c 	unsigned long ptr = btrfs_node_key_ptr_offset(nr);
nr               1448 fs/btrfs/tree-checker.c 	unsigned long nr = btrfs_header_nritems(node);
nr               1461 fs/btrfs/tree-checker.c 	if (nr == 0 || nr > BTRFS_NODEPTRS_PER_BLOCK(fs_info)) {
nr               1465 fs/btrfs/tree-checker.c 			   nr == 0 ? "small" : "large", nr,
nr               1470 fs/btrfs/tree-checker.c 	for (slot = 0; slot < nr - 1; slot++) {
nr               3957 fs/btrfs/tree-log.c 			       int start_slot, int nr, int inode_only,
nr               3977 fs/btrfs/tree-log.c 	ins_data = kmalloc(nr * sizeof(struct btrfs_key) +
nr               3978 fs/btrfs/tree-log.c 			   nr * sizeof(u32), GFP_NOFS);
nr               3983 fs/btrfs/tree-log.c 	ins_keys = (struct btrfs_key *)(ins_data + nr * sizeof(u32));
nr               3985 fs/btrfs/tree-log.c 	for (i = 0; i < nr; i++) {
nr               3990 fs/btrfs/tree-log.c 				       ins_keys, ins_sizes, nr);
nr               3996 fs/btrfs/tree-log.c 	for (i = 0; i < nr; i++, dst_path->slots[0]++) {
nr               6340 fs/btrfs/volumes.c 	int i, j, nr = 0;
nr               6380 fs/btrfs/volumes.c 		WARN_ON(nr >= map->num_stripes);
nr               6381 fs/btrfs/volumes.c 		for (j = 0; j < nr; j++) {
nr               6385 fs/btrfs/volumes.c 		if (j == nr) {
nr               6386 fs/btrfs/volumes.c 			WARN_ON(nr >= map->num_stripes);
nr               6387 fs/btrfs/volumes.c 			buf[nr++] = bytenr;
nr               6392 fs/btrfs/volumes.c 	*naddrs = nr;
nr               2233 fs/buffer.c    	int nr, i;
nr               2243 fs/buffer.c    	nr = 0;
nr               2273 fs/buffer.c    		arr[nr++] = bh;
nr               2279 fs/buffer.c    	if (!nr) {
nr               2291 fs/buffer.c    	for (i = 0; i < nr; i++) {
nr               2302 fs/buffer.c    	for (i = 0; i < nr; i++) {
nr               3119 fs/buffer.c    void ll_rw_block(int op, int op_flags,  int nr, struct buffer_head *bhs[])
nr               3123 fs/buffer.c    	for (i = 0; i < nr; i++) {
nr               3335 fs/buffer.c    	int nr;			/* Number of live bh's */
nr               3350 fs/buffer.c    		tot += per_cpu(bh_accounting, i).nr;
nr               3360 fs/buffer.c    		__this_cpu_inc(bh_accounting.nr);
nr               3373 fs/buffer.c    	__this_cpu_dec(bh_accounting.nr);
nr               3388 fs/buffer.c    	this_cpu_add(bh_accounting.nr, per_cpu(bh_accounting, cpu).nr);
nr               3389 fs/buffer.c    	per_cpu(bh_accounting, cpu).nr = 0;
nr               1015 fs/ceph/addr.c 			pvec.nr = n;
nr               1145 fs/ceph/addr.c 		dout("pagevec_release on %d pages (%p)\n", (int)pvec.nr,
nr               1146 fs/ceph/addr.c 		     pvec.nr ? pvec.pages[0] : NULL);
nr               1161 fs/ceph/addr.c 			unsigned i, nr;
nr               1164 fs/ceph/addr.c 			       (nr = pagevec_lookup_tag(&pvec, mapping, &index,
nr               1166 fs/ceph/addr.c 				for (i = 0; i < nr; i++) {
nr               2960 fs/ceph/caps.c void ceph_put_wrbuffer_cap_refs(struct ceph_inode_info *ci, int nr,
nr               2972 fs/ceph/caps.c 	ci->i_wrbuffer_ref -= nr;
nr               2979 fs/ceph/caps.c 		ci->i_wrbuffer_ref_head -= nr;
nr               2990 fs/ceph/caps.c 		     ci->i_wrbuffer_ref+nr, ci->i_wrbuffer_ref_head+nr,
nr               3001 fs/ceph/caps.c 		capsnap->dirty_pages -= nr;
nr               3016 fs/ceph/caps.c 		     ci->i_wrbuffer_ref+nr, capsnap->dirty_pages + nr,
nr                488 fs/ceph/dir.c  		int step, nr = rinfo->dir_nr;
nr                489 fs/ceph/dir.c  		while (nr > 0) {
nr                490 fs/ceph/dir.c  			step = nr >> 1;
nr                493 fs/ceph/dir.c  				nr -= step + 1;
nr                495 fs/ceph/dir.c  				nr = step;
nr               2014 fs/ceph/mds_client.c void ceph_reclaim_caps_nr(struct ceph_mds_client *mdsc, int nr)
nr               2017 fs/ceph/mds_client.c 	if (!nr)
nr               2019 fs/ceph/mds_client.c 	val = atomic_add_return(nr, &mdsc->cap_reclaim_pending);
nr                492 fs/ceph/mds_client.h extern void ceph_reclaim_caps_nr(struct ceph_mds_client *mdsc, int nr);
nr               1060 fs/ceph/super.h extern void ceph_put_wrbuffer_cap_refs(struct ceph_inode_info *ci, int nr,
nr                343 fs/coredump.c  	int nr = 0;
nr                355 fs/coredump.c  			nr++;
nr                359 fs/coredump.c  	return nr;
nr                367 fs/coredump.c  	int nr = -EAGAIN;
nr                373 fs/coredump.c  		nr = zap_process(tsk, exit_code, 0);
nr                377 fs/coredump.c  	if (unlikely(nr < 0))
nr                378 fs/coredump.c  		return nr;
nr                381 fs/coredump.c  	if (atomic_read(&mm->mm_users) == nr + 1)
nr                425 fs/coredump.c  				nr += zap_process(p, exit_code,
nr                434 fs/coredump.c  	atomic_set(&core_state->nr_threads, nr);
nr                435 fs/coredump.c  	return nr;
nr                827 fs/coredump.c  int dump_emit(struct coredump_params *cprm, const void *addr, int nr)
nr                832 fs/coredump.c  	if (cprm->written + nr > cprm->limit)
nr                834 fs/coredump.c  	while (nr) {
nr                837 fs/coredump.c  		n = __kernel_write(file, addr, nr, &pos);
nr                843 fs/coredump.c  		nr -= n;
nr                849 fs/coredump.c  int dump_skip(struct coredump_params *cprm, size_t nr)
nr                855 fs/coredump.c  		    file->f_op->llseek(file, nr, SEEK_CUR) < 0)
nr                857 fs/coredump.c  		cprm->pos += nr;
nr                860 fs/coredump.c  		while (nr > PAGE_SIZE) {
nr                863 fs/coredump.c  			nr -= PAGE_SIZE;
nr                865 fs/coredump.c  		return dump_emit(cprm, zeroes, nr);
nr                 34 fs/erofs/decompressor.c 	const unsigned int nr =
nr                 43 fs/erofs/decompressor.c 	for (i = j = 0; i < nr; ++i, ++j) {
nr                147 fs/erofs/decompressor.c 		const uint nr = PAGE_ALIGN(rq->pageofs_out +
nr                151 fs/erofs/decompressor.c 		    rq->out[nr - 1] != rq->in[0] ||
nr                206 fs/erofs/internal.h #define blknr_to_addr(nr)       ((erofs_off_t)(nr) * EROFS_BLKSIZ)
nr                268 fs/erofs/utils.c 	unsigned long nr = sc->nr_to_scan;
nr                297 fs/erofs/utils.c 		freed += erofs_shrink_workstation(sbi, nr - freed, false);
nr                310 fs/erofs/utils.c 		if (freed >= nr)
nr                992 fs/erofs/zdata.c 					       unsigned int nr,
nr               1009 fs/erofs/zdata.c 	page = READ_ONCE(pcl->compressed_pages[nr]);
nr               1061 fs/erofs/zdata.c 		WRITE_ONCE(pcl->compressed_pages[nr], page);
nr               1097 fs/erofs/zdata.c 	if (oldpage != cmpxchg(&pcl->compressed_pages[nr], oldpage, page)) {
nr               1104 fs/erofs/zdata.c 	if (add_to_page_cache_lru(page, mc, index + nr, gfp)) {
nr               1362 fs/erofs/zdata.c 					    unsigned int nr)
nr               1364 fs/erofs/zdata.c 	return nr <= sbi->max_sync_decompress_pages;
nr                 34 fs/erofs/zpvec.h 	unsigned int nr, index;
nr                 51 fs/erofs/zpvec.h 			       unsigned int nr)
nr                 59 fs/erofs/zpvec.h 	for (index = 0; index < nr; ++index) {
nr                 66 fs/erofs/zpvec.h 	DBG_BUGON(nr >= ctor->nr);
nr                 74 fs/erofs/zpvec.h 	struct page *next = z_erofs_pagevec_ctor_next_page(ctor, ctor->nr);
nr                 83 fs/erofs/zpvec.h 	ctor->nr = PAGE_SIZE / sizeof(struct page *);
nr                 88 fs/erofs/zpvec.h 					     unsigned int nr,
nr                 92 fs/erofs/zpvec.h 	ctor->nr = nr;
nr                 96 fs/erofs/zpvec.h 	if (i >= nr) {
nr                 97 fs/erofs/zpvec.h 		i -= nr;
nr                 99 fs/erofs/zpvec.h 		while (i > ctor->nr) {
nr                100 fs/erofs/zpvec.h 			i -= ctor->nr;
nr                115 fs/erofs/zpvec.h 		if (ctor->index + 1 == ctor->nr)
nr                118 fs/erofs/zpvec.h 	if (ctor->index >= ctor->nr)
nr                140 fs/erofs/zpvec.h 	if (ctor->index >= ctor->nr) {
nr                401 fs/exec.c      static const char __user *get_user_arg_ptr(struct user_arg_ptr argv, int nr)
nr                409 fs/exec.c      		if (get_user(compat, argv.ptr.compat + nr))
nr                416 fs/exec.c      	if (get_user(native, argv.ptr.native + nr))
nr               1110 fs/ext2/inode.c 	unsigned long nr;
nr               1113 fs/ext2/inode.c 		nr = le32_to_cpu(*p);
nr               1114 fs/ext2/inode.c 		if (nr) {
nr               1119 fs/ext2/inode.c 			else if (block_to_free == nr - count)
nr               1125 fs/ext2/inode.c 				block_to_free = nr;
nr               1150 fs/ext2/inode.c 	unsigned long nr;
nr               1155 fs/ext2/inode.c 			nr = le32_to_cpu(*p);
nr               1156 fs/ext2/inode.c 			if (!nr)
nr               1159 fs/ext2/inode.c 			bh = sb_bread(inode->i_sb, nr);
nr               1167 fs/ext2/inode.c 					inode->i_ino, nr);
nr               1175 fs/ext2/inode.c 			ext2_free_blocks(inode, nr, 1);
nr               1191 fs/ext2/inode.c 	__le32 nr = 0;
nr               1218 fs/ext2/inode.c 	partial = ext2_find_shared(inode, n, offsets, chain, &nr);
nr               1220 fs/ext2/inode.c 	if (nr) {
nr               1225 fs/ext2/inode.c 		ext2_free_branches(inode, &nr, &nr+1, (chain+n-1) - partial);
nr               1241 fs/ext2/inode.c 			nr = i_data[EXT2_IND_BLOCK];
nr               1242 fs/ext2/inode.c 			if (nr) {
nr               1245 fs/ext2/inode.c 				ext2_free_branches(inode, &nr, &nr+1, 1);
nr               1249 fs/ext2/inode.c 			nr = i_data[EXT2_DIND_BLOCK];
nr               1250 fs/ext2/inode.c 			if (nr) {
nr               1253 fs/ext2/inode.c 				ext2_free_branches(inode, &nr, &nr+1, 2);
nr               1257 fs/ext2/inode.c 			nr = i_data[EXT2_TIND_BLOCK];
nr               1258 fs/ext2/inode.c 			if (nr) {
nr               1261 fs/ext2/inode.c 				ext2_free_branches(inode, &nr, &nr+1, 3);
nr                805 fs/ext2/super.c 				    int nr)
nr                814 fs/ext2/super.c 	    nr < first_meta_bg)
nr                815 fs/ext2/super.c 		return (logic_sb_block + nr + 1);
nr                816 fs/ext2/super.c 	bg = sbi->s_desc_per_block * nr;
nr               1536 fs/ext4/extents_status.c 	unsigned long nr;
nr               1540 fs/ext4/extents_status.c 	nr = percpu_counter_read_positive(&sbi->s_es_stats.es_stats_shk_cnt);
nr               1541 fs/ext4/extents_status.c 	trace_ext4_es_shrink_count(sbi->s_sb, sc->nr_to_scan, nr);
nr               1542 fs/ext4/extents_status.c 	return nr;
nr                907 fs/ext4/indirect.c 	ext4_fsblk_t nr;		    /* Current block # */
nr                922 fs/ext4/indirect.c 		nr = le32_to_cpu(*p);
nr                923 fs/ext4/indirect.c 		if (nr) {
nr                926 fs/ext4/indirect.c 				block_to_free = nr;
nr                929 fs/ext4/indirect.c 			} else if (nr == block_to_free + count) {
nr                937 fs/ext4/indirect.c 				block_to_free = nr;
nr                987 fs/ext4/indirect.c 	ext4_fsblk_t nr;
nr                998 fs/ext4/indirect.c 			nr = le32_to_cpu(*p);
nr                999 fs/ext4/indirect.c 			if (!nr)
nr               1003 fs/ext4/indirect.c 						   nr, 1)) {
nr               1007 fs/ext4/indirect.c 						 (unsigned long) nr, depth);
nr               1012 fs/ext4/indirect.c 			bh = sb_bread(inode->i_sb, nr);
nr               1019 fs/ext4/indirect.c 				EXT4_ERROR_INODE_BLOCK(inode, nr,
nr               1067 fs/ext4/indirect.c 			ext4_free_blocks(handle, inode, NULL, nr, 1,
nr               1103 fs/ext4/indirect.c 	__le32 nr = 0;
nr               1142 fs/ext4/indirect.c 	partial = ext4_find_shared(inode, n, offsets, chain, &nr);
nr               1144 fs/ext4/indirect.c 	if (nr) {
nr               1148 fs/ext4/indirect.c 					   &nr, &nr+1, (chain+n-1) - partial);
nr               1175 fs/ext4/indirect.c 		nr = i_data[EXT4_IND_BLOCK];
nr               1176 fs/ext4/indirect.c 		if (nr) {
nr               1177 fs/ext4/indirect.c 			ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
nr               1182 fs/ext4/indirect.c 		nr = i_data[EXT4_DIND_BLOCK];
nr               1183 fs/ext4/indirect.c 		if (nr) {
nr               1184 fs/ext4/indirect.c 			ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
nr               1189 fs/ext4/indirect.c 		nr = i_data[EXT4_TIND_BLOCK];
nr               1190 fs/ext4/indirect.c 		if (nr) {
nr               1191 fs/ext4/indirect.c 			ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);
nr               1221 fs/ext4/indirect.c 	__le32 nr = 0, nr2 = 0;
nr               1261 fs/ext4/indirect.c 		partial = p = ext4_find_shared(inode, n, offsets, chain, &nr);
nr               1262 fs/ext4/indirect.c 		if (nr) {
nr               1266 fs/ext4/indirect.c 					   &nr, &nr+1, (chain+n-1) - partial);
nr               1326 fs/ext4/indirect.c 	partial = p = ext4_find_shared(inode, n, offsets, chain, &nr);
nr               1330 fs/ext4/indirect.c 	if (nr) {
nr               1346 fs/ext4/indirect.c 						   &nr, &nr+1,
nr               1429 fs/ext4/indirect.c 		nr = i_data[EXT4_IND_BLOCK];
nr               1430 fs/ext4/indirect.c 		if (nr) {
nr               1431 fs/ext4/indirect.c 			ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 1);
nr               1438 fs/ext4/indirect.c 		nr = i_data[EXT4_DIND_BLOCK];
nr               1439 fs/ext4/indirect.c 		if (nr) {
nr               1440 fs/ext4/indirect.c 			ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 2);
nr               1447 fs/ext4/indirect.c 		nr = i_data[EXT4_TIND_BLOCK];
nr               1448 fs/ext4/indirect.c 		if (nr) {
nr               1449 fs/ext4/indirect.c 			ext4_free_branches(handle, inode, NULL, &nr, &nr+1, 3);
nr                173 fs/ext4/move_extent.c 	int i, err,  nr = 0, partial = 0;
nr                208 fs/ext4/move_extent.c 		BUG_ON(nr >= MAX_BUF_PER_PAGE);
nr                209 fs/ext4/move_extent.c 		arr[nr++] = bh;
nr                212 fs/ext4/move_extent.c 	if (!nr)
nr                215 fs/ext4/move_extent.c 	for (i = 0; i < nr; i++) {
nr               1859 fs/ext4/resize.c 	ext4_fsblk_t nr;
nr               1909 fs/ext4/resize.c 		nr = le32_to_cpu(ei->i_data[EXT4_DIND_BLOCK]);
nr               1910 fs/ext4/resize.c 		ext4_free_blocks(handle, inode, NULL, nr, 1,
nr               2876 fs/ext4/super.c 				   ext4_fsblk_t logical_sb_block, int nr)
nr               2884 fs/ext4/super.c 	if (!ext4_has_feature_meta_bg(sb) || nr < first_meta_bg)
nr               2885 fs/ext4/super.c 		return logical_sb_block + nr + 1;
nr               2886 fs/ext4/super.c 	bg = sbi->s_desc_per_block * nr;
nr               2896 fs/ext4/super.c 	if (sb->s_blocksize == 1024 && nr == 0 &&
nr               2308 fs/f2fs/f2fs.h static inline int f2fs_test_bit(unsigned int nr, char *addr)
nr               2312 fs/f2fs/f2fs.h 	addr += (nr >> 3);
nr               2313 fs/f2fs/f2fs.h 	mask = 1 << (7 - (nr & 0x07));
nr               2317 fs/f2fs/f2fs.h static inline void f2fs_set_bit(unsigned int nr, char *addr)
nr               2321 fs/f2fs/f2fs.h 	addr += (nr >> 3);
nr               2322 fs/f2fs/f2fs.h 	mask = 1 << (7 - (nr & 0x07));
nr               2326 fs/f2fs/f2fs.h static inline void f2fs_clear_bit(unsigned int nr, char *addr)
nr               2330 fs/f2fs/f2fs.h 	addr += (nr >> 3);
nr               2331 fs/f2fs/f2fs.h 	mask = 1 << (7 - (nr & 0x07));
nr               2335 fs/f2fs/f2fs.h static inline int f2fs_test_and_set_bit(unsigned int nr, char *addr)
nr               2340 fs/f2fs/f2fs.h 	addr += (nr >> 3);
nr               2341 fs/f2fs/f2fs.h 	mask = 1 << (7 - (nr & 0x07));
nr               2347 fs/f2fs/f2fs.h static inline int f2fs_test_and_clear_bit(unsigned int nr, char *addr)
nr               2352 fs/f2fs/f2fs.h 	addr += (nr >> 3);
nr               2353 fs/f2fs/f2fs.h 	mask = 1 << (7 - (nr & 0x07));
nr               2359 fs/f2fs/f2fs.h static inline void f2fs_change_bit(unsigned int nr, char *addr)
nr               2363 fs/f2fs/f2fs.h 	addr += (nr >> 3);
nr               2364 fs/f2fs/f2fs.h 	mask = 1 << (7 - (nr & 0x07));
nr               1443 fs/f2fs/file.c 	pgoff_t nr, pg_start, pg_end, delta, idx;
nr               1487 fs/f2fs/file.c 		nr = idx - pg_start;
nr               1488 fs/f2fs/file.c 		if (nr > delta)
nr               1489 fs/f2fs/file.c 			nr = delta;
nr               1490 fs/f2fs/file.c 		idx -= nr;
nr               1496 fs/f2fs/file.c 					idx + delta, nr, false);
nr                202 fs/f2fs/node.c 		nid_t start, unsigned int nr, struct nat_entry **ep)
nr                204 fs/f2fs/node.c 	return radix_tree_gang_lookup(&nm_i->nat_root, (void **)ep, start, nr);
nr                280 fs/f2fs/node.c 		nid_t start, unsigned int nr, struct nat_entry_set **ep)
nr                283 fs/f2fs/node.c 							start, nr);
nr                485 fs/f2fs/node.c 	int nr = nr_shrink;
nr                510 fs/f2fs/node.c 	return nr - nr_shrink;
nr               2491 fs/f2fs/node.c 	int nr = nr_shrink;
nr               2512 fs/f2fs/node.c 	return nr - nr_shrink;
nr                113 fs/f2fs/segment.h #define f2fs_bitmap_size(nr)			\
nr                114 fs/f2fs/segment.h 	(BITS_TO_LONGS(nr) * sizeof(unsigned long))
nr                 78 fs/f2fs/shrinker.c 	unsigned long nr = sc->nr_to_scan;
nr                105 fs/f2fs/shrinker.c 		freed += f2fs_shrink_extent_tree(sbi, nr >> 1);
nr                108 fs/f2fs/shrinker.c 		if (freed < nr)
nr                109 fs/f2fs/shrinker.c 			freed += f2fs_try_to_free_nats(sbi, nr - freed);
nr                112 fs/f2fs/shrinker.c 		if (freed < nr)
nr                113 fs/f2fs/shrinker.c 			freed += f2fs_try_to_free_nids(sbi, nr - freed);
nr                119 fs/f2fs/shrinker.c 		if (freed >= nr)
nr                232 fs/fat/cache.c 	int nr;
nr                262 fs/fat/cache.c 			nr = -EIO;
nr                266 fs/fat/cache.c 		nr = fat_ent_read(inode, &fatent, *dclus);
nr                267 fs/fat/cache.c 		if (nr < 0)
nr                269 fs/fat/cache.c 		else if (nr == FAT_ENT_FREE) {
nr                273 fs/fat/cache.c 			nr = -EIO;
nr                275 fs/fat/cache.c 		} else if (nr == FAT_ENT_EOF) {
nr                280 fs/fat/cache.c 		*dclus = nr;
nr                284 fs/fat/cache.c 	nr = 0;
nr                288 fs/fat/cache.c 	return nr;
nr                 41 fs/file.c      #define BITBIT_NR(nr)	BITS_TO_LONGS(BITS_TO_LONGS(nr))
nr                 42 fs/file.c      #define BITBIT_SIZE(nr)	(BITBIT_NR(nr) * sizeof(long))
nr                 85 fs/file.c      static struct fdtable * alloc_fdtable(unsigned int nr)
nr                 97 fs/file.c      	nr /= (1024 / sizeof(struct file *));
nr                 98 fs/file.c      	nr = roundup_pow_of_two(nr + 1);
nr                 99 fs/file.c      	nr *= (1024 / sizeof(struct file *));
nr                108 fs/file.c      	if (unlikely(nr > sysctl_nr_open))
nr                109 fs/file.c      		nr = ((sysctl_nr_open - 1) | (BITS_PER_LONG - 1)) + 1;
nr                114 fs/file.c      	fdt->max_fds = nr;
nr                115 fs/file.c      	data = kvmalloc_array(nr, sizeof(struct file *), GFP_KERNEL_ACCOUNT);
nr                121 fs/file.c      				 2 * nr / BITS_PER_BYTE + BITBIT_SIZE(nr), L1_CACHE_BYTES),
nr                126 fs/file.c      	data += nr / BITS_PER_BYTE;
nr                128 fs/file.c      	data += nr / BITS_PER_BYTE;
nr                148 fs/file.c      static int expand_fdtable(struct files_struct *files, unsigned int nr)
nr                155 fs/file.c      	new_fdt = alloc_fdtable(nr);
nr                170 fs/file.c      	if (unlikely(new_fdt->max_fds <= nr)) {
nr                175 fs/file.c      	BUG_ON(nr < cur_fdt->max_fds);
nr                193 fs/file.c      static int expand_files(struct files_struct *files, unsigned int nr)
nr                204 fs/file.c      	if (nr < fdt->max_fds)
nr                208 fs/file.c      	if (nr >= sysctl_nr_open)
nr                221 fs/file.c      	expanded = expand_fdtable(files, nr);
nr                918 fs/fs-writeback.c int cgroup_writeback_by_id(u64 bdi_id, int memcg_id, unsigned long nr,
nr                959 fs/fs-writeback.c 	if (!nr) {
nr                964 fs/fs-writeback.c 		nr = dirty * 10 / 8;
nr                970 fs/fs-writeback.c 		work->nr_pages = nr;
nr               2450 fs/fs-writeback.c static void __writeback_inodes_sb_nr(struct super_block *sb, unsigned long nr,
nr               2460 fs/fs-writeback.c 		.nr_pages		= nr,
nr               2483 fs/fs-writeback.c 			    unsigned long nr,
nr               2486 fs/fs-writeback.c 	__writeback_inodes_sb_nr(sb, nr, reason, false);
nr               1204 fs/fscache/page.c 	for (loop = 0; loop < pagevec->nr; loop++)
nr               1584 fs/gfs2/glock.c static long gfs2_scan_glock_lru(int nr)
nr               1592 fs/gfs2/glock.c 	while ((nr-- >= 0) && !list_empty(&lru_list)) {
nr                120 fs/hpfs/alloc.c 	unsigned nr = (near & 0x3fff) & ~(n - 1);
nr                134 fs/hpfs/alloc.c 	if (!tstbits(bmp, nr, n + forward)) {
nr                135 fs/hpfs/alloc.c 		ret = bs + nr;
nr                138 fs/hpfs/alloc.c 	q = nr + n; b = 0;
nr                143 fs/hpfs/alloc.c 			if (q>>5 != nr>>5) {
nr                145 fs/hpfs/alloc.c 				q = nr & 0x1f;
nr                147 fs/hpfs/alloc.c 		} else if (q > nr) break;
nr                153 fs/hpfs/alloc.c 	nr >>= 5;
nr                155 fs/hpfs/alloc.c 	i = nr;
nr                178 fs/hpfs/alloc.c 	} while (i != nr);
nr                279 fs/hpfs/alloc.c 	unsigned nr = near;
nr                282 fs/hpfs/alloc.c 	if (nr < sbi->sb_dirband_start)
nr                283 fs/hpfs/alloc.c 		nr = sbi->sb_dirband_start;
nr                284 fs/hpfs/alloc.c 	if (nr >= sbi->sb_dirband_start + sbi->sb_dirband_size)
nr                285 fs/hpfs/alloc.c 		nr = sbi->sb_dirband_start + sbi->sb_dirband_size - 4;
nr                286 fs/hpfs/alloc.c 	nr -= sbi->sb_dirband_start;
nr                287 fs/hpfs/alloc.c 	nr >>= 2;
nr                288 fs/hpfs/alloc.c 	sec = alloc_in_bmp(s, (~0x3fff) | nr, 1, 0);
nr                284 fs/hugetlbfs/inode.c 		size_t nr, copied;
nr                287 fs/hugetlbfs/inode.c 		nr = huge_page_size(h);
nr                295 fs/hugetlbfs/inode.c 			nr = ((isize - 1) & ~huge_page_mask(h)) + 1;
nr                296 fs/hugetlbfs/inode.c 			if (nr <= offset)
nr                299 fs/hugetlbfs/inode.c 		nr = nr - offset;
nr                308 fs/hugetlbfs/inode.c 			copied = iov_iter_zero(nr, to);
nr                315 fs/hugetlbfs/inode.c 			copied = hugetlbfs_read_actor(page, offset, to, nr);
nr                320 fs/hugetlbfs/inode.c 		if (copied != nr && iov_iter_count(to)) {
nr                666 fs/io_uring.c  static void io_free_req_many(struct io_ring_ctx *ctx, void **reqs, int *nr)
nr                668 fs/io_uring.c  	if (*nr) {
nr                669 fs/io_uring.c  		kmem_cache_free_bulk(req_cachep, *nr, reqs);
nr                670 fs/io_uring.c  		percpu_ref_put_many(&ctx->refs, *nr);
nr                671 fs/io_uring.c  		*nr = 0;
nr               1356 fs/io_uring.c  		ssize_t nr;
nr               1369 fs/io_uring.c  			nr = file->f_op->read(file, iovec.iov_base,
nr               1372 fs/io_uring.c  			nr = file->f_op->write(file, iovec.iov_base,
nr               1379 fs/io_uring.c  		if (nr < 0) {
nr               1381 fs/io_uring.c  				ret = nr;
nr               1384 fs/io_uring.c  		ret += nr;
nr               1385 fs/io_uring.c  		if (nr != iovec.iov_len)
nr               1387 fs/io_uring.c  		iov_iter_advance(iter, nr);
nr               2680 fs/io_uring.c  static int io_submit_sqes(struct io_ring_ctx *ctx, unsigned int nr,
nr               2689 fs/io_uring.c  	if (nr > IO_PLUG_THRESHOLD) {
nr               2690 fs/io_uring.c  		io_submit_state_start(&state, ctx, nr);
nr               2694 fs/io_uring.c  	for (i = 0; i < nr; i++) {
nr               3100 fs/io_uring.c  static int __io_sqe_files_scm(struct io_ring_ctx *ctx, int nr, int offset)
nr               3121 fs/io_uring.c  	for (i = 0; i < nr; i++) {
nr               3126 fs/io_uring.c  	fpl->max = fpl->count = nr;
nr               3131 fs/io_uring.c  	for (i = 0; i < nr; i++)
nr                201 fs/jbd2/recovery.c 	int			nr = 0, size = journal->j_blocksize;
nr                212 fs/jbd2/recovery.c 		nr++;
nr                221 fs/jbd2/recovery.c 	return nr;
nr                202 fs/jffs2/malloc.c 				 struct jffs2_eraseblock *jeb, int nr)
nr                205 fs/jffs2/malloc.c 	int i = nr;
nr                207 fs/jffs2/malloc.c 	dbg_memalloc("%d\n", nr);
nr                212 fs/jffs2/malloc.c 	dbg_memalloc("Reserving %d refs for block @0x%08x\n", nr, jeb->offset);
nr                233 fs/jffs2/malloc.c 	jeb->allocated_refs = nr;
nr                236 fs/jffs2/malloc.c 		  nr, jeb->offset, jeb->last_node, jeb->last_node->flash_offset,
nr                436 fs/jffs2/nodelist.h 				 struct jffs2_eraseblock *jeb, int nr);
nr                 83 fs/minix/itree_common.c 		int nr = minix_new_block(inode);
nr                 84 fs/minix/itree_common.c 		if (!nr)
nr                 86 fs/minix/itree_common.c 		branch[n].key = cpu_to_block(nr);
nr                 96 fs/minix/itree_common.c 		parent = nr;
nr                259 fs/minix/itree_common.c 	unsigned long nr;
nr                262 fs/minix/itree_common.c 		nr = block_to_cpu(*p);
nr                263 fs/minix/itree_common.c 		if (nr) {
nr                265 fs/minix/itree_common.c 			minix_free_block(inode, nr);
nr                273 fs/minix/itree_common.c 	unsigned long nr;
nr                277 fs/minix/itree_common.c 			nr = block_to_cpu(*p);
nr                278 fs/minix/itree_common.c 			if (!nr)
nr                281 fs/minix/itree_common.c 			bh = sb_bread(inode->i_sb, nr);
nr                287 fs/minix/itree_common.c 			minix_free_block(inode, nr);
nr                301 fs/minix/itree_common.c 	block_t nr = 0;
nr                320 fs/minix/itree_common.c 	partial = find_shared(inode, n, offsets, chain, &nr);
nr                321 fs/minix/itree_common.c 	if (nr) {
nr                326 fs/minix/itree_common.c 		free_branches(inode, &nr, &nr+1, (chain+n-1) - partial);
nr                339 fs/minix/itree_common.c 		nr = idata[DIRECT+first_whole];
nr                340 fs/minix/itree_common.c 		if (nr) {
nr                343 fs/minix/itree_common.c 			free_branches(inode, &nr, &nr+1, first_whole+1);
nr                108 fs/minix/minix.h #define minix_test_and_set_bit(nr, addr)	\
nr                109 fs/minix/minix.h 	__test_and_set_bit((nr), (unsigned long *)(addr))
nr                110 fs/minix/minix.h #define minix_set_bit(nr, addr)		\
nr                111 fs/minix/minix.h 	__set_bit((nr), (unsigned long *)(addr))
nr                112 fs/minix/minix.h #define minix_test_and_clear_bit(nr, addr) \
nr                113 fs/minix/minix.h 	__test_and_clear_bit((nr), (unsigned long *)(addr))
nr                114 fs/minix/minix.h #define minix_test_bit(nr, addr)		\
nr                115 fs/minix/minix.h 	test_bit((nr), (unsigned long *)(addr))
nr                143 fs/minix/minix.h #define minix_test_and_set_bit(nr, addr)	\
nr                144 fs/minix/minix.h 	__test_and_set_bit((nr) ^ 16, (unsigned long *)(addr))
nr                145 fs/minix/minix.h #define minix_set_bit(nr, addr)	\
nr                146 fs/minix/minix.h 	__set_bit((nr) ^ 16, (unsigned long *)(addr))
nr                147 fs/minix/minix.h #define minix_test_and_clear_bit(nr, addr)	\
nr                148 fs/minix/minix.h 	__test_and_clear_bit((nr) ^ 16, (unsigned long *)(addr))
nr                150 fs/minix/minix.h static inline int minix_test_bit(int nr, const void *vaddr)
nr                153 fs/minix/minix.h 	return (p[nr >> 4] & (1U << (nr & 15))) != 0;
nr                 82 fs/nilfs2/alloc.c static unsigned long nilfs_palloc_group(const struct inode *inode, __u64 nr,
nr                 85 fs/nilfs2/alloc.c 	__u64 group = nr;
nr                166 fs/nilfs2/alloc.c nilfs_palloc_entry_blkoff(const struct inode *inode, __u64 nr)
nr                170 fs/nilfs2/alloc.c 	group = nilfs_palloc_group(inode, nr, &group_offset);
nr                313 fs/nilfs2/alloc.c int nilfs_palloc_get_entry_block(struct inode *inode, __u64 nr,
nr                319 fs/nilfs2/alloc.c 				      nilfs_palloc_entry_blkoff(inode, nr),
nr                329 fs/nilfs2/alloc.c static int nilfs_palloc_delete_entry_block(struct inode *inode, __u64 nr)
nr                334 fs/nilfs2/alloc.c 					 nilfs_palloc_entry_blkoff(inode, nr),
nr                361 fs/nilfs2/alloc.c void *nilfs_palloc_block_get_entry(const struct inode *inode, __u64 nr,
nr                366 fs/nilfs2/alloc.c 	nilfs_palloc_group(inode, nr, &group_offset);
nr                 55 fs/nilfs2/ioctl.c 	ssize_t nr;
nr                 91 fs/nilfs2/ioctl.c 		nr = dofunc(nilfs, &pos, argv->v_flags, buf, argv->v_size,
nr                 93 fs/nilfs2/ioctl.c 		if (nr < 0) {
nr                 94 fs/nilfs2/ioctl.c 			ret = nr;
nr                 99 fs/nilfs2/ioctl.c 				 argv->v_size * nr)) {
nr                103 fs/nilfs2/ioctl.c 		total += nr;
nr                104 fs/nilfs2/ioctl.c 		if ((size_t)nr < n)
nr                512 fs/nilfs2/page.c 	pvec.nr = find_get_pages_contig(inode->i_mapping, index, PAGEVEC_SIZE,
nr                514 fs/nilfs2/page.c 	if (pvec.nr == 0)
nr                181 fs/ntfs/aops.c 	int i, nr;
nr                229 fs/ntfs/aops.c 	nr = i = 0;
nr                236 fs/ntfs/aops.c 			arr[nr++] = bh;
nr                269 fs/ntfs/aops.c 					arr[nr++] = bh;
nr                334 fs/ntfs/aops.c 	if (nr) {
nr                338 fs/ntfs/aops.c 		for (i = 0; i < nr; i++) {
nr                345 fs/ntfs/aops.c 		for (i = 0; i < nr; i++) {
nr                358 fs/ntfs/aops.c 		nr = -EIO;
nr                360 fs/ntfs/aops.c 	return nr;
nr                498 fs/ntfs/file.c 	int err, nr;
nr                501 fs/ntfs/file.c 	err = nr = 0;
nr                503 fs/ntfs/file.c 		pages[nr] = find_get_page_flags(mapping, index, FGP_LOCK |
nr                505 fs/ntfs/file.c 		if (!pages[nr]) {
nr                521 fs/ntfs/file.c 			pages[nr] = *cached_page;
nr                525 fs/ntfs/file.c 		nr++;
nr                526 fs/ntfs/file.c 	} while (nr < nr_pages);
nr                530 fs/ntfs/file.c 	while (nr > 0) {
nr                531 fs/ntfs/file.c 		unlock_page(pages[--nr]);
nr                532 fs/ntfs/file.c 		put_page(pages[nr]);
nr               1713 fs/ntfs/mft.c  	s64 min_nr, nr, ll;
nr               1754 fs/ntfs/mft.c  	nr = vol->mft_record_size << 4 >> vol->cluster_size_bits;
nr               1755 fs/ntfs/mft.c  	if (!nr)
nr               1756 fs/ntfs/mft.c  		nr = min_nr;
nr               1761 fs/ntfs/mft.c  	if (unlikely((ll + (nr << vol->cluster_size_bits)) >>
nr               1763 fs/ntfs/mft.c  		nr = min_nr;
nr               1764 fs/ntfs/mft.c  		if (unlikely((ll + (nr << vol->cluster_size_bits)) >>
nr               1774 fs/ntfs/mft.c  			nr > min_nr ? "default" : "minimal", (long long)nr);
nr               1777 fs/ntfs/mft.c  		rl2 = ntfs_cluster_alloc(vol, old_last_vcn, nr, lcn, MFT_ZONE,
nr               1781 fs/ntfs/mft.c  		if (PTR_ERR(rl2) != -ENOSPC || nr == min_nr) {
nr               1784 fs/ntfs/mft.c  					"mft data attribute.", (long long)nr);
nr               1793 fs/ntfs/mft.c  		nr = min_nr;
nr               1795 fs/ntfs/mft.c  				"count %lli.", (long long)nr);
nr               1811 fs/ntfs/mft.c  	ntfs_debug("Allocated %lli clusters.", (long long)nr);
nr               1919 fs/ntfs/mft.c  	mft_ni->allocated_size += nr << vol->cluster_size_bits;
nr               1938 fs/ntfs/mft.c  		mft_ni->allocated_size += nr << vol->cluster_size_bits;
nr                 99 fs/ocfs2/blockcheck.c u32 ocfs2_hamming_encode(u32 parity, void *data, unsigned int d, unsigned int nr)
nr                120 fs/ocfs2/blockcheck.c 		b = calc_code_bit(nr + i, &p);
nr                158 fs/ocfs2/blockcheck.c void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr,
nr                176 fs/ocfs2/blockcheck.c 	if (fix >= calc_code_bit(nr + d, NULL))
nr                184 fs/ocfs2/blockcheck.c 	b = calc_code_bit(nr, NULL);
nr                443 fs/ocfs2/blockcheck.c void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
nr                449 fs/ocfs2/blockcheck.c 	BUG_ON(nr < 0);
nr                451 fs/ocfs2/blockcheck.c 	if (!nr)
nr                456 fs/ocfs2/blockcheck.c 	for (i = 0, crc = ~0, ecc = 0; i < nr; i++) {
nr                487 fs/ocfs2/blockcheck.c int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
nr                496 fs/ocfs2/blockcheck.c 	BUG_ON(nr < 0);
nr                498 fs/ocfs2/blockcheck.c 	if (!nr)
nr                509 fs/ocfs2/blockcheck.c 	for (i = 0, crc = ~0; i < nr; i++)
nr                520 fs/ocfs2/blockcheck.c 	for (i = 0, ecc = 0; i < nr; i++) {
nr                531 fs/ocfs2/blockcheck.c 	for (i = 0; i < nr; i++) {
nr                541 fs/ocfs2/blockcheck.c 	for (i = 0, crc = ~0; i < nr; i++)
nr                587 fs/ocfs2/blockcheck.c 				struct buffer_head **bhs, int nr,
nr                591 fs/ocfs2/blockcheck.c 		ocfs2_block_check_compute_bhs(bhs, nr, bc);
nr                595 fs/ocfs2/blockcheck.c 				struct buffer_head **bhs, int nr,
nr                602 fs/ocfs2/blockcheck.c 		rc = ocfs2_block_check_validate_bhs(bhs, nr, bc,
nr                 37 fs/ocfs2/blockcheck.h 				struct buffer_head **bhs, int nr,
nr                 40 fs/ocfs2/blockcheck.h 				struct buffer_head **bhs, int nr,
nr                 49 fs/ocfs2/blockcheck.h void ocfs2_block_check_compute_bhs(struct buffer_head **bhs, int nr,
nr                 51 fs/ocfs2/blockcheck.h int ocfs2_block_check_validate_bhs(struct buffer_head **bhs, int nr,
nr                 78 fs/ocfs2/blockcheck.h 			 unsigned int nr);
nr                 89 fs/ocfs2/blockcheck.h void ocfs2_hamming_fix(void *data, unsigned int d, unsigned int nr,
nr                 92 fs/ocfs2/buffer_head_io.c 			   unsigned int nr, struct buffer_head *bhs[])
nr                 99 fs/ocfs2/buffer_head_io.c 	trace_ocfs2_read_blocks_sync((unsigned long long)block, nr);
nr                101 fs/ocfs2/buffer_head_io.c 	if (!nr)
nr                109 fs/ocfs2/buffer_head_io.c 	for (i = 0 ; i < nr ; i++) {
nr                156 fs/ocfs2/buffer_head_io.c 	for (i = nr; i > 0; i--) {
nr                195 fs/ocfs2/buffer_head_io.c int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr,
nr                206 fs/ocfs2/buffer_head_io.c 	trace_ocfs2_read_blocks_begin(ci, (unsigned long long)block, nr, flags);
nr                218 fs/ocfs2/buffer_head_io.c 	if (nr < 0) {
nr                219 fs/ocfs2/buffer_head_io.c 		mlog(ML_ERROR, "asked to read %d blocks!\n", nr);
nr                225 fs/ocfs2/buffer_head_io.c 	if (nr == 0) {
nr                236 fs/ocfs2/buffer_head_io.c 	for (i = 0 ; i < nr ; i++) {
nr                339 fs/ocfs2/buffer_head_io.c 	for (i = (nr - 1); i >= 0; i--) {
nr                398 fs/ocfs2/buffer_head_io.c 	trace_ocfs2_read_blocks_end((unsigned long long)block, nr,
nr                 21 fs/ocfs2/buffer_head_io.h 			   unsigned int nr, struct buffer_head *bhs[]);
nr                 30 fs/ocfs2/buffer_head_io.h int ocfs2_read_blocks(struct ocfs2_caching_info *ci, u64 block, int nr,
nr                 41 fs/ocfs2/dlm/dlmdomain.c static inline void byte_set_bit(u8 nr, u8 map[])
nr                 43 fs/ocfs2/dlm/dlmdomain.c 	map[nr >> 3] |= (1UL << (nr & 7));
nr                 46 fs/ocfs2/dlm/dlmdomain.c static inline int byte_test_bit(u8 nr, u8 map[])
nr                 48 fs/ocfs2/dlm/dlmdomain.c 	return ((1UL << (nr & 7)) & (map[nr >> 3])) != 0;
nr                960 fs/ocfs2/extent_map.c int ocfs2_read_virt_blocks(struct inode *inode, u64 v_block, int nr,
nr                970 fs/ocfs2/extent_map.c 	     inode, (unsigned long long)v_block, nr, bhs, flags,
nr                973 fs/ocfs2/extent_map.c 	if (((v_block + nr - 1) << inode->i_sb->s_blocksize_bits) >=
nr                979 fs/ocfs2/extent_map.c 	while (done < nr) {
nr                999 fs/ocfs2/extent_map.c 		count = nr - done;
nr                 53 fs/ocfs2/extent_map.h int ocfs2_read_virt_blocks(struct inode *inode, u64 v_block, int nr,
nr               1599 fs/ocfs2/ocfs2_trace.h 	TP_PROTO(void *inode, unsigned long long vblock, int nr,
nr               1601 fs/ocfs2/ocfs2_trace.h 	TP_ARGS(inode, vblock, nr, bhs, flags, validate),
nr               1605 fs/ocfs2/ocfs2_trace.h 		__field(int, nr)
nr               1613 fs/ocfs2/ocfs2_trace.h 		__entry->nr = nr;
nr               1619 fs/ocfs2/ocfs2_trace.h 		  __entry->nr, __entry->bhs, __entry->flags, __entry->validate)
nr               2702 fs/ocfs2/ocfs2_trace.h 		 unsigned int nr, int flags),
nr               2703 fs/ocfs2/ocfs2_trace.h 	TP_ARGS(ci, block, nr, flags),
nr               2707 fs/ocfs2/ocfs2_trace.h 		__field(unsigned int, nr)
nr               2713 fs/ocfs2/ocfs2_trace.h 		__entry->nr = nr;
nr               2717 fs/ocfs2/ocfs2_trace.h 		  __entry->nr, __entry->flags)
nr                 99 fs/ocfs2/suballoc.c 					 int nr);
nr               1252 fs/ocfs2/suballoc.c 					 int nr)
nr               1257 fs/ocfs2/suballoc.c 	if (ocfs2_test_bit(nr, (unsigned long *)bg->bg_bitmap))
nr               1266 fs/ocfs2/suballoc.c 		ret = !ocfs2_test_bit(nr, (unsigned long *)bg->bg_bitmap);
nr                641 fs/proc/base.c 	else if (info.data.nr < 0)
nr                643 fs/proc/base.c 			   info.data.nr, info.sp, info.data.instruction_pointer);
nr                647 fs/proc/base.c 		       info.data.nr,
nr               3217 fs/proc/base.c 		proc_flush_task_mnt(upid->ns->proc_mnt, upid->nr,
nr               3218 fs/proc/base.c 					tgid->numbers[i].nr);
nr               3587 fs/proc/base.c 	unsigned long nr = f_pos;
nr               3589 fs/proc/base.c 	if (nr != f_pos)	/* 32bit overflow? */
nr               3598 fs/proc/base.c 	if (tid && nr) {
nr               3605 fs/proc/base.c 	if (nr >= get_nr_threads(task))
nr               3613 fs/proc/base.c 		if (!nr--)
nr                465 fs/proc/task_mmu.c 	int i, nr = compound ? compound_nr(page) : 1;
nr                466 fs/proc/task_mmu.c 	unsigned long size = nr * PAGE_SIZE;
nr                496 fs/proc/task_mmu.c 	for (i = 0; i < nr; i++, page++) {
nr                205 fs/ramfs/file-nommu.c 	unsigned long maxpages, lpages, nr, loop, ret;
nr                227 fs/ramfs/file-nommu.c 	nr = find_get_pages(inode->i_mapping, &pgoff, lpages, pages);
nr                228 fs/ramfs/file-nommu.c 	if (nr != lpages)
nr                244 fs/ramfs/file-nommu.c 	for (loop = nr; loop > 0; loop--)
nr                711 fs/read_write.c 		ssize_t nr;
nr                714 fs/read_write.c 			nr = filp->f_op->read(filp, iovec.iov_base,
nr                717 fs/read_write.c 			nr = filp->f_op->write(filp, iovec.iov_base,
nr                721 fs/read_write.c 		if (nr < 0) {
nr                723 fs/read_write.c 				ret = nr;
nr                726 fs/read_write.c 		ret += nr;
nr                727 fs/read_write.c 		if (nr != iovec.iov_len)
nr                729 fs/read_write.c 		iov_iter_advance(iter, nr);
nr                424 fs/reiserfs/bitmap.c 	unsigned int nr, offset;
nr                432 fs/reiserfs/bitmap.c 	get_bit_address(s, block, &nr, &offset);
nr                434 fs/reiserfs/bitmap.c 	if (nr >= reiserfs_bmap_count(s)) {
nr                440 fs/reiserfs/bitmap.c 	bmbh = reiserfs_read_bitmap_block(s, nr);
nr                451 fs/reiserfs/bitmap.c 	apbi[nr].free_count++;
nr                133 fs/reiserfs/ibalance.c 	int nr;
nr                143 fs/reiserfs/ibalance.c 	nr = blkh_nr_item(blkh);
nr                153 fs/reiserfs/ibalance.c 	memmove(dc + count, dc, (nr + 1 - (to + 1)) * DC_SIZE);
nr                167 fs/reiserfs/ibalance.c 		(nr - to) * KEY_SIZE + (nr + 1 + count) * DC_SIZE);
nr                210 fs/reiserfs/ibalance.c 	int nr;
nr                228 fs/reiserfs/ibalance.c 	nr = blkh_nr_item(blkh);
nr                230 fs/reiserfs/ibalance.c 	if (first_p == 0 && del_num == nr + 1) {
nr                245 fs/reiserfs/ibalance.c 	memmove(dc, dc + del_num, (nr + 1 - first_p - del_num) * DC_SIZE);
nr                248 fs/reiserfs/ibalance.c 		(nr - first_i - del_num) * KEY_SIZE + (nr + 1 -
nr                435 fs/reiserfs/ibalance.c 	int nr;
nr                453 fs/reiserfs/ibalance.c 	nr = blkh_nr_item(blkh);
nr                458 fs/reiserfs/ibalance.c 		(nr - dest_position_before) * KEY_SIZE + (nr + 1) * DC_SIZE);
nr                571 fs/reiserfs/ibalance.c 	int nr;
nr                576 fs/reiserfs/ibalance.c 	nr = B_NR_ITEMS(src_bi.bi_bh);
nr                584 fs/reiserfs/ibalance.c 		if (nr == pointer_amount - 1) {
nr                595 fs/reiserfs/ibalance.c 				    nr - pointer_amount);
nr               2537 fs/reiserfs/inode.c 	int nr = 0;
nr               2675 fs/reiserfs/inode.c 			nr++;
nr               2683 fs/reiserfs/inode.c 	if (nr == 0) {
nr               2735 fs/reiserfs/inode.c 			nr++;
nr                673 fs/reiserfs/journal.c 	int nr;
nr                679 fs/reiserfs/journal.c 	for (i = 0; i < chunk->nr; i++) {
nr                682 fs/reiserfs/journal.c 	chunk->nr = 0;
nr                688 fs/reiserfs/journal.c 	for (i = 0; i < chunk->nr; i++) {
nr                691 fs/reiserfs/journal.c 	chunk->nr = 0;
nr                698 fs/reiserfs/journal.c 	BUG_ON(chunk->nr >= CHUNK_SIZE);
nr                699 fs/reiserfs/journal.c 	chunk->bh[chunk->nr++] = bh;
nr                700 fs/reiserfs/journal.c 	if (chunk->nr >= CHUNK_SIZE) {
nr                806 fs/reiserfs/journal.c 	chunk.nr = 0;
nr                818 fs/reiserfs/journal.c 			if (chunk.nr)
nr                845 fs/reiserfs/journal.c 	if (chunk.nr) {
nr               1729 fs/reiserfs/journal.c 	chunk.nr = 0;
nr               1767 fs/reiserfs/journal.c 	if (chunk.nr) {
nr                315 fs/reiserfs/lbalance.c 	int nr, free_space;
nr                338 fs/reiserfs/lbalance.c 	nr = blkh_nr_item(blkh);
nr                345 fs/reiserfs/lbalance.c 	dest_before = (last_first == LAST_TO_FIRST) ? 0 : nr;
nr                355 fs/reiserfs/lbalance.c 	memmove(ih + cpy_num, ih, (nr - dest_before) * IH_SIZE);
nr                365 fs/reiserfs/lbalance.c 	for (i = dest_before; i < nr + cpy_num; i++) {
nr                371 fs/reiserfs/lbalance.c 	last_loc = ih_location(&ih[nr + cpy_num - 1 - dest_before]);
nr                389 fs/reiserfs/lbalance.c 	set_blkh_nr_item(blkh, nr + cpy_num);
nr                907 fs/reiserfs/lbalance.c 	int nr, free_space;
nr                915 fs/reiserfs/lbalance.c 	nr = blkh_nr_item(blkh);
nr                930 fs/reiserfs/lbalance.c 	last_loc = nr ? ih_location(&ih[nr - before - 1]) : bh->b_size;
nr                948 fs/reiserfs/lbalance.c 	memmove(ih + 1, ih, IH_SIZE * (nr - before));
nr                952 fs/reiserfs/lbalance.c 	for (i = before; i < nr + 1; i++) {
nr                983 fs/reiserfs/lbalance.c 	int nr, free_space;
nr                990 fs/reiserfs/lbalance.c 	nr = blkh_nr_item(blkh);
nr               1013 fs/reiserfs/lbalance.c 	last_loc = ih_location(&ih[nr - affected_item_num - 1]);
nr               1021 fs/reiserfs/lbalance.c 	for (i = affected_item_num; i < nr; i++)
nr               1148 fs/reiserfs/lbalance.c 	int nr;
nr               1156 fs/reiserfs/lbalance.c 	nr = blkh_nr_item(blkh);
nr               1204 fs/reiserfs/lbalance.c 	last_loc = ih_location(&ih[nr - cut_item_num - 1]);
nr               1222 fs/reiserfs/lbalance.c 	for (i = cut_item_num; i < nr; i++)
nr               1244 fs/reiserfs/lbalance.c 	int nr;
nr               1257 fs/reiserfs/lbalance.c 	nr = blkh_nr_item(blkh);
nr               1259 fs/reiserfs/lbalance.c 	RFALSE(first < 0 || first + del_num > nr,
nr               1261 fs/reiserfs/lbalance.c 	       nr);
nr               1263 fs/reiserfs/lbalance.c 	if (first == 0 && del_num == nr) {
nr               1277 fs/reiserfs/lbalance.c 	last_loc = ih_location(&ih[nr - 1 - first]);
nr               1284 fs/reiserfs/lbalance.c 	memmove(ih, ih + del_num, (nr - first - del_num) * IH_SIZE);
nr               1287 fs/reiserfs/lbalance.c 	for (i = first; i < nr - del_num; i++)
nr                482 fs/reiserfs/prints.c 	int i, nr;
nr                492 fs/reiserfs/prints.c 	nr = blkh_nr_item(blkh);
nr                500 fs/reiserfs/prints.c 				&(ih->ih_key), &((ih + nr - 1)->ih_key));
nr                504 fs/reiserfs/prints.c 	if (first < 0 || first > nr - 1)
nr                509 fs/reiserfs/prints.c 	if (last < 0 || last > nr)
nr                510 fs/reiserfs/prints.c 		to = nr;
nr                734 fs/reiserfs/prints.c 	int nr;
nr                737 fs/reiserfs/prints.c 	nr = blkh_nr_item(blkh);
nr                738 fs/reiserfs/prints.c 	if (nr > (bh->b_size - BLKH_SIZE) / IH_SIZE)
nr                741 fs/reiserfs/prints.c 	if (blkh_free_space(blkh) > bh->b_size - BLKH_SIZE - IH_SIZE * nr)
nr               1944 fs/reiserfs/reiserfs.h #   define set_bit_unaligned(nr, addr)	\
nr               1945 fs/reiserfs/reiserfs.h 	__test_and_set_bit_le((nr) + unaligned_offset(addr), aligned_address(addr))
nr               1946 fs/reiserfs/reiserfs.h #   define clear_bit_unaligned(nr, addr)	\
nr               1947 fs/reiserfs/reiserfs.h 	__test_and_clear_bit_le((nr) + unaligned_offset(addr), aligned_address(addr))
nr               1948 fs/reiserfs/reiserfs.h #   define test_bit_unaligned(nr, addr)	\
nr               1949 fs/reiserfs/reiserfs.h 	test_bit_le((nr) + unaligned_offset(addr), aligned_address(addr))
nr               1953 fs/reiserfs/reiserfs.h #   define set_bit_unaligned(nr, addr)	__test_and_set_bit_le(nr, addr)
nr               1954 fs/reiserfs/reiserfs.h #   define clear_bit_unaligned(nr, addr)	__test_and_clear_bit_le(nr, addr)
nr               1955 fs/reiserfs/reiserfs.h #   define test_bit_unaligned(nr, addr)	test_bit_le(nr, addr)
nr                397 fs/reiserfs/stree.c 	int nr;
nr                406 fs/reiserfs/stree.c 	nr = blkh_nr_item(blkh);
nr                407 fs/reiserfs/stree.c 	if (nr < 1 || nr > ((blocksize - BLKH_SIZE) / (IH_SIZE + MIN_ITEM_LEN))) {
nr                413 fs/reiserfs/stree.c 	ih = (struct item_head *)(buf + BLKH_SIZE) + nr - 1;
nr                414 fs/reiserfs/stree.c 	used_space = BLKH_SIZE + IH_SIZE * nr + (blocksize - ih_location(ih));
nr                430 fs/reiserfs/stree.c 	for (i = 0; i < nr; i++, ih++) {
nr                438 fs/reiserfs/stree.c 		    || ih_location(ih) < IH_SIZE * nr) {
nr                468 fs/reiserfs/stree.c 	int nr;
nr                472 fs/reiserfs/stree.c 	nr = blkh_level(blkh);
nr                473 fs/reiserfs/stree.c 	if (nr <= DISK_LEAF_NODE_LEVEL || nr > MAX_HEIGHT) {
nr                480 fs/reiserfs/stree.c 	nr = blkh_nr_item(blkh);
nr                482 fs/reiserfs/stree.c 	if (nr > (blocksize - BLKH_SIZE - DC_SIZE) / (KEY_SIZE + DC_SIZE)) {
nr                488 fs/reiserfs/stree.c 	used_space = BLKH_SIZE + KEY_SIZE * nr + DC_SIZE * (nr + 1);
nr                382 fs/select.c    #define FDS_LONGS(nr)	(((nr)+FDS_BITPERLONG-1)/FDS_BITPERLONG)
nr                383 fs/select.c    #define FDS_BYTES(nr)	(FDS_LONGS(nr)*sizeof(long))
nr                389 fs/select.c    int get_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)
nr                391 fs/select.c    	nr = FDS_BYTES(nr);
nr                393 fs/select.c    		return copy_from_user(fdset, ufdset, nr) ? -EFAULT : 0;
nr                395 fs/select.c    	memset(fdset, 0, nr);
nr                400 fs/select.c    set_fd_set(unsigned long nr, void __user *ufdset, unsigned long *fdset)
nr                403 fs/select.c    		return __copy_to_user(ufdset, fdset, FDS_BYTES(nr));
nr                408 fs/select.c    void zero_fd_set(unsigned long nr, unsigned long *fdset)
nr                410 fs/select.c    	memset(fdset, 0, FDS_BYTES(nr));
nr               1140 fs/select.c    int compat_get_fd_set(unsigned long nr, compat_ulong_t __user *ufdset,
nr               1144 fs/select.c    		return compat_get_bitmap(fdset, ufdset, nr);
nr               1146 fs/select.c    		zero_fd_set(nr, fdset);
nr               1152 fs/select.c    int compat_set_fd_set(unsigned long nr, compat_ulong_t __user *ufdset,
nr               1157 fs/select.c    	return compat_put_bitmap(ufdset, fdset, nr);
nr                 43 fs/sysv/balloc.c void sysv_free_block(struct super_block * sb, sysv_zone_t nr)
nr                 49 fs/sysv/balloc.c 	unsigned block = fs32_to_cpu(sbi, nr);
nr                 92 fs/sysv/balloc.c 	sbi->s_bcache[count++] = nr;
nr                104 fs/sysv/balloc.c 	sysv_zone_t nr;
nr                113 fs/sysv/balloc.c 	nr = sbi->s_bcache[--count];
nr                114 fs/sysv/balloc.c 	if (nr == 0)  /* Applies only to Xenix FS, SystemV FS */
nr                117 fs/sysv/balloc.c 	block = fs32_to_cpu(sbi, nr);
nr                152 fs/sysv/balloc.c 	return nr;
nr                 54 fs/sysv/itree.c static inline int block_to_cpu(struct sysv_sb_info *sbi, sysv_zone_t nr)
nr                 56 fs/sysv/itree.c 	return sbi->s_block_base + fs32_to_cpu(sbi, nr);
nr                329 fs/sysv/itree.c 		sysv_zone_t nr = *p;
nr                330 fs/sysv/itree.c 		if (nr) {
nr                332 fs/sysv/itree.c 			sysv_free_block(inode->i_sb, nr);
nr                346 fs/sysv/itree.c 			sysv_zone_t nr = *p;
nr                347 fs/sysv/itree.c 			if (!nr)
nr                350 fs/sysv/itree.c 			block = block_to_cpu(SYSV_SB(sb), nr);
nr                357 fs/sysv/itree.c 			sysv_free_block(sb, nr);
nr                370 fs/sysv/itree.c 	sysv_zone_t nr = 0;
nr                394 fs/sysv/itree.c 	partial = find_shared(inode, n, offsets, chain, &nr);
nr                396 fs/sysv/itree.c 	if (nr) {
nr                401 fs/sysv/itree.c 		free_branches(inode, &nr, &nr+1, (chain+n-1) - partial);
nr                414 fs/sysv/itree.c 		nr = i_data[DIRECT + n - 1];
nr                415 fs/sysv/itree.c 		if (nr) {
nr                418 fs/sysv/itree.c 			free_branches(inode, &nr, &nr+1, n);
nr                 58 fs/ubifs/shrinker.c static int shrink_tnc(struct ubifs_info *c, int nr, int age, int *contention)
nr                 81 fs/ubifs/shrinker.c 	while (znode && total_freed < nr &&
nr                144 fs/ubifs/shrinker.c static int shrink_tnc_trees(int nr, int age, int *contention)
nr                187 fs/ubifs/shrinker.c 		freed += shrink_tnc(c, nr, age, contention);
nr                198 fs/ubifs/shrinker.c 		if (freed >= nr)
nr                282 fs/ubifs/shrinker.c 	unsigned long nr = sc->nr_to_scan;
nr                299 fs/ubifs/shrinker.c 	freed = shrink_tnc_trees(nr, OLD_ZNODE_AGE, &contention);
nr                300 fs/ubifs/shrinker.c 	if (freed >= nr)
nr                304 fs/ubifs/shrinker.c 	freed += shrink_tnc_trees(nr - freed, YOUNG_ZNODE_AGE, &contention);
nr                305 fs/ubifs/shrinker.c 	if (freed >= nr)
nr                309 fs/ubifs/shrinker.c 	freed += shrink_tnc_trees(nr - freed, 0, &contention);
nr                317 fs/ubifs/shrinker.c 	dbg_tnc("%lu znodes were freed, requested %lu", freed, nr);
nr                495 fs/xfs/libxfs/xfs_fs.h #define XFS_BULKSTAT_REQ_SIZE(nr)	(sizeof(struct xfs_bulkstat_req) + \
nr                496 fs/xfs/libxfs/xfs_fs.h 					 (nr) * sizeof(struct xfs_bulkstat))
nr                502 fs/xfs/libxfs/xfs_fs.h #define XFS_INUMBERS_REQ_SIZE(nr)	(sizeof(struct xfs_inumbers_req) + \
nr                503 fs/xfs/libxfs/xfs_fs.h 					 (nr) * sizeof(struct xfs_inumbers))
nr                661 fs/xfs/libxfs/xfs_log_format.h 	unsigned int		nr)
nr                664 fs/xfs/libxfs/xfs_log_format.h 			nr * sizeof(struct xfs_map_extent);
nr                709 fs/xfs/libxfs/xfs_log_format.h 	unsigned int		nr)
nr                712 fs/xfs/libxfs/xfs_log_format.h 			nr * sizeof(struct xfs_phys_extent);
nr                757 fs/xfs/libxfs/xfs_log_format.h 	unsigned int		nr)
nr                760 fs/xfs/libxfs/xfs_log_format.h 			nr * sizeof(struct xfs_map_extent);
nr                156 fs/xfs/scrub/refcount.c 	xfs_nlink_t			nr;
nr                173 fs/xfs/scrub/refcount.c 	nr = 1;
nr                194 fs/xfs/scrub/refcount.c 		if (nr == target_nr)
nr                196 fs/xfs/scrub/refcount.c 		nr++;
nr                203 fs/xfs/scrub/refcount.c 	if (nr != target_nr)
nr                208 fs/xfs/scrub/refcount.c 		nr = 0;
nr                219 fs/xfs/scrub/refcount.c 			nr++;
nr                230 fs/xfs/scrub/refcount.c 			nr--;
nr                231 fs/xfs/scrub/refcount.c 			if (nr == 0)
nr                241 fs/xfs/scrub/refcount.c 		if (nr)
nr                 58 fs/xfs/xfs_bmap_item.h 	unsigned int		nr)
nr                 61 fs/xfs/xfs_bmap_item.h 			xfs_bui_log_format_sizeof(nr);
nr                 60 fs/xfs/xfs_refcount_item.h 	unsigned int		nr)
nr                 63 fs/xfs/xfs_refcount_item.h 			xfs_cui_log_format_sizeof(nr);
nr                 61 fs/xfs/xfs_rmap_item.h 	unsigned int		nr)
nr                 64 fs/xfs/xfs_rmap_item.h 			xfs_rui_log_format_sizeof(nr);
nr               2298 fs/xfs/xfs_trace.h 		__field(int, nr)
nr               2305 fs/xfs/xfs_trace.h 		__entry->nr = dfp->dfp_count;
nr               2312 fs/xfs/xfs_trace.h 		  __entry->nr)
nr                 26 include/asm-generic/bitops-instrumented.h static inline void set_bit(long nr, volatile unsigned long *addr)
nr                 28 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                 29 include/asm-generic/bitops-instrumented.h 	arch_set_bit(nr, addr);
nr                 41 include/asm-generic/bitops-instrumented.h static inline void __set_bit(long nr, volatile unsigned long *addr)
nr                 43 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                 44 include/asm-generic/bitops-instrumented.h 	arch___set_bit(nr, addr);
nr                 54 include/asm-generic/bitops-instrumented.h static inline void clear_bit(long nr, volatile unsigned long *addr)
nr                 56 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                 57 include/asm-generic/bitops-instrumented.h 	arch_clear_bit(nr, addr);
nr                 69 include/asm-generic/bitops-instrumented.h static inline void __clear_bit(long nr, volatile unsigned long *addr)
nr                 71 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                 72 include/asm-generic/bitops-instrumented.h 	arch___clear_bit(nr, addr);
nr                 82 include/asm-generic/bitops-instrumented.h static inline void clear_bit_unlock(long nr, volatile unsigned long *addr)
nr                 84 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                 85 include/asm-generic/bitops-instrumented.h 	arch_clear_bit_unlock(nr, addr);
nr                 97 include/asm-generic/bitops-instrumented.h static inline void __clear_bit_unlock(long nr, volatile unsigned long *addr)
nr                 99 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                100 include/asm-generic/bitops-instrumented.h 	arch___clear_bit_unlock(nr, addr);
nr                113 include/asm-generic/bitops-instrumented.h static inline void change_bit(long nr, volatile unsigned long *addr)
nr                115 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                116 include/asm-generic/bitops-instrumented.h 	arch_change_bit(nr, addr);
nr                128 include/asm-generic/bitops-instrumented.h static inline void __change_bit(long nr, volatile unsigned long *addr)
nr                130 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                131 include/asm-generic/bitops-instrumented.h 	arch___change_bit(nr, addr);
nr                141 include/asm-generic/bitops-instrumented.h static inline bool test_and_set_bit(long nr, volatile unsigned long *addr)
nr                143 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                144 include/asm-generic/bitops-instrumented.h 	return arch_test_and_set_bit(nr, addr);
nr                155 include/asm-generic/bitops-instrumented.h static inline bool __test_and_set_bit(long nr, volatile unsigned long *addr)
nr                157 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                158 include/asm-generic/bitops-instrumented.h 	return arch___test_and_set_bit(nr, addr);
nr                170 include/asm-generic/bitops-instrumented.h static inline bool test_and_set_bit_lock(long nr, volatile unsigned long *addr)
nr                172 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                173 include/asm-generic/bitops-instrumented.h 	return arch_test_and_set_bit_lock(nr, addr);
nr                183 include/asm-generic/bitops-instrumented.h static inline bool test_and_clear_bit(long nr, volatile unsigned long *addr)
nr                185 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                186 include/asm-generic/bitops-instrumented.h 	return arch_test_and_clear_bit(nr, addr);
nr                197 include/asm-generic/bitops-instrumented.h static inline bool __test_and_clear_bit(long nr, volatile unsigned long *addr)
nr                199 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                200 include/asm-generic/bitops-instrumented.h 	return arch___test_and_clear_bit(nr, addr);
nr                210 include/asm-generic/bitops-instrumented.h static inline bool test_and_change_bit(long nr, volatile unsigned long *addr)
nr                212 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                213 include/asm-generic/bitops-instrumented.h 	return arch_test_and_change_bit(nr, addr);
nr                224 include/asm-generic/bitops-instrumented.h static inline bool __test_and_change_bit(long nr, volatile unsigned long *addr)
nr                226 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                227 include/asm-generic/bitops-instrumented.h 	return arch___test_and_change_bit(nr, addr);
nr                235 include/asm-generic/bitops-instrumented.h static inline bool test_bit(long nr, const volatile unsigned long *addr)
nr                237 include/asm-generic/bitops-instrumented.h 	kasan_check_read(addr + BIT_WORD(nr), sizeof(long));
nr                238 include/asm-generic/bitops-instrumented.h 	return arch_test_bit(nr, addr);
nr                254 include/asm-generic/bitops-instrumented.h clear_bit_unlock_is_negative_byte(long nr, volatile unsigned long *addr)
nr                256 include/asm-generic/bitops-instrumented.h 	kasan_check_write(addr + BIT_WORD(nr), sizeof(long));
nr                257 include/asm-generic/bitops-instrumented.h 	return arch_clear_bit_unlock_is_negative_byte(nr, addr);
nr                 14 include/asm-generic/bitops/atomic.h static inline void set_bit(unsigned int nr, volatile unsigned long *p)
nr                 16 include/asm-generic/bitops/atomic.h 	p += BIT_WORD(nr);
nr                 17 include/asm-generic/bitops/atomic.h 	atomic_long_or(BIT_MASK(nr), (atomic_long_t *)p);
nr                 20 include/asm-generic/bitops/atomic.h static inline void clear_bit(unsigned int nr, volatile unsigned long *p)
nr                 22 include/asm-generic/bitops/atomic.h 	p += BIT_WORD(nr);
nr                 23 include/asm-generic/bitops/atomic.h 	atomic_long_andnot(BIT_MASK(nr), (atomic_long_t *)p);
nr                 26 include/asm-generic/bitops/atomic.h static inline void change_bit(unsigned int nr, volatile unsigned long *p)
nr                 28 include/asm-generic/bitops/atomic.h 	p += BIT_WORD(nr);
nr                 29 include/asm-generic/bitops/atomic.h 	atomic_long_xor(BIT_MASK(nr), (atomic_long_t *)p);
nr                 32 include/asm-generic/bitops/atomic.h static inline int test_and_set_bit(unsigned int nr, volatile unsigned long *p)
nr                 35 include/asm-generic/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 37 include/asm-generic/bitops/atomic.h 	p += BIT_WORD(nr);
nr                 45 include/asm-generic/bitops/atomic.h static inline int test_and_clear_bit(unsigned int nr, volatile unsigned long *p)
nr                 48 include/asm-generic/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 50 include/asm-generic/bitops/atomic.h 	p += BIT_WORD(nr);
nr                 58 include/asm-generic/bitops/atomic.h static inline int test_and_change_bit(unsigned int nr, volatile unsigned long *p)
nr                 61 include/asm-generic/bitops/atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 63 include/asm-generic/bitops/atomic.h 	p += BIT_WORD(nr);
nr                  9 include/asm-generic/bitops/ext2-atomic-setbit.h #define ext2_set_bit_atomic(l, nr, addr)	test_and_set_bit_le(nr, addr)
nr                 10 include/asm-generic/bitops/ext2-atomic-setbit.h #define ext2_clear_bit_atomic(l, nr, addr)	test_and_clear_bit_le(nr, addr)
nr                  9 include/asm-generic/bitops/ext2-atomic.h #define ext2_set_bit_atomic(lock, nr, addr)		\
nr                 13 include/asm-generic/bitops/ext2-atomic.h 		ret = __test_and_set_bit_le(nr, addr);	\
nr                 18 include/asm-generic/bitops/ext2-atomic.h #define ext2_clear_bit_atomic(lock, nr, addr)		\
nr                 22 include/asm-generic/bitops/ext2-atomic.h 		ret = __test_and_clear_bit_le(nr, addr);	\
nr                 53 include/asm-generic/bitops/le.h static inline int test_bit_le(int nr, const void *addr)
nr                 55 include/asm-generic/bitops/le.h 	return test_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 58 include/asm-generic/bitops/le.h static inline void set_bit_le(int nr, void *addr)
nr                 60 include/asm-generic/bitops/le.h 	set_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 63 include/asm-generic/bitops/le.h static inline void clear_bit_le(int nr, void *addr)
nr                 65 include/asm-generic/bitops/le.h 	clear_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 68 include/asm-generic/bitops/le.h static inline void __set_bit_le(int nr, void *addr)
nr                 70 include/asm-generic/bitops/le.h 	__set_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 73 include/asm-generic/bitops/le.h static inline void __clear_bit_le(int nr, void *addr)
nr                 75 include/asm-generic/bitops/le.h 	__clear_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 78 include/asm-generic/bitops/le.h static inline int test_and_set_bit_le(int nr, void *addr)
nr                 80 include/asm-generic/bitops/le.h 	return test_and_set_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 83 include/asm-generic/bitops/le.h static inline int test_and_clear_bit_le(int nr, void *addr)
nr                 85 include/asm-generic/bitops/le.h 	return test_and_clear_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 88 include/asm-generic/bitops/le.h static inline int __test_and_set_bit_le(int nr, void *addr)
nr                 90 include/asm-generic/bitops/le.h 	return __test_and_set_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 93 include/asm-generic/bitops/le.h static inline int __test_and_clear_bit_le(int nr, void *addr)
nr                 95 include/asm-generic/bitops/le.h 	return __test_and_clear_bit(nr ^ BITOP_LE_SWIZZLE, addr);
nr                 18 include/asm-generic/bitops/lock.h static inline int test_and_set_bit_lock(unsigned int nr,
nr                 22 include/asm-generic/bitops/lock.h 	unsigned long mask = BIT_MASK(nr);
nr                 24 include/asm-generic/bitops/lock.h 	p += BIT_WORD(nr);
nr                 40 include/asm-generic/bitops/lock.h static inline void clear_bit_unlock(unsigned int nr, volatile unsigned long *p)
nr                 42 include/asm-generic/bitops/lock.h 	p += BIT_WORD(nr);
nr                 43 include/asm-generic/bitops/lock.h 	atomic_long_fetch_andnot_release(BIT_MASK(nr), (atomic_long_t *)p);
nr                 57 include/asm-generic/bitops/lock.h static inline void __clear_bit_unlock(unsigned int nr,
nr                 62 include/asm-generic/bitops/lock.h 	p += BIT_WORD(nr);
nr                 64 include/asm-generic/bitops/lock.h 	old &= ~BIT_MASK(nr);
nr                 78 include/asm-generic/bitops/lock.h static inline bool clear_bit_unlock_is_negative_byte(unsigned int nr,
nr                 82 include/asm-generic/bitops/lock.h 	unsigned long mask = BIT_MASK(nr);
nr                 84 include/asm-generic/bitops/lock.h 	p += BIT_WORD(nr);
nr                 16 include/asm-generic/bitops/non-atomic.h static inline void __set_bit(int nr, volatile unsigned long *addr)
nr                 18 include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 19 include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 24 include/asm-generic/bitops/non-atomic.h static inline void __clear_bit(int nr, volatile unsigned long *addr)
nr                 26 include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 27 include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 41 include/asm-generic/bitops/non-atomic.h static inline void __change_bit(int nr, volatile unsigned long *addr)
nr                 43 include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 44 include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 58 include/asm-generic/bitops/non-atomic.h static inline int __test_and_set_bit(int nr, volatile unsigned long *addr)
nr                 60 include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 61 include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 77 include/asm-generic/bitops/non-atomic.h static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr)
nr                 79 include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 80 include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 88 include/asm-generic/bitops/non-atomic.h static inline int __test_and_change_bit(int nr,
nr                 91 include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 92 include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                104 include/asm-generic/bitops/non-atomic.h static inline int test_bit(int nr, const volatile unsigned long *addr)
nr                106 include/asm-generic/bitops/non-atomic.h 	return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1)));
nr               1011 include/asm-generic/io.h static inline void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr               1025 include/asm-generic/io.h extern void __iomem *ioport_map(unsigned long port, unsigned int nr);
nr                 92 include/asm-generic/iomap.h extern void __iomem *ioport_map(unsigned long port, unsigned int nr);
nr                 26 include/asm-generic/pci_iomap.h 				      unsigned int nr);
nr                 28 include/asm-generic/pci_iomap.h #define __pci_ioport_map(dev, port, nr) ioport_map((port), (nr))
nr                176 include/asm-generic/tlb.h 	unsigned int		nr;
nr                211 include/asm-generic/tlb.h 	unsigned int		nr;
nr                178 include/drm/drm_ioctl.h bool drm_ioctl_flags(unsigned int nr, unsigned int *flags);
nr               1114 include/linux/acpi.h int __acpi_probe_device_table(struct acpi_probe_entry *start, int nr);
nr                810 include/linux/bio.h 								unsigned int nr)
nr                152 include/linux/bitmap.h 						    unsigned int nr,
nr                172 include/linux/bitmap.h 			   unsigned int nr,
nr                175 include/linux/bitmap.h 	return bitmap_find_next_zero_area_off(map, size, start, nr,
nr                 15 include/linux/bitops.h #define BITS_TO_LONGS(nr)	DIV_ROUND_UP(nr, BITS_PER_TYPE(long))
nr                225 include/linux/bitops.h static __always_inline void assign_bit(long nr, volatile unsigned long *addr,
nr                229 include/linux/bitops.h 		set_bit(nr, addr);
nr                231 include/linux/bitops.h 		clear_bit(nr, addr);
nr                234 include/linux/bitops.h static __always_inline void __assign_bit(long nr, volatile unsigned long *addr,
nr                238 include/linux/bitops.h 		__set_bit(nr, addr);
nr                240 include/linux/bitops.h 		__clear_bit(nr, addr);
nr                  8 include/linux/bits.h #define BIT(nr)			(UL(1) << (nr))
nr                  9 include/linux/bits.h #define BIT_ULL(nr)		(ULL(1) << (nr))
nr                 10 include/linux/bits.h #define BIT_MASK(nr)		(UL(1) << ((nr) % BITS_PER_LONG))
nr                 11 include/linux/bits.h #define BIT_WORD(nr)		((nr) / BITS_PER_LONG)
nr                 12 include/linux/bits.h #define BIT_ULL_MASK(nr)	(ULL(1) << ((nr) % BITS_PER_LONG_LONG))
nr                 13 include/linux/bits.h #define BIT_ULL_WORD(nr)	((nr) / BITS_PER_LONG_LONG)
nr                197 include/linux/ceph/rados.h #define __CEPH_OSD_OP1(mode, nr) \
nr                198 include/linux/ceph/rados.h 	(CEPH_OSD_OP_MODE_##mode | (nr))
nr                200 include/linux/ceph/rados.h #define __CEPH_OSD_OP(mode, type, nr) \
nr                201 include/linux/ceph/rados.h 	(CEPH_OSD_OP_MODE_##mode | CEPH_OSD_OP_TYPE_##type | (nr))
nr                518 include/linux/compat.h asmlinkage long compat_sys_io_submit(compat_aio_context_t ctx_id, int nr,
nr                522 include/linux/compat.h 					compat_long_t nr,
nr                528 include/linux/compat.h 					compat_long_t nr,
nr                 15 include/linux/coredump.h extern int dump_skip(struct coredump_params *cprm, size_t nr);
nr                 16 include/linux/coredump.h extern int dump_emit(struct coredump_params *cprm, const void *addr, int nr);
nr                 39 include/linux/dma/hsu.h int hsu_dma_get_status(struct hsu_dma_chip *chip, unsigned short nr,
nr                 41 include/linux/dma/hsu.h int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr, u32 status);
nr                 48 include/linux/dma/hsu.h 				     unsigned short nr, u32 *status)
nr                 52 include/linux/dma/hsu.h static inline int hsu_dma_do_irq(struct hsu_dma_chip *chip, unsigned short nr,
nr                523 include/linux/dmaengine.h dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags);
nr                531 include/linux/dmaengine.h dmaengine_get_unmap_data(struct device *dev, int nr, gfp_t flags)
nr                906 include/linux/ftrace.h unsigned long arch_syscall_addr(int nr);
nr                 51 include/linux/genalloc.h 			unsigned int nr,
nr                184 include/linux/genalloc.h 		unsigned long start, unsigned int nr, void *data,
nr                188 include/linux/genalloc.h 		unsigned long size, unsigned long start, unsigned int nr,
nr                192 include/linux/genalloc.h 		unsigned long size, unsigned long start, unsigned int nr,
nr                197 include/linux/genalloc.h 		unsigned long size, unsigned long start, unsigned int nr,
nr                201 include/linux/genalloc.h 		unsigned long start, unsigned int nr, void *data,
nr                 48 include/linux/hwmon-sysfs.h 	u8 nr;
nr                 56 include/linux/hwmon-sysfs.h 	  .nr = _nr }
nr                703 include/linux/i2c.h 	int nr;
nr                855 include/linux/i2c.h extern struct i2c_adapter *i2c_get_adapter(int nr);
nr                890 include/linux/i2c.h 	return adap->nr;
nr                558 include/linux/interrupt.h extern void open_softirq(int nr, void (*action)(struct softirq_action *));
nr                560 include/linux/interrupt.h extern void __raise_softirq_irqoff(unsigned int nr);
nr                562 include/linux/interrupt.h extern void raise_softirq_irqoff(unsigned int nr);
nr                563 include/linux/interrupt.h extern void raise_softirq(unsigned int nr);
nr                 48 include/linux/io.h 			       unsigned int nr);
nr                 53 include/linux/io.h 					     unsigned int nr)
nr                 18 include/linux/iommu-helper.h static inline int iommu_is_span_boundary(unsigned int index, unsigned int nr,
nr                 24 include/linux/iommu-helper.h 	return shift + nr > boundary_size;
nr                 28 include/linux/iommu-helper.h 				      unsigned long start, unsigned int nr,
nr                 74 include/linux/kbd_kern.h extern int set_console(int nr);
nr                151 include/linux/kvm_host.h #define KVM_ARCH_REQ_FLAGS(nr, flags) ({ \
nr                152 include/linux/kvm_host.h 	BUILD_BUG_ON((unsigned)(nr) >= (FIELD_SIZEOF(struct kvm_vcpu, requests) * 8) - KVM_REQUEST_ARCH_BASE); \
nr                153 include/linux/kvm_host.h 	(unsigned)(((nr) + KVM_REQUEST_ARCH_BASE) | (flags)); \
nr                155 include/linux/kvm_host.h #define KVM_ARCH_REQ(nr)           KVM_ARCH_REQ_FLAGS(nr, 0)
nr               1141 include/linux/kvm_host.h 			unsigned nr,
nr                 41 include/linux/linkmode.h static inline void linkmode_set_bit(int nr, volatile unsigned long *addr)
nr                 43 include/linux/linkmode.h 	__set_bit(nr, addr);
nr                 55 include/linux/linkmode.h static inline void linkmode_clear_bit(int nr, volatile unsigned long *addr)
nr                 57 include/linux/linkmode.h 	__clear_bit(nr, addr);
nr                 60 include/linux/linkmode.h static inline void linkmode_mod_bit(int nr, volatile unsigned long *addr,
nr                 64 include/linux/linkmode.h 		linkmode_set_bit(nr, addr);
nr                 66 include/linux/linkmode.h 		linkmode_clear_bit(nr, addr);
nr                 69 include/linux/linkmode.h static inline void linkmode_change_bit(int nr, volatile unsigned long *addr)
nr                 71 include/linux/linkmode.h 	__change_bit(nr, addr);
nr                 74 include/linux/linkmode.h static inline int linkmode_test_bit(int nr, volatile unsigned long *addr)
nr                 76 include/linux/linkmode.h 	return test_bit(nr, addr);
nr                125 include/linux/lockdep.h 	unsigned long			nr;
nr                142 include/linux/mISDNhw.h 	int			nr;
nr                343 include/linux/mISDNif.h test_channelmap(u_int nr, u_char *map)
nr                345 include/linux/mISDNif.h 	if (nr <= MISDN_MAX_CHANNEL)
nr                346 include/linux/mISDNif.h 		return map[nr >> 3] & (1 << (nr & 7));
nr                352 include/linux/mISDNif.h set_channelmap(u_int nr, u_char *map)
nr                354 include/linux/mISDNif.h 	map[nr >> 3] |= (1 << (nr & 7));
nr                358 include/linux/mISDNif.h clear_channelmap(u_int nr, u_char *map)
nr                360 include/linux/mISDNif.h 	map[nr >> 3] &= ~(1 << (nr & 7));
nr                470 include/linux/mISDNif.h 	u_int			nr;
nr               1068 include/linux/memcontrol.h 				     int nr)
nr               1074 include/linux/memcontrol.h 				   int nr)
nr               1080 include/linux/memcontrol.h 					  int nr)
nr               1086 include/linux/memcontrol.h 					int nr)
nr               1494 include/linux/mm.h 		pgoff_t start, pgoff_t nr, bool even_cows);
nr               1514 include/linux/mm.h 		pgoff_t start, pgoff_t nr, bool even_cows) { }
nr               1235 include/linux/mmzone.h static inline struct mem_section *__nr_to_section(unsigned long nr)
nr               1241 include/linux/mmzone.h 	if (!mem_section[SECTION_NR_TO_ROOT(nr)])
nr               1243 include/linux/mmzone.h 	return &mem_section[SECTION_NR_TO_ROOT(nr)][nr & SECTION_ROOT_MASK];
nr               1281 include/linux/mmzone.h static inline int present_section_nr(unsigned long nr)
nr               1283 include/linux/mmzone.h 	return present_section(__nr_to_section(nr));
nr               1296 include/linux/mmzone.h static inline int valid_section_nr(unsigned long nr)
nr               1298 include/linux/mmzone.h 	return valid_section(__nr_to_section(nr));
nr               1306 include/linux/mmzone.h static inline int online_section_nr(unsigned long nr)
nr               1308 include/linux/mmzone.h 	return online_section(__nr_to_section(nr));
nr                737 include/linux/nvme.h 	__le32			nr;
nr                 91 include/linux/page_ref.h static inline void page_ref_add(struct page *page, int nr)
nr                 93 include/linux/page_ref.h 	atomic_add(nr, &page->_refcount);
nr                 95 include/linux/page_ref.h 		__page_ref_mod(page, nr);
nr                 98 include/linux/page_ref.h static inline void page_ref_sub(struct page *page, int nr)
nr                100 include/linux/page_ref.h 	atomic_sub(nr, &page->_refcount);
nr                102 include/linux/page_ref.h 		__page_ref_mod(page, -nr);
nr                119 include/linux/page_ref.h static inline int page_ref_sub_and_test(struct page *page, int nr)
nr                121 include/linux/page_ref.h 	int ret = atomic_sub_and_test(nr, &page->_refcount);
nr                124 include/linux/page_ref.h 		__page_ref_mod_and_test(page, -nr, ret);
nr                155 include/linux/page_ref.h static inline int page_ref_add_unless(struct page *page, int nr, int u)
nr                157 include/linux/page_ref.h 	int ret = atomic_add_unless(&page->_refcount, nr, u);
nr                160 include/linux/page_ref.h 		__page_ref_mod_unless(page, nr, ret);
nr                121 include/linux/pagemap.h void release_pages(struct page **pages, int nr);
nr                 21 include/linux/pagevec.h 	unsigned char nr;
nr                 57 include/linux/pagevec.h 	pvec->nr = 0;
nr                 63 include/linux/pagevec.h 	pvec->nr = 0;
nr                 68 include/linux/pagevec.h 	return pvec->nr;
nr                 73 include/linux/pagevec.h 	return PAGEVEC_SIZE - pvec->nr;
nr                 81 include/linux/pagevec.h 	pvec->pages[pvec->nr++] = page;
nr               1209 include/linux/pci.h int __printf(6, 7) pci_request_irq(struct pci_dev *dev, unsigned int nr,
nr               1212 include/linux/pci.h void pci_free_irq(struct pci_dev *dev, unsigned int nr, void *dev_id);
nr               1455 include/linux/pci.h int pci_irq_vector(struct pci_dev *dev, unsigned int nr);
nr               1489 include/linux/pci.h static inline int pci_irq_vector(struct pci_dev *dev, unsigned int nr)
nr               1491 include/linux/pci.h 	if (WARN_ON_ONCE(nr > 0))
nr               1757 include/linux/pci.h static inline int pci_irq_vector(struct pci_dev *dev, unsigned int nr)
nr                 71 include/linux/pci_hotplug.h int __pci_hp_register(struct hotplug_slot *slot, struct pci_bus *pbus, int nr,
nr                 74 include/linux/pci_hotplug.h int __pci_hp_initialize(struct hotplug_slot *slot, struct pci_bus *bus, int nr,
nr                 86 include/linux/pci_hotplug.h #define pci_hp_initialize(slot, bus, nr, name) \
nr                 87 include/linux/pci_hotplug.h 	__pci_hp_initialize(slot, bus, nr, name, THIS_MODULE, KBUILD_MODNAME)
nr                185 include/linux/percpu-refcount.h static inline void percpu_ref_get_many(struct percpu_ref *ref, unsigned long nr)
nr                192 include/linux/percpu-refcount.h 		this_cpu_add(*percpu_count, nr);
nr                194 include/linux/percpu-refcount.h 		atomic_long_add(nr, &ref->count);
nr                284 include/linux/percpu-refcount.h static inline void percpu_ref_put_many(struct percpu_ref *ref, unsigned long nr)
nr                291 include/linux/percpu-refcount.h 		this_cpu_sub(*percpu_count, nr);
nr                292 include/linux/percpu-refcount.h 	else if (unlikely(atomic_long_sub_and_test(nr, &ref->count)))
nr                 62 include/linux/perf_event.h 	__u64				nr;
nr                 69 include/linux/perf_event.h 	u32			    nr;
nr                102 include/linux/perf_event.h 	__u64				nr;
nr               1106 include/linux/perf_event.h perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr)
nr               1109 include/linux/perf_event.h 		__perf_sw_event(event_id, nr, regs, addr);
nr               1120 include/linux/perf_event.h perf_sw_event_sched(u32 event_id, u64 nr, u64 addr)
nr               1126 include/linux/perf_event.h 		___perf_sw_event(event_id, nr, regs, addr);
nr               1206 include/linux/perf_event.h 		entry->ip[entry->nr++] = ip;
nr               1217 include/linux/perf_event.h 	if (ctx->nr < ctx->max_stack && !ctx->contexts_maxed) {
nr               1219 include/linux/perf_event.h 		entry->ip[entry->nr++] = ip;
nr               1220 include/linux/perf_event.h 		++ctx->nr;
nr               1386 include/linux/perf_event.h perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr)	{ }
nr               1388 include/linux/perf_event.h perf_sw_event_sched(u32 event_id, u64 nr, u64 addr)			{ }
nr                 55 include/linux/pid.h 	int nr;
nr                114 include/linux/pid.h extern struct pid *find_pid_ns(int nr, struct pid_namespace *ns);
nr                115 include/linux/pid.h extern struct pid *find_vpid(int nr);
nr                120 include/linux/pid.h extern struct pid *find_get_pid(int nr);
nr                121 include/linux/pid.h extern struct pid *find_ge_pid(int nr, struct pid_namespace *);
nr                153 include/linux/pid.h 	return pid->numbers[pid->level].nr == 1;
nr                169 include/linux/pid.h 	pid_t nr = 0;
nr                171 include/linux/pid.h 		nr = pid->numbers[0].nr;
nr                172 include/linux/pid.h 	return nr;
nr                145 include/linux/platform_data/gpio-omap.h #define OMAP_MPUIO(nr)		(OMAP_MAX_GPIO_LINES + (nr))
nr                146 include/linux/platform_data/gpio-omap.h #define OMAP_GPIO_IS_MPUIO(nr)	((nr) >= OMAP_MAX_GPIO_LINES)
nr                 67 include/linux/platform_data/mlxreg.h 	int nr;
nr                296 include/linux/quotaops.h static inline int dquot_alloc_space_nodirty(struct inode *inode, qsize_t nr)
nr                298 include/linux/quotaops.h 	return __dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN);
nr                301 include/linux/quotaops.h static inline void dquot_alloc_space_nofail(struct inode *inode, qsize_t nr)
nr                303 include/linux/quotaops.h 	__dquot_alloc_space(inode, nr, DQUOT_SPACE_WARN|DQUOT_SPACE_NOFAIL);
nr                307 include/linux/quotaops.h static inline int dquot_alloc_space(struct inode *inode, qsize_t nr)
nr                311 include/linux/quotaops.h 	ret = dquot_alloc_space_nodirty(inode, nr);
nr                323 include/linux/quotaops.h static inline int dquot_alloc_block_nodirty(struct inode *inode, qsize_t nr)
nr                325 include/linux/quotaops.h 	return dquot_alloc_space_nodirty(inode, nr << inode->i_blkbits);
nr                328 include/linux/quotaops.h static inline void dquot_alloc_block_nofail(struct inode *inode, qsize_t nr)
nr                330 include/linux/quotaops.h 	dquot_alloc_space_nofail(inode, nr << inode->i_blkbits);
nr                333 include/linux/quotaops.h static inline int dquot_alloc_block(struct inode *inode, qsize_t nr)
nr                335 include/linux/quotaops.h 	return dquot_alloc_space(inode, nr << inode->i_blkbits);
nr                338 include/linux/quotaops.h static inline int dquot_prealloc_block_nodirty(struct inode *inode, qsize_t nr)
nr                340 include/linux/quotaops.h 	return __dquot_alloc_space(inode, nr << inode->i_blkbits, 0);
nr                343 include/linux/quotaops.h static inline int dquot_prealloc_block(struct inode *inode, qsize_t nr)
nr                347 include/linux/quotaops.h 	ret = dquot_prealloc_block_nodirty(inode, nr);
nr                353 include/linux/quotaops.h static inline int dquot_reserve_block(struct inode *inode, qsize_t nr)
nr                355 include/linux/quotaops.h 	return __dquot_alloc_space(inode, nr << inode->i_blkbits,
nr                359 include/linux/quotaops.h static inline int dquot_claim_block(struct inode *inode, qsize_t nr)
nr                363 include/linux/quotaops.h 	ret = dquot_claim_space_nodirty(inode, nr << inode->i_blkbits);
nr                369 include/linux/quotaops.h static inline void dquot_reclaim_block(struct inode *inode, qsize_t nr)
nr                371 include/linux/quotaops.h 	dquot_reclaim_space_nodirty(inode, nr << inode->i_blkbits);
nr                375 include/linux/quotaops.h static inline void dquot_free_space_nodirty(struct inode *inode, qsize_t nr)
nr                377 include/linux/quotaops.h 	__dquot_free_space(inode, nr, 0);
nr                380 include/linux/quotaops.h static inline void dquot_free_space(struct inode *inode, qsize_t nr)
nr                382 include/linux/quotaops.h 	dquot_free_space_nodirty(inode, nr);
nr                386 include/linux/quotaops.h static inline void dquot_free_block_nodirty(struct inode *inode, qsize_t nr)
nr                388 include/linux/quotaops.h 	dquot_free_space_nodirty(inode, nr << inode->i_blkbits);
nr                391 include/linux/quotaops.h static inline void dquot_free_block(struct inode *inode, qsize_t nr)
nr                393 include/linux/quotaops.h 	dquot_free_space(inode, nr << inode->i_blkbits);
nr                397 include/linux/quotaops.h 		qsize_t nr)
nr                399 include/linux/quotaops.h 	__dquot_free_space(inode, nr << inode->i_blkbits, DQUOT_SPACE_RESERVE);
nr                248 include/linux/sbitmap.h 	unsigned int nr;
nr                254 include/linux/sbitmap.h 	nr = SB_NR_TO_BIT(sb, start);
nr                259 include/linux/sbitmap.h 					   sb->map[index].depth - nr,
nr                272 include/linux/sbitmap.h 		depth += nr;
nr                274 include/linux/sbitmap.h 			nr = find_next_bit(&word, depth, nr);
nr                275 include/linux/sbitmap.h 			if (nr >= depth)
nr                277 include/linux/sbitmap.h 			if (!fn(sb, (index << sb->shift) + nr, data))
nr                280 include/linux/sbitmap.h 			nr++;
nr                283 include/linux/sbitmap.h 		nr = 0;
nr                438 include/linux/sbitmap.h 	int nr;
nr                441 include/linux/sbitmap.h 	nr = __sbitmap_queue_get(sbq);
nr                443 include/linux/sbitmap.h 	return nr;
nr                464 include/linux/sbitmap.h 	int nr;
nr                467 include/linux/sbitmap.h 	nr = __sbitmap_queue_get_shallow(sbq, shallow_depth);
nr                469 include/linux/sbitmap.h 	return nr;
nr                496 include/linux/sbitmap.h void sbitmap_queue_clear(struct sbitmap_queue *sbq, unsigned int nr,
nr                151 include/linux/scatterlist.h #define for_each_sg(sglist, sg, nr, __i)	\
nr                152 include/linux/scatterlist.h 	for (__i = 0, sg = (sglist); __i < (nr); __i++, sg = sg_next(sg))
nr               1665 include/linux/sched.h extern struct task_struct *find_task_by_vpid(pid_t nr);
nr               1666 include/linux/sched.h extern struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns);
nr               1671 include/linux/sched.h extern struct task_struct *find_get_task_by_vpid(pid_t nr);
nr                 52 include/linux/selection.h 				unsigned int nr);
nr                 43 include/linux/serdev.h 	int nr;
nr                105 include/linux/serdev.h 	unsigned int		nr;
nr                309 include/linux/serial_core.h 	int			 nr;
nr                394 include/linux/serial_core.h struct uart_port *uart_get_console(struct uart_port *ports, int nr,
nr                138 include/linux/sh_clk.h int sh_clk_mstp_register(struct clk *clks, int nr);
nr                146 include/linux/sh_clk.h static inline int __deprecated sh_clk_mstp32_register(struct clk *clks, int nr)
nr                148 include/linux/sh_clk.h 	return sh_clk_mstp_register(clks, nr);
nr                168 include/linux/sh_clk.h int sh_clk_div4_register(struct clk *clks, int nr,
nr                170 include/linux/sh_clk.h int sh_clk_div4_enable_register(struct clk *clks, int nr,
nr                172 include/linux/sh_clk.h int sh_clk_div4_reparent_register(struct clk *clks, int nr,
nr                197 include/linux/sh_clk.h int sh_clk_div6_register(struct clk *clks, int nr);
nr                198 include/linux/sh_clk.h int sh_clk_div6_reparent_register(struct clk *clks, int nr);
nr                211 include/linux/sh_clk.h int sh_clk_fsidiv_register(struct clk *clks, int nr);
nr                 78 include/linux/sh_intc.h #define INTC_SMP(stride, nr)	.smp = (stride) | ((nr) << 8)
nr                 80 include/linux/sh_intc.h #define INTC_SMP(stride, nr)
nr                 82 include/linux/spmi.h 	unsigned int		nr;
nr                199 include/linux/sunrpc/sched.h 	unsigned char		nr;			/* # tasks remaining for cookie */
nr                506 include/linux/swap.h #define free_pages_and_swap_cache(pages, nr) \
nr                507 include/linux/swap.h 	release_pages((pages), (nr));
nr                 17 include/linux/swap_slots.h 	int		nr;
nr                297 include/linux/syscalls.h 				long nr,
nr                302 include/linux/syscalls.h 				__s32 nr,
nr                307 include/linux/syscalls.h 				long nr,
nr                313 include/linux/syscalls.h 				long nr,
nr                188 include/linux/tty_ldisc.h 			unsigned char __user *buf, size_t nr);
nr                190 include/linux/tty_ldisc.h 			 const unsigned char *buf, size_t nr);
nr                200 include/linux/wait.h void __wake_up(struct wait_queue_head *wq_head, unsigned int mode, int nr, void *key);
nr                204 include/linux/wait.h void __wake_up_sync_key(struct wait_queue_head *wq_head, unsigned int mode, int nr, void *key);
nr                205 include/linux/wait.h void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr);
nr                206 include/linux/wait.h void __wake_up_sync(struct wait_queue_head *wq_head, unsigned int mode, int nr);
nr                209 include/linux/wait.h #define wake_up_nr(x, nr)		__wake_up(x, TASK_NORMAL, nr, NULL)
nr                215 include/linux/wait.h #define wake_up_interruptible_nr(x, nr)	__wake_up(x, TASK_INTERRUPTIBLE, nr, NULL)
nr                192 include/linux/writeback.h void writeback_inodes_sb_nr(struct super_block *, unsigned long nr,
nr                 76 include/media/soc_camera.h 	unsigned char nr;		/* Host number */
nr                353 include/media/v4l2-dev.h 					 int nr, int warn_if_nr_in_use,
nr                375 include/media/v4l2-dev.h 						     int nr)
nr                377 include/media/v4l2-dev.h 	return __video_register_device(vdev, type, nr, 1, vdev->fops->owner);
nr                402 include/media/v4l2-dev.h 			      enum vfl_devnode_type type, int nr)
nr                404 include/media/v4l2-dev.h 	return __video_register_device(vdev, type, nr, 0, vdev->fops->owner);
nr                375 include/net/bluetooth/bluetooth.h void hci_sock_set_flag(struct sock *sk, int nr);
nr                376 include/net/bluetooth/bluetooth.h void hci_sock_clear_flag(struct sock *sk, int nr);
nr                377 include/net/bluetooth/bluetooth.h int hci_sock_test_flag(struct sock *sk, int nr);
nr                575 include/net/bluetooth/hci_core.h #define hci_dev_set_flag(hdev, nr)             set_bit((nr), (hdev)->dev_flags)
nr                576 include/net/bluetooth/hci_core.h #define hci_dev_clear_flag(hdev, nr)           clear_bit((nr), (hdev)->dev_flags)
nr                577 include/net/bluetooth/hci_core.h #define hci_dev_change_flag(hdev, nr)          change_bit((nr), (hdev)->dev_flags)
nr                578 include/net/bluetooth/hci_core.h #define hci_dev_test_flag(hdev, nr)            test_bit((nr), (hdev)->dev_flags)
nr                579 include/net/bluetooth/hci_core.h #define hci_dev_test_and_set_flag(hdev, nr)    test_and_set_bit((nr), (hdev)->dev_flags)
nr                580 include/net/bluetooth/hci_core.h #define hci_dev_test_and_clear_flag(hdev, nr)  test_and_clear_bit((nr), (hdev)->dev_flags)
nr                581 include/net/bluetooth/hci_core.h #define hci_dev_test_and_change_flag(hdev, nr) test_and_change_bit((nr), (hdev)->dev_flags)
nr                 74 include/net/lapb.h 	unsigned short		nr, ns;		/* N(R), N(S)		*/
nr                109 include/net/llc_conn.h void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit);
nr                110 include/net/llc_conn.h void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit);
nr                111 include/net/llc_conn.h int llc_conn_remove_acked_pdus(struct sock *conn, u8 nr, u16 *how_many_unacked);
nr                417 include/net/llc_pdu.h void llc_pdu_init_as_i_cmd(struct sk_buff *skb, u8 p_bit, u8 ns, u8 nr);
nr                418 include/net/llc_pdu.h void llc_pdu_init_as_rej_cmd(struct sk_buff *skb, u8 p_bit, u8 nr);
nr                419 include/net/llc_pdu.h void llc_pdu_init_as_rnr_cmd(struct sk_buff *skb, u8 p_bit, u8 nr);
nr                420 include/net/llc_pdu.h void llc_pdu_init_as_rr_cmd(struct sk_buff *skb, u8 p_bit, u8 nr);
nr                425 include/net/llc_pdu.h void llc_pdu_init_as_rr_rsp(struct sk_buff *skb, u8 f_bit, u8 nr);
nr                426 include/net/llc_pdu.h void llc_pdu_init_as_rej_rsp(struct sk_buff *skb, u8 f_bit, u8 nr);
nr                427 include/net/llc_pdu.h void llc_pdu_init_as_rnr_rsp(struct sk_buff *skb, u8 f_bit, u8 nr);
nr               2194 include/net/sock.h static inline void sk_set_bit(int nr, struct sock *sk)
nr               2196 include/net/sock.h 	if ((nr == SOCKWQ_ASYNC_NOSPACE || nr == SOCKWQ_ASYNC_WAITDATA) &&
nr               2200 include/net/sock.h 	set_bit(nr, &sk->sk_wq_raw->flags);
nr               2203 include/net/sock.h static inline void sk_clear_bit(int nr, struct sock *sk)
nr               2205 include/net/sock.h 	if ((nr == SOCKWQ_ASYNC_NOSPACE || nr == SOCKWQ_ASYNC_WAITDATA) &&
nr               2209 include/net/sock.h 	clear_bit(nr, &sk->sk_wq_raw->flags);
nr                 13 include/rdma/mr_pool.h int ib_mr_pool_init(struct ib_qp *qp, struct list_head *list, int nr,
nr                 35 include/sound/ac97/controller.h 	int nr;
nr                775 include/trace/events/afs.h 		    __field(unsigned int,		nr		)
nr                785 include/trace/events/afs.h 		    __entry->nr = msg->msg_iter.nr_segs;
nr                793 include/trace/events/afs.h 		      __entry->first, __entry->first + __entry->nr - 1, __entry->last,
nr                 37 include/trace/events/i2c.h 		       __entry->adapter_nr = adap->nr;
nr                 70 include/trace/events/i2c.h 		       __entry->adapter_nr = adap->nr;
nr                101 include/trace/events/i2c.h 		       __entry->adapter_nr = adap->nr;
nr                131 include/trace/events/i2c.h 		       __entry->adapter_nr = adap->nr;
nr                641 include/trace/events/rcu.h 		 char cb, char nr, char iit, char risk),
nr                643 include/trace/events/rcu.h 	TP_ARGS(rcuname, callbacks_invoked, cb, nr, iit, risk),
nr                649 include/trace/events/rcu.h 		__field(char, nr)
nr                658 include/trace/events/rcu.h 		__entry->nr = nr;
nr                666 include/trace/events/rcu.h 		  __entry->nr ? 'S' : '.',
nr                 41 include/trace/events/smbus.h 		__entry->adapter_nr = adap->nr;
nr                107 include/trace/events/smbus.h 		__entry->adapter_nr = adap->nr;
nr                149 include/trace/events/smbus.h 		__entry->adapter_nr = adap->nr;
nr                215 include/trace/events/smbus.h 		    __entry->adapter_nr = adap->nr;
nr                 69 include/uapi/asm-generic/ioctl.h #define _IOC(dir,type,nr,size) \
nr                 72 include/uapi/asm-generic/ioctl.h 	 ((nr)   << _IOC_NRSHIFT) | \
nr                 85 include/uapi/asm-generic/ioctl.h #define _IO(type,nr)		_IOC(_IOC_NONE,(type),(nr),0)
nr                 86 include/uapi/asm-generic/ioctl.h #define _IOR(type,nr,size)	_IOC(_IOC_READ,(type),(nr),(_IOC_TYPECHECK(size)))
nr                 87 include/uapi/asm-generic/ioctl.h #define _IOW(type,nr,size)	_IOC(_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
nr                 88 include/uapi/asm-generic/ioctl.h #define _IOWR(type,nr,size)	_IOC(_IOC_READ|_IOC_WRITE,(type),(nr),(_IOC_TYPECHECK(size)))
nr                 89 include/uapi/asm-generic/ioctl.h #define _IOR_BAD(type,nr,size)	_IOC(_IOC_READ,(type),(nr),sizeof(size))
nr                 90 include/uapi/asm-generic/ioctl.h #define _IOW_BAD(type,nr,size)	_IOC(_IOC_WRITE,(type),(nr),sizeof(size))
nr                 91 include/uapi/asm-generic/ioctl.h #define _IOWR_BAD(type,nr,size)	_IOC(_IOC_READ|_IOC_WRITE,(type),(nr),sizeof(size))
nr                 94 include/uapi/asm-generic/ioctl.h #define _IOC_DIR(nr)		(((nr) >> _IOC_DIRSHIFT) & _IOC_DIRMASK)
nr                 95 include/uapi/asm-generic/ioctl.h #define _IOC_TYPE(nr)		(((nr) >> _IOC_TYPESHIFT) & _IOC_TYPEMASK)
nr                 96 include/uapi/asm-generic/ioctl.h #define _IOC_NR(nr)		(((nr) >> _IOC_NRSHIFT) & _IOC_NRMASK)
nr                 97 include/uapi/asm-generic/ioctl.h #define _IOC_SIZE(nr)		(((nr) >> _IOC_SIZESHIFT) & _IOC_SIZEMASK)
nr                822 include/uapi/drm/drm.h #define DRM_IO(nr)			_IO(DRM_IOCTL_BASE,nr)
nr                823 include/uapi/drm/drm.h #define DRM_IOR(nr,type)		_IOR(DRM_IOCTL_BASE,nr,type)
nr                824 include/uapi/drm/drm.h #define DRM_IOW(nr,type)		_IOW(DRM_IOCTL_BASE,nr,type)
nr                825 include/uapi/drm/drm.h #define DRM_IOWR(nr,type)		_IOWR(DRM_IOCTL_BASE,nr,type)
nr                181 include/uapi/linux/audit.h #define AUDIT_WORD(nr) ((__u32)((nr)/32))
nr                182 include/uapi/linux/audit.h #define AUDIT_BIT(nr)  (1 << ((nr) - AUDIT_WORD(nr)*32))
nr                 74 include/uapi/linux/fsmap.h 	unsigned int	nr)
nr                 76 include/uapi/linux/fsmap.h 	return sizeof(struct fsmap_head) + nr * sizeof(struct fsmap);
nr                439 include/uapi/linux/kfd_ioctl.h #define AMDKFD_IO(nr)			_IO(AMDKFD_IOCTL_BASE, nr)
nr                440 include/uapi/linux/kfd_ioctl.h #define AMDKFD_IOR(nr, type)		_IOR(AMDKFD_IOCTL_BASE, nr, type)
nr                441 include/uapi/linux/kfd_ioctl.h #define AMDKFD_IOW(nr, type)		_IOW(AMDKFD_IOCTL_BASE, nr, type)
nr                442 include/uapi/linux/kfd_ioctl.h #define AMDKFD_IOWR(nr, type)		_IOWR(AMDKFD_IOCTL_BASE, nr, type)
nr                308 include/uapi/linux/kvm.h 			__u64 nr;
nr                357 include/uapi/linux/kvm.h 			__u64 nr;
nr               1055 include/uapi/linux/kvm.h 	__u32 nr;
nr                 62 include/uapi/linux/ptrace.h 	__s32 nr;	/* how may siginfos to take */
nr                 89 include/uapi/linux/ptrace.h 			__u64 nr;
nr                 97 include/uapi/linux/ptrace.h 			__u64 nr;
nr                 60 include/uapi/linux/seccomp.h 	int nr;
nr                 87 include/uapi/linux/seccomp.h #define SECCOMP_IO(nr)			_IO(SECCOMP_IOC_MAGIC, nr)
nr                 88 include/uapi/linux/seccomp.h #define SECCOMP_IOR(nr, type)		_IOR(SECCOMP_IOC_MAGIC, nr, type)
nr                 89 include/uapi/linux/seccomp.h #define SECCOMP_IOW(nr, type)		_IOW(SECCOMP_IOC_MAGIC, nr, type)
nr                 90 include/uapi/linux/seccomp.h #define SECCOMP_IOWR(nr, type)		_IOWR(SECCOMP_IOC_MAGIC, nr, type)
nr                 66 include/xen/arm/hypercall.h int HYPERVISOR_multicall(struct multicall_entry *calls, uint32_t nr);
nr                 66 include/xen/xen-ops.h 		  xen_pfn_t *pfn, int nr, int *err_ptr, pgprot_t prot,
nr                 70 include/xen/xen-ops.h 				xen_pfn_t *pfn, int nr, int *err_ptr,
nr                 84 include/xen/xen-ops.h 			      xen_pfn_t *gfn, int nr,
nr                 89 include/xen/xen-ops.h 			      int nr, struct page **pages);
nr                 97 include/xen/xen-ops.h 					    xen_pfn_t *gfn, int nr,
nr                106 include/xen/xen-ops.h 					    int nr, struct page **pages)
nr                134 include/xen/xen-ops.h 					     xen_pfn_t *gfn, int nr,
nr                140 include/xen/xen-ops.h 		return xen_xlate_remap_gfn_array(vma, addr, gfn, nr, err_ptr,
nr                148 include/xen/xen-ops.h 	return xen_remap_pfn(vma, addr, gfn, nr, err_ptr, prot, domid,
nr                171 include/xen/xen-ops.h 					     int nr, int *err_ptr,
nr                178 include/xen/xen-ops.h 	return xen_remap_pfn(vma, addr, mfn, nr, err_ptr, prot, domid,
nr                196 include/xen/xen-ops.h 					     xen_pfn_t gfn, int nr,
nr                203 include/xen/xen-ops.h 	return xen_remap_pfn(vma, addr, &gfn, nr, NULL, prot, domid, false,
nr                 21 kernel/bpf/stackmap.c 	u32 nr;
nr                376 kernel/bpf/stackmap.c 	trace_nr = trace->nr - init_nr;
nr                400 kernel/bpf/stackmap.c 		new_bucket->nr = trace_nr;
nr                405 kernel/bpf/stackmap.c 		if (hash_matches && bucket->nr == trace_nr &&
nr                415 kernel/bpf/stackmap.c 		if (hash_matches && bucket->nr == trace_nr &&
nr                429 kernel/bpf/stackmap.c 	new_bucket->nr = trace_nr;
nr                479 kernel/bpf/stackmap.c 	trace_nr = trace->nr - init_nr;
nr                533 kernel/bpf/stackmap.c 	trace_len = bucket->nr * stack_map_data_size(map);
nr                194 kernel/events/callchain.c 	ctx.nr	      = entry->nr = init_nr;
nr               1328 kernel/events/core.c 	u32 nr;
nr               1335 kernel/events/core.c 	nr = __task_pid_nr_ns(p, type, event->ns);
nr               1337 kernel/events/core.c 	if (!nr && !pid_alive(p))
nr               1338 kernel/events/core.c 		nr = -1;
nr               1339 kernel/events/core.c 	return nr;
nr               1712 kernel/events/core.c 	int nr = 1;
nr               1724 kernel/events/core.c 		nr += nr_siblings;
nr               1728 kernel/events/core.c 	size += entry * nr;
nr               6401 kernel/events/core.c 		size += data->callchain->nr;
nr               6443 kernel/events/core.c 			size = data->br_stack->nr
nr               6446 kernel/events/core.c 			perf_output_put(handle, data->br_stack->nr);
nr               6452 kernel/events/core.c 			u64 nr = 0;
nr               6453 kernel/events/core.c 			perf_output_put(handle, nr);
nr               6559 kernel/events/core.c static struct perf_callchain_entry __empty_callchain = { .nr = 0, };
nr               6603 kernel/events/core.c 		size += data->callchain->nr;
nr               6636 kernel/events/core.c 			size += data->br_stack->nr
nr               8254 kernel/events/core.c 	u64 nr, offset;
nr               8264 kernel/events/core.c 	nr = div64_u64(period + val, period);
nr               8265 kernel/events/core.c 	offset = nr * period;
nr               8270 kernel/events/core.c 	return nr;
nr               8299 kernel/events/core.c static void perf_swevent_event(struct perf_event *event, u64 nr,
nr               8305 kernel/events/core.c 	local64_add(nr, &event->count);
nr               8314 kernel/events/core.c 		data->period = nr;
nr               8319 kernel/events/core.c 	if (nr == 1 && hwc->sample_period == 1 && !event->attr.freq)
nr               8322 kernel/events/core.c 	if (local64_add_negative(nr, &hwc->period_left))
nr               8413 kernel/events/core.c 				    u64 nr,
nr               8428 kernel/events/core.c 			perf_swevent_event(event, nr, data, regs);
nr               8451 kernel/events/core.c void ___perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr)
nr               8459 kernel/events/core.c 	do_perf_sw_event(PERF_TYPE_SOFTWARE, event_id, nr, &data, regs);
nr               8462 kernel/events/core.c void __perf_sw_event(u32 event_id, u64 nr, struct pt_regs *regs, u64 addr)
nr               8471 kernel/events/core.c 	___perf_sw_event(event_id, nr, regs, addr);
nr                141 kernel/events/hw_breakpoint.c 		int nr;
nr                143 kernel/events/hw_breakpoint.c 		nr = info->cpu_pinned;
nr                145 kernel/events/hw_breakpoint.c 			nr += max_task_bp_pinned(cpu, type);
nr                147 kernel/events/hw_breakpoint.c 			nr += task_bp_pinned(cpu, bp, type);
nr                149 kernel/events/hw_breakpoint.c 		if (nr > slots->pinned)
nr                150 kernel/events/hw_breakpoint.c 			slots->pinned = nr;
nr                152 kernel/events/hw_breakpoint.c 		nr = info->flexible;
nr                153 kernel/events/hw_breakpoint.c 		if (nr > slots->flexible)
nr                154 kernel/events/hw_breakpoint.c 			slots->flexible = nr;
nr                847 kernel/events/ring_buffer.c 	int i, nr;
nr                850 kernel/events/ring_buffer.c 	nr = data_page_nr(rb);
nr                854 kernel/events/ring_buffer.c 	for (i = 0; i <= nr; i++)
nr               2336 kernel/fork.c  	long nr;
nr               2369 kernel/fork.c  	nr = pid_vnr(pid);
nr               2372 kernel/fork.c  		put_user(nr, args->parent_tid);
nr               2392 kernel/fork.c  	return nr;
nr                104 kernel/irq/internals.h extern void init_kstat_irqs(struct irq_desc *desc, int node, int nr);
nr                511 kernel/irq/irqdesc.c static int irq_expand_nr_irqs(unsigned int nr)
nr                513 kernel/irq/irqdesc.c 	if (nr > IRQ_BITMAP_BITS)
nr                515 kernel/irq/irqdesc.c 	nr_irqs = nr;
nr                612 kernel/irq/irqdesc.c static int irq_expand_nr_irqs(unsigned int nr)
nr                207 kernel/locking/lockdep.c 	if (time < lt->min || !lt->nr)
nr                211 kernel/locking/lockdep.c 	lt->nr++;
nr                216 kernel/locking/lockdep.c 	if (!src->nr)
nr                222 kernel/locking/lockdep.c 	if (src->min < dst->min || !dst->nr)
nr                226 kernel/locking/lockdep.c 	dst->nr += src->nr;
nr               1408 kernel/locking/lockdep.c 	unsigned long nr;
nr               1410 kernel/locking/lockdep.c 	nr = lock - list_entries;
nr               1411 kernel/locking/lockdep.c 	WARN_ON(nr >= ARRAY_SIZE(list_entries)); /* Out-of-bounds, input fail */
nr               1418 kernel/locking/lockdep.c 	unsigned long nr;
nr               1420 kernel/locking/lockdep.c 	nr = lock - list_entries;
nr               1421 kernel/locking/lockdep.c 	WARN_ON(nr >= ARRAY_SIZE(list_entries)); /* Out-of-bounds, input fail */
nr                360 kernel/locking/lockdep_proc.c 	unsigned long nl, nr;
nr                362 kernel/locking/lockdep_proc.c 	nl = dl->stats.read_waittime.nr + dl->stats.write_waittime.nr;
nr                363 kernel/locking/lockdep_proc.c 	nr = dr->stats.read_waittime.nr + dr->stats.write_waittime.nr;
nr                365 kernel/locking/lockdep_proc.c 	return nr - nl;
nr                379 kernel/locking/lockdep_proc.c static void snprint_time(char *buf, size_t bufsiz, s64 nr)
nr                384 kernel/locking/lockdep_proc.c 	nr += 5; /* for display rounding */
nr                385 kernel/locking/lockdep_proc.c 	div = div_s64_rem(nr, 1000, &rem);
nr                399 kernel/locking/lockdep_proc.c 	seq_printf(m, "%14lu", lt->nr);
nr                403 kernel/locking/lockdep_proc.c 	seq_time(m, lt->nr ? div_s64(lt->total, lt->nr) : 0);
nr                453 kernel/locking/lockdep_proc.c 	if (stats->write_holdtime.nr) {
nr                454 kernel/locking/lockdep_proc.c 		if (stats->read_holdtime.nr)
nr                466 kernel/locking/lockdep_proc.c 	if (stats->read_holdtime.nr) {
nr                475 kernel/locking/lockdep_proc.c 	if (stats->read_waittime.nr + stats->write_waittime.nr == 0)
nr                478 kernel/locking/lockdep_proc.c 	if (stats->read_holdtime.nr)
nr                 55 kernel/pid.c   		.nr		= 0,
nr                153 kernel/pid.c   		idr_remove(&ns->idr, upid->nr);
nr                164 kernel/pid.c   	int i, nr;
nr                193 kernel/pid.c   		nr = idr_alloc_cyclic(&tmp->idr, NULL, pid_min,
nr                198 kernel/pid.c   		if (nr < 0) {
nr                199 kernel/pid.c   			retval = (nr == -ENOSPC) ? -EAGAIN : nr;
nr                203 kernel/pid.c   		pid->numbers[i].nr = nr;
nr                226 kernel/pid.c   		idr_replace(&upid->ns->idr, pid, upid->nr);
nr                241 kernel/pid.c   		idr_remove(&upid->ns->idr, upid->nr);
nr                261 kernel/pid.c   struct pid *find_pid_ns(int nr, struct pid_namespace *ns)
nr                263 kernel/pid.c   	return idr_find(&ns->idr, nr);
nr                267 kernel/pid.c   struct pid *find_vpid(int nr)
nr                269 kernel/pid.c   	return find_pid_ns(nr, task_active_pid_ns(current));
nr                346 kernel/pid.c   struct task_struct *find_task_by_pid_ns(pid_t nr, struct pid_namespace *ns)
nr                350 kernel/pid.c   	return pid_task(find_pid_ns(nr, ns), PIDTYPE_PID);
nr                358 kernel/pid.c   struct task_struct *find_get_task_by_vpid(pid_t nr)
nr                363 kernel/pid.c   	task = find_task_by_vpid(nr);
nr                393 kernel/pid.c   struct pid *find_get_pid(pid_t nr)
nr                398 kernel/pid.c   	pid = get_pid(find_vpid(nr));
nr                408 kernel/pid.c   	pid_t nr = 0;
nr                413 kernel/pid.c   			nr = upid->nr;
nr                415 kernel/pid.c   	return nr;
nr                428 kernel/pid.c   	pid_t nr = 0;
nr                434 kernel/pid.c   		nr = pid_nr_ns(rcu_dereference(*task_pid_ptr(task, type)), ns);
nr                437 kernel/pid.c   	return nr;
nr                452 kernel/pid.c   struct pid *find_ge_pid(int nr, struct pid_namespace *ns)
nr                454 kernel/pid.c   	return idr_get_next(&ns->idr, &nr);
nr                183 kernel/pid_namespace.c 	int nr;
nr                216 kernel/pid_namespace.c 	nr = 2;
nr                217 kernel/pid_namespace.c 	idr_for_each_entry_continue(&pid_ns->idr, pid, nr) {
nr                723 kernel/ptrace.c 	if (arg.nr < 0)
nr                735 kernel/ptrace.c 	for (i = 0; i < arg.nr; ) {
nr                916 kernel/ptrace.c 	info->entry.nr = syscall_get_nr(child, regs);
nr                573 kernel/rcu/rcuperf.c 	int nr;
nr                576 kernel/rcu/rcuperf.c 		nr = n;
nr                578 kernel/rcu/rcuperf.c 		nr = num_online_cpus() + 1 + n;
nr                579 kernel/rcu/rcuperf.c 		if (nr <= 0)
nr                580 kernel/rcu/rcuperf.c 			nr = 1;
nr                582 kernel/rcu/rcuperf.c 	return nr;
nr               3476 kernel/sched/fair.c 	if (cfs_rq->removed.nr) {
nr               3484 kernel/sched/fair.c 		cfs_rq->removed.nr = 0;
nr               3676 kernel/sched/fair.c 	++cfs_rq->removed.nr;
nr               5966 kernel/sched/fair.c 	int cpu, nr = INT_MAX, si_cpu = -1;
nr               5985 kernel/sched/fair.c 			nr = div_u64(span_avg, avg_cost);
nr               5987 kernel/sched/fair.c 			nr = 4;
nr               5995 kernel/sched/fair.c 		if (!--nr)
nr                534 kernel/sched/sched.h 		int		nr;
nr                149 kernel/sched/wait.c void __wake_up_locked(struct wait_queue_head *wq_head, unsigned int mode, int nr)
nr                151 kernel/sched/wait.c 	__wake_up_common(wq_head, mode, nr, 0, NULL, NULL);
nr                150 kernel/seccomp.c 	sd->nr = syscall_get_nr(task, regs);
nr                929 kernel/seccomp.c 	this_syscall = sd ? sd->nr :
nr                423 kernel/softirq.c inline void raise_softirq_irqoff(unsigned int nr)
nr                425 kernel/softirq.c 	__raise_softirq_irqoff(nr);
nr                440 kernel/softirq.c void raise_softirq(unsigned int nr)
nr                445 kernel/softirq.c 	raise_softirq_irqoff(nr);
nr                449 kernel/softirq.c void __raise_softirq_irqoff(unsigned int nr)
nr                451 kernel/softirq.c 	trace_softirq_raise(nr);
nr                452 kernel/softirq.c 	or_softirq_pending(1UL << nr);
nr                455 kernel/softirq.c void open_softirq(int nr, void (*action)(struct softirq_action *))
nr                457 kernel/softirq.c 	softirq_vec[nr].action = action;
nr                112 kernel/time/posix-timers.c static int hash(struct signal_struct *sig, unsigned int nr)
nr                114 kernel/time/posix-timers.c 	return hash_32(hash32_ptr(sig) ^ nr, HASH_BITS(posix_timers_hashtable));
nr                100 kernel/trace/trace.h 	int			nr;
nr                106 kernel/trace/trace.h 	int			nr;
nr                102 kernel/trace/trace_syscalls.c static struct syscall_metadata *syscall_nr_to_meta(int nr)
nr                104 kernel/trace/trace_syscalls.c 	if (!syscalls_metadata || nr >= NR_syscalls || nr < 0)
nr                107 kernel/trace/trace_syscalls.c 	return syscalls_metadata[nr];
nr                133 kernel/trace/trace_syscalls.c 	syscall = trace->nr;
nr                179 kernel/trace/trace_syscalls.c 	syscall = trace->nr;
nr                276 kernel/trace/trace_syscalls.c 	ret = trace_define_field(call, SYSCALL_FIELD(int, nr, __syscall_nr),
nr                297 kernel/trace/trace_syscalls.c 	ret = trace_define_field(call, SYSCALL_FIELD(int, nr, __syscall_nr),
nr                350 kernel/trace/trace_syscalls.c 	entry->nr = syscall_nr;
nr                397 kernel/trace/trace_syscalls.c 	entry->nr = syscall_nr;
nr                529 kernel/trace/trace_syscalls.c unsigned long __init __weak arch_syscall_addr(int nr)
nr                531 kernel/trace/trace_syscalls.c 	return (unsigned long)sys_call_table[nr];
nr                577 kernel/trace/trace_syscalls.c 	param.syscall_nr = rec->nr;
nr                618 kernel/trace/trace_syscalls.c 	rec->nr = syscall_nr;
nr                678 kernel/trace/trace_syscalls.c 	param.syscall_nr = rec->nr;
nr                716 kernel/trace/trace_syscalls.c 	rec->nr = syscall_nr;
nr                191 lib/bitmap.c   	unsigned int nr = BITS_TO_LONGS(bits);
nr                193 lib/bitmap.c   	for (k = 0; k < nr; k++)
nr                202 lib/bitmap.c   	unsigned int nr = BITS_TO_LONGS(bits);
nr                204 lib/bitmap.c   	for (k = 0; k < nr; k++)
nr                328 lib/bitmap.c   					     unsigned int nr,
nr                339 lib/bitmap.c   	end = index + nr;
nr                244 lib/devres.c   			       unsigned int nr)
nr                252 lib/devres.c   	addr = ioport_map(port, nr);
nr                 84 lib/genalloc.c static int bitmap_set_ll(unsigned long *map, int start, int nr)
nr                 87 lib/genalloc.c 	const int size = start + nr;
nr                 91 lib/genalloc.c 	while (nr - bits_to_set >= 0) {
nr                 93 lib/genalloc.c 			return nr;
nr                 94 lib/genalloc.c 		nr -= bits_to_set;
nr                 99 lib/genalloc.c 	if (nr) {
nr                102 lib/genalloc.c 			return nr;
nr                119 lib/genalloc.c static int bitmap_clear_ll(unsigned long *map, int start, int nr)
nr                122 lib/genalloc.c 	const int size = start + nr;
nr                126 lib/genalloc.c 	while (nr - bits_to_clear >= 0) {
nr                128 lib/genalloc.c 			return nr;
nr                129 lib/genalloc.c 		nr -= bits_to_clear;
nr                134 lib/genalloc.c 	if (nr) {
nr                137 lib/genalloc.c 			return nr;
nr                644 lib/genalloc.c 		unsigned long start, unsigned int nr, void *data,
nr                647 lib/genalloc.c 	return bitmap_find_next_zero_area(map, size, start, nr, 0);
nr                662 lib/genalloc.c 		unsigned long start, unsigned int nr, void *data,
nr                674 lib/genalloc.c 	return bitmap_find_next_zero_area_off(map, size, start, nr,
nr                689 lib/genalloc.c 		unsigned long start, unsigned int nr, void *data,
nr                704 lib/genalloc.c 			start + offset_bit, nr, 0);
nr                724 lib/genalloc.c 		unsigned int nr, void *data, struct gen_pool *pool,
nr                727 lib/genalloc.c 	unsigned long align_mask = roundup_pow_of_two(nr) - 1;
nr                729 lib/genalloc.c 	return bitmap_find_next_zero_area(map, size, start, nr, align_mask);
nr                747 lib/genalloc.c 		unsigned long start, unsigned int nr, void *data,
nr                754 lib/genalloc.c 	index = bitmap_find_next_zero_area(map, size, start, nr, 0);
nr                757 lib/genalloc.c 		int next_bit = find_next_bit(map, size, index + nr);
nr                761 lib/genalloc.c 			if (len == nr)
nr                765 lib/genalloc.c 						   next_bit + 1, nr, 0);
nr                362 lib/iomap.c    void __iomem *ioport_map(unsigned long port, unsigned int nr)
nr                 10 lib/iommu-helper.c 			       unsigned long start, unsigned int nr,
nr                 19 lib/iommu-helper.c 	index = bitmap_find_next_zero_area(map, size, start, nr, align_mask);
nr                 21 lib/iommu-helper.c 		if (iommu_is_span_boundary(index, nr, shift, boundary_size)) {
nr                 25 lib/iommu-helper.c 		bitmap_set(map, index, nr);
nr               1192 lib/locking-selftest.c #define DO_TESTCASE_1(desc, name, nr)				\
nr               1193 lib/locking-selftest.c 	print_testname(desc"/"#nr);				\
nr               1194 lib/locking-selftest.c 	dotest(name##_##nr, SUCCESS, LOCKTYPE_RWLOCK);		\
nr               1197 lib/locking-selftest.c #define DO_TESTCASE_1B(desc, name, nr)				\
nr               1198 lib/locking-selftest.c 	print_testname(desc"/"#nr);				\
nr               1199 lib/locking-selftest.c 	dotest(name##_##nr, FAILURE, LOCKTYPE_RWLOCK);		\
nr               1202 lib/locking-selftest.c #define DO_TESTCASE_3(desc, name, nr)				\
nr               1203 lib/locking-selftest.c 	print_testname(desc"/"#nr);				\
nr               1204 lib/locking-selftest.c 	dotest(name##_spin_##nr, FAILURE, LOCKTYPE_SPIN);	\
nr               1205 lib/locking-selftest.c 	dotest(name##_wlock_##nr, FAILURE, LOCKTYPE_RWLOCK);	\
nr               1206 lib/locking-selftest.c 	dotest(name##_rlock_##nr, SUCCESS, LOCKTYPE_RWLOCK);	\
nr               1209 lib/locking-selftest.c #define DO_TESTCASE_3RW(desc, name, nr)				\
nr               1210 lib/locking-selftest.c 	print_testname(desc"/"#nr);				\
nr               1211 lib/locking-selftest.c 	dotest(name##_spin_##nr, FAILURE, LOCKTYPE_SPIN|LOCKTYPE_RWLOCK);\
nr               1212 lib/locking-selftest.c 	dotest(name##_wlock_##nr, FAILURE, LOCKTYPE_RWLOCK);	\
nr               1213 lib/locking-selftest.c 	dotest(name##_rlock_##nr, SUCCESS, LOCKTYPE_RWLOCK);	\
nr               1252 lib/locking-selftest.c #define DO_TESTCASE_2I(desc, name, nr)				\
nr               1253 lib/locking-selftest.c 	DO_TESTCASE_1("hard-"desc, name##_hard, nr);		\
nr               1254 lib/locking-selftest.c 	DO_TESTCASE_1("soft-"desc, name##_soft, nr);
nr               1256 lib/locking-selftest.c #define DO_TESTCASE_2IB(desc, name, nr)				\
nr               1257 lib/locking-selftest.c 	DO_TESTCASE_1B("hard-"desc, name##_hard, nr);		\
nr               1258 lib/locking-selftest.c 	DO_TESTCASE_1B("soft-"desc, name##_soft, nr);
nr               1260 lib/locking-selftest.c #define DO_TESTCASE_6I(desc, name, nr)				\
nr               1261 lib/locking-selftest.c 	DO_TESTCASE_3("hard-"desc, name##_hard, nr);		\
nr               1262 lib/locking-selftest.c 	DO_TESTCASE_3("soft-"desc, name##_soft, nr);
nr               1264 lib/locking-selftest.c #define DO_TESTCASE_6IRW(desc, name, nr)			\
nr               1265 lib/locking-selftest.c 	DO_TESTCASE_3RW("hard-"desc, name##_hard, nr);		\
nr               1266 lib/locking-selftest.c 	DO_TESTCASE_3RW("soft-"desc, name##_soft, nr);
nr                 13 lib/memcat_p.c 	int nr;
nr                 16 lib/memcat_p.c 	for (nr = 0, p = a; *p; nr++, p++)
nr                 18 lib/memcat_p.c 	for (p = b; *p; nr++, p++)
nr                 21 lib/memcat_p.c 	nr++;
nr                 23 lib/memcat_p.c 	new = kmalloc_array(nr, sizeof(void *), GFP_KERNEL);
nr                 28 lib/memcat_p.c 	for (nr--; nr >= 0; nr--, p = p == b ? &a[nr] : p - 1)
nr                 29 lib/memcat_p.c 		new[nr] = *p;
nr                170 lib/percpu_counter.c 	int nr = num_online_cpus();
nr                172 lib/percpu_counter.c 	percpu_counter_batch = max(32, nr*2);
nr                 70 lib/radix-tree.c 	unsigned nr;
nr                273 lib/radix-tree.c 		if (rtp->nr) {
nr                276 lib/radix-tree.c 			rtp->nr--;
nr                331 lib/radix-tree.c static __must_check int __radix_tree_preload(gfp_t gfp_mask, unsigned nr)
nr                345 lib/radix-tree.c 	while (rtp->nr < nr) {
nr                352 lib/radix-tree.c 		if (rtp->nr < nr) {
nr                355 lib/radix-tree.c 			rtp->nr++;
nr               1594 lib/radix-tree.c 	while (rtp->nr) {
nr               1598 lib/radix-tree.c 		rtp->nr--;
nr                111 lib/sbitmap.c  	int nr;
nr                114 lib/sbitmap.c  		nr = find_next_zero_bit(word, depth, hint);
nr                115 lib/sbitmap.c  		if (unlikely(nr >= depth)) {
nr                128 lib/sbitmap.c  		if (!test_and_set_bit_lock(nr, word))
nr                131 lib/sbitmap.c  		hint = nr + 1;
nr                136 lib/sbitmap.c  	return nr;
nr                142 lib/sbitmap.c  	int nr;
nr                145 lib/sbitmap.c  		nr = __sbitmap_get_word(&sb->map[index].word,
nr                148 lib/sbitmap.c  		if (nr != -1)
nr                154 lib/sbitmap.c  	return nr;
nr                160 lib/sbitmap.c  	int nr = -1;
nr                175 lib/sbitmap.c  		nr = sbitmap_find_bit_in_index(sb, index, alloc_hint,
nr                177 lib/sbitmap.c  		if (nr != -1) {
nr                178 lib/sbitmap.c  			nr += index << sb->shift;
nr                188 lib/sbitmap.c  	return nr;
nr                196 lib/sbitmap.c  	int nr = -1;
nr                202 lib/sbitmap.c  		nr = __sbitmap_get_word(&sb->map[index].word,
nr                205 lib/sbitmap.c  		if (nr != -1) {
nr                206 lib/sbitmap.c  			nr += index << sb->shift;
nr                223 lib/sbitmap.c  	return nr;
nr                441 lib/sbitmap.c  	int nr;
nr                449 lib/sbitmap.c  	nr = sbitmap_get(&sbq->sb, hint, sbq->round_robin);
nr                451 lib/sbitmap.c  	if (nr == -1) {
nr                454 lib/sbitmap.c  	} else if (nr == hint || unlikely(sbq->round_robin)) {
nr                456 lib/sbitmap.c  		hint = nr + 1;
nr                462 lib/sbitmap.c  	return nr;
nr                470 lib/sbitmap.c  	int nr;
nr                480 lib/sbitmap.c  	nr = sbitmap_get_shallow(&sbq->sb, hint, shallow_depth);
nr                482 lib/sbitmap.c  	if (nr == -1) {
nr                485 lib/sbitmap.c  	} else if (nr == hint || unlikely(sbq->round_robin)) {
nr                487 lib/sbitmap.c  		hint = nr + 1;
nr                493 lib/sbitmap.c  	return nr;
nr                576 lib/sbitmap.c  void sbitmap_queue_clear(struct sbitmap_queue *sbq, unsigned int nr,
nr                590 lib/sbitmap.c  	sbitmap_deferred_clear_bit(&sbq->sb, nr);
nr                601 lib/sbitmap.c  	if (likely(!sbq->round_robin && nr < sbq->sb.depth))
nr                602 lib/sbitmap.c  		*per_cpu_ptr(sbq->alloc_hint, cpu) = nr;
nr                 15 lib/syscall.c  		info->data.nr = -1;
nr                 28 lib/syscall.c  	info->data.nr = syscall_get_nr(target, regs);
nr                 29 lib/syscall.c  	if (info->data.nr != -1L)
nr               1392 lib/test_xarray.c 	unsigned long nr = 1UL << order;
nr               1394 lib/test_xarray.c 	for (i = 0; i < nr * nr; i += nr)
nr               1396 lib/test_xarray.c 	for (i = 0; i < nr * nr; i++)
nr                123 mm/filemap.c   	unsigned int nr = 1;
nr                130 mm/filemap.c   		nr = compound_nr(page);
nr                135 mm/filemap.c   	VM_BUG_ON_PAGE(nr != 1 && shadow, page);
nr                144 mm/filemap.c   		mapping->nrexceptional += nr;
nr                153 mm/filemap.c   	mapping->nrpages -= nr;
nr                159 mm/filemap.c   	int nr;
nr                200 mm/filemap.c   	nr = hpage_nr_pages(page);
nr                202 mm/filemap.c   	__mod_node_page_state(page_pgdat(page), NR_FILE_PAGES, -nr);
nr                204 mm/filemap.c   		__mod_node_page_state(page_pgdat(page), NR_SHMEM, -nr);
nr               1287 mm/filemap.c   static inline bool clear_bit_unlock_is_negative_byte(long nr, volatile void *mem)
nr               1289 mm/filemap.c   	clear_bit_unlock(nr, mem);
nr               2038 mm/filemap.c   		unsigned long nr, ret;
nr               2114 mm/filemap.c   		nr = PAGE_SIZE;
nr               2116 mm/filemap.c   			nr = ((isize - 1) & ~PAGE_MASK) + 1;
nr               2117 mm/filemap.c   			if (nr <= offset) {
nr               2122 mm/filemap.c   		nr = nr - offset;
nr               2144 mm/filemap.c   		ret = copy_page_to_iter(page, offset, nr, iter);
nr               2154 mm/filemap.c   		if (ret < nr) {
nr               1800 mm/gup.c       static void __maybe_unused undo_dev_pagemap(int *nr, int nr_start,
nr               1803 mm/gup.c       	while ((*nr) - nr_start) {
nr               1804 mm/gup.c       		struct page *page = pages[--(*nr)];
nr               1827 mm/gup.c       			 unsigned int flags, struct page **pages, int *nr)
nr               1830 mm/gup.c       	int nr_start = *nr, ret = 0;
nr               1854 mm/gup.c       				undo_dev_pagemap(nr, nr_start, pages);
nr               1875 mm/gup.c       		pages[*nr] = page;
nr               1876 mm/gup.c       		(*nr)++;
nr               1900 mm/gup.c       			 unsigned int flags, struct page **pages, int *nr)
nr               1908 mm/gup.c       		unsigned long end, struct page **pages, int *nr)
nr               1910 mm/gup.c       	int nr_start = *nr;
nr               1918 mm/gup.c       			undo_dev_pagemap(nr, nr_start, pages);
nr               1922 mm/gup.c       		pages[*nr] = page;
nr               1924 mm/gup.c       		(*nr)++;
nr               1934 mm/gup.c       		unsigned long end, struct page **pages, int *nr)
nr               1937 mm/gup.c       	int nr_start = *nr;
nr               1940 mm/gup.c       	if (!__gup_device_huge(fault_pfn, addr, end, pages, nr))
nr               1944 mm/gup.c       		undo_dev_pagemap(nr, nr_start, pages);
nr               1951 mm/gup.c       		unsigned long end, struct page **pages, int *nr)
nr               1954 mm/gup.c       	int nr_start = *nr;
nr               1957 mm/gup.c       	if (!__gup_device_huge(fault_pfn, addr, end, pages, nr))
nr               1961 mm/gup.c       		undo_dev_pagemap(nr, nr_start, pages);
nr               1968 mm/gup.c       		unsigned long end, struct page **pages, int *nr)
nr               1975 mm/gup.c       		unsigned long end, struct page **pages, int *nr)
nr               1992 mm/gup.c       		       struct page **pages, int *nr)
nr               2017 mm/gup.c       		pages[*nr] = page;
nr               2018 mm/gup.c       		(*nr)++;
nr               2025 mm/gup.c       		*nr -= refs;
nr               2031 mm/gup.c       		*nr -= refs;
nr               2043 mm/gup.c       		struct page **pages, int *nr)
nr               2052 mm/gup.c       		if (!gup_hugepte(ptep, sz, addr, end, flags, pages, nr))
nr               2061 mm/gup.c       		struct page **pages, int *nr)
nr               2069 mm/gup.c       			struct page **pages, int *nr)
nr               2080 mm/gup.c       		return __gup_device_huge_pmd(orig, pmdp, addr, end, pages, nr);
nr               2086 mm/gup.c       		pages[*nr] = page;
nr               2087 mm/gup.c       		(*nr)++;
nr               2094 mm/gup.c       		*nr -= refs;
nr               2099 mm/gup.c       		*nr -= refs;
nr               2110 mm/gup.c       		unsigned long end, unsigned int flags, struct page **pages, int *nr)
nr               2121 mm/gup.c       		return __gup_device_huge_pud(orig, pudp, addr, end, pages, nr);
nr               2127 mm/gup.c       		pages[*nr] = page;
nr               2128 mm/gup.c       		(*nr)++;
nr               2135 mm/gup.c       		*nr -= refs;
nr               2140 mm/gup.c       		*nr -= refs;
nr               2152 mm/gup.c       			struct page **pages, int *nr)
nr               2164 mm/gup.c       		pages[*nr] = page;
nr               2165 mm/gup.c       		(*nr)++;
nr               2172 mm/gup.c       		*nr -= refs;
nr               2177 mm/gup.c       		*nr -= refs;
nr               2188 mm/gup.c       		unsigned int flags, struct page **pages, int *nr)
nr               2212 mm/gup.c       				pages, nr))
nr               2221 mm/gup.c       					 PMD_SHIFT, next, flags, pages, nr))
nr               2223 mm/gup.c       		} else if (!gup_pte_range(pmd, addr, next, flags, pages, nr))
nr               2231 mm/gup.c       			 unsigned int flags, struct page **pages, int *nr)
nr               2245 mm/gup.c       					  pages, nr))
nr               2249 mm/gup.c       					 PUD_SHIFT, next, flags, pages, nr))
nr               2251 mm/gup.c       		} else if (!gup_pmd_range(pud, addr, next, flags, pages, nr))
nr               2259 mm/gup.c       			 unsigned int flags, struct page **pages, int *nr)
nr               2274 mm/gup.c       					 P4D_SHIFT, next, flags, pages, nr))
nr               2276 mm/gup.c       		} else if (!gup_pud_range(p4d, addr, next, flags, pages, nr))
nr               2284 mm/gup.c       		unsigned int flags, struct page **pages, int *nr)
nr               2298 mm/gup.c       					  pages, nr))
nr               2302 mm/gup.c       					 PGDIR_SHIFT, next, flags, pages, nr))
nr               2304 mm/gup.c       		} else if (!gup_p4d_range(pgd, addr, next, flags, pages, nr))
nr               2310 mm/gup.c       		unsigned int flags, struct page **pages, int *nr)
nr               2344 mm/gup.c       	int nr = 0;
nr               2376 mm/gup.c       		gup_pgd_range(start, end, write ? FOLL_WRITE : 0, pages, &nr);
nr               2380 mm/gup.c       	return nr;
nr               2427 mm/gup.c       	int nr = 0, ret = 0;
nr               2453 mm/gup.c       		gup_pgd_range(addr, end, gup_flags | FOLL_WRITE, pages, &nr);
nr               2455 mm/gup.c       		ret = nr;
nr               2458 mm/gup.c       	if (nr < nr_pages) {
nr               2460 mm/gup.c       		start += nr << PAGE_SHIFT;
nr               2461 mm/gup.c       		pages += nr;
nr               2463 mm/gup.c       		ret = __gup_longterm_unlocked(start, nr_pages - nr,
nr               2467 mm/gup.c       		if (nr > 0) {
nr               2469 mm/gup.c       				ret = nr;
nr               2471 mm/gup.c       				ret += nr;
nr                 27 mm/gup_benchmark.c 	int nr;
nr                 40 mm/gup_benchmark.c 	nr = gup->nr_pages_per_call;
nr                 43 mm/gup_benchmark.c 		if (nr != gup->nr_pages_per_call)
nr                 46 mm/gup_benchmark.c 		next = addr + nr * PAGE_SIZE;
nr                 49 mm/gup_benchmark.c 			nr = (next - addr) / PAGE_SIZE;
nr                 54 mm/gup_benchmark.c 			nr = get_user_pages_fast(addr, nr, gup->flags & 1,
nr                 58 mm/gup_benchmark.c 			nr = get_user_pages(addr, nr,
nr                 63 mm/gup_benchmark.c 			nr = get_user_pages(addr, nr, gup->flags & 1, pages + i,
nr                 72 mm/gup_benchmark.c 		if (nr <= 0)
nr                 74 mm/gup_benchmark.c 		i += nr;
nr                331 mm/highmem.c   	unsigned long nr;
nr                340 mm/highmem.c   	nr = PKMAP_NR(vaddr);
nr                347 mm/highmem.c   	switch (--pkmap_count[nr]) {
nr               3076 mm/hugetlb.c   	unsigned int nr = 0;
nr               3079 mm/hugetlb.c   		nr += array[node];
nr               3081 mm/hugetlb.c   	return nr;
nr               1362 mm/ksm.c       	int nr = 0;
nr               1389 mm/ksm.c       		nr += 1;
nr               1415 mm/ksm.c       		if (prune_stale_stable_nodes && nr == 1) {
nr               3801 mm/memcontrol.c 	unsigned long nr = 0;
nr               3809 mm/memcontrol.c 		nr += lruvec_page_state_local(lruvec, NR_LRU_BASE + lru);
nr               3811 mm/memcontrol.c 	return nr;
nr               3817 mm/memcontrol.c 	unsigned long nr = 0;
nr               3823 mm/memcontrol.c 		nr += memcg_page_state_local(memcg, NR_LRU_BASE + lru);
nr               3825 mm/memcontrol.c 	return nr;
nr               3843 mm/memcontrol.c 	unsigned long nr;
nr               3847 mm/memcontrol.c 		nr = mem_cgroup_nr_lru_pages(memcg, stat->lru_mask);
nr               3848 mm/memcontrol.c 		seq_printf(m, "%s=%lu", stat->name, nr);
nr               3850 mm/memcontrol.c 			nr = mem_cgroup_node_nr_lru_pages(memcg, nid,
nr               3852 mm/memcontrol.c 			seq_printf(m, " N%d=%lu", nid, nr);
nr               3860 mm/memcontrol.c 		nr = 0;
nr               3862 mm/memcontrol.c 			nr += mem_cgroup_nr_lru_pages(iter, stat->lru_mask);
nr               3863 mm/memcontrol.c 		seq_printf(m, "hierarchical_%s=%lu", stat->name, nr);
nr               3865 mm/memcontrol.c 			nr = 0;
nr               3867 mm/memcontrol.c 				nr += mem_cgroup_node_nr_lru_pages(
nr               3869 mm/memcontrol.c 			seq_printf(m, " N%d=%lu", nid, nr);
nr               2692 mm/memory.c    		pgoff_t nr, bool even_cows)
nr               2698 mm/memory.c    	details.last_index = start + nr - 1;
nr                291 mm/memory_hotplug.c 	unsigned long nr, start_sec, end_sec;
nr                312 mm/memory_hotplug.c 	for (nr = start_sec; nr <= end_sec; nr++) {
nr                522 mm/memory_hotplug.c 	unsigned long nr, start_sec, end_sec;
nr                531 mm/memory_hotplug.c 	for (nr = start_sec; nr <= end_sec; nr++) {
nr                 28 mm/mempool.c   	const int nr = pool->curr_nr;
nr                 35 mm/mempool.c   	pr_err(" nr=%d @ %p: %s0x", nr, element, start > 0 ? "... " : "");
nr               1490 mm/migrate.c   static int store_status(int __user *status, int start, int value, int nr)
nr               1492 mm/migrate.c   	while (nr-- > 0) {
nr                 98 mm/mincore.c   	unsigned long nr = (end - addr) >> PAGE_SHIFT;
nr                105 mm/mincore.c   		for (i = 0; i < nr; i++, pgoff++)
nr                108 mm/mincore.c   		for (i = 0; i < nr; i++)
nr                111 mm/mincore.c   	return nr;
nr                129 mm/mincore.c   	int nr = (end - addr) >> PAGE_SHIFT;
nr                133 mm/mincore.c   		memset(vec, 1, nr);
nr                175 mm/mincore.c   	walk->private += nr;
nr                293 mm/mlock.c     	int nr = pagevec_count(pvec);
nr                294 mm/mlock.c     	int delta_munlocked = -nr;
nr                302 mm/mlock.c     	for (i = 0; i < nr; i++) {
nr                334 mm/mlock.c     	for (i = 0; i < nr; i++) {
nr                146 mm/mm_init.c   	s32 nr = num_present_cpus();
nr                147 mm/mm_init.c   	s32 batch = max_t(s32, nr*2, 32);
nr                150 mm/mm_init.c   	memsized_batch = min_t(u64, (totalram_pages()/nr)/256, 0x7fffffff);
nr                 35 mm/mmu_gather.c 	batch->nr   = 0;
nr                 48 mm/mmu_gather.c 	for (batch = &tlb->local; batch && batch->nr; batch = batch->next) {
nr                 49 mm/mmu_gather.c 		free_pages_and_swap_cache(batch->pages, batch->nr);
nr                 50 mm/mmu_gather.c 		batch->nr = 0;
nr                 81 mm/mmu_gather.c 	batch->pages[batch->nr++] = page;
nr                 82 mm/mmu_gather.c 	if (batch->nr == batch->max) {
nr                 87 mm/mmu_gather.c 	VM_BUG_ON_PAGE(batch->nr > batch->max, page);
nr                140 mm/mmu_gather.c 	for (i = 0; i < batch->nr; i++)
nr                168 mm/mmu_gather.c 		(*batch)->nr = 0;
nr                171 mm/mmu_gather.c 	(*batch)->tables[(*batch)->nr++] = table;
nr                172 mm/mmu_gather.c 	if ((*batch)->nr == MAX_TABLE_BATCH)
nr                217 mm/mmu_gather.c 	tlb->local.nr   = 0;
nr               5399 mm/page_alloc.c 		unsigned long nr[MAX_ORDER], flags, total = 0;
nr               5412 mm/page_alloc.c 			nr[order] = area->nr_free;
nr               5413 mm/page_alloc.c 			total += nr[order] << order;
nr               5424 mm/page_alloc.c 			       nr[order], K(1UL) << order);
nr               5425 mm/page_alloc.c 			if (nr[order])
nr                571 mm/percpu.c    static inline void pcpu_update_empty_pages(struct pcpu_chunk *chunk, int nr)
nr                573 mm/percpu.c    	chunk->nr_empty_pop_pages += nr;
nr                575 mm/percpu.c    		pcpu_nr_empty_pop_pages += nr;
nr               1134 mm/percpu.c    					 unsigned long nr,
nr               1147 mm/percpu.c    	end = index + nr;
nr               1475 mm/percpu.c    	int nr = page_end - page_start;
nr               1479 mm/percpu.c    	bitmap_set(chunk->populated, page_start, nr);
nr               1480 mm/percpu.c    	chunk->nr_populated += nr;
nr               1481 mm/percpu.c    	pcpu_nr_populated += nr;
nr               1483 mm/percpu.c    	pcpu_update_empty_pages(chunk, nr);
nr               1499 mm/percpu.c    	int nr = page_end - page_start;
nr               1503 mm/percpu.c    	bitmap_clear(chunk->populated, page_start, nr);
nr               1504 mm/percpu.c    	chunk->nr_populated -= nr;
nr               1505 mm/percpu.c    	pcpu_nr_populated -= nr;
nr               1507 mm/percpu.c    	pcpu_update_empty_pages(chunk, -nr);
nr               1915 mm/percpu.c    			int nr = min(re - rs, nr_to_pop);
nr               1917 mm/percpu.c    			ret = pcpu_populate_chunk(chunk, rs, rs + nr, gfp);
nr               1919 mm/percpu.c    				nr_to_pop -= nr;
nr               1921 mm/percpu.c    				pcpu_chunk_populated(chunk, rs, rs + nr);
nr               1116 mm/rmap.c      		int nr = compound ? hpage_nr_pages(page) : 1;
nr               1125 mm/rmap.c      		__mod_node_page_state(page_pgdat(page), NR_ANON_MAPPED, nr);
nr               1154 mm/rmap.c      	int nr = compound ? hpage_nr_pages(page) : 1;
nr               1169 mm/rmap.c      	__mod_node_page_state(page_pgdat(page), NR_ANON_MAPPED, nr);
nr               1182 mm/rmap.c      	int i, nr = 1;
nr               1187 mm/rmap.c      		for (i = 0, nr = 0; i < HPAGE_PMD_NR; i++) {
nr               1189 mm/rmap.c      				nr++;
nr               1208 mm/rmap.c      	__mod_lruvec_page_state(page, NR_FILE_MAPPED, nr);
nr               1215 mm/rmap.c      	int i, nr = 1;
nr               1229 mm/rmap.c      		for (i = 0, nr = 0; i < HPAGE_PMD_NR; i++) {
nr               1231 mm/rmap.c      				nr++;
nr               1249 mm/rmap.c      	__mod_lruvec_page_state(page, NR_FILE_MAPPED, -nr);
nr               1259 mm/rmap.c      	int i, nr;
nr               1278 mm/rmap.c      		for (i = 0, nr = 0; i < HPAGE_PMD_NR; i++) {
nr               1280 mm/rmap.c      				nr++;
nr               1283 mm/rmap.c      		nr = HPAGE_PMD_NR;
nr               1289 mm/rmap.c      	if (nr) {
nr               1290 mm/rmap.c      		__mod_node_page_state(page_pgdat(page), NR_ANON_MAPPED, -nr);
nr                612 mm/shmem.c     	unsigned long nr = compound_nr(page);
nr                615 mm/shmem.c     	VM_BUG_ON_PAGE(index != round_down(index, nr), page);
nr                620 mm/shmem.c     	page_ref_add(page, nr);
nr                635 mm/shmem.c     		if (++i < nr) {
nr                643 mm/shmem.c     		mapping->nrpages += nr;
nr                644 mm/shmem.c     		__mod_node_page_state(page_pgdat(page), NR_FILE_PAGES, nr);
nr                645 mm/shmem.c     		__mod_node_page_state(page_pgdat(page), NR_SHMEM, nr);
nr                652 mm/shmem.c     		page_ref_sub(page, nr);
nr                779 mm/shmem.c     		pvec.nr = find_get_entries(mapping, index,
nr                781 mm/shmem.c     		if (!pvec.nr)
nr                783 mm/shmem.c     		index = indices[pvec.nr - 1] + 1;
nr                816 mm/shmem.c     		pvec.nr = find_get_entries(mapping, index,
nr                819 mm/shmem.c     		if (!pvec.nr)
nr                907 mm/shmem.c     		pvec.nr = find_get_entries(mapping, index,
nr                910 mm/shmem.c     		if (!pvec.nr) {
nr               1176 mm/shmem.c     	for (i = 0; i < pvec.nr; i++) {
nr               1217 mm/shmem.c     		pvec.nr = shmem_find_swap_entries(mapping, start, nr_entries,
nr               1220 mm/shmem.c     		if (pvec.nr == 0) {
nr               1237 mm/shmem.c     		start = indices[pvec.nr - 1];
nr               1510 mm/shmem.c     	int nr;
nr               1515 mm/shmem.c     	nr = huge ? HPAGE_PMD_NR : 1;
nr               1517 mm/shmem.c     	if (!shmem_inode_acct_block(inode, nr))
nr               1531 mm/shmem.c     	shmem_inode_unacct_blocks(inode, nr);
nr               2555 mm/shmem.c     		unsigned long nr, ret;
nr               2562 mm/shmem.c     			nr = i_size & ~PAGE_MASK;
nr               2563 mm/shmem.c     			if (nr <= offset)
nr               2583 mm/shmem.c     		nr = PAGE_SIZE;
nr               2587 mm/shmem.c     			nr = i_size & ~PAGE_MASK;
nr               2588 mm/shmem.c     			if (nr <= offset) {
nr               2594 mm/shmem.c     		nr -= offset;
nr               2618 mm/shmem.c     		ret = copy_page_to_iter(page, offset, nr, to);
nr               2627 mm/shmem.c     		if (ret < nr) {
nr               2652 mm/shmem.c     	pvec.nr = 1;		/* start small: we may be there already */
nr               2654 mm/shmem.c     		pvec.nr = find_get_entries(mapping, index,
nr               2655 mm/shmem.c     					pvec.nr, pvec.pages, indices);
nr               2656 mm/shmem.c     		if (!pvec.nr) {
nr               2661 mm/shmem.c     		for (i = 0; i < pvec.nr; i++, index++) {
nr               2683 mm/shmem.c     		pvec.nr = PAGEVEC_SIZE;
nr                578 mm/slab.c      	int nr = min3(from->avail, max, to->limit - to->avail);
nr                580 mm/slab.c      	if (!nr)
nr                583 mm/slab.c      	memcpy(to->entry + to->avail, from->entry + from->avail -nr,
nr                584 mm/slab.c      			sizeof(void *) *nr);
nr                586 mm/slab.c      	from->avail -= nr;
nr                587 mm/slab.c      	to->avail += nr;
nr                588 mm/slab.c      	return nr;
nr                104 mm/slab_common.c void __kmem_cache_free_bulk(struct kmem_cache *s, size_t nr, void **p)
nr                108 mm/slab_common.c 	for (i = 0; i < nr; i++) {
nr                116 mm/slab_common.c int __kmem_cache_alloc_bulk(struct kmem_cache *s, gfp_t flags, size_t nr,
nr                121 mm/slab_common.c 	for (i = 0; i < nr; i++) {
nr                943 mm/slub.c      	int nr = 0;
nr                949 mm/slub.c      	while (fp && nr <= page->objects) {
nr                968 mm/slub.c      		nr++;
nr                981 mm/slub.c      	if (page->inuse != page->objects - nr) {
nr                983 mm/slub.c      			 page->inuse, page->objects - nr);
nr                984 mm/slub.c      		page->inuse = page->objects - nr;
nr                234 mm/sparse.c    	unsigned long nr, start_sec = pfn_to_section_nr(pfn);
nr                239 mm/sparse.c    	for (nr = start_sec; nr <= end_sec; nr++) {
nr                245 mm/sparse.c    		ms = __nr_to_section(nr);
nr                248 mm/sparse.c    		pr_debug("%s: sec: %lu pfns: %lu set(%d, %d)\n", __func__, nr,
nr                215 mm/swap.c      	release_pages(pvec->pages, pvec->nr);
nr                760 mm/swap.c      void release_pages(struct page **pages, int nr)
nr                769 mm/swap.c      	for (i = 0; i < nr; i++) {
nr                995 mm/swap.c      	pvec->nr = find_get_entries(mapping, start, nr_entries,
nr               1018 mm/swap.c      	pvec->nr = j;
nr               1044 mm/swap.c      	pvec->nr = find_get_pages_range(mapping, start, end, PAGEVEC_SIZE,
nr               1054 mm/swap.c      	pvec->nr = find_get_pages_range_tag(mapping, index, end, tag,
nr               1064 mm/swap.c      	pvec->nr = find_get_pages_range_tag(mapping, index, end, tag,
nr                147 mm/swap_slots.c 	cache->nr = 0;
nr                179 mm/swap_slots.c 		swapcache_free_entries(cache->slots + cache->cur, cache->nr);
nr                181 mm/swap_slots.c 		cache->nr = 0;
nr                267 mm/swap_slots.c 	if (!use_swap_slot_cache || cache->nr)
nr                272 mm/swap_slots.c 		cache->nr = get_swap_pages(SWAP_SLOTS_CACHE_SIZE,
nr                275 mm/swap_slots.c 	return cache->nr;
nr                338 mm/swap_slots.c 			if (cache->nr) {
nr                342 mm/swap_slots.c 				cache->nr--;
nr                 62 mm/swap_state.c #define ADD_CACHE_INFO(x, nr)	do { swap_cache_info.x += (nr); } while (0)
nr                 73 mm/swap_state.c 	unsigned int i, j, nr;
nr                 88 mm/swap_state.c 		nr = nr_swapper_spaces[i];
nr                 90 mm/swap_state.c 		for (j = 0; j < nr; j++)
nr                119 mm/swap_state.c 	unsigned long i, nr = compound_nr(page);
nr                125 mm/swap_state.c 	page_ref_add(page, nr);
nr                133 mm/swap_state.c 		for (i = 0; i < nr; i++) {
nr                139 mm/swap_state.c 		address_space->nrpages += nr;
nr                140 mm/swap_state.c 		__mod_node_page_state(page_pgdat(page), NR_FILE_PAGES, nr);
nr                141 mm/swap_state.c 		ADD_CACHE_INFO(add_total, nr);
nr                150 mm/swap_state.c 	page_ref_sub(page, nr);
nr                161 mm/swap_state.c 	int i, nr = hpage_nr_pages(page);
nr                169 mm/swap_state.c 	for (i = 0; i < nr; i++) {
nr                176 mm/swap_state.c 	address_space->nrpages -= nr;
nr                177 mm/swap_state.c 	__mod_node_page_state(page_pgdat(page), NR_FILE_PAGES, -nr);
nr                178 mm/swap_state.c 	ADD_CACHE_INFO(del_total, nr);
nr                288 mm/swap_state.c void free_pages_and_swap_cache(struct page **pages, int nr)
nr                294 mm/swap_state.c 	for (i = 0; i < nr; i++)
nr                296 mm/swap_state.c 	release_pages(pagep, nr);
nr                600 mm/swap_state.c 	unsigned int i, nr;
nr                602 mm/swap_state.c 	nr = DIV_ROUND_UP(nr_pages, SWAP_ADDRESS_SPACE_PAGES);
nr                603 mm/swap_state.c 	spaces = kvcalloc(nr, sizeof(struct address_space), GFP_KERNEL);
nr                606 mm/swap_state.c 	for (i = 0; i < nr; i++) {
nr                614 mm/swap_state.c 	nr_swapper_spaces[type] = nr;
nr                733 mm/swapfile.c  			       unsigned char usage, int nr,
nr                743 mm/swapfile.c  	if (nr > SWAP_BATCH)
nr                744 mm/swapfile.c  		nr = SWAP_BATCH;
nr                855 mm/swapfile.c  	if ((n_ret == nr) || (offset >= si->highest_bit))
nr                104 mm/truncate.c  	pvec->nr = j;
nr                180 mm/truncate.c  		pgoff_t nr = PageTransHuge(page) ? HPAGE_PMD_NR : 1;
nr                181 mm/truncate.c  		unmap_mapping_pages(mapping, page->index, nr, false);
nr                139 mm/vmalloc.c   		unsigned long end, pgprot_t prot, struct page **pages, int *nr)
nr                152 mm/vmalloc.c   		struct page *page = pages[*nr];
nr                159 mm/vmalloc.c   		(*nr)++;
nr                165 mm/vmalloc.c   		unsigned long end, pgprot_t prot, struct page **pages, int *nr)
nr                175 mm/vmalloc.c   		if (vmap_pte_range(pmd, addr, next, prot, pages, nr))
nr                182 mm/vmalloc.c   		unsigned long end, pgprot_t prot, struct page **pages, int *nr)
nr                192 mm/vmalloc.c   		if (vmap_pmd_range(pud, addr, next, prot, pages, nr))
nr                199 mm/vmalloc.c   		unsigned long end, pgprot_t prot, struct page **pages, int *nr)
nr                209 mm/vmalloc.c   		if (vmap_pud_range(p4d, addr, next, prot, pages, nr))
nr                228 mm/vmalloc.c   	int nr = 0;
nr                234 mm/vmalloc.c   		err = vmap_p4d_range(pgd, addr, next, prot, pages, &nr);
nr                239 mm/vmalloc.c   	return nr;
nr               1281 mm/vmalloc.c   		unsigned long nr = (va->va_end - va->va_start) >> PAGE_SHIFT;
nr               1291 mm/vmalloc.c   		atomic_long_sub(nr, &vmap_lazy_nr);
nr               3453 mm/vmalloc.c   		unsigned int nr, *counters = m->private;
nr               3465 mm/vmalloc.c   		for (nr = 0; nr < v->nr_pages; nr++)
nr               3466 mm/vmalloc.c   			counters[page_to_nid(v->pages[nr])]++;
nr               3468 mm/vmalloc.c   		for_each_node_state(nr, N_HIGH_MEMORY)
nr               3469 mm/vmalloc.c   			if (counters[nr])
nr               3470 mm/vmalloc.c   				seq_printf(m, " N%u=%u", nr, counters[nr]);
nr                130 mm/vmscan.c    	} nr;
nr                335 mm/vmscan.c    	unsigned long nr;
nr                337 mm/vmscan.c    	nr = zone_page_state_snapshot(zone, NR_ZONE_INACTIVE_FILE) +
nr                340 mm/vmscan.c    		nr += zone_page_state_snapshot(zone, NR_ZONE_INACTIVE_ANON) +
nr                343 mm/vmscan.c    	return nr;
nr                469 mm/vmscan.c    	long nr;
nr                488 mm/vmscan.c    	nr = atomic_long_xchg(&shrinker->nr_deferred[nid], 0);
nr                490 mm/vmscan.c    	total_scan = nr;
nr                509 mm/vmscan.c    		next_deferred = nr;
nr                536 mm/vmscan.c    	trace_mm_shrink_slab_start(shrinker, shrinkctl, nr,
nr                588 mm/vmscan.c    	trace_mm_shrink_slab_end(shrinker, nid, freed, nr, new_nr, total_scan);
nr               2029 mm/vmscan.c    	sc->nr.dirty += stat.nr_dirty;
nr               2030 mm/vmscan.c    	sc->nr.congested += stat.nr_congested;
nr               2031 mm/vmscan.c    	sc->nr.unqueued_dirty += stat.nr_unqueued_dirty;
nr               2032 mm/vmscan.c    	sc->nr.writeback += stat.nr_writeback;
nr               2033 mm/vmscan.c    	sc->nr.immediate += stat.nr_immediate;
nr               2034 mm/vmscan.c    	sc->nr.taken += nr_taken;
nr               2036 mm/vmscan.c    		sc->nr.file_taken += nr_taken;
nr               2305 mm/vmscan.c    			   struct scan_control *sc, unsigned long *nr,
nr               2556 mm/vmscan.c    		nr[lru] = scan;
nr               2567 mm/vmscan.c    	unsigned long nr[NR_LRU_LISTS];
nr               2576 mm/vmscan.c    	get_scan_count(lruvec, memcg, sc, nr, lru_pages);
nr               2579 mm/vmscan.c    	memcpy(targets, nr, sizeof(nr));
nr               2596 mm/vmscan.c    	while (nr[LRU_INACTIVE_ANON] || nr[LRU_ACTIVE_FILE] ||
nr               2597 mm/vmscan.c    					nr[LRU_INACTIVE_FILE]) {
nr               2602 mm/vmscan.c    			if (nr[lru]) {
nr               2603 mm/vmscan.c    				nr_to_scan = min(nr[lru], SWAP_CLUSTER_MAX);
nr               2604 mm/vmscan.c    				nr[lru] -= nr_to_scan;
nr               2623 mm/vmscan.c    		nr_file = nr[LRU_INACTIVE_FILE] + nr[LRU_ACTIVE_FILE];
nr               2624 mm/vmscan.c    		nr_anon = nr[LRU_INACTIVE_ANON] + nr[LRU_ACTIVE_ANON];
nr               2648 mm/vmscan.c    		nr[lru] = 0;
nr               2649 mm/vmscan.c    		nr[lru + LRU_ACTIVE] = 0;
nr               2656 mm/vmscan.c    		nr_scanned = targets[lru] - nr[lru];
nr               2657 mm/vmscan.c    		nr[lru] = targets[lru] * (100 - percentage) / 100;
nr               2658 mm/vmscan.c    		nr[lru] -= min(nr[lru], nr_scanned);
nr               2661 mm/vmscan.c    		nr_scanned = targets[lru] - nr[lru];
nr               2662 mm/vmscan.c    		nr[lru] = targets[lru] * (100 - percentage) / 100;
nr               2663 mm/vmscan.c    		nr[lru] -= min(nr[lru], nr_scanned);
nr               2767 mm/vmscan.c    		memset(&sc->nr, 0, sizeof(sc->nr));
nr               2855 mm/vmscan.c    			if (sc->nr.writeback && sc->nr.writeback == sc->nr.taken)
nr               2863 mm/vmscan.c    			if (sc->nr.dirty && sc->nr.dirty == sc->nr.congested)
nr               2867 mm/vmscan.c    			if (sc->nr.unqueued_dirty == sc->nr.file_taken)
nr               2876 mm/vmscan.c    			if (sc->nr.immediate)
nr               2885 mm/vmscan.c    		    sc->nr.dirty && sc->nr.dirty == sc->nr.congested)
nr               4346 mm/vmscan.c    	for (i = 0; i < pvec->nr; i++) {
nr                659 net/appletalk/ddp.c 	struct atalk_netrange *nr;
nr                690 net/appletalk/ddp.c 		nr = (struct atalk_netrange *)&sa->sat_zero[0];
nr                711 net/appletalk/ddp.c 		if (dev->type == ARPHRD_ETHER && nr->nr_phase != 2)
nr                729 net/appletalk/ddp.c 		atif->nets = *nr;
nr                757 net/appletalk/ddp.c 		if (nr->nr_firstnet == htons(0) &&
nr                758 net/appletalk/ddp.c 		    nr->nr_lastnet == htons(0xFFFE)) {
nr                763 net/appletalk/ddp.c 			limit = ntohs(nr->nr_lastnet);
nr                764 net/appletalk/ddp.c 			if (limit - ntohs(nr->nr_firstnet) > 4096) {
nr                770 net/appletalk/ddp.c 				for (ct = ntohs(nr->nr_firstnet);
nr                827 net/appletalk/ddp.c 		nr = (struct atalk_netrange *)&(atif->nets);
nr                832 net/appletalk/ddp.c 		if (dev->type == ARPHRD_ETHER && nr->nr_phase != 2)
nr                145 net/ax25/ax25_ds_in.c static int ax25_ds_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type)
nr                189 net/ax25/ax25_ds_in.c 		if (ax25_validate_nr(ax25, nr)) {
nr                190 net/ax25/ax25_ds_in.c 			if (ax25_check_iframes_acked(ax25, nr))
nr                203 net/ax25/ax25_ds_in.c 		if (ax25_validate_nr(ax25, nr)) {
nr                204 net/ax25/ax25_ds_in.c 			if (ax25->va != nr)
nr                207 net/ax25/ax25_ds_in.c 			ax25_frames_acked(ax25, nr);
nr                222 net/ax25/ax25_ds_in.c 		if (!ax25_validate_nr(ax25, nr)) {
nr                228 net/ax25/ax25_ds_in.c 			ax25_frames_acked(ax25, nr);
nr                231 net/ax25/ax25_ds_in.c 			if (ax25_check_iframes_acked(ax25, nr))
nr                281 net/ax25/ax25_ds_in.c 	int queued = 0, frametype, ns, nr, pf;
nr                283 net/ax25/ax25_ds_in.c 	frametype = ax25_decode(ax25, skb, &ns, &nr, &pf);
nr                293 net/ax25/ax25_ds_in.c 		queued = ax25_ds_state3_machine(ax25, skb, frametype, ns, nr, pf, type);
nr                376 net/ax25/ax25_out.c int ax25_check_iframes_acked(ax25_cb *ax25, unsigned short nr)
nr                378 net/ax25/ax25_out.c 	if (ax25->vs == nr) {
nr                379 net/ax25/ax25_out.c 		ax25_frames_acked(ax25, nr);
nr                385 net/ax25/ax25_out.c 		if (ax25->va != nr) {
nr                386 net/ax25/ax25_out.c 			ax25_frames_acked(ax25, nr);
nr                141 net/ax25/ax25_std_in.c static int ax25_std_state3_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type)
nr                184 net/ax25/ax25_std_in.c 		if (ax25_validate_nr(ax25, nr)) {
nr                185 net/ax25/ax25_std_in.c 			ax25_check_iframes_acked(ax25, nr);
nr                196 net/ax25/ax25_std_in.c 		if (ax25_validate_nr(ax25, nr)) {
nr                197 net/ax25/ax25_std_in.c 			ax25_frames_acked(ax25, nr);
nr                209 net/ax25/ax25_std_in.c 		if (!ax25_validate_nr(ax25, nr)) {
nr                215 net/ax25/ax25_std_in.c 			ax25_frames_acked(ax25, nr);
nr                217 net/ax25/ax25_std_in.c 			ax25_check_iframes_acked(ax25, nr);
nr                266 net/ax25/ax25_std_in.c static int ax25_std_state4_machine(ax25_cb *ax25, struct sk_buff *skb, int frametype, int ns, int nr, int pf, int type)
nr                312 net/ax25/ax25_std_in.c 			if (ax25_validate_nr(ax25, nr)) {
nr                313 net/ax25/ax25_std_in.c 				ax25_frames_acked(ax25, nr);
nr                328 net/ax25/ax25_std_in.c 		if (ax25_validate_nr(ax25, nr)) {
nr                329 net/ax25/ax25_std_in.c 			ax25_frames_acked(ax25, nr);
nr                341 net/ax25/ax25_std_in.c 			if (ax25_validate_nr(ax25, nr)) {
nr                342 net/ax25/ax25_std_in.c 				ax25_frames_acked(ax25, nr);
nr                357 net/ax25/ax25_std_in.c 		if (ax25_validate_nr(ax25, nr)) {
nr                358 net/ax25/ax25_std_in.c 			ax25_frames_acked(ax25, nr);
nr                367 net/ax25/ax25_std_in.c 		if (!ax25_validate_nr(ax25, nr)) {
nr                372 net/ax25/ax25_std_in.c 		ax25_frames_acked(ax25, nr);
nr                421 net/ax25/ax25_std_in.c 	int queued = 0, frametype, ns, nr, pf;
nr                423 net/ax25/ax25_std_in.c 	frametype = ax25_decode(ax25, skb, &ns, &nr, &pf);
nr                433 net/ax25/ax25_std_in.c 		queued = ax25_std_state3_machine(ax25, skb, frametype, ns, nr, pf, type);
nr                436 net/ax25/ax25_std_in.c 		queued = ax25_std_state4_machine(ax25, skb, frametype, ns, nr, pf, type);
nr                 46 net/ax25/ax25_subr.c void ax25_frames_acked(ax25_cb *ax25, unsigned short nr)
nr                 53 net/ax25/ax25_subr.c 	if (ax25->va != nr) {
nr                 54 net/ax25/ax25_subr.c 		while (skb_peek(&ax25->ack_queue) != NULL && ax25->va != nr) {
nr                 79 net/ax25/ax25_subr.c int ax25_validate_nr(ax25_cb *ax25, unsigned short nr)
nr                 84 net/ax25/ax25_subr.c 		if (nr == vc) return 1;
nr                 88 net/ax25/ax25_subr.c 	if (nr == ax25->vs) return 1;
nr                 97 net/ax25/ax25_subr.c int ax25_decode(ax25_cb *ax25, struct sk_buff *skb, int *ns, int *nr, int *pf)
nr                103 net/ax25/ax25_subr.c 	*ns = *nr = *pf = 0;
nr                109 net/ax25/ax25_subr.c 			*nr = (frame[0] >> 5) & 0x07;
nr                113 net/ax25/ax25_subr.c 			*nr = (frame[0] >> 5) & 0x07;
nr                124 net/ax25/ax25_subr.c 			*nr = (frame[1] >> 1) & 0x7F;
nr                129 net/ax25/ax25_subr.c 			*nr = (frame[1] >> 1) & 0x7F;
nr                 62 net/bluetooth/hci_sock.c void hci_sock_set_flag(struct sock *sk, int nr)
nr                 64 net/bluetooth/hci_sock.c 	set_bit(nr, &hci_pi(sk)->flags);
nr                 67 net/bluetooth/hci_sock.c void hci_sock_clear_flag(struct sock *sk, int nr)
nr                 69 net/bluetooth/hci_sock.c 	clear_bit(nr, &hci_pi(sk)->flags);
nr                 72 net/bluetooth/hci_sock.c int hci_sock_test_flag(struct sock *sk, int nr)
nr                 74 net/bluetooth/hci_sock.c 	return test_bit(nr, &hci_pi(sk)->flags);
nr                114 net/bluetooth/hci_sock.c static inline int hci_test_bit(int nr, const void *addr)
nr                116 net/bluetooth/hci_sock.c 	return *((const __u32 *) addr + (nr >> 5)) & ((__u32) 1 << (nr & 31));
nr                409 net/l2tp/l2tp_core.c 		session->nr++;
nr                410 net/l2tp/l2tp_core.c 		session->nr &= session->nr_max;
nr                413 net/l2tp/l2tp_core.c 			 session->name, session->nr);
nr                444 net/l2tp/l2tp_core.c 				 L2TP_SKB_CB(skb)->length, session->nr,
nr                456 net/l2tp/l2tp_core.c 					 session->name, session->nr,
nr                459 net/l2tp/l2tp_core.c 				session->nr = L2TP_SKB_CB(skb)->ns;
nr                461 net/l2tp/l2tp_core.c 			if (L2TP_SKB_CB(skb)->ns != session->nr) {
nr                465 net/l2tp/l2tp_core.c 					 L2TP_SKB_CB(skb)->length, session->nr,
nr                484 net/l2tp/l2tp_core.c static int l2tp_seq_check_rx_window(struct l2tp_session *session, u32 nr)
nr                488 net/l2tp/l2tp_core.c 	if (nr >= session->nr)
nr                489 net/l2tp/l2tp_core.c 		nws = nr - session->nr;
nr                491 net/l2tp/l2tp_core.c 		nws = (session->nr_max + 1) - (session->nr - nr);
nr                508 net/l2tp/l2tp_core.c 			 L2TP_SKB_CB(skb)->length, session->nr);
nr                525 net/l2tp/l2tp_core.c 	if (L2TP_SKB_CB(skb)->ns == session->nr) {
nr                548 net/l2tp/l2tp_core.c 				 L2TP_SKB_CB(skb)->length, session->nr,
nr                627 net/l2tp/l2tp_core.c 	u32 ns, nr;
nr                649 net/l2tp/l2tp_core.c 	ns = nr = 0;
nr                655 net/l2tp/l2tp_core.c 			nr = ntohs(*(__be16 *) ptr);
nr                664 net/l2tp/l2tp_core.c 				 session->name, ns, nr, session->nr);
nr                678 net/l2tp/l2tp_core.c 				 session->name, ns, session->nr);
nr               1659 net/l2tp/l2tp_core.c 		session->nr = 0;
nr                 86 net/l2tp/l2tp_core.h 	u32			nr;		/* session NR state (receive) */
nr                187 net/l2tp/l2tp_debugfs.c 		seq_printf(m, "   nr %hu, ns %hu\n", session->nr, session->ns);
nr                219 net/l2tp/l2tp_debugfs.c 		   session->nr, session->ns,
nr               1582 net/l2tp/l2tp_ppp.c 		   session->nr, session->ns,
nr                323 net/lapb/lapb_in.c 			 lapb->dev, frame->pf, frame->nr);
nr                326 net/lapb/lapb_in.c 		if (lapb_validate_nr(lapb, frame->nr)) {
nr                327 net/lapb/lapb_in.c 			lapb_check_iframes_acked(lapb, frame->nr);
nr                342 net/lapb/lapb_in.c 			 lapb->dev, frame->pf, frame->nr);
nr                345 net/lapb/lapb_in.c 		if (lapb_validate_nr(lapb, frame->nr)) {
nr                346 net/lapb/lapb_in.c 			lapb_check_iframes_acked(lapb, frame->nr);
nr                361 net/lapb/lapb_in.c 			 lapb->dev, frame->pf, frame->nr);
nr                364 net/lapb/lapb_in.c 		if (lapb_validate_nr(lapb, frame->nr)) {
nr                365 net/lapb/lapb_in.c 			lapb_frames_acked(lapb, frame->nr);
nr                383 net/lapb/lapb_in.c 			 lapb->dev, frame->pf, frame->ns, frame->nr);
nr                384 net/lapb/lapb_in.c 		if (!lapb_validate_nr(lapb, frame->nr)) {
nr                396 net/lapb/lapb_in.c 			lapb_frames_acked(lapb, frame->nr);
nr                398 net/lapb/lapb_in.c 			lapb_check_iframes_acked(lapb, frame->nr);
nr                188 net/lapb/lapb_out.c void lapb_check_iframes_acked(struct lapb_cb *lapb, unsigned short nr)
nr                190 net/lapb/lapb_out.c 	if (lapb->vs == nr) {
nr                191 net/lapb/lapb_out.c 		lapb_frames_acked(lapb, nr);
nr                194 net/lapb/lapb_out.c 	} else if (lapb->va != nr) {
nr                195 net/lapb/lapb_out.c 		lapb_frames_acked(lapb, nr);
nr                 46 net/lapb/lapb_subr.c void lapb_frames_acked(struct lapb_cb *lapb, unsigned short nr)
nr                 56 net/lapb/lapb_subr.c 	if (lapb->va != nr)
nr                 57 net/lapb/lapb_subr.c 		while (skb_peek(&lapb->ack_queue) && lapb->va != nr) {
nr                 86 net/lapb/lapb_subr.c int lapb_validate_nr(struct lapb_cb *lapb, unsigned short nr)
nr                 94 net/lapb/lapb_subr.c 		if (nr == vc)
nr                 99 net/lapb/lapb_subr.c 	return nr == lapb->vs;
nr                156 net/lapb/lapb_subr.c 			frame->nr         = (skb->data[1] >> 1) & 0x7F;
nr                168 net/lapb/lapb_subr.c 			frame->nr         = (skb->data[1] >> 1) & 0x7F;
nr                190 net/lapb/lapb_subr.c 			frame->nr   = (skb->data[0] >> 5) & 0x07;
nr                197 net/lapb/lapb_subr.c 			frame->nr   = (skb->data[0] >> 5) & 0x07;
nr                 50 net/llc/llc_c_ac.c 		u8 nr;
nr                 55 net/llc/llc_c_ac.c 		nr = LLC_I_GET_NR(pdu);
nr                 56 net/llc/llc_c_ac.c 		llc_conn_resend_i_pdu_as_cmd(sk, nr, 0);
nr                421 net/llc/llc_c_ac.c 	u8 nr = LLC_I_GET_NR(pdu);
nr                423 net/llc/llc_c_ac.c 	llc_conn_resend_i_pdu_as_cmd(sk, nr, 0);
nr                430 net/llc/llc_c_ac.c 	u8 nr;
nr                449 net/llc/llc_c_ac.c 		nr = LLC_I_GET_NR(pdu);
nr                451 net/llc/llc_c_ac.c 		llc_conn_resend_i_pdu_as_cmd(sk, nr, 0);
nr                459 net/llc/llc_c_ac.c 	u8 nr = LLC_I_GET_NR(pdu);
nr                461 net/llc/llc_c_ac.c 	llc_conn_resend_i_pdu_as_rsp(sk, nr, 1);
nr               1374 net/llc/llc_c_ac.c 	u8 nr = PDU_SUPV_GET_Nr(pdu);
nr               1376 net/llc/llc_c_ac.c 	if (llc_circular_between(llc_sk(sk)->vS, nr, llc_sk(sk)->X))
nr                 75 net/llc/llc_c_ev.c static u16 llc_util_nr_inside_tx_window(struct sock *sk, u8 nr)
nr                 94 net/llc/llc_c_ev.c 	rc = !llc_circular_between(nr1, nr, (nr2 + 1) % LLC_2_SEQ_NBR_MODULO);
nr                508 net/llc/llc_c_ev.c 	const u8 nr = LLC_I_GET_NR(pdu);
nr                512 net/llc/llc_c_ev.c 	    nr != vs && llc_util_nr_inside_tx_window(sk, nr)) {
nr                514 net/llc/llc_c_ev.c 			__func__, llc_sk(sk)->state, vs, nr);
nr                526 net/llc/llc_c_ev.c 	const u8 nr = LLC_I_GET_NR(pdu);
nr                530 net/llc/llc_c_ev.c 	    nr != vs && llc_util_nr_inside_tx_window(sk, nr)) {
nr                533 net/llc/llc_c_ev.c 			__func__, llc_sk(sk)->state, vs, nr);
nr                210 net/llc/llc_conn.c void llc_conn_resend_i_pdu_as_cmd(struct sock *sk, u8 nr, u8 first_p_bit)
nr                218 net/llc/llc_conn.c 	llc_conn_remove_acked_pdus(sk, nr, &nbr_unack_pdus);
nr                253 net/llc/llc_conn.c void llc_conn_resend_i_pdu_as_rsp(struct sock *sk, u8 nr, u8 first_f_bit)
nr                260 net/llc/llc_conn.c 	llc_conn_remove_acked_pdus(sk, nr, &nbr_unack_pdus);
nr                293 net/llc/llc_conn.c int llc_conn_remove_acked_pdus(struct sock *sk, u8 nr, u16 *how_many_unacked)
nr                308 net/llc/llc_conn.c 	pdu_pos = ((int)LLC_2_SEQ_NBR_MODULO + (int)nr -
nr                107 net/llc/llc_pdu.c void llc_pdu_init_as_i_cmd(struct sk_buff *skb, u8 p_bit, u8 ns, u8 nr)
nr                115 net/llc/llc_pdu.c 	pdu->ctrl_2 |= (nr << 1) & 0xFE;   /* set N(R) in bits 10..16 */
nr                126 net/llc/llc_pdu.c void llc_pdu_init_as_rej_cmd(struct sk_buff *skb, u8 p_bit, u8 nr)
nr                135 net/llc/llc_pdu.c 	pdu->ctrl_2 |= (nr << 1) & 0xFE; /* set N(R) in bits 10..16 */
nr                146 net/llc/llc_pdu.c void llc_pdu_init_as_rnr_cmd(struct sk_buff *skb, u8 p_bit, u8 nr)
nr                155 net/llc/llc_pdu.c 	pdu->ctrl_2 |= (nr << 1) & 0xFE; /* set N(R) in bits 10..16 */
nr                166 net/llc/llc_pdu.c void llc_pdu_init_as_rr_cmd(struct sk_buff *skb, u8 p_bit, u8 nr)
nr                174 net/llc/llc_pdu.c 	pdu->ctrl_2 |= (nr << 1) & 0xFE; /* set N(R) in bits 10..16 */
nr                255 net/llc/llc_pdu.c void llc_pdu_init_as_rr_rsp(struct sk_buff *skb, u8 f_bit, u8 nr)
nr                264 net/llc/llc_pdu.c 	pdu->ctrl_2 |= (nr << 1) & 0xFE;  /* set N(R) in bits 10..16 */
nr                275 net/llc/llc_pdu.c void llc_pdu_init_as_rej_rsp(struct sk_buff *skb, u8 f_bit, u8 nr)
nr                284 net/llc/llc_pdu.c 	pdu->ctrl_2 |= (nr << 1) & 0xFE;  /* set N(R) in bits 10..16 */
nr                295 net/llc/llc_pdu.c void llc_pdu_init_as_rnr_rsp(struct sk_buff *skb, u8 f_bit, u8 nr)
nr                304 net/llc/llc_pdu.c 	pdu->ctrl_2 |= (nr << 1) & 0xFE;  /* set N(R) in bits 10..16 */
nr                365 net/ncsi/internal.h void ncsi_free_request(struct ncsi_request *nr);
nr                277 net/ncsi/ncsi-cmd.c 	struct ncsi_request *nr;
nr                279 net/ncsi/ncsi-cmd.c 	nr = ncsi_alloc_request(ndp, nca->req_flags);
nr                280 net/ncsi/ncsi-cmd.c 	if (!nr)
nr                296 net/ncsi/ncsi-cmd.c 		ncsi_free_request(nr);
nr                300 net/ncsi/ncsi-cmd.c 	nr->cmd = skb;
nr                307 net/ncsi/ncsi-cmd.c 	return nr;
nr                313 net/ncsi/ncsi-cmd.c 	struct ncsi_request *nr;
nr                349 net/ncsi/ncsi-cmd.c 	nr = ncsi_alloc_command(nca);
nr                350 net/ncsi/ncsi-cmd.c 	if (!nr)
nr                355 net/ncsi/ncsi-cmd.c 		nr->snd_seq = nca->info->snd_seq;
nr                356 net/ncsi/ncsi-cmd.c 		nr->snd_portid = nca->info->snd_portid;
nr                357 net/ncsi/ncsi-cmd.c 		nr->nlhdr = *nca->info->nlhdr;
nr                361 net/ncsi/ncsi-cmd.c 	nca->id = nr->id;
nr                362 net/ncsi/ncsi-cmd.c 	ret = nch->handler(nr->cmd, nca);
nr                364 net/ncsi/ncsi-cmd.c 		ncsi_free_request(nr);
nr                369 net/ncsi/ncsi-cmd.c 	eh = skb_push(nr->cmd, sizeof(*eh));
nr                378 net/ncsi/ncsi-cmd.c 	nr->enabled = true;
nr                379 net/ncsi/ncsi-cmd.c 	mod_timer(&nr->timer, jiffies + 1 * HZ);
nr                382 net/ncsi/ncsi-cmd.c 	skb_get(nr->cmd);
nr                383 net/ncsi/ncsi-cmd.c 	ret = dev_queue_xmit(nr->cmd);
nr                385 net/ncsi/ncsi-cmd.c 		ncsi_free_request(nr);
nr                348 net/ncsi/ncsi-manage.c 	struct ncsi_request *nr = NULL;
nr                358 net/ncsi/ncsi-manage.c 		nr = &ndp->requests[i];
nr                359 net/ncsi/ncsi-manage.c 		nr->used = true;
nr                360 net/ncsi/ncsi-manage.c 		nr->flags = req_flags;
nr                370 net/ncsi/ncsi-manage.c 		nr = &ndp->requests[i];
nr                371 net/ncsi/ncsi-manage.c 		nr->used = true;
nr                372 net/ncsi/ncsi-manage.c 		nr->flags = req_flags;
nr                379 net/ncsi/ncsi-manage.c 	return nr;
nr                382 net/ncsi/ncsi-manage.c void ncsi_free_request(struct ncsi_request *nr)
nr                384 net/ncsi/ncsi-manage.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                389 net/ncsi/ncsi-manage.c 	if (nr->enabled) {
nr                390 net/ncsi/ncsi-manage.c 		nr->enabled = false;
nr                391 net/ncsi/ncsi-manage.c 		del_timer_sync(&nr->timer);
nr                395 net/ncsi/ncsi-manage.c 	cmd = nr->cmd;
nr                396 net/ncsi/ncsi-manage.c 	rsp = nr->rsp;
nr                397 net/ncsi/ncsi-manage.c 	nr->cmd = NULL;
nr                398 net/ncsi/ncsi-manage.c 	nr->rsp = NULL;
nr                399 net/ncsi/ncsi-manage.c 	nr->used = false;
nr                400 net/ncsi/ncsi-manage.c 	driven = !!(nr->flags & NCSI_REQ_FLAG_EVENT_DRIVEN);
nr                425 net/ncsi/ncsi-manage.c 	struct ncsi_request *nr = from_timer(nr, t, timer);
nr                426 net/ncsi/ncsi-manage.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                436 net/ncsi/ncsi-manage.c 	nr->enabled = false;
nr                437 net/ncsi/ncsi-manage.c 	if (nr->rsp || !nr->cmd) {
nr                443 net/ncsi/ncsi-manage.c 	if (nr->flags == NCSI_REQ_FLAG_NETLINK_DRIVEN) {
nr                444 net/ncsi/ncsi-manage.c 		if (nr->cmd) {
nr                447 net/ncsi/ncsi-manage.c 			      skb_network_header(nr->cmd);
nr                451 net/ncsi/ncsi-manage.c 			ncsi_send_netlink_timeout(nr, np, nc);
nr                456 net/ncsi/ncsi-manage.c 	ncsi_free_request(nr);
nr                478 net/ncsi/ncsi-netlink.c int ncsi_send_netlink_rsp(struct ncsi_request *nr,
nr                487 net/ncsi/ncsi-netlink.c 	net = dev_net(nr->rsp->dev);
nr                493 net/ncsi/ncsi-netlink.c 	hdr = genlmsg_put(skb, nr->snd_portid, nr->snd_seq,
nr                500 net/ncsi/ncsi-netlink.c 	nla_put_u32(skb, NCSI_ATTR_IFINDEX, nr->rsp->dev->ifindex);
nr                508 net/ncsi/ncsi-netlink.c 	rc = nla_put(skb, NCSI_ATTR_DATA, nr->rsp->len, (void *)nr->rsp->data);
nr                513 net/ncsi/ncsi-netlink.c 	return genlmsg_unicast(net, skb, nr->snd_portid);
nr                520 net/ncsi/ncsi-netlink.c int ncsi_send_netlink_timeout(struct ncsi_request *nr,
nr                532 net/ncsi/ncsi-netlink.c 	hdr = genlmsg_put(skb, nr->snd_portid, nr->snd_seq,
nr                539 net/ncsi/ncsi-netlink.c 	net = dev_net(nr->cmd->dev);
nr                541 net/ncsi/ncsi-netlink.c 	nla_put_u32(skb, NCSI_ATTR_IFINDEX, nr->cmd->dev->ifindex);
nr                548 net/ncsi/ncsi-netlink.c 						 nr->cmd->data)->channel)));
nr                556 net/ncsi/ncsi-netlink.c 	return genlmsg_unicast(net, skb, nr->snd_portid);
nr                 13 net/ncsi/ncsi-netlink.h int ncsi_send_netlink_rsp(struct ncsi_request *nr,
nr                 16 net/ncsi/ncsi-netlink.h int ncsi_send_netlink_timeout(struct ncsi_request *nr,
nr                 22 net/ncsi/ncsi-rsp.c static int ncsi_validate_rsp_pkt(struct ncsi_request *nr,
nr                 33 net/ncsi/ncsi-rsp.c 	h = (struct ncsi_rsp_pkt_hdr *)skb_network_header(nr->rsp);
nr                 36 net/ncsi/ncsi-rsp.c 		netdev_dbg(nr->ndp->ndev.dev,
nr                 41 net/ncsi/ncsi-rsp.c 		netdev_dbg(nr->ndp->ndev.dev,
nr                 49 net/ncsi/ncsi-rsp.c 		netdev_dbg(nr->ndp->ndev.dev,
nr                 67 net/ncsi/ncsi-rsp.c 		netdev_dbg(nr->ndp->ndev.dev,
nr                 76 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_cis(struct ncsi_request *nr)
nr                 79 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                 84 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                 97 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_sp(struct ncsi_request *nr)
nr                100 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                107 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                123 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_dp(struct ncsi_request *nr)
nr                126 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                132 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                148 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_ec(struct ncsi_request *nr)
nr                151 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                156 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                170 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_dc(struct ncsi_request *nr)
nr                173 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                178 net/ncsi/ncsi-rsp.c 	ret = ncsi_validate_rsp_pkt(nr, 4);
nr                183 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                197 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_rc(struct ncsi_request *nr)
nr                200 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                205 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                219 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_ecnt(struct ncsi_request *nr)
nr                222 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                227 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                241 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_dcnt(struct ncsi_request *nr)
nr                244 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                249 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                263 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_ae(struct ncsi_request *nr)
nr                267 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                272 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                284 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_ae_pkt *)skb_network_header(nr->cmd);
nr                292 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_sl(struct ncsi_request *nr)
nr                296 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                301 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                307 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_sl_pkt *)skb_network_header(nr->cmd);
nr                315 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gls(struct ncsi_request *nr)
nr                318 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                324 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gls_pkt *)skb_network_header(nr->rsp);
nr                335 net/ncsi/ncsi-rsp.c 	if (nr->flags & NCSI_REQ_FLAG_EVENT_DRIVEN)
nr                346 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_svf(struct ncsi_request *nr)
nr                350 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                357 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                363 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_svf_pkt *)skb_network_header(nr->cmd);
nr                383 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_ev(struct ncsi_request *nr)
nr                387 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                392 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                404 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_ev_pkt *)skb_network_header(nr->cmd);
nr                411 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_dv(struct ncsi_request *nr)
nr                414 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                419 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                435 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_sma(struct ncsi_request *nr)
nr                439 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                449 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                458 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_sma_pkt *)skb_network_header(nr->cmd);
nr                481 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_ebf(struct ncsi_request *nr)
nr                485 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                490 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                501 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_ebf_pkt *)skb_network_header(nr->cmd);
nr                508 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_dbf(struct ncsi_request *nr)
nr                511 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                515 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                533 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_egmf(struct ncsi_request *nr)
nr                537 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                542 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                554 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_egmf_pkt *)skb_network_header(nr->cmd);
nr                561 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_dgmf(struct ncsi_request *nr)
nr                564 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                568 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                586 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_snfc(struct ncsi_request *nr)
nr                590 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                595 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr                607 net/ncsi/ncsi-rsp.c 	cmd = (struct ncsi_cmd_snfc_pkt *)skb_network_header(nr->cmd);
nr                615 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_oem_mlx_gma(struct ncsi_request *nr)
nr                617 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                625 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_oem_pkt *)skb_network_header(nr->rsp);
nr                638 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_oem_mlx(struct ncsi_request *nr)
nr                644 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_oem_pkt *)skb_network_header(nr->rsp);
nr                649 net/ncsi/ncsi-rsp.c 		return ncsi_rsp_handler_oem_mlx_gma(nr);
nr                654 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_oem_bcm_gma(struct ncsi_request *nr)
nr                656 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                664 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_oem_pkt *)skb_network_header(nr->rsp);
nr                682 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_oem_bcm(struct ncsi_request *nr)
nr                688 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_oem_pkt *)skb_network_header(nr->rsp);
nr                692 net/ncsi/ncsi-rsp.c 		return ncsi_rsp_handler_oem_bcm_gma(nr);
nr                698 net/ncsi/ncsi-rsp.c 	int		(*handler)(struct ncsi_request *nr);
nr                705 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_oem(struct ncsi_request *nr)
nr                712 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_oem_pkt *)skb_network_header(nr->rsp);
nr                728 net/ncsi/ncsi-rsp.c 		netdev_err(nr->ndp->ndev.dev, "Received unrecognized OEM packet with MFR-ID (0x%x)\n",
nr                734 net/ncsi/ncsi-rsp.c 	return nrh->handler(nr);
nr                737 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gvi(struct ncsi_request *nr)
nr                740 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                746 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gvi_pkt *)skb_network_header(nr->rsp);
nr                765 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gc(struct ncsi_request *nr)
nr                768 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                773 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gc_pkt *)skb_network_header(nr->rsp);
nr                814 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gp(struct ncsi_request *nr)
nr                818 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                828 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gp_pkt *)skb_network_header(nr->rsp);
nr                890 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gcps(struct ncsi_request *nr)
nr                893 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                898 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gcps_pkt *)skb_network_header(nr->rsp);
nr                951 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gns(struct ncsi_request *nr)
nr                954 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                959 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gns_pkt *)skb_network_header(nr->rsp);
nr                978 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gnpts(struct ncsi_request *nr)
nr                981 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr                986 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gnpts_pkt *)skb_network_header(nr->rsp);
nr               1007 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gps(struct ncsi_request *nr)
nr               1010 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr               1014 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gps_pkt *)skb_network_header(nr->rsp);
nr               1023 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_gpuuid(struct ncsi_request *nr)
nr               1026 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr               1030 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_gpuuid_pkt *)skb_network_header(nr->rsp);
nr               1041 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_pldm(struct ncsi_request *nr)
nr               1046 net/ncsi/ncsi-rsp.c static int ncsi_rsp_handler_netlink(struct ncsi_request *nr)
nr               1048 net/ncsi/ncsi-rsp.c 	struct ncsi_dev_priv *ndp = nr->ndp;
nr               1055 net/ncsi/ncsi-rsp.c 	rsp = (struct ncsi_rsp_pkt *)skb_network_header(nr->rsp);
nr               1061 net/ncsi/ncsi-rsp.c 	ret = ncsi_send_netlink_rsp(nr, np, nc);
nr               1069 net/ncsi/ncsi-rsp.c 	int		(*handler)(struct ncsi_request *nr);
nr               1111 net/ncsi/ncsi-rsp.c 	struct ncsi_request *nr;
nr               1147 net/ncsi/ncsi-rsp.c 	nr = &ndp->requests[hdr->id];
nr               1148 net/ncsi/ncsi-rsp.c 	if (!nr->used) {
nr               1153 net/ncsi/ncsi-rsp.c 	nr->rsp = skb;
nr               1154 net/ncsi/ncsi-rsp.c 	if (!nr->enabled) {
nr               1165 net/ncsi/ncsi-rsp.c 	ret = ncsi_validate_rsp_pkt(nr, payload);
nr               1171 net/ncsi/ncsi-rsp.c 		if (nr->flags == NCSI_REQ_FLAG_NETLINK_DRIVEN) {
nr               1176 net/ncsi/ncsi-rsp.c 						      nr->snd_seq,
nr               1177 net/ncsi/ncsi-rsp.c 						      nr->snd_portid,
nr               1178 net/ncsi/ncsi-rsp.c 						      &nr->nlhdr,
nr               1185 net/ncsi/ncsi-rsp.c 	ret = nrh->handler(nr);
nr               1192 net/ncsi/ncsi-rsp.c 	if (nr->flags == NCSI_REQ_FLAG_NETLINK_DRIVEN) {
nr               1193 net/ncsi/ncsi-rsp.c 		ret = ncsi_rsp_handler_netlink(nr);
nr               1202 net/ncsi/ncsi-rsp.c 	ncsi_free_request(nr);
nr                657 net/netfilter/ipset/ip_set_hash_gen.h 	u32 i, j, r, nr, key;
nr                727 net/netfilter/ipset/ip_set_hash_gen.h 				nr = ahash_region(key, htable_bits);
nr                737 net/netfilter/ipset/ip_set_hash_gen.h 					t->hregion[nr].ext_size +=
nr                759 net/netfilter/ipset/ip_set_hash_gen.h 					t->hregion[nr].ext_size +=
nr                769 net/netfilter/ipset/ip_set_hash_gen.h 				t->hregion[nr].elements++;
nr               7669 net/netfilter/nf_tables_api.c 	struct nft_rule *rule, *nr;
nr               7675 net/netfilter/nf_tables_api.c 	list_for_each_entry_safe(rule, nr, &ctx->chain->rules, list) {
nr               7694 net/netfilter/nf_tables_api.c 	struct nft_rule *rule, *nr;
nr               7710 net/netfilter/nf_tables_api.c 			list_for_each_entry_safe(rule, nr, &chain->rules, list) {
nr                319 net/netfilter/nft_chain_filter.c 	struct nft_chain *chain, *nr;
nr                335 net/netfilter/nft_chain_filter.c 		list_for_each_entry_safe(chain, nr, &table->chains, list) {
nr                149 net/netrom/af_netrom.c 		struct nr_sock *nr = nr_sk(s);
nr                151 net/netrom/af_netrom.c 		if (nr->my_index == index && nr->my_id == id) {
nr                172 net/netrom/af_netrom.c 		struct nr_sock *nr = nr_sk(s);
nr                174 net/netrom/af_netrom.c 		if (nr->your_index == index && nr->your_id == id &&
nr                175 net/netrom/af_netrom.c 		    !ax25cmp(&nr->dest_addr, dest)) {
nr                278 net/netrom/af_netrom.c 	struct nr_sock *nr = nr_sk(sk);
nr                294 net/netrom/af_netrom.c 		nr->t1 = opt * HZ;
nr                300 net/netrom/af_netrom.c 		nr->t2 = opt * HZ;
nr                306 net/netrom/af_netrom.c 		nr->n2 = opt;
nr                312 net/netrom/af_netrom.c 		nr->t4 = opt * HZ;
nr                318 net/netrom/af_netrom.c 		nr->idle = opt * 60 * HZ;
nr                330 net/netrom/af_netrom.c 	struct nr_sock *nr = nr_sk(sk);
nr                345 net/netrom/af_netrom.c 		val = nr->t1 / HZ;
nr                349 net/netrom/af_netrom.c 		val = nr->t2 / HZ;
nr                353 net/netrom/af_netrom.c 		val = nr->n2;
nr                357 net/netrom/af_netrom.c 		val = nr->t4 / HZ;
nr                361 net/netrom/af_netrom.c 		val = nr->idle / (60 * HZ);
nr                403 net/netrom/af_netrom.c 	struct nr_sock *nr;
nr                415 net/netrom/af_netrom.c 	nr = nr_sk(sk);
nr                422 net/netrom/af_netrom.c 	skb_queue_head_init(&nr->ack_queue);
nr                423 net/netrom/af_netrom.c 	skb_queue_head_init(&nr->reseq_queue);
nr                424 net/netrom/af_netrom.c 	skb_queue_head_init(&nr->frag_queue);
nr                428 net/netrom/af_netrom.c 	nr->t1     =
nr                430 net/netrom/af_netrom.c 	nr->t2     =
nr                432 net/netrom/af_netrom.c 	nr->n2     =
nr                434 net/netrom/af_netrom.c 	nr->t4     =
nr                436 net/netrom/af_netrom.c 	nr->idle   =
nr                438 net/netrom/af_netrom.c 	nr->window = sysctl_netrom_transport_requested_window_size;
nr                440 net/netrom/af_netrom.c 	nr->bpqext = 1;
nr                441 net/netrom/af_netrom.c 	nr->state  = NR_STATE_0;
nr                449 net/netrom/af_netrom.c 	struct nr_sock *nr, *onr;
nr                458 net/netrom/af_netrom.c 	nr = nr_sk(sk);
nr                470 net/netrom/af_netrom.c 	skb_queue_head_init(&nr->ack_queue);
nr                471 net/netrom/af_netrom.c 	skb_queue_head_init(&nr->reseq_queue);
nr                472 net/netrom/af_netrom.c 	skb_queue_head_init(&nr->frag_queue);
nr                478 net/netrom/af_netrom.c 	nr->t1      = onr->t1;
nr                479 net/netrom/af_netrom.c 	nr->t2      = onr->t2;
nr                480 net/netrom/af_netrom.c 	nr->n2      = onr->n2;
nr                481 net/netrom/af_netrom.c 	nr->t4      = onr->t4;
nr                482 net/netrom/af_netrom.c 	nr->idle    = onr->idle;
nr                483 net/netrom/af_netrom.c 	nr->window  = onr->window;
nr                485 net/netrom/af_netrom.c 	nr->device  = onr->device;
nr                486 net/netrom/af_netrom.c 	nr->bpqext  = onr->bpqext;
nr                494 net/netrom/af_netrom.c 	struct nr_sock *nr;
nr                501 net/netrom/af_netrom.c 	nr = nr_sk(sk);
nr                503 net/netrom/af_netrom.c 	switch (nr->state) {
nr                513 net/netrom/af_netrom.c 		nr->n2count = 0;
nr                519 net/netrom/af_netrom.c 		nr->state    = NR_STATE_2;
nr                540 net/netrom/af_netrom.c 	struct nr_sock *nr = nr_sk(sk);
nr                577 net/netrom/af_netrom.c 		nr->user_addr   = addr->fsa_digipeater[0];
nr                578 net/netrom/af_netrom.c 		nr->source_addr = addr->fsa_ax25.sax25_call;
nr                584 net/netrom/af_netrom.c 			nr->user_addr   = user->call;
nr                592 net/netrom/af_netrom.c 			nr->user_addr   = *source;
nr                595 net/netrom/af_netrom.c 		nr->source_addr = *source;
nr                598 net/netrom/af_netrom.c 	nr->device = dev;
nr                612 net/netrom/af_netrom.c 	struct nr_sock *nr = nr_sk(sk);
nr                658 net/netrom/af_netrom.c 			nr->user_addr   = user->call;
nr                666 net/netrom/af_netrom.c 			nr->user_addr   = *source;
nr                669 net/netrom/af_netrom.c 		nr->source_addr = *source;
nr                670 net/netrom/af_netrom.c 		nr->device      = dev;
nr                676 net/netrom/af_netrom.c 	nr->dest_addr = addr->sax25_call;
nr                682 net/netrom/af_netrom.c 	nr->my_index = circuit / 256;
nr                683 net/netrom/af_netrom.c 	nr->my_id    = circuit % 256;
nr                693 net/netrom/af_netrom.c 	nr->state = NR_STATE_1;
nr                811 net/netrom/af_netrom.c 	struct nr_sock *nr = nr_sk(sk);
nr                824 net/netrom/af_netrom.c 		sax->fsa_ax25.sax25_call   = nr->user_addr;
nr                826 net/netrom/af_netrom.c 		sax->fsa_digipeater[0]     = nr->dest_addr;
nr                831 net/netrom/af_netrom.c 		sax->fsa_ax25.sax25_call   = nr->source_addr;
nr               1013 net/netrom/af_netrom.c 	struct nr_sock *nr = nr_sk(sk);
nr               1036 net/netrom/af_netrom.c 	if (nr->device == NULL) {
nr               1047 net/netrom/af_netrom.c 		if (ax25cmp(&nr->dest_addr, &sax.sax25_call) != 0) {
nr               1061 net/netrom/af_netrom.c 		sax.sax25_call   = nr->dest_addr;
nr               1087 net/netrom/af_netrom.c 	*asmptr++ = nr->your_index;
nr               1088 net/netrom/af_netrom.c 	*asmptr++ = nr->your_id;
nr               1252 net/netrom/af_netrom.c 	struct nr_sock *nr;
nr               1263 net/netrom/af_netrom.c 		nr = nr_sk(s);
nr               1265 net/netrom/af_netrom.c 		if ((dev = nr->device) == NULL)
nr               1270 net/netrom/af_netrom.c 		seq_printf(seq, "%-9s ", ax2asc(buf, &nr->user_addr));
nr               1271 net/netrom/af_netrom.c 		seq_printf(seq, "%-9s ", ax2asc(buf, &nr->dest_addr));
nr               1274 net/netrom/af_netrom.c 			ax2asc(buf, &nr->source_addr),
nr               1276 net/netrom/af_netrom.c 			nr->my_index,
nr               1277 net/netrom/af_netrom.c 			nr->my_id,
nr               1278 net/netrom/af_netrom.c 			nr->your_index,
nr               1279 net/netrom/af_netrom.c 			nr->your_id,
nr               1280 net/netrom/af_netrom.c 			nr->state,
nr               1281 net/netrom/af_netrom.c 			nr->vs,
nr               1282 net/netrom/af_netrom.c 			nr->vr,
nr               1283 net/netrom/af_netrom.c 			nr->va,
nr               1284 net/netrom/af_netrom.c 			ax25_display_timer(&nr->t1timer) / HZ,
nr               1285 net/netrom/af_netrom.c 			nr->t1 / HZ,
nr               1286 net/netrom/af_netrom.c 			ax25_display_timer(&nr->t2timer) / HZ,
nr               1287 net/netrom/af_netrom.c 			nr->t2 / HZ,
nr               1288 net/netrom/af_netrom.c 			ax25_display_timer(&nr->t4timer) / HZ,
nr               1289 net/netrom/af_netrom.c 			nr->t4 / HZ,
nr               1290 net/netrom/af_netrom.c 			ax25_display_timer(&nr->idletimer) / (60 * HZ),
nr               1291 net/netrom/af_netrom.c 			nr->idle / (60 * HZ),
nr               1292 net/netrom/af_netrom.c 			nr->n2count,
nr               1293 net/netrom/af_netrom.c 			nr->n2,
nr               1294 net/netrom/af_netrom.c 			nr->window,
nr                 32 net/netrom/nr_in.c 	struct nr_sock *nr = nr_sk(sk);
nr                 39 net/netrom/nr_in.c 		nr->fraglen += skb->len;
nr                 40 net/netrom/nr_in.c 		skb_queue_tail(&nr->frag_queue, skb);
nr                 44 net/netrom/nr_in.c 	if (!more && nr->fraglen > 0) {	/* End of fragment */
nr                 45 net/netrom/nr_in.c 		nr->fraglen += skb->len;
nr                 46 net/netrom/nr_in.c 		skb_queue_tail(&nr->frag_queue, skb);
nr                 48 net/netrom/nr_in.c 		if ((skbn = alloc_skb(nr->fraglen, GFP_ATOMIC)) == NULL)
nr                 53 net/netrom/nr_in.c 		while ((skbo = skb_dequeue(&nr->frag_queue)) != NULL) {
nr                 60 net/netrom/nr_in.c 		nr->fraglen = 0;
nr                 76 net/netrom/nr_in.c 		struct nr_sock *nr = nr_sk(sk);
nr                 80 net/netrom/nr_in.c 		nr->your_index = skb->data[17];
nr                 81 net/netrom/nr_in.c 		nr->your_id    = skb->data[18];
nr                 82 net/netrom/nr_in.c 		nr->vs	       = 0;
nr                 83 net/netrom/nr_in.c 		nr->va	       = 0;
nr                 84 net/netrom/nr_in.c 		nr->vr	       = 0;
nr                 85 net/netrom/nr_in.c 		nr->vl	       = 0;
nr                 86 net/netrom/nr_in.c 		nr->state      = NR_STATE_3;
nr                 87 net/netrom/nr_in.c 		nr->n2count    = 0;
nr                 88 net/netrom/nr_in.c 		nr->window     = skb->data[20];
nr                152 net/netrom/nr_in.c 	unsigned short nr, ns;
nr                155 net/netrom/nr_in.c 	nr = skb->data[18];
nr                184 net/netrom/nr_in.c 		if (!nr_validate_nr(sk, nr)) {
nr                188 net/netrom/nr_in.c 			nr_frames_acked(sk, nr);
nr                192 net/netrom/nr_in.c 				nr_frames_acked(sk, nr);
nr                194 net/netrom/nr_in.c 				nr_check_iframes_acked(sk, nr);
nr                214 net/netrom/nr_in.c 		if (nr_validate_nr(sk, nr)) {
nr                216 net/netrom/nr_in.c 				nr_frames_acked(sk, nr);
nr                220 net/netrom/nr_in.c 					nr_frames_acked(sk, nr);
nr                222 net/netrom/nr_in.c 					nr_check_iframes_acked(sk, nr);
nr                279 net/netrom/nr_in.c 	struct nr_sock *nr = nr_sk(sk);
nr                282 net/netrom/nr_in.c 	if (nr->state == NR_STATE_0)
nr                287 net/netrom/nr_in.c 	switch (nr->state) {
nr                 81 net/netrom/nr_out.c 	struct nr_sock *nr = nr_sk(sk);
nr                 86 net/netrom/nr_out.c 	skb->data[2] = nr->vs;
nr                 87 net/netrom/nr_out.c 	skb->data[3] = nr->vr;
nr                 89 net/netrom/nr_out.c 	if (nr->condition & NR_COND_OWN_RX_BUSY)
nr                100 net/netrom/nr_out.c 	struct nr_sock *nr = nr_sk(sk);
nr                102 net/netrom/nr_out.c 	if ((skb = skb_peek(&nr->ack_queue)) == NULL)
nr                108 net/netrom/nr_out.c 	skbn->data[2] = nr->va;
nr                109 net/netrom/nr_out.c 	skbn->data[3] = nr->vr;
nr                111 net/netrom/nr_out.c 	if (nr->condition & NR_COND_OWN_RX_BUSY)
nr                116 net/netrom/nr_out.c 	nr->condition &= ~NR_COND_ACK_PENDING;
nr                117 net/netrom/nr_out.c 	nr->vl         = nr->vr;
nr                124 net/netrom/nr_out.c 	struct nr_sock *nr = nr_sk(sk);
nr                128 net/netrom/nr_out.c 	if (nr->state != NR_STATE_3)
nr                131 net/netrom/nr_out.c 	if (nr->condition & NR_COND_PEER_RX_BUSY)
nr                137 net/netrom/nr_out.c 	start = (skb_peek(&nr->ack_queue) == NULL) ? nr->va : nr->vs;
nr                138 net/netrom/nr_out.c 	end   = (nr->va + nr->window) % NR_MODULUS;
nr                143 net/netrom/nr_out.c 	nr->vs = start;
nr                168 net/netrom/nr_out.c 		nr->vs = (nr->vs + 1) % NR_MODULUS;
nr                173 net/netrom/nr_out.c 		skb_queue_tail(&nr->ack_queue, skb);
nr                175 net/netrom/nr_out.c 	} while (nr->vs != end &&
nr                178 net/netrom/nr_out.c 	nr->vl         = nr->vr;
nr                179 net/netrom/nr_out.c 	nr->condition &= ~NR_COND_ACK_PENDING;
nr                187 net/netrom/nr_out.c 	struct nr_sock *nr = nr_sk(sk);
nr                195 net/netrom/nr_out.c 	memcpy(dptr, &nr->source_addr, AX25_ADDR_LEN);
nr                201 net/netrom/nr_out.c 	memcpy(dptr, &nr->dest_addr, AX25_ADDR_LEN);
nr                222 net/netrom/nr_out.c 	struct nr_sock *nr = nr_sk(sk);
nr                224 net/netrom/nr_out.c 	nr->condition = 0x00;
nr                225 net/netrom/nr_out.c 	nr->n2count   = 0;
nr                240 net/netrom/nr_out.c 	struct nr_sock *nr = nr_sk(sk);
nr                243 net/netrom/nr_out.c 	if (nr->condition & NR_COND_OWN_RX_BUSY) {
nr                246 net/netrom/nr_out.c 		if (skb_peek(&nr->reseq_queue) != NULL)
nr                252 net/netrom/nr_out.c 	nr->vl         = nr->vr;
nr                253 net/netrom/nr_out.c 	nr->condition &= ~NR_COND_ACK_PENDING;
nr                256 net/netrom/nr_out.c void nr_check_iframes_acked(struct sock *sk, unsigned short nr)
nr                260 net/netrom/nr_out.c 	if (nrom->vs == nr) {
nr                261 net/netrom/nr_out.c 		nr_frames_acked(sk, nr);
nr                265 net/netrom/nr_out.c 		if (nrom->va != nr) {
nr                266 net/netrom/nr_out.c 			nr_frames_acked(sk, nr);
nr                 97 net/netrom/nr_route.c static int __must_check nr_add_node(ax25_address *nr, const char *mnemonic,
nr                106 net/netrom/nr_route.c 	if ((odev=nr_dev_get(nr)) != NULL) {	/* Can't add routes to ourself */
nr                111 net/netrom/nr_route.c 	nr_node = nr_node_get(nr);
nr                181 net/netrom/nr_route.c 	if (quality != 0 && ax25cmp(nr, ax25) == 0 && !nr_neigh->locked)
nr                191 net/netrom/nr_route.c 		nr_node->callsign = *nr;
nr                 33 net/netrom/nr_subr.c 	struct nr_sock *nr = nr_sk(sk);
nr                 36 net/netrom/nr_subr.c 	skb_queue_purge(&nr->ack_queue);
nr                 37 net/netrom/nr_subr.c 	skb_queue_purge(&nr->reseq_queue);
nr                 38 net/netrom/nr_subr.c 	skb_queue_purge(&nr->frag_queue);
nr                 46 net/netrom/nr_subr.c void nr_frames_acked(struct sock *sk, unsigned short nr)
nr                 54 net/netrom/nr_subr.c 	if (nrom->va != nr) {
nr                 55 net/netrom/nr_subr.c 		while (skb_peek(&nrom->ack_queue) != NULL && nrom->va != nr) {
nr                 85 net/netrom/nr_subr.c int nr_validate_nr(struct sock *sk, unsigned short nr)
nr                 91 net/netrom/nr_subr.c 		if (nr == vc) return 1;
nr                 95 net/netrom/nr_subr.c 	return nr == nrom->vs;
nr                103 net/netrom/nr_subr.c 	struct nr_sock *nr = nr_sk(sk);
nr                104 net/netrom/nr_subr.c 	unsigned short vc = nr->vr;
nr                105 net/netrom/nr_subr.c 	unsigned short vt = (nr->vl + nr->window) % NR_MODULUS;
nr                121 net/netrom/nr_subr.c 	struct nr_sock *nr = nr_sk(sk);
nr                133 net/netrom/nr_subr.c 		len += (nr->bpqext) ? 2 : 1;
nr                156 net/netrom/nr_subr.c 		timeout  = nr->t1 / HZ;
nr                157 net/netrom/nr_subr.c 		*dptr++  = nr->my_index;
nr                158 net/netrom/nr_subr.c 		*dptr++  = nr->my_id;
nr                162 net/netrom/nr_subr.c 		*dptr++  = nr->window;
nr                163 net/netrom/nr_subr.c 		memcpy(dptr, &nr->user_addr, AX25_ADDR_LEN);
nr                168 net/netrom/nr_subr.c 		memcpy(dptr, &nr->source_addr, AX25_ADDR_LEN);
nr                178 net/netrom/nr_subr.c 		*dptr++ = nr->your_index;
nr                179 net/netrom/nr_subr.c 		*dptr++ = nr->your_id;
nr                180 net/netrom/nr_subr.c 		*dptr++ = nr->my_index;
nr                181 net/netrom/nr_subr.c 		*dptr++ = nr->my_id;
nr                183 net/netrom/nr_subr.c 		*dptr++ = nr->window;
nr                184 net/netrom/nr_subr.c 		if (nr->bpqext) *dptr++ = sysctl_netrom_network_ttl_initialiser;
nr                189 net/netrom/nr_subr.c 		*dptr++ = nr->your_index;
nr                190 net/netrom/nr_subr.c 		*dptr++ = nr->your_id;
nr                197 net/netrom/nr_subr.c 		*dptr++ = nr->your_index;
nr                198 net/netrom/nr_subr.c 		*dptr++ = nr->your_id;
nr                200 net/netrom/nr_subr.c 		*dptr++ = nr->vr;
nr                 37 net/netrom/nr_timer.c 	struct nr_sock *nr = nr_sk(sk);
nr                 39 net/netrom/nr_timer.c 	timer_setup(&nr->t1timer, nr_t1timer_expiry, 0);
nr                 40 net/netrom/nr_timer.c 	timer_setup(&nr->t2timer, nr_t2timer_expiry, 0);
nr                 41 net/netrom/nr_timer.c 	timer_setup(&nr->t4timer, nr_t4timer_expiry, 0);
nr                 42 net/netrom/nr_timer.c 	timer_setup(&nr->idletimer, nr_idletimer_expiry, 0);
nr                 50 net/netrom/nr_timer.c 	struct nr_sock *nr = nr_sk(sk);
nr                 52 net/netrom/nr_timer.c 	sk_reset_timer(sk, &nr->t1timer, jiffies + nr->t1);
nr                 57 net/netrom/nr_timer.c 	struct nr_sock *nr = nr_sk(sk);
nr                 59 net/netrom/nr_timer.c 	sk_reset_timer(sk, &nr->t2timer, jiffies + nr->t2);
nr                 64 net/netrom/nr_timer.c 	struct nr_sock *nr = nr_sk(sk);
nr                 66 net/netrom/nr_timer.c 	sk_reset_timer(sk, &nr->t4timer, jiffies + nr->t4);
nr                 71 net/netrom/nr_timer.c 	struct nr_sock *nr = nr_sk(sk);
nr                 73 net/netrom/nr_timer.c 	if (nr->idle > 0)
nr                 74 net/netrom/nr_timer.c 		sk_reset_timer(sk, &nr->idletimer, jiffies + nr->idle);
nr                115 net/netrom/nr_timer.c 	struct nr_sock *nr = nr_sk(sk);
nr                118 net/netrom/nr_timer.c 	switch (nr->state) {
nr                137 net/netrom/nr_timer.c 		    (nr->condition & NR_COND_OWN_RX_BUSY)) {
nr                138 net/netrom/nr_timer.c 			nr->condition &= ~NR_COND_OWN_RX_BUSY;
nr                139 net/netrom/nr_timer.c 			nr->condition &= ~NR_COND_ACK_PENDING;
nr                140 net/netrom/nr_timer.c 			nr->vl         = nr->vr;
nr                153 net/netrom/nr_timer.c 	struct nr_sock *nr = from_timer(nr, t, t2timer);
nr                154 net/netrom/nr_timer.c 	struct sock *sk = &nr->sock;
nr                157 net/netrom/nr_timer.c 	if (nr->condition & NR_COND_ACK_PENDING) {
nr                158 net/netrom/nr_timer.c 		nr->condition &= ~NR_COND_ACK_PENDING;
nr                166 net/netrom/nr_timer.c 	struct nr_sock *nr = from_timer(nr, t, t4timer);
nr                167 net/netrom/nr_timer.c 	struct sock *sk = &nr->sock;
nr                176 net/netrom/nr_timer.c 	struct nr_sock *nr = from_timer(nr, t, idletimer);
nr                177 net/netrom/nr_timer.c 	struct sock *sk = &nr->sock;
nr                183 net/netrom/nr_timer.c 	nr->n2count = 0;
nr                185 net/netrom/nr_timer.c 	nr->state = NR_STATE_2;
nr                204 net/netrom/nr_timer.c 	struct nr_sock *nr = from_timer(nr, t, t1timer);
nr                205 net/netrom/nr_timer.c 	struct sock *sk = &nr->sock;
nr                208 net/netrom/nr_timer.c 	switch (nr->state) {
nr                210 net/netrom/nr_timer.c 		if (nr->n2count == nr->n2) {
nr                215 net/netrom/nr_timer.c 			nr->n2count++;
nr                221 net/netrom/nr_timer.c 		if (nr->n2count == nr->n2) {
nr                226 net/netrom/nr_timer.c 			nr->n2count++;
nr                232 net/netrom/nr_timer.c 		if (nr->n2count == nr->n2) {
nr                237 net/netrom/nr_timer.c 			nr->n2count++;
nr                 50 net/nfc/hci/llc_shdlc.c 	int nr;				/* next expected seq num for receive */
nr                141 net/nfc/hci/llc_shdlc.c 				  enum sframe_type sframe_type, int nr)
nr                146 net/nfc/hci/llc_shdlc.c 	pr_debug("sframe_type=%d nr=%d\n", sframe_type, nr);
nr                152 net/nfc/hci/llc_shdlc.c 	*(u8 *)skb_push(skb, 1) = SHDLC_CONTROL_HEAD_S | (sframe_type << 3) | nr;
nr                224 net/nfc/hci/llc_shdlc.c 				  struct sk_buff *skb, int ns, int nr)
nr                227 net/nfc/hci/llc_shdlc.c 	int y_nr = nr;
nr                229 net/nfc/hci/llc_shdlc.c 	pr_debug("recvd I-frame %d, remote waiting frame %d\n", ns, nr);
nr                234 net/nfc/hci/llc_shdlc.c 	if (x_ns != shdlc->nr) {
nr                235 net/nfc/hci/llc_shdlc.c 		llc_shdlc_send_s_frame(shdlc, S_FRAME_REJ, shdlc->nr);
nr                251 net/nfc/hci/llc_shdlc.c 	shdlc->nr = (shdlc->nr + 1) % 8;
nr                312 net/nfc/hci/llc_shdlc.c 				  enum sframe_type s_frame_type, int nr)
nr                321 net/nfc/hci/llc_shdlc.c 		llc_shdlc_rcv_ack(shdlc, nr);
nr                332 net/nfc/hci/llc_shdlc.c 		llc_shdlc_rcv_rej(shdlc, nr);
nr                335 net/nfc/hci/llc_shdlc.c 		llc_shdlc_rcv_ack(shdlc, nr);
nr                351 net/nfc/hci/llc_shdlc.c 		shdlc->nr = 0;
nr                463 net/nfc/hci/llc_shdlc.c 	int nr;
nr                481 net/nfc/hci/llc_shdlc.c 			nr = control & SHDLC_CONTROL_NR_MASK;
nr                482 net/nfc/hci/llc_shdlc.c 			llc_shdlc_rcv_i_frame(shdlc, skb, ns, nr);
nr                489 net/nfc/hci/llc_shdlc.c 			nr = control & SHDLC_CONTROL_NR_MASK;
nr                490 net/nfc/hci/llc_shdlc.c 			llc_shdlc_rcv_s_frame(shdlc, s_frame_type, nr);
nr                544 net/nfc/hci/llc_shdlc.c 					shdlc->nr;
nr                547 net/nfc/hci/llc_shdlc.c 			 shdlc->nr);
nr                657 net/nfc/hci/llc_shdlc.c 						   shdlc->nr);
nr               1032 net/nfc/llcp_core.c 	u8 dsap, ssap, ptype, ns, nr;
nr               1038 net/nfc/llcp_core.c 	nr = nfc_llcp_nr(skb);
nr               1040 net/nfc/llcp_core.c 	pr_debug("%d %d R %d S %d\n", dsap, ssap, nr, ns);
nr               1077 net/nfc/llcp_core.c 	if (llcp_sock->send_ack_n != nr) {
nr               1081 net/nfc/llcp_core.c 		llcp_sock->send_ack_n = nr;
nr               1090 net/nfc/llcp_core.c 			if (n == nr)
nr                295 net/nfc/nci/uart.c 				 unsigned char __user *buf, size_t nr)
nr                765 net/rds/af_rds.c 	lens->nr = total;
nr                797 net/rds/af_rds.c 	lens->nr = total;
nr                836 net/rds/af_rds.c 	lens->nr = cnt;
nr                870 net/rds/af_rds.c 	lens->nr = rds_sock_count;
nr                581 net/rds/connection.c 	lens->nr = total;
nr                653 net/rds/connection.c 	lens->nr = 0;
nr                671 net/rds/connection.c 			lens->nr++;
nr                691 net/rds/connection.c 	lens->nr = 0;
nr                721 net/rds/connection.c 			lens->nr++;
nr                418 net/rds/ib.h   void rds_ib_ring_init(struct rds_ib_work_ring *ring, u32 nr);
nr                419 net/rds/ib.h   void rds_ib_ring_resize(struct rds_ib_work_ring *ring, u32 nr);
nr                295 net/rds/ib_cm.c 	int nr, i;
nr                298 net/rds/ib_cm.c 	while ((nr = ib_poll_cq(cq, RDS_IB_WC_MAX, wcs)) > 0) {
nr                299 net/rds/ib_cm.c 		for (i = 0; i < nr; i++) {
nr                340 net/rds/ib_cm.c 	int nr, i;
nr                343 net/rds/ib_cm.c 	while ((nr = ib_poll_cq(cq, RDS_IB_WC_MAX, wcs)) > 0) {
nr                344 net/rds/ib_cm.c 		for (i = 0; i < nr; i++) {
nr                 66 net/rds/ib_ring.c void rds_ib_ring_init(struct rds_ib_work_ring *ring, u32 nr)
nr                 69 net/rds/ib_ring.c 	ring->w_nr = nr;
nr                 84 net/rds/ib_ring.c void rds_ib_ring_resize(struct rds_ib_work_ring *ring, u32 nr)
nr                 89 net/rds/ib_ring.c 	ring->w_nr = nr;
nr                227 net/rds/ib_send.c static void rds_ib_sub_signaled(struct rds_ib_connection *ic, int nr)
nr                229 net/rds/ib_send.c 	if ((atomic_sub_return(nr, &ic->i_signaled_sends) == 0) &&
nr                222 net/rds/info.c 	total = lens.nr * lens.each;
nr                  6 net/rds/info.h 	unsigned int	nr;
nr                668 net/rds/rdma.c 		unsigned int nr = rds_pages_in_vec(iov);
nr                676 net/rds/rdma.c 		ret = rds_pin_pages(iov->addr, nr, pages, !op->op_write);
nr                683 net/rds/rdma.c 			 nr_bytes, nr, iov->bytes, iov->addr);
nr                687 net/rds/rdma.c 		for (j = 0; j < nr; j++) {
nr                703 net/rds/rdma.c 		op->op_nents += nr;
nr                974 net/rds/rds.h  			 size_t nr);
nr                 85 net/rds/stats.c 			 uint64_t *values, const char *const *names, size_t nr)
nr                 90 net/rds/stats.c 	for (i = 0; i < nr; i++) {
nr                142 net/rds/stats.c 	lens->nr = rds_trans_stats_info_copy(iter, avail) +
nr                276 net/rds/tcp.c  	lens->nr = rds_tcp_tc_count;
nr                319 net/rds/tcp.c  	lens->nr = rds6_tcp_tc_count;
nr                101 net/rose/rose_in.c static int rose_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m)
nr                127 net/rose/rose_in.c 		if (!rose_validate_nr(sk, nr)) {
nr                138 net/rose/rose_in.c 			rose_frames_acked(sk, nr);
nr                149 net/rose/rose_in.c 		if (!rose_validate_nr(sk, nr)) {
nr                161 net/rose/rose_in.c 		rose_frames_acked(sk, nr);
nr                265 net/rose/rose_in.c 	int queued = 0, frametype, ns, nr, q, d, m;
nr                270 net/rose/rose_in.c 	frametype = rose_decode(skb, &ns, &nr, &q, &d, &m);
nr                280 net/rose/rose_in.c 		queued = rose_state3_machine(sk, skb, frametype, ns, nr, q, d, m);
nr                 43 net/rose/rose_subr.c void rose_frames_acked(struct sock *sk, unsigned short nr)
nr                 51 net/rose/rose_subr.c 	if (rose->va != nr) {
nr                 52 net/rose/rose_subr.c 		while (skb_peek(&rose->ack_queue) != NULL && rose->va != nr) {
nr                 82 net/rose/rose_subr.c int rose_validate_nr(struct sock *sk, unsigned short nr)
nr                 88 net/rose/rose_subr.c 		if (nr == vc) return 1;
nr                 92 net/rose/rose_subr.c 	return nr == rose->vs;
nr                201 net/rose/rose_subr.c int rose_decode(struct sk_buff *skb, int *ns, int *nr, int *q, int *d, int *m)
nr                207 net/rose/rose_subr.c 	*ns = *nr = *q = *d = *m = 0;
nr                223 net/rose/rose_subr.c 		*nr = (frame[2] >> 5) & 0x07;
nr                231 net/rose/rose_subr.c 		*nr = (frame[2] >> 5) & 0x07;
nr                573 net/sunrpc/auth.c 	unsigned int nr;
nr                575 net/sunrpc/auth.c 	nr = auth->au_ops->hash_cred(acred, cache->hashbits);
nr                578 net/sunrpc/auth.c 	hlist_for_each_entry_rcu(entry, &cache->hashtable[nr], cr_hash) {
nr                597 net/sunrpc/auth.c 	hlist_for_each_entry(entry, &cache->hashtable[nr], cr_hash) {
nr                608 net/sunrpc/auth.c 		hlist_add_head_rcu(&cred->cr_hash, &cache->hashtable[nr]);
nr                127 net/sunrpc/sched.c 		queue->nr = 1U << priority;
nr                613 net/sunrpc/sched.c 	if (!list_empty(q) && --queue->nr) {
nr                323 net/sunrpc/svcsock.c 			    unsigned int nr, size_t buflen, unsigned int base)
nr                333 net/sunrpc/svcsock.c 	iov_iter_kvec(&msg.msg_iter, READ, iov, nr, buflen);
nr                366 net/sunrpc/xprtsock.c 		struct bio_vec *bvec, unsigned long nr, size_t count,
nr                369 net/sunrpc/xprtsock.c 	iov_iter_bvec(&msg->msg_iter, READ, bvec, nr, count);
nr               1226 net/sunrpc/xprtsock.c static void xs_run_error_worker(struct sock_xprt *transport, unsigned int nr)
nr               1228 net/sunrpc/xprtsock.c 	set_bit(nr, &transport->sock_state);
nr               3109 net/tipc/socket.c 	struct tipc_sioc_nodeid_req nr = {0};
nr               3126 net/tipc/socket.c 		if (copy_from_user(&nr, argp, sizeof(nr)))
nr               3128 net/tipc/socket.c 		if (!tipc_node_get_id(net, nr.peer, nr.node_id))
nr               3130 net/tipc/socket.c 		if (copy_to_user(argp, &nr, sizeof(nr)))
nr                208 net/x25/x25_in.c static int x25_state3_machine(struct sock *sk, struct sk_buff *skb, int frametype, int ns, int nr, int q, int d, int m)
nr                239 net/x25/x25_in.c 			if (!x25_validate_nr(sk, nr)) {
nr                250 net/x25/x25_in.c 				x25_frames_acked(sk, nr);
nr                261 net/x25/x25_in.c 			if ((ns != x25->vr) || !x25_validate_nr(sk, nr)) {
nr                273 net/x25/x25_in.c 			x25_frames_acked(sk, nr);
nr                389 net/x25/x25_in.c 	int queued = 0, frametype, ns, nr, q, d, m;
nr                394 net/x25/x25_in.c 	frametype = x25_decode(sk, skb, &ns, &nr, &q, &d, &m);
nr                404 net/x25/x25_in.c 		queued = x25_state3_machine(sk, skb, frametype, ns, nr, q, d, m);
nr                 51 net/x25/x25_subr.c void x25_frames_acked(struct sock *sk, unsigned short nr)
nr                 60 net/x25/x25_subr.c 	if (x25->va != nr)
nr                 61 net/x25/x25_subr.c 		while (skb_peek(&x25->ack_queue) && x25->va != nr) {
nr                 90 net/x25/x25_subr.c int x25_validate_nr(struct sock *sk, unsigned short nr)
nr                 97 net/x25/x25_subr.c 		if (nr == vc)
nr                102 net/x25/x25_subr.c 	return nr == x25->vs ? 1 : 0;
nr                260 net/x25/x25_subr.c int x25_decode(struct sock *sk, struct sk_buff *skb, int *ns, int *nr, int *q,
nr                270 net/x25/x25_subr.c 	*ns = *nr = *q = *d = *m = 0;
nr                297 net/x25/x25_subr.c 			*nr = (frame[3] >> 1) & 0x7F;
nr                304 net/x25/x25_subr.c 			*nr = (frame[2] >> 5) & 0x07;
nr                318 net/x25/x25_subr.c 			*nr = (frame[3] >> 1) & 0x7F;
nr                327 net/x25/x25_subr.c 			*nr = (frame[2] >> 5) & 0x07;
nr                160 net/xfrm/xfrm_policy.c static void xfrm_init_pmtu(struct xfrm_dst **bundle, int nr);
nr               3758 net/xfrm/xfrm_policy.c static void xfrm_init_pmtu(struct xfrm_dst **bundle, int nr)
nr               3760 net/xfrm/xfrm_policy.c 	while (nr--) {
nr               3761 net/xfrm/xfrm_policy.c 		struct xfrm_dst *xdst = bundle[nr];
nr               3790 net/xfrm/xfrm_policy.c 	int start_from, nr;
nr               3800 net/xfrm/xfrm_policy.c 	start_from = nr = 0;
nr               3812 net/xfrm/xfrm_policy.c 		bundle[nr++] = xdst;
nr               3816 net/xfrm/xfrm_policy.c 			start_from = nr;
nr               3824 net/xfrm/xfrm_policy.c 			start_from = nr;
nr                188 net/xfrm/xfrm_replay.c 	unsigned int bitnr, nr;
nr                215 net/xfrm/xfrm_replay.c 	nr = bitnr >> 5;
nr                217 net/xfrm/xfrm_replay.c 	if (replay_esn->bmp[nr] & (1U << bitnr))
nr                231 net/xfrm/xfrm_replay.c 	unsigned int bitnr, nr, i;
nr                248 net/xfrm/xfrm_replay.c 				nr = bitnr >> 5;
nr                250 net/xfrm/xfrm_replay.c 				replay_esn->bmp[nr] &=  ~(1U << bitnr);
nr                253 net/xfrm/xfrm_replay.c 			nr = (replay_esn->replay_window - 1) >> 5;
nr                254 net/xfrm/xfrm_replay.c 			for (i = 0; i <= nr; i++)
nr                269 net/xfrm/xfrm_replay.c 	nr = bitnr >> 5;
nr                271 net/xfrm/xfrm_replay.c 	replay_esn->bmp[nr] |= (1U << bitnr);
nr                426 net/xfrm/xfrm_replay.c 	unsigned int bitnr, nr;
nr                468 net/xfrm/xfrm_replay.c 	nr = bitnr >> 5;
nr                470 net/xfrm/xfrm_replay.c 	if (replay_esn->bmp[nr] & (1U << bitnr))
nr                496 net/xfrm/xfrm_replay.c 	unsigned int bitnr, nr, i;
nr                518 net/xfrm/xfrm_replay.c 				nr = bitnr >> 5;
nr                520 net/xfrm/xfrm_replay.c 				replay_esn->bmp[nr] &=  ~(1U << bitnr);
nr                523 net/xfrm/xfrm_replay.c 			nr = (replay_esn->replay_window - 1) >> 5;
nr                524 net/xfrm/xfrm_replay.c 			for (i = 0; i <= nr; i++)
nr                544 net/xfrm/xfrm_replay.c 	nr = bitnr >> 5;
nr                546 net/xfrm/xfrm_replay.c 	replay_esn->bmp[nr] |= (1U << bitnr);
nr               1467 net/xfrm/xfrm_user.c 			   int nr)
nr               1471 net/xfrm/xfrm_user.c 	xp->xfrm_nr = nr;
nr               1472 net/xfrm/xfrm_user.c 	for (i = 0; i < nr; i++, ut++) {
nr               1491 net/xfrm/xfrm_user.c static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family)
nr               1496 net/xfrm/xfrm_user.c 	if (nr > XFRM_MAX_DEPTH)
nr               1501 net/xfrm/xfrm_user.c 	for (i = 0; i < nr; i++) {
nr               1552 net/xfrm/xfrm_user.c 		int nr = nla_len(rt) / sizeof(*utmpl);
nr               1555 net/xfrm/xfrm_user.c 		err = validate_tmpl(nr, utmpl, pol->family);
nr               1559 net/xfrm/xfrm_user.c 		copy_templates(pol, utmpl, nr);
nr               2989 net/xfrm/xfrm_user.c 	int nr;
nr               3017 net/xfrm/xfrm_user.c 	nr = ((len - sizeof(*p)) / sizeof(*ut));
nr               3018 net/xfrm/xfrm_user.c 	if (validate_tmpl(nr, ut, p->sel.family))
nr               3032 net/xfrm/xfrm_user.c 	copy_templates(xp, ut, nr);
nr                 32 samples/seccomp/bpf-direct.c #define syscall_nr (offsetof(struct seccomp_data, nr))
nr                 62 samples/seccomp/bpf-direct.c static void emulator(int nr, siginfo_t *info, void *void_context)
nr                 55 samples/seccomp/bpf-helper.h #define SYSCALL(nr, jt) \
nr                 56 samples/seccomp/bpf-helper.h 	BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, (nr), 0, 1), \
nr                261 samples/seccomp/bpf-helper.h 		 offsetof(struct seccomp_data, nr))
nr                 28 samples/seccomp/dropper.c static int install_filter(int nr, int arch, int error)
nr                 35 samples/seccomp/dropper.c 			 (offsetof(struct seccomp_data, nr))),
nr                 36 samples/seccomp/dropper.c 		BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, nr, 0, 1),
nr                 86 samples/seccomp/user-trap.c static int user_trap_syscall(int nr, unsigned int flags)
nr                 90 samples/seccomp/user-trap.c 			offsetof(struct seccomp_data, nr)),
nr                 91 samples/seccomp/user-trap.c 		BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, nr, 0, 1),
nr                114 samples/seccomp/user-trap.c 	if (req->data.nr != __NR_mount) {
nr                115 samples/seccomp/user-trap.c 		fprintf(stderr, "huh? trapped something besides mount? %d\n", req->data.nr);
nr                749 scripts/asn1_compiler.c 	unsigned nr, t, n;
nr                751 scripts/asn1_compiler.c 	nr = 0;
nr                755 scripts/asn1_compiler.c 			nr++;
nr                757 scripts/asn1_compiler.c 	if (nr == 0) {
nr                762 scripts/asn1_compiler.c 	nr_types = nr;
nr                763 scripts/asn1_compiler.c 	types = type_list = calloc(nr + 1, sizeof(type_list[0]));
nr                768 scripts/asn1_compiler.c 	type_index = calloc(nr, sizeof(type_index[0]));
nr                787 scripts/asn1_compiler.c 	qsort(type_index, nr, sizeof(type_index[0]), type_index_compare);
nr                301 sound/ac97/bus.c 	idr_remove(&ac97_adapter_idr, ac97_ctrl->nr);
nr                317 sound/ac97/bus.c 	ac97_ctrl->nr = ret;
nr                278 sound/pci/au88x0/au88x0.h static int snd_vortex_new_pcm(vortex_t * vortex, int idx, int nr);
nr                605 sound/pci/au88x0/au88x0_pcm.c static int snd_vortex_new_pcm(vortex_t *chip, int idx, int nr)
nr                618 sound/pci/au88x0/au88x0_pcm.c 		nr_capt = nr;
nr                621 sound/pci/au88x0/au88x0_pcm.c 	err = snd_pcm_new(chip->card, vortex_pcm_prettyname[idx], idx, nr,
nr               1328 sound/soc/codecs/adau1373.c 	unsigned int nr, uint8_t *drc)
nr               1333 sound/soc/codecs/adau1373.c 		regmap_write(adau1373->regmap, ADAU1373_DRC(nr) + i, drc[i]);
nr                145 sound/soc/sh/rcar/cmd.c 	int i, nr, ret;
nr                152 sound/soc/sh/rcar/cmd.c 	nr = priv->dvc_nr;
nr                153 sound/soc/sh/rcar/cmd.c 	if (!nr)
nr                156 sound/soc/sh/rcar/cmd.c 	cmd = devm_kcalloc(dev, nr, sizeof(*cmd), GFP_KERNEL);
nr                160 sound/soc/sh/rcar/cmd.c 	priv->cmd_nr	= nr;
nr               1337 sound/soc/sh/rcar/core.c 	int nr;
nr               1343 sound/soc/sh/rcar/core.c 		nr = of_graph_get_endpoint_count(dai_node);
nr               1345 sound/soc/sh/rcar/core.c 		nr = of_get_child_count(dai_node);
nr               1347 sound/soc/sh/rcar/core.c 	if (!nr)
nr               1350 sound/soc/sh/rcar/core.c 	rdrv = devm_kcalloc(dev, nr, sizeof(*rdrv), GFP_KERNEL);
nr               1351 sound/soc/sh/rcar/core.c 	rdai = devm_kcalloc(dev, nr, sizeof(*rdai), GFP_KERNEL);
nr               1355 sound/soc/sh/rcar/core.c 	priv->rdai_nr	= nr;
nr                304 sound/soc/sh/rcar/ctu.c 	int i, nr, ret;
nr                314 sound/soc/sh/rcar/ctu.c 	nr = of_get_child_count(node);
nr                315 sound/soc/sh/rcar/ctu.c 	if (!nr) {
nr                320 sound/soc/sh/rcar/ctu.c 	ctu = devm_kcalloc(dev, nr, sizeof(*ctu), GFP_KERNEL);
nr                326 sound/soc/sh/rcar/ctu.c 	priv->ctu_nr	= nr;
nr                635 sound/soc/sh/rcar/dma.c 	int nr, i, idx;
nr                662 sound/soc/sh/rcar/dma.c 	nr = 0;
nr                665 sound/soc/sh/rcar/dma.c 		nr += !!rsnd_io_to_mod(io, i);
nr                688 sound/soc/sh/rcar/dma.c 	for (i = 1; i < nr; i++) {
nr                314 sound/soc/sh/rcar/dvc.c 	int i, nr, ret;
nr                324 sound/soc/sh/rcar/dvc.c 	nr = of_get_child_count(node);
nr                325 sound/soc/sh/rcar/dvc.c 	if (!nr) {
nr                330 sound/soc/sh/rcar/dvc.c 	dvc	= devm_kcalloc(dev, nr, sizeof(*dvc), GFP_KERNEL);
nr                336 sound/soc/sh/rcar/dvc.c 	priv->dvc_nr	= nr;
nr                278 sound/soc/sh/rcar/mix.c 	int i, nr, ret;
nr                288 sound/soc/sh/rcar/mix.c 	nr = of_get_child_count(node);
nr                289 sound/soc/sh/rcar/mix.c 	if (!nr) {
nr                294 sound/soc/sh/rcar/mix.c 	mix	= devm_kcalloc(dev, nr, sizeof(*mix), GFP_KERNEL);
nr                300 sound/soc/sh/rcar/mix.c 	priv->mix_nr	= nr;
nr                620 sound/soc/sh/rcar/src.c 	int i, nr, ret;
nr                630 sound/soc/sh/rcar/src.c 	nr = of_get_child_count(node);
nr                631 sound/soc/sh/rcar/src.c 	if (!nr) {
nr                636 sound/soc/sh/rcar/src.c 	src	= devm_kcalloc(dev, nr, sizeof(*src), GFP_KERNEL);
nr                642 sound/soc/sh/rcar/src.c 	priv->src_nr	= nr;
nr               1113 sound/soc/sh/rcar/ssi.c 	int i, nr, ret;
nr               1119 sound/soc/sh/rcar/ssi.c 	nr = of_get_child_count(node);
nr               1120 sound/soc/sh/rcar/ssi.c 	if (!nr) {
nr               1125 sound/soc/sh/rcar/ssi.c 	ssi	= devm_kcalloc(dev, nr, sizeof(*ssi), GFP_KERNEL);
nr               1132 sound/soc/sh/rcar/ssi.c 	priv->ssi_nr	= nr;
nr                397 sound/soc/sh/rcar/ssiu.c 	int i, nr, ret;
nr                408 sound/soc/sh/rcar/ssiu.c 		nr = of_get_child_count(node);
nr                410 sound/soc/sh/rcar/ssiu.c 		nr = priv->ssi_nr;
nr                412 sound/soc/sh/rcar/ssiu.c 	ssiu	= devm_kcalloc(dev, nr, sizeof(*ssiu), GFP_KERNEL);
nr                417 sound/soc/sh/rcar/ssiu.c 	priv->ssiu_nr	= nr;
nr                425 sound/soc/sh/rcar/ssiu.c 	nr = 0;
nr                433 sound/soc/sh/rcar/ssiu.c 			nr	= ARRAY_SIZE(gen2_id);
nr                436 sound/soc/sh/rcar/ssiu.c 			nr	= ARRAY_SIZE(gen3_id);
nr                452 sound/soc/sh/rcar/ssiu.c 			for (j = 0; j < nr; j++) {
nr                301 tools/arch/x86/include/uapi/asm/kvm.h 		__u8 nr;
nr                308 tools/arch/x86/include/uapi/asm/kvm.h 		__u8 nr;
nr                267 tools/bpf/bpf_jit_disasm.c 	ssize_t nr;
nr                314 tools/bpf/bpf_jit_disasm.c 		nr = write(ofd, pos, len);
nr                315 tools/bpf/bpf_jit_disasm.c 		if (nr < 0) {
nr                320 tools/bpf/bpf_jit_disasm.c 		len -= nr;
nr                321 tools/bpf/bpf_jit_disasm.c 		pos += nr;
nr                  8 tools/include/asm-generic/bitops/atomic.h static inline void set_bit(int nr, unsigned long *addr)
nr                 10 tools/include/asm-generic/bitops/atomic.h 	addr[nr / __BITS_PER_LONG] |= 1UL << (nr % __BITS_PER_LONG);
nr                 13 tools/include/asm-generic/bitops/atomic.h static inline void clear_bit(int nr, unsigned long *addr)
nr                 15 tools/include/asm-generic/bitops/atomic.h 	addr[nr / __BITS_PER_LONG] &= ~(1UL << (nr % __BITS_PER_LONG));
nr                 16 tools/include/asm-generic/bitops/non-atomic.h static inline void __set_bit(int nr, volatile unsigned long *addr)
nr                 18 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 19 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 24 tools/include/asm-generic/bitops/non-atomic.h static inline void __clear_bit(int nr, volatile unsigned long *addr)
nr                 26 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 27 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 41 tools/include/asm-generic/bitops/non-atomic.h static inline void __change_bit(int nr, volatile unsigned long *addr)
nr                 43 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 44 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 58 tools/include/asm-generic/bitops/non-atomic.h static inline int __test_and_set_bit(int nr, volatile unsigned long *addr)
nr                 60 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 61 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 77 tools/include/asm-generic/bitops/non-atomic.h static inline int __test_and_clear_bit(int nr, volatile unsigned long *addr)
nr                 79 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 80 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 88 tools/include/asm-generic/bitops/non-atomic.h static inline int __test_and_change_bit(int nr,
nr                 91 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long mask = BIT_MASK(nr);
nr                 92 tools/include/asm-generic/bitops/non-atomic.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                104 tools/include/asm-generic/bitops/non-atomic.h static inline int test_bit(int nr, const volatile unsigned long *addr)
nr                106 tools/include/asm-generic/bitops/non-atomic.h 	return 1UL & (addr[BIT_WORD(nr)] >> (nr & (BITS_PER_LONG-1)));
nr                 88 tools/include/linux/bitmap.h static inline int test_and_set_bit(int nr, unsigned long *addr)
nr                 90 tools/include/linux/bitmap.h 	unsigned long mask = BIT_MASK(nr);
nr                 91 tools/include/linux/bitmap.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                105 tools/include/linux/bitmap.h static inline int test_and_clear_bit(int nr, unsigned long *addr)
nr                107 tools/include/linux/bitmap.h 	unsigned long mask = BIT_MASK(nr);
nr                108 tools/include/linux/bitmap.h 	unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr);
nr                 17 tools/include/linux/bitops.h #define BITS_TO_LONGS(nr)	DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(long))
nr                 18 tools/include/linux/bitops.h #define BITS_TO_U64(nr)		DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u64))
nr                 19 tools/include/linux/bitops.h #define BITS_TO_U32(nr)		DIV_ROUND_UP(nr, BITS_PER_BYTE * sizeof(u32))
nr                 20 tools/include/linux/bitops.h #define BITS_TO_BYTES(nr)	DIV_ROUND_UP(nr, BITS_PER_BYTE)
nr                  8 tools/include/linux/bits.h #define BIT(nr)			(UL(1) << (nr))
nr                  9 tools/include/linux/bits.h #define BIT_ULL(nr)		(ULL(1) << (nr))
nr                 10 tools/include/linux/bits.h #define BIT_MASK(nr)		(UL(1) << ((nr) % BITS_PER_LONG))
nr                 11 tools/include/linux/bits.h #define BIT_WORD(nr)		((nr) / BITS_PER_LONG)
nr                 12 tools/include/linux/bits.h #define BIT_ULL_MASK(nr)	(ULL(1) << ((nr) % BITS_PER_LONG_LONG))
nr                 13 tools/include/linux/bits.h #define BIT_ULL_WORD(nr)	((nr) / BITS_PER_LONG_LONG)
nr                822 tools/include/uapi/drm/drm.h #define DRM_IO(nr)			_IO(DRM_IOCTL_BASE,nr)
nr                823 tools/include/uapi/drm/drm.h #define DRM_IOR(nr,type)		_IOR(DRM_IOCTL_BASE,nr,type)
nr                824 tools/include/uapi/drm/drm.h #define DRM_IOW(nr,type)		_IOW(DRM_IOCTL_BASE,nr,type)
nr                825 tools/include/uapi/drm/drm.h #define DRM_IOWR(nr,type)		_IOWR(DRM_IOCTL_BASE,nr,type)
nr                308 tools/include/uapi/linux/kvm.h 			__u64 nr;
nr                357 tools/include/uapi/linux/kvm.h 			__u64 nr;
nr               1055 tools/include/uapi/linux/kvm.h 	__u32 nr;
nr                 16 tools/lib/api/fd/array.c 	fda->nr		 = fda->nr_alloc = 0;
nr                 20 tools/lib/api/fd/array.c int fdarray__grow(struct fdarray *fda, int nr)
nr                 23 tools/lib/api/fd/array.c 	int nr_alloc = fda->nr_alloc + nr;
nr                 74 tools/lib/api/fd/array.c 	int pos = fda->nr;
nr                 76 tools/lib/api/fd/array.c 	if (fda->nr == fda->nr_alloc &&
nr                 80 tools/lib/api/fd/array.c 	fda->entries[fda->nr].fd     = fd;
nr                 81 tools/lib/api/fd/array.c 	fda->entries[fda->nr].events = revents;
nr                 82 tools/lib/api/fd/array.c 	fda->nr++;
nr                 90 tools/lib/api/fd/array.c 	int fd, nr = 0;
nr                 92 tools/lib/api/fd/array.c 	if (fda->nr == 0)
nr                 95 tools/lib/api/fd/array.c 	for (fd = 0; fd < fda->nr; ++fd) {
nr                103 tools/lib/api/fd/array.c 		if (fd != nr) {
nr                104 tools/lib/api/fd/array.c 			fda->entries[nr] = fda->entries[fd];
nr                105 tools/lib/api/fd/array.c 			fda->priv[nr]	 = fda->priv[fd];
nr                108 tools/lib/api/fd/array.c 		++nr;
nr                111 tools/lib/api/fd/array.c 	return fda->nr = nr;
nr                116 tools/lib/api/fd/array.c 	return poll(fda->entries, fda->nr, timeout);
nr                121 tools/lib/api/fd/array.c 	int fd, printed = fprintf(fp, "%d [ ", fda->nr);
nr                123 tools/lib/api/fd/array.c 	for (fd = 0; fd < fda->nr; ++fd)
nr                 20 tools/lib/api/fd/array.h 	int	       nr;
nr                 46 tools/lib/api/fd/array.h 	return fda->nr_alloc - fda->nr;
nr                 25 tools/lib/bitmap.c 	int nr = BITS_TO_LONGS(bits);
nr                 27 tools/lib/bitmap.c 	for (k = 0; k < nr; k++)
nr                180 tools/lib/bpf/libbpf.c 		int nr;
nr                309 tools/lib/bpf/libbpf.c 	if (prog->instances.nr > 0) {
nr                310 tools/lib/bpf/libbpf.c 		for (i = 0; i < prog->instances.nr; i++)
nr                312 tools/lib/bpf/libbpf.c 	} else if (prog->instances.nr != -1) {
nr                314 tools/lib/bpf/libbpf.c 			   prog->instances.nr);
nr                317 tools/lib/bpf/libbpf.c 	prog->instances.nr = -1;
nr                396 tools/lib/bpf/libbpf.c 	prog->instances.nr = -1;
nr               3464 tools/lib/bpf/libbpf.c 	if (prog->instances.nr < 0 || !prog->instances.fds) {
nr               3476 tools/lib/bpf/libbpf.c 		prog->instances.nr = 1;
nr               3481 tools/lib/bpf/libbpf.c 		if (prog->instances.nr != 1) {
nr               3483 tools/lib/bpf/libbpf.c 				   prog->section_name, prog->instances.nr);
nr               3492 tools/lib/bpf/libbpf.c 	for (i = 0; i < prog->instances.nr; i++) {
nr               3786 tools/lib/bpf/libbpf.c 	if (instance < 0 || instance >= prog->instances.nr) {
nr               3788 tools/lib/bpf/libbpf.c 			   instance, prog->section_name, prog->instances.nr);
nr               3816 tools/lib/bpf/libbpf.c 	if (instance < 0 || instance >= prog->instances.nr) {
nr               3818 tools/lib/bpf/libbpf.c 			   instance, prog->section_name, prog->instances.nr);
nr               3858 tools/lib/bpf/libbpf.c 	if (prog->instances.nr <= 0) {
nr               3864 tools/lib/bpf/libbpf.c 	if (prog->instances.nr == 1) {
nr               3873 tools/lib/bpf/libbpf.c 	for (i = 0; i < prog->instances.nr; i++) {
nr               3925 tools/lib/bpf/libbpf.c 	if (prog->instances.nr <= 0) {
nr               3931 tools/lib/bpf/libbpf.c 	if (prog->instances.nr == 1) {
nr               3936 tools/lib/bpf/libbpf.c 	for (i = 0; i < prog->instances.nr; i++) {
nr               4381 tools/lib/bpf/libbpf.c 	if (prog->instances.nr > 0 || prog->instances.fds) {
nr               4395 tools/lib/bpf/libbpf.c 	prog->instances.nr = nr_instances;
nr               4408 tools/lib/bpf/libbpf.c 	if (n >= prog->instances.nr || n < 0) {
nr               4410 tools/lib/bpf/libbpf.c 			   n, prog->section_name, prog->instances.nr);
nr                 39 tools/lib/subcmd/subcmd-util.h #define ALLOC_GROW(x, nr, alloc) \
nr                 41 tools/lib/subcmd/subcmd-util.h 		if ((nr) > alloc) { \
nr                 42 tools/lib/subcmd/subcmd-util.h 			if (alloc_nr(alloc) < (nr)) \
nr                 43 tools/lib/subcmd/subcmd-util.h 				alloc = (nr); \
nr                462 tools/objtool/elf.c 				   size_t entsize, int nr)
nr                465 tools/objtool/elf.c 	size_t size = entsize * nr;
nr                595 tools/objtool/elf.c 	int nr, idx = 0, size;
nr                598 tools/objtool/elf.c 	nr = 0;
nr                600 tools/objtool/elf.c 		nr++;
nr                602 tools/objtool/elf.c 	size = nr * sizeof(*relas);
nr                 88 tools/objtool/elf.h 				   entsize, int nr);
nr                 26 tools/perf/arch/nds32/util/header.c 	sprintf(buf, "0x%x", cpus->nr - 1);
nr                250 tools/perf/arch/powerpc/util/skip-callchain-idx.c 	if (!chain || chain->nr < 3)
nr                258 tools/perf/bench/epoll-ctl.c 			CPU_SET(cpu->map[i % cpu->nr], &cpuset);
nr                337 tools/perf/bench/epoll-ctl.c 		nthreads = cpu->nr;
nr                347 tools/perf/bench/epoll-wait.c 			CPU_SET(cpu->map[i % cpu->nr], &cpuset);
nr                456 tools/perf/bench/epoll-wait.c 		nthreads = cpu->nr - 1;
nr                145 tools/perf/bench/futex-hash.c 		nthreads = cpu->nr;
nr                172 tools/perf/bench/futex-hash.c 		CPU_SET(cpu->map[i % cpu->nr], &cpuset);
nr                138 tools/perf/bench/futex-lock-pi.c 		CPU_SET(cpu->map[i % cpu->nr], &cpuset);
nr                169 tools/perf/bench/futex-lock-pi.c 		nthreads = cpu->nr;
nr                 98 tools/perf/bench/futex-requeue.c 		CPU_SET(cpu->map[i % cpu->nr], &cpuset);
nr                136 tools/perf/bench/futex-requeue.c 		nthreads = cpu->nr;
nr                152 tools/perf/bench/futex-wake-parallel.c 		CPU_SET(cpu->map[i % cpu->nr], &cpuset);
nr                246 tools/perf/bench/futex-wake-parallel.c 		nblocked_threads = cpu->nr;
nr                104 tools/perf/bench/futex-wake.c 		CPU_SET(cpu->map[i % cpu->nr], &cpuset);
nr                144 tools/perf/bench/futex-wake.c 		nthreads = cpu->nr;
nr                767 tools/perf/bench/numa.c static u64 do_work(u8 *__data, long bytes, int nr, int nr_max, int loop, u64 val)
nr                791 tools/perf/bench/numa.c 	off = nr*chunk_0 + loop*chunk_1;
nr                797 tools/perf/bench/numa.c 		u32 lfsr = nr + loop + val;
nr                815 tools/perf/bench/numa.c 	} else if (!g->p.data_backwards || (nr + loop) & 1) {
nr                975 tools/perf/bench/numa.c 	int nr;
nr               1015 tools/perf/bench/numa.c 		nr = nodes[node];
nr               1016 tools/perf/bench/numa.c 		nr_min = min(nr, nr_min);
nr               1017 tools/perf/bench/numa.c 		nr_max = max(nr, nr_max);
nr               1018 tools/perf/bench/numa.c 		sum += nr;
nr               1040 tools/perf/bench/numa.c 		nr = nodes[node];
nr               1041 tools/perf/bench/numa.c 		tprintf(" %2d/%-2d", nr, processes);
nr               1809 tools/perf/bench/numa.c 	int nr = ARRAY_SIZE(tests);
nr               1816 tools/perf/bench/numa.c 	for (i = 0; i < nr; i++) {
nr                 31 tools/perf/bench/sched-pipe.c 	int			nr;
nr                 61 tools/perf/bench/sched-pipe.c 		if (!td->nr) {
nr                104 tools/perf/bench/sched-pipe.c 		td->nr = t;
nr                136 tools/perf/builtin-annotate.c 	if (!bs || !bs->nr)
nr                143 tools/perf/builtin-annotate.c 	for (i = bs->nr - 1; i >= 0; i--) {
nr               2075 tools/perf/builtin-c2c.c 		for (cpu = 0; cpu < map->nr; cpu++) {
nr                178 tools/perf/builtin-ftrace.c 	last_cpu = cpu_map__cpu(cpumap, cpumap->nr - 1);
nr                775 tools/perf/builtin-report.c 	unsigned int nr = 0, itask = 0, i;
nr                786 tools/perf/builtin-report.c 		nr += machine->threads[i].nr;
nr                788 tools/perf/builtin-report.c 	tasks = malloc(sizeof(*tasks) * nr);
nr                811 tools/perf/builtin-report.c 	for (itask = 0; itask < nr; itask++) {
nr                 57 tools/perf/builtin-sched.c 	unsigned long		nr;
nr                 86 tools/perf/builtin-sched.c 	unsigned long		nr;
nr                362 tools/perf/builtin-sched.c 	event->nr = idx;
nr                467 tools/perf/builtin-sched.c 	task->nr = sched->nr_tasks;
nr                479 tools/perf/builtin-sched.c 	sched->tasks[task->nr] = task;
nr                496 tools/perf/builtin-sched.c 			task->nr, task->comm, task->pid, task->nr_events);
nr               2602 tools/perf/builtin-sched.c 			if (itr->cursor.nr)
nr                742 tools/perf/builtin-script.c 	if (!(br && br->nr))
nr                745 tools/perf/builtin-script.c 	for (i = 0; i < br->nr; i++) {
nr                789 tools/perf/builtin-script.c 	if (!(br && br->nr))
nr                792 tools/perf/builtin-script.c 	for (i = 0; i < br->nr; i++) {
nr                834 tools/perf/builtin-script.c 	if (!(br && br->nr))
nr                837 tools/perf/builtin-script.c 	for (i = 0; i < br->nr; i++) {
nr               1015 tools/perf/builtin-script.c 	int i, insn, len, nr, ilen, printed = 0;
nr               1022 tools/perf/builtin-script.c 	if (!(br && br->nr))
nr               1024 tools/perf/builtin-script.c 	nr = br->nr;
nr               1025 tools/perf/builtin-script.c 	if (max_blocks && nr > max_blocks + 1)
nr               1026 tools/perf/builtin-script.c 		nr = max_blocks + 1;
nr               1034 tools/perf/builtin-script.c 	len = grab_bb(buffer, br->entries[nr-1].from,
nr               1035 tools/perf/builtin-script.c 			br->entries[nr-1].from,
nr               1038 tools/perf/builtin-script.c 		printed += ip__fprintf_sym(br->entries[nr - 1].from, thread,
nr               1040 tools/perf/builtin-script.c 		printed += ip__fprintf_jump(br->entries[nr - 1].from, &br->entries[nr - 1],
nr               1043 tools/perf/builtin-script.c 			printed += print_srccode(thread, x.cpumode, br->entries[nr - 1].from);
nr               1047 tools/perf/builtin-script.c 	for (i = nr - 2; i >= 0; i--) {
nr                410 tools/perf/builtin-stat.c 	for (i = 0; i < threads->nr; i++) {
nr                832 tools/perf/builtin-stat.c 	if (idx >= map->nr)
nr                875 tools/perf/builtin-stat.c 	int nr;
nr                921 tools/perf/builtin-stat.c 	nr = perf_cpu_map__max(evsel_list->core.cpus);
nr                922 tools/perf/builtin-stat.c 	stat_config.cpus_aggr_map = perf_cpu_map__empty_new(nr + 1);
nr                938 tools/perf/builtin-stat.c 	if (idx > map->nr)
nr                500 tools/perf/builtin-timechart.c 	for (i = 0; i < chain->nr; i++) {
nr                506 tools/perf/builtin-timechart.c 			ip = chain->ips[chain->nr - i - 1];
nr                123 tools/perf/builtin-trace.c 		size_t		nr;
nr                127 tools/perf/builtin-trace.c 		size_t		nr;
nr               1624 tools/perf/builtin-trace.c 	trace->ev_qualifier_ids.nr = nr_used;
nr               1632 tools/perf/builtin-trace.c 	trace->ev_qualifier_ids.nr = 0;
nr               1640 tools/perf/builtin-trace.c 	if (trace->ev_qualifier_ids.nr == 0)
nr               1644 tools/perf/builtin-trace.c 				  trace->ev_qualifier_ids.nr, sizeof(int), intcmp) != NULL;
nr               2137 tools/perf/builtin-trace.c 			if (callchain_cursor.nr < trace->min_stack)
nr               2369 tools/perf/builtin-trace.c 			if (callchain_cursor.nr < trace->min_stack)
nr               2467 tools/perf/builtin-trace.c 			if (callchain_cursor.nr < trace->min_stack)
nr               2768 tools/perf/builtin-trace.c 						trace->ev_qualifier_ids.nr,
nr               2881 tools/perf/builtin-trace.c 	for (i = 0; i < trace->ev_qualifier_ids.nr; ++i) {
nr               2921 tools/perf/builtin-trace.c 	if (trace->ev_qualifier_ids.nr)
nr               3158 tools/perf/builtin-trace.c 	unsigned int nr = 1, err;
nr               3164 tools/perf/builtin-trace.c 	while (thread && nr < ARRAY_SIZE(pids)) {
nr               3172 tools/perf/builtin-trace.c 			pids[nr++] = parent->tid;
nr               3178 tools/perf/builtin-trace.c 	err = perf_evlist__set_tp_filter_pids(trace->evlist, nr, pids);
nr               3180 tools/perf/builtin-trace.c 		err = bpf_map__set_filter_pids(trace->filter_pids.map, nr, pids);
nr               3194 tools/perf/builtin-trace.c 	if (trace->filter_pids.nr > 0) {
nr               3195 tools/perf/builtin-trace.c 		err = perf_evlist__set_tp_filter_pids(trace->evlist, trace->filter_pids.nr,
nr               3198 tools/perf/builtin-trace.c 			err = bpf_map__set_filter_pids(trace->filter_pids.map, trace->filter_pids.nr,
nr               3384 tools/perf/builtin-trace.c 	if (trace->ev_qualifier_ids.nr > 0) {
nr               3431 tools/perf/builtin-trace.c 				  evlist->core.threads->nr > 1 ||
nr               3810 tools/perf/builtin-trace.c 	i = trace->filter_pids.nr = intlist__nr_entries(list) + 1;
nr               3818 tools/perf/builtin-trace.c 	for (i = 1; i < trace->filter_pids.nr; ++i)
nr                 36 tools/perf/jvmti/libjvmti.c 		    jvmti_line_info_t *tab, jint *nr)
nr                 61 tools/perf/jvmti/libjvmti.c 	*nr = lines;
nr                 72 tools/perf/jvmti/libjvmti.c 	jint nr, ret;
nr                 87 tools/perf/jvmti/libjvmti.c 				nr = 0;
nr                 91 tools/perf/jvmti/libjvmti.c 				ret = (*jvmti)->GetLineNumberTable(jvmti, c->methods[0], &nr, &lne);
nr                 95 tools/perf/jvmti/libjvmti.c 					nr_total += (int)nr;
nr                118 tools/perf/jvmti/libjvmti.c 				nr = 0;
nr                123 tools/perf/jvmti/libjvmti.c 							  &nr);
nr                125 tools/perf/jvmti/libjvmti.c 					lines_total += nr;
nr                 18 tools/perf/lib/cpumap.c 		cpus->nr = 1;
nr                 64 tools/perf/lib/cpumap.c 		cpus->nr = nr_cpus;
nr                 77 tools/perf/lib/cpumap.c 		cpus->nr = nr_cpus;
nr                236 tools/perf/lib/cpumap.c 	if (idx < cpus->nr)
nr                244 tools/perf/lib/cpumap.c 	return cpus ? cpus->nr : 1;
nr                256 tools/perf/lib/cpumap.c 	for (i = 0; i < cpus->nr; ++i) {
nr                268 tools/perf/lib/cpumap.c 	for (i = 0; i < map->nr; i++) {
nr                 96 tools/perf/lib/evsel.c 	    perf_evsel__alloc_fd(evsel, cpus->nr, threads->nr) < 0)
nr                 99 tools/perf/lib/evsel.c 	for (cpu = 0; cpu < cpus->nr; cpu++) {
nr                100 tools/perf/lib/evsel.c 		for (thread = 0; thread < threads->nr; thread++) {
nr                148 tools/perf/lib/evsel.c 	int nr = 1;
nr                160 tools/perf/lib/evsel.c 		nr = evsel->nr_members;
nr                164 tools/perf/lib/evsel.c 	size += entry * nr;
nr                  9 tools/perf/lib/include/internal/cpumap.h 	int		nr;
nr                 16 tools/perf/lib/include/internal/threadmap.h 	int		nr;
nr                 21 tools/perf/lib/include/internal/threadmap.h struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr);
nr                131 tools/perf/lib/include/perf/event.h 	__u16			 nr;
nr                136 tools/perf/lib/include/perf/event.h 	__u16			 nr;
nr                206 tools/perf/lib/include/perf/event.h 	__u64			 nr;
nr                263 tools/perf/lib/include/perf/event.h 	__u64					 nr;
nr                281 tools/perf/lib/include/perf/event.h 	__u64					 nr;
nr                 10 tools/perf/lib/threadmap.c static void perf_thread_map__reset(struct perf_thread_map *map, int start, int nr)
nr                 12 tools/perf/lib/threadmap.c 	size_t size = (nr - start) * sizeof(map->map[0]);
nr                 18 tools/perf/lib/threadmap.c struct perf_thread_map *perf_thread_map__realloc(struct perf_thread_map *map, int nr)
nr                 20 tools/perf/lib/threadmap.c 	size_t size = sizeof(*map) + sizeof(map->map[0]) * nr;
nr                 21 tools/perf/lib/threadmap.c 	int start = map ? map->nr : 0;
nr                 28 tools/perf/lib/threadmap.c 		perf_thread_map__reset(map, start, nr);
nr                 51 tools/perf/lib/threadmap.c 		threads->nr = 1;
nr                 64 tools/perf/lib/threadmap.c 		for (i = 0; i < threads->nr; i++)
nr                 85 tools/perf/lib/threadmap.c 	return threads ? threads->nr : 1;
nr                 20 tools/perf/tests/bitmap.c 		for (i = 0; i < map->nr; i++)
nr                322 tools/perf/tests/builtin-test.c 		long nr = strtoul(argv[i], &end, 10);
nr                325 tools/perf/tests/builtin-test.c 			if (nr == curr + 1)
nr                 31 tools/perf/tests/cpumap.c 	TEST_ASSERT_VAL("wrong nr",   mask->nr == 1);
nr                 38 tools/perf/tests/cpumap.c 	TEST_ASSERT_VAL("wrong nr",  map->nr == 20);
nr                 64 tools/perf/tests/cpumap.c 	TEST_ASSERT_VAL("wrong nr",   cpus->nr == 2);
nr                 69 tools/perf/tests/cpumap.c 	TEST_ASSERT_VAL("wrong nr",  map->nr == 2);
nr                182 tools/perf/tests/dso-data.c 	long nr = 0;
nr                195 tools/perf/tests/dso-data.c 		nr++;
nr                199 tools/perf/tests/dso-data.c 	return nr - 1;
nr                254 tools/perf/tests/dso-data.c 	long nr_end, nr = open_files_cnt();
nr                263 tools/perf/tests/dso-data.c 	limit = nr * 4;
nr                306 tools/perf/tests/dso-data.c 	pr_debug("nr start %ld, nr stop %ld\n", nr, nr_end);
nr                307 tools/perf/tests/dso-data.c 	TEST_ASSERT_VAL("failed leaking files", nr == nr_end);
nr                314 tools/perf/tests/dso-data.c 	long nr_end, nr = open_files_cnt();
nr                337 tools/perf/tests/dso-data.c 			!set_fd_limit((nr + 3)));
nr                382 tools/perf/tests/dso-data.c 	pr_debug("nr start %ld, nr stop %ld\n", nr, nr_end);
nr                383 tools/perf/tests/dso-data.c 	TEST_ASSERT_VAL("failed leaking files", nr == nr_end);
nr                 78 tools/perf/tests/event_update.c 	TEST_ASSERT_VAL("wrong cpus", map->nr == 3);
nr                 11 tools/perf/tests/fdarray.c 	fda->nr = fda->nr_alloc;
nr                 13 tools/perf/tests/fdarray.c 	for (fd = 0; fd < fda->nr; ++fd) {
nr                 14 tools/perf/tests/fdarray.c 		fda->entries[fd].fd	 = fda->nr - fd;
nr                136 tools/perf/tests/fdarray.c 	if (fda->nr != _nr) {						   \
nr                138 tools/perf/tests/fdarray.c 			 __LINE__,_fd, _revents, fda->nr, _nr);		   \
nr                170 tools/perf/tests/hists_cumulate.c 	u64 nr;
nr                232 tools/perf/tests/hists_cumulate.c 					c < expected_callchain[i].nr);
nr                240 tools/perf/tests/hists_cumulate.c 				c <= expected_callchain[i].nr);
nr                 33 tools/perf/tests/mem2node.c 		for (i = 0; i < map->nr; i++) {
nr                 61 tools/perf/tests/openat-syscall-all-cpus.c 	for (cpu = 0; cpu < cpus->nr; ++cpu) {
nr                 93 tools/perf/tests/openat-syscall-all-cpus.c 	if (perf_evsel__alloc_counts(evsel, cpus->nr, 1) < 0) {
nr                 94 tools/perf/tests/openat-syscall-all-cpus.c 		pr_debug("perf_evsel__alloc_counts(ncpus=%d)\n", cpus->nr);
nr                100 tools/perf/tests/openat-syscall-all-cpus.c 	for (cpu = 0; cpu < cpus->nr; ++cpu) {
nr                 70 tools/perf/tests/sample-parsing.c 			COMP(read.group.nr);
nr                 79 tools/perf/tests/sample-parsing.c 			for (i = 0; i < s1->read.group.nr; i++)
nr                 87 tools/perf/tests/sample-parsing.c 		COMP(callchain->nr);
nr                 88 tools/perf/tests/sample-parsing.c 		for (i = 0; i < s1->callchain->nr; i++)
nr                101 tools/perf/tests/sample-parsing.c 		COMP(branch_stack->nr);
nr                102 tools/perf/tests/sample-parsing.c 		for (i = 0; i < s1->branch_stack->nr; i++)
nr                237 tools/perf/tests/sample-parsing.c 		sample.read.group.nr     = 4;
nr                 15 tools/perf/tests/stat.c 	for (i = 0; i < config->nr; i++) {
nr                 35 tools/perf/tests/stat.c 	TEST_ASSERT_VAL("wrong nr",        config->nr == PERF_STAT_CONFIG_TERM__MAX);
nr                 71 tools/perf/tests/switch-tracking.c 		      union perf_event *event, const char *comm, int nr)
nr                 77 tools/perf/tests/switch-tracking.c 		if (switch_tracking->comm_seen[nr]) {
nr                 81 tools/perf/tests/switch-tracking.c 		switch_tracking->comm_seen[nr] = 1;
nr                 82 tools/perf/tests/switch-tracking.c 		pr_debug3("comm event: %s nr: %d\n", event->comm.comm, nr);
nr                 90 tools/perf/tests/switch-tracking.c 	int i, nr = cpu + 1;
nr                 96 tools/perf/tests/switch-tracking.c 		switch_tracking->tids = calloc(nr, sizeof(pid_t));
nr                 99 tools/perf/tests/switch-tracking.c 		for (i = 0; i < nr; i++)
nr                101 tools/perf/tests/switch-tracking.c 		switch_tracking->nr_tids = nr;
nr                108 tools/perf/tests/switch-tracking.c 		addr = realloc(switch_tracking->tids, nr * sizeof(pid_t));
nr                112 tools/perf/tests/switch-tracking.c 		for (i = switch_tracking->nr_tids; i < nr; i++)
nr                114 tools/perf/tests/switch-tracking.c 		switch_tracking->nr_tids = nr;
nr                 35 tools/perf/tests/thread-map.c 	TEST_ASSERT_VAL("wrong nr", map->nr == 1);
nr                 51 tools/perf/tests/thread-map.c 	TEST_ASSERT_VAL("wrong nr", map->nr == 1);
nr                 70 tools/perf/tests/thread-map.c 	TEST_ASSERT_VAL("wrong nr",   map->nr == 1);
nr                 77 tools/perf/tests/thread-map.c 	TEST_ASSERT_VAL("wrong nr", threads->nr == 1);
nr                128 tools/perf/tests/thread-map.c 	TEST_ASSERT_VAL("thread_map count != 1", threads->nr == 1);
nr                136 tools/perf/tests/thread-map.c 	TEST_ASSERT_VAL("thread_map count != 0", threads->nr == 0);
nr                144 tools/perf/tests/thread-map.c 	for (i = 0; i < threads->nr; i++)
nr                105 tools/perf/tests/topology.c 	for (i = 0; i < map->nr; i++) {
nr                 21 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_tty_cmd(int nr, int dir, char *bf, size_t size)
nr                 41 tools/perf/trace/beauty/ioctl.c 	if (nr < strarray__ioctl_tty_cmd.nr_entries && strarray__ioctl_tty_cmd.entries[nr] != NULL)
nr                 42 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "%s", strarray__ioctl_tty_cmd.entries[nr]);
nr                 44 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%#x, %#x, %#x)", 'T', nr, dir);
nr                 47 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_drm_cmd(int nr, int dir, char *bf, size_t size)
nr                 52 tools/perf/trace/beauty/ioctl.c 	if (nr < strarray__drm_ioctl_cmds.nr_entries && strarray__drm_ioctl_cmds.entries[nr] != NULL)
nr                 53 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "DRM_%s", strarray__drm_ioctl_cmds.entries[nr]);
nr                 55 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%#x, %#x, %#x)", 'd', nr, dir);
nr                 58 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_sndrv_pcm_cmd(int nr, int dir, char *bf, size_t size)
nr                 63 tools/perf/trace/beauty/ioctl.c 	if (nr < strarray__sndrv_pcm_ioctl_cmds.nr_entries && strarray__sndrv_pcm_ioctl_cmds.entries[nr] != NULL)
nr                 64 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "SNDRV_PCM_%s", strarray__sndrv_pcm_ioctl_cmds.entries[nr]);
nr                 66 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%#x, %#x, %#x)", 'A', nr, dir);
nr                 69 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_sndrv_ctl_cmd(int nr, int dir, char *bf, size_t size)
nr                 74 tools/perf/trace/beauty/ioctl.c 	if (nr < strarray__sndrv_ctl_ioctl_cmds.nr_entries && strarray__sndrv_ctl_ioctl_cmds.entries[nr] != NULL)
nr                 75 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "SNDRV_CTL_%s", strarray__sndrv_ctl_ioctl_cmds.entries[nr]);
nr                 77 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%#x, %#x, %#x)", 'U', nr, dir);
nr                 80 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_kvm_cmd(int nr, int dir, char *bf, size_t size)
nr                 85 tools/perf/trace/beauty/ioctl.c 	if (nr < strarray__kvm_ioctl_cmds.nr_entries && strarray__kvm_ioctl_cmds.entries[nr] != NULL)
nr                 86 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "KVM_%s", strarray__kvm_ioctl_cmds.entries[nr]);
nr                 88 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir);
nr                 91 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_vhost_virtio_cmd(int nr, int dir, char *bf, size_t size)
nr                 98 tools/perf/trace/beauty/ioctl.c 	if (nr < s->nr_entries && s->entries[nr] != NULL)
nr                 99 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "VHOST_%s", s->entries[nr]);
nr                101 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAF, nr, dir);
nr                104 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_perf_cmd(int nr, int dir, char *bf, size_t size)
nr                109 tools/perf/trace/beauty/ioctl.c 	if (nr < strarray__perf_ioctl_cmds.nr_entries && strarray__perf_ioctl_cmds.entries[nr] != NULL)
nr                110 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "PERF_%s", strarray__perf_ioctl_cmds.entries[nr]);
nr                112 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%#x, %#x, %#x)", 0xAE, nr, dir);
nr                115 tools/perf/trace/beauty/ioctl.c static size_t ioctl__scnprintf_usbdevfs_cmd(int nr, int dir, char *bf, size_t size)
nr                120 tools/perf/trace/beauty/ioctl.c 	if (nr < strarray__usbdevfs_ioctl_cmds.nr_entries && strarray__usbdevfs_ioctl_cmds.entries[nr] != NULL)
nr                121 tools/perf/trace/beauty/ioctl.c 		return scnprintf(bf, size, "USBDEVFS_%s", strarray__usbdevfs_ioctl_cmds.entries[nr]);
nr                123 tools/perf/trace/beauty/ioctl.c 	return scnprintf(bf, size, "(%c, %#x, %#x)", 'U', nr, dir);
nr                131 tools/perf/trace/beauty/ioctl.c 	    nr	 = _IOC_NR(cmd),
nr                136 tools/perf/trace/beauty/ioctl.c 		size_t	(*scnprintf)(int nr, int dir, char *bf, size_t size);
nr                152 tools/perf/trace/beauty/ioctl.c 			return ioctl_types[index].scnprintf(nr, dir, bf, size);
nr                168 tools/perf/trace/beauty/ioctl.c 	return printed + scnprintf(bf + printed, size - printed, ", %#x, %#x, %#x)", type, nr, sz);
nr                 53 tools/perf/ui/browsers/annotate.c static int ui_browser__jumps_percent_color(struct ui_browser *browser, int nr, bool current)
nr                 59 tools/perf/ui/browsers/annotate.c 	if (nr == notes->max_jump_sources)
nr                 61 tools/perf/ui/browsers/annotate.c 	if (nr > 1)
nr                 66 tools/perf/ui/browsers/annotate.c static int ui_browser__set_jumps_percent_color(void *browser, int nr, bool current)
nr                 68 tools/perf/ui/browsers/annotate.c 	 int color = ui_browser__jumps_percent_color(browser, nr, current);
nr                 23 tools/perf/ui/progress.c 		u64 nr = DIV_ROUND_UP(p->curr - last, p->step);
nr                 25 tools/perf/ui/progress.c 		p->next += nr * p->step;
nr               1176 tools/perf/util/annotate.c 	int nr = 1;
nr               1179 tools/perf/util/annotate.c 		nr = evsel->core.nr_members;
nr               1181 tools/perf/util/annotate.c 	size += sizeof(al->data[0]) * nr;
nr               1190 tools/perf/util/annotate.c 		al->data_nr    = nr;
nr               2371 tools/perf/util/annotate.c 					 int nr __maybe_unused, bool current __maybe_unused)
nr               2813 tools/perf/util/annotate.c 				     int  (*obj__set_jumps_percent_color)(void *obj, int nr, bool current),
nr                208 tools/perf/util/annotate.h 	int  (*set_jumps_percent_color)(void *obj, int nr, bool current);
nr                615 tools/perf/util/auxtrace.c 	auxtrace_index->nr = 0;
nr                646 tools/perf/util/auxtrace.c 	if (auxtrace_index->nr >= PERF_AUXTRACE_INDEX_ENTRY_COUNT) {
nr                661 tools/perf/util/auxtrace.c 	size_t nr;
nr                667 tools/perf/util/auxtrace.c 	nr = auxtrace_index->nr;
nr                668 tools/perf/util/auxtrace.c 	auxtrace_index->entries[nr].file_offset = file_offset;
nr                669 tools/perf/util/auxtrace.c 	auxtrace_index->entries[nr].sz = event->header.size;
nr                670 tools/perf/util/auxtrace.c 	auxtrace_index->nr += 1;
nr                681 tools/perf/util/auxtrace.c 	for (i = 0; i < auxtrace_index->nr; i++) {
nr                697 tools/perf/util/auxtrace.c 		total += auxtrace_index->nr;
nr                716 tools/perf/util/auxtrace.c 	size_t nr;
nr                725 tools/perf/util/auxtrace.c 	nr = auxtrace_index->nr;
nr                727 tools/perf/util/auxtrace.c 		auxtrace_index->entries[nr].file_offset =
nr                729 tools/perf/util/auxtrace.c 		auxtrace_index->entries[nr].sz = bswap_64(ent.sz);
nr                731 tools/perf/util/auxtrace.c 		auxtrace_index->entries[nr].file_offset = ent.file_offset;
nr                732 tools/perf/util/auxtrace.c 		auxtrace_index->entries[nr].sz = ent.sz;
nr                735 tools/perf/util/auxtrace.c 	auxtrace_index->nr = nr + 1;
nr                744 tools/perf/util/auxtrace.c 	u64 nr;
nr                746 tools/perf/util/auxtrace.c 	if (readn(fd, &nr, sizeof(u64)) != sizeof(u64))
nr                750 tools/perf/util/auxtrace.c 		nr = bswap_64(nr);
nr                752 tools/perf/util/auxtrace.c 	if (sizeof(u64) + nr * sizeof(struct auxtrace_index_entry) > size)
nr                755 tools/perf/util/auxtrace.c 	while (nr--) {
nr                786 tools/perf/util/auxtrace.c 		for (i = 0; i < auxtrace_index->nr; i++) {
nr                136 tools/perf/util/auxtrace.h 	size_t			nr;
nr                 41 tools/perf/util/branch.h 	u64			nr;
nr                570 tools/perf/util/callchain.c 	node->val_nr = cursor->nr - cursor->pos;
nr                822 tools/perf/util/callchain.c 	if (idx_total < cursor->nr) {
nr                964 tools/perf/util/callchain.c 	if (matches == root->val_nr && cursor->pos == cursor->nr) {
nr                981 tools/perf/util/callchain.c 	if (!cursor->nr)
nr                989 tools/perf/util/callchain.c 	if (cursor->nr > root->max_depth)
nr                990 tools/perf/util/callchain.c 		root->max_depth = cursor->nr;
nr               1003 tools/perf/util/callchain.c 	int old_pos = cursor->nr;
nr               1034 tools/perf/util/callchain.c 	cursor->nr = old_pos;
nr               1076 tools/perf/util/callchain.c 	cursor->nr++;
nr               1596 tools/perf/util/callchain.c 	cursor->nr = 0;
nr                156 tools/perf/util/callchain.h 	u64				nr;
nr                214 tools/perf/util/callchain.h 	if (cursor->pos == cursor->nr)
nr                262 tools/perf/util/callchain.h 	dest->nr -= src->pos;
nr                 25 tools/perf/util/cpumap.c 	map = perf_cpu_map__empty_new(cpus->nr);
nr                 29 tools/perf/util/cpumap.c 		for (i = 0; i < cpus->nr; i++) {
nr                 48 tools/perf/util/cpumap.c 	int nr, nbits = mask->nr * mask->long_size * BITS_PER_BYTE;
nr                 50 tools/perf/util/cpumap.c 	nr = bitmap_weight(mask->mask, nbits);
nr                 52 tools/perf/util/cpumap.c 	map = perf_cpu_map__empty_new(nr);
nr                 81 tools/perf/util/cpumap.c struct perf_cpu_map *perf_cpu_map__empty_new(int nr)
nr                 83 tools/perf/util/cpumap.c 	struct perf_cpu_map *cpus = malloc(sizeof(*cpus) + sizeof(int) * nr);
nr                 88 tools/perf/util/cpumap.c 		cpus->nr = nr;
nr                 89 tools/perf/util/cpumap.c 		for (i = 0; i < nr; i++)
nr                118 tools/perf/util/cpumap.c 	if (idx > map->nr)
nr                136 tools/perf/util/cpumap.c 	int nr = cpus->nr;
nr                140 tools/perf/util/cpumap.c 	c = calloc(1, sizeof(*c) + nr * sizeof(int));
nr                144 tools/perf/util/cpumap.c 	for (cpu = 0; cpu < nr; cpu++) {
nr                146 tools/perf/util/cpumap.c 		for (s2 = 0; s2 < c->nr; s2++) {
nr                150 tools/perf/util/cpumap.c 		if (s2 == c->nr) {
nr                151 tools/perf/util/cpumap.c 			c->map[c->nr] = s1;
nr                152 tools/perf/util/cpumap.c 			c->nr++;
nr                156 tools/perf/util/cpumap.c 	qsort(c->map, c->nr, sizeof(int), cmp_ids);
nr                174 tools/perf/util/cpumap.c 	if (idx > map->nr)
nr                213 tools/perf/util/cpumap.c 	if (idx > map->nr)
nr                478 tools/perf/util/cpumap.c 	for (i = 0; i < map->nr + 1; i++) {
nr                479 tools/perf/util/cpumap.c 		bool last = i == map->nr;
nr                527 tools/perf/util/cpumap.c 	int last_cpu = cpu_map__cpu(map, map->nr - 1);
nr                538 tools/perf/util/cpumap.c 	for (i = 0; i < map->nr; i++) {
nr                 12 tools/perf/util/cpumap.h struct perf_cpu_map *perf_cpu_map__empty_new(int nr);
nr                 30 tools/perf/util/cpumap.h 	if (!sock || s > sock->nr || s < 0)
nr                178 tools/perf/util/cputopo.c 	u32 nr, i, nr_addr;
nr                194 tools/perf/util/cputopo.c 	nr = (u32)(ncpus & UINT_MAX);
nr                196 tools/perf/util/cputopo.c 	sz = nr * sizeof(char *);
nr                215 tools/perf/util/cputopo.c 	for (i = 0; i < nr; i++) {
nr                233 tools/perf/util/cputopo.c static int load_numa_node(struct numa_topology_node *node, int nr)
nr                243 tools/perf/util/cputopo.c 	node->node = (u32) nr;
nr                246 tools/perf/util/cputopo.c 		  sysfs__mountpoint(), nr);
nr                269 tools/perf/util/cputopo.c 		  sysfs__mountpoint(), nr);
nr                300 tools/perf/util/cputopo.c 	u32 nr, i;
nr                322 tools/perf/util/cputopo.c 	nr = (u32) node_map->nr;
nr                324 tools/perf/util/cputopo.c 	tp = zalloc(sizeof(*tp) + sizeof(tp->nodes[0])*nr);
nr                328 tools/perf/util/cputopo.c 	tp->nr = nr;
nr                330 tools/perf/util/cputopo.c 	for (i = 0; i < nr; i++) {
nr                349 tools/perf/util/cputopo.c 	for (i = 0; i < tp->nr; i++)
nr                 24 tools/perf/util/cputopo.h 	u32				nr;
nr                861 tools/perf/util/cs-etm.c 	size_t nr = 0;
nr                867 tools/perf/util/cs-etm.c 	bs_dst->nr = bs_src->nr;
nr                872 tools/perf/util/cs-etm.c 	if (!bs_src->nr)
nr                880 tools/perf/util/cs-etm.c 	nr = etmq->etm->synth_opts.last_branch_sz - tidq->last_branch_pos;
nr                883 tools/perf/util/cs-etm.c 	       sizeof(struct branch_entry) * nr);
nr                892 tools/perf/util/cs-etm.c 	if (bs_src->nr >= etmq->etm->synth_opts.last_branch_sz) {
nr                893 tools/perf/util/cs-etm.c 		memcpy(&bs_dst->entries[nr],
nr                903 tools/perf/util/cs-etm.c 	tidq->last_branch_rb->nr = 0;
nr                988 tools/perf/util/cs-etm.c 	if (bs->nr < etmq->etm->synth_opts.last_branch_sz)
nr                989 tools/perf/util/cs-etm.c 		bs->nr += 1;
nr               1174 tools/perf/util/cs-etm.c 		u64			nr;
nr               1204 tools/perf/util/cs-etm.c 			.nr = 1,
nr                518 tools/perf/util/data-convert-bt.c 	unsigned int nr_elements = callchain->nr;
nr                 21 tools/perf/util/data.c static void close_dir(struct perf_data_file *files, int nr)
nr                 23 tools/perf/util/data.c 	while (--nr >= 1) {
nr                 24 tools/perf/util/data.c 		close(files[nr].fd);
nr                 25 tools/perf/util/data.c 		zfree(&files[nr].path);
nr                 32 tools/perf/util/data.c 	close_dir(data->dir.files, data->dir.nr);
nr                 35 tools/perf/util/data.c int perf_data__create_dir(struct perf_data *data, int nr)
nr                 43 tools/perf/util/data.c 	files = zalloc(nr * sizeof(*files));
nr                 49 tools/perf/util/data.c 	data->dir.nr      = nr;
nr                 51 tools/perf/util/data.c 	for (i = 0; i < nr; i++) {
nr                 77 tools/perf/util/data.c 	int nr = 0;
nr                104 tools/perf/util/data.c 		file = realloc(files, (nr + 1) * sizeof(*files));
nr                109 tools/perf/util/data.c 		file = &files[nr++];
nr                127 tools/perf/util/data.c 	data->dir.nr    = nr;
nr                131 tools/perf/util/data.c 	close_dir(files, nr);
nr                142 tools/perf/util/data.c 	for (i = 0; i < data->dir.nr; i++) {
nr                412 tools/perf/util/data.c 	for (i = 0; i < data->dir.nr; i++) {
nr                 29 tools/perf/util/data.h 		int			 nr;
nr                 75 tools/perf/util/data.h int perf_data__create_dir(struct perf_data *data, int nr);
nr                125 tools/perf/util/event.c 	for (i = 0; i < event->nr; i++) {
nr                 73 tools/perf/util/event.h 			u64 nr;
nr                 81 tools/perf/util/event.h 	u64 nr;
nr                922 tools/perf/util/evlist.c 		    perf_evsel__alloc_id(&evsel->core, perf_cpu_map__nr(cpus), threads->nr) < 0)
nr               1335 tools/perf/util/evsel.c 	u64 nr, ena = 0, run = 0, i;
nr               1337 tools/perf/util/evsel.c 	nr = *data++;
nr               1339 tools/perf/util/evsel.c 	if (nr != (u64) leader->core.nr_members)
nr               1353 tools/perf/util/evsel.c 	for (i = 1; i < nr; i++) {
nr               1501 tools/perf/util/evsel.c 	if (threads->nr == 1)
nr               1508 tools/perf/util/evsel.c 	if (update_fds(evsel, nr_cpus, cpu, threads->nr, thread))
nr               1611 tools/perf/util/evsel.c 		nthreads = threads->nr;
nr               1614 tools/perf/util/evsel.c 	    perf_evsel__alloc_fd(&evsel->core, cpus->nr, nthreads) < 0)
nr               1650 tools/perf/util/evsel.c 	for (cpu = 0; cpu < cpus->nr; cpu++) {
nr               1670 tools/perf/util/evsel.c 				if (ignore_missing_thread(evsel, cpus->nr, cpu, threads, thread, err)) {
nr               2036 tools/perf/util/evsel.c 			data->read.group.nr = *array;
nr               2059 tools/perf/util/evsel.c 			if (data->read.group.nr > max_group_nr)
nr               2061 tools/perf/util/evsel.c 			sz = data->read.group.nr *
nr               2079 tools/perf/util/evsel.c 		if (data->callchain->nr > max_callchain_nr)
nr               2081 tools/perf/util/evsel.c 		sz = data->callchain->nr * sizeof(u64);
nr               2124 tools/perf/util/evsel.c 		if (data->branch_stack->nr > max_branch_nr)
nr               2126 tools/perf/util/evsel.c 		sz = data->branch_stack->nr * sizeof(struct branch_entry);
nr               2542 tools/perf/util/evsel.c 	if (perf_evsel__alloc_id(&evsel->core, cpus->nr, threads->nr))
nr                134 tools/perf/util/evsel.h 	return evsel__cpus(evsel)->nr;
nr                466 tools/perf/util/header.c 	long nr;
nr                472 tools/perf/util/header.c 	nr = sysconf(_SC_NPROCESSORS_ONLN);
nr                473 tools/perf/util/header.c 	if (nr < 0)
nr                476 tools/perf/util/header.c 	nra = (u32)(nr & UINT_MAX);
nr                682 tools/perf/util/header.c 	ret = do_write(ff, &tp->nr, sizeof(u32));
nr                686 tools/perf/util/header.c 	for (i = 0; i < tp->nr; i++) {
nr               1097 tools/perf/util/header.c 	u32 nr, cpu;
nr               1100 tools/perf/util/header.c 	nr = cpu__max_cpu();
nr               1102 tools/perf/util/header.c 	for (cpu = 0; cpu < nr; cpu++) {
nr               1328 tools/perf/util/header.c 	u64 bsize, version = 1, i, nr;
nr               1336 tools/perf/util/header.c 	ret = build_mem_topology(&nodes[0], MAX_MEMORY_NODES, &nr);
nr               1348 tools/perf/util/header.c 	ret = do_write(ff, &nr, sizeof(nr));
nr               1352 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               1431 tools/perf/util/header.c 	int nr, i;
nr               1433 tools/perf/util/header.c 	nr = ff->ph->env.nr_cmdline;
nr               1437 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               1462 tools/perf/util/header.c 	int nr, i;
nr               1465 tools/perf/util/header.c 	nr = ph->env.nr_sibling_cores;
nr               1468 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               1474 tools/perf/util/header.c 		nr = ph->env.nr_sibling_dies;
nr               1477 tools/perf/util/header.c 		for (i = 0; i < nr; i++) {
nr               1483 tools/perf/util/header.c 	nr = ph->env.nr_sibling_threads;
nr               1486 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               1598 tools/perf/util/header.c 	u32 nre, sz, nr, i, j;
nr               1637 tools/perf/util/header.c 		if (do_read_u32(ff, &nr))
nr               1647 tools/perf/util/header.c 		if (!nr)
nr               1650 tools/perf/util/header.c 		id = calloc(nr, sizeof(*id));
nr               1653 tools/perf/util/header.c 		evsel->core.ids = nr;
nr               1656 tools/perf/util/header.c 		for (j = 0 ; j < nr; j++) {
nr               1815 tools/perf/util/header.c 	u32 nr = 0;
nr               1825 tools/perf/util/header.c 			nr = evsel->core.nr_members - 1;
nr               1826 tools/perf/util/header.c 		} else if (nr) {
nr               1829 tools/perf/util/header.c 			if (--nr == 0)
nr               1873 tools/perf/util/header.c 	int i, nr;
nr               1876 tools/perf/util/header.c 	nr    = ff->ph->env.nr_memory_nodes;
nr               1879 tools/perf/util/header.c 		nr, ff->ph->env.memory_bsize);
nr               1881 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               2160 tools/perf/util/header.c 	u32 nr, i, len = 0;
nr               2162 tools/perf/util/header.c 	if (do_read_u32(ff, &nr))
nr               2165 tools/perf/util/header.c 	ff->ph->env.nr_cmdline = nr;
nr               2167 tools/perf/util/header.c 	cmdline = zalloc(ff->size + nr + 1);
nr               2171 tools/perf/util/header.c 	argv = zalloc(sizeof(char *) * (nr + 1));
nr               2175 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               2197 tools/perf/util/header.c 	u32 nr, i;
nr               2209 tools/perf/util/header.c 	if (do_read_u32(ff, &nr))
nr               2212 tools/perf/util/header.c 	ph->env.nr_sibling_cores = nr;
nr               2217 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               2230 tools/perf/util/header.c 	if (do_read_u32(ff, &nr))
nr               2233 tools/perf/util/header.c 	ph->env.nr_sibling_threads = nr;
nr               2236 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               2268 tools/perf/util/header.c 		if (do_read_u32(ff, &nr))
nr               2271 tools/perf/util/header.c 		ph->env.cpu[i].core_id = nr;
nr               2274 tools/perf/util/header.c 		if (do_read_u32(ff, &nr))
nr               2277 tools/perf/util/header.c 		if (do_core_id_test && nr != (u32)-1 && nr > (u32)cpu_nr) {
nr               2283 tools/perf/util/header.c 		ph->env.cpu[i].socket_id = nr;
nr               2294 tools/perf/util/header.c 	if (do_read_u32(ff, &nr))
nr               2297 tools/perf/util/header.c 	ph->env.nr_sibling_dies = nr;
nr               2300 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               2314 tools/perf/util/header.c 		if (do_read_u32(ff, &nr))
nr               2317 tools/perf/util/header.c 		ph->env.cpu[i].die_id = nr;
nr               2332 tools/perf/util/header.c 	u32 nr, i;
nr               2336 tools/perf/util/header.c 	if (do_read_u32(ff, &nr))
nr               2339 tools/perf/util/header.c 	nodes = zalloc(sizeof(*nodes) * nr);
nr               2343 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               2366 tools/perf/util/header.c 	ff->ph->env.nr_numa_nodes = nr;
nr               2425 tools/perf/util/header.c 	u32 i, nr, nr_groups;
nr               2465 tools/perf/util/header.c 	i = nr = 0;
nr               2476 tools/perf/util/header.c 			if (i >= nr_groups || nr > 0) {
nr               2482 tools/perf/util/header.c 			nr = evsel->core.nr_members - 1;
nr               2484 tools/perf/util/header.c 		} else if (nr) {
nr               2488 tools/perf/util/header.c 			nr--;
nr               2492 tools/perf/util/header.c 	if (i != nr_groups || nr != 0) {
nr               2597 tools/perf/util/header.c 	u64 version, i, nr, bsize;
nr               2609 tools/perf/util/header.c 	if (do_read_u64(ff, &nr))
nr               2612 tools/perf/util/header.c 	nodes = zalloc(sizeof(*nodes) * nr);
nr               2616 tools/perf/util/header.c 	for (i = 0; i < nr; i++) {
nr               2636 tools/perf/util/header.c 	ff->ph->env.nr_memory_nodes = nr;
nr                 34 tools/perf/util/help-unknown-cmd.c 	unsigned int i, nr = cmds->cnt + old->cnt;
nr                 37 tools/perf/util/help-unknown-cmd.c 	if (nr > cmds->alloc) {
nr                 39 tools/perf/util/help-unknown-cmd.c 		if (alloc_nr(cmds->alloc) < nr)
nr                 40 tools/perf/util/help-unknown-cmd.c 			cmds->alloc = nr;
nr                864 tools/perf/util/hist.c 	iter->total = sample->branch_stack->nr;
nr                995 tools/perf/util/hist.c 	he_cache = malloc(sizeof(*he_cache) * (callchain_cursor.nr + 1));
nr               2577 tools/perf/util/hist.c 	if (bs && bs->nr && bs->entries[0].flags.cycles) {
nr               2594 tools/perf/util/hist.c 			for (i = bs->nr - 1; i >= 0; i--) {
nr                661 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c 	int ret, i, nr;
nr                722 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c 		nr = packet->payload & NR_FLAG ? 1 : 0;
nr                725 tools/perf/util/intel-pt-decoder/intel-pt-pkt-decoder.c 			       name, payload, nr);
nr               1137 tools/perf/util/intel-pt.c 	size_t nr = 0;
nr               1139 tools/perf/util/intel-pt.c 	bs_dst->nr = bs_src->nr;
nr               1141 tools/perf/util/intel-pt.c 	if (!bs_src->nr)
nr               1144 tools/perf/util/intel-pt.c 	nr = ptq->pt->synth_opts.last_branch_sz - ptq->last_branch_pos;
nr               1147 tools/perf/util/intel-pt.c 	       sizeof(struct branch_entry) * nr);
nr               1149 tools/perf/util/intel-pt.c 	if (bs_src->nr >= ptq->pt->synth_opts.last_branch_sz) {
nr               1150 tools/perf/util/intel-pt.c 		memcpy(&bs_dst->entries[nr],
nr               1159 tools/perf/util/intel-pt.c 	ptq->last_branch_rb->nr = 0;
nr               1181 tools/perf/util/intel-pt.c 	if (bs->nr < ptq->pt->synth_opts.last_branch_sz)
nr               1182 tools/perf/util/intel-pt.c 		bs->nr += 1;
nr               1275 tools/perf/util/intel-pt.c 		u64			nr;
nr               1296 tools/perf/util/intel-pt.c 			.nr = 1,
nr               1678 tools/perf/util/intel-pt.c 	br_stack->nr = 0;
nr               1691 tools/perf/util/intel-pt.c 				br_stack->nr += 1;
nr               1789 tools/perf/util/intel-pt.c 			br.br_stack.nr = 0;
nr                 60 tools/perf/util/machine.c 		threads->nr = 0;
nr                552 tools/perf/util/machine.c 		++threads->nr;
nr                866 tools/perf/util/machine.c 		ret = fprintf(fp, "Threads: %u\n", threads->nr);
nr               1768 tools/perf/util/machine.c 	--threads->nr;
nr               2084 tools/perf/util/machine.c 	struct branch_info *bi = calloc(bs->nr, sizeof(struct branch_info));
nr               2089 tools/perf/util/machine.c 	for (i = 0; i < bs->nr; i++) {
nr               2098 tools/perf/util/machine.c 			    struct branch_entry *be, int nr)
nr               2105 tools/perf/util/machine.c 	for (i = 0; i < nr; i++)
nr               2116 tools/perf/util/machine.c static int remove_loops(struct branch_entry *l, int nr,
nr               2126 tools/perf/util/machine.c 	for (i = 0; i < nr; i++) {
nr               2136 tools/perf/util/machine.c 			for (j = chash[h]; j < i && i + off < nr; j++, off++)
nr               2142 tools/perf/util/machine.c 				j = nr - (i + off);
nr               2154 tools/perf/util/machine.c 				nr -= off;
nr               2158 tools/perf/util/machine.c 	return nr;
nr               2176 tools/perf/util/machine.c 	int chain_nr = min(max_stack, (int)chain->nr), i;
nr               2188 tools/perf/util/machine.c 		int lbr_nr = lbr_stack->nr, j, k;
nr               2292 tools/perf/util/machine.c 		chain_nr = chain->nr;
nr               2320 tools/perf/util/machine.c 		int nr = min(max_stack, (int)branch->nr);
nr               2321 tools/perf/util/machine.c 		struct branch_entry be[nr];
nr               2322 tools/perf/util/machine.c 		struct iterations iter[nr];
nr               2324 tools/perf/util/machine.c 		if (branch->nr > PERF_MAX_BRANCH_DEPTH) {
nr               2329 tools/perf/util/machine.c 		for (i = 0; i < nr; i++) {
nr               2350 tools/perf/util/machine.c 				be[i] = branch->entries[branch->nr - i - 1];
nr               2353 tools/perf/util/machine.c 		memset(iter, 0, sizeof(struct iterations) * nr);
nr               2354 tools/perf/util/machine.c 		nr = remove_loops(be, nr, iter);
nr               2356 tools/perf/util/machine.c 		for (i = 0; i < nr; i++) {
nr               2377 tools/perf/util/machine.c 		chain_nr -= nr;
nr               2383 tools/perf/util/machine.c 					&cpumode, chain->nr - first_call);
nr               2394 tools/perf/util/machine.c 			j = chain->nr - i - 1;
nr                 35 tools/perf/util/machine.h 	unsigned int	       nr;
nr                332 tools/perf/util/map.c 	int nr;
nr                337 tools/perf/util/map.c 	nr = dso__load(map->dso, map);
nr                338 tools/perf/util/map.c 	if (nr < 0) {
nr                351 tools/perf/util/map.c 	} else if (nr == 0) {
nr                579 tools/perf/util/python.c 	return pcpus->cpus->nr;
nr                586 tools/perf/util/python.c 	if (i >= pcpus->cpus->nr)
nr                648 tools/perf/util/python.c 	return pthreads->threads->nr;
nr                655 tools/perf/util/python.c 	if (i >= pthreads->threads->nr)
nr                944 tools/perf/util/python.c 	for (i = 0; i < evlist->core.pollfd.nr; ++i) {
nr                149 tools/perf/util/rb_resort.h 			   __machine->threads[hash_bucket].nr)
nr                138 tools/perf/util/s390-sample-raw.c static const char *get_counter_name(int set, int nr, struct pmu_events_map *map)
nr                140 tools/perf/util/s390-sample-raw.c 	int rc, event_nr, wanted = get_counterset_start(set) + nr;
nr                474 tools/perf/util/scripting-engines/trace-event-python.c 	if (!(br && br->nr))
nr                477 tools/perf/util/scripting-engines/trace-event-python.c 	for (i = 0; i < br->nr; i++) {
nr                573 tools/perf/util/scripting-engines/trace-event-python.c 	if (!(br && br->nr))
nr                576 tools/perf/util/scripting-engines/trace-event-python.c 	for (i = 0; i < br->nr; i++) {
nr                654 tools/perf/util/scripting-engines/trace-event-python.c 		values = PyList_New(sample->read.group.nr);
nr                662 tools/perf/util/scripting-engines/trace-event-python.c 		for (i = 0; i < sample->read.group.nr; i++) {
nr               1405 tools/perf/util/scripting-engines/trace-event-python.c 	for (thread = 0; thread < threads->nr; thread++) {
nr               1406 tools/perf/util/scripting-engines/trace-event-python.c 		for (cpu = 0; cpu < cpus->nr; cpu++) {
nr                839 tools/perf/util/session.c 	event->thread_map.nr = bswap_64(event->thread_map.nr);
nr                841 tools/perf/util/session.c 	for (i = 0; i < event->thread_map.nr; i++)
nr                859 tools/perf/util/session.c 		cpus->nr = bswap_16(cpus->nr);
nr                861 tools/perf/util/session.c 		for (i = 0; i < cpus->nr; i++)
nr                867 tools/perf/util/session.c 		mask->nr = bswap_16(mask->nr);
nr                871 tools/perf/util/session.c 		case 4: mem_bswap_32(&mask->mask, mask->nr); break;
nr                872 tools/perf/util/session.c 		case 8: mem_bswap_64(&mask->mask, mask->nr); break;
nr                886 tools/perf/util/session.c 	size  = event->stat_config.nr * sizeof(event->stat_config.data[0]);
nr                888 tools/perf/util/session.c 	mem_bswap_64(&event->stat_config.nr, size);
nr               1005 tools/perf/util/session.c 	u64 kernel_callchain_nr = callchain->nr;
nr               1013 tools/perf/util/session.c 	if ((i != kernel_callchain_nr) && lbr_stack->nr) {
nr               1031 tools/perf/util/session.c 		total_nr = i + 1 + lbr_stack->nr + 1;
nr               1042 tools/perf/util/session.c 		for (i = 0; i < lbr_stack->nr; i++)
nr               1057 tools/perf/util/session.c 	printf("... FP chain: nr:%" PRIu64 "\n", callchain->nr);
nr               1059 tools/perf/util/session.c 	for (i = 0; i < callchain->nr; i++)
nr               1070 tools/perf/util/session.c 		sample->branch_stack->nr);
nr               1072 tools/perf/util/session.c 	for (i = 0; i < sample->branch_stack->nr; i++) {
nr               1185 tools/perf/util/session.c 		printf(".... group nr %" PRIu64 "\n", sample->read.group.nr);
nr               1187 tools/perf/util/session.c 		for (i = 0; i < sample->read.group.nr; i++) {
nr               1359 tools/perf/util/session.c 	for (i = 0; i < sample->read.group.nr; i++) {
nr               2338 tools/perf/util/session.c 	for (i = 0; i < map->nr; i++) {
nr               2402 tools/perf/util/session.c 	size_t i, nr, max_nr;
nr               2406 tools/perf/util/session.c 	nr = ie->nr;
nr               2407 tools/perf/util/session.c 	if (nr > max_nr)
nr               2411 tools/perf/util/session.c 		fprintf(stdout, " nr: %zu\n", nr);
nr               2413 tools/perf/util/session.c 	for (i = 0; i < nr; i++) {
nr               2327 tools/perf/util/sort.c 		int nr = strtol(event_name+1, NULL, 0);
nr               2329 tools/perf/util/sort.c 		if (nr > evlist->core.nr_entries)
nr               2333 tools/perf/util/sort.c 		while (--nr > 0)
nr                 70 tools/perf/util/stat-display.c 			  struct evsel *evsel, int id, int nr)
nr                 81 tools/perf/util/stat-display.c 			nr,
nr                 91 tools/perf/util/stat-display.c 			nr,
nr                100 tools/perf/util/stat-display.c 			nr,
nr                137 tools/perf/util/stat-display.c 	int  id, nr;
nr                156 tools/perf/util/stat-display.c 	aggr_printout(config, os->evsel, os->id, os->nr);
nr                197 tools/perf/util/stat-display.c 	aggr_printout(config, os->evsel, os->id, os->nr);
nr                338 tools/perf/util/stat-display.c 			 int id, int nr, struct evsel *evsel, double avg)
nr                353 tools/perf/util/stat-display.c 	aggr_printout(config, evsel, id, nr);
nr                391 tools/perf/util/stat-display.c static void printout(struct perf_stat_config *config, int id, int nr,
nr                401 tools/perf/util/stat-display.c 		.nr = nr,
nr                438 tools/perf/util/stat-display.c 		aggr_printout(config, counter, id, nr);
nr                471 tools/perf/util/stat-display.c 		abs_printout(config, id, nr, counter, uval);
nr                499 tools/perf/util/stat-display.c 	for (s = 0; s < config->aggr_map->nr; s++) {
nr                584 tools/perf/util/stat-display.c 	int nr;
nr                601 tools/perf/util/stat-display.c 			ad->nr++;
nr                627 tools/perf/util/stat-display.c 	int id, nr;
nr                632 tools/perf/util/stat-display.c 	ad.nr = 0;
nr                636 tools/perf/util/stat-display.c 	nr = ad.nr;
nr                642 tools/perf/util/stat-display.c 		aggr_printout(config, counter, id, nr);
nr                648 tools/perf/util/stat-display.c 	printout(config, id, nr, counter, uval, prefix,
nr                673 tools/perf/util/stat-display.c 	for (s = 0; s < config->aggr_map->nr; s++) {
nr                872 tools/perf/util/stat-display.c 	nrcpus = evlist->core.cpus->nr;
nr               1146 tools/perf/util/stat-display.c 	for (s = 0; s < config->aggr_map->nr; s++) {
nr                 49 tools/perf/util/strbuf.c 	size_t nr = sb->len + extra + 1;
nr                 51 tools/perf/util/strbuf.c 	if (nr < sb->alloc)
nr                 54 tools/perf/util/strbuf.c 	if (nr <= sb->len)
nr                 57 tools/perf/util/strbuf.c 	if (alloc_nr(sb->alloc) > nr)
nr                 58 tools/perf/util/strbuf.c 		nr = alloc_nr(sb->alloc);
nr                 64 tools/perf/util/strbuf.c 	buf = realloc(sb->alloc ? sb->buf : NULL, nr * sizeof(*buf));
nr                 69 tools/perf/util/strbuf.c 	sb->alloc = nr;
nr                737 tools/perf/util/svghelper.c 	for (i = 0; i < m->nr; i++) {
nr                295 tools/perf/util/symbol-elf.c 	int nr = 0, symidx, err = 0;
nr                405 tools/perf/util/symbol-elf.c 			++nr;
nr                431 tools/perf/util/symbol-elf.c 			++nr;
nr                438 tools/perf/util/symbol-elf.c 		return nr;
nr                967 tools/perf/util/symbol-elf.c 	int nr = 0;
nr               1151 tools/perf/util/symbol-elf.c 		nr++;
nr               1157 tools/perf/util/symbol-elf.c 	if (nr > 0) {
nr               1168 tools/perf/util/symbol-elf.c 	err = nr;
nr                588 tools/perf/util/synthetic-events.c 	for (thread = 0; thread < threads->nr; ++thread) {
nr                606 tools/perf/util/synthetic-events.c 			for (j = 0; j < threads->nr; ++j) {
nr                891 tools/perf/util/synthetic-events.c 	size +=	threads->nr * sizeof(event->thread_map.entries[0]);
nr                899 tools/perf/util/synthetic-events.c 	event->thread_map.nr = threads->nr;
nr                901 tools/perf/util/synthetic-events.c 	for (i = 0; i < threads->nr; i++) {
nr                923 tools/perf/util/synthetic-events.c 	cpus->nr = map->nr;
nr                925 tools/perf/util/synthetic-events.c 	for (i = 0; i < map->nr; i++)
nr                934 tools/perf/util/synthetic-events.c 	mask->nr = BITS_TO_LONGS(max);
nr                937 tools/perf/util/synthetic-events.c 	for (i = 0; i < map->nr; i++)
nr                943 tools/perf/util/synthetic-events.c 	return sizeof(struct cpu_map_entries) + map->nr * sizeof(u16);
nr                952 tools/perf/util/synthetic-events.c 	for (i = 0; i < map->nr; i++) {
nr               1067 tools/perf/util/synthetic-events.c 	event->nr          = PERF_STAT_CONFIG_TERM__MAX;
nr               1166 tools/perf/util/synthetic-events.c 			sz = sample->read.group.nr *
nr               1175 tools/perf/util/synthetic-events.c 		sz = (sample->callchain->nr + 1) * sizeof(u64);
nr               1185 tools/perf/util/synthetic-events.c 		sz = sample->branch_stack->nr * sizeof(struct branch_entry);
nr               1298 tools/perf/util/synthetic-events.c 			*array = sample->read.group.nr;
nr               1315 tools/perf/util/synthetic-events.c 			sz = sample->read.group.nr *
nr               1326 tools/perf/util/synthetic-events.c 		sz = (sample->callchain->nr + 1) * sizeof(u64);
nr               1341 tools/perf/util/synthetic-events.c 		sz = sample->branch_stack->nr * sizeof(struct branch_entry);
nr               1407 tools/perf/util/synthetic-events.c 	size_t nr = 0, i = 0, sz, max_nr, n;
nr               1416 tools/perf/util/synthetic-events.c 		nr += evsel->core.ids;
nr               1418 tools/perf/util/synthetic-events.c 	n = nr > max_nr ? max_nr : nr;
nr               1426 tools/perf/util/synthetic-events.c 	ev->id_index.nr = n;
nr               1439 tools/perf/util/synthetic-events.c 				nr -= n;
nr               1459 tools/perf/util/synthetic-events.c 	sz = sizeof(struct perf_record_id_index) + nr * sizeof(struct id_index_entry);
nr               1461 tools/perf/util/synthetic-events.c 	ev->id_index.nr = nr;
nr                471 tools/perf/util/thread-stack.c 		chain->nr = 0;
nr                479 tools/perf/util/thread-stack.c 		chain->nr = 2;
nr                497 tools/perf/util/thread-stack.c 	chain->nr = i;
nr                 50 tools/perf/util/thread_map.c 		threads->nr = items;
nr                 67 tools/perf/util/thread_map.c 		threads->nr = 1;
nr                 89 tools/perf/util/thread_map.c 	threads->nr = 0;
nr                114 tools/perf/util/thread_map.c 		while (threads->nr + items >= max_threads) {
nr                130 tools/perf/util/thread_map.c 			perf_thread_map__set_pid(threads, threads->nr + i,
nr                138 tools/perf/util/thread_map.c 		threads->nr += items;
nr                223 tools/perf/util/thread_map.c 		threads->nr = total_tasks;
nr                279 tools/perf/util/thread_map.c 		threads->nr = ntasks;
nr                311 tools/perf/util/thread_map.c 				 threads->nr, threads->nr > 1 ? "s" : "");
nr                312 tools/perf/util/thread_map.c 	for (i = 0; i < threads->nr; ++i)
nr                367 tools/perf/util/thread_map.c 	for (i = 0; i < threads->nr; ++i)
nr                376 tools/perf/util/thread_map.c 	threads->nr = (int) event->nr;
nr                378 tools/perf/util/thread_map.c 	for (i = 0; i < event->nr; i++) {
nr                390 tools/perf/util/thread_map.c 	threads = thread_map__alloc(event->nr);
nr                401 tools/perf/util/thread_map.c 	for (i = 0; i < threads->nr; ++i) {
nr                413 tools/perf/util/thread_map.c 	if (threads->nr < 1)
nr                416 tools/perf/util/thread_map.c 	if (idx >= threads->nr)
nr                424 tools/perf/util/thread_map.c 	for (i = idx; i < threads->nr - 1; i++)
nr                427 tools/perf/util/thread_map.c 	threads->nr--;
nr                 98 tools/perf/util/top.c 				top->evlist->core.cpus->nr > 1 ? "s" : "",
nr                105 tools/perf/util/top.c 					top->evlist->core.cpus->nr,
nr                106 tools/perf/util/top.c 					top->evlist->core.cpus->nr > 1 ? "s" : "");
nr                117 tools/testing/radix-tree/test.c 			unsigned long start, unsigned long nr,
nr                123 tools/testing/radix-tree/test.c 	for (into = 0; into < nr; ) {
nr                128 tools/testing/radix-tree/test.c 		if (nr_to_find > (nr - into))
nr                129 tools/testing/radix-tree/test.c 			nr_to_find = nr - into;
nr                144 tools/testing/radix-tree/test.c 			unsigned long nr, int chunk)
nr                166 tools/testing/radix-tree/test.c 		assert(this_index == start + nr);
nr                 24 tools/testing/radix-tree/test.h 			unsigned long start, unsigned long nr,
nr                 27 tools/testing/radix-tree/test.h 			unsigned long nr, int chunk);
nr                 60 tools/testing/radix-tree/test.h 	unsigned nr;
nr                215 tools/testing/selftests/cgroup/cgroup_util.c 		int nr = 0;
nr                222 tools/testing/selftests/cgroup/cgroup_util.c 				nr++;
nr                224 tools/testing/selftests/cgroup/cgroup_util.c 		if (nr >= count)
nr                 42 tools/testing/selftests/kvm/dirty_log_test.c # define test_bit_le(nr, addr) \
nr                 43 tools/testing/selftests/kvm/dirty_log_test.c 	test_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
nr                 44 tools/testing/selftests/kvm/dirty_log_test.c # define set_bit_le(nr, addr) \
nr                 45 tools/testing/selftests/kvm/dirty_log_test.c 	set_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
nr                 46 tools/testing/selftests/kvm/dirty_log_test.c # define clear_bit_le(nr, addr) \
nr                 47 tools/testing/selftests/kvm/dirty_log_test.c 	clear_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
nr                 48 tools/testing/selftests/kvm/dirty_log_test.c # define test_and_set_bit_le(nr, addr) \
nr                 49 tools/testing/selftests/kvm/dirty_log_test.c 	test_and_set_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
nr                 50 tools/testing/selftests/kvm/dirty_log_test.c # define test_and_clear_bit_le(nr, addr) \
nr                 51 tools/testing/selftests/kvm/dirty_log_test.c 	test_and_clear_bit((nr) ^ BITOP_LE_SWIZZLE, addr)
nr                 24 tools/testing/selftests/kvm/lib/kvm_util_internal.h #define BITS_TO_LONGS(nr)	DIV_ROUND_UP(nr, BITS_PER_LONG)
nr                119 tools/testing/selftests/powerpc/benchmarks/null_syscall.c static void do_null_syscall(unsigned long nr)
nr                123 tools/testing/selftests/powerpc/benchmarks/null_syscall.c 	for (i = 0; i < nr; i++)
nr                 21 tools/testing/selftests/powerpc/security/rfi_flush.c 	__u64 nr;
nr                203 tools/testing/selftests/ptrace/get_syscall_info.c 				ASSERT_EQ(exp_args[0], info.entry.nr) {
nr                 68 tools/testing/selftests/ptrace/peeksiginfo.c 	arg.nr = SIGNR;
nr                105 tools/testing/selftests/ptrace/peeksiginfo.c int check_direct_path(pid_t child, int shared, int nr)
nr                107 tools/testing/selftests/ptrace/peeksiginfo.c 	struct ptrace_peeksiginfo_args arg = {.flags = 0, .nr = nr, .off = 0};
nr                 85 tools/testing/selftests/seccomp/seccomp_bpf.c 	int nr;
nr                171 tools/testing/selftests/seccomp/seccomp_bpf.c #define SECCOMP_IO(nr)			_IO(SECCOMP_IOC_MAGIC, nr)
nr                172 tools/testing/selftests/seccomp/seccomp_bpf.c #define SECCOMP_IOR(nr, type)		_IOR(SECCOMP_IOC_MAGIC, nr, type)
nr                173 tools/testing/selftests/seccomp/seccomp_bpf.c #define SECCOMP_IOW(nr, type)		_IOW(SECCOMP_IOC_MAGIC, nr, type)
nr                174 tools/testing/selftests/seccomp/seccomp_bpf.c #define SECCOMP_IOWR(nr, type)		_IOWR(SECCOMP_IOC_MAGIC, nr, type)
nr                558 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr                586 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr                626 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr                692 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr                703 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr                806 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),		\
nr                913 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr                961 tools/testing/selftests/seccomp/seccomp_bpf.c static void TRAP_action(int nr, siginfo_t *info, void *void_context)
nr                964 tools/testing/selftests/seccomp/seccomp_bpf.c 	TRAP_nr = nr;
nr               1032 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1039 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1046 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1053 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1060 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1516 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1780 tools/testing/selftests/seccomp/seccomp_bpf.c 	int ret, nr;
nr               1799 tools/testing/selftests/seccomp/seccomp_bpf.c 	nr = get_syscall(_metadata, tracee);
nr               1801 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (nr == __NR_getpid)
nr               1803 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (nr == __NR_gettid)
nr               1805 tools/testing/selftests/seccomp/seccomp_bpf.c 	if (nr == __NR_openat)
nr               1818 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1958 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               1990 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               2020 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               2052 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               2329 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               2438 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               2738 tools/testing/selftests/seccomp/seccomp_bpf.c 			 offsetof(struct seccomp_data, nr)),
nr               2908 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               3063 tools/testing/selftests/seccomp/seccomp_bpf.c static int user_trap_syscall(int nr, unsigned int flags)
nr               3067 tools/testing/selftests/seccomp/seccomp_bpf.c 			offsetof(struct seccomp_data, nr)),
nr               3068 tools/testing/selftests/seccomp/seccomp_bpf.c 		BPF_JUMP(BPF_JMP+BPF_JEQ+BPF_K, nr, 0, 1),
nr               3169 tools/testing/selftests/seccomp/seccomp_bpf.c 	EXPECT_EQ(req.data.nr,  __NR_getppid);
nr                 53 tools/testing/selftests/timers/posix_timers.c static void sig_handler(int nr)
nr                 40 tools/testing/selftests/vDSO/vdso_standalone_test_x86.c static inline long x86_syscall3(long nr, long a0, long a1, long a2)
nr                 44 tools/testing/selftests/vDSO/vdso_standalone_test_x86.c 	asm volatile ("syscall" : "=a" (ret) : "a" (nr),
nr                 49 tools/testing/selftests/vDSO/vdso_standalone_test_x86.c 	asm volatile ("int $0x80" : "=a" (ret) : "a" (nr),
nr                713 tools/testing/selftests/vm/userfaultfd.c 	unsigned long nr;
nr                737 tools/testing/selftests/vm/userfaultfd.c 	for (nr = 0; nr < split_nr_pages; nr++) {
nr                740 tools/testing/selftests/vm/userfaultfd.c 				if (nr == lastnr) {
nr                745 tools/testing/selftests/vm/userfaultfd.c 				lastnr = nr;
nr                747 tools/testing/selftests/vm/userfaultfd.c 					if (copy_page(uffd, nr * page_size))
nr                756 tools/testing/selftests/vm/userfaultfd.c 		count = *area_count(area_dst, nr);
nr                757 tools/testing/selftests/vm/userfaultfd.c 		if (count != count_verify[nr]) {
nr                760 tools/testing/selftests/vm/userfaultfd.c 				nr, count,
nr                761 tools/testing/selftests/vm/userfaultfd.c 				count_verify[nr]), exit(1);
nr                776 tools/testing/selftests/vm/userfaultfd.c 	for (; nr < nr_pages; nr++) {
nr                777 tools/testing/selftests/vm/userfaultfd.c 		count = *area_count(area_dst, nr);
nr                778 tools/testing/selftests/vm/userfaultfd.c 		if (count != count_verify[nr]) {
nr                781 tools/testing/selftests/vm/userfaultfd.c 				nr, count,
nr                782 tools/testing/selftests/vm/userfaultfd.c 				count_verify[nr]), exit(1);
nr                789 tools/testing/selftests/vm/userfaultfd.c 	for (nr = 0; nr < nr_pages; nr++) {
nr                790 tools/testing/selftests/vm/userfaultfd.c 		if (my_bcmp(area_dst + nr * page_size, zeropage, page_size))
nr                791 tools/testing/selftests/vm/userfaultfd.c 			fprintf(stderr, "nr %lu is not zero\n", nr), exit(1);
nr               1037 tools/testing/selftests/vm/userfaultfd.c 	unsigned long nr;
nr               1059 tools/testing/selftests/vm/userfaultfd.c 	for (nr = 0; nr < nr_pages; nr++) {
nr               1060 tools/testing/selftests/vm/userfaultfd.c 		*area_mutex(area_src, nr) = (pthread_mutex_t)
nr               1062 tools/testing/selftests/vm/userfaultfd.c 		count_verify[nr] = *area_count(area_src, nr) = 1;
nr               1070 tools/testing/selftests/vm/userfaultfd.c 		*(area_count(area_src, nr) + 1) = 1;
nr               1190 tools/testing/selftests/vm/userfaultfd.c 			for (nr = 0; nr < nr_pages; nr++) {
nr               1191 tools/testing/selftests/vm/userfaultfd.c 				if (*area_count(area_dst, nr) != count_verify[nr]) {
nr               1194 tools/testing/selftests/vm/userfaultfd.c 						*area_count(area_src, nr),
nr               1195 tools/testing/selftests/vm/userfaultfd.c 						count_verify[nr],
nr               1196 tools/testing/selftests/vm/userfaultfd.c 						nr);
nr                146 tools/testing/selftests/x86/mov_ss_trap.c 	unsigned long nr;
nr                159 tools/testing/selftests/x86/mov_ss_trap.c 	asm volatile ("mov %[ss], %[tmp]" : [tmp] "=r" (nr) : [ss] "m" (ss));
nr                180 tools/testing/selftests/x86/mov_ss_trap.c 	nr = -1;
nr                182 tools/testing/selftests/x86/mov_ss_trap.c 		      : [tmp] "+r" (nr) : [ss] "m" (ss));
nr                204 tools/testing/selftests/x86/mov_ss_trap.c 			      : [tmp] "=r" (nr) : [ss] "m" (ss));
nr                226 tools/testing/selftests/x86/mov_ss_trap.c 		nr = SYS_getpid;
nr                234 tools/testing/selftests/x86/mov_ss_trap.c 			      : "+a" (nr) : [ss] "m" (ss)
nr                259 tools/testing/selftests/x86/mov_ss_trap.c 		nr = SYS_getpid;
nr                261 tools/testing/selftests/x86/mov_ss_trap.c 		asm volatile ("xorl %%ebp, %%ebp; mov %[ss], %%ss; SYSENTER" : "+a" (nr)
nr                274 tools/testing/selftests/x86/mov_ss_trap.c 		nr = 20;	/* compat getpid */
nr                276 tools/testing/selftests/x86/mov_ss_trap.c 			      : "+a" (nr) : [ss] "m" (ss)
nr                 44 tools/testing/selftests/x86/ptrace_syscall.c 	uint32_t nr, arg0, arg1, arg2, arg3, arg4, arg5;
nr                 60 tools/testing/selftests/x86/ptrace_syscall.c 		      : "+a" (args->nr),
nr                142 tools/testing/selftests/x86/ptrace_syscall.c 		.nr = 224,	/* gettid */
nr                149 tools/testing/selftests/x86/ptrace_syscall.c 	if (args.nr != getpid() ||
nr                160 tools/testing/selftests/x86/ptrace_syscall.c 	args.nr = 37;	/* kill */
nr                164 tools/testing/selftests/x86/ptrace_syscall.c 	if (args.nr != 0 ||
nr                 20 tools/testing/selftests/x86/syscall_numbering.c static void check_enosys(unsigned long nr, bool *ok)
nr                 25 tools/testing/selftests/x86/syscall_numbering.c 	long ret = syscall(nr, 0, 0, 0, 0, 0, 0);
nr                 27 tools/testing/selftests/x86/syscall_numbering.c 		printf("[FAIL]\tsyscall %lu succeeded, but it should have failed\n", nr);
nr                 30 tools/testing/selftests/x86/syscall_numbering.c 		printf("[FAIL]\tsyscall %lu had error code %d, but it should have reported ENOSYS\n", nr, errno);
nr                 77 tools/virtio/linux/scatterlist.h #define for_each_sg(sglist, sg, nr, __i)	\
nr                 78 tools/virtio/linux/scatterlist.h 	for (__i = 0, sg = (sglist); __i < (nr); __i++, sg = sg_next(sg))
nr                277 tools/vm/slabinfo.c 	int nr;
nr                289 tools/vm/slabinfo.c 			nr = strtoul(t, &t, 10);
nr                290 tools/vm/slabinfo.c 			numa[node] = nr;
nr                125 virt/kvm/arm/vgic/vgic-irqfd.c 	u32 nr = dist->nr_spis;
nr                128 virt/kvm/arm/vgic/vgic-irqfd.c 	entries = kcalloc(nr, sizeof(*entries), GFP_KERNEL);
nr                132 virt/kvm/arm/vgic/vgic-irqfd.c 	for (i = 0; i < nr; i++) {
nr                138 virt/kvm/arm/vgic/vgic-irqfd.c 	ret = kvm_set_irq_routing(kvm, entries, nr, 0);
nr                171 virt/kvm/irqchip.c 			unsigned nr,
nr                179 virt/kvm/irqchip.c 	for (i = 0; i < nr; ++i) {
nr                196 virt/kvm/irqchip.c 	for (i = 0; i < nr; ++i) {
nr               3486 virt/kvm/kvm_main.c 		if (routing.nr > KVM_MAX_IRQ_ROUTES)
nr               3490 virt/kvm/kvm_main.c 		if (routing.nr) {
nr               3493 virt/kvm/kvm_main.c 						     routing.nr));
nr               3499 virt/kvm/kvm_main.c 					   routing.nr * sizeof(*entries)))
nr               3502 virt/kvm/kvm_main.c 		r = kvm_set_irq_routing(kvm, entries, routing.nr,