bm                  8 arch/h8300/lib/ashldi3.c 	const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
bm                 14 arch/h8300/lib/ashldi3.c 	if (bm <= 0) {
bm                 16 arch/h8300/lib/ashldi3.c 		w.s.high = (UWtype) uu.s.low << -bm;
bm                 18 arch/h8300/lib/ashldi3.c 		const UWtype carries = (UWtype) uu.s.low >> bm;
bm                  7 arch/h8300/lib/ashrdi3.c 	const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
bm                 13 arch/h8300/lib/ashrdi3.c 	if (bm <= 0) {
bm                 16 arch/h8300/lib/ashrdi3.c 		w.s.low = uu.s.high >> -bm;
bm                 18 arch/h8300/lib/ashrdi3.c 		const UWtype carries = (UWtype) uu.s.high << bm;
bm                  7 arch/h8300/lib/lshrdi3.c 	const word_type bm = (sizeof (Wtype) * BITS_PER_UNIT) - b;
bm                 13 arch/h8300/lib/lshrdi3.c 	if (bm <= 0) {
bm                 15 arch/h8300/lib/lshrdi3.c 		w.s.low = (UWtype) uu.s.high >> -bm;
bm                 17 arch/h8300/lib/lshrdi3.c 		const UWtype carries = (UWtype) uu.s.high << bm;
bm               5300 arch/ia64/kernel/perfmon.c 		unsigned long bm = reset_pmds;
bm               5301 arch/ia64/kernel/perfmon.c 		pfm_reset_regs(ctx, &bm, PFM_PMD_SHORT_RESET);
bm                 38 arch/m68k/lib/ashldi3.c   word_type bm;
bm                 46 arch/m68k/lib/ashldi3.c   bm = (sizeof (SItype) * BITS_PER_UNIT) - b;
bm                 47 arch/m68k/lib/ashldi3.c   if (bm <= 0)
bm                 50 arch/m68k/lib/ashldi3.c       w.s.high = (USItype)uu.s.low << -bm;
bm                 54 arch/m68k/lib/ashldi3.c       USItype carries = (USItype)uu.s.low >> bm;
bm                 38 arch/m68k/lib/ashrdi3.c   word_type bm;
bm                 46 arch/m68k/lib/ashrdi3.c   bm = (sizeof (SItype) * BITS_PER_UNIT) - b;
bm                 47 arch/m68k/lib/ashrdi3.c   if (bm <= 0)
bm                 51 arch/m68k/lib/ashrdi3.c       w.s.low = uu.s.high >> -bm;
bm                 55 arch/m68k/lib/ashrdi3.c       USItype carries = (USItype)uu.s.high << bm;
bm                 38 arch/m68k/lib/lshrdi3.c   word_type bm;
bm                 46 arch/m68k/lib/lshrdi3.c   bm = (sizeof (SItype) * BITS_PER_UNIT) - b;
bm                 47 arch/m68k/lib/lshrdi3.c   if (bm <= 0)
bm                 50 arch/m68k/lib/lshrdi3.c       w.s.low = (USItype)uu.s.high >> -bm;
bm                 54 arch/m68k/lib/lshrdi3.c       USItype carries = (USItype)uu.s.high << bm;
bm                  9 arch/microblaze/lib/ashldi3.c 	word_type bm;
bm                 15 arch/microblaze/lib/ashldi3.c 	bm = 32 - b;
bm                 17 arch/microblaze/lib/ashldi3.c 	if (bm <= 0) {
bm                 19 arch/microblaze/lib/ashldi3.c 		w.s.high = (unsigned int) uu.s.low << -bm;
bm                 21 arch/microblaze/lib/ashldi3.c 		const unsigned int carries = (unsigned int) uu.s.low >> bm;
bm                  9 arch/microblaze/lib/ashrdi3.c 	word_type bm;
bm                 15 arch/microblaze/lib/ashrdi3.c 	bm = 32 - b;
bm                 17 arch/microblaze/lib/ashrdi3.c 	if (bm <= 0) {
bm                 21 arch/microblaze/lib/ashrdi3.c 		w.s.low = uu.s.high >> -bm;
bm                 23 arch/microblaze/lib/ashrdi3.c 		const unsigned int carries = (unsigned int) uu.s.high << bm;
bm                  9 arch/microblaze/lib/lshrdi3.c 	word_type bm;
bm                 15 arch/microblaze/lib/lshrdi3.c 	bm = 32 - b;
bm                 17 arch/microblaze/lib/lshrdi3.c 	if (bm <= 0) {
bm                 19 arch/microblaze/lib/lshrdi3.c 		w.s.low = (unsigned int) uu.s.high >> -bm;
bm                 21 arch/microblaze/lib/lshrdi3.c 		const unsigned int carries = (unsigned int) uu.s.high << bm;
bm                 65 arch/mips/dec/prom/memory.c 	memmap *bm;
bm                 68 arch/mips/dec/prom/memory.c 	bm = (memmap *)CKSEG0ADDR(0x28000);
bm                 70 arch/mips/dec/prom/memory.c 	bitmap_size = rex_getbitmap(bm);
bm                 74 arch/mips/dec/prom/memory.c 		if (bm->bitmap[i] == 0xff)
bm                 75 arch/mips/dec/prom/memory.c 			mem_size += (8 * bm->pagesize);
bm                 77 arch/mips/dec/prom/memory.c 			mem_start += (8 * bm->pagesize);
bm                 80 arch/mips/dec/prom/memory.c 			mem_start += mem_size + (8 * bm->pagesize);
bm                121 arch/mips/include/asm/txx9/tx3927.h 	volatile unsigned long bm;		/* +110 */
bm                 16 arch/mips/math-emu/dp_div.c 	u64 bm;
bm                119 arch/mips/math-emu/dp_div.c 	for (bm = DP_MBIT(DP_FBITS + 2); bm; bm >>= 1) {
bm                122 arch/mips/math-emu/dp_div.c 			rm |= bm;
bm                 16 arch/mips/math-emu/sp_div.c 	unsigned int bm;
bm                119 arch/mips/math-emu/sp_div.c 	for (bm = SP_MBIT(SP_FBITS + 2); bm; bm >>= 1) {
bm                122 arch/mips/math-emu/sp_div.c 			rm |= bm;
bm                 15 arch/powerpc/math-emu/udivmodti4.c   _FP_I_TYPE b, bm;
bm                 51 arch/powerpc/math-emu/udivmodti4.c 	  count_leading_zeros (bm, d0);
bm                 53 arch/powerpc/math-emu/udivmodti4.c 	  if (bm != 0)
bm                 58 arch/powerpc/math-emu/udivmodti4.c 	      d0 = d0 << bm;
bm                 59 arch/powerpc/math-emu/udivmodti4.c 	      n1 = (n1 << bm) | (n0 >> (_FP_W_TYPE_SIZE - bm));
bm                 60 arch/powerpc/math-emu/udivmodti4.c 	      n0 = n0 << bm;
bm                 75 arch/powerpc/math-emu/udivmodti4.c 	  count_leading_zeros (bm, d0);
bm                 77 arch/powerpc/math-emu/udivmodti4.c 	  if (bm == 0)
bm                 95 arch/powerpc/math-emu/udivmodti4.c 	      b = _FP_W_TYPE_SIZE - bm;
bm                 97 arch/powerpc/math-emu/udivmodti4.c 	      d0 = d0 << bm;
bm                 99 arch/powerpc/math-emu/udivmodti4.c 	      n1 = (n1 << bm) | (n0 >> b);
bm                100 arch/powerpc/math-emu/udivmodti4.c 	      n0 = n0 << bm;
bm                112 arch/powerpc/math-emu/udivmodti4.c       r0 = n0 >> bm;
bm                133 arch/powerpc/math-emu/udivmodti4.c 	  count_leading_zeros (bm, d1);
bm                134 arch/powerpc/math-emu/udivmodti4.c 	  if (bm == 0)
bm                163 arch/powerpc/math-emu/udivmodti4.c 	      b = _FP_W_TYPE_SIZE - bm;
bm                165 arch/powerpc/math-emu/udivmodti4.c 	      d1 = (d1 << bm) | (d0 >> b);
bm                166 arch/powerpc/math-emu/udivmodti4.c 	      d0 = d0 << bm;
bm                168 arch/powerpc/math-emu/udivmodti4.c 	      n1 = (n1 << bm) | (n0 >> b);
bm                169 arch/powerpc/math-emu/udivmodti4.c 	      n0 = n0 << bm;
bm                184 arch/powerpc/math-emu/udivmodti4.c 	      r0 = (n1 << b) | (n0 >> bm);
bm                185 arch/powerpc/math-emu/udivmodti4.c 	      r1 = n1 >> bm;
bm                  9 arch/sh/lib/ashldi3.c 	word_type bm;
bm                 15 arch/sh/lib/ashldi3.c 	bm = 32 - b;
bm                 17 arch/sh/lib/ashldi3.c 	if (bm <= 0) {
bm                 19 arch/sh/lib/ashldi3.c 		w.s.high = (unsigned int) uu.s.low << -bm;
bm                 21 arch/sh/lib/ashldi3.c 		const unsigned int carries = (unsigned int) uu.s.low >> bm;
bm                  9 arch/sh/lib/ashrdi3.c 	word_type bm;
bm                 15 arch/sh/lib/ashrdi3.c 	bm = 32 - b;
bm                 17 arch/sh/lib/ashrdi3.c 	if (bm <= 0) {
bm                 21 arch/sh/lib/ashrdi3.c 		w.s.low = uu.s.high >> -bm;
bm                 23 arch/sh/lib/ashrdi3.c 		const unsigned int carries = (unsigned int) uu.s.high << bm;
bm                  9 arch/sh/lib/lshrdi3.c 	word_type bm;
bm                 15 arch/sh/lib/lshrdi3.c 	bm = 32 - b;
bm                 17 arch/sh/lib/lshrdi3.c 	if (bm <= 0) {
bm                 19 arch/sh/lib/lshrdi3.c 		w.s.low = (unsigned int) uu.s.high >> -bm;
bm                 21 arch/sh/lib/lshrdi3.c 		const unsigned int carries = (unsigned int) uu.s.high << bm;
bm                121 arch/x86/mm/pageattr-test.c 	unsigned long *bm;
bm                131 arch/x86/mm/pageattr-test.c 	bm = vzalloc((max_pfn_mapped + 7) / 8);
bm                132 arch/x86/mm/pageattr-test.c 	if (!bm) {
bm                168 arch/x86/mm/pageattr-test.c 			if (test_bit(pfn + k, bm)) {
bm                172 arch/x86/mm/pageattr-test.c 			__set_bit(pfn + k, bm);
bm                214 arch/x86/mm/pageattr-test.c 	vfree(bm);
bm                487 drivers/block/drbd/drbd_bitmap.c 	unsigned long *p_addr, *bm;
bm                500 drivers/block/drbd/drbd_bitmap.c 	bm = p_addr + (tmp/BITS_PER_LONG);
bm                506 drivers/block/drbd/drbd_bitmap.c 		cleared = hweight_long(*bm & ~mask);
bm                507 drivers/block/drbd/drbd_bitmap.c 		*bm &= mask;
bm                508 drivers/block/drbd/drbd_bitmap.c 		bm++;
bm                511 drivers/block/drbd/drbd_bitmap.c 	if (BITS_PER_LONG == 32 && ((bm - p_addr) & 1) == 1) {
bm                514 drivers/block/drbd/drbd_bitmap.c 		cleared += hweight_long(*bm);
bm                515 drivers/block/drbd/drbd_bitmap.c 		*bm = 0;
bm                524 drivers/block/drbd/drbd_bitmap.c 	unsigned long *p_addr, *bm;
bm                536 drivers/block/drbd/drbd_bitmap.c 	bm = p_addr + (tmp/BITS_PER_LONG);
bm                542 drivers/block/drbd/drbd_bitmap.c 		*bm |= ~mask;
bm                543 drivers/block/drbd/drbd_bitmap.c 		bm++;
bm                546 drivers/block/drbd/drbd_bitmap.c 	if (BITS_PER_LONG == 32 && ((bm - p_addr) & 1) == 1) {
bm                549 drivers/block/drbd/drbd_bitmap.c 		*bm = ~0UL;
bm                586 drivers/block/drbd/drbd_bitmap.c 	unsigned long *p_addr, *bm;
bm                601 drivers/block/drbd/drbd_bitmap.c 		bm = p_addr + MLPP(offset);
bm                602 drivers/block/drbd/drbd_bitmap.c 		if (bm+do_now > p_addr + LWPP) {
bm                604 drivers/block/drbd/drbd_bitmap.c 			       p_addr, bm, (int)do_now);
bm                606 drivers/block/drbd/drbd_bitmap.c 			memset(bm, c, do_now * sizeof(long));
bm                814 drivers/block/drbd/drbd_bitmap.c 	unsigned long *p_addr, *bm;
bm                835 drivers/block/drbd/drbd_bitmap.c 		bm = p_addr + MLPP(offset);
bm                838 drivers/block/drbd/drbd_bitmap.c 			bits = hweight_long(*bm);
bm                839 drivers/block/drbd/drbd_bitmap.c 			word = *bm | *buffer++;
bm                840 drivers/block/drbd/drbd_bitmap.c 			*bm++ = word;
bm                863 drivers/block/drbd/drbd_bitmap.c 	unsigned long *p_addr, *bm;
bm                885 drivers/block/drbd/drbd_bitmap.c 			bm = p_addr + MLPP(offset);
bm                888 drivers/block/drbd/drbd_bitmap.c 				*buffer++ = *bm++;
bm               1637 drivers/block/drbd/drbd_bitmap.c 	unsigned long *p_addr, *bm;
bm               1654 drivers/block/drbd/drbd_bitmap.c 		bm = p_addr + MLPP(s);
bm               1655 drivers/block/drbd/drbd_bitmap.c 		count += bitmap_weight(bm, n * BITS_PER_LONG);
bm                335 drivers/gpu/drm/armada/armada_crtc.c 	uint32_t lm, rm, tm, bm, val, sclk;
bm                343 drivers/gpu/drm/armada/armada_crtc.c 	bm = adj->crtc_vsync_start - adj->crtc_vdisplay;
bm                348 drivers/gpu/drm/armada/armada_crtc.c 	DRM_DEBUG_KMS("lm %d rm %d tm %d bm %d\n", lm, rm, tm, bm);
bm                361 drivers/gpu/drm/armada/armada_crtc.c 	dcrtc->v[1].spu_v_porch = tm << 16 | bm;
bm                498 drivers/gpu/drm/imx/imx-ldb.c 	const char *bm;
bm                502 drivers/gpu/drm/imx/imx-ldb.c 	ret = of_property_read_string(np, "fsl,data-mapping", &bm);
bm                509 drivers/gpu/drm/imx/imx-ldb.c 		if (!strcasecmp(bm, imx_ldb_bit_mappings[i].mapping) &&
bm                514 drivers/gpu/drm/imx/imx-ldb.c 	dev_err(dev, "invalid data mapping: %d-bit \"%s\"\n", datawidth, bm);
bm                522 drivers/gpu/drm/imx/imx-tve.c 	const char *bm;
bm                525 drivers/gpu/drm/imx/imx-tve.c 	ret = of_property_read_string(np, "fsl,tve-mode", &bm);
bm                530 drivers/gpu/drm/imx/imx-tve.c 		if (!strcasecmp(bm, imx_tve_modes[i]))
bm               1978 drivers/hid/hid-wiimote-modules.c 	__u8 o, r, y, g, b, bass, bm, bp;
bm               2023 drivers/hid/hid-wiimote-modules.c 	bm = !(ext[4] & 0x10);
bm               2060 drivers/hid/hid-wiimote-modules.c 	input_report_key(wdata->extension.input, BTN_SELECT, bm);
bm               2206 drivers/hid/hid-wiimote-modules.c 	__u8 sx, sy, tb, wb, bd, bm, bp, bo, br, bb, bg, by, bu;
bm               2244 drivers/hid/hid-wiimote-modules.c 	bm = !(ext[4] & 0x10);
bm               2290 drivers/hid/hid-wiimote-modules.c 			 bm);
bm                 51 drivers/input/input.c 				     unsigned long *bm, unsigned int max)
bm                 53 drivers/input/input.c 	return code <= max && test_bit(code, bm);
bm               1347 drivers/input/input.c 				     char name, unsigned long *bm,
bm               1354 drivers/input/input.c 		if (bm[BIT_WORD(i)] & BIT_MASK(i))
bm               1491 drivers/input/input.c #define INPUT_DEV_CAP_ATTR(ev, bm)					\
bm               1492 drivers/input/input.c static ssize_t input_dev_show_cap_##bm(struct device *dev,		\
bm               1498 drivers/input/input.c 				     input_dev->bm##bit, ev##_MAX,	\
bm               1502 drivers/input/input.c static DEVICE_ATTR(bm, S_IRUGO, input_dev_show_cap_##bm, NULL)
bm               1601 drivers/input/input.c #define INPUT_ADD_HOTPLUG_BM_VAR(name, bm, max)				\
bm               1603 drivers/input/input.c 		int err = input_add_uevent_bm_var(env, name, bm, max);	\
bm                 61 drivers/input/misc/yealink.c #define _SEG(t, a, am, b, bm, c, cm, d, dm, e, em, f, fm, g, gm)	\
bm                 63 drivers/input/misc/yealink.c 	  .u = { .s = {	_LOC(a, am), _LOC(b, bm), _LOC(c, cm),		\
bm                 69 drivers/irqchip/irq-gic-v2m.c 	unsigned long *bm;	/* MSI vector bitmap */
bm                171 drivers/irqchip/irq-gic-v2m.c 	bitmap_release_region(v2m->bm, hwirq - v2m->spi_start,
bm                185 drivers/irqchip/irq-gic-v2m.c 		offset = bitmap_find_free_region(tmp->bm, tmp->nr_spis,
bm                271 drivers/irqchip/irq-gic-v2m.c 		kfree(v2m->bm);
bm                390 drivers/irqchip/irq-gic-v2m.c 	v2m->bm = kcalloc(BITS_TO_LONGS(v2m->nr_spis), sizeof(long),
bm                392 drivers/irqchip/irq-gic-v2m.c 	if (!v2m->bm) {
bm                 24 drivers/irqchip/irq-gic-v3-mbi.c 	unsigned long		*bm;
bm                 79 drivers/irqchip/irq-gic-v3-mbi.c 	bitmap_release_region(mbi->bm, hwirq - mbi->spi_start,
bm                 93 drivers/irqchip/irq-gic-v3-mbi.c 		offset = bitmap_find_free_region(mbi_ranges[i].bm,
bm                293 drivers/irqchip/irq-gic-v3-mbi.c 		mbi_ranges[n].bm = kcalloc(BITS_TO_LONGS(mbi_ranges[n].nr_spis),
bm                295 drivers/irqchip/irq-gic-v3-mbi.c 		if (!mbi_ranges[n].bm) {
bm                332 drivers/irqchip/irq-gic-v3-mbi.c 			kfree(mbi_ranges[n].bm);
bm                109 drivers/md/dm-cache-metadata.c 	struct dm_block_manager *bm;
bm                240 drivers/md/dm-cache-metadata.c 	return dm_bm_read_lock(cmd->bm, CACHE_SUPERBLOCK_LOCATION,
bm                247 drivers/md/dm-cache-metadata.c 	return dm_bm_write_lock_zero(cmd->bm, CACHE_SUPERBLOCK_LOCATION,
bm                254 drivers/md/dm-cache-metadata.c 	return dm_bm_write_lock(cmd->bm, CACHE_SUPERBLOCK_LOCATION,
bm                260 drivers/md/dm-cache-metadata.c static int __superblock_all_zeroes(struct dm_block_manager *bm, bool *result)
bm                266 drivers/md/dm-cache-metadata.c 	unsigned sb_block_size = dm_bm_block_size(bm) / sizeof(__le64);
bm                271 drivers/md/dm-cache-metadata.c 	r = dm_bm_read_lock(bm, CACHE_SUPERBLOCK_LOCATION, NULL, &b);
bm                394 drivers/md/dm-cache-metadata.c 	r = dm_tm_create_with_sm(cmd->bm, CACHE_SUPERBLOCK_LOCATION,
bm                493 drivers/md/dm-cache-metadata.c 	r = dm_tm_open_with_sm(cmd->bm, CACHE_SUPERBLOCK_LOCATION,
bm                522 drivers/md/dm-cache-metadata.c 	r = __superblock_all_zeroes(cmd->bm, &unformatted);
bm                536 drivers/md/dm-cache-metadata.c 	cmd->bm = dm_block_manager_create(cmd->bdev, DM_CACHE_METADATA_BLOCK_SIZE << SECTOR_SHIFT,
bm                538 drivers/md/dm-cache-metadata.c 	if (IS_ERR(cmd->bm)) {
bm                540 drivers/md/dm-cache-metadata.c 		return PTR_ERR(cmd->bm);
bm                545 drivers/md/dm-cache-metadata.c 		dm_block_manager_destroy(cmd->bm);
bm                554 drivers/md/dm-cache-metadata.c 	dm_block_manager_destroy(cmd->bm);
bm                626 drivers/md/dm-cache-metadata.c 	return dm_bm_flush(cmd->bm);
bm                995 drivers/md/dm-cache-metadata.c 	if (cmd->fail_io || dm_bm_is_read_only(cmd->bm)) {
bm               1760 drivers/md/dm-cache-metadata.c 	dm_bm_set_read_only(cmd->bm);
bm               1767 drivers/md/dm-cache-metadata.c 	dm_bm_set_read_write(cmd->bm);
bm                142 drivers/md/dm-clone-metadata.c 	struct dm_block_manager *bm;
bm                233 drivers/md/dm-clone-metadata.c static int __superblock_all_zeroes(struct dm_block_manager *bm, bool *formatted)
bm                244 drivers/md/dm-clone-metadata.c 	r = dm_bm_read_lock(bm, SUPERBLOCK_LOCATION, NULL, &sblock);
bm                254 drivers/md/dm-clone-metadata.c 	BUG_ON(dm_bm_block_size(bm) % sizeof(__le64));
bm                255 drivers/md/dm-clone-metadata.c 	nr_words = dm_bm_block_size(bm) / sizeof(__le64);
bm                276 drivers/md/dm-clone-metadata.c 	return dm_bm_read_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock);
bm                282 drivers/md/dm-clone-metadata.c 	return dm_bm_write_lock(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock);
bm                288 drivers/md/dm-clone-metadata.c 	return dm_bm_write_lock_zero(cmd->bm, SUPERBLOCK_LOCATION, &sb_validator, sblock);
bm                347 drivers/md/dm-clone-metadata.c 	r = dm_tm_open_with_sm(cmd->bm, SUPERBLOCK_LOCATION,
bm                372 drivers/md/dm-clone-metadata.c 	r = dm_tm_create_with_sm(cmd->bm, SUPERBLOCK_LOCATION, &cmd->tm, &cmd->sm);
bm                434 drivers/md/dm-clone-metadata.c 	r = __superblock_all_zeroes(cmd->bm, &formatted);
bm                450 drivers/md/dm-clone-metadata.c 	cmd->bm = dm_block_manager_create(cmd->bdev,
bm                453 drivers/md/dm-clone-metadata.c 	if (IS_ERR(cmd->bm)) {
bm                455 drivers/md/dm-clone-metadata.c 		return PTR_ERR(cmd->bm);
bm                460 drivers/md/dm-clone-metadata.c 		dm_block_manager_destroy(cmd->bm);
bm                469 drivers/md/dm-clone-metadata.c 	dm_block_manager_destroy(cmd->bm);
bm                789 drivers/md/dm-clone-metadata.c 	if (cmd->fail_io || dm_bm_is_read_only(cmd->bm)) {
bm                828 drivers/md/dm-clone-metadata.c 	if (cmd->fail_io || dm_bm_is_read_only(cmd->bm))
bm                962 drivers/md/dm-clone-metadata.c 	if (cmd->fail_io || dm_bm_is_read_only(cmd->bm))
bm                987 drivers/md/dm-clone-metadata.c 		dm_bm_set_read_only(cmd->bm);
bm               1001 drivers/md/dm-clone-metadata.c 		dm_bm_set_read_write(cmd->bm);
bm                262 drivers/md/dm-era-target.c 	struct dm_block_manager *bm;
bm                303 drivers/md/dm-era-target.c 	return dm_bm_read_lock(md->bm, SUPERBLOCK_LOCATION,
bm                310 drivers/md/dm-era-target.c 	return dm_bm_write_lock_zero(md->bm, SUPERBLOCK_LOCATION,
bm                317 drivers/md/dm-era-target.c 	return dm_bm_write_lock(md->bm, SUPERBLOCK_LOCATION,
bm                322 drivers/md/dm-era-target.c static int superblock_all_zeroes(struct dm_block_manager *bm, bool *result)
bm                328 drivers/md/dm-era-target.c 	unsigned sb_block_size = dm_bm_block_size(bm) / sizeof(__le64);
bm                333 drivers/md/dm-era-target.c 	r = dm_bm_read_lock(bm, SUPERBLOCK_LOCATION, NULL, &b);
bm                434 drivers/md/dm-era-target.c 	r = dm_tm_create_with_sm(md->bm, SUPERBLOCK_LOCATION,
bm                567 drivers/md/dm-era-target.c 	r = dm_tm_open_with_sm(md->bm, SUPERBLOCK_LOCATION,
bm                602 drivers/md/dm-era-target.c 	r = superblock_all_zeroes(md->bm, &unformatted);
bm                617 drivers/md/dm-era-target.c 	md->bm = dm_block_manager_create(md->bdev, DM_ERA_METADATA_BLOCK_SIZE,
bm                619 drivers/md/dm-era-target.c 	if (IS_ERR(md->bm)) {
bm                621 drivers/md/dm-era-target.c 		return PTR_ERR(md->bm);
bm                626 drivers/md/dm-era-target.c 		dm_block_manager_destroy(md->bm);
bm                635 drivers/md/dm-era-target.c 	dm_block_manager_destroy(md->bm);
bm                149 drivers/md/dm-thin-metadata.c 	struct dm_block_manager *bm;
bm                414 drivers/md/dm-thin-metadata.c 	return dm_bm_write_lock_zero(pmd->bm, THIN_SUPERBLOCK_LOCATION,
bm                421 drivers/md/dm-thin-metadata.c 	return dm_bm_write_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
bm                425 drivers/md/dm-thin-metadata.c static int __superblock_all_zeroes(struct dm_block_manager *bm, int *result)
bm                431 drivers/md/dm-thin-metadata.c 	unsigned block_size = dm_bm_block_size(bm) / sizeof(__le64);
bm                436 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(bm, THIN_SUPERBLOCK_LOCATION, NULL, &b);
bm                574 drivers/md/dm-thin-metadata.c 	r = dm_tm_create_with_sm(pmd->bm, THIN_SUPERBLOCK_LOCATION,
bm                658 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
bm                680 drivers/md/dm-thin-metadata.c 	r = dm_tm_open_with_sm(pmd->bm, THIN_SUPERBLOCK_LOCATION,
bm                724 drivers/md/dm-thin-metadata.c 	r = __superblock_all_zeroes(pmd->bm, &unformatted);
bm                738 drivers/md/dm-thin-metadata.c 	pmd->bm = dm_block_manager_create(pmd->bdev, THIN_METADATA_BLOCK_SIZE << SECTOR_SHIFT,
bm                740 drivers/md/dm-thin-metadata.c 	if (IS_ERR(pmd->bm)) {
bm                742 drivers/md/dm-thin-metadata.c 		return PTR_ERR(pmd->bm);
bm                747 drivers/md/dm-thin-metadata.c 		dm_block_manager_destroy(pmd->bm);
bm                758 drivers/md/dm-thin-metadata.c 	dm_block_manager_destroy(pmd->bm);
bm                771 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
bm                957 drivers/md/dm-thin-metadata.c 	if (!dm_bm_is_read_only(pmd->bm) && !pmd->fail_io) {
bm               1411 drivers/md/dm-thin-metadata.c 	r = dm_bm_read_lock(pmd->bm, THIN_SUPERBLOCK_LOCATION,
bm               2043 drivers/md/dm-thin-metadata.c 	dm_bm_set_read_only(pmd->bm);
bm               2050 drivers/md/dm-thin-metadata.c 	dm_bm_set_read_write(pmd->bm);
bm               1818 drivers/md/md-bitmap.c 	struct kernfs_node *bm = NULL;
bm               1844 drivers/md/md-bitmap.c 		bm = sysfs_get_dirent(mddev->kobj.sd, "bitmap");
bm               1845 drivers/md/md-bitmap.c 	if (bm) {
bm               1846 drivers/md/md-bitmap.c 		bitmap->sysfs_can_clear = sysfs_get_dirent(bm, "can_clear");
bm               1847 drivers/md/md-bitmap.c 		sysfs_put(bm);
bm                383 drivers/md/persistent-data/dm-block-manager.c 	struct dm_block_manager *bm;
bm                385 drivers/md/persistent-data/dm-block-manager.c 	bm = kmalloc(sizeof(*bm), GFP_KERNEL);
bm                386 drivers/md/persistent-data/dm-block-manager.c 	if (!bm) {
bm                391 drivers/md/persistent-data/dm-block-manager.c 	bm->bufio = dm_bufio_client_create(bdev, block_size, max_held_per_thread,
bm                395 drivers/md/persistent-data/dm-block-manager.c 	if (IS_ERR(bm->bufio)) {
bm                396 drivers/md/persistent-data/dm-block-manager.c 		r = PTR_ERR(bm->bufio);
bm                397 drivers/md/persistent-data/dm-block-manager.c 		kfree(bm);
bm                401 drivers/md/persistent-data/dm-block-manager.c 	bm->read_only = false;
bm                403 drivers/md/persistent-data/dm-block-manager.c 	return bm;
bm                410 drivers/md/persistent-data/dm-block-manager.c void dm_block_manager_destroy(struct dm_block_manager *bm)
bm                412 drivers/md/persistent-data/dm-block-manager.c 	dm_bufio_client_destroy(bm->bufio);
bm                413 drivers/md/persistent-data/dm-block-manager.c 	kfree(bm);
bm                417 drivers/md/persistent-data/dm-block-manager.c unsigned dm_bm_block_size(struct dm_block_manager *bm)
bm                419 drivers/md/persistent-data/dm-block-manager.c 	return dm_bufio_get_block_size(bm->bufio);
bm                423 drivers/md/persistent-data/dm-block-manager.c dm_block_t dm_bm_nr_blocks(struct dm_block_manager *bm)
bm                425 drivers/md/persistent-data/dm-block-manager.c 	return dm_bufio_get_device_size(bm->bufio);
bm                428 drivers/md/persistent-data/dm-block-manager.c static int dm_bm_validate_buffer(struct dm_block_manager *bm,
bm                437 drivers/md/persistent-data/dm-block-manager.c 		r = v->check(v, (struct dm_block *) buf, dm_bufio_get_block_size(bm->bufio));
bm                455 drivers/md/persistent-data/dm-block-manager.c int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b,
bm                463 drivers/md/persistent-data/dm-block-manager.c 	p = dm_bufio_read(bm->bufio, b, (struct dm_buffer **) result);
bm                477 drivers/md/persistent-data/dm-block-manager.c 	r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v);
bm                488 drivers/md/persistent-data/dm-block-manager.c int dm_bm_write_lock(struct dm_block_manager *bm,
bm                496 drivers/md/persistent-data/dm-block-manager.c 	if (bm->read_only)
bm                499 drivers/md/persistent-data/dm-block-manager.c 	p = dm_bufio_read(bm->bufio, b, (struct dm_buffer **) result);
bm                513 drivers/md/persistent-data/dm-block-manager.c 	r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v);
bm                524 drivers/md/persistent-data/dm-block-manager.c int dm_bm_read_try_lock(struct dm_block_manager *bm,
bm                532 drivers/md/persistent-data/dm-block-manager.c 	p = dm_bufio_get(bm->bufio, b, (struct dm_buffer **) result);
bm                547 drivers/md/persistent-data/dm-block-manager.c 	r = dm_bm_validate_buffer(bm, to_buffer(*result), aux, v);
bm                557 drivers/md/persistent-data/dm-block-manager.c int dm_bm_write_lock_zero(struct dm_block_manager *bm,
bm                565 drivers/md/persistent-data/dm-block-manager.c 	if (bm->read_only)
bm                568 drivers/md/persistent-data/dm-block-manager.c 	p = dm_bufio_new(bm->bufio, b, (struct dm_buffer **) result);
bm                572 drivers/md/persistent-data/dm-block-manager.c 	memset(p, 0, dm_bm_block_size(bm));
bm                603 drivers/md/persistent-data/dm-block-manager.c int dm_bm_flush(struct dm_block_manager *bm)
bm                605 drivers/md/persistent-data/dm-block-manager.c 	if (bm->read_only)
bm                608 drivers/md/persistent-data/dm-block-manager.c 	return dm_bufio_write_dirty_buffers(bm->bufio);
bm                612 drivers/md/persistent-data/dm-block-manager.c void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b)
bm                614 drivers/md/persistent-data/dm-block-manager.c 	dm_bufio_prefetch(bm->bufio, b, 1);
bm                617 drivers/md/persistent-data/dm-block-manager.c bool dm_bm_is_read_only(struct dm_block_manager *bm)
bm                619 drivers/md/persistent-data/dm-block-manager.c 	return bm->read_only;
bm                623 drivers/md/persistent-data/dm-block-manager.c void dm_bm_set_read_only(struct dm_block_manager *bm)
bm                625 drivers/md/persistent-data/dm-block-manager.c 	bm->read_only = true;
bm                629 drivers/md/persistent-data/dm-block-manager.c void dm_bm_set_read_write(struct dm_block_manager *bm)
bm                631 drivers/md/persistent-data/dm-block-manager.c 	bm->read_only = false;
bm                 37 drivers/md/persistent-data/dm-block-manager.h void dm_block_manager_destroy(struct dm_block_manager *bm);
bm                 39 drivers/md/persistent-data/dm-block-manager.h unsigned dm_bm_block_size(struct dm_block_manager *bm);
bm                 40 drivers/md/persistent-data/dm-block-manager.h dm_block_t dm_bm_nr_blocks(struct dm_block_manager *bm);
bm                 73 drivers/md/persistent-data/dm-block-manager.h int dm_bm_read_lock(struct dm_block_manager *bm, dm_block_t b,
bm                 77 drivers/md/persistent-data/dm-block-manager.h int dm_bm_write_lock(struct dm_block_manager *bm, dm_block_t b,
bm                 85 drivers/md/persistent-data/dm-block-manager.h int dm_bm_read_try_lock(struct dm_block_manager *bm, dm_block_t b,
bm                 93 drivers/md/persistent-data/dm-block-manager.h int dm_bm_write_lock_zero(struct dm_block_manager *bm, dm_block_t b,
bm                108 drivers/md/persistent-data/dm-block-manager.h int dm_bm_flush(struct dm_block_manager *bm);
bm                113 drivers/md/persistent-data/dm-block-manager.h void dm_bm_prefetch(struct dm_block_manager *bm, dm_block_t b);
bm                126 drivers/md/persistent-data/dm-block-manager.h bool dm_bm_is_read_only(struct dm_block_manager *bm);
bm                127 drivers/md/persistent-data/dm-block-manager.h void dm_bm_set_read_only(struct dm_block_manager *bm);
bm                128 drivers/md/persistent-data/dm-block-manager.h void dm_bm_set_read_write(struct dm_block_manager *bm);
bm                197 drivers/md/persistent-data/dm-btree.c 	struct dm_block_manager *bm = dm_tm_get_bm(s->tm);
bm                200 drivers/md/persistent-data/dm-btree.c 		dm_bm_prefetch(bm, value64(f->n, i));
bm               1001 drivers/md/persistent-data/dm-btree.c 	struct dm_block_manager *bm = dm_tm_get_bm(c->info->tm);
bm               1008 drivers/md/persistent-data/dm-btree.c 		dm_bm_prefetch(bm, le64_to_cpu(value_le));
bm                 60 drivers/md/persistent-data/dm-transaction-manager.c static void prefetch_issue(struct prefetch_set *p, struct dm_block_manager *bm)
bm                 68 drivers/md/persistent-data/dm-transaction-manager.c 			dm_bm_prefetch(bm, p->blocks[i]);
bm                 92 drivers/md/persistent-data/dm-transaction-manager.c 	struct dm_block_manager *bm;
bm                160 drivers/md/persistent-data/dm-transaction-manager.c static struct dm_transaction_manager *dm_tm_create(struct dm_block_manager *bm,
bm                172 drivers/md/persistent-data/dm-transaction-manager.c 	tm->bm = bm;
bm                218 drivers/md/persistent-data/dm-transaction-manager.c 	return dm_bm_flush(tm->bm);
bm                230 drivers/md/persistent-data/dm-transaction-manager.c 	return dm_bm_flush(tm->bm);
bm                248 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_bm_write_lock_zero(tm->bm, new_block, v, result);
bm                279 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_bm_read_lock(tm->bm, orig, v, &orig_block);
bm                290 drivers/md/persistent-data/dm-transaction-manager.c 	r = dm_bm_write_lock_zero(tm->bm, new, v, result);
bm                297 drivers/md/persistent-data/dm-transaction-manager.c 	       dm_bm_block_size(tm->bm));
bm                317 drivers/md/persistent-data/dm-transaction-manager.c 		return dm_bm_write_lock(tm->bm, orig, v, result);
bm                333 drivers/md/persistent-data/dm-transaction-manager.c 		int r = dm_bm_read_try_lock(tm->real->bm, b, v, blk);
bm                341 drivers/md/persistent-data/dm-transaction-manager.c 	return dm_bm_read_lock(tm->bm, b, v, blk);
bm                384 drivers/md/persistent-data/dm-transaction-manager.c 	return tm->bm;
bm                389 drivers/md/persistent-data/dm-transaction-manager.c 	prefetch_issue(&tm->prefetches, tm->bm);
bm                395 drivers/md/persistent-data/dm-transaction-manager.c static int dm_tm_create_internal(struct dm_block_manager *bm,
bm                408 drivers/md/persistent-data/dm-transaction-manager.c 	*tm = dm_tm_create(bm, *sm);
bm                415 drivers/md/persistent-data/dm-transaction-manager.c 		r = dm_sm_metadata_create(*sm, *tm, dm_bm_nr_blocks(bm),
bm                438 drivers/md/persistent-data/dm-transaction-manager.c int dm_tm_create_with_sm(struct dm_block_manager *bm, dm_block_t sb_location,
bm                442 drivers/md/persistent-data/dm-transaction-manager.c 	return dm_tm_create_internal(bm, sb_location, tm, sm, 1, NULL, 0);
bm                446 drivers/md/persistent-data/dm-transaction-manager.c int dm_tm_open_with_sm(struct dm_block_manager *bm, dm_block_t sb_location,
bm                451 drivers/md/persistent-data/dm-transaction-manager.c 	return dm_tm_create_internal(bm, sb_location, tm, sm, 0, sm_root, root_len);
bm                128 drivers/md/persistent-data/dm-transaction-manager.h int dm_tm_create_with_sm(struct dm_block_manager *bm, dm_block_t sb_location,
bm                132 drivers/md/persistent-data/dm-transaction-manager.h int dm_tm_open_with_sm(struct dm_block_manager *bm, dm_block_t sb_location,
bm                494 drivers/power/supply/ab8500_bmdata.c 		       struct abx500_bm_data *bm)
bm                516 drivers/power/supply/ab8500_bmdata.c 		bm->no_maintenance  = true;
bm                517 drivers/power/supply/ab8500_bmdata.c 		bm->chg_unknown_bat = true;
bm                518 drivers/power/supply/ab8500_bmdata.c 		bm->bat_type[BATTERY_UNKNOWN].charge_full_design = 2600;
bm                519 drivers/power/supply/ab8500_bmdata.c 		bm->bat_type[BATTERY_UNKNOWN].termination_vol    = 4150;
bm                520 drivers/power/supply/ab8500_bmdata.c 		bm->bat_type[BATTERY_UNKNOWN].recharge_cap       = 95;
bm                521 drivers/power/supply/ab8500_bmdata.c 		bm->bat_type[BATTERY_UNKNOWN].normal_cur_lvl     = 520;
bm                522 drivers/power/supply/ab8500_bmdata.c 		bm->bat_type[BATTERY_UNKNOWN].normal_vol_lvl     = 4200;
bm                531 drivers/power/supply/ab8500_bmdata.c 		bm->n_btypes   = 4;
bm                532 drivers/power/supply/ab8500_bmdata.c 		bm->bat_type   = bat_type_ext_thermistor;
bm                533 drivers/power/supply/ab8500_bmdata.c 		bm->adc_therm  = ABx500_ADC_THERM_BATTEMP;
bm                538 drivers/power/supply/ab8500_bmdata.c 	for (i = 0; i < bm->n_btypes; ++i)
bm                539 drivers/power/supply/ab8500_bmdata.c 		bm->bat_type[i].batres_tbl = tmp_batres_tbl;
bm                101 drivers/power/supply/ab8500_btemp.c 	struct abx500_bm_data *bm;
bm                153 drivers/power/supply/ab8500_btemp.c 	if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL) {
bm                159 drivers/power/supply/ab8500_btemp.c 		       - di->bm->gnd_lift_resistance * inst_curr)
bm                215 drivers/power/supply/ab8500_btemp.c 	if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL && enable) {
bm                248 drivers/power/supply/ab8500_btemp.c 	} else if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL && !enable) {
bm                463 drivers/power/supply/ab8500_btemp.c 	id = di->bm->batt_id;
bm                465 drivers/power/supply/ab8500_btemp.c 	if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL &&
bm                480 drivers/power/supply/ab8500_btemp.c 			di->bm->bat_type[id].r_to_t_tbl,
bm                481 drivers/power/supply/ab8500_btemp.c 			di->bm->bat_type[id].n_temp_tbl_elements, rbat);
bm                497 drivers/power/supply/ab8500_btemp.c 			di->bm->bat_type[id].r_to_t_tbl,
bm                498 drivers/power/supply/ab8500_btemp.c 			di->bm->bat_type[id].n_temp_tbl_elements, rntc);
bm                519 drivers/power/supply/ab8500_btemp.c 	di->bm->batt_id = BATTERY_UNKNOWN;
bm                528 drivers/power/supply/ab8500_btemp.c 	for (i = BATTERY_UNKNOWN + 1; i < di->bm->n_btypes; i++) {
bm                529 drivers/power/supply/ab8500_btemp.c 		if ((res <= di->bm->bat_type[i].resis_high) &&
bm                530 drivers/power/supply/ab8500_btemp.c 			(res >= di->bm->bat_type[i].resis_low)) {
bm                534 drivers/power/supply/ab8500_btemp.c 				di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL ?
bm                536 drivers/power/supply/ab8500_btemp.c 				di->bm->bat_type[i].resis_low, res,
bm                537 drivers/power/supply/ab8500_btemp.c 				di->bm->bat_type[i].resis_high, i);
bm                539 drivers/power/supply/ab8500_btemp.c 			di->bm->batt_id = i;
bm                544 drivers/power/supply/ab8500_btemp.c 	if (di->bm->batt_id == BATTERY_UNKNOWN) {
bm                554 drivers/power/supply/ab8500_btemp.c 	if (di->bm->adc_therm == ABx500_ADC_THERM_BATCTRL &&
bm                555 drivers/power/supply/ab8500_btemp.c 	    di->bm->batt_id == 1) {
bm                560 drivers/power/supply/ab8500_btemp.c 	return di->bm->batt_id;
bm                605 drivers/power/supply/ab8500_btemp.c 		interval = di->bm->temp_interval_chg;
bm                607 drivers/power/supply/ab8500_btemp.c 		interval = di->bm->temp_interval_nochg;
bm                834 drivers/power/supply/ab8500_btemp.c 		val->intval = di->bm->bat_type[di->bm->batt_id].name;
bm               1014 drivers/power/supply/ab8500_btemp.c 	di->bm = plat;
bm               1017 drivers/power/supply/ab8500_btemp.c 		ret = ab8500_bm_of_probe(&pdev->dev, np, di->bm);
bm                287 drivers/power/supply/ab8500_charger.c 	struct abx500_bm_data *bm;
bm               1008 drivers/power/supply/ab8500_charger.c 	if (curr < di->bm->chg_output_curr[0])
bm               1011 drivers/power/supply/ab8500_charger.c 	for (i = 0; i < di->bm->n_chg_out_curr; i++) {
bm               1012 drivers/power/supply/ab8500_charger.c 		if (curr < di->bm->chg_output_curr[i])
bm               1017 drivers/power/supply/ab8500_charger.c 	i = di->bm->n_chg_out_curr - 1;
bm               1018 drivers/power/supply/ab8500_charger.c 	if (curr == di->bm->chg_output_curr[i])
bm               1028 drivers/power/supply/ab8500_charger.c 	if (curr < di->bm->chg_input_curr[0])
bm               1031 drivers/power/supply/ab8500_charger.c 	for (i = 0; i < di->bm->n_chg_in_curr; i++) {
bm               1032 drivers/power/supply/ab8500_charger.c 		if (curr < di->bm->chg_input_curr[i])
bm               1037 drivers/power/supply/ab8500_charger.c 	i = di->bm->n_chg_in_curr - 1;
bm               1038 drivers/power/supply/ab8500_charger.c 	if (curr == di->bm->chg_input_curr[i])
bm               1240 drivers/power/supply/ab8500_charger.c 	min_value = min(di->bm->chg_params->usb_curr_max, ich_in);
bm               1397 drivers/power/supply/ab8500_charger.c 			di->bm->chg_params->ac_curr_max);
bm               1414 drivers/power/supply/ab8500_charger.c 			di->bm->chg_params->ac_curr_max);
bm               1430 drivers/power/supply/ab8500_charger.c 		if (!di->bm->enable_overshoot)
bm               1587 drivers/power/supply/ab8500_charger.c 		if (!di->bm->enable_overshoot)
bm               2649 drivers/power/supply/ab8500_charger.c 	curr = di->bm->chg_input_curr[
bm               3117 drivers/power/supply/ab8500_charger.c 		(di->bm->bkup_bat_v & 0x3) | di->bm->bkup_bat_i);
bm               3359 drivers/power/supply/ab8500_charger.c 	di->bm = plat;
bm               3362 drivers/power/supply/ab8500_charger.c 		ret = ab8500_bm_of_probe(&pdev->dev, np, di->bm);
bm               3400 drivers/power/supply/ab8500_charger.c 		di->bm->chg_output_curr[di->bm->n_chg_out_curr - 1];
bm               3402 drivers/power/supply/ab8500_charger.c 	di->ac_chg.enabled = di->bm->ac_enabled;
bm               3419 drivers/power/supply/ab8500_charger.c 		di->bm->chg_output_curr[di->bm->n_chg_out_curr - 1];
bm               3421 drivers/power/supply/ab8500_charger.c 	di->usb_chg.enabled = di->bm->usb_enabled;
bm                228 drivers/power/supply/ab8500_fg.c 	struct abx500_bm_data *bm;
bm                366 drivers/power/supply/ab8500_fg.c 	if (curr > -di->bm->fg_params->high_curr_threshold)
bm                673 drivers/power/supply/ab8500_fg.c 		(1000 * di->bm->fg_res);
bm                797 drivers/power/supply/ab8500_fg.c 		(100 * di->bm->fg_res);
bm                806 drivers/power/supply/ab8500_fg.c 		(1000 * di->bm->fg_res * (di->fg_samples / 4));
bm                815 drivers/power/supply/ab8500_fg.c 				di->bm->fg_res, di->fg_samples, val, di->accu_charge);
bm                860 drivers/power/supply/ab8500_fg.c 	tbl = di->bm->bat_type[di->bm->batt_id].v_to_cap_tbl,
bm                861 drivers/power/supply/ab8500_fg.c 	tbl_size = di->bm->bat_type[di->bm->batt_id].n_v_cap_tbl_elements;
bm                912 drivers/power/supply/ab8500_fg.c 	tbl = di->bm->bat_type[di->bm->batt_id].batres_tbl;
bm                913 drivers/power/supply/ab8500_fg.c 	tbl_size = di->bm->bat_type[di->bm->batt_id].n_batres_tbl_elements;
bm                934 drivers/power/supply/ab8500_fg.c 		__func__, di->bat_temp, resist, di->bm->fg_res / 10,
bm                935 drivers/power/supply/ab8500_fg.c 		(di->bm->fg_res / 10) + resist);
bm                938 drivers/power/supply/ab8500_fg.c 	resist += di->bm->fg_res / 10;
bm               1156 drivers/power/supply/ab8500_fg.c 	if (percent <= di->bm->cap_levels->critical ||
bm               1159 drivers/power/supply/ab8500_fg.c 	else if (percent <= di->bm->cap_levels->low)
bm               1161 drivers/power/supply/ab8500_fg.c 	else if (percent <= di->bm->cap_levels->normal)
bm               1163 drivers/power/supply/ab8500_fg.c 	else if (percent <= di->bm->cap_levels->high)
bm               1194 drivers/power/supply/ab8500_fg.c 			max(capacity, di->bm->fg_params->maint_thres);
bm               1256 drivers/power/supply/ab8500_fg.c 				    di->bm->fg_params->maint_thres);
bm               1323 drivers/power/supply/ab8500_fg.c 						di->bm->capacity_scaling) {
bm               1376 drivers/power/supply/ab8500_fg.c 		if (di->bm->capacity_scaling) {
bm               1437 drivers/power/supply/ab8500_fg.c 			di->bm->fg_params->accu_charging);
bm               1499 drivers/power/supply/ab8500_fg.c 	lower = di->bat_cap.permille - di->bm->fg_params->user_cap_limit * 10;
bm               1500 drivers/power/supply/ab8500_fg.c 	upper = di->bat_cap.permille + di->bm->fg_params->user_cap_limit * 10;
bm               1540 drivers/power/supply/ab8500_fg.c 		di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer);
bm               1553 drivers/power/supply/ab8500_fg.c 		sleep_time = di->bm->fg_params->init_timer;
bm               1556 drivers/power/supply/ab8500_fg.c 		if (di->init_cnt > di->bm->fg_params->init_discard_time) {
bm               1563 drivers/power/supply/ab8500_fg.c 		if (di->init_cnt > di->bm->fg_params->init_total_time)
bm               1578 drivers/power/supply/ab8500_fg.c 		sleep_time = di->bm->fg_params->recovery_sleep_timer;
bm               1590 drivers/power/supply/ab8500_fg.c 				di->bm->fg_params->recovery_total_time) {
bm               1592 drivers/power/supply/ab8500_fg.c 					di->bm->fg_params->accu_high_curr);
bm               1605 drivers/power/supply/ab8500_fg.c 				di->bm->fg_params->accu_high_curr);
bm               1614 drivers/power/supply/ab8500_fg.c 			di->bm->fg_params->accu_high_curr);
bm               1661 drivers/power/supply/ab8500_fg.c 				di->bm->fg_params->accu_high_curr;
bm               1663 drivers/power/supply/ab8500_fg.c 				di->bm->fg_params->high_curr_time)
bm               1677 drivers/power/supply/ab8500_fg.c 			di->bm->fg_params->accu_high_curr);
bm               1871 drivers/power/supply/ab8500_fg.c 	if (vbat < di->bm->fg_params->lowbat_threshold) {
bm               1933 drivers/power/supply/ab8500_fg.c 	sel0 = di->bm->fg_params->battok_falling_th_sel0;
bm               1934 drivers/power/supply/ab8500_fg.c 	sel1 = di->bm->fg_params->battok_raising_th_sel1;
bm               2120 drivers/power/supply/ab8500_fg.c 		if (di->flags.batt_unknown && !di->bm->chg_unknown_bat &&
bm               2135 drivers/power/supply/ab8500_fg.c 		if (di->flags.batt_unknown && !di->bm->chg_unknown_bat &&
bm               2142 drivers/power/supply/ab8500_fg.c 		if (di->flags.batt_unknown && !di->bm->chg_unknown_bat &&
bm               2149 drivers/power/supply/ab8500_fg.c 		if (di->flags.batt_unknown && !di->bm->chg_unknown_bat &&
bm               2201 drivers/power/supply/ab8500_fg.c 					if (di->bm->capacity_scaling)
bm               2220 drivers/power/supply/ab8500_fg.c 					if (di->bm->capacity_scaling)
bm               2233 drivers/power/supply/ab8500_fg.c 				    di->bm->batt_id != BATTERY_UNKNOWN) {
bm               2236 drivers/power/supply/ab8500_fg.c 					b = &(di->bm->bat_type[di->bm->batt_id]);
bm               2313 drivers/power/supply/ab8500_fg.c 			di->bm->fg_params->lowbat_threshold) << 1 |
bm               2329 drivers/power/supply/ab8500_fg.c 			AB8505_RTC_PCUT_MAX_TIME_REG, di->bm->fg_params->pcut_max_time);
bm               2337 drivers/power/supply/ab8500_fg.c 			AB8505_RTC_PCUT_FLAG_TIME_REG, di->bm->fg_params->pcut_flag_time);
bm               2345 drivers/power/supply/ab8500_fg.c 			AB8505_RTC_PCUT_RESTART_REG, di->bm->fg_params->pcut_max_restart);
bm               2353 drivers/power/supply/ab8500_fg.c 			AB8505_RTC_PCUT_DEBOUNCE_REG, di->bm->fg_params->pcut_debounce_time);
bm               2361 drivers/power/supply/ab8500_fg.c 			AB8505_RTC_PCUT_CTL_STATUS_REG, di->bm->fg_params->pcut_enable);
bm               3054 drivers/power/supply/ab8500_fg.c 	di->bm = plat;
bm               3057 drivers/power/supply/ab8500_fg.c 		ret = ab8500_bm_of_probe(&pdev->dev, np, di->bm);
bm               3076 drivers/power/supply/ab8500_fg.c 		di->bm->bat_type[di->bm->batt_id].charge_full_design;
bm               3080 drivers/power/supply/ab8500_fg.c 	di->vbat_nom = di->bm->bat_type[di->bm->batt_id].nominal_voltage;
bm               3141 drivers/power/supply/ab8500_fg.c 	di->fg_samples = SEC_TO_SAMPLE(di->bm->fg_params->init_timer);
bm                250 drivers/power/supply/abx500_chargalg.c 	struct abx500_bm_data *bm;
bm                357 drivers/power/supply/abx500_chargalg.c                          di->bm->bat_type[di->bm->batt_id].normal_vol_lvl,
bm                358 drivers/power/supply/abx500_chargalg.c                          di->bm->bat_type[di->bm->batt_id].normal_cur_lvl);
bm                362 drivers/power/supply/abx500_chargalg.c                          di->bm->bat_type[di->bm->batt_id].normal_vol_lvl,
bm                363 drivers/power/supply/abx500_chargalg.c                          di->bm->bat_type[di->bm->batt_id].normal_cur_lvl);
bm                442 drivers/power/supply/abx500_chargalg.c 		timer_expiration = di->bm->main_safety_tmr_h;
bm                446 drivers/power/supply/abx500_chargalg.c 		timer_expiration = di->bm->usb_safety_tmr_h;
bm                724 drivers/power/supply/abx500_chargalg.c 	if (di->batt_data.temp > (di->bm->temp_low + di->t_hyst_norm) &&
bm                725 drivers/power/supply/abx500_chargalg.c 		di->batt_data.temp < (di->bm->temp_high - di->t_hyst_norm)) {
bm                732 drivers/power/supply/abx500_chargalg.c 		if (((di->batt_data.temp >= di->bm->temp_high) &&
bm                734 drivers/power/supply/abx500_chargalg.c 				(di->bm->temp_over - di->t_hyst_lowhigh))) ||
bm                736 drivers/power/supply/abx500_chargalg.c 				(di->bm->temp_under + di->t_hyst_lowhigh)) &&
bm                737 drivers/power/supply/abx500_chargalg.c 			(di->batt_data.temp <= di->bm->temp_low))) {
bm                741 drivers/power/supply/abx500_chargalg.c 			di->t_hyst_norm = di->bm->temp_hysteresis;
bm                743 drivers/power/supply/abx500_chargalg.c 		} else if (di->batt_data.temp <= di->bm->temp_under ||
bm                744 drivers/power/supply/abx500_chargalg.c 			di->batt_data.temp >= di->bm->temp_over) {
bm                749 drivers/power/supply/abx500_chargalg.c 			di->t_hyst_lowhigh = di->bm->temp_hysteresis;
bm                768 drivers/power/supply/abx500_chargalg.c 	if (di->chg_info.usb_volt > di->bm->chg_params->usb_volt_max)
bm                773 drivers/power/supply/abx500_chargalg.c 	if (di->chg_info.ac_volt > di->bm->chg_params->ac_volt_max)
bm                793 drivers/power/supply/abx500_chargalg.c 		di->bm->bat_type[di->bm->batt_id].termination_vol ||
bm                796 drivers/power/supply/abx500_chargalg.c 		di->bm->bat_type[di->bm->batt_id].termination_curr &&
bm                819 drivers/power/supply/abx500_chargalg.c 		di->bm->bat_type[di->bm->batt_id].normal_cur_lvl;
bm                821 drivers/power/supply/abx500_chargalg.c 		di->bm->bat_type[di->bm->batt_id].normal_cur_lvl;
bm                822 drivers/power/supply/abx500_chargalg.c 	di->ccm.test_delta_i = di->bm->maxi->charger_curr_step;
bm                823 drivers/power/supply/abx500_chargalg.c 	di->ccm.max_current = di->bm->maxi->chg_curr;
bm                824 drivers/power/supply/abx500_chargalg.c 	di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
bm                841 drivers/power/supply/abx500_chargalg.c 	if (!di->bm->maxi->ena_maxi)
bm                852 drivers/power/supply/abx500_chargalg.c 			di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
bm                877 drivers/power/supply/abx500_chargalg.c 		di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
bm                889 drivers/power/supply/abx500_chargalg.c 			di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
bm                904 drivers/power/supply/abx500_chargalg.c 		di->ccm.condition_cnt = di->bm->maxi->wait_cycles;
bm                924 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[di->bm->batt_id].normal_cur_lvl);
bm               1317 drivers/power/supply/abx500_chargalg.c 		(di->events.batt_unknown && !di->bm->chg_unknown_bat)) {
bm               1503 drivers/power/supply/abx500_chargalg.c 			curr_step_lvl = di->bm->bat_type[
bm               1504 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].normal_cur_lvl
bm               1508 drivers/power/supply/abx500_chargalg.c 				di->bm->bat_type[di->bm->batt_id]
bm               1527 drivers/power/supply/abx500_chargalg.c 			if (di->bm->no_maintenance)
bm               1544 drivers/power/supply/abx500_chargalg.c 		    di->bm->bat_type[di->bm->batt_id].
bm               1552 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1553 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].maint_a_chg_timer_h);
bm               1555 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1556 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].maint_a_vol_lvl,
bm               1557 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1558 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].maint_a_cur_lvl);
bm               1572 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1573 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].maint_b_chg_timer_h);
bm               1575 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1576 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].maint_b_vol_lvl,
bm               1577 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1578 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].maint_b_cur_lvl);
bm               1592 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1593 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].low_high_vol_lvl,
bm               1594 drivers/power/supply/abx500_chargalg.c 			di->bm->bat_type[
bm               1595 drivers/power/supply/abx500_chargalg.c 				di->bm->batt_id].low_high_cur_lvl);
bm               1656 drivers/power/supply/abx500_chargalg.c 			di->bm->interval_charging * HZ);
bm               1660 drivers/power/supply/abx500_chargalg.c 			di->bm->interval_not_charging * HZ);
bm               1725 drivers/power/supply/abx500_chargalg.c 			if (di->batt_data.temp <= di->bm->temp_under)
bm               2004 drivers/power/supply/abx500_chargalg.c 	di->bm = plat;
bm               2007 drivers/power/supply/abx500_chargalg.c 		ret = ab8500_bm_of_probe(&pdev->dev, np, di->bm);
bm                297 drivers/spi/spi-lantiq-ssc.c 	u32 bm;
bm                300 drivers/spi/spi-lantiq-ssc.c 	bm = (bits_per_word - 1) << LTQ_SPI_CON_BM_S;
bm                302 drivers/spi/spi-lantiq-ssc.c 	lantiq_ssc_maskl(spi, LTQ_SPI_CON_BM_M, bm, LTQ_SPI_CON);
bm                 24 drivers/staging/comedi/comedi_buf.c 	struct comedi_buf_map *bm =
bm                 29 drivers/staging/comedi/comedi_buf.c 	if (bm->page_list) {
bm                 30 drivers/staging/comedi/comedi_buf.c 		if (bm->dma_dir != DMA_NONE) {
bm                 35 drivers/staging/comedi/comedi_buf.c 			buf = &bm->page_list[0];
bm                 36 drivers/staging/comedi/comedi_buf.c 			dma_free_coherent(bm->dma_hw_dev,
bm                 37 drivers/staging/comedi/comedi_buf.c 					  PAGE_SIZE * bm->n_pages,
bm                 40 drivers/staging/comedi/comedi_buf.c 			for (i = 0; i < bm->n_pages; i++) {
bm                 41 drivers/staging/comedi/comedi_buf.c 				buf = &bm->page_list[i];
bm                 46 drivers/staging/comedi/comedi_buf.c 		vfree(bm->page_list);
bm                 48 drivers/staging/comedi/comedi_buf.c 	if (bm->dma_dir != DMA_NONE)
bm                 49 drivers/staging/comedi/comedi_buf.c 		put_device(bm->dma_hw_dev);
bm                 50 drivers/staging/comedi/comedi_buf.c 	kfree(bm);
bm                 57 drivers/staging/comedi/comedi_buf.c 	struct comedi_buf_map *bm;
bm                 68 drivers/staging/comedi/comedi_buf.c 	bm = async->buf_map;
bm                 71 drivers/staging/comedi/comedi_buf.c 	comedi_buf_map_put(bm);
bm                 78 drivers/staging/comedi/comedi_buf.c 	struct comedi_buf_map *bm;
bm                 82 drivers/staging/comedi/comedi_buf.c 	bm = kzalloc(sizeof(*bm), GFP_KERNEL);
bm                 83 drivers/staging/comedi/comedi_buf.c 	if (!bm)
bm                 86 drivers/staging/comedi/comedi_buf.c 	kref_init(&bm->refcount);
bm                 87 drivers/staging/comedi/comedi_buf.c 	bm->dma_dir = dma_dir;
bm                 88 drivers/staging/comedi/comedi_buf.c 	if (bm->dma_dir != DMA_NONE) {
bm                 90 drivers/staging/comedi/comedi_buf.c 		bm->dma_hw_dev = get_device(dev->hw_dev);
bm                 93 drivers/staging/comedi/comedi_buf.c 	bm->page_list = vzalloc(sizeof(*buf) * n_pages);
bm                 94 drivers/staging/comedi/comedi_buf.c 	if (!bm->page_list)
bm                 97 drivers/staging/comedi/comedi_buf.c 	if (bm->dma_dir != DMA_NONE) {
bm                105 drivers/staging/comedi/comedi_buf.c 		virt_addr = dma_alloc_coherent(bm->dma_hw_dev,
bm                112 drivers/staging/comedi/comedi_buf.c 			buf = &bm->page_list[i];
bm                117 drivers/staging/comedi/comedi_buf.c 		bm->n_pages = i;
bm                120 drivers/staging/comedi/comedi_buf.c 			buf = &bm->page_list[i];
bm                128 drivers/staging/comedi/comedi_buf.c 		bm->n_pages = i;
bm                133 drivers/staging/comedi/comedi_buf.c 	return bm;
bm                136 drivers/staging/comedi/comedi_buf.c 	comedi_buf_map_put(bm);
bm                146 drivers/staging/comedi/comedi_buf.c 	struct comedi_buf_map *bm;
bm                157 drivers/staging/comedi/comedi_buf.c 	bm = comedi_buf_map_alloc(dev, s->async_dma_dir, n_pages);
bm                158 drivers/staging/comedi/comedi_buf.c 	if (!bm)
bm                162 drivers/staging/comedi/comedi_buf.c 	async->buf_map = bm;
bm                165 drivers/staging/comedi/comedi_buf.c 	if (bm->dma_dir != DMA_NONE) {
bm                170 drivers/staging/comedi/comedi_buf.c 		buf = &bm->page_list[0];
bm                178 drivers/staging/comedi/comedi_buf.c 			buf = &bm->page_list[i];
bm                190 drivers/staging/comedi/comedi_buf.c void comedi_buf_map_get(struct comedi_buf_map *bm)
bm                192 drivers/staging/comedi/comedi_buf.c 	if (bm)
bm                193 drivers/staging/comedi/comedi_buf.c 		kref_get(&bm->refcount);
bm                196 drivers/staging/comedi/comedi_buf.c int comedi_buf_map_put(struct comedi_buf_map *bm)
bm                198 drivers/staging/comedi/comedi_buf.c 	if (bm)
bm                199 drivers/staging/comedi/comedi_buf.c 		return kref_put(&bm->refcount, comedi_buf_map_kref_release);
bm                204 drivers/staging/comedi/comedi_buf.c int comedi_buf_map_access(struct comedi_buf_map *bm, unsigned long offset,
bm                211 drivers/staging/comedi/comedi_buf.c 	while (done < len && pg < bm->n_pages) {
bm                213 drivers/staging/comedi/comedi_buf.c 		void *b = bm->page_list[pg].virt_addr + pgoff;
bm                232 drivers/staging/comedi/comedi_buf.c 	struct comedi_buf_map *bm = NULL;
bm                239 drivers/staging/comedi/comedi_buf.c 	bm = async->buf_map;
bm                241 drivers/staging/comedi/comedi_buf.c 	if (bm && bm->n_pages)
bm                242 drivers/staging/comedi/comedi_buf.c 		comedi_buf_map_get(bm);
bm                244 drivers/staging/comedi/comedi_buf.c 		bm = NULL;
bm                247 drivers/staging/comedi/comedi_buf.c 	return bm;
bm                252 drivers/staging/comedi/comedi_buf.c 	struct comedi_buf_map *bm = s->async->buf_map;
bm                254 drivers/staging/comedi/comedi_buf.c 	return bm && (kref_read(&bm->refcount) > 1);
bm               2263 drivers/staging/comedi/comedi_fops.c 	struct comedi_buf_map *bm;
bm               2265 drivers/staging/comedi/comedi_fops.c 	bm = area->vm_private_data;
bm               2266 drivers/staging/comedi/comedi_fops.c 	comedi_buf_map_get(bm);
bm               2271 drivers/staging/comedi/comedi_fops.c 	struct comedi_buf_map *bm;
bm               2273 drivers/staging/comedi/comedi_fops.c 	bm = area->vm_private_data;
bm               2274 drivers/staging/comedi/comedi_fops.c 	comedi_buf_map_put(bm);
bm               2280 drivers/staging/comedi/comedi_fops.c 	struct comedi_buf_map *bm = vma->vm_private_data;
bm               2288 drivers/staging/comedi/comedi_fops.c 	return comedi_buf_map_access(bm, offset, buf, len, write);
bm               2303 drivers/staging/comedi/comedi_fops.c 	struct comedi_buf_map *bm = NULL;
bm               2360 drivers/staging/comedi/comedi_fops.c 	bm = comedi_buf_map_from_subdev_get(s);
bm               2361 drivers/staging/comedi/comedi_fops.c 	if (!bm || n_pages > bm->n_pages) {
bm               2365 drivers/staging/comedi/comedi_fops.c 	if (bm->dma_dir != DMA_NONE) {
bm               2370 drivers/staging/comedi/comedi_fops.c 		buf = &bm->page_list[0];
bm               2371 drivers/staging/comedi/comedi_fops.c 		retval = dma_mmap_coherent(bm->dma_hw_dev, vma, buf->virt_addr,
bm               2377 drivers/staging/comedi/comedi_fops.c 			buf = &bm->page_list[i];
bm               2390 drivers/staging/comedi/comedi_fops.c 		vma->vm_private_data = bm;
bm               2397 drivers/staging/comedi/comedi_fops.c 	comedi_buf_map_put(bm);	/* put reference to buf map - okay if NULL */
bm                 31 drivers/staging/comedi/comedi_internal.h void comedi_buf_map_get(struct comedi_buf_map *bm);
bm                 32 drivers/staging/comedi/comedi_internal.h int comedi_buf_map_put(struct comedi_buf_map *bm);
bm                 33 drivers/staging/comedi/comedi_internal.h int comedi_buf_map_access(struct comedi_buf_map *bm, unsigned long offset,
bm                 16 drivers/staging/uwb/allocator.c 	unsigned char *bm = ai->bm;
bm                 26 drivers/staging/uwb/allocator.c 			if (bm[col * UWB_MAS_PER_ZONE + mas] == 0) {
bm                 37 drivers/staging/uwb/allocator.c 				bm[col * UWB_MAS_PER_ZONE + mas] = c;
bm                 46 drivers/staging/uwb/allocator.c 	unsigned char *bm = ai->bm;
bm                 62 drivers/staging/uwb/allocator.c 				if (bm[col * UWB_NUM_ZONES + mas] != UWB_RSV_MAS_NOT_AVAIL) {
bm                 63 drivers/staging/uwb/allocator.c 					bm[col * UWB_NUM_ZONES + mas] = c;
bm                195 drivers/staging/uwb/allocator.c 	unsigned char *bm = ai->bm;
bm                203 drivers/staging/uwb/allocator.c 			if (bm[col * UWB_NUM_ZONES + mas] == UWB_RSV_MAS_NOT_AVAIL) {
bm                212 drivers/staging/uwb/allocator.c static void uwb_rsv_fill_column_info(unsigned char *bm, int column, struct uwb_rsv_col_info *rci)
bm                225 drivers/staging/uwb/allocator.c 		if (!bm[column * UWB_NUM_ZONES + mas]) {
bm                251 drivers/staging/uwb/allocator.c 	unsigned char *bm = ai->bm;
bm                256 drivers/staging/uwb/allocator.c 		uwb_rsv_fill_column_info(bm, col, &ci[col]);
bm                326 drivers/staging/uwb/allocator.c 	for_each_clear_bit(bit_index, available->bm, UWB_NUM_MAS)
bm                327 drivers/staging/uwb/allocator.c 		ai->bm[bit_index] = UWB_RSV_MAS_NOT_AVAIL;
bm                354 drivers/staging/uwb/allocator.c 	bitmap_zero(result->bm, UWB_NUM_MAS);
bm                358 drivers/staging/uwb/allocator.c 		if (ai->bm[bit_index] == UWB_RSV_MAS_SAFE)
bm                359 drivers/staging/uwb/allocator.c 			set_bit(bit_index, result->bm);
bm                360 drivers/staging/uwb/allocator.c 		else if (ai->bm[bit_index] == UWB_RSV_MAS_UNSAFE)
bm                363 drivers/staging/uwb/allocator.c 	bitmap_or(result->bm, result->bm, result->unsafe_bm, UWB_NUM_MAS);
bm                 51 drivers/staging/uwb/drp-avail.c 	bitmap_and(avail->bm, rc->drp_avail.global, rc->drp_avail.local, UWB_NUM_MAS);
bm                 52 drivers/staging/uwb/drp-avail.c 	bitmap_and(avail->bm, avail->bm, rc->drp_avail.pending, UWB_NUM_MAS);
bm                 67 drivers/staging/uwb/drp-avail.c 	if (!bitmap_subset(mas->bm, avail.bm, UWB_NUM_MAS))
bm                 70 drivers/staging/uwb/drp-avail.c 	bitmap_andnot(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS);
bm                 81 drivers/staging/uwb/drp-avail.c 	bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS);
bm                 82 drivers/staging/uwb/drp-avail.c 	bitmap_andnot(rc->drp_avail.local, rc->drp_avail.local, mas->bm, UWB_NUM_MAS);
bm                 93 drivers/staging/uwb/drp-avail.c 	bitmap_or(rc->drp_avail.local, rc->drp_avail.local, mas->bm, UWB_NUM_MAS);
bm                 94 drivers/staging/uwb/drp-avail.c 	bitmap_or(rc->drp_avail.pending, rc->drp_avail.pending, mas->bm, UWB_NUM_MAS);
bm                109 drivers/staging/uwb/drp-avail.c 	bitmap_and(avail.bm, rc->drp_avail.global, rc->drp_avail.local, UWB_NUM_MAS);
bm                139 drivers/staging/uwb/drp-ie.c 	bitmap_copy(tmp_bmp, mas->bm, UWB_NUM_MAS);
bm                256 drivers/staging/uwb/drp-ie.c void uwb_drp_ie_single_zone_to_bm(struct uwb_mas_bm *bm, u8 zone, u16 mas_bm)
bm                264 drivers/staging/uwb/drp-ie.c 			set_bit(zone * UWB_NUM_ZONES + mas, bm->bm);
bm                283 drivers/staging/uwb/drp-ie.c void uwb_drp_ie_to_bm(struct uwb_mas_bm *bm, const struct uwb_ie_drp *drp_ie)
bm                292 drivers/staging/uwb/drp-ie.c 	bitmap_zero(bm->bm, UWB_NUM_MAS);
bm                301 drivers/staging/uwb/drp-ie.c 				uwb_drp_ie_single_zone_to_bm(bm, zone, mas_bm);
bm                264 drivers/staging/uwb/drp.c 			bitmap_and(mv->companion_mas.bm, rsv->mas.bm, conflicting_mas->bm, UWB_NUM_MAS);
bm                324 drivers/staging/uwb/drp.c 			bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm,
bm                325 drivers/staging/uwb/drp.c 					conflicting_mas->bm, UWB_NUM_MAS);
bm                344 drivers/staging/uwb/drp.c 		if (bitmap_intersects(rsv->mas.bm, conflicting_mas->bm,
bm                350 drivers/staging/uwb/drp.c 			if (bitmap_intersects(mv->companion_mas.bm,
bm                351 drivers/staging/uwb/drp.c 					conflicting_mas->bm, UWB_NUM_MAS)) {
bm                357 drivers/staging/uwb/drp.c 	} else if (bitmap_intersects(rsv->mas.bm, conflicting_mas->bm,
bm                393 drivers/staging/uwb/drp.c 		if (!bitmap_equal(rsv->mas.bm, mas->bm, UWB_NUM_MAS)) {
bm                399 drivers/staging/uwb/drp.c 		if (!bitmap_equal(rsv->mas.bm, mas->bm, UWB_NUM_MAS)) {
bm                410 drivers/staging/uwb/drp.c 				bitmap_copy(mv->companion_mas.bm, mas->bm,
bm                449 drivers/staging/uwb/drp.c 		if (bitmap_equal(rsv->mas.bm, mas.bm, UWB_NUM_MAS)) {
bm                455 drivers/staging/uwb/drp.c 		if (bitmap_subset(mas.bm, rsv->mas.bm, UWB_NUM_MAS)) {
bm                457 drivers/staging/uwb/drp.c 			bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, mas.bm,
bm                462 drivers/staging/uwb/drp.c 		bitmap_copy(rsv->mas.bm, mas.bm, UWB_NUM_MAS);
bm                483 drivers/staging/uwb/drp.c 		if (bitmap_equal(mas->bm, rsv->mas.bm, UWB_NUM_MAS))
bm                490 drivers/staging/uwb/drp.c 		if (bitmap_equal(mas->bm, rsv->mas.bm, UWB_NUM_MAS))
bm                496 drivers/staging/uwb/drp.c 		if (bitmap_equal(mas->bm, mv->companion_mas.bm, UWB_NUM_MAS)) {
bm                504 drivers/staging/uwb/drp.c 		if (bitmap_equal(mas->bm, rsv->mas.bm, UWB_NUM_MAS))
bm                549 drivers/staging/uwb/drp.c 			bitmap_complement(mas.bm, src->last_availability_bm,
bm                581 drivers/staging/uwb/drp.c 	bitmap_zero(rc->cnflt_alien_bitmap.bm, UWB_NUM_MAS);
bm                584 drivers/staging/uwb/drp.c 		bitmap_or(rc->cnflt_alien_bitmap.bm, rc->cnflt_alien_bitmap.bm,
bm                585 drivers/staging/uwb/drp.c 						c->mas.bm, UWB_NUM_MAS);
bm                616 drivers/staging/uwb/drp.c 		if (bitmap_equal(cnflt->mas.bm, mas.bm, UWB_NUM_MAS)) {
bm                639 drivers/staging/uwb/drp.c 	bitmap_copy(cnflt->mas.bm, mas.bm, UWB_NUM_MAS);
bm                644 drivers/staging/uwb/drp.c 	bitmap_or(rc->cnflt_alien_bitmap.bm, rc->cnflt_alien_bitmap.bm, mas.bm, UWB_NUM_MAS);
bm                329 drivers/staging/uwb/rsv.c 		bitmap_andnot(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS);
bm                349 drivers/staging/uwb/rsv.c 		bitmap_or(rsv->mas.bm, rsv->mas.bm, mv->companion_mas.bm, UWB_NUM_MAS);
bm                355 drivers/staging/uwb/rsv.c 		bitmap_andnot(mv->companion_mas.bm, rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS);
bm                359 drivers/staging/uwb/rsv.c 		bitmap_copy(rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS);
bm                624 drivers/staging/uwb/rsv.c 		if (!bitmap_equal(rsv->mas.bm, mv->final_mas.bm, UWB_NUM_MAS)) {
bm                626 drivers/staging/uwb/rsv.c 			bitmap_andnot(mv->companion_mas.bm, mv->final_mas.bm, rsv->mas.bm, UWB_NUM_MAS);
bm                653 drivers/staging/uwb/rsv.c 			bitmap_or(mas.bm, mas.bm, rsv->mas.bm, UWB_NUM_MAS);
bm                793 drivers/staging/uwb/rsv.c 	bitmap_zero(mas->bm, UWB_NUM_MAS);
bm                794 drivers/staging/uwb/rsv.c 	bitmap_andnot(mas->bm, rsv->mas.bm, rsv->rc->cnflt_alien_bitmap.bm, UWB_NUM_MAS);
bm                221 drivers/staging/uwb/uwb-debug.c 		seq_printf(s, "  %*pb\n", UWB_NUM_MAS, rsv->mas.bm);
bm                148 drivers/staging/uwb/uwb-internal.h 	unsigned char bm[UWB_MAS_PER_ZONE * UWB_NUM_ZONES];
bm                332 drivers/staging/uwb/uwb-internal.h void uwb_drp_ie_to_bm(struct uwb_mas_bm *bm, const struct uwb_ie_drp *drp_ie);
bm                 99 drivers/staging/uwb/uwb.h 	DECLARE_BITMAP(bm, UWB_NUM_MAS);
bm                255 drivers/staging/uwb/uwb.h struct uwb_mas_bm uwb_mas_bm_zero = { .bm = { 0 } };
bm                259 drivers/staging/uwb/uwb.h 	bitmap_copy_le(dst, mas->bm, UWB_NUM_MAS);
bm                178 drivers/staging/wusbcore/devconnect.c 	bitmap_fill(wusb_dev->availability.bm, UWB_NUM_MAS);
bm                 47 drivers/staging/wusbcore/reservation.c 			UWB_NUM_MAS, mas.bm);
bm                979 drivers/tty/serial/mxs-auart.c 	u32 bm, ctrl, ctrl2, div;
bm                990 drivers/tty/serial/mxs-auart.c 		bm = 0;
bm                993 drivers/tty/serial/mxs-auart.c 		bm = 1;
bm                996 drivers/tty/serial/mxs-auart.c 		bm = 2;
bm                999 drivers/tty/serial/mxs-auart.c 		bm = 3;
bm               1005 drivers/tty/serial/mxs-auart.c 	ctrl |= AUART_LINECTRL_WLEN(bm);
bm                228 drivers/video/fbdev/matrox/matroxfb_base.c 	u_int32_t bm;
bm                231 drivers/video/fbdev/matrox/matroxfb_base.c 		bm = 0x220;
bm                233 drivers/video/fbdev/matrox/matroxfb_base.c 		bm = 0x020;
bm                242 drivers/video/fbdev/matrox/matroxfb_base.c 		mga_outl(M_ICLEAR, bm);
bm                243 drivers/video/fbdev/matrox/matroxfb_base.c 		mga_outl(M_IEN, mga_inl(M_IEN) | bm);
bm                248 drivers/video/fbdev/matrox/matroxfb_base.c 		if ((ien & bm) != bm) {
bm                250 drivers/video/fbdev/matrox/matroxfb_base.c 			mga_outl(M_IEN, ien | bm);
bm                224 drivers/w1/w1_int.c void w1_remove_master_device(struct w1_bus_master *bm)
bm                232 drivers/w1/w1_int.c 		if (dev->bus_master->data == bm->data) {
bm                 17 fs/affs/bitmap.c 	struct affs_bm_info *bm;
bm                 28 fs/affs/bitmap.c 	bm = AFFS_SB(sb)->s_bitmap;
bm                 30 fs/affs/bitmap.c 	for (i = AFFS_SB(sb)->s_bmap_count; i > 0; bm++, i--)
bm                 31 fs/affs/bitmap.c 		free += bm->bm_free;
bm                 42 fs/affs/bitmap.c 	struct affs_bm_info *bm;
bm                 55 fs/affs/bitmap.c 	bm      = &sbi->s_bitmap[bmap];
bm                 62 fs/affs/bitmap.c 		bh = affs_bread(sb, bm->bm_key);
bm                 84 fs/affs/bitmap.c 	bm->bm_free++;
bm                 95 fs/affs/bitmap.c 	affs_error(sb,"affs_free_block","Cannot read bitmap block %u", bm->bm_key);
bm                119 fs/affs/bitmap.c 	struct affs_bm_info *bm;
bm                146 fs/affs/bitmap.c 	bm = &sbi->s_bitmap[bmap];
bm                150 fs/affs/bitmap.c 	if (bm->bm_free)
bm                160 fs/affs/bitmap.c 		bm++;
bm                165 fs/affs/bitmap.c 		bm = sbi->s_bitmap;
bm                166 fs/affs/bitmap.c 	} while (!bm->bm_free);
bm                174 fs/affs/bitmap.c 		bh = affs_bread(sb, bm->bm_key);
bm                218 fs/affs/bitmap.c 	bm->bm_free -= AFFS_I(inode)->i_pa_cnt + 1;
bm                235 fs/affs/bitmap.c 	affs_error(sb,"affs_read_block","Cannot read bitmap block %u", bm->bm_key);
bm                246 fs/affs/bitmap.c 	struct affs_bm_info *bm;
bm                267 fs/affs/bitmap.c 	size = sbi->s_bmap_count * sizeof(*bm);
bm                268 fs/affs/bitmap.c 	bm = sbi->s_bitmap = kzalloc(size, GFP_KERNEL);
bm                278 fs/affs/bitmap.c 	for (i = sbi->s_bmap_count; i > 0; bm++, i--) {
bm                281 fs/affs/bitmap.c 		bm->bm_key = be32_to_cpu(bmap_blk[blk]);
bm                282 fs/affs/bitmap.c 		bh = affs_bread(sb, bm->bm_key);
bm                290 fs/affs/bitmap.c 				bm->bm_key, sb->s_id);
bm                294 fs/affs/bitmap.c 		pr_debug("read bitmap block %d: %d\n", blk, bm->bm_key);
bm                295 fs/affs/bitmap.c 		bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4);
bm                344 fs/affs/bitmap.c 	bm--;
bm                345 fs/affs/bitmap.c 	bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4);
bm               1197 fs/ext4/ext4.h extern void ext4_set_bits(void *bm, int cur, int len);
bm               1276 fs/ext4/mballoc.c static void mb_clear_bits(void *bm, int cur, int len)
bm               1284 fs/ext4/mballoc.c 			addr = bm + (cur >> 3);
bm               1289 fs/ext4/mballoc.c 		mb_clear_bit(cur, bm);
bm               1297 fs/ext4/mballoc.c static int mb_test_and_clear_bits(void *bm, int cur, int len)
bm               1306 fs/ext4/mballoc.c 			addr = bm + (cur >> 3);
bm               1313 fs/ext4/mballoc.c 		if (!mb_test_and_clear_bit(cur, bm) && zero_bit == -1)
bm               1321 fs/ext4/mballoc.c void ext4_set_bits(void *bm, int cur, int len)
bm               1329 fs/ext4/mballoc.c 			addr = bm + (cur >> 3);
bm               1334 fs/ext4/mballoc.c 		mb_set_bit(cur, bm);
bm               4501 fs/nfs/nfs4xdr.c 	res->bm = bitmap[0];
bm               4504 fs/nfs/nfs4xdr.c 		 __func__, res->bm, res->rd_sz, res->wr_sz, res->rd_io_sz,
bm               1783 fs/nfs/pnfs.c  		__func__, t->bm, t->rd_sz, t->wr_sz, t->rd_io_sz, t->wr_io_sz);
bm               1787 fs/nfs/pnfs.c  		if (t->bm & THRESHOLD_RD) {
bm               1793 fs/nfs/pnfs.c  		if (t->bm & THRESHOLD_RD_IO) {
bm               1802 fs/nfs/pnfs.c  		if (t->bm & THRESHOLD_WR) {
bm               1808 fs/nfs/pnfs.c  		if (t->bm & THRESHOLD_WR_IO) {
bm                560 fs/nfs/pnfs.h  	return (dst && src && src->bm != 0 && nfss->pnfs_curr_ld &&
bm                278 fs/reiserfs/bitmap.c 	unsigned bm;
bm                281 fs/reiserfs/bitmap.c 		bm = 1;
bm                285 fs/reiserfs/bitmap.c 		bm = hash % reiserfs_bmap_count(s);
bm                286 fs/reiserfs/bitmap.c 		if (!bm)
bm                287 fs/reiserfs/bitmap.c 			bm = 1;
bm                290 fs/reiserfs/bitmap.c 	if (bm >= reiserfs_bmap_count(s))
bm                291 fs/reiserfs/bitmap.c 		bm = 0;
bm                292 fs/reiserfs/bitmap.c 	return bm;
bm                301 fs/reiserfs/bitmap.c 	int bm = bmap_hash_id(s, id);
bm                302 fs/reiserfs/bitmap.c 	struct reiserfs_bitmap_info *info = &SB_AP_BITMAP(s)[bm];
bm                312 fs/reiserfs/bitmap.c 		struct buffer_head *bh = reiserfs_read_bitmap_block(s, bm);
bm                353 fs/reiserfs/bitmap.c 	unsigned int bm, off;
bm                364 fs/reiserfs/bitmap.c 	get_bit_address(s, *start, &bm, &off);
bm                366 fs/reiserfs/bitmap.c 	if (bm > reiserfs_bmap_count(s))
bm                386 fs/reiserfs/bitmap.c 		for (; bm < end_bm; bm++, off = 0) {
bm                388 fs/reiserfs/bitmap.c 			    || SB_AP_BITMAP(s)[bm].free_count >
bm                391 fs/reiserfs/bitmap.c 				    scan_bitmap_block(th, bm, &off, off_max,
bm                397 fs/reiserfs/bitmap.c 		get_bit_address(s, *start, &bm, &off);
bm                400 fs/reiserfs/bitmap.c 	for (; bm < end_bm; bm++, off = 0) {
bm                402 fs/reiserfs/bitmap.c 		    scan_bitmap_block(th, bm, &off, off_max, min, max, unfm);
bm                408 fs/reiserfs/bitmap.c 	    scan_bitmap_block(th, bm, &off, end_off + 1, min, max, unfm);
bm                411 fs/reiserfs/bitmap.c 	*start = bm * off_max + off;
bm                803 fs/reiserfs/bitmap.c 	int bm = 0;
bm                812 fs/reiserfs/bitmap.c 		bm = bmap_hash_id(sb, dirid);
bm                813 fs/reiserfs/bitmap.c 		hash = bm * (sb->s_blocksize << 3);
bm                831 fs/reiserfs/bitmap.c 		int bm;
bm                843 fs/reiserfs/bitmap.c 			bm = bmap_hash_id(hint->inode->i_sb, oid);
bm                844 fs/reiserfs/bitmap.c 			hash = bm * (hint->inode->i_sb->s_blocksize << 3);
bm               2426 fs/udf/super.c 	struct spaceBitmapDesc *bm;
bm               2441 fs/udf/super.c 	bm = (struct spaceBitmapDesc *)bh->b_data;
bm               2442 fs/udf/super.c 	bytes = le32_to_cpu(bm->numOfBytes);
bm                305 include/linux/mfd/abx500.h 		       struct abx500_bm_data *bm);
bm                 37 include/linux/nfs_xdr.h 	__u32	bm;
bm                270 include/linux/phylink.h #define phylink_zero(bm) \
bm                271 include/linux/phylink.h 	bitmap_zero(bm, __ETHTOOL_LINK_MODE_MASK_NBITS)
bm                272 include/linux/phylink.h #define __phylink_do_bit(op, bm, mode) \
bm                273 include/linux/phylink.h 	op(ETHTOOL_LINK_MODE_ ## mode ## _BIT, bm)
bm                275 include/linux/phylink.h #define phylink_set(bm, mode)	__phylink_do_bit(__set_bit, bm, mode)
bm                276 include/linux/phylink.h #define phylink_clear(bm, mode)	__phylink_do_bit(__clear_bit, bm, mode)
bm                277 include/linux/phylink.h #define phylink_test(bm, mode)	__phylink_do_bit(test_bit, bm, mode)
bm                548 kernel/power/snapshot.c static void memory_bm_position_reset(struct memory_bitmap *bm)
bm                550 kernel/power/snapshot.c 	bm->cur.zone = list_entry(bm->zones.next, struct mem_zone_bm_rtree,
bm                552 kernel/power/snapshot.c 	bm->cur.node = list_entry(bm->cur.zone->leaves.next,
bm                554 kernel/power/snapshot.c 	bm->cur.node_pfn = 0;
bm                555 kernel/power/snapshot.c 	bm->cur.node_bit = 0;
bm                558 kernel/power/snapshot.c static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free);
bm                643 kernel/power/snapshot.c static int memory_bm_create(struct memory_bitmap *bm, gfp_t gfp_mask,
bm                652 kernel/power/snapshot.c 	INIT_LIST_HEAD(&bm->zones);
bm                667 kernel/power/snapshot.c 		list_add_tail(&zone->list, &bm->zones);
bm                670 kernel/power/snapshot.c 	bm->p_list = ca.chain;
bm                671 kernel/power/snapshot.c 	memory_bm_position_reset(bm);
bm                677 kernel/power/snapshot.c 	bm->p_list = ca.chain;
bm                678 kernel/power/snapshot.c 	memory_bm_free(bm, PG_UNSAFE_CLEAR);
bm                686 kernel/power/snapshot.c static void memory_bm_free(struct memory_bitmap *bm, int clear_nosave_free)
bm                690 kernel/power/snapshot.c 	list_for_each_entry(zone, &bm->zones, list)
bm                693 kernel/power/snapshot.c 	free_list_of_pages(bm->p_list, clear_nosave_free);
bm                695 kernel/power/snapshot.c 	INIT_LIST_HEAD(&bm->zones);
bm                707 kernel/power/snapshot.c static int memory_bm_find_bit(struct memory_bitmap *bm, unsigned long pfn,
bm                714 kernel/power/snapshot.c 	zone = bm->cur.zone;
bm                722 kernel/power/snapshot.c 	list_for_each_entry(curr, &bm->zones, list) {
bm                743 kernel/power/snapshot.c 	node = bm->cur.node;
bm                744 kernel/power/snapshot.c 	if (zone == bm->cur.zone &&
bm                745 kernel/power/snapshot.c 	    ((pfn - zone->start_pfn) & ~BM_BLOCK_MASK) == bm->cur.node_pfn)
bm                762 kernel/power/snapshot.c 	bm->cur.zone = zone;
bm                763 kernel/power/snapshot.c 	bm->cur.node = node;
bm                764 kernel/power/snapshot.c 	bm->cur.node_pfn = (pfn - zone->start_pfn) & ~BM_BLOCK_MASK;
bm                773 kernel/power/snapshot.c static void memory_bm_set_bit(struct memory_bitmap *bm, unsigned long pfn)
bm                779 kernel/power/snapshot.c 	error = memory_bm_find_bit(bm, pfn, &addr, &bit);
bm                784 kernel/power/snapshot.c static int mem_bm_set_bit_check(struct memory_bitmap *bm, unsigned long pfn)
bm                790 kernel/power/snapshot.c 	error = memory_bm_find_bit(bm, pfn, &addr, &bit);
bm                797 kernel/power/snapshot.c static void memory_bm_clear_bit(struct memory_bitmap *bm, unsigned long pfn)
bm                803 kernel/power/snapshot.c 	error = memory_bm_find_bit(bm, pfn, &addr, &bit);
bm                808 kernel/power/snapshot.c static void memory_bm_clear_current(struct memory_bitmap *bm)
bm                812 kernel/power/snapshot.c 	bit = max(bm->cur.node_bit - 1, 0);
bm                813 kernel/power/snapshot.c 	clear_bit(bit, bm->cur.node->data);
bm                816 kernel/power/snapshot.c static int memory_bm_test_bit(struct memory_bitmap *bm, unsigned long pfn)
bm                822 kernel/power/snapshot.c 	error = memory_bm_find_bit(bm, pfn, &addr, &bit);
bm                827 kernel/power/snapshot.c static bool memory_bm_pfn_present(struct memory_bitmap *bm, unsigned long pfn)
bm                832 kernel/power/snapshot.c 	return !memory_bm_find_bit(bm, pfn, &addr, &bit);
bm                845 kernel/power/snapshot.c static bool rtree_next_node(struct memory_bitmap *bm)
bm                847 kernel/power/snapshot.c 	if (!list_is_last(&bm->cur.node->list, &bm->cur.zone->leaves)) {
bm                848 kernel/power/snapshot.c 		bm->cur.node = list_entry(bm->cur.node->list.next,
bm                850 kernel/power/snapshot.c 		bm->cur.node_pfn += BM_BITS_PER_BLOCK;
bm                851 kernel/power/snapshot.c 		bm->cur.node_bit  = 0;
bm                857 kernel/power/snapshot.c 	if (!list_is_last(&bm->cur.zone->list, &bm->zones)) {
bm                858 kernel/power/snapshot.c 		bm->cur.zone = list_entry(bm->cur.zone->list.next,
bm                860 kernel/power/snapshot.c 		bm->cur.node = list_entry(bm->cur.zone->leaves.next,
bm                862 kernel/power/snapshot.c 		bm->cur.node_pfn = 0;
bm                863 kernel/power/snapshot.c 		bm->cur.node_bit = 0;
bm                882 kernel/power/snapshot.c static unsigned long memory_bm_next_pfn(struct memory_bitmap *bm)
bm                888 kernel/power/snapshot.c 		pages	  = bm->cur.zone->end_pfn - bm->cur.zone->start_pfn;
bm                889 kernel/power/snapshot.c 		bits      = min(pages - bm->cur.node_pfn, BM_BITS_PER_BLOCK);
bm                890 kernel/power/snapshot.c 		bit	  = find_next_bit(bm->cur.node->data, bits,
bm                891 kernel/power/snapshot.c 					  bm->cur.node_bit);
bm                893 kernel/power/snapshot.c 			pfn = bm->cur.zone->start_pfn + bm->cur.node_pfn + bit;
bm                894 kernel/power/snapshot.c 			bm->cur.node_bit = bit + 1;
bm                897 kernel/power/snapshot.c 	} while (rtree_next_node(bm));
bm                925 kernel/power/snapshot.c static void memory_bm_recycle(struct memory_bitmap *bm)
bm                930 kernel/power/snapshot.c 	list_for_each_entry(zone, &bm->zones, list)
bm                933 kernel/power/snapshot.c 	p_list = bm->p_list;
bm               1043 kernel/power/snapshot.c static void mark_nosave_pages(struct memory_bitmap *bm)
bm               1066 kernel/power/snapshot.c 				mem_bm_set_bit_check(bm, pfn);
bm               1150 kernel/power/snapshot.c 	struct memory_bitmap *bm = free_pages_map;
bm               1157 kernel/power/snapshot.c 		memory_bm_position_reset(bm);
bm               1158 kernel/power/snapshot.c 		pfn = memory_bm_next_pfn(bm);
bm               1163 kernel/power/snapshot.c 			pfn = memory_bm_next_pfn(bm);
bm               1165 kernel/power/snapshot.c 		memory_bm_position_reset(bm);
bm               1910 kernel/power/snapshot.c static inline unsigned int alloc_highmem_pages(struct memory_bitmap *bm,
bm               1923 kernel/power/snapshot.c 		memory_bm_set_bit(bm, page_to_pfn(page));
bm               1930 kernel/power/snapshot.c static inline unsigned int alloc_highmem_pages(struct memory_bitmap *bm,
bm               2066 kernel/power/snapshot.c static inline void pack_pfns(unsigned long *buf, struct memory_bitmap *bm)
bm               2071 kernel/power/snapshot.c 		buf[j] = memory_bm_next_pfn(bm);
bm               2161 kernel/power/snapshot.c static void mark_unsafe_pages(struct memory_bitmap *bm)
bm               2174 kernel/power/snapshot.c 	duplicate_memory_bitmap(free_pages_map, bm);
bm               2217 kernel/power/snapshot.c static int unpack_orig_pfns(unsigned long *buf, struct memory_bitmap *bm)
bm               2228 kernel/power/snapshot.c 		if (pfn_valid(buf[j]) && memory_bm_pfn_present(bm, buf[j]))
bm               2229 kernel/power/snapshot.c 			memory_bm_set_bit(bm, buf[j]);
bm               2263 kernel/power/snapshot.c static unsigned int count_highmem_image_pages(struct memory_bitmap *bm)
bm               2268 kernel/power/snapshot.c 	memory_bm_position_reset(bm);
bm               2269 kernel/power/snapshot.c 	pfn = memory_bm_next_pfn(bm);
bm               2274 kernel/power/snapshot.c 		pfn = memory_bm_next_pfn(bm);
bm               2296 kernel/power/snapshot.c static int prepare_highmem_image(struct memory_bitmap *bm,
bm               2301 kernel/power/snapshot.c 	if (memory_bm_create(bm, GFP_ATOMIC, PG_SAFE))
bm               2320 kernel/power/snapshot.c 			memory_bm_set_bit(bm, page_to_pfn(page));
bm               2327 kernel/power/snapshot.c 	memory_bm_position_reset(bm);
bm               2328 kernel/power/snapshot.c 	safe_highmem_bm = bm;
bm               2429 kernel/power/snapshot.c static unsigned int count_highmem_image_pages(struct memory_bitmap *bm) { return 0; }
bm               2431 kernel/power/snapshot.c static inline int prepare_highmem_image(struct memory_bitmap *bm,
bm               2462 kernel/power/snapshot.c static int prepare_image(struct memory_bitmap *new_bm, struct memory_bitmap *bm)
bm               2472 kernel/power/snapshot.c 	nr_highmem = count_highmem_image_pages(bm);
bm               2473 kernel/power/snapshot.c 	mark_unsafe_pages(bm);
bm               2479 kernel/power/snapshot.c 	duplicate_memory_bitmap(new_bm, bm);
bm               2480 kernel/power/snapshot.c 	memory_bm_free(bm, PG_UNSAFE_KEEP);
bm               2482 kernel/power/snapshot.c 		error = prepare_highmem_image(bm, &nr_highmem);
bm               2538 kernel/power/snapshot.c static void *get_buffer(struct memory_bitmap *bm, struct chain_allocator *ca)
bm               2542 kernel/power/snapshot.c 	unsigned long pfn = memory_bm_next_pfn(bm);
bm                 12 lib/ashldi3.c  	word_type bm;
bm                 18 lib/ashldi3.c  	bm = 32 - b;
bm                 20 lib/ashldi3.c  	if (bm <= 0) {
bm                 22 lib/ashldi3.c  		w.s.high = (unsigned int) uu.s.low << -bm;
bm                 24 lib/ashldi3.c  		const unsigned int carries = (unsigned int) uu.s.low >> bm;
bm                 12 lib/ashrdi3.c  	word_type bm;
bm                 18 lib/ashrdi3.c  	bm = 32 - b;
bm                 20 lib/ashrdi3.c  	if (bm <= 0) {
bm                 24 lib/ashrdi3.c  		w.s.low = uu.s.high >> -bm;
bm                 26 lib/ashrdi3.c  		const unsigned int carries = (unsigned int) uu.s.high << bm;
bm                 12 lib/lshrdi3.c  	word_type bm;
bm                 18 lib/lshrdi3.c  	bm = 32 - b;
bm                 20 lib/lshrdi3.c  	if (bm <= 0) {
bm                 22 lib/lshrdi3.c  		w.s.low = (unsigned int) uu.s.high >> -bm;
bm                 24 lib/lshrdi3.c  		const unsigned int carries = (unsigned int) uu.s.high << bm;
bm                 60 lib/ts_bm.c    	struct ts_bm *bm = ts_config_priv(conf);
bm                 63 lib/ts_bm.c    	int shift = bm->patlen - 1, bs;
bm                 75 lib/ts_bm.c    			for (i = 0; i < bm->patlen; i++) 
bm                 78 lib/ts_bm.c    					!= bm->pattern[bm->patlen-1-i])
bm                 83 lib/ts_bm.c    			return consumed += (shift-(bm->patlen-1));
bm                 85 lib/ts_bm.c    next:			bs = bm->bad_shift[text[shift-i]];
bm                 88 lib/ts_bm.c    			shift = max_t(int, shift-i+bs, shift+bm->good_shift[i]);
bm                114 lib/ts_bm.c    static void compute_prefix_tbl(struct ts_bm *bm, int flags)
bm                119 lib/ts_bm.c    		bm->bad_shift[i] = bm->patlen;
bm                120 lib/ts_bm.c    	for (i = 0; i < bm->patlen - 1; i++) {
bm                121 lib/ts_bm.c    		bm->bad_shift[bm->pattern[i]] = bm->patlen - 1 - i;
bm                123 lib/ts_bm.c    			bm->bad_shift[tolower(bm->pattern[i])]
bm                124 lib/ts_bm.c    			    = bm->patlen - 1 - i;
bm                129 lib/ts_bm.c    	bm->good_shift[0] = 1;
bm                130 lib/ts_bm.c    	for (i = 1; i < bm->patlen; i++)
bm                131 lib/ts_bm.c    		bm->good_shift[i] = bm->patlen;
bm                132 lib/ts_bm.c            for (i = bm->patlen-1, g = 1; i > 0; g++, i--) {
bm                134 lib/ts_bm.c    			if (subpattern(bm->pattern, i, j, g)) {
bm                135 lib/ts_bm.c    				bm->good_shift[g] = bm->patlen-j-g;
bm                145 lib/ts_bm.c    	struct ts_bm *bm;
bm                148 lib/ts_bm.c    	size_t priv_size = sizeof(*bm) + len + prefix_tbl_len;
bm                155 lib/ts_bm.c    	bm = ts_config_priv(conf);
bm                156 lib/ts_bm.c    	bm->patlen = len;
bm                157 lib/ts_bm.c    	bm->pattern = (u8 *) bm->good_shift + prefix_tbl_len;
bm                160 lib/ts_bm.c    			bm->pattern[i] = toupper(((u8 *)pattern)[i]);
bm                162 lib/ts_bm.c    		memcpy(bm->pattern, pattern, len);
bm                163 lib/ts_bm.c    	compute_prefix_tbl(bm, flags);
bm                170 lib/ts_bm.c    	struct ts_bm *bm = ts_config_priv(conf);
bm                171 lib/ts_bm.c    	return bm->pattern;
bm                176 lib/ts_bm.c    	struct ts_bm *bm = ts_config_priv(conf);
bm                177 lib/ts_bm.c    	return bm->patlen;
bm               1602 mm/mempolicy.c 	DECLARE_BITMAP(bm, MAX_NUMNODES);
bm               1614 mm/mempolicy.c 		copy_size = min_t(unsigned long, sizeof(bm), alloc_size);
bm               1615 mm/mempolicy.c 		err = copy_from_user(bm, nm, copy_size);
bm               1618 mm/mempolicy.c 		err |= compat_put_bitmap(nmask, bm, nr_bits);
bm               1629 mm/mempolicy.c 	DECLARE_BITMAP(bm, MAX_NUMNODES);
bm               1635 mm/mempolicy.c 		if (compat_get_bitmap(bm, nmask, nr_bits))
bm               1638 mm/mempolicy.c 		if (copy_to_user(nm, bm, alloc_size))
bm               1651 mm/mempolicy.c 	nodemask_t bm;
bm               1657 mm/mempolicy.c 		if (compat_get_bitmap(nodes_addr(bm), nmask, nr_bits))
bm               1660 mm/mempolicy.c 		if (copy_to_user(nm, nodes_addr(bm), alloc_size))
bm                237 net/bridge/br.c 			    struct br_boolopt_multi *bm,
bm                240 net/bridge/br.c 	unsigned long bitmap = bm->optmask;
bm                245 net/bridge/br.c 		bool on = !!(bm->optval & BIT(opt_id));
bm                259 net/bridge/br.c 			  struct br_boolopt_multi *bm)
bm                267 net/bridge/br.c 	bm->optval = optval;
bm                268 net/bridge/br.c 	bm->optmask = GENMASK((BR_BOOLOPT_MAX - 1), 0);
bm               1297 net/bridge/br_netlink.c 		struct br_boolopt_multi *bm;
bm               1299 net/bridge/br_netlink.c 		bm = nla_data(data[IFLA_BR_MULTI_BOOLOPT]);
bm               1300 net/bridge/br_netlink.c 		err = br_boolopt_multi_toggle(br, bm, extack);
bm               1397 net/bridge/br_netlink.c 	struct br_boolopt_multi bm;
bm               1414 net/bridge/br_netlink.c 	br_boolopt_multi_get(br, &bm);
bm               1433 net/bridge/br_netlink.c 	    nla_put(skb, IFLA_BR_MULTI_BOOLOPT, sizeof(bm), &bm))
bm                508 net/bridge/br_private.h 			    struct br_boolopt_multi *bm,
bm                511 net/bridge/br_private.h 			  struct br_boolopt_multi *bm);
bm                230 scripts/sign-file.c 	BIO *bd, *bm;
bm                290 scripts/sign-file.c 	bm = BIO_new_file(module_name, "rb");
bm                291 scripts/sign-file.c 	ERR(!bm, "%s", module_name);
bm                318 scripts/sign-file.c 		ERR(CMS_final(cms, bm, NULL, CMS_NOCERTS | CMS_BINARY) < 0,
bm                322 scripts/sign-file.c 		pkcs7 = PKCS7_sign(x509, private_key, NULL, bm,
bm                347 scripts/sign-file.c 			BIO_free(bm);
bm                359 scripts/sign-file.c 	ERR(BIO_reset(bm) < 0, "%s", module_name);
bm                360 scripts/sign-file.c 	while ((n = BIO_read(bm, buf, sizeof(buf))),
bm                364 scripts/sign-file.c 	BIO_free(bm);
bm                 88 sound/pci/ctxfi/cthardware.h 	int (*src_set_bm)(void *blk, unsigned int bm);
bm                185 sound/pci/ctxfi/cthw20k1.c static int src_set_bm(void *blk, unsigned int bm)
bm                189 sound/pci/ctxfi/cthw20k1.c 	set_field(&ctl->ctl, SRCCTL_BM, bm);
bm                185 sound/pci/ctxfi/cthw20k2.c static int src_set_bm(void *blk, unsigned int bm)
bm                189 sound/pci/ctxfi/cthw20k2.c 	set_field(&ctl->ctl, SRCCTL_BM, bm);
bm                 44 sound/pci/ctxfi/ctsrc.c static int src_set_bm(struct src *src, unsigned int bm)
bm                 49 sound/pci/ctxfi/ctsrc.c 	hw->src_set_bm(src->rsc.ctrl_blk, bm);
bm                 55 sound/pci/ctxfi/ctsrc.h 	int (*set_bm)(struct src *src, unsigned int bm);
bm                852 sound/soc/codecs/tscs42xx.c 	unsigned int br, bm;
bm                858 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_PT25;
bm                862 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_PT5;
bm                866 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_PT5;
bm                870 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_1;
bm                874 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_1;
bm                878 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_2;
bm                882 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_PT25;
bm                886 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_PT5;
bm                890 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_1;
bm                894 sound/soc/codecs/tscs42xx.c 		bm = RV_DACSR_DBM_2;
bm                910 sound/soc/codecs/tscs42xx.c 			R_DACSR, RM_DACSR_DBM, bm);
bm                924 sound/soc/codecs/tscs42xx.c 			R_ADCSR, RM_DACSR_DBM, bm);
bm               3046 sound/soc/codecs/tscs454.c 	unsigned int bm;
bm               3052 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_0PT25;
bm               3056 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_0PT5;
bm               3060 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_0PT5;
bm               3064 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_1;
bm               3068 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_1;
bm               3072 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_2;
bm               3076 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_0PT25;
bm               3080 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_0PT5;
bm               3084 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_1;
bm               3088 sound/soc/codecs/tscs454.c 		bm = FV_I2SMBM_2;
bm               3113 sound/soc/codecs/tscs454.c 			FM_I2SMRATE_I2SMBR | FM_I2SMRATE_I2SMBM, br|bm);
bm                 14 tools/perf/tests/bitmap.c 	unsigned long *bm = NULL;
bm                 17 tools/perf/tests/bitmap.c 	bm = bitmap_alloc(nbits);
bm                 19 tools/perf/tests/bitmap.c 	if (map && bm) {
bm                 21 tools/perf/tests/bitmap.c 			set_bit(map->map[i], bm);
bm                 26 tools/perf/tests/bitmap.c 	return bm;
bm                 31 tools/perf/tests/bitmap.c 	unsigned long *bm = get_bitmap(str, NBITS);
bm                 35 tools/perf/tests/bitmap.c 	bitmap_scnprintf(bm, NBITS, buf, sizeof(buf));
bm                 39 tools/perf/tests/bitmap.c 	free(bm);
bm                 27 tools/perf/tests/mem2node.c 	unsigned long *bm = NULL;
bm                 30 tools/perf/tests/mem2node.c 	bm = bitmap_alloc(nbits);
bm                 32 tools/perf/tests/mem2node.c 	if (map && bm) {
bm                 34 tools/perf/tests/mem2node.c 			set_bit(map->map[i], bm);
bm                 41 tools/perf/tests/mem2node.c 		free(bm);
bm                 43 tools/perf/tests/mem2node.c 	return bm && map ? bm : NULL;