Home
last modified time | relevance | path

Searched refs:bmap (Results 1 – 25 of 170) sorted by relevance

1234567

/openbmc/linux/fs/nilfs2/
H A Dbmap.c22 struct inode *nilfs_bmap_get_dat(const struct nilfs_bmap *bmap) in nilfs_bmap_get_dat() argument
24 struct the_nilfs *nilfs = bmap->b_inode->i_sb->s_fs_info; in nilfs_bmap_get_dat()
29 static int nilfs_bmap_convert_error(struct nilfs_bmap *bmap, in nilfs_bmap_convert_error() argument
32 struct inode *inode = bmap->b_inode; in nilfs_bmap_convert_error()
62 int nilfs_bmap_lookup_at_level(struct nilfs_bmap *bmap, __u64 key, int level, in nilfs_bmap_lookup_at_level() argument
68 down_read(&bmap->b_sem); in nilfs_bmap_lookup_at_level()
69 ret = bmap->b_ops->bop_lookup(bmap, key, level, ptrp); in nilfs_bmap_lookup_at_level()
73 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_bmap_lookup_at_level()
74 ret = nilfs_dat_translate(nilfs_bmap_get_dat(bmap), *ptrp, in nilfs_bmap_lookup_at_level()
90 up_read(&bmap->b_sem); in nilfs_bmap_lookup_at_level()
[all …]
H A Ddirect.c111 static int nilfs_direct_insert(struct nilfs_bmap *bmap, __u64 key, __u64 ptr) in nilfs_direct_insert() argument
120 if (nilfs_direct_get_ptr(bmap, key) != NILFS_BMAP_INVALID_PTR) in nilfs_direct_insert()
123 if (NILFS_BMAP_USE_VBN(bmap)) { in nilfs_direct_insert()
124 req.bpr_ptr = nilfs_direct_find_target_v(bmap, key); in nilfs_direct_insert()
125 dat = nilfs_bmap_get_dat(bmap); in nilfs_direct_insert()
127 ret = nilfs_bmap_prepare_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert()
133 nilfs_bmap_commit_alloc_ptr(bmap, &req, dat); in nilfs_direct_insert()
134 nilfs_direct_set_ptr(bmap, key, req.bpr_ptr); in nilfs_direct_insert()
136 if (!nilfs_bmap_dirty(bmap)) in nilfs_direct_insert()
137 nilfs_bmap_set_dirty(bmap); in nilfs_direct_insert()
[all …]
H A Dbmap.h126 #define NILFS_BMAP_USE_VBN(bmap) ((bmap)->b_ptr_type > 0) argument
149 int nilfs_bmap_insert(struct nilfs_bmap *bmap, __u64 key, unsigned long rec);
150 int nilfs_bmap_delete(struct nilfs_bmap *bmap, __u64 key);
151 int nilfs_bmap_seek_key(struct nilfs_bmap *bmap, __u64 start, __u64 *keyp);
152 int nilfs_bmap_last_key(struct nilfs_bmap *bmap, __u64 *keyp);
153 int nilfs_bmap_truncate(struct nilfs_bmap *bmap, __u64 key);
167 static inline int nilfs_bmap_lookup(struct nilfs_bmap *bmap, __u64 key, in nilfs_bmap_lookup() argument
170 return nilfs_bmap_lookup_at_level(bmap, key, 1, ptr); in nilfs_bmap_lookup()
178 static inline int nilfs_bmap_prepare_alloc_ptr(struct nilfs_bmap *bmap, in nilfs_bmap_prepare_alloc_ptr() argument
185 req->bpr_ptr = bmap->b_last_allocated_ptr++; in nilfs_bmap_prepare_alloc_ptr()
[all …]
/openbmc/u-boot/drivers/video/
H A Dvideo_bmp.c21 static void draw_unencoded_bitmap(ushort **fbp, uchar *bmap, ushort *cmap, in draw_unencoded_bitmap() argument
25 *(*fbp)++ = cmap[*bmap++]; in draw_unencoded_bitmap()
46 uchar *bmap; in video_display_rle8_bitmap() local
55 bmap = (uchar *)bmp + get_unaligned_le32(&bmp->header.data_offset); in video_display_rle8_bitmap()
61 if (bmap[0] == BMP_RLE8_ESCAPE) { in video_display_rle8_bitmap()
62 switch (bmap[1]) { in video_display_rle8_bitmap()
65 bmap += 2; in video_display_rle8_bitmap()
77 x += bmap[2]; in video_display_rle8_bitmap()
78 y -= bmap[3]; in video_display_rle8_bitmap()
82 bmap += 4; in video_display_rle8_bitmap()
[all …]
H A Dcfb_console.c1318 uchar *bmap; in video_display_bitmap() local
1429 bmap = (uchar *) bmp + le32_to_cpu(bmp->header.data_offset); in video_display_bitmap()
1458 idx = *bmap & 0xF; in video_display_bitmap()
1459 bmap++; in video_display_bitmap()
1461 idx = *bmap >> 4; in video_display_bitmap()
1466 bmap += padded_line; in video_display_bitmap()
1495 *fb++ = *bmap++; in video_display_bitmap()
1497 bmap += padded_line; in video_display_bitmap()
1507 cte = bmp->color_table[*bmap++]; in video_display_bitmap()
1511 bmap += padded_line; in video_display_bitmap()
[all …]
/openbmc/qemu/tests/unit/
H A Dtest-bitmap.c64 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()
72 set_func(bmap, BITS_PER_LONG + offset, 1); in bitmap_set_case()
73 g_assert_cmpint(find_first_bit(bmap, 2 * BITS_PER_LONG), in bitmap_set_case()
75 g_assert_cmpint(find_next_zero_bit(bmap, in bitmap_set_case()
82 set_func(bmap, BITS_PER_LONG, 2 * BITS_PER_LONG); 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()
85 g_assert_cmpint(find_first_bit(bmap, BITS_PER_LONG), ==, BITS_PER_LONG); in bitmap_set_case()
[all …]
/openbmc/linux/lib/
H A Dtest_bitmap.c77 const unsigned long *exp_bmap, const unsigned long *bmap, in __check_eq_bitmap() argument
80 if (!bitmap_equal(exp_bmap, bmap, nbits)) { in __check_eq_bitmap()
83 nbits, exp_bmap, nbits, bmap); in __check_eq_bitmap()
197 DECLARE_BITMAP(bmap, 1024); in test_zero_clear()
200 memset(bmap, 0xff, 128); in test_zero_clear()
202 expect_eq_pbl("0-22", bmap, 23); in test_zero_clear()
203 expect_eq_pbl("0-1023", bmap, 1024); in test_zero_clear()
206 bitmap_clear(bmap, 0, 9); in test_zero_clear()
207 expect_eq_pbl("9-1023", bmap, 1024); in test_zero_clear()
209 bitmap_zero(bmap, 35); in test_zero_clear()
[all …]
/openbmc/u-boot/common/
H A Dlcd.c340 uchar *bmap = &bmp_logo_bitmap[0]; in lcd_logo_plot() local
354 memcpy(fb, bmap, BMP_LOGO_WIDTH); in lcd_logo_plot()
355 bmap += BMP_LOGO_WIDTH; in lcd_logo_plot()
364 col16 = bmp_logo_palette[(bmap[j]-16)]; in lcd_logo_plot()
370 bmap += BMP_LOGO_WIDTH; in lcd_logo_plot()
408 static void draw_unencoded_bitmap(ushort **fbp, uchar *bmap, ushort *cmap, in draw_unencoded_bitmap() argument
412 *(*fbp)++ = cmap[*bmap++]; in draw_unencoded_bitmap()
447 uchar *bmap; in lcd_display_rle8_bitmap() local
455 bmap = (uchar *)bmp + get_unaligned_le32(&bmp->header.data_offset); in lcd_display_rle8_bitmap()
461 if (bmap[0] == BMP_RLE8_ESCAPE) { in lcd_display_rle8_bitmap()
[all …]
/openbmc/u-boot/arch/arm/mach-imx/
H A Dddrmc-vf610-calibration.c59 static int ddr_cal_get_first_edge_index(unsigned long *bmap, enum edge e, in ddr_cal_get_first_edge_index() argument
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()
[all …]
/openbmc/linux/tools/testing/selftests/kvm/x86_64/
H A Dvmx_dirty_log_test.c71 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 Dbmaptool_git.bb1 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/fs/affs/
H A Dbitmap.c44 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()
122 u32 blk, bmap, bit, mask, mask2, tmp; in affs_alloc_block() local
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()
[all …]
/openbmc/linux/include/uapi/linux/netfilter/
H A Dxt_TCPOPTSTRIP.h7 #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/qemu/block/
H A Dvdi.c181 uint32_t *bmap; member
285 uint32_t *bmap; in vdi_co_check() local
292 bmap = g_try_new(uint32_t, s->header.blocks_in_image); in vdi_co_check()
293 if (s->header.blocks_in_image && bmap == NULL) { in vdi_co_check()
298 memset(bmap, 0xff, s->header.blocks_in_image * sizeof(uint32_t)); in vdi_co_check()
302 uint32_t bmap_entry = le32_to_cpu(s->bmap[block]); in vdi_co_check()
306 if (!VDI_IS_ALLOCATED(bmap[bmap_entry])) { in vdi_co_check()
307 bmap[bmap_entry] = bmap_entry; in vdi_co_check()
310 " also used by %" PRIu32 "\n", bmap[bmap_entry], bmap_entry); in vdi_co_check()
327 g_free(bmap); in vdi_co_check()
[all …]
/openbmc/linux/drivers/crypto/marvell/octeontx/
H A Dotx_cptpf_ucode.c60 struct otx_cpt_bitmap bmap = { {0} }; in get_cores_bmap() local
67 return bmap; in get_cores_bmap()
72 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
73 eng_grp->engs[i].bmap, in get_cores_bmap()
75 bmap.size = eng_grp->g->engs_num; in get_cores_bmap()
83 return bmap; in get_cores_bmap()
179 struct otx_cpt_bitmap bmap; in cpt_set_ucode_base() local
182 bmap = get_cores_bmap(&cpt->pdev->dev, eng_grp); in cpt_set_ucode_base()
183 if (!bmap.size) in cpt_set_ucode_base()
196 for_each_set_bit(i, bmap.bits, bmap.size) in cpt_set_ucode_base()
[all …]
/openbmc/linux/drivers/net/ethernet/brocade/bna/
H A Dbnad_ethtool.c602 u32 bmap; in bnad_get_strings() local
614 bmap = bna_tx_rid_mask(&bnad->bna); in bnad_get_strings()
615 for (i = 0; bmap; i++) { in bnad_get_strings()
616 if (bmap & 1) in bnad_get_strings()
618 bmap >>= 1; in bnad_get_strings()
621 bmap = bna_rx_rid_mask(&bnad->bna); in bnad_get_strings()
622 for (i = 0; bmap; i++, bmap >>= 1) { in bnad_get_strings()
623 if (bmap & 1) in bnad_get_strings()
625 bmap >>= 1; in bnad_get_strings()
665 u32 bmap; in bnad_get_stats_count_locked() local
[all …]
/openbmc/linux/drivers/crypto/marvell/octeontx2/
H A Dotx2_cptpf_ucode.c28 struct otx2_cpt_bitmap bmap = { {0} }; in get_cores_bmap() local
36 return bmap; in get_cores_bmap()
41 bitmap_or(bmap.bits, bmap.bits, in get_cores_bmap()
42 eng_grp->engs[i].bmap, in get_cores_bmap()
44 bmap.size = eng_grp->g->engs_num; in get_cores_bmap()
52 return bmap; in get_cores_bmap()
191 for_each_set_bit(bit, engs->bmap, eng_grp->g->engs_num) in cptx_set_ucode_base()
217 struct otx2_cpt_bitmap bmap, in cptx_detach_and_disable_cores() argument
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()
[all …]
/openbmc/linux/fs/jfs/
H A Djfs_dmap.c64 static void dbAllocBits(struct bmap * bmp, struct dmap * dp, s64 blkno,
70 static int dbAdjCtl(struct bmap * bmp, s64 blkno, int newval, int alloc,
72 static int dbAllocAny(struct bmap * bmp, s64 nblocks, int l2nb, s64 * results);
73 static int dbAllocNext(struct bmap * bmp, struct dmap * dp, s64 blkno,
75 static int dbAllocNear(struct bmap * bmp, struct dmap * dp, s64 blkno,
78 static int dbAllocDmap(struct bmap * bmp, struct dmap * dp, s64 blkno,
80 static int dbAllocDmapLev(struct bmap * bmp, struct dmap * dp, int nblocks,
83 static int dbAllocAG(struct bmap * bmp, int agno, s64 nblocks, int l2nb,
85 static int dbAllocCtl(struct bmap * bmp, s64 nblocks, int l2nb, s64 blkno,
89 static int dbFindCtl(struct bmap * bmp, int l2nb, int level, s64 * blkno);
[all …]
H A Dfile.c66 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/openbmc/meta-openembedded/meta-oe/recipes-support/bmap-writer/
H A Dbmap-writer_git.bb2 DESCRIPTION = "bmap-writer is a command-line utility designed to efficiently write disk images \
5 bmap-writer is C++ based does not require Python and focuses solely on writing an image."
6 HOMEPAGE = "https://github.com/embetrix/bmap-writer"
20 FILES:${PN} = "${bindir}/bmap-writer"
/openbmc/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_rdma.h189 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 Dqed_rdma.c39 struct qed_bmap *bmap, u32 max_count, char *name) in qed_rdma_bmap_alloc() argument
43 bmap->max_count = max_count; in qed_rdma_bmap_alloc()
45 bmap->bitmap = bitmap_zalloc(max_count, GFP_KERNEL); in qed_rdma_bmap_alloc()
46 if (!bmap->bitmap) in qed_rdma_bmap_alloc()
49 snprintf(bmap->name, QED_RDMA_MAX_BMAP_NAME, "%s", name); in qed_rdma_bmap_alloc()
56 struct qed_bmap *bmap, u32 *id_num) in qed_rdma_bmap_alloc_id() argument
58 *id_num = find_first_zero_bit(bmap->bitmap, bmap->max_count); in qed_rdma_bmap_alloc_id()
59 if (*id_num >= bmap->max_count) in qed_rdma_bmap_alloc_id()
62 __set_bit(*id_num, bmap->bitmap); in qed_rdma_bmap_alloc_id()
65 bmap->name, *id_num); in qed_rdma_bmap_alloc_id()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/libcxgb/
H A Dlibcxgb_ppm.c84 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 Dmedia-entity.h75 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/qemu/tests/qemu-iotests/
H A D300526 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]))

1234567