nbits              71 arch/c6x/platforms/dscr.c 	u8  nbits;		/* number of bits per device */
nbits              89 arch/c6x/platforms/dscr.c 	u8  nbits;		/* number of bits per device */
nbits             209 arch/c6x/platforms/dscr.c 	ctl_shift = ctl->shift + ctl->nbits * (id - ctl->start_id);
nbits             210 arch/c6x/platforms/dscr.c 	ctl_mask = ((1 << ctl->nbits) - 1) << ctl_shift;
nbits             238 arch/c6x/platforms/dscr.c 	ctl_shift = stat->shift + stat->nbits * (id - stat->start_id);
nbits             248 arch/c6x/platforms/dscr.c 		val &= ((1 << stat->nbits) - 1);
nbits             491 arch/c6x/platforms/dscr.c 			r->nbits = be32_to_cpup(p++);
nbits             545 arch/c6x/platforms/dscr.c 			r->nbits = be32_to_cpup(p++);
nbits              52 arch/ia64/kernel/ptrace.c #define MASK(nbits)	((1UL << (nbits)) - 1)	/* mask with NBITS bits set */
nbits              82 arch/ia64/kernel/ptrace.c 		unsigned long nbits = (last - first + 1);		\
nbits              83 arch/ia64/kernel/ptrace.c 		unsigned long mask = MASK(nbits) << first;		\
nbits             121 arch/ia64/kernel/ptrace.c 		unsigned long nbits = (last - first + 1);		\
nbits             122 arch/ia64/kernel/ptrace.c 		unsigned long mask = MASK(nbits) << first;		\
nbits             259 arch/ia64/kernel/ptrace.c 	long num_regs, nbits;
nbits             267 arch/ia64/kernel/ptrace.c 		nbits = ia64_rse_num_regs(urnat_addr - 63, urbs_end);
nbits             269 arch/ia64/kernel/ptrace.c 		nbits = 63;
nbits             270 arch/ia64/kernel/ptrace.c 	mask = MASK(nbits);
nbits             318 arch/ia64/kernel/ptrace.c 	long num_regs, nbits;
nbits             337 arch/ia64/kernel/ptrace.c 		nbits = 63;
nbits             341 arch/ia64/kernel/ptrace.c 		nbits = ia64_rse_num_regs(urnat_addr - 63, urbs_kargs);
nbits             343 arch/ia64/kernel/ptrace.c 	mask = MASK(nbits);
nbits             251 arch/ia64/mm/tlb.c 		       unsigned long end, unsigned long nbits)
nbits             274 arch/ia64/mm/tlb.c 		ia64_ptcga(start, (nbits << 2));
nbits             276 arch/ia64/mm/tlb.c 		start += (1UL << nbits);
nbits             317 arch/ia64/mm/tlb.c 	unsigned long nbits;
nbits             326 arch/ia64/mm/tlb.c 	nbits = ia64_fls(size + 0xfff);
nbits             327 arch/ia64/mm/tlb.c 	while (unlikely (((1UL << nbits) & purge.mask) == 0) &&
nbits             328 arch/ia64/mm/tlb.c 			(nbits < purge.max_bits))
nbits             329 arch/ia64/mm/tlb.c 		++nbits;
nbits             330 arch/ia64/mm/tlb.c 	if (nbits > purge.max_bits)
nbits             331 arch/ia64/mm/tlb.c 		nbits = purge.max_bits;
nbits             332 arch/ia64/mm/tlb.c 	start &= ~((1UL << nbits) - 1);
nbits             337 arch/ia64/mm/tlb.c 		ia64_global_tlb_purge(mm, start, end, nbits);
nbits             343 arch/ia64/mm/tlb.c 		ia64_ptcl(start, (nbits<<2));
nbits             344 arch/ia64/mm/tlb.c 		start += (1UL << nbits);
nbits              41 arch/parisc/include/asm/irq.h extern int txn_alloc_irq(unsigned int nbits);
nbits              54 arch/parisc/kernel/traps.c static int printbinary(char *buf, unsigned long x, int nbits)
nbits              56 arch/parisc/kernel/traps.c 	unsigned long mask = 1UL << (nbits - 1);
nbits              63 arch/parisc/kernel/traps.c 	return nbits;
nbits              70 arch/parisc/math-emu/driver.c 	extern void printbinary(unsigned long x, int nbits);
nbits              16 arch/sparc/include/asm/adi_64.h 	__u64 nbits;
nbits              41 arch/sparc/include/asm/adi_64.h 	return adi_state.caps.nbits;
nbits             224 arch/sparc/include/asm/elf_64.h 	NEW_AUX_ENT(AT_ADI_NBITS, adi_state.caps.nbits);		\
nbits              93 arch/sparc/kernel/adi_64.c 	adi_state.caps.nbits = *val;
nbits             108 arch/sparc/kernel/adi_64.c 	if (adi_state.caps.nbits > 4) {
nbits             119 arch/sparc/kernel/adi_64.c 	adi_state.caps.nbits = 0;
nbits             787 arch/x86/include/asm/uv/uv_bau.h 				    int nbits)
nbits             789 arch/x86/include/asm/uv/uv_bau.h 	bitmap_zero(&dstp->bits[0], nbits);
nbits             797 arch/x86/include/asm/uv/uv_bau.h static inline void bau_cpubits_clear(struct bau_local_cpumask *dstp, int nbits)
nbits             799 arch/x86/include/asm/uv/uv_bau.h 	bitmap_zero(&dstp->bits, nbits);
nbits             160 arch/x86/kernel/aperture_64.c 	int nbits;
nbits             180 arch/x86/kernel/aperture_64.c 	nbits = hweight16(apsize);
nbits             181 arch/x86/kernel/aperture_64.c 	*order = 7 - nbits;
nbits            1349 crypto/ecc.c   	unsigned int nbits = vli_num_bits(curve->n, ndigits);
nbits            1353 crypto/ecc.c   	if (nbits < 160 || ndigits > ARRAY_SIZE(priv))
nbits             712 drivers/char/random.c static void credit_entropy_bits(struct entropy_store *r, int nbits)
nbits             716 drivers/char/random.c 	int nfrac = nbits << ENTROPY_SHIFT;
nbits             718 drivers/char/random.c 	if (!nbits)
nbits             781 drivers/char/random.c 	trace_credit_entropy_bits(r->name, nbits,
nbits             819 drivers/char/random.c static int credit_entropy_bits_safe(struct entropy_store *r, int nbits)
nbits             823 drivers/char/random.c 	if (nbits < 0)
nbits             827 drivers/char/random.c 	nbits = min(nbits,  nbits_max);
nbits             829 drivers/char/random.c 	credit_entropy_bits(r, nbits);
nbits             460 drivers/crypto/img-hash.c 	unsigned long long nbits;
nbits             467 drivers/crypto/img-hash.c 	nbits = (u64)hdev->req->nbytes << 3;
nbits             468 drivers/crypto/img-hash.c 	u = nbits >> 32;
nbits             469 drivers/crypto/img-hash.c 	l = nbits;
nbits             477 drivers/crypto/img-hash.c 	dev_dbg(hdev->dev, "hw initialized, nbits: %llx\n", nbits);
nbits             481 drivers/edac/skx_base.c static int skx_bits(u64 addr, int nbits, u8 *bits)
nbits             485 drivers/edac/skx_base.c 	for (i = 0; i < nbits; i++)
nbits             186 drivers/infiniband/hw/qib/qib_iba7322.c #define SYM_FIELD_ACROSS(value, regname, fldname, nbits) \
nbits             187 drivers/infiniband/hw/qib/qib_iba7322.c 	(((value) >> SYM_LSB(regname, fldname)) & MASK_ACROSS(0, nbits))
nbits             144 drivers/input/touchscreen/cyttsp4_core.c static int cyttsp4_bits_2_bytes(unsigned int nbits, size_t *max)
nbits             146 drivers/input/touchscreen/cyttsp4_core.c 	*max = 1UL << nbits;
nbits             147 drivers/input/touchscreen/cyttsp4_core.c 	return (nbits + 7) / 8;
nbits             298 drivers/media/usb/pwc/pwc-dec23.c 			pdec->nbits = 7;	/* More bits, mean more bits to encode the stream, but better quality */
nbits             300 drivers/media/usb/pwc/pwc-dec23.c 			pdec->nbits = 8;
nbits             302 drivers/media/usb/pwc/pwc-dec23.c 			pdec->nbits = 6;
nbits             312 drivers/media/usb/pwc/pwc-dec23.c 			pdec->nbits = 7;
nbits             314 drivers/media/usb/pwc/pwc-dec23.c 			pdec->nbits = 8;
nbits             316 drivers/media/usb/pwc/pwc-dec23.c 			pdec->nbits = 6;
nbits             324 drivers/media/usb/pwc/pwc-dec23.c 	shift = 8 - pdec->nbits;
nbits             496 drivers/media/usb/pwc/pwc-dec23.c 	__get_nbits(pdec, pdec->nbits, primary_color);
nbits             542 drivers/media/usb/pwc/pwc-dec23.c 			unsigned int nbits, col1;
nbits             550 drivers/media/usb/pwc/pwc-dec23.c 			nbits = ptable8004[offset1 * 2];
nbits             553 drivers/media/usb/pwc/pwc-dec23.c 			__get_nbits(pdec, nbits+1, col1);
nbits             556 drivers/media/usb/pwc/pwc-dec23.c 			mask = pdec->table_bitpowermask[nbits][col1];
nbits              25 drivers/media/usb/pwc/pwc-dec23.h   unsigned int nbitsmask, nbits; /* Number of bits of a color in the compressed stream */
nbits              80 drivers/mfd/twl4030-irq.c #define SIH_INITIALIZER(modname, nbits) \
nbits              83 drivers/mfd/twl4030-irq.c 	.bits		= nbits, \
nbits              84 drivers/mfd/twl4030-irq.c 	.bytes_ixr	= DIV_ROUND_UP(nbits, 8), \
nbits              86 drivers/mfd/twl4030-irq.c 	.bytes_edr	= DIV_ROUND_UP((2*(nbits)), 8), \
nbits             853 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 			   size_t src_bit_off, size_t nbits)
nbits             860 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	if (!nbits)
nbits             879 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		if (nbits >= (8 - src_bit_off)) {
nbits             882 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 			src_buffer &= GENMASK(nbits - 1, 0);
nbits             883 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 			bits_in_src_buffer += nbits;
nbits             885 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		nbits -= bits_in_src_buffer;
nbits             890 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	nbytes = nbits / 8;
nbits             944 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	nbits %= 8;
nbits             950 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	if (!nbits && !bits_in_src_buffer)
nbits             954 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	if (nbits)
nbits             955 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 		src_buffer |= (*src & GENMASK(nbits - 1, 0)) <<
nbits             957 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c 	bits_in_src_buffer += nbits;
nbits            1192 drivers/net/ethernet/chelsio/cxgb/cxgb2.c static void bit_bang(struct adapter *adapter, int bitdata, int nbits)
nbits            1203 drivers/net/ethernet/chelsio/cxgb/cxgb2.c 	for (i = (nbits - 1); i > -1; i--) {
nbits              80 drivers/net/ethernet/mellanox/mlx4/alloc.c 					u32 start, u32 nbits,
nbits              88 drivers/net/ethernet/mellanox/mlx4/alloc.c 	while ((start < nbits) && (test_bit(start, bitmap) ||
nbits              92 drivers/net/ethernet/mellanox/mlx4/alloc.c 	if (start >= nbits)
nbits              96 drivers/net/ethernet/mellanox/mlx4/alloc.c 	if (end > nbits)
nbits            1531 drivers/net/ethernet/qlogic/qed/qed_l2.c 			u32 bit, nbits;
nbits            1534 drivers/net/ethernet/qlogic/qed/qed_l2.c 			nbits = sizeof(u32) * BITS_PER_BYTE;
nbits            1535 drivers/net/ethernet/qlogic/qed/qed_l2.c 			bins[bit / nbits] |= 1 << (bit % nbits);
nbits             127 drivers/net/ethernet/tehuti/tehuti.h #define BITS_MASK(nbits)			((1<<nbits)-1)
nbits             128 drivers/net/ethernet/tehuti/tehuti.h #define GET_BITS_SHIFT(x, nbits, nshift)	(((x)>>nshift)&BITS_MASK(nbits))
nbits             129 drivers/net/ethernet/tehuti/tehuti.h #define BITS_SHIFT_MASK(nbits, nshift)		(BITS_MASK(nbits)<<nshift)
nbits             130 drivers/net/ethernet/tehuti/tehuti.h #define BITS_SHIFT_VAL(x, nbits, nshift)	(((x)&BITS_MASK(nbits))<<nshift)
nbits             131 drivers/net/ethernet/tehuti/tehuti.h #define BITS_SHIFT_CLEAR(x, nbits, nshift)	\
nbits             132 drivers/net/ethernet/tehuti/tehuti.h 	((x)&(~BITS_SHIFT_MASK(nbits, nshift)))
nbits            1072 drivers/net/wireless/ath/ath9k/xmit.c 	u32 nbits, nsymbits, duration, nsymbols;
nbits            1077 drivers/net/wireless/ath/ath9k/xmit.c 	nbits = (pktlen << 3) + OFDM_PLCP_BITS;
nbits            1079 drivers/net/wireless/ath/ath9k/xmit.c 	nsymbols = (nbits + nsymbits - 1) / nsymbits;
nbits            2785 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	u8 nbits = 0;
nbits            2788 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	while ((abs_val >> nbits) > 0)
nbits            2789 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 		nbits++;
nbits            2791 drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/phy_cmn.c 	return nbits;
nbits              44 drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h #define NBITVAL(nbits)	(1 << (nbits))
nbits              45 drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h #define MAXBITVAL(nbits)	((1 << (nbits)) - 1)
nbits              46 drivers/net/wireless/broadcom/brcm80211/include/brcmu_utils.h #define	NBITMASK(nbits)	MAXBITVAL(nbits)
nbits              27 drivers/nvmem/core.c 	int			nbits;
nbits             145 drivers/nvmem/core.c 	cell->nbits = info->nbits;
nbits             147 drivers/nvmem/core.c 	if (cell->nbits)
nbits             148 drivers/nvmem/core.c 		cell->bytes = DIV_ROUND_UP(cell->nbits + cell->bit_offset,
nbits             320 drivers/nvmem/core.c 			cell->nbits = be32_to_cpup(addr);
nbits             323 drivers/nvmem/core.c 		if (cell->nbits)
nbits             325 drivers/nvmem/core.c 					cell->nbits + cell->bit_offset,
nbits             931 drivers/nvmem/core.c 	extra = cell->bytes - DIV_ROUND_UP(cell->nbits, BITS_PER_BYTE);
nbits             936 drivers/nvmem/core.c 	*p &= GENMASK((cell->nbits%BITS_PER_BYTE) - 1, 0);
nbits             951 drivers/nvmem/core.c 	if (cell->bit_offset || cell->nbits)
nbits             997 drivers/nvmem/core.c 	int i, rc, nbits, bit_offset = cell->bit_offset;
nbits            1000 drivers/nvmem/core.c 	nbits = cell->nbits;
nbits            1030 drivers/nvmem/core.c 	if ((nbits + bit_offset) % BITS_PER_BYTE) {
nbits            1036 drivers/nvmem/core.c 		*p |= GENMASK(7, (nbits + bit_offset) % BITS_PER_BYTE) & v;
nbits            1064 drivers/nvmem/core.c 	if (cell->bit_offset || cell->nbits) {
nbits            1073 drivers/nvmem/core.c 	if (cell->bit_offset || cell->nbits)
nbits            2099 drivers/of/base.c 			     unsigned int nbits)
nbits            2105 drivers/of/base.c 	bitmap_zero(bitmap, nbits);
nbits            2122 drivers/of/base.c 			if (app->id >= nbits) {
nbits            2124 drivers/of/base.c 					__func__, app->id, nbits);
nbits              19 drivers/pci/controller/pcie-cadence.c 	int nbits = ilog2(sz);
nbits              22 drivers/pci/controller/pcie-cadence.c 	if (nbits < 8)
nbits              23 drivers/pci/controller/pcie-cadence.c 		nbits = 8;
nbits              26 drivers/pci/controller/pcie-cadence.c 	addr0 = CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS(nbits) |
nbits              77 drivers/pci/controller/pcie-cadence.c 	addr0 = CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS(nbits) |
nbits             113 drivers/pci/controller/pcie-cadence.h #define  CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS(nbits) \
nbits             114 drivers/pci/controller/pcie-cadence.h 	(((nbits) - 1) & CDNS_PCIE_AT_OB_REGION_PCI_ADDR0_NBITS_MASK)
nbits             153 drivers/pci/controller/pcie-cadence.h #define  CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS(nbits) \
nbits             154 drivers/pci/controller/pcie-cadence.h 	(((nbits) - 1) & CDNS_PCIE_AT_OB_REGION_CPU_ADDR0_NBITS_MASK)
nbits             164 drivers/pci/controller/pcie-cadence.h #define  CDNS_PCIE_AT_IB_RP_BAR_ADDR0_NBITS(nbits) \
nbits             165 drivers/pci/controller/pcie-cadence.h 	(((nbits) - 1) & CDNS_PCIE_AT_IB_RP_BAR_ADDR0_NBITS_MASK)
nbits             415 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	unsigned int bit, nbits = 0;
nbits             419 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 		nbits++;
nbits             421 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	if (!nbits)
nbits             428 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	chip->pinconf_disable = devm_kcalloc(chip->dev, nbits,
nbits             434 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	chip->nr_pinconf_disable = nbits;
nbits             437 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 	nbits = 0;
nbits             439 drivers/pinctrl/bcm/pinctrl-iproc-gpio.c 		chip->pinconf_disable[nbits++] = iproc_pinconf_disable_map[bit];
nbits             309 drivers/regulator/da903x.c #define DA903x_LDO(_pmic, _id, min, max, step, vreg, shift, nbits, ereg, ebit)	\
nbits             324 drivers/regulator/da903x.c 	.vol_nbits	= (nbits),					\
nbits             329 drivers/regulator/da903x.c #define DA903x_DVC(_pmic, _id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
nbits             344 drivers/regulator/da903x.c 	.vol_nbits	= (nbits),					\
nbits             351 drivers/regulator/da903x.c #define DA9034_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit)	\
nbits             352 drivers/regulator/da903x.c 	DA903x_LDO(DA9034, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
nbits             354 drivers/regulator/da903x.c #define DA9030_LDO(_id, min, max, step, vreg, shift, nbits, ereg, ebit)	\
nbits             355 drivers/regulator/da903x.c 	DA903x_LDO(DA9030, _id, min, max, step, vreg, shift, nbits, ereg, ebit)
nbits             357 drivers/regulator/da903x.c #define DA9030_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
nbits             358 drivers/regulator/da903x.c 	DA903x_DVC(DA9030, _id, min, max, step, vreg, nbits, ureg, ubit, \
nbits             361 drivers/regulator/da903x.c #define DA9034_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
nbits             362 drivers/regulator/da903x.c 	DA903x_DVC(DA9034, _id, min, max, step, vreg, nbits, ureg, ubit, \
nbits             365 drivers/regulator/da903x.c #define DA9035_DVC(_id, min, max, step, vreg, nbits, ureg, ubit, ereg, ebit) \
nbits             366 drivers/regulator/da903x.c 	DA903x_DVC(DA9035, _id, min, max, step, vreg, nbits, ureg, ubit, \
nbits             109 drivers/regulator/tps6586x-regulator.c #define TPS6586X_REGULATOR(_id, _ops, _pin_name, vdata, vreg, shift, nbits, \
nbits             123 drivers/regulator/tps6586x-regulator.c 		.vsel_mask = ((1 << (nbits)) - 1) << (shift),		\
nbits             133 drivers/regulator/tps6586x-regulator.c 				  uv_step, vreg, shift, nbits, ereg0,	\
nbits             148 drivers/regulator/tps6586x-regulator.c 		.vsel_mask = ((1 << (nbits)) - 1) << (shift),		\
nbits             157 drivers/regulator/tps6586x-regulator.c #define TPS6586X_LDO(_id, _pname, vdata, vreg, shift, nbits,		\
nbits             160 drivers/regulator/tps6586x-regulator.c 	TPS6586X_REGULATOR(_id, rw, _pname, vdata, vreg, shift, nbits,	\
nbits             165 drivers/regulator/tps6586x-regulator.c 			    shift, nbits, ereg0, ebit0, ereg1, ebit1)	\
nbits             168 drivers/regulator/tps6586x-regulator.c 				  min_uv, uv_step, vreg, shift, nbits,	\
nbits             172 drivers/regulator/tps6586x-regulator.c #define TPS6586X_FIXED_LDO(_id, _pname, vdata, vreg, shift, nbits,	\
nbits             175 drivers/regulator/tps6586x-regulator.c 	TPS6586X_REGULATOR(_id, ro, _pname, vdata, vreg, shift, nbits,	\
nbits             180 drivers/regulator/tps6586x-regulator.c 		     nbits, ereg0, ebit0, ereg1, ebit1, goreg, gobit)	\
nbits             183 drivers/regulator/tps6586x-regulator.c 				  min_uv, uv_step, vreg, shift, nbits,	\
nbits             511 drivers/s390/crypto/vfio_ap_ops.c 	unsigned long nbits = matrix_mdev->matrix.aqm_max + 1;
nbits             513 drivers/s390/crypto/vfio_ap_ops.c 	if (find_first_bit_inv(matrix_mdev->matrix.aqm, nbits) >= nbits)
nbits             516 drivers/s390/crypto/vfio_ap_ops.c 	for_each_set_bit_inv(apqi, matrix_mdev->matrix.aqm, nbits) {
nbits             699 drivers/s390/crypto/vfio_ap_ops.c 	unsigned long nbits = matrix_mdev->matrix.apm_max + 1;
nbits             701 drivers/s390/crypto/vfio_ap_ops.c 	if (find_first_bit_inv(matrix_mdev->matrix.apm, nbits) >= nbits)
nbits             704 drivers/s390/crypto/vfio_ap_ops.c 	for_each_set_bit_inv(apid, matrix_mdev->matrix.apm, nbits) {
nbits             599 drivers/spi/spi-armada-3700.c 	unsigned int nbits = 0, byte_len;
nbits             610 drivers/spi/spi-armada-3700.c 		nbits = xfer->tx_nbits;
nbits             612 drivers/spi/spi-armada-3700.c 		nbits = xfer->rx_nbits;
nbits             614 drivers/spi/spi-armada-3700.c 	a3700_spi_pin_mode_set(a3700_spi, nbits, xfer->rx_buf ? true : false);
nbits             537 drivers/spi/spi-loopback-test.c 		unsigned long long nbits = (unsigned long long)BITS_PER_BYTE *
nbits             543 drivers/spi/spi-loopback-test.c 		estimated_time += div_u64(nbits * NSEC_PER_SEC, xfer->speed_hz);
nbits             267 drivers/spi/spi-pic32-sqi.c 	u32 nbits;
nbits             275 drivers/spi/spi-pic32-sqi.c 		nbits = xfer->rx_nbits;
nbits             279 drivers/spi/spi-pic32-sqi.c 		nbits = xfer->tx_nbits;
nbits             284 drivers/spi/spi-pic32-sqi.c 	if (nbits & SPI_NBITS_QUAD)
nbits             286 drivers/spi/spi-pic32-sqi.c 	else if (nbits & SPI_NBITS_DUAL)
nbits              90 drivers/staging/isdn/gigaset/isocdata.c static inline void isowbuf_putbits(struct isowbuf_t *iwb, u32 data, int nbits)
nbits              95 drivers/staging/isdn/gigaset/isocdata.c 	nbits += iwb->wbits;
nbits              96 drivers/staging/isdn/gigaset/isocdata.c 	while (nbits >= 8) {
nbits             100 drivers/staging/isdn/gigaset/isocdata.c 		nbits -= 8;
nbits             102 drivers/staging/isdn/gigaset/isocdata.c 	iwb->wbits = nbits;
nbits              89 fs/btrfs/extent_io.h #define BITMAP_LAST_BYTE_MASK(nbits) \
nbits              90 fs/btrfs/extent_io.h 	(BYTE_MASK >> (-(nbits) & (BITS_PER_BYTE - 1)))
nbits            2704 fs/btrfs/scrub.c 	int nbits;
nbits            2706 fs/btrfs/scrub.c 	nbits = bitmap_weight(sparity->ebitmap, sparity->nsectors);
nbits            2707 fs/btrfs/scrub.c 	if (nbits) {
nbits            2709 fs/btrfs/scrub.c 		sctx->stat.read_errors += nbits;
nbits            2710 fs/btrfs/scrub.c 		sctx->stat.uncorrectable_errors += nbits;
nbits             415 fs/jfs/jfs_dmap.c 	int word, nbits, nwords;
nbits             476 fs/jfs/jfs_dmap.c 		     rbits -= nbits, dbitno += nbits) {
nbits             481 fs/jfs/jfs_dmap.c 			nbits = min(rbits, DBWORD - wbitno);
nbits             484 fs/jfs/jfs_dmap.c 			if (nbits < DBWORD) {
nbits             489 fs/jfs/jfs_dmap.c 				    (ONES << (DBWORD - nbits) >> wbitno);
nbits             504 fs/jfs/jfs_dmap.c 				nbits = nwords << L2DBWORD;
nbits              13 fs/omfs/bitmap.c 	int nbits = sb->s_blocksize * 8;
nbits              16 fs/omfs/bitmap.c 		sum += nbits - bitmap_weight(sbi->s_imap[i], nbits);
nbits              26 fs/omfs/bitmap.c static int count_run(unsigned long **addr, int nbits,
nbits              33 fs/omfs/bitmap.c 		x = find_next_bit(*addr, nbits, bit);
nbits              36 fs/omfs/bitmap.c 		if (x < nbits || count > max)
nbits              49 fs/omfs/bitmap.c 		int nbits, int bit, int count, int set)
nbits              62 fs/omfs/bitmap.c 		if (bit >= nbits) {
nbits             806 fs/xfs/libxfs/xfs_btree.c 	int		nbits,		/* number of bits to inspect */
nbits             826 fs/xfs/libxfs/xfs_btree.c 	for (i = nbits - 1, imask = 1LL << i; ; i--, imask >>= 1) {
nbits            1543 fs/xfs/libxfs/xfs_btree.c 		int nbits;
nbits            1555 fs/xfs/libxfs/xfs_btree.c 			nbits = XFS_BB_NUM_BITS_CRC;
nbits            1557 fs/xfs/libxfs/xfs_btree.c 			nbits = XFS_BB_NUM_BITS;
nbits            1562 fs/xfs/libxfs/xfs_btree.c 				  nbits, &first, &last);
nbits             333 fs/xfs/libxfs/xfs_btree.h 	int			nbits,	/* number of bits to inspect */
nbits             179 fs/xfs/xfs_buf_item.c 	uint			nbits)
nbits             184 fs/xfs/xfs_buf_item.c 			nbits * XFS_BLF_CHUNK);
nbits             212 fs/xfs/xfs_buf_item.c 	uint			nbits;
nbits             252 fs/xfs/xfs_buf_item.c 	nbits = 1;
nbits             271 fs/xfs/xfs_buf_item.c 						first_bit, nbits);
nbits             277 fs/xfs/xfs_buf_item.c 						first_bit, nbits);
nbits             281 fs/xfs/xfs_buf_item.c 			nbits = 1;
nbits             284 fs/xfs/xfs_buf_item.c 			nbits++;
nbits            2070 fs/xfs/xfs_log_recover.c 	int			nbits = 0;
nbits            2100 fs/xfs/xfs_log_recover.c 			bit += nbits;
nbits            2111 fs/xfs/xfs_log_recover.c 			nbits = xfs_contig_bits(buf_f->blf_data_map,
nbits            2113 fs/xfs/xfs_log_recover.c 			ASSERT(nbits > 0);
nbits            2115 fs/xfs/xfs_log_recover.c 			reg_buf_bytes = nbits << XFS_BLF_SHIFT;
nbits            2577 fs/xfs/xfs_log_recover.c 	int			nbits;
nbits            2589 fs/xfs/xfs_log_recover.c 		nbits = xfs_contig_bits(buf_f->blf_data_map,
nbits            2591 fs/xfs/xfs_log_recover.c 		ASSERT(nbits > 0);
nbits            2595 fs/xfs/xfs_log_recover.c 		       ((uint)bit << XFS_BLF_SHIFT) + (nbits << XFS_BLF_SHIFT));
nbits            2605 fs/xfs/xfs_log_recover.c 		if (item->ri_buf[i].i_len < (nbits << XFS_BLF_SHIFT))
nbits            2606 fs/xfs/xfs_log_recover.c 			nbits = item->ri_buf[i].i_len >> XFS_BLF_SHIFT;
nbits            2640 fs/xfs/xfs_log_recover.c 			nbits<<XFS_BLF_SHIFT);		/* length */
nbits            2643 fs/xfs/xfs_log_recover.c 		bit += nbits;
nbits             111 include/linux/bitmap.h extern unsigned long *bitmap_alloc(unsigned int nbits, gfp_t flags);
nbits             112 include/linux/bitmap.h extern unsigned long *bitmap_zalloc(unsigned int nbits, gfp_t flags);
nbits             119 include/linux/bitmap.h extern int __bitmap_empty(const unsigned long *bitmap, unsigned int nbits);
nbits             120 include/linux/bitmap.h extern int __bitmap_full(const unsigned long *bitmap, unsigned int nbits);
nbits             122 include/linux/bitmap.h 			  const unsigned long *bitmap2, unsigned int nbits);
nbits             126 include/linux/bitmap.h 				     unsigned int nbits);
nbits             128 include/linux/bitmap.h 			unsigned int nbits);
nbits             130 include/linux/bitmap.h 				unsigned int shift, unsigned int nbits);
nbits             132 include/linux/bitmap.h 				unsigned int shift, unsigned int nbits);
nbits             134 include/linux/bitmap.h 			const unsigned long *bitmap2, unsigned int nbits);
nbits             136 include/linux/bitmap.h 			const unsigned long *bitmap2, unsigned int nbits);
nbits             138 include/linux/bitmap.h 			const unsigned long *bitmap2, unsigned int nbits);
nbits             140 include/linux/bitmap.h 			const unsigned long *bitmap2, unsigned int nbits);
nbits             142 include/linux/bitmap.h 			const unsigned long *bitmap2, unsigned int nbits);
nbits             144 include/linux/bitmap.h 			const unsigned long *bitmap2, unsigned int nbits);
nbits             145 include/linux/bitmap.h extern int __bitmap_weight(const unsigned long *bitmap, unsigned int nbits);
nbits             180 include/linux/bitmap.h 			unsigned long *dst, int nbits);
nbits             182 include/linux/bitmap.h 			unsigned long *dst, int nbits);
nbits             186 include/linux/bitmap.h 			unsigned long *dst, int nbits);
nbits             188 include/linux/bitmap.h 		const unsigned long *old, const unsigned long *new, unsigned int nbits);
nbits             194 include/linux/bitmap.h 		unsigned int sz, unsigned int nbits);
nbits             200 include/linux/bitmap.h extern void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits);
nbits             204 include/linux/bitmap.h extern unsigned int bitmap_ord_to_pos(const unsigned long *bitmap, unsigned int ord, unsigned int nbits);
nbits             209 include/linux/bitmap.h #define BITMAP_LAST_WORD_MASK(nbits) (~0UL >> (-(nbits) & (BITS_PER_LONG - 1)))
nbits             216 include/linux/bitmap.h #define small_const_nbits(nbits) \
nbits             217 include/linux/bitmap.h 	(__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG && (nbits) > 0)
nbits             219 include/linux/bitmap.h static inline void bitmap_zero(unsigned long *dst, unsigned int nbits)
nbits             221 include/linux/bitmap.h 	unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
nbits             225 include/linux/bitmap.h static inline void bitmap_fill(unsigned long *dst, unsigned int nbits)
nbits             227 include/linux/bitmap.h 	unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
nbits             232 include/linux/bitmap.h 			unsigned int nbits)
nbits             234 include/linux/bitmap.h 	unsigned int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
nbits             242 include/linux/bitmap.h 		const unsigned long *src, unsigned int nbits)
nbits             244 include/linux/bitmap.h 	bitmap_copy(dst, src, nbits);
nbits             245 include/linux/bitmap.h 	if (nbits % BITS_PER_LONG)
nbits             246 include/linux/bitmap.h 		dst[nbits / BITS_PER_LONG] &= BITMAP_LAST_WORD_MASK(nbits);
nbits             255 include/linux/bitmap.h 							unsigned int nbits);
nbits             257 include/linux/bitmap.h 							unsigned int nbits);
nbits             259 include/linux/bitmap.h #define bitmap_from_arr32(bitmap, buf, nbits)			\
nbits             261 include/linux/bitmap.h 			(const unsigned long *) (buf), (nbits))
nbits             262 include/linux/bitmap.h #define bitmap_to_arr32(buf, bitmap, nbits)			\
nbits             264 include/linux/bitmap.h 			(const unsigned long *) (bitmap), (nbits))
nbits             268 include/linux/bitmap.h 			const unsigned long *src2, unsigned int nbits)
nbits             270 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             271 include/linux/bitmap.h 		return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0;
nbits             272 include/linux/bitmap.h 	return __bitmap_and(dst, src1, src2, nbits);
nbits             276 include/linux/bitmap.h 			const unsigned long *src2, unsigned int nbits)
nbits             278 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             281 include/linux/bitmap.h 		__bitmap_or(dst, src1, src2, nbits);
nbits             285 include/linux/bitmap.h 			const unsigned long *src2, unsigned int nbits)
nbits             287 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             290 include/linux/bitmap.h 		__bitmap_xor(dst, src1, src2, nbits);
nbits             294 include/linux/bitmap.h 			const unsigned long *src2, unsigned int nbits)
nbits             296 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             297 include/linux/bitmap.h 		return (*dst = *src1 & ~(*src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
nbits             298 include/linux/bitmap.h 	return __bitmap_andnot(dst, src1, src2, nbits);
nbits             302 include/linux/bitmap.h 			unsigned int nbits)
nbits             304 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             307 include/linux/bitmap.h 		__bitmap_complement(dst, src, nbits);
nbits             318 include/linux/bitmap.h 			const unsigned long *src2, unsigned int nbits)
nbits             320 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             321 include/linux/bitmap.h 		return !((*src1 ^ *src2) & BITMAP_LAST_WORD_MASK(nbits));
nbits             322 include/linux/bitmap.h 	if (__builtin_constant_p(nbits & BITMAP_MEM_MASK) &&
nbits             323 include/linux/bitmap.h 	    IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT))
nbits             324 include/linux/bitmap.h 		return !memcmp(src1, src2, nbits / 8);
nbits             325 include/linux/bitmap.h 	return __bitmap_equal(src1, src2, nbits);
nbits             340 include/linux/bitmap.h 				   unsigned int nbits)
nbits             342 include/linux/bitmap.h 	if (!small_const_nbits(nbits))
nbits             343 include/linux/bitmap.h 		return __bitmap_or_equal(src1, src2, src3, nbits);
nbits             345 include/linux/bitmap.h 	return !(((*src1 | *src2) ^ *src3) & BITMAP_LAST_WORD_MASK(nbits));
nbits             349 include/linux/bitmap.h 			const unsigned long *src2, unsigned int nbits)
nbits             351 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             352 include/linux/bitmap.h 		return ((*src1 & *src2) & BITMAP_LAST_WORD_MASK(nbits)) != 0;
nbits             354 include/linux/bitmap.h 		return __bitmap_intersects(src1, src2, nbits);
nbits             358 include/linux/bitmap.h 			const unsigned long *src2, unsigned int nbits)
nbits             360 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             361 include/linux/bitmap.h 		return ! ((*src1 & ~(*src2)) & BITMAP_LAST_WORD_MASK(nbits));
nbits             363 include/linux/bitmap.h 		return __bitmap_subset(src1, src2, nbits);
nbits             366 include/linux/bitmap.h static inline int bitmap_empty(const unsigned long *src, unsigned nbits)
nbits             368 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             369 include/linux/bitmap.h 		return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
nbits             371 include/linux/bitmap.h 	return find_first_bit(src, nbits) == nbits;
nbits             374 include/linux/bitmap.h static inline int bitmap_full(const unsigned long *src, unsigned int nbits)
nbits             376 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             377 include/linux/bitmap.h 		return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits));
nbits             379 include/linux/bitmap.h 	return find_first_zero_bit(src, nbits) == nbits;
nbits             382 include/linux/bitmap.h static __always_inline int bitmap_weight(const unsigned long *src, unsigned int nbits)
nbits             384 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             385 include/linux/bitmap.h 		return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
nbits             386 include/linux/bitmap.h 	return __bitmap_weight(src, nbits);
nbits             390 include/linux/bitmap.h 		unsigned int nbits)
nbits             392 include/linux/bitmap.h 	if (__builtin_constant_p(nbits) && nbits == 1)
nbits             396 include/linux/bitmap.h 		 __builtin_constant_p(nbits & BITMAP_MEM_MASK) &&
nbits             397 include/linux/bitmap.h 		 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT))
nbits             398 include/linux/bitmap.h 		memset((char *)map + start / 8, 0xff, nbits / 8);
nbits             400 include/linux/bitmap.h 		__bitmap_set(map, start, nbits);
nbits             404 include/linux/bitmap.h 		unsigned int nbits)
nbits             406 include/linux/bitmap.h 	if (__builtin_constant_p(nbits) && nbits == 1)
nbits             410 include/linux/bitmap.h 		 __builtin_constant_p(nbits & BITMAP_MEM_MASK) &&
nbits             411 include/linux/bitmap.h 		 IS_ALIGNED(nbits, BITMAP_MEM_ALIGNMENT))
nbits             412 include/linux/bitmap.h 		memset((char *)map + start / 8, 0, nbits / 8);
nbits             414 include/linux/bitmap.h 		__bitmap_clear(map, start, nbits);
nbits             418 include/linux/bitmap.h 				unsigned int shift, unsigned int nbits)
nbits             420 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             421 include/linux/bitmap.h 		*dst = (*src & BITMAP_LAST_WORD_MASK(nbits)) >> shift;
nbits             423 include/linux/bitmap.h 		__bitmap_shift_right(dst, src, shift, nbits);
nbits             427 include/linux/bitmap.h 				unsigned int shift, unsigned int nbits)
nbits             429 include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             430 include/linux/bitmap.h 		*dst = (*src << shift) & BITMAP_LAST_WORD_MASK(nbits);
nbits             432 include/linux/bitmap.h 		__bitmap_shift_left(dst, src, shift, nbits);
nbits              32 include/linux/mpi.h 	int nbits;		/* the real number of valid bits (info only) */
nbits             140 include/linux/nodemask.h static inline void __nodes_setall(nodemask_t *dstp, unsigned int nbits)
nbits             142 include/linux/nodemask.h 	bitmap_fill(dstp->bits, nbits);
nbits             146 include/linux/nodemask.h static inline void __nodes_clear(nodemask_t *dstp, unsigned int nbits)
nbits             148 include/linux/nodemask.h 	bitmap_zero(dstp->bits, nbits);
nbits             164 include/linux/nodemask.h 					const nodemask_t *src2p, unsigned int nbits)
nbits             166 include/linux/nodemask.h 	bitmap_and(dstp->bits, src1p->bits, src2p->bits, nbits);
nbits             172 include/linux/nodemask.h 					const nodemask_t *src2p, unsigned int nbits)
nbits             174 include/linux/nodemask.h 	bitmap_or(dstp->bits, src1p->bits, src2p->bits, nbits);
nbits             180 include/linux/nodemask.h 					const nodemask_t *src2p, unsigned int nbits)
nbits             182 include/linux/nodemask.h 	bitmap_xor(dstp->bits, src1p->bits, src2p->bits, nbits);
nbits             188 include/linux/nodemask.h 					const nodemask_t *src2p, unsigned int nbits)
nbits             190 include/linux/nodemask.h 	bitmap_andnot(dstp->bits, src1p->bits, src2p->bits, nbits);
nbits             196 include/linux/nodemask.h 					const nodemask_t *srcp, unsigned int nbits)
nbits             198 include/linux/nodemask.h 	bitmap_complement(dstp->bits, srcp->bits, nbits);
nbits             204 include/linux/nodemask.h 					const nodemask_t *src2p, unsigned int nbits)
nbits             206 include/linux/nodemask.h 	return bitmap_equal(src1p->bits, src2p->bits, nbits);
nbits             212 include/linux/nodemask.h 					const nodemask_t *src2p, unsigned int nbits)
nbits             214 include/linux/nodemask.h 	return bitmap_intersects(src1p->bits, src2p->bits, nbits);
nbits             220 include/linux/nodemask.h 					const nodemask_t *src2p, unsigned int nbits)
nbits             222 include/linux/nodemask.h 	return bitmap_subset(src1p->bits, src2p->bits, nbits);
nbits             226 include/linux/nodemask.h static inline int __nodes_empty(const nodemask_t *srcp, unsigned int nbits)
nbits             228 include/linux/nodemask.h 	return bitmap_empty(srcp->bits, nbits);
nbits             232 include/linux/nodemask.h static inline int __nodes_full(const nodemask_t *srcp, unsigned int nbits)
nbits             234 include/linux/nodemask.h 	return bitmap_full(srcp->bits, nbits);
nbits             238 include/linux/nodemask.h static inline int __nodes_weight(const nodemask_t *srcp, unsigned int nbits)
nbits             240 include/linux/nodemask.h 	return bitmap_weight(srcp->bits, nbits);
nbits             246 include/linux/nodemask.h 					const nodemask_t *srcp, int n, int nbits)
nbits             248 include/linux/nodemask.h 	bitmap_shift_right(dstp->bits, srcp->bits, n, nbits);
nbits             254 include/linux/nodemask.h 					const nodemask_t *srcp, int n, int nbits)
nbits             256 include/linux/nodemask.h 	bitmap_shift_left(dstp->bits, srcp->bits, n, nbits);
nbits             334 include/linux/nodemask.h 					nodemask_t *dstp, int nbits)
nbits             336 include/linux/nodemask.h 	return bitmap_parse_user(buf, len, dstp->bits, nbits);
nbits             340 include/linux/nodemask.h static inline int __nodelist_parse(const char *buf, nodemask_t *dstp, int nbits)
nbits             342 include/linux/nodemask.h 	return bitmap_parselist(buf, dstp->bits, nbits);
nbits             348 include/linux/nodemask.h 		const nodemask_t *oldp, const nodemask_t *newp, int nbits)
nbits             350 include/linux/nodemask.h 	return bitmap_bitremap(oldbit, oldp->bits, newp->bits, nbits);
nbits             356 include/linux/nodemask.h 		const nodemask_t *oldp, const nodemask_t *newp, int nbits)
nbits             358 include/linux/nodemask.h 	bitmap_remap(dstp->bits, srcp->bits, oldp->bits, newp->bits, nbits);
nbits             364 include/linux/nodemask.h 		const nodemask_t *relmapp, int nbits)
nbits             366 include/linux/nodemask.h 	bitmap_onto(dstp->bits, origp->bits, relmapp->bits, nbits);
nbits             372 include/linux/nodemask.h 		int sz, int nbits)
nbits             374 include/linux/nodemask.h 	bitmap_fold(dstp->bits, origp->bits, sz, nbits);
nbits              27 include/linux/nvmem-consumer.h 	unsigned int		nbits;
nbits             396 include/linux/of.h 				   unsigned int nbits);
nbits             909 include/linux/of.h 					  unsigned int nbits)
nbits             334 include/sound/soc.h 		{.regbase = xregbase, .regcount = xregcount, .nbits = xnbits, \
nbits            1195 include/sound/soc.h 	unsigned int regbase, regcount, nbits, invert;
nbits            3127 kernel/rcu/tree.c 	int nbits;
nbits            3145 kernel/rcu/tree.c 	nbits = bitmap_weight(&oldmask, BITS_PER_LONG);
nbits            3147 kernel/rcu/tree.c 	smp_store_release(&rcu_state.ncpus, rcu_state.ncpus + nbits); /* ^^^ */
nbits            1001 lib/bch.c      	unsigned int nbits;
nbits            1044 lib/bch.c      		nbits = (len*8)+bch->ecc_bits;
nbits            1046 lib/bch.c      			if (errloc[i] >= nbits) {
nbits            1050 lib/bch.c      			errloc[i] = nbits-1-errloc[i];
nbits            1179 lib/bch.c      	unsigned int i, j, nbits, r, word, *roots;
nbits            1221 lib/bch.c      		nbits = (n > 32) ? 32 : n;
nbits            1222 lib/bch.c      		for (j = 0, word = 0; j < nbits; j++) {
nbits            1227 lib/bch.c      		n -= nbits;
nbits             102 lib/bitmap.c   			unsigned shift, unsigned nbits)
nbits             104 lib/bitmap.c   	unsigned k, lim = BITS_TO_LONGS(nbits);
nbits             106 lib/bitmap.c   	unsigned long mask = BITMAP_LAST_WORD_MASK(nbits);
nbits             147 lib/bitmap.c   			unsigned int shift, unsigned int nbits)
nbits             150 lib/bitmap.c   	unsigned int lim = BITS_TO_LONGS(nbits);
nbits             380 lib/bitmap.c   	int c, old_c, totaldigits, ndigits, nchunks, nbits;
nbits             386 lib/bitmap.c   	nchunks = nbits = totaldigits = c = 0;
nbits             438 lib/bitmap.c   		nbits += (nchunks == 1) ? nbits_to_hold_value(chunk) : CHUNKSZ;
nbits             439 lib/bitmap.c   		if (nbits > nmaskbits)
nbits             515 lib/bitmap.c   				unsigned long *bitmap, int nbits)
nbits             519 lib/bitmap.c   	if (r->end >= nbits)
nbits             721 lib/bitmap.c   static int bitmap_pos_to_ord(const unsigned long *buf, unsigned int pos, unsigned int nbits)
nbits             723 lib/bitmap.c   	if (pos >= nbits || !test_bit(pos, buf))
nbits             747 lib/bitmap.c   unsigned int bitmap_ord_to_pos(const unsigned long *buf, unsigned int ord, unsigned int nbits)
nbits             751 lib/bitmap.c   	for (pos = find_first_bit(buf, nbits);
nbits             752 lib/bitmap.c   	     pos < nbits && ord;
nbits             753 lib/bitmap.c   	     pos = find_next_bit(buf, nbits, pos + 1))
nbits             793 lib/bitmap.c   		unsigned int nbits)
nbits             799 lib/bitmap.c   	bitmap_zero(dst, nbits);
nbits             801 lib/bitmap.c   	w = bitmap_weight(new, nbits);
nbits             802 lib/bitmap.c   	for_each_set_bit(oldbit, src, nbits) {
nbits             803 lib/bitmap.c   		int n = bitmap_pos_to_ord(old, oldbit, nbits);
nbits             808 lib/bitmap.c   			set_bit(bitmap_ord_to_pos(new, n % w, nbits), dst);
nbits             995 lib/bitmap.c   			unsigned int sz, unsigned int nbits)
nbits            1001 lib/bitmap.c   	bitmap_zero(dst, nbits);
nbits            1003 lib/bitmap.c   	for_each_set_bit(oldbit, orig, nbits)
nbits            1157 lib/bitmap.c   void bitmap_copy_le(unsigned long *dst, const unsigned long *src, unsigned int nbits)
nbits            1161 lib/bitmap.c   	for (i = 0; i < nbits/BITS_PER_LONG; i++) {
nbits            1171 lib/bitmap.c   unsigned long *bitmap_alloc(unsigned int nbits, gfp_t flags)
nbits            1173 lib/bitmap.c   	return kmalloc_array(BITS_TO_LONGS(nbits), sizeof(unsigned long),
nbits            1178 lib/bitmap.c   unsigned long *bitmap_zalloc(unsigned int nbits, gfp_t flags)
nbits            1180 lib/bitmap.c   	return bitmap_alloc(nbits, flags | __GFP_ZERO);
nbits            1197 lib/bitmap.c   void bitmap_from_arr32(unsigned long *bitmap, const u32 *buf, unsigned int nbits)
nbits            1201 lib/bitmap.c   	halfwords = DIV_ROUND_UP(nbits, 32);
nbits            1209 lib/bitmap.c   	if (nbits % BITS_PER_LONG)
nbits            1210 lib/bitmap.c   		bitmap[(halfwords - 1) / 2] &= BITMAP_LAST_WORD_MASK(nbits);
nbits            1220 lib/bitmap.c   void bitmap_to_arr32(u32 *buf, const unsigned long *bitmap, unsigned int nbits)
nbits            1224 lib/bitmap.c   	halfwords = DIV_ROUND_UP(nbits, 32);
nbits            1232 lib/bitmap.c   	if (nbits % BITS_PER_LONG)
nbits            1233 lib/bitmap.c   		buf[halfwords - 1] &= (u32) (UINT_MAX >> ((-nbits) & 31));
nbits              31 lib/find_bit.c 		const unsigned long *addr2, unsigned long nbits,
nbits              36 lib/find_bit.c 	if (unlikely(start >= nbits))
nbits              37 lib/find_bit.c 		return nbits;
nbits              50 lib/find_bit.c 		if (start >= nbits)
nbits              51 lib/find_bit.c 			return nbits;
nbits              59 lib/find_bit.c 	return min(start + __ffs(tmp), nbits);
nbits             154 lib/find_bit.c 		const unsigned long *addr2, unsigned long nbits,
nbits             159 lib/find_bit.c 	if (unlikely(start >= nbits))
nbits             160 lib/find_bit.c 		return nbits;
nbits             173 lib/find_bit.c 		if (start >= nbits)
nbits             174 lib/find_bit.c 			return nbits;
nbits             182 lib/find_bit.c 	return min(start + __ffs(swab(tmp)), nbits);
nbits             116 lib/find_bit_benchmark.c 	unsigned long nbits = BITMAP_LEN / SPARSE;
nbits             139 lib/find_bit_benchmark.c 	while (nbits--) {
nbits             186 lib/genalloc.c 	int nbits = size >> pool->min_alloc_order;
nbits             188 lib/genalloc.c 				BITS_TO_LONGS(nbits) * sizeof(long);
nbits             281 lib/genalloc.c 	int nbits, start_bit, end_bit, remain;
nbits             293 lib/genalloc.c 	nbits = (size + (1UL << order) - 1) >> order;
nbits             303 lib/genalloc.c 				 nbits, data, pool, chunk->start_addr);
nbits             306 lib/genalloc.c 		remain = bitmap_set_ll(chunk->bits, start_bit, nbits);
nbits             309 lib/genalloc.c 						 nbits - remain);
nbits             315 lib/genalloc.c 		size = nbits << order;
nbits             490 lib/genalloc.c 	int start_bit, nbits, remain;
nbits             499 lib/genalloc.c 	nbits = (size + (1UL << order) - 1) >> order;
nbits             505 lib/genalloc.c 			remain = bitmap_clear_ll(chunk->bits, start_bit, nbits);
nbits             507 lib/genalloc.c 			size = nbits << order;
nbits               9 lib/math/prime_numbers.c #define bitmap_size(nbits) (BITS_TO_LONGS(nbits) * sizeof(unsigned long))
nbits              39 lib/mpi/mpicoder.c 	unsigned nbits, nlimbs;
nbits              48 lib/mpi/mpicoder.c 	nbits = nbytes * 8;
nbits              49 lib/mpi/mpicoder.c 	if (nbits > MAX_EXTERN_MPI_BITS) {
nbits              50 lib/mpi/mpicoder.c 		pr_info("MPI: mpi too large (%u bits)\n", nbits);
nbits              54 lib/mpi/mpicoder.c 		nbits -= count_leading_zeros(buffer[0]) - (BITS_PER_LONG - 8);
nbits              60 lib/mpi/mpicoder.c 	val->nbits = nbits;
nbits              84 lib/mpi/mpicoder.c 	unsigned int nbits, nbytes;
nbits              89 lib/mpi/mpicoder.c 	nbits = buffer[0] << 8 | buffer[1];
nbits              91 lib/mpi/mpicoder.c 	if (nbits > MAX_EXTERN_MPI_BITS) {
nbits              92 lib/mpi/mpicoder.c 		pr_info("MPI: mpi too large (%u bits)\n", nbits);
nbits              96 lib/mpi/mpicoder.c 	nbytes = DIV_ROUND_UP(nbits, 8);
nbits             333 lib/mpi/mpicoder.c 	unsigned int nbits, nlimbs;
nbits             369 lib/mpi/mpicoder.c 	nbits = nbytes * 8;
nbits             370 lib/mpi/mpicoder.c 	if (nbits > MAX_EXTERN_MPI_BITS) {
nbits             372 lib/mpi/mpicoder.c 		pr_info("MPI: mpi too large (%u bits)\n", nbits);
nbits             377 lib/mpi/mpicoder.c 		nbits -= count_leading_zeros(*buff) - (BITS_PER_LONG - 8);
nbits             386 lib/mpi/mpicoder.c 	val->nbits = nbits;
nbits              52 lib/mpi/mpiutil.c 	a->nbits = 0;
nbits              41 lib/test_bitmap.c 		  unsigned int nbits)
nbits              43 lib/test_bitmap.c 	if (!bitmap_equal(exp_bmap, bmap, nbits)) {
nbits              46 lib/test_bitmap.c 			nbits, exp_bmap, nbits, bmap);
nbits              55 lib/test_bitmap.c 	       const unsigned long *bitmap, unsigned int nbits)
nbits              57 lib/test_bitmap.c 	snprintf(pbl_buffer, sizeof(pbl_buffer), "%*pbl", nbits, bitmap);
nbits             215 lib/test_bitmap.c 	const int nbits;
nbits             303 lib/test_bitmap.c 						    bmap, ptest.nbits);
nbits             308 lib/test_bitmap.c 			err = bitmap_parselist(ptest.in, bmap, ptest.nbits);
nbits             319 lib/test_bitmap.c 			 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) {
nbits             346 lib/test_bitmap.c 	unsigned int nbits, next_bit;
nbits             352 lib/test_bitmap.c 	for (nbits = 0; nbits < EXP_BYTES; ++nbits) {
nbits             353 lib/test_bitmap.c 		bitmap_to_arr32(arr, exp, nbits);
nbits             354 lib/test_bitmap.c 		bitmap_from_arr32(bmap2, arr, nbits);
nbits             355 lib/test_bitmap.c 		expect_eq_bitmap(bmap2, exp, nbits);
nbits             358 lib/test_bitmap.c 				round_up(nbits, BITS_PER_LONG), nbits);
nbits             359 lib/test_bitmap.c 		if (next_bit < round_up(nbits, BITS_PER_LONG))
nbits             362 lib/test_bitmap.c 				nbits, next_bit);
nbits             364 lib/test_bitmap.c 		if (nbits < EXP_BYTES - 32)
nbits             365 lib/test_bitmap.c 			expect_eq_uint(arr[DIV_ROUND_UP(nbits, 32)],
nbits             374 lib/test_bitmap.c 	unsigned int start, nbits;
nbits             377 lib/test_bitmap.c 		for (nbits = 0; nbits < 1024 - start; nbits += 8) {
nbits             381 lib/test_bitmap.c 			bitmap_set(bmap1, start, nbits);
nbits             382 lib/test_bitmap.c 			__bitmap_set(bmap2, start, nbits);
nbits             384 lib/test_bitmap.c 				printk("set not equal %d %d\n", start, nbits);
nbits             388 lib/test_bitmap.c 				printk("set not __equal %d %d\n", start, nbits);
nbits             392 lib/test_bitmap.c 			bitmap_clear(bmap1, start, nbits);
nbits             393 lib/test_bitmap.c 			__bitmap_clear(bmap2, start, nbits);
nbits             395 lib/test_bitmap.c 				printk("clear not equal %d %d\n", start, nbits);
nbits             400 lib/test_bitmap.c 									nbits);
nbits             524 lib/test_printf.c 	const int nbits = 1 << 16;
nbits             525 lib/test_printf.c 	unsigned long *bits = bitmap_zalloc(nbits, GFP_KERNEL);
nbits             531 lib/test_printf.c 	test("1-20,60000-60014", "%*pbl", nbits, bits);
nbits             384 mm/cma.c       	unsigned long nbits = cma_bitmap_maxno(cma);
nbits             389 mm/cma.c       		next_zero_bit = find_next_zero_bit(cma->bitmap, nbits, start);
nbits             390 mm/cma.c       		if (next_zero_bit >= nbits)
nbits             392 mm/cma.c       		next_set_bit = find_next_bit(cma->bitmap, nbits, next_zero_bit);
nbits              62 net/sunrpc/auth.c 	unsigned int nbits;
nbits              70 net/sunrpc/auth.c 	nbits = fls(num - 1);
nbits              71 net/sunrpc/auth.c 	if (nbits > MAX_HASHTABLE_BITS || nbits < 2)
nbits              73 net/sunrpc/auth.c 	*(unsigned int *)kp->arg = nbits;
nbits              81 net/sunrpc/auth.c 	unsigned int nbits;
nbits              83 net/sunrpc/auth.c 	nbits = *(unsigned int *)kp->arg;
nbits              84 net/sunrpc/auth.c 	return sprintf(buffer, "%u", 1U << nbits);
nbits              31 sound/mips/ad1843.c 	char nbits;
nbits             178 sound/mips/ad1843.c 	return w >> field->lo_bit & ((1 << field->nbits) - 1);
nbits             192 sound/mips/ad1843.c 	mask = ((1 << field->nbits) - 1) << field->lo_bit;
nbits             229 sound/mips/ad1843.c 		mask = (1 << fp->nbits) - 1;
nbits             266 sound/mips/ad1843.c 		m = ((1 << fp->nbits) - 1) << fp->lo_bit;
nbits             285 sound/mips/ad1843.c 	ret = (1 << gp->lfield->nbits);
nbits             300 sound/mips/ad1843.c 	unsigned short mask = (1 << gp->lfield->nbits) - 1;
nbits             326 sound/mips/ad1843.c 	unsigned short mask = (1 << gp->lfield->nbits) - 1;
nbits             837 sound/soc/soc-ops.c 	unsigned long mask = (1UL<<mc->nbits)-1;
nbits             886 sound/soc/soc-ops.c 	unsigned long mask = (1UL<<mc->nbits)-1;
nbits              22 tools/include/linux/bitmap.h #define BITMAP_LAST_WORD_MASK(nbits)					\
nbits              24 tools/include/linux/bitmap.h 	((nbits) % BITS_PER_LONG) ?					\
nbits              25 tools/include/linux/bitmap.h 		(1UL<<((nbits) % BITS_PER_LONG))-1 : ~0UL		\
nbits              28 tools/include/linux/bitmap.h #define small_const_nbits(nbits) \
nbits              29 tools/include/linux/bitmap.h 	(__builtin_constant_p(nbits) && (nbits) <= BITS_PER_LONG)
nbits              31 tools/include/linux/bitmap.h static inline void bitmap_zero(unsigned long *dst, int nbits)
nbits              33 tools/include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits              36 tools/include/linux/bitmap.h 		int len = BITS_TO_LONGS(nbits) * sizeof(unsigned long);
nbits              41 tools/include/linux/bitmap.h static inline void bitmap_fill(unsigned long *dst, unsigned int nbits)
nbits              43 tools/include/linux/bitmap.h 	unsigned int nlongs = BITS_TO_LONGS(nbits);
nbits              44 tools/include/linux/bitmap.h 	if (!small_const_nbits(nbits)) {
nbits              48 tools/include/linux/bitmap.h 	dst[nlongs - 1] = BITMAP_LAST_WORD_MASK(nbits);
nbits              51 tools/include/linux/bitmap.h static inline int bitmap_empty(const unsigned long *src, unsigned nbits)
nbits              53 tools/include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits              54 tools/include/linux/bitmap.h 		return ! (*src & BITMAP_LAST_WORD_MASK(nbits));
nbits              56 tools/include/linux/bitmap.h 	return find_first_bit(src, nbits) == nbits;
nbits              59 tools/include/linux/bitmap.h static inline int bitmap_full(const unsigned long *src, unsigned int nbits)
nbits              61 tools/include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits              62 tools/include/linux/bitmap.h 		return ! (~(*src) & BITMAP_LAST_WORD_MASK(nbits));
nbits              64 tools/include/linux/bitmap.h 	return find_first_zero_bit(src, nbits) == nbits;
nbits              67 tools/include/linux/bitmap.h static inline int bitmap_weight(const unsigned long *src, int nbits)
nbits              69 tools/include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits              70 tools/include/linux/bitmap.h 		return hweight_long(*src & BITMAP_LAST_WORD_MASK(nbits));
nbits              71 tools/include/linux/bitmap.h 	return __bitmap_weight(src, nbits);
nbits              75 tools/include/linux/bitmap.h 			     const unsigned long *src2, int nbits)
nbits              77 tools/include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits              80 tools/include/linux/bitmap.h 		__bitmap_or(dst, src1, src2, nbits);
nbits             121 tools/include/linux/bitmap.h static inline unsigned long *bitmap_alloc(int nbits)
nbits             123 tools/include/linux/bitmap.h 	return calloc(1, BITS_TO_LONGS(nbits) * sizeof(unsigned long));
nbits             133 tools/include/linux/bitmap.h size_t bitmap_scnprintf(unsigned long *bitmap, int nbits,
nbits             144 tools/include/linux/bitmap.h 			     const unsigned long *src2, unsigned int nbits)
nbits             146 tools/include/linux/bitmap.h 	if (small_const_nbits(nbits))
nbits             147 tools/include/linux/bitmap.h 		return (*dst = *src1 & *src2 & BITMAP_LAST_WORD_MASK(nbits)) != 0;
nbits             148 tools/include/linux/bitmap.h 	return __bitmap_and(dst, src1, src2, nbits);
nbits              31 tools/lib/bitmap.c size_t bitmap_scnprintf(unsigned long *bitmap, int nbits,
nbits              39 tools/lib/bitmap.c 	rbot = cur = find_first_bit(bitmap, nbits);
nbits              40 tools/lib/bitmap.c 	while (cur < nbits) {
nbits              42 tools/lib/bitmap.c 		cur = find_next_bit(bitmap, nbits, cur + 1);
nbits              43 tools/lib/bitmap.c 		if (cur < nbits && cur <= rtop + 1)
nbits              32 tools/lib/find_bit.c 		const unsigned long *addr2, unsigned long nbits,
nbits              37 tools/lib/find_bit.c 	if (unlikely(start >= nbits))
nbits              38 tools/lib/find_bit.c 		return nbits;
nbits              51 tools/lib/find_bit.c 		if (start >= nbits)
nbits              52 tools/lib/find_bit.c 			return nbits;
nbits              60 tools/lib/find_bit.c 	return min(start + __ffs(tmp), nbits);
nbits              11 tools/perf/tests/bitmap.c static unsigned long *get_bitmap(const char *str, int nbits)
nbits              17 tools/perf/tests/bitmap.c 	bm = bitmap_alloc(nbits);
nbits              24 tools/perf/tests/mem2node.c static unsigned long *get_bitmap(const char *str, int nbits)
nbits              30 tools/perf/tests/mem2node.c 	bm = bitmap_alloc(nbits);
nbits              48 tools/perf/util/cpumap.c 	int nr, nbits = mask->nr * mask->long_size * BITS_PER_BYTE;
nbits              50 tools/perf/util/cpumap.c 	nr = bitmap_weight(mask->mask, nbits);
nbits              56 tools/perf/util/cpumap.c 		for_each_set_bit(cpu, mask->mask, nbits)