arch/arm64/kvm/pmu-emul.c
869
unsigned long *bmap = vcpu->kvm->arch.pmu_filter;
arch/arm64/kvm/pmu-emul.c
881
if (!bmap)
arch/arm64/kvm/pmu-emul.c
889
byte = bitmap_get_value8(bmap, base + i);
arch/arm64/kvm/pmu-emul.c
892
byte = bitmap_get_value8(bmap, 0x4000 + base + i);
arch/riscv/kernel/cpufeature.c
75
const unsigned long *bmap = (isa_bitmap) ? isa_bitmap : riscv_isa;
arch/riscv/kernel/cpufeature.c
80
return test_bit(bit, bmap);
arch/riscv/kernel/vendor_extensions.c
46
struct riscv_isavendorinfo *bmap;
arch/riscv/kernel/vendor_extensions.c
52
bmap = &riscv_isa_vendor_ext_list_andes.all_harts_isa_bitmap;
arch/riscv/kernel/vendor_extensions.c
58
bmap = &riscv_isa_vendor_ext_list_mips.all_harts_isa_bitmap;
arch/riscv/kernel/vendor_extensions.c
64
bmap = &riscv_isa_vendor_ext_list_sifive.all_harts_isa_bitmap;
arch/riscv/kernel/vendor_extensions.c
70
bmap = &riscv_isa_vendor_ext_list_thead.all_harts_isa_bitmap;
arch/riscv/kernel/vendor_extensions.c
79
bmap = &cpu_bmap[cpu];
arch/riscv/kernel/vendor_extensions.c
84
return test_bit(bit, bmap->isa);
arch/sparc/include/asm/io-unit.h
45
unsigned long bmap[(IOUNIT_DMA_SIZE >> (PAGE_SHIFT + 3)) / sizeof(unsigned long)];
arch/sparc/mm/io-unit.c
119
nexti: scan = find_next_zero_bit(iounit->bmap, limit, scan);
arch/sparc/mm/io-unit.c
133
if (test_bit(scan++, iounit->bmap))
arch/sparc/mm/io-unit.c
140
set_bit(scan, iounit->bmap);
arch/sparc/mm/io-unit.c
194
clear_bit(vaddr, iounit->bmap);
arch/sparc/mm/io-unit.c
212
clear_bit(vaddr, iounit->bmap);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1102
bitmap_copy(engs->bmap, tmp_bmap.bits, eng_grp->g->engs_num);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1120
bitmap_copy(tmp_bmap.bits, mirrored_engs->bmap,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1123
bit = find_first_bit(mirrored_engs->bmap,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1127
bitmap_or(engs->bmap, engs->bmap, tmp_bmap.bits,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1603
kfree(grp->engs[j].bmap);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1604
grp->engs[j].bmap = NULL;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1640
grp->engs[j].bmap =
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
1643
if (!grp->engs[j].bmap) {
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
181
struct otx_cpt_bitmap bmap;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
184
bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
185
if (!bmap.size)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
198
for_each_set_bit(i, bmap.bits, bmap.size)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
209
struct otx_cpt_bitmap bmap = { {0} };
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
214
bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
215
if (!bmap.size)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
220
for_each_set_bit(i, bmap.bits, bmap.size) {
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
236
for_each_set_bit(i, bmap.bits, bmap.size)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
245
for_each_set_bit(i, bmap.bits, bmap.size)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
257
struct otx_cpt_bitmap bmap;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
261
bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
262
if (!bmap.size)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
267
for_each_set_bit(i, bmap.bits, bmap.size) {
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
277
for_each_set_bit(i, bmap.bits, bmap.size)
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
575
struct otx_cpt_bitmap bmap;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
578
bmap = get_cores_bmap(dev, eng_grp);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
579
if (!bmap.size) {
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
583
bitmap_to_arr32(mask, bmap.bits, bmap.size);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
62
struct otx_cpt_bitmap bmap = { {0} };
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
626
bitmap_to_arr32(mask, engs->bmap,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
69
return bmap;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
703
bitmap_zero(grp->engs[i].bmap, grp->g->engs_num);
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
74
bitmap_or(bmap.bits, bmap.bits,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
75
eng_grp->engs[i].bmap,
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
77
bmap.size = eng_grp->g->engs_num;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.c
85
return bmap;
drivers/crypto/marvell/octeontx/otx_cptpf_ucode.h
114
unsigned long *bmap; /* attached engines bitmap */
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
1366
kfree(grp->engs[j].bmap);
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
1367
grp->engs[j].bmap = NULL;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
1402
grp->engs[j].bmap =
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
1405
if (!grp->engs[j].bmap) {
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
197
for_each_set_bit(bit, engs->bmap, eng_grp->g->engs_num)
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
223
struct otx2_cpt_bitmap bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
231
for_each_set_bit(i, bmap.bits, bmap.size) {
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
257
for_each_set_bit(i, bmap.bits, bmap.size) {
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
273
for_each_set_bit(i, bmap.bits, bmap.size) {
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
291
struct otx2_cpt_bitmap bmap;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
294
bmap = get_cores_bmap(&cptpf->pdev->dev, eng_grp);
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
295
if (!bmap.size)
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
299
ret = cptx_detach_and_disable_cores(eng_grp, cptpf, bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
304
return cptx_detach_and_disable_cores(eng_grp, cptpf, bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
310
struct otx2_cpt_bitmap bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
317
for_each_set_bit(i, bmap.bits, bmap.size) {
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
337
for_each_set_bit(i, bmap.bits, bmap.size) {
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
34
struct otx2_cpt_bitmap bmap = { {0} };
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
351
struct otx2_cpt_bitmap bmap;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
354
bmap = get_cores_bmap(&cptpf->pdev->dev, eng_grp);
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
355
if (!bmap.size)
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
359
ret = cptx_attach_and_enable_cores(eng_grp, cptpf, bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
364
return cptx_attach_and_enable_cores(eng_grp, cptpf, bmap, BLKADDR_CPT0);
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
42
return bmap;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
47
bitmap_or(bmap.bits, bmap.bits,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
48
eng_grp->engs[i].bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
50
bmap.size = eng_grp->g->engs_num;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
58
return bmap;
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
582
bitmap_zero(grp->engs[i].bmap, grp->g->engs_num);
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
903
bitmap_copy(engs->bmap, tmp_bmap.bits, eng_grp->g->engs_num);
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
921
bitmap_copy(tmp_bmap.bits, mirrored_engs->bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
924
bit = find_first_bit(mirrored_engs->bmap,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.c
928
bitmap_or(engs->bmap, engs->bmap, tmp_bmap.bits,
drivers/crypto/marvell/octeontx2/otx2_cptpf_ucode.h
109
unsigned long *bmap; /* attached engines bitmap */
drivers/dma/idxd/cdev.c
345
set_bit(h, evl->bmap);
drivers/dma/idxd/device.c
770
unsigned long *bmap;
drivers/dma/idxd/device.c
778
bmap = bitmap_zalloc(size, GFP_KERNEL);
drivers/dma/idxd/device.c
779
if (!bmap) {
drivers/dma/idxd/device.c
798
evl->bmap = bmap;
drivers/dma/idxd/device.c
819
bitmap_free(bmap);
drivers/dma/idxd/device.c
848
bitmap_free(evl->bmap);
drivers/dma/idxd/idxd.h
303
unsigned long *bmap;
drivers/dma/idxd/idxd.h
760
void multi_u64_to_bmap(unsigned long *bmap, u64 *val, int count);
drivers/dma/idxd/init.c
516
void multi_u64_to_bmap(unsigned long *bmap, u64 *val, int count)
drivers/dma/idxd/init.c
523
set_bit(nr, bmap);
drivers/dma/idxd/irq.c
318
if (test_bit(index, evl->bmap)) {
drivers/dma/idxd/irq.c
319
clear_bit(index, evl->bmap);
drivers/gpio/gpio-usbio.c
205
for (bank = 0; bank < USBIO_MAX_GPIOBANKS && bank_desc[bank].bmap; bank++)
drivers/gpio/gpio-usbio.c
206
gpio->banks[bank].bitmap = le32_to_cpu(bank_desc[bank].bmap);
drivers/gpu/drm/amd/amdgpu/amdgpu_utils.h
45
DECLARE_BITMAP(bmap, NAME##_BITMAP_BITS); \
drivers/gpu/drm/amd/amdgpu/amdgpu_utils.h
50
{ if (c) bitmap_zero(c->bmap, NAME##_BITMAP_BITS); } \
drivers/gpu/drm/amd/amdgpu/amdgpu_utils.h
60
bitmap_write(c->bmap, (unsigned long)attr, \
drivers/gpu/drm/amd/amdgpu/amdgpu_utils.h
72
v = bitmap_read(c->bmap, NAME##_ATTR_START(cap), AMDGPU_CAP_ATTR_BITS); \
drivers/hid/hid-oxp.c
571
static void oxp_set_defaults_bmap_1(struct oxp_bmap_page_1 *bmap)
drivers/hid/hid-oxp.c
573
bmap->btn_a.button_idx = BUTTON_A;
drivers/hid/hid-oxp.c
574
bmap->btn_a.mapping_idx = 0;
drivers/hid/hid-oxp.c
575
bmap->btn_b.button_idx = BUTTON_B;
drivers/hid/hid-oxp.c
576
bmap->btn_b.mapping_idx = 1;
drivers/hid/hid-oxp.c
577
bmap->btn_x.button_idx = BUTTON_X;
drivers/hid/hid-oxp.c
578
bmap->btn_x.mapping_idx = 2;
drivers/hid/hid-oxp.c
579
bmap->btn_y.button_idx = BUTTON_Y;
drivers/hid/hid-oxp.c
580
bmap->btn_y.mapping_idx = 3;
drivers/hid/hid-oxp.c
581
bmap->btn_lb.button_idx = BUTTON_LB;
drivers/hid/hid-oxp.c
582
bmap->btn_lb.mapping_idx = 4;
drivers/hid/hid-oxp.c
583
bmap->btn_rb.button_idx = BUTTON_RB;
drivers/hid/hid-oxp.c
584
bmap->btn_rb.mapping_idx = 5;
drivers/hid/hid-oxp.c
585
bmap->btn_lt.button_idx = BUTTON_LT;
drivers/hid/hid-oxp.c
586
bmap->btn_lt.mapping_idx = 6;
drivers/hid/hid-oxp.c
587
bmap->btn_rt.button_idx = BUTTON_RT;
drivers/hid/hid-oxp.c
588
bmap->btn_rt.mapping_idx = 7;
drivers/hid/hid-oxp.c
589
bmap->btn_start.button_idx = BUTTON_START;
drivers/hid/hid-oxp.c
590
bmap->btn_start.mapping_idx = 8;
drivers/hid/hid-oxp.c
593
static void oxp_set_defaults_bmap_2(struct oxp_bmap_page_2 *bmap)
drivers/hid/hid-oxp.c
595
bmap->btn_select.button_idx = BUTTON_SELECT;
drivers/hid/hid-oxp.c
596
bmap->btn_select.mapping_idx = 9;
drivers/hid/hid-oxp.c
597
bmap->btn_l3.button_idx = BUTTON_L3;
drivers/hid/hid-oxp.c
598
bmap->btn_l3.mapping_idx = 10;
drivers/hid/hid-oxp.c
599
bmap->btn_r3.button_idx = BUTTON_R3;
drivers/hid/hid-oxp.c
600
bmap->btn_r3.mapping_idx = 11;
drivers/hid/hid-oxp.c
601
bmap->btn_dup.button_idx = BUTTON_DUP;
drivers/hid/hid-oxp.c
602
bmap->btn_dup.mapping_idx = 12;
drivers/hid/hid-oxp.c
603
bmap->btn_ddown.button_idx = BUTTON_DDOWN;
drivers/hid/hid-oxp.c
604
bmap->btn_ddown.mapping_idx = 13;
drivers/hid/hid-oxp.c
605
bmap->btn_dleft.button_idx = BUTTON_DLEFT;
drivers/hid/hid-oxp.c
606
bmap->btn_dleft.mapping_idx = 14;
drivers/hid/hid-oxp.c
607
bmap->btn_dright.button_idx = BUTTON_DRIGHT;
drivers/hid/hid-oxp.c
608
bmap->btn_dright.mapping_idx = 15;
drivers/hid/hid-oxp.c
609
bmap->btn_m1.button_idx = BUTTON_M1;
drivers/hid/hid-oxp.c
610
bmap->btn_m1.mapping_idx = 48; /* KEY_F15 */
drivers/hid/hid-oxp.c
611
bmap->btn_m2.button_idx = BUTTON_M2;
drivers/hid/hid-oxp.c
612
bmap->btn_m2.mapping_idx = 49; /* KEY_F16 */
drivers/md/md-bitmap.c
583
ret = bmap(inode, &block);
drivers/media/mc/mc-entity.c
68
ent_enum->bmap = bitmap_zalloc(idx_max, GFP_KERNEL);
drivers/media/mc/mc-entity.c
69
if (!ent_enum->bmap)
drivers/media/mc/mc-entity.c
80
bitmap_free(ent_enum->bmap);
drivers/mfd/dln2.c
362
*slot = find_first_zero_bit(rxs->bmap, DLN2_MAX_RX_SLOTS);
drivers/mfd/dln2.c
367
set_bit(*slot, rxs->bmap);
drivers/mfd/dln2.c
404
clear_bit(slot, rxs->bmap);
drivers/mfd/dln2.c
81
DECLARE_BITMAP(bmap, DLN2_MAX_RX_SLOTS);
drivers/misc/bcm-vk/bcm_vk.h
385
DECLARE_BITMAP(bmap, VK_MSG_ID_BITMAP_SIZE);
drivers/misc/bcm-vk/bcm_vk_dev.c
1134
bitmap_clear(vk->bmap, 0, VK_MSG_ID_BITMAP_SIZE);
drivers/misc/bcm-vk/bcm_vk_msg.c
203
bitmap_clear(vk->bmap, start, nbits);
drivers/misc/bcm-vk/bcm_vk_msg.c
278
if (test_bit(vk->msg_id, vk->bmap)) {
drivers/misc/bcm-vk/bcm_vk_msg.c
283
bitmap_set(vk->bmap, vk->msg_id, 1);
drivers/misc/bcm-vk/bcm_vk_msg.c
377
bit_set = test_bit(msg_id, vk->bmap);
drivers/misc/bcm-vk/bcm_vk_msg.c
906
test_bit(msg_id, vk->bmap));
drivers/net/ethernet/broadcom/bnxt/bnxt.c
5783
int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp, unsigned long *bmap, int bmap_size,
drivers/net/ethernet/broadcom/bnxt/bnxt.c
5859
if (bmap && bmap_size) {
drivers/net/ethernet/broadcom/bnxt/bnxt.c
5861
if (test_bit(i, bmap))
drivers/net/ethernet/broadcom/bnxt/bnxt.h
2970
int bnxt_hwrm_func_drv_rgtr(struct bnxt *bp, unsigned long *bmap,
drivers/net/ethernet/brocade/bna/bnad.c
2428
u32 bmap;
drivers/net/ethernet/brocade/bna/bnad.c
2450
bmap = bna_rx_rid_mask(&bnad->bna);
drivers/net/ethernet/brocade/bna/bnad.c
2451
for (i = 0; bmap; i++) {
drivers/net/ethernet/brocade/bna/bnad.c
2452
if (bmap & 1) {
drivers/net/ethernet/brocade/bna/bnad.c
2458
bmap >>= 1;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
602
u32 bmap;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
614
bmap = bna_tx_rid_mask(&bnad->bna);
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
615
for (i = 0; bmap; i++) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
616
if (bmap & 1)
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
618
bmap >>= 1;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
621
bmap = bna_rx_rid_mask(&bnad->bna);
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
622
for (i = 0; bmap; i++, bmap >>= 1) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
623
if (bmap & 1)
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
625
bmap >>= 1;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
665
u32 bmap;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
667
bmap = bna_tx_rid_mask(&bnad->bna);
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
668
for (i = 0; bmap; i++) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
669
if (bmap & 1)
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
671
bmap >>= 1;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
673
bmap = bna_rx_rid_mask(&bnad->bna);
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
674
for (i = 0; bmap; i++) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
675
if (bmap & 1)
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
677
bmap >>= 1;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
800
u32 bmap;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
850
bmap = bna_tx_rid_mask(&bnad->bna);
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
851
for (i = 0; bmap; i++) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
852
if (bmap & 1) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
859
bmap >>= 1;
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
863
bmap = bna_rx_rid_mask(&bnad->bna);
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
864
for (i = 0; bmap; i++) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
865
if (bmap & 1) {
drivers/net/ethernet/brocade/bna/bnad_ethtool.c
872
bmap >>= 1;
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
1095
unsigned long *bmap; /* Bitmap for managing filters in use */
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
1720
if (!test_bit(loc, adap->ethtool_filters->port[pi->port_id].bmap))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
1848
if (!test_bit(cmd->fs.location, filter_info->bmap))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
1863
clear_bit(cmd->fs.location, filter_info->bmap);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
1897
adapter->ethtool_filters->port[pi->port_id].bmap))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
1924
set_bit(cmd->fs.location, filter_info->bmap);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
2237
bitmap_free(eth_filter_info[i].bmap);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
2278
eth_filter->port[i].bmap = bitmap_zalloc(nentries, GFP_KERNEL);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
2279
if (!eth_filter->port[i].bmap) {
drivers/net/ethernet/chelsio/cxgb4/cxgb4_ethtool.c
2291
bitmap_free(eth_filter->port[i].bmap);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
553
unsigned long *bmap;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
619
bmap = t->hpftid_bmap;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
658
bmap = t->ftid_bmap;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_filter.c
664
if (test_bit(bmap_ftid + i, bmap))
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5862
struct msix_bmap *bmap = &adap->msix_bmap;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5866
spin_lock_irqsave(&bmap->lock, flags);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5867
msix_idx = find_first_zero_bit(bmap->msix_bmap, bmap->mapsize);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5868
if (msix_idx < bmap->mapsize) {
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5869
__set_bit(msix_idx, bmap->msix_bmap);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5871
spin_unlock_irqrestore(&bmap->lock, flags);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5875
spin_unlock_irqrestore(&bmap->lock, flags);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5882
struct msix_bmap *bmap = &adap->msix_bmap;
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5885
spin_lock_irqsave(&bmap->lock, flags);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5886
__clear_bit(msix_idx, bmap->msix_bmap);
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c
5887
spin_unlock_irqrestore(&bmap->lock, flags);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
100
bitmap_set(bmap, i, nr);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
133
i = ppm_find_unused_entries(pool->bmap, ppm->pool_index_max,
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
204
bitmap_clear(pool->bmap, i, count);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
351
unsigned int bmap;
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
361
bmap = ppmax / BITS_PER_TYPE(unsigned long);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
362
if (!bmap)
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
365
ppmax = (bmap * sizeof(unsigned long)) << 3;
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
367
alloc_sz = sizeof(*pools) + sizeof(unsigned long) * bmap;
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
84
static int ppm_find_unused_entries(unsigned long *bmap,
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
92
i = bitmap_find_next_zero_area(bmap, max_ppods, start, nr, align_mask);
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.c
95
i = bitmap_find_next_zero_area(bmap, max_ppods, 0, start - 1,
drivers/net/ethernet/chelsio/libcxgb/libcxgb_ppm.h
125
unsigned long bmap[];
drivers/net/ethernet/freescale/dpaa2/dpsw.c
12
static void build_if_id_bitmap(__le64 *bmap, const u16 *id, const u16 num_ifs)
drivers/net/ethernet/freescale/dpaa2/dpsw.c
18
bmap[id[i] / 64] |= cpu_to_le64(BIT_MASK(id[i] % 64));
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
1761
set_bit(0, lmac->mac_to_index_bmap.bmap);
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
381
set_bit(0, lmac->mac_to_index_bmap.bmap);
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
419
if (!test_bit(index, lmac->mac_to_index_bmap.bmap))
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
675
if (!bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max))
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
963
clear_bit(pfvf_idx, lmac->rx_fc_pfvf_bmap.bmap);
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
965
set_bit(pfvf_idx, lmac->rx_fc_pfvf_bmap.bmap);
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
968
clear_bit(pfvf_idx, lmac->tx_fc_pfvf_bmap.bmap);
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
970
set_bit(pfvf_idx, lmac->tx_fc_pfvf_bmap.bmap);
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
973
if (!rx_pause && bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max)) {
drivers/net/ethernet/marvell/octeontx2/af/cgx.c
979
if (!tx_pause && bitmap_weight(lmac->tx_fc_pfvf_bmap.bmap, lmac->tx_fc_pfvf_bmap.max)) {
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1862
unsigned long *bmap,
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1877
offset = bitmap_find_next_zero_area(bmap, sbd, sidx - b,
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1904
if (test_bit(k, bmap)) {
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1929
unsigned long *bmap,
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1944
index = find_next_zero_bit(bmap, sbd, sidx - b);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1949
bitmap_weight(bmap, sbd),
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1956
if (test_bit(k, bmap))
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1967
if (test_bit(k, bmap))
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
1994
int sb_off, unsigned long **bmap,
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2002
*bmap = (sb_off >= sbd) ? sb->b1map : sb->b0map;
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2010
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2016
__npc_subbank_sboff_2_off(rvu, sb, sb_off, &bmap, &off);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2024
if (test_bit(off, bmap))
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2028
set_bit(off, bmap);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2033
if (!test_bit(off, bmap))
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2037
clear_bit(off, bmap);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2117
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2124
__npc_subbank_sboff_2_off(rvu, sb, sb_off, &bmap, &off);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2165
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2272
bmap = sb->b1map;
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2276
bmap = sb->b0map;
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2282
bw = bitmap_weight(bmap, npc_priv->subbank_depth);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2311
bmap, save);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2322
t, b, bmap,
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2697
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2741
__npc_subbank_sboff_2_off(rvu, sb, sb_off, &bmap, &off);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2744
bitset = test_bit(off, bmap);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2759
set_bit(off, bmap);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2803
__npc_subbank_sboff_2_off(rvu, sb, sb_off, &bmap, &off);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2804
bitset = test_bit(off, bmap);
drivers/net/ethernet/marvell/octeontx2/af/cn20k/npc.c
2820
set_bit(off, bmap);
drivers/net/ethernet/marvell/octeontx2/af/mbox.h
122
int direction, int ndevs, unsigned long *bmap);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
501
__set_bit(flow_id, mcs->rx.flow_ids.bmap);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
502
__set_bit(flow_id, mcs->tx.flow_ids.bmap);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
514
__set_bit(secy_id, mcs->rx.secy.bmap);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
515
__set_bit(secy_id, mcs->tx.secy.bmap);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
569
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
572
rsrc_id = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, offset, 1, 0);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
576
bitmap_set(rsrc->bmap, rsrc_id, 1);
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
822
for_each_set_bit(sc, sc_bmap->bmap, mcs->hw->sc_entries) {
drivers/net/ethernet/marvell/octeontx2/af/mcs.c
854
for_each_set_bit(sc, sc_bmap->bmap, mcs->hw->sc_entries) {
drivers/net/ethernet/marvell/octeontx2/af/mcs_cnf10kb.c
171
for_each_set_bit(sc, sc_bmap->bmap, mcs->hw->sc_entries) {
drivers/net/ethernet/marvell/octeontx2/af/mcs_cnf10kb.c
204
for_each_set_bit(sc, sc_bmap->bmap, mcs->hw->sc_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rpm.c
181
if (!bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max))
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1127
if (!block->lf.bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
133
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
136
id = find_first_zero_bit(rsrc->bmap, rsrc->max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
140
__set_bit(id, rsrc->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1474
if (!block->lf.bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
149
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
152
start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
156
bitmap_set(rsrc->bmap, start, nrsrc);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1603
if (!block->lf.bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
162
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
167
bitmap_clear(rsrc->bmap, start, nrsrc);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
174
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
177
start = bitmap_find_next_zero_area(rsrc->bmap, rsrc->max, 0, nrsrc, 0);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
186
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
189
__clear_bit(id, rsrc->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
1939
if (!pfvf->msix.bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
196
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
199
used = bitmap_weight(rsrc->bmap, rsrc->max);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
205
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
208
return !test_bit(id, rsrc->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
213
rsrc->bmap = kcalloc(BITS_TO_LONGS(rsrc->max),
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
215
if (!rsrc->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
222
kfree(rsrc->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
562
__set_bit(lf, block->lf.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
758
kfree(block->lf.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
764
kfree(pfvf->msix.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.c
769
kfree(pfvf->msix.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
124
unsigned long *bmap; /* Pointer to resource bitmap */
drivers/net/ethernet/marvell/octeontx2/af/rvu.h
214
unsigned long *bmap; /* bitmap, 0 => bmap_entries */
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
253
for_each_set_bit(sa_id, map->bmap, mcs->hw->sa_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2540
unsigned long *bmap, char *qtype)
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
2543
seq_printf(filp, "%s context ena/dis bitmap : %*pb\n", qtype, qsize, bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
269
for_each_set_bit(sa_id, map->bmap, mcs->hw->sa_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
307
for_each_set_bit(sc_id, map->bmap, mcs->hw->sc_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
337
for_each_set_bit(sc_id, map->bmap, mcs->hw->sc_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
378
for_each_set_bit(flow_id, map->bmap, mcs->hw->tcam_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
3902
if (!block->lf.bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
411
for_each_set_bit(secy_id, map->bmap, mcs->hw->secy_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
454
for_each_set_bit(secy_id, map->bmap, mcs->hw->secy_entries) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c
654
for_each_set_bit(lf, block->lf.bmap, block->lf.max) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1392
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1408
bmap = pfvf->cq_bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1414
bmap = pfvf->sq_bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1420
bmap = pfvf->rq_bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
1427
if (!test_bit(qidx, bmap))
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2156
!test_bit(schq, txsch->schq.bmap))
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2211
if (idx >= (end - start) || test_bit(schq, txsch->schq.bmap)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2219
set_bit(schq, txsch->schq.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2224
set_bit(schq, txsch->schq.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2232
schq = bitmap_find_next_zero_area(txsch->schq.bmap,
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2238
set_bit(schq, txsch->schq.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2248
if (!test_bit(schq, txsch->schq.bmap)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2249
set_bit(schq, txsch->schq.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2473
u64 cfg, bmap = 0;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2518
bmap |= BIT_ULL(i);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
2539
if (!(bmap & BIT_ULL(i)))
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
3788
kfree(vlan->rsrc.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5182
kfree(txsch->schq.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5190
kfree(vlan->rsrc.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
547
bp->bpids.bmap = NULL;
drivers/net/ethernet/marvell/octeontx2/af/rvu_nix.c
5857
kfree(ipolicer->band_prof.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
214
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
228
bmap = pfvf->pool_bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
235
bmap = pfvf->aura_bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npa.c
242
if (!test_bit(id, bmap))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2362
bitmap_free(mcam->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2369
kfree(mcam->counters.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2433
mcam->bmap = bitmap_zalloc(mcam->bmap_entries, GFP_KERNEL);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2434
if (!mcam->bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2515
kfree(mcam->counters.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2521
bitmap_free(mcam->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2775
kfree(pkind->rsrc.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2908
__set_bit(entry, mcam->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
2924
__clear_bit(entry, mcam->bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3092
fcnt = npc_mcam_get_free_count(mcam->bmap,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3117
fcnt = npc_mcam_get_free_count(mcam->bmap,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3136
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3248
lp_fcnt = npc_mcam_get_free_count(mcam->bmap,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3251
hp_fcnt = npc_mcam_get_free_count(mcam->bmap, 0, mcam->hprio_end);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3289
bmap = mcam->bmap_reverse;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3294
bmap = mcam->bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3301
index = npc_mcam_find_zero_area(bmap, end, start,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3315
index = find_next_zero_bit(bmap, end, next_start);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3783
index = npc_mcam_find_zero_area(mcam->counters.bmap,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc.c
3789
__set_bit(cntr, mcam->counters.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1943
table->mem_table.bmap = devm_bitmap_zalloc(rvu->dev, table_size,
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1945
if (!table->mem_table.bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1951
table->cam_table.bmap = devm_bitmap_zalloc(rvu->dev, 32, GFP_KERNEL);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
1953
if (!table->cam_table.bmap)
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
490
if (test_bit(hash + i * depth, table->mem_table.bmap))
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
493
set_bit(hash + i * depth, table->mem_table.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
506
bitmap_weight(table->mem_table.bmap, table->mem_table.depth));
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
573
idx = find_first_zero_bit(table->cam_table.bmap, table->cam_table.depth);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
577
bitmap_weight(table->cam_table.bmap, table->cam_table.depth));
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
582
set_bit(idx, table->cam_table.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
932
if (!test_bit(index, table->cam_table.bmap)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
940
clear_bit(index, table->cam_table.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
946
if (!test_bit(index + ways * depth, table->mem_table.bmap)) {
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.c
954
clear_bit(index + ways * depth, table->mem_table.bmap);
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h
178
unsigned long *bmap;
drivers/net/ethernet/marvell/octeontx2/af/rvu_npc_hash.h
186
unsigned long *bmap;
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1292
qed_iwarp_wait_cid_map_cleared(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap)
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1298
weight = bitmap_weight(bmap->bitmap, bmap->max_count);
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1312
weight = bitmap_weight(bmap->bitmap, bmap->max_count);
drivers/net/ethernet/qlogic/qed/qed_iwarp.c
1324
bmap->name, weight);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
101
if (id_num >= bmap->max_count)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
104
return test_bit(id_num, bmap->bitmap);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
107
static bool qed_bmap_is_empty(struct qed_bmap *bmap)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
109
return bitmap_empty(bmap->bitmap, bmap->max_count);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1725
struct qed_bmap *bmap;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1749
bmap = qed_rdma_get_srq_bmap(p_hwfn, in_params->is_xrc);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1753
qed_bmap_release_id(p_hwfn, bmap, in_params->srq_id - offset);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1774
struct qed_bmap *bmap;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1779
bmap = qed_rdma_get_srq_bmap(p_hwfn, in_params->is_xrc);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1781
rc = qed_rdma_bmap_alloc_id(p_hwfn, bmap, &returned_id);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
1842
qed_bmap_release_id(p_hwfn, bmap, returned_id);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
319
struct qed_bmap *bmap, bool check)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
327
weight = bitmap_weight(bmap->bitmap, bmap->max_count);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
333
bmap->name, bmap->max_count, weight);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
335
for (bit = 0; bit < bmap->max_count; bit += 512) {
drivers/net/ethernet/qlogic/qed/qed_rdma.c
336
b = bmap->bitmap + BITS_TO_LONGS(bit);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
337
nbits = min(bmap->max_count - bit, 512U);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
345
bitmap_free(bmap->bitmap);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
346
bmap->bitmap = NULL;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
39
struct qed_bmap *bmap, u32 max_count, char *name)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
43
bmap->max_count = max_count;
drivers/net/ethernet/qlogic/qed/qed_rdma.c
45
bmap->bitmap = bitmap_zalloc(max_count, GFP_KERNEL);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
46
if (!bmap->bitmap)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
49
snprintf(bmap->name, QED_RDMA_MAX_BMAP_NAME, "%s", name);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
56
struct qed_bmap *bmap, u32 *id_num)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
58
*id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
59
if (*id_num >= bmap->max_count)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
62
__set_bit(*id_num, bmap->bitmap);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
65
bmap->name, *id_num);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
71
struct qed_bmap *bmap, u32 id_num)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
73
if (id_num >= bmap->max_count)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
76
__set_bit(id_num, bmap->bitmap);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
80
struct qed_bmap *bmap, u32 id_num)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
84
if (id_num >= bmap->max_count)
drivers/net/ethernet/qlogic/qed/qed_rdma.c
87
b_acquired = test_and_clear_bit(id_num, bmap->bitmap);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
90
bmap->name, id_num);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
95
bmap->name, id_num);
drivers/net/ethernet/qlogic/qed/qed_rdma.c
99
struct qed_bmap *bmap, u32 id_num)
drivers/net/ethernet/qlogic/qed/qed_rdma.h
189
struct qed_bmap *bmap, u32 max_count, char *name);
drivers/net/ethernet/qlogic/qed/qed_rdma.h
192
qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check);
drivers/net/ethernet/qlogic/qed/qed_rdma.h
196
struct qed_bmap *bmap, u32 *id_num);
drivers/net/ethernet/qlogic/qed/qed_rdma.h
199
qed_bmap_set_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num);
drivers/net/ethernet/qlogic/qed/qed_rdma.h
202
qed_bmap_release_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num);
drivers/net/ethernet/qlogic/qed/qed_rdma.h
205
qed_bmap_test_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num);
drivers/usb/misc/usbio.c
485
gpio[i].id, gpio[i].pins, gpio[i].bmap);
fs/adfs/inode.c
85
.bmap = _adfs_bmap,
fs/affs/bitmap.c
122
u32 blk, bmap, bit, mask, mask2, tmp;
fs/affs/bitmap.c
145
bmap = blk / sbi->s_bmap_bits;
fs/affs/bitmap.c
146
bm = &sbi->s_bitmap[bmap];
fs/affs/bitmap.c
159
bmap++;
fs/affs/bitmap.c
161
if (bmap < sbi->s_bmap_count)
fs/affs/bitmap.c
164
bmap = 0;
fs/affs/bitmap.c
167
blk = bmap * sbi->s_bmap_bits;
fs/affs/bitmap.c
172
if (sbi->s_last_bmap != bmap) {
fs/affs/bitmap.c
178
sbi->s_last_bmap = bmap;
fs/affs/bitmap.c
44
u32 blk, bmap, bit, mask, tmp;
fs/affs/bitmap.c
53
bmap = blk / sbi->s_bmap_bits;
fs/affs/bitmap.c
55
bm = &sbi->s_bitmap[bmap];
fs/affs/bitmap.c
60
if (sbi->s_last_bmap != bmap) {
fs/affs/bitmap.c
66
sbi->s_last_bmap = bmap;
fs/affs/file.c
468
.bmap = _affs_bmap
fs/befs/linuxvfs.c
92
.bmap = befs_bmap,
fs/bfs/file.c
200
.bmap = bfs_bmap,
fs/ecryptfs/mmap.c
506
int ret = bmap(lower_inode, &block);
fs/ecryptfs/mmap.c
533
.bmap = ecryptfs_bmap,
fs/efs/inode.c
29
.bmap = _efs_bmap
fs/erofs/data.c
471
.bmap = erofs_bmap,
fs/exfat/inode.c
306
.bmap = exfat_aop_bmap,
fs/ext2/inode.c
945
.bmap = ext2_bmap,
fs/ext4/inode.c
3957
.bmap = ext4_bmap,
fs/ext4/inode.c
3973
.bmap = ext4_bmap,
fs/ext4/inode.c
3989
.bmap = ext4_bmap,
fs/ext4/inode.c
4001
.bmap = ext4_bmap,
fs/f2fs/data.c
4492
.bmap = f2fs_bmap,
fs/fat/cache.c
307
unsigned long *mapped_blocks, sector_t *bmap)
fs/fat/cache.c
319
*bmap = fat_clus_to_blknr(sbi, cluster) + offset;
fs/fat/fat.h
326
unsigned long *mapped_blocks, sector_t *bmap);
fs/fat/inode.c
297
sector_t bmap;
fs/fat/inode.c
302
err = fat_bmap(inode, iblock, &bmap, &mapped_blocks, create, true);
fs/fat/inode.c
306
if (bmap) {
fs/fat/inode.c
307
map_bh(bh_result, sb, bmap);
fs/fat/inode.c
349
.bmap = _fat_bmap,
fs/freevxfs/vxfs_subr.c
22
.bmap = vxfs_bmap,
fs/fuse/file.c
3111
.bmap = fuse_bmap,
fs/gfs2/aops.c
718
.bmap = gfs2_bmap,
fs/gfs2/aops.c
729
.bmap = gfs2_bmap,
fs/hfs/inode.c
165
.bmap = hfs_bmap,
fs/hfs/inode.c
175
.bmap = hfs_bmap,
fs/hfsplus/btree.c
200
u8 *bmap, byte, mask;
fs/hfsplus/btree.c
206
bmap = kmap_local_page(page);
fs/hfsplus/btree.c
207
byte = bmap[ctx.off];
fs/hfsplus/btree.c
208
kunmap_local(bmap);
fs/hfsplus/btree.c
226
u8 *bmap, mask;
fs/hfsplus/btree.c
232
bmap = kmap_local_page(page);
fs/hfsplus/btree.c
236
if (!(bmap[ctx.off] & mask)) {
fs/hfsplus/btree.c
237
kunmap_local(bmap);
fs/hfsplus/btree.c
241
bmap[ctx.off] &= ~mask;
fs/hfsplus/btree.c
243
kunmap_local(bmap);
fs/hfsplus/inode.c
196
.bmap = hfsplus_bmap,
fs/hfsplus/inode.c
206
.bmap = hfsplus_bmap,
fs/hpfs/file.c
253
.bmap = _hpfs_bmap,
fs/inode.c
2102
if (!inode->i_mapping->a_ops->bmap)
fs/inode.c
2105
*block = inode->i_mapping->a_ops->bmap(inode->i_mapping, *block);
fs/inode.c
2108
EXPORT_SYMBOL(bmap);
fs/ioctl.c
76
error = bmap(inode, &block);
fs/isofs/inode.c
1166
.bmap = _isofs_bmap
fs/jbd2/journal.c
1672
err = bmap(inode, &blocknr);
fs/jbd2/journal.c
932
ret = bmap(journal->j_inode, &block);
fs/jfs/file.c
70
atomic_inc(&jfs_sb->bmap->db_active[ji->active_ag]);
fs/jfs/file.c
83
struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap;
fs/jfs/file.c
84
atomic_dec(&bmap->db_active[ji->active_ag]);
fs/jfs/inode.c
179
struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap;
fs/jfs/inode.c
180
atomic_dec(&bmap->db_active[ji->active_ag]);
fs/jfs/inode.c
364
.bmap = jfs_bmap,
fs/jfs/jfs_discard.c
68
struct bmap *bmp;
fs/jfs/jfs_discard.c
87
bmp = JFS_SBI(ip->i_sb)->bmap;
fs/jfs/jfs_dmap.c
101
static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
1068
struct bmap *bmp;
fs/jfs/jfs_dmap.c
1088
bmp = sbi->bmap;
fs/jfs/jfs_dmap.c
1158
static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
1290
dbAllocNear(struct bmap * bmp,
fs/jfs/jfs_dmap.c
1399
dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb, s64 * results)
fs/jfs/jfs_dmap.c
1603
static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results)
fs/jfs/jfs_dmap.c
1661
struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
fs/jfs/jfs_dmap.c
1768
static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno)
fs/jfs/jfs_dmap.c
1887
dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno, s64 * results)
fs/jfs/jfs_dmap.c
2043
dbAllocDmapLev(struct bmap * bmp,
fs/jfs/jfs_dmap.c
2109
static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
2164
static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
2226
static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
2373
static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
242
struct bmap *bmp;
fs/jfs/jfs_dmap.c
251
bmp = kmalloc_obj(struct bmap);
fs/jfs/jfs_dmap.c
2557
dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc, int level)
fs/jfs/jfs_dmap.c
306
JFS_SBI(ipbmap->i_sb)->bmap = bmp;
fs/jfs/jfs_dmap.c
3285
struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
fs/jfs/jfs_dmap.c
3333
static int dbAllocDmapBU(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
343
struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
fs/jfs/jfs_dmap.c
3465
struct bmap *bmp = sbi->bmap;
fs/jfs/jfs_dmap.c
355
JFS_SBI(ipbmap->i_sb)->bmap = NULL;
fs/jfs/jfs_dmap.c
366
struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
fs/jfs/jfs_dmap.c
3749
struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
fs/jfs/jfs_dmap.c
438
struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap;
fs/jfs/jfs_dmap.c
530
struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
fs/jfs/jfs_dmap.c
64
static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
70
static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
fs/jfs/jfs_dmap.c
711
struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap;
fs/jfs/jfs_dmap.c
72
static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
fs/jfs/jfs_dmap.c
73
static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
75
static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
78
static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
80
static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
fs/jfs/jfs_dmap.c
805
struct bmap *bmp;
fs/jfs/jfs_dmap.c
822
bmp = JFS_SBI(ip->i_sb)->bmap;
fs/jfs/jfs_dmap.c
83
static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
fs/jfs/jfs_dmap.c
85
static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
fs/jfs/jfs_dmap.c
89
static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno);
fs/jfs/jfs_dmap.c
91
static int dbFreeBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.c
93
static int dbFreeDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
fs/jfs/jfs_dmap.h
121
#define BLKTOAG(b,sbi) ((b) >> ((sbi)->bmap->db_agl2size))
fs/jfs/jfs_dmap.h
127
((s64)(a) << (JFS_SBI((ip)->i_sb)->bmap->db_agl2size))
fs/jfs/jfs_extent.c
315
struct bmap *bmp = sbi->bmap;
fs/jfs/jfs_imap.c
1362
dn_numag = JFS_SBI(pip->i_sb)->bmap->db_numag;
fs/jfs/jfs_imap.c
1366
if (atomic_read(&JFS_SBI(pip->i_sb)->bmap->db_active[agno])) {
fs/jfs/jfs_imap.c
1707
int maxag = JFS_SBI(imap->im_ipimap->i_sb)->bmap->db_maxag;
fs/jfs/jfs_imap.c
2256
hint = ((s64) agno << sbi->bmap->db_agl2size) - 1;
fs/jfs/jfs_imap.c
2852
struct bmap *mp = JFS_SBI(ipbmap->i_sb)->bmap;
fs/jfs/jfs_incore.h
190
struct bmap *bmap; /* incore bmap descriptor */
fs/jfs/resize.c
58
struct bmap *bmp = sbi->bmap;
fs/jfs/super.c
128
buf->f_blocks = sbi->bmap->db_mapsize;
fs/jfs/super.c
129
buf->f_bfree = sbi->bmap->db_nfree;
fs/jfs/super.c
130
buf->f_bavail = sbi->bmap->db_nfree;
fs/jfs/super.c
141
((sbi->bmap->db_nfree >> imap->im_l2nbperiext)
fs/minix/inode.c
501
.bmap = minix_bmap,
fs/nfsd/nfs4callback.c
390
u32 bmap[3];
fs/nfsd/nfs4callback.c
392
bmap[0] = FATTR4_WORD0_SIZE;
fs/nfsd/nfs4callback.c
394
bmap[0] |= FATTR4_WORD0_CHANGE;
fs/nfsd/nfs4callback.c
397
bmap[1] = 0;
fs/nfsd/nfs4callback.c
398
bmap[2] = FATTR4_WORD2_TIME_DELEG_ACCESS | FATTR4_WORD2_TIME_DELEG_MODIFY;
fs/nfsd/nfs4callback.c
403
encode_bitmap4(xdr, bmap, bmap_size);
fs/nfsd/nfs4proc.c
3277
const u32 *bmap = op->u.getattr.ga_bmval;
fs/nfsd/nfs4proc.c
3278
u32 bmap0 = bmap[0], bmap1 = bmap[1], bmap2 = bmap[2];
fs/nfsd/nfs4state.c
426
bmap_to_share_mode(unsigned long bmap)
fs/nfsd/nfs4state.c
432
if (test_bit(i, &bmap))
fs/nfsd/nfs4state.c
719
unsigned char bmap;
fs/nfsd/nfs4state.c
731
bmap = share_access ? st->st_deny_bmap : st->st_access_bmap;
fs/nfsd/nfs4state.c
732
if (!(access & bmap_to_share_mode(bmap)))
fs/nilfs2/bmap.c
100
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
103
static int nilfs_bmap_do_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr)
fs/nilfs2/bmap.c
109
if (bmap->b_ops->bop_check_insert != NULL) {
fs/nilfs2/bmap.c
110
ret = bmap->b_ops->bop_check_insert(bmap, key);
fs/nilfs2/bmap.c
112
n = bmap->b_ops->bop_gather_data(
fs/nilfs2/bmap.c
113
bmap, keys, ptrs, NILFS_BMAP_SMALL_HIGH + 1);
fs/nilfs2/bmap.c
117
bmap, key, ptr, keys, ptrs, n);
fs/nilfs2/bmap.c
119
bmap->b_u.u_flags |= NILFS_BMAP_LARGE;
fs/nilfs2/bmap.c
126
return bmap->b_ops->bop_insert(bmap, key, ptr);
fs/nilfs2/bmap.c
144
int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec)
fs/nilfs2/bmap.c
148
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
149
ret = nilfs_bmap_do_insert(bmap, key, rec);
fs/nilfs2/bmap.c
150
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
152
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
155
static int nilfs_bmap_do_delete(struct nilfs_bmap *bmap, __u64 key)
fs/nilfs2/bmap.c
161
if (bmap->b_ops->bop_check_delete != NULL) {
fs/nilfs2/bmap.c
162
ret = bmap->b_ops->bop_check_delete(bmap, key);
fs/nilfs2/bmap.c
164
n = bmap->b_ops->bop_gather_data(
fs/nilfs2/bmap.c
165
bmap, keys, ptrs, NILFS_BMAP_LARGE_LOW + 1);
fs/nilfs2/bmap.c
169
bmap, key, keys, ptrs, n);
fs/nilfs2/bmap.c
171
bmap->b_u.u_flags &= ~NILFS_BMAP_LARGE;
fs/nilfs2/bmap.c
178
return bmap->b_ops->bop_delete(bmap, key);
fs/nilfs2/bmap.c
196
int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp)
fs/nilfs2/bmap.c
200
down_read(&bmap->b_sem);
fs/nilfs2/bmap.c
201
ret = bmap->b_ops->bop_seek_key(bmap, start, keyp);
fs/nilfs2/bmap.c
202
up_read(&bmap->b_sem);
fs/nilfs2/bmap.c
205
ret = nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
209
int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp)
fs/nilfs2/bmap.c
213
down_read(&bmap->b_sem);
fs/nilfs2/bmap.c
214
ret = bmap->b_ops->bop_last_key(bmap, keyp);
fs/nilfs2/bmap.c
215
up_read(&bmap->b_sem);
fs/nilfs2/bmap.c
218
ret = nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
22
struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap)
fs/nilfs2/bmap.c
236
int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key)
fs/nilfs2/bmap.c
24
struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info;
fs/nilfs2/bmap.c
240
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
241
ret = nilfs_bmap_do_delete(bmap, key);
fs/nilfs2/bmap.c
242
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
244
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
247
static int nilfs_bmap_do_truncate(struct nilfs_bmap *bmap, __u64 key)
fs/nilfs2/bmap.c
252
ret = bmap->b_ops->bop_last_key(bmap, &lastkey);
fs/nilfs2/bmap.c
260
ret = nilfs_bmap_do_delete(bmap, lastkey);
fs/nilfs2/bmap.c
263
ret = bmap->b_ops->bop_last_key(bmap, &lastkey);
fs/nilfs2/bmap.c
286
int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key)
fs/nilfs2/bmap.c
29
static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.c
290
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
291
ret = nilfs_bmap_do_truncate(bmap, key);
fs/nilfs2/bmap.c
292
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
294
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
303
void nilfs_bmap_clear(struct nilfs_bmap *bmap)
fs/nilfs2/bmap.c
305
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
306
if (bmap->b_ops->bop_clear != NULL)
fs/nilfs2/bmap.c
307
bmap->b_ops->bop_clear(bmap);
fs/nilfs2/bmap.c
308
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
32
struct inode *inode = bmap->b_inode;
fs/nilfs2/bmap.c
324
int nilfs_bmap_propagate(struct nilfs_bmap *bmap, struct buffer_head *bh)
fs/nilfs2/bmap.c
328
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
329
ret = bmap->b_ops->bop_propagate(bmap, bh);
fs/nilfs2/bmap.c
330
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
332
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
340
void nilfs_bmap_lookup_dirty_buffers(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.c
343
if (bmap->b_ops->bop_lookup_dirty_buffers != NULL)
fs/nilfs2/bmap.c
344
bmap->b_ops->bop_lookup_dirty_buffers(bmap, listp);
fs/nilfs2/bmap.c
366
int nilfs_bmap_assign(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.c
373
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
374
ret = bmap->b_ops->bop_assign(bmap, bh, blocknr, binfo);
fs/nilfs2/bmap.c
375
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
377
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
394
int nilfs_bmap_mark(struct nilfs_bmap *bmap, __u64 key, int level)
fs/nilfs2/bmap.c
398
if (bmap->b_ops->bop_mark == NULL)
fs/nilfs2/bmap.c
401
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
402
ret = bmap->b_ops->bop_mark(bmap, key, level);
fs/nilfs2/bmap.c
403
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
405
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
417
int nilfs_bmap_test_and_clear_dirty(struct nilfs_bmap *bmap)
fs/nilfs2/bmap.c
421
down_write(&bmap->b_sem);
fs/nilfs2/bmap.c
422
ret = nilfs_bmap_dirty(bmap);
fs/nilfs2/bmap.c
423
nilfs_bmap_clear_dirty(bmap);
fs/nilfs2/bmap.c
424
up_write(&bmap->b_sem);
fs/nilfs2/bmap.c
432
__u64 nilfs_bmap_data_get_key(const struct nilfs_bmap *bmap,
fs/nilfs2/bmap.c
437
return pos >> bmap->b_inode->i_blkbits;
fs/nilfs2/bmap.c
440
__u64 nilfs_bmap_find_target_seq(const struct nilfs_bmap *bmap, __u64 key)
fs/nilfs2/bmap.c
444
diff = key - bmap->b_last_allocated_key;
fs/nilfs2/bmap.c
446
(bmap->b_last_allocated_ptr != NILFS_BMAP_INVALID_PTR) &&
fs/nilfs2/bmap.c
447
(bmap->b_last_allocated_ptr + diff > 0))
fs/nilfs2/bmap.c
448
return bmap->b_last_allocated_ptr + diff;
fs/nilfs2/bmap.c
455
__u64 nilfs_bmap_find_target_in_group(const struct nilfs_bmap *bmap)
fs/nilfs2/bmap.c
457
struct inode *dat = nilfs_bmap_get_dat(bmap);
fs/nilfs2/bmap.c
464
group = div_u64(bmap->b_inode->i_ino, entries_per_group);
fs/nilfs2/bmap.c
465
index = bmap->b_inode->i_ino & (NILFS_BMAP_GROUP_DIV - 1);
fs/nilfs2/bmap.c
487
int nilfs_bmap_read(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode)
fs/nilfs2/bmap.c
490
memset(bmap->b_u.u_data, 0, NILFS_BMAP_SIZE);
fs/nilfs2/bmap.c
492
memcpy(bmap->b_u.u_data, raw_inode->i_bmap, NILFS_BMAP_SIZE);
fs/nilfs2/bmap.c
494
init_rwsem(&bmap->b_sem);
fs/nilfs2/bmap.c
495
bmap->b_state = 0;
fs/nilfs2/bmap.c
496
bmap->b_inode = &NILFS_BMAP_I(bmap)->vfs_inode;
fs/nilfs2/bmap.c
497
switch (bmap->b_inode->i_ino) {
fs/nilfs2/bmap.c
499
bmap->b_ptr_type = NILFS_BMAP_PTR_P;
fs/nilfs2/bmap.c
500
bmap->b_last_allocated_key = 0;
fs/nilfs2/bmap.c
501
bmap->b_last_allocated_ptr = NILFS_BMAP_NEW_PTR_INIT;
fs/nilfs2/bmap.c
502
lockdep_set_class(&bmap->b_sem, &nilfs_bmap_dat_lock_key);
fs/nilfs2/bmap.c
506
bmap->b_ptr_type = NILFS_BMAP_PTR_VS;
fs/nilfs2/bmap.c
507
bmap->b_last_allocated_key = 0;
fs/nilfs2/bmap.c
508
bmap->b_last_allocated_ptr = NILFS_BMAP_INVALID_PTR;
fs/nilfs2/bmap.c
509
lockdep_set_class(&bmap->b_sem, &nilfs_bmap_mdt_lock_key);
fs/nilfs2/bmap.c
512
lockdep_set_class(&bmap->b_sem, &nilfs_bmap_mdt_lock_key);
fs/nilfs2/bmap.c
515
bmap->b_ptr_type = NILFS_BMAP_PTR_VM;
fs/nilfs2/bmap.c
516
bmap->b_last_allocated_key = 0;
fs/nilfs2/bmap.c
517
bmap->b_last_allocated_ptr = NILFS_BMAP_INVALID_PTR;
fs/nilfs2/bmap.c
521
return (bmap->b_u.u_flags & NILFS_BMAP_LARGE) ?
fs/nilfs2/bmap.c
522
nilfs_btree_init(bmap) : nilfs_direct_init(bmap);
fs/nilfs2/bmap.c
532
void nilfs_bmap_write(struct nilfs_bmap *bmap, struct nilfs_inode *raw_inode)
fs/nilfs2/bmap.c
534
memcpy(raw_inode->i_bmap, bmap->b_u.u_data,
fs/nilfs2/bmap.c
536
if (bmap->b_inode->i_ino == NILFS_DAT_INO)
fs/nilfs2/bmap.c
537
bmap->b_last_allocated_ptr = NILFS_BMAP_NEW_PTR_INIT;
fs/nilfs2/bmap.c
540
void nilfs_bmap_init_gc(struct nilfs_bmap *bmap)
fs/nilfs2/bmap.c
542
memset(&bmap->b_u, 0, NILFS_BMAP_SIZE);
fs/nilfs2/bmap.c
543
init_rwsem(&bmap->b_sem);
fs/nilfs2/bmap.c
544
bmap->b_inode = &NILFS_BMAP_I(bmap)->vfs_inode;
fs/nilfs2/bmap.c
545
bmap->b_ptr_type = NILFS_BMAP_PTR_U;
fs/nilfs2/bmap.c
546
bmap->b_last_allocated_key = 0;
fs/nilfs2/bmap.c
547
bmap->b_last_allocated_ptr = NILFS_BMAP_INVALID_PTR;
fs/nilfs2/bmap.c
548
bmap->b_state = 0;
fs/nilfs2/bmap.c
549
nilfs_btree_init_gc(bmap);
fs/nilfs2/bmap.c
552
void nilfs_bmap_save(const struct nilfs_bmap *bmap,
fs/nilfs2/bmap.c
555
memcpy(store->data, bmap->b_u.u_data, sizeof(store->data));
fs/nilfs2/bmap.c
556
store->last_allocated_key = bmap->b_last_allocated_key;
fs/nilfs2/bmap.c
557
store->last_allocated_ptr = bmap->b_last_allocated_ptr;
fs/nilfs2/bmap.c
558
store->state = bmap->b_state;
fs/nilfs2/bmap.c
561
void nilfs_bmap_restore(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.c
564
memcpy(bmap->b_u.u_data, store->data, sizeof(store->data));
fs/nilfs2/bmap.c
565
bmap->b_last_allocated_key = store->last_allocated_key;
fs/nilfs2/bmap.c
566
bmap->b_last_allocated_ptr = store->last_allocated_ptr;
fs/nilfs2/bmap.c
567
bmap->b_state = store->state;
fs/nilfs2/bmap.c
59
int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level,
fs/nilfs2/bmap.c
65
down_read(&bmap->b_sem);
fs/nilfs2/bmap.c
66
ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp);
fs/nilfs2/bmap.c
70
if (NILFS_BMAP_USE_VBN(bmap)) {
fs/nilfs2/bmap.c
71
ret = nilfs_dat_translate(nilfs_bmap_get_dat(bmap), *ptrp,
fs/nilfs2/bmap.c
87
up_read(&bmap->b_sem);
fs/nilfs2/bmap.c
88
return nilfs_bmap_convert_error(bmap, __func__, ret);
fs/nilfs2/bmap.c
91
int nilfs_bmap_lookup_contig(struct nilfs_bmap *bmap, __u64 key, __u64 *ptrp,
fs/nilfs2/bmap.c
96
down_read(&bmap->b_sem);
fs/nilfs2/bmap.c
97
ret = bmap->b_ops->bop_lookup_contig(bmap, key, ptrp, maxblocks);
fs/nilfs2/bmap.c
98
up_read(&bmap->b_sem);
fs/nilfs2/bmap.h
138
#define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0)
fs/nilfs2/bmap.h
161
int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec);
fs/nilfs2/bmap.h
162
int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key);
fs/nilfs2/bmap.h
163
int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp);
fs/nilfs2/bmap.h
164
int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp);
fs/nilfs2/bmap.h
165
int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key);
fs/nilfs2/bmap.h
179
static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key,
fs/nilfs2/bmap.h
182
return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr);
fs/nilfs2/bmap.h
190
static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.h
197
req->bpr_ptr = bmap->b_last_allocated_ptr++;
fs/nilfs2/bmap.h
201
static inline void nilfs_bmap_commit_alloc_ptr(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.h
209
static inline void nilfs_bmap_abort_alloc_ptr(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.h
216
bmap->b_last_allocated_ptr--;
fs/nilfs2/bmap.h
219
static inline int nilfs_bmap_prepare_end_ptr(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.h
226
static inline void nilfs_bmap_commit_end_ptr(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.h
232
bmap->b_ptr_type == NILFS_BMAP_PTR_VS);
fs/nilfs2/bmap.h
235
static inline void nilfs_bmap_abort_end_ptr(struct nilfs_bmap *bmap,
fs/nilfs2/bmap.h
243
static inline void nilfs_bmap_set_target_v(struct nilfs_bmap *bmap, __u64 key,
fs/nilfs2/bmap.h
246
bmap->b_last_allocated_key = key;
fs/nilfs2/bmap.h
247
bmap->b_last_allocated_ptr = ptr;
fs/nilfs2/bmap.h
258
static inline int nilfs_bmap_dirty(const struct nilfs_bmap *bmap)
fs/nilfs2/bmap.h
260
return !!(bmap->b_state & NILFS_BMAP_DIRTY);
fs/nilfs2/bmap.h
264
static inline void nilfs_bmap_set_dirty(struct nilfs_bmap *bmap)
fs/nilfs2/bmap.h
266
bmap->b_state |= NILFS_BMAP_DIRTY;
fs/nilfs2/bmap.h
270
static inline void nilfs_bmap_clear_dirty(struct nilfs_bmap *bmap)
fs/nilfs2/bmap.h
272
bmap->b_state &= ~NILFS_BMAP_DIRTY;
fs/nilfs2/btree.c
21
static void __nilfs_btree_init(struct nilfs_bmap *bmap);
fs/nilfs2/btree.c
2420
static void __nilfs_btree_init(struct nilfs_bmap *bmap)
fs/nilfs2/btree.c
2422
bmap->b_ops = &nilfs_btree_ops;
fs/nilfs2/btree.c
2423
bmap->b_nchildren_per_block =
fs/nilfs2/btree.c
2424
NILFS_BTREE_NODE_NCHILDREN_MAX(nilfs_btree_node_size(bmap));
fs/nilfs2/btree.c
2427
int nilfs_btree_init(struct nilfs_bmap *bmap)
fs/nilfs2/btree.c
2431
__nilfs_btree_init(bmap);
fs/nilfs2/btree.c
2433
if (nilfs_btree_root_broken(nilfs_btree_get_root(bmap), bmap->b_inode))
fs/nilfs2/btree.c
2437
&NILFS_BMAP_I(bmap)->vfs_inode);
fs/nilfs2/btree.c
2442
void nilfs_btree_init_gc(struct nilfs_bmap *bmap)
fs/nilfs2/btree.c
2444
bmap->b_ops = &nilfs_btree_ops_gc;
fs/nilfs2/btree.c
2445
bmap->b_nchildren_per_block =
fs/nilfs2/btree.c
2446
NILFS_BTREE_NODE_NCHILDREN_MAX(nilfs_btree_node_size(bmap));
fs/nilfs2/direct.c
111
static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr)
fs/nilfs2/direct.c
120
if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR)
fs/nilfs2/direct.c
123
if (NILFS_BMAP_USE_VBN(bmap)) {
fs/nilfs2/direct.c
124
req.bpr_ptr = nilfs_direct_find_target_v(bmap, key);
fs/nilfs2/direct.c
125
dat = nilfs_bmap_get_dat(bmap);
fs/nilfs2/direct.c
127
ret = nilfs_bmap_prepare_alloc_ptr(bmap, &req, dat);
fs/nilfs2/direct.c
133
nilfs_bmap_commit_alloc_ptr(bmap, &req, dat);
fs/nilfs2/direct.c
134
nilfs_direct_set_ptr(bmap, key, req.bpr_ptr);
fs/nilfs2/direct.c
136
if (!nilfs_bmap_dirty(bmap))
fs/nilfs2/direct.c
137
nilfs_bmap_set_dirty(bmap);
fs/nilfs2/direct.c
139
if (NILFS_BMAP_USE_VBN(bmap))
fs/nilfs2/direct.c
140
nilfs_bmap_set_target_v(bmap, key, req.bpr_ptr);
fs/nilfs2/direct.c
142
nilfs_inode_add_blocks(bmap->b_inode, 1);
fs/nilfs2/direct.c
147
static int nilfs_direct_delete(struct nilfs_bmap *bmap, __u64 key)
fs/nilfs2/direct.c
154
nilfs_direct_get_ptr(bmap, key) == NILFS_BMAP_INVALID_PTR)
fs/nilfs2/direct.c
157
dat = NILFS_BMAP_USE_VBN(bmap) ? nilfs_bmap_get_dat(bmap) : NULL;
fs/nilfs2/direct.c
158
req.bpr_ptr = nilfs_direct_get_ptr(bmap, key);
fs/nilfs2/direct.c
160
ret = nilfs_bmap_prepare_end_ptr(bmap, &req, dat);
fs/nilfs2/direct.c
162
nilfs_bmap_commit_end_ptr(bmap, &req, dat);
fs/nilfs2/direct.c
163
nilfs_direct_set_ptr(bmap, key, NILFS_BMAP_INVALID_PTR);
fs/nilfs2/direct.c
164
nilfs_inode_sub_blocks(bmap->b_inode, 1);
fs/nilfs2/direct.c
202
static int nilfs_direct_check_insert(const struct nilfs_bmap *bmap, __u64 key)
fs/nilfs2/direct.c
228
int nilfs_direct_delete_and_convert(struct nilfs_bmap *bmap,
fs/nilfs2/direct.c
237
ret = bmap->b_ops->bop_delete(bmap, key);
fs/nilfs2/direct.c
242
if (bmap->b_ops->bop_clear != NULL)
fs/nilfs2/direct.c
243
bmap->b_ops->bop_clear(bmap);
fs/nilfs2/direct.c
246
dptrs = nilfs_direct_dptrs(bmap);
fs/nilfs2/direct.c
257
nilfs_direct_init(bmap);
fs/nilfs2/direct.c
261
static int nilfs_direct_propagate(struct nilfs_bmap *bmap,
fs/nilfs2/direct.c
270
if (!NILFS_BMAP_USE_VBN(bmap))
fs/nilfs2/direct.c
273
dat = nilfs_bmap_get_dat(bmap);
fs/nilfs2/direct.c
274
key = nilfs_bmap_data_get_key(bmap, bh);
fs/nilfs2/direct.c
275
ptr = nilfs_direct_get_ptr(bmap, key);
fs/nilfs2/direct.c
286
bmap->b_ptr_type == NILFS_BMAP_PTR_VS);
fs/nilfs2/direct.c
288
nilfs_direct_set_ptr(bmap, key, newreq.pr_entry_nr);
fs/nilfs2/direct.c
330
static int nilfs_direct_assign(struct nilfs_bmap *bmap,
fs/nilfs2/direct.c
338
key = nilfs_bmap_data_get_key(bmap, *bh);
fs/nilfs2/direct.c
340
nilfs_crit(bmap->b_inode->i_sb,
fs/nilfs2/direct.c
343
bmap->b_inode->i_ino, (unsigned long long)key);
fs/nilfs2/direct.c
346
ptr = nilfs_direct_get_ptr(bmap, key);
fs/nilfs2/direct.c
348
nilfs_crit(bmap->b_inode->i_sb,
fs/nilfs2/direct.c
351
bmap->b_inode->i_ino, (unsigned long long)ptr);
fs/nilfs2/direct.c
355
return NILFS_BMAP_USE_VBN(bmap) ?
fs/nilfs2/direct.c
356
nilfs_direct_assign_v(bmap, key, ptr, bh, blocknr, binfo) :
fs/nilfs2/direct.c
357
nilfs_direct_assign_p(bmap, key, ptr, bh, blocknr, binfo);
fs/nilfs2/direct.c
383
int nilfs_direct_init(struct nilfs_bmap *bmap)
fs/nilfs2/direct.c
385
bmap->b_ops = &nilfs_direct_ops;
fs/nilfs2/ioctl.c
454
struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap;
fs/nilfs2/ioctl.c
460
ret = nilfs_bmap_lookup_at_level(bmap,
fs/nilfs2/ioctl.c
733
struct nilfs_bmap *bmap = NILFS_I(nilfs->ns_dat)->i_bmap;
fs/nilfs2/ioctl.c
746
ret = nilfs_bmap_lookup_at_level(bmap,
fs/nilfs2/ioctl.c
770
ret = nilfs_bmap_mark(bmap, bdescs[i].bd_offset,
fs/nilfs2/nilfs.h
76
NILFS_BMAP_I(const struct nilfs_bmap *bmap)
fs/nilfs2/nilfs.h
78
return container_of(bmap, struct nilfs_inode_info, i_bmap_data);
fs/ntfs/aops.c
298
.bmap = ntfs_bmap,
fs/ntfs/aops.c
312
.bmap = ntfs_bmap,
fs/ntfs3/inode.c
2087
.bmap = ntfs_bmap,
fs/ocfs2/aops.c
2472
.bmap = ocfs2_bmap,
fs/ocfs2/suballoc.c
2611
unsigned long *bmap))
fs/omfs/file.c
377
.bmap = omfs_bmap,
fs/qnx4/inode.c
280
.bmap = qnx4_bmap
fs/qnx6/inode.c
492
.bmap = qnx6_bmap
fs/udf/inode.c
335
.bmap = udf_bmap,
fs/ufs/inode.c
517
.bmap = ufs_bmap
fs/xfs/libxfs/xfs_bmap.c
5996
struct xfs_bmbt_irec *bmap)
fs/xfs/libxfs/xfs_bmap.c
6001
bmap->br_startblock == HOLESTARTBLOCK ||
fs/xfs/libxfs/xfs_bmap.c
6002
bmap->br_startblock == DELAYSTARTBLOCK)
fs/xfs/libxfs/xfs_bmap.c
6010
bi->bi_bmap = *bmap;
fs/xfs/libxfs/xfs_bmap.c
6046
struct xfs_bmbt_irec *bmap = &bi->bi_bmap;
fs/xfs/libxfs/xfs_bmap.c
6064
error = xfs_bmapi_remap(tp, bi->bi_owner, bmap->br_startoff,
fs/xfs/libxfs/xfs_bmap.c
6065
bmap->br_blockcount, bmap->br_startblock,
fs/xfs/libxfs/xfs_bmap.c
6067
bmap->br_blockcount = 0;
fs/xfs/libxfs/xfs_bmap.c
6070
error = __xfs_bunmapi(tp, bi->bi_owner, bmap->br_startoff,
fs/xfs/libxfs/xfs_bmap.c
6071
&bmap->br_blockcount, flags | XFS_BMAPI_REMAP,
fs/xfs/libxfs/xfs_rmap.c
2751
struct xfs_bmbt_irec *bmap)
fs/xfs/libxfs/xfs_rmap.c
2760
ri->ri_bmap = *bmap;
fs/xfs/libxfs/xfs_rmap.c
2841
struct xfs_bmbt_irec bmap;
fs/xfs/libxfs/xfs_rmap.c
2846
bmap.br_startblock = fsbno;
fs/xfs/libxfs/xfs_rmap.c
2847
bmap.br_blockcount = len;
fs/xfs/libxfs/xfs_rmap.c
2848
bmap.br_startoff = 0;
fs/xfs/libxfs/xfs_rmap.c
2849
bmap.br_state = XFS_EXT_NORM;
fs/xfs/libxfs/xfs_rmap.c
2851
__xfs_rmap_add(tp, XFS_RMAP_ALLOC, owner, isrt, XFS_DATA_FORK, &bmap);
fs/xfs/libxfs/xfs_rmap.c
2863
struct xfs_bmbt_irec bmap;
fs/xfs/libxfs/xfs_rmap.c
2868
bmap.br_startblock = fsbno;
fs/xfs/libxfs/xfs_rmap.c
2869
bmap.br_blockcount = len;
fs/xfs/libxfs/xfs_rmap.c
2870
bmap.br_startoff = 0;
fs/xfs/libxfs/xfs_rmap.c
2871
bmap.br_state = XFS_EXT_NORM;
fs/xfs/libxfs/xfs_rmap.c
2873
__xfs_rmap_add(tp, XFS_RMAP_FREE, owner, isrt, XFS_DATA_FORK, &bmap);
fs/xfs/scrub/dqiterate.c
100
fileoff = cursor->bmap.br_startoff + cursor->bmap.br_blockcount;
fs/xfs/scrub/dqiterate.c
108
XFS_MAX_FILEOFF - fileoff, &cursor->bmap,
fs/xfs/scrub/dqiterate.c
117
if (cursor->bmap.br_startoff > fileoff) {
fs/xfs/scrub/dqiterate.c
118
ASSERT(cursor->bmap.br_startoff == fileoff);
fs/xfs/scrub/dqiterate.c
121
} while (!xfs_bmap_is_real_extent(&cursor->bmap));
fs/xfs/scrub/dqiterate.c
123
next_id = cursor->bmap.br_startoff * qi->qi_dqperchunk;
fs/xfs/scrub/dqiterate.c
188
if (!error && !xfs_bmap_is_real_extent(&cursor->bmap))
fs/xfs/scrub/dqiterate.c
32
cursor->bmap.br_startoff = NULLFILEOFF;
fs/xfs/scrub/dqiterate.c
60
if (cursor->bmap.br_startoff != NULLFILEOFF &&
fs/xfs/scrub/dqiterate.c
62
cursor->bmap.br_startoff + cursor->bmap.br_blockcount > fileoff)
fs/xfs/scrub/dqiterate.c
67
XFS_MAX_FILEOFF - fileoff, &cursor->bmap, &nmaps, 0);
fs/xfs/scrub/dqiterate.c
74
if (cursor->bmap.br_startoff > fileoff) {
fs/xfs/scrub/dqiterate.c
75
ASSERT(cursor->bmap.br_startoff == fileoff);
fs/xfs/scrub/quota.h
20
struct xfs_bmbt_irec bmap;
fs/xfs/scrub/trace.h
486
__entry->startoff = cursor->bmap.br_startoff;
fs/xfs/scrub/trace.h
487
__entry->startblock = cursor->bmap.br_startblock;
fs/xfs/scrub/trace.h
488
__entry->blockcount = cursor->bmap.br_blockcount;
fs/xfs/scrub/trace.h
489
__entry->state = cursor->bmap.br_state;
fs/xfs/xfs_aops.c
862
.bmap = xfs_vm_bmap,
include/linux/fs.h
2682
extern int bmap(struct inode *inode, sector_t *block);
include/linux/fs.h
420
sector_t (*bmap)(struct address_space *, sector_t);
include/linux/hid.h
1134
unsigned long *bmap = NULL;
include/linux/hid.h
1139
bmap = input->absbit;
include/linux/hid.h
1143
bmap = input->relbit;
include/linux/hid.h
1147
bmap = input->keybit;
include/linux/hid.h
1151
bmap = input->ledbit;
include/linux/hid.h
1155
bmap = input->mscbit;
include/linux/hid.h
1160
if (unlikely(c > limit || !bmap)) {
include/linux/hid.h
1170
*bit = bmap;
include/linux/usb/usbio.h
103
__le32 bmap;
include/media/media-entity.h
523
bitmap_zero(ent_enum->bmap, ent_enum->idx_max);
include/media/media-entity.h
538
__set_bit(entity->internal_idx, ent_enum->bmap);
include/media/media-entity.h
553
__clear_bit(entity->internal_idx, ent_enum->bmap);
include/media/media-entity.h
570
return test_bit(entity->internal_idx, ent_enum->bmap);
include/media/media-entity.h
589
return __test_and_set_bit(entity->internal_idx, ent_enum->bmap);
include/media/media-entity.h
601
return bitmap_empty(ent_enum->bmap, ent_enum->idx_max);
include/media/media-entity.h
619
return bitmap_intersects(ent_enum1->bmap, ent_enum2->bmap,
include/media/media-entity.h
75
unsigned long *bmap;
include/uapi/linux/netfilter/xt_TCPOPTSTRIP.h
10
(((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
include/uapi/linux/netfilter/xt_TCPOPTSTRIP.h
7
#define tcpoptstrip_set_bit(bmap, idx) \
include/uapi/linux/netfilter/xt_TCPOPTSTRIP.h
8
(bmap[(idx) >> 5] |= 1U << (idx & 31))
include/uapi/linux/netfilter/xt_TCPOPTSTRIP.h
9
#define tcpoptstrip_test_bit(bmap, idx) \
lib/test_bitmap.c
169
DECLARE_BITMAP(bmap, 1024);
lib/test_bitmap.c
172
memset(bmap, 0xff, 128);
lib/test_bitmap.c
174
expect_eq_pbl("0-22", bmap, 23);
lib/test_bitmap.c
175
expect_eq_pbl("0-1023", bmap, 1024);
lib/test_bitmap.c
178
bitmap_clear(bmap, 0, 9);
lib/test_bitmap.c
179
expect_eq_pbl("9-1023", bmap, 1024);
lib/test_bitmap.c
181
bitmap_zero(bmap, 35);
lib/test_bitmap.c
182
expect_eq_pbl("64-1023", bmap, 1024);
lib/test_bitmap.c
185
bitmap_clear(bmap, 79, 19);
lib/test_bitmap.c
186
expect_eq_pbl("64-78,98-1023", bmap, 1024);
lib/test_bitmap.c
188
bitmap_zero(bmap, 115);
lib/test_bitmap.c
189
expect_eq_pbl("128-1023", bmap, 1024);
lib/test_bitmap.c
192
bitmap_zero(bmap, 1024);
lib/test_bitmap.c
193
expect_eq_pbl("", bmap, 1024);
lib/test_bitmap.c
199
DECLARE_BITMAP(bmap, 64 * 3);
lib/test_bitmap.c
201
bitmap_zero(bmap, 64 * 3);
lib/test_bitmap.c
202
__set_bit(10, bmap);
lib/test_bitmap.c
203
__set_bit(20, bmap);
lib/test_bitmap.c
204
__set_bit(30, bmap);
lib/test_bitmap.c
205
__set_bit(40, bmap);
lib/test_bitmap.c
206
__set_bit(50, bmap);
lib/test_bitmap.c
207
__set_bit(60, bmap);
lib/test_bitmap.c
208
__set_bit(80, bmap);
lib/test_bitmap.c
209
__set_bit(123, bmap);
lib/test_bitmap.c
211
expect_eq_uint(10, find_nth_bit(bmap, 64 * 3, 0));
lib/test_bitmap.c
212
expect_eq_uint(20, find_nth_bit(bmap, 64 * 3, 1));
lib/test_bitmap.c
213
expect_eq_uint(30, find_nth_bit(bmap, 64 * 3, 2));
lib/test_bitmap.c
214
expect_eq_uint(40, find_nth_bit(bmap, 64 * 3, 3));
lib/test_bitmap.c
215
expect_eq_uint(50, find_nth_bit(bmap, 64 * 3, 4));
lib/test_bitmap.c
216
expect_eq_uint(60, find_nth_bit(bmap, 64 * 3, 5));
lib/test_bitmap.c
217
expect_eq_uint(80, find_nth_bit(bmap, 64 * 3, 6));
lib/test_bitmap.c
218
expect_eq_uint(123, find_nth_bit(bmap, 64 * 3, 7));
lib/test_bitmap.c
219
expect_eq_uint(0, !!(find_nth_bit(bmap, 64 * 3, 8) < 64 * 3));
lib/test_bitmap.c
221
expect_eq_uint(10, find_nth_bit(bmap, 64 * 3 - 1, 0));
lib/test_bitmap.c
222
expect_eq_uint(20, find_nth_bit(bmap, 64 * 3 - 1, 1));
lib/test_bitmap.c
223
expect_eq_uint(30, find_nth_bit(bmap, 64 * 3 - 1, 2));
lib/test_bitmap.c
224
expect_eq_uint(40, find_nth_bit(bmap, 64 * 3 - 1, 3));
lib/test_bitmap.c
225
expect_eq_uint(50, find_nth_bit(bmap, 64 * 3 - 1, 4));
lib/test_bitmap.c
226
expect_eq_uint(60, find_nth_bit(bmap, 64 * 3 - 1, 5));
lib/test_bitmap.c
227
expect_eq_uint(80, find_nth_bit(bmap, 64 * 3 - 1, 6));
lib/test_bitmap.c
228
expect_eq_uint(123, find_nth_bit(bmap, 64 * 3 - 1, 7));
lib/test_bitmap.c
229
expect_eq_uint(0, !!(find_nth_bit(bmap, 64 * 3 - 1, 8) < 64 * 3 - 1));
lib/test_bitmap.c
239
DECLARE_BITMAP(bmap, 1024);
lib/test_bitmap.c
242
memset(bmap, 0x00, 128);
lib/test_bitmap.c
244
expect_eq_pbl("", bmap, 23);
lib/test_bitmap.c
245
expect_eq_pbl("", bmap, 1024);
lib/test_bitmap.c
248
bitmap_set(bmap, 0, 9);
lib/test_bitmap.c
249
expect_eq_pbl("0-8", bmap, 1024);
lib/test_bitmap.c
251
bitmap_fill(bmap, 35);
lib/test_bitmap.c
252
expect_eq_pbl("0-63", bmap, 1024);
lib/test_bitmap.c
255
bitmap_set(bmap, 79, 19);
lib/test_bitmap.c
256
expect_eq_pbl("0-63,79-97", bmap, 1024);
lib/test_bitmap.c
258
bitmap_fill(bmap, 115);
lib/test_bitmap.c
259
expect_eq_pbl("0-127", bmap, 1024);
lib/test_bitmap.c
262
bitmap_fill(bmap, 1024);
lib/test_bitmap.c
263
expect_eq_pbl("0-1023", bmap, 1024);
lib/test_bitmap.c
309
DECLARE_BITMAP(bmap, 1000);
lib/test_bitmap.c
311
bitmap_zero(bmap, 1000);
lib/test_bitmap.c
314
pos = bitmap_find_free_region(bmap, 1000, order);
lib/test_bitmap.c
321
bitmap_release_region(bmap, 0, 0);
lib/test_bitmap.c
323
bitmap_release_region(bmap, BIT(order), order);
lib/test_bitmap.c
325
expect_eq_uint(bitmap_weight(bmap, 1000), 0);
lib/test_bitmap.c
334
DECLARE_BITMAP(bmap, 1024);
lib/test_bitmap.c
338
bitmap_zero(bmap, 1024);
lib/test_bitmap.c
339
bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits);
lib/test_bitmap.c
340
expect_eq_bitmap(bmap, exp3_0_1, nbits);
lib/test_bitmap.c
342
bitmap_zero(bmap, 1024);
lib/test_bitmap.c
343
bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits);
lib/test_bitmap.c
344
expect_eq_bitmap(bmap, exp3_1_0, nbits);
lib/test_bitmap.c
346
bitmap_fill(bmap, 1024);
lib/test_bitmap.c
347
bitmap_replace(bmap, &exp2[0 * nlongs], &exp2[1 * nlongs], exp2_to_exp3_mask, nbits);
lib/test_bitmap.c
348
expect_eq_bitmap(bmap, exp3_0_1, nbits);
lib/test_bitmap.c
350
bitmap_fill(bmap, 1024);
lib/test_bitmap.c
351
bitmap_replace(bmap, &exp2[1 * nlongs], &exp2[0 * nlongs], exp2_to_exp3_mask, nbits);
lib/test_bitmap.c
352
expect_eq_bitmap(bmap, exp3_1_0, nbits);
lib/test_bitmap.c
501
DECLARE_BITMAP(bmap, 2048);
lib/test_bitmap.c
507
err = bitmap_parselist(ptest.in, bmap, ptest.nbits);
lib/test_bitmap.c
518
&& !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) {
lib/test_bitmap.c
520
i, ptest.in, bmap[0],
lib/test_bitmap.c
535
unsigned long *bmap = kmalloc(PAGE_SIZE, GFP_KERNEL);
lib/test_bitmap.c
541
if (!buf || !bmap)
lib/test_bitmap.c
544
memset(bmap, -1, PAGE_SIZE);
lib/test_bitmap.c
550
ret = scnprintf(buf, PAGE_SIZE, "%*pbl", (int)PAGE_SIZE * 8, bmap);
lib/test_bitmap.c
568
kfree(bmap);
lib/test_bitmap.c
616
DECLARE_BITMAP(bmap, 2048);
lib/test_bitmap.c
623
err = bitmap_parse(test.in, len, bmap, test.nbits);
lib/test_bitmap.c
634
&& !__bitmap_equal(bmap, test.expected, test.nbits)) {
lib/test_bitmap.c
636
i, test.in, bmap[0],
lib/test_bitmap.c
76
const unsigned long *exp_bmap, const unsigned long *bmap,
lib/test_bitmap.c
79
if (!bitmap_equal(exp_bmap, bmap, nbits)) {
lib/test_bitmap.c
82
nbits, exp_bmap, nbits, bmap);
mm/page_io.c
113
ret = bmap(inode, &first_block);
mm/page_io.c
130
ret = bmap(inode, &block);
sound/usb/mixer.c
571
static int check_matrix_bitmap(unsigned char *bmap,
sound/usb/mixer.c
575
return bmap[idx >> 3] & (0x80 >> (idx & 7));
tools/testing/selftests/kvm/arm64/page_fault_test.c
454
unsigned long *bmap;
tools/testing/selftests/kvm/arm64/page_fault_test.c
459
bmap = bitmap_zalloc(size / getpagesize());
tools/testing/selftests/kvm/arm64/page_fault_test.c
460
kvm_vm_get_dirty_log(vm, region->region.slot, bmap);
tools/testing/selftests/kvm/arm64/page_fault_test.c
461
first_page_dirty = test_bit(host_pg_nr, bmap);
tools/testing/selftests/kvm/arm64/page_fault_test.c
462
free(bmap);
tools/testing/selftests/kvm/dirty_log_test.c
495
static void vm_dirty_log_verify(enum vm_guest_mode mode, unsigned long **bmap)
tools/testing/selftests/kvm/dirty_log_test.c
502
bool bmap0_dirty = __test_and_clear_bit_le(page, bmap[0]);
tools/testing/selftests/kvm/dirty_log_test.c
510
if (__test_and_clear_bit_le(page, bmap[1]) || bmap0_dirty) {
tools/testing/selftests/kvm/dirty_log_test.c
603
unsigned long *bmap[2];
tools/testing/selftests/kvm/dirty_log_test.c
656
bmap[0] = bitmap_zalloc(host_num_pages);
tools/testing/selftests/kvm/dirty_log_test.c
657
bmap[1] = bitmap_zalloc(host_num_pages);
tools/testing/selftests/kvm/dirty_log_test.c
766
bmap[0], host_num_pages,
tools/testing/selftests/kvm/dirty_log_test.c
803
bmap[1], host_num_pages,
tools/testing/selftests/kvm/dirty_log_test.c
805
vm_dirty_log_verify(mode, bmap);
tools/testing/selftests/kvm/dirty_log_test.c
816
free(bmap[0]);
tools/testing/selftests/kvm/dirty_log_test.c
817
free(bmap[1]);
tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
144
unsigned long *bmap)
tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
170
kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap);
tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
190
TEST_ASSERT(test_bit(i, bmap),
tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
194
TEST_ASSERT(!test_bit(i, bmap),
tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
202
unsigned long *bmap;
tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
259
bmap = bitmap_zalloc(TEST_MEM_PAGES);
tools/testing/selftests/kvm/x86/nested_dirty_log_test.c
272
test_handle_ucall_sync(vm, uc.args[1], bmap);