/openbmc/linux/fs/nilfs2/ |
H A D | bmap.c | 69 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level() 113 ret = bmap->b_ops->bop_check_insert(bmap, key); in nilfs_bmap_do_insert() 129 return bmap->b_ops->bop_insert(bmap, key, ptr); in nilfs_bmap_do_insert() 168 ret = bmap->b_ops->bop_check_delete(bmap, key); in nilfs_bmap_do_delete() 184 return bmap->b_ops->bop_delete(bmap, key); in nilfs_bmap_do_delete() 223 ret = bmap->b_ops->bop_last_key(bmap, keyp); in nilfs_bmap_last_key() 264 ret = bmap->b_ops->bop_last_key(bmap, &lastkey); in nilfs_bmap_do_truncate() 321 bmap->b_ops->bop_clear(bmap); in nilfs_bmap_clear() 345 ret = bmap->b_ops->bop_propagate(bmap, bh); in nilfs_bmap_propagate() 420 ret = bmap->b_ops->bop_mark(bmap, key, level); in nilfs_bmap_mark() [all …]
|
H A D | direct.c | 123 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_direct_insert() 125 dat = nilfs_bmap_get_dat(bmap); in nilfs_direct_insert() 136 if (!nilfs_bmap_dirty(bmap)) in nilfs_direct_insert() 137 nilfs_bmap_set_dirty(bmap); in nilfs_direct_insert() 139 if (NILFS_BMAP_USE_VBN(bmap)) in nilfs_direct_insert() 157 dat = NILFS_BMAP_USE_VBN(bmap) ? nilfs_bmap_get_dat(bmap) : NULL; in nilfs_direct_delete() 237 ret = bmap->b_ops->bop_delete(bmap, key); in nilfs_direct_delete_and_convert() 243 bmap->b_ops->bop_clear(bmap); in nilfs_direct_delete_and_convert() 257 nilfs_direct_init(bmap); in nilfs_direct_delete_and_convert() 270 if (!NILFS_BMAP_USE_VBN(bmap)) in nilfs_direct_propagate() [all …]
|
H A D | bmap.h | 126 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument 150 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key); 170 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup() 185 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr() 204 bmap->b_last_allocated_ptr--; in nilfs_bmap_abort_alloc_ptr() 220 bmap->b_ptr_type == NILFS_BMAP_PTR_VS); in nilfs_bmap_commit_end_ptr() 234 bmap->b_last_allocated_key = key; in nilfs_bmap_set_target_v() 235 bmap->b_last_allocated_ptr = ptr; in nilfs_bmap_set_target_v() 248 return !!(bmap->b_state & NILFS_BMAP_DIRTY); in nilfs_bmap_dirty() 254 bmap->b_state |= NILFS_BMAP_DIRTY; in nilfs_bmap_set_dirty() [all …]
|
/openbmc/u-boot/drivers/video/ |
H A D | video_bmp.c | 46 uchar *bmap; in video_display_rle8_bitmap() local 65 bmap += 2; in video_display_rle8_bitmap() 77 x += bmap[2]; in video_display_rle8_bitmap() 82 bmap += 4; in video_display_rle8_bitmap() 87 bmap += 2; in video_display_rle8_bitmap() 102 bmap++; in video_display_rle8_bitmap() 112 bmap[1] == bmap[3]) { in video_display_rle8_bitmap() 114 bmap += 2; in video_display_rle8_bitmap() 125 bmap += 2; in video_display_rle8_bitmap() 198 uchar *bmap; in video_bmp_display() local [all …]
|
H A D | cfb_console.c | 1318 uchar *bmap; in video_display_bitmap() local 1459 bmap++; in video_display_bitmap() 1593 FILL_8BIT_332RGB(bmap[2], bmap[1], in video_display_bitmap() 1595 bmap += 3; in video_display_bitmap() 1612 bmap[1], bmap[0]); in video_display_bitmap() 1615 FILL_15BIT_555RGB(bmap[2], bmap[1], in video_display_bitmap() 1618 bmap += 3; in video_display_bitmap() 1630 FILL_16BIT_565RGB(bmap[2], bmap[1], in video_display_bitmap() 1632 bmap += 3; in video_display_bitmap() 1644 FILL_32BIT_X888RGB(bmap[2], bmap[1], in video_display_bitmap() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-bitmap.c | 64 unsigned long *bmap; in bitmap_set_case() local 67 bmap = bitmap_new(BMAP_SIZE); in bitmap_set_case() 71 bitmap_clear(bmap, 0, BMAP_SIZE); in bitmap_set_case() 83 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case() 84 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case() 90 bitmap_clear(bmap, 0, BMAP_SIZE); in bitmap_set_case() 93 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case() 94 g_assert_cmpuint(bmap[2], ==, -1ul); in bitmap_set_case() 104 bitmap_clear(bmap, 0, BMAP_SIZE); in bitmap_set_case() 107 g_assert_cmpuint(bmap[1], ==, -1ul); in bitmap_set_case() [all …]
|
/openbmc/linux/lib/ |
H A D | test_bitmap.c | 209 bitmap_zero(bmap, 35); in test_zero_clear() 230 __set_bit(10, bmap); in test_find_nth_bit() 231 __set_bit(20, bmap); in test_find_nth_bit() 232 __set_bit(30, bmap); in test_find_nth_bit() 233 __set_bit(40, bmap); in test_find_nth_bit() 234 __set_bit(50, bmap); in test_find_nth_bit() 235 __set_bit(60, bmap); in test_find_nth_bit() 236 __set_bit(80, bmap); in test_find_nth_bit() 237 __set_bit(123, bmap); in test_find_nth_bit() 502 if (!buf || !bmap) in test_bitmap_printlist() [all …]
|
/openbmc/u-boot/common/ |
H A D | lcd.c | 447 uchar *bmap; in lcd_display_rle8_bitmap() local 465 bmap += 2; in lcd_display_rle8_bitmap() 477 x += bmap[2]; in lcd_display_rle8_bitmap() 482 bmap += 4; in lcd_display_rle8_bitmap() 487 bmap += 2; in lcd_display_rle8_bitmap() 502 bmap++; in lcd_display_rle8_bitmap() 512 bmap[1] == bmap[3]) { in lcd_display_rle8_bitmap() 514 bmap += 2; in lcd_display_rle8_bitmap() 525 bmap += 2; in lcd_display_rle8_bitmap() 565 uchar *bmap; in lcd_display_bitmap() local [all …]
|
/openbmc/u-boot/arch/arm/mach-imx/ |
H A D | ddrmc-vf610-calibration.c | 71 if (test_bit(i, bmap)) { in ddr_cal_get_first_edge_index() 72 if (!test_bit(i - 1, bmap) && in ddr_cal_get_first_edge_index() 73 test_bit(i + 1, bmap) && in ddr_cal_get_first_edge_index() 74 test_bit(i + 2, bmap) && in ddr_cal_get_first_edge_index() 75 test_bit(i + 3, bmap)) { in ddr_cal_get_first_edge_index() 83 if (!test_bit(i, bmap)) { in ddr_cal_get_first_edge_index() 84 if (test_bit(i - 1, bmap) && in ddr_cal_get_first_edge_index() 85 test_bit(i - 2, bmap) && in ddr_cal_get_first_edge_index() 86 test_bit(i - 3, bmap)) { in ddr_cal_get_first_edge_index() 100 debug("BITMAP [0x%p]:\n", bmap); in bitmap_print() [all …]
|
/openbmc/linux/tools/testing/selftests/kvm/x86_64/ |
H A D | vmx_dirty_log_test.c | 71 unsigned long *bmap; in main() local 112 bmap = bitmap_zalloc(TEST_MEM_PAGES); in main() 129 kvm_vm_get_dirty_log(vm, TEST_MEM_SLOT_INDEX, bmap); in main() 131 TEST_ASSERT(test_bit(0, bmap), "Page 0 incorrectly reported clean\n"); in main() 134 TEST_ASSERT(!test_bit(0, bmap), "Page 0 incorrectly reported dirty\n"); in main() 138 TEST_ASSERT(!test_bit(1, bmap), "Page 1 incorrectly reported dirty\n"); in main() 140 TEST_ASSERT(!test_bit(2, bmap), "Page 2 incorrectly reported dirty\n"); in main()
|
/openbmc/openbmc/poky/meta/recipes-support/bmaptool/ |
H A D | bmaptool_git.bb | 1 SUMMARY = "Tools to generate block map (AKA bmap) and flash images using bmap" 2 DESCRIPTION = "bmaptool - tools to generate block map (AKA bmap) and flash images using \ 3 bmap. bmaptool is a generic tool for creating the block map (bmap) for a file, \ 26 RREPLACES:${PN} = "bmap-tools" 27 RCONFLICTS:${PN} = "bmap-tools"
|
/openbmc/linux/include/uapi/linux/netfilter/ |
H A D | xt_TCPOPTSTRIP.h | 7 #define tcpoptstrip_set_bit(bmap, idx) \ argument 8 (bmap[(idx) >> 5] |= 1U << (idx & 31)) 9 #define tcpoptstrip_test_bit(bmap, idx) \ argument 10 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
|
/openbmc/linux/fs/affs/ |
H A D | bitmap.c | 44 u32 blk, bmap, bit, mask, tmp; in affs_free_block() local 53 bmap = blk / sbi->s_bmap_bits; in affs_free_block() 55 bm = &sbi->s_bitmap[bmap]; in affs_free_block() 60 if (sbi->s_last_bmap != bmap) { in affs_free_block() 66 sbi->s_last_bmap = bmap; in affs_free_block() 145 bmap = blk / sbi->s_bmap_bits; in affs_alloc_block() 146 bm = &sbi->s_bitmap[bmap]; in affs_alloc_block() 159 bmap++; in affs_alloc_block() 161 if (bmap < sbi->s_bmap_count) in affs_alloc_block() 164 bmap = 0; in affs_alloc_block() [all …]
|
/openbmc/qemu/block/ |
H A D | vdi.c | 179 uint32_t *bmap; member 283 uint32_t *bmap; in vdi_co_check() local 325 g_free(bmap); in vdi_co_check() 485 if (s->bmap == NULL) { in vdi_open() 491 s->bmap, 0); in vdi_open() 511 qemu_vfree(s->bmap); in vdi_open() 753 uint32_t *bmap = NULL; in vdi_co_do_create() local 860 if (bmap == NULL) { in vdi_co_do_create() 867 bmap[i] = i; in vdi_co_do_create() 893 g_free(bmap); in vdi_co_do_create() [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx/ |
H A D | otx_cptpf_ucode.c | 67 return bmap; in get_cores_bmap() 72 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap() 83 return bmap; in get_cores_bmap() 196 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_set_ucode_base() 218 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_detach_and_disable_cores() 234 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores() 243 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_detach_and_disable_cores() 265 for_each_set_bit(i, bmap.bits, bmap.size) { in cpt_attach_and_enable_cores() 275 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_attach_and_enable_cores() 593 bitmap_to_arr32(mask, bmap.bits, bmap.size); in cpt_print_engines_mask() [all …]
|
/openbmc/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bnad_ethtool.c | 602 u32 bmap; in bnad_get_strings() local 616 if (bmap & 1) in bnad_get_strings() 618 bmap >>= 1; in bnad_get_strings() 622 for (i = 0; bmap; i++, bmap >>= 1) { in bnad_get_strings() 625 bmap >>= 1; in bnad_get_strings() 665 u32 bmap; in bnad_get_stats_count_locked() local 671 bmap >>= 1; in bnad_get_stats_count_locked() 677 bmap >>= 1; in bnad_get_stats_count_locked() 800 u32 bmap; in bnad_get_ethtool_stats() local 859 bmap >>= 1; in bnad_get_ethtool_stats() [all …]
|
/openbmc/linux/drivers/crypto/marvell/octeontx2/ |
H A D | otx2_cptpf_ucode.c | 36 return bmap; in get_cores_bmap() 41 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap() 52 return bmap; in get_cores_bmap() 225 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores() 251 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores() 267 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_detach_and_disable_cores() 289 if (!bmap.size) in cpt_detach_and_disable_cores() 311 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores() 331 for_each_set_bit(i, bmap.bits, bmap.size) { in cptx_attach_and_enable_cores() 349 if (!bmap.size) in cpt_attach_and_enable_cores() [all …]
|
/openbmc/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_rdma.h | 189 struct qed_bmap *bmap, u32 max_count, char *name); 192 qed_rdma_bmap_free(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, bool check); 196 struct qed_bmap *bmap, u32 *id_num); 199 qed_bmap_set_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num); 202 qed_bmap_release_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num); 205 qed_bmap_test_id(struct qed_hwfn *p_hwfn, struct qed_bmap *bmap, u32 id_num);
|
H A D | qed_rdma.c | 43 bmap->max_count = max_count; in qed_rdma_bmap_alloc() 46 if (!bmap->bitmap) in qed_rdma_bmap_alloc() 58 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_alloc_id() 65 bmap->name, *id_num); in qed_rdma_bmap_alloc_id() 90 bmap->name, id_num); in qed_bmap_release_id() 95 bmap->name, id_num); in qed_bmap_release_id() 109 return bitmap_empty(bmap->bitmap, bmap->max_count); in qed_bmap_is_empty() 327 weight = bitmap_weight(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_free() 333 bmap->name, bmap->max_count, weight); in qed_rdma_bmap_free() 346 bmap->bitmap = NULL; in qed_rdma_bmap_free() [all …]
|
/openbmc/linux/fs/jfs/ |
H A D | jfs_dmap.c | 155 struct bmap *bmp; in dbMount() 267 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUnmount() 290 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbSync() 362 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbFree() 454 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbUpdatePMap() 635 struct bmap *bmp = JFS_SBI(ipbmap->i_sb)->bmap; in dbNextAG() 1012 bmp = sbi->bmap; in dbExtend() 1579 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbDiscardAG() 3195 struct bmap *bmp = JFS_SBI(ip->i_sb)->bmap; in dbAllocBottomUp() 3375 struct bmap *bmp = sbi->bmap; in dbExtendFS() [all …]
|
H A D | file.c | 66 atomic_inc(&jfs_sb->bmap->db_active[ji->active_ag]); in jfs_open() 79 struct bmap *bmap = JFS_SBI(inode->i_sb)->bmap; in jfs_release() local 80 atomic_dec(&bmap->db_active[ji->active_ag]); in jfs_release()
|
/openbmc/linux/drivers/net/ethernet/chelsio/libcxgb/ |
H A D | libcxgb_ppm.c | 84 static int ppm_find_unused_entries(unsigned long *bmap, in ppm_find_unused_entries() argument 92 i = bitmap_find_next_zero_area(bmap, max_ppods, start, nr, align_mask); in ppm_find_unused_entries() 95 i = bitmap_find_next_zero_area(bmap, max_ppods, 0, start - 1, in ppm_find_unused_entries() 100 bitmap_set(bmap, i, nr); in ppm_find_unused_entries() 133 i = ppm_find_unused_entries(pool->bmap, ppm->pool_index_max, in ppm_get_cpu_entries() 204 bitmap_clear(pool->bmap, i, count); in ppm_unmark_entries() 351 unsigned int bmap; in ppm_alloc_cpu_pool() local 361 bmap = ppmax / BITS_PER_TYPE(unsigned long); in ppm_alloc_cpu_pool() 362 if (!bmap) in ppm_alloc_cpu_pool() 365 ppmax = (bmap * sizeof(unsigned long)) << 3; in ppm_alloc_cpu_pool() [all …]
|
/openbmc/linux/include/media/ |
H A D | media-entity.h | 75 unsigned long *bmap; member 527 bitmap_zero(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_zero() 542 __set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_set() 557 __clear_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_clear() 574 return test_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test() 593 return __test_and_set_bit(entity->internal_idx, ent_enum->bmap); in media_entity_enum_test_and_set() 605 return bitmap_empty(ent_enum->bmap, ent_enum->idx_max); in media_entity_enum_empty() 623 return bitmap_intersects(ent_enum1->bmap, ent_enum2->bmap, in media_entity_enum_intersects()
|
/openbmc/openbmc/poky/documentation/dev-manual/ |
H A D | bmaptool.rst | 8 bmaptool is a generic tool that creates a file's block map (bmap) and 16 the ``bmap-tools`` package using the following command and then 20 $ sudo apt install bmap-tools 22 - If you are unable to install the ``bmap-tools`` package, you will 34 IMAGE_FSTYPES += "wic wic.bmap"
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 300 | 526 for (node, bmap) in bmaps_to_add: 528 node=node, name=bmap) 568 bitmaps[node] = sorted((bmap['name'] for bmap in bitmaps[node])) 619 for (node, bmap) in bmaps_to_add: 621 node=node, name=bmap) 664 bitmaps[node] = sorted(((bmap['name'], bmap['persistent']) 665 for bmap in bitmaps[node]))
|