Home
last modified time | relevance | path

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

12

/external/e2fsprogs/lib/ext2fs/
Dgen_bitmap64.c243 void ext2fs_free_generic_bmap(ext2fs_generic_bitmap bmap) in ext2fs_free_generic_bmap() argument
245 if (!bmap) in ext2fs_free_generic_bmap()
248 if (EXT2FS_IS_32_BITMAP(bmap)) { in ext2fs_free_generic_bmap()
249 ext2fs_free_generic_bitmap(bmap); in ext2fs_free_generic_bmap()
253 if (!EXT2FS_IS_64_BITMAP(bmap)) in ext2fs_free_generic_bmap()
258 ext2fs_print_bmap_statistics(bmap); in ext2fs_free_generic_bmap()
259 bmap->bitmap_ops->print_stats(bmap); in ext2fs_free_generic_bmap()
263 bmap->bitmap_ops->free_bmap(bmap); in ext2fs_free_generic_bmap()
265 if (bmap->description) { in ext2fs_free_generic_bmap()
266 ext2fs_free_mem(&bmap->description); in ext2fs_free_generic_bmap()
[all …]
Dbitmaps.c126 ext2fs_generic_bitmap bmap; in ext2fs_allocate_subcluster_bitmap() local
146 end, real_end, descr, &bmap); in ext2fs_allocate_subcluster_bitmap()
149 bmap->cluster_bits = 0; in ext2fs_allocate_subcluster_bitmap()
150 *ret = bmap; in ext2fs_allocate_subcluster_bitmap()
156 ext2fs_generic_bitmap bmap = bitmap; in ext2fs_get_bitmap_granularity() local
158 if (!EXT2FS_IS_64_BITMAP(bmap)) in ext2fs_get_bitmap_granularity()
161 return bmap->cluster_bits; in ext2fs_get_bitmap_granularity()
206 ext2fs_inode_bitmap bmap) in ext2fs_resize_inode_bitmap() argument
209 new_end, new_real_end, bmap)); in ext2fs_resize_inode_bitmap()
213 ext2fs_inode_bitmap bmap) in ext2fs_resize_inode_bitmap2() argument
[all …]
Dgen_bitmap.c41 #define EXT2FS_IS_32_BITMAP(bmap) \ argument
42 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
43 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
44 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
46 #define EXT2FS_IS_64_BITMAP(bmap) \ argument
47 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
48 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
49 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
304 ext2fs_generic_bitmap bmap) in ext2fs_resize_generic_bitmap() argument
310 if (!bmap || (bmap->magic != magic)) in ext2fs_resize_generic_bitmap()
[all …]
Dalloc_tables.c38 ext2fs_block_bitmap bmap, int rem_grp, in flexbg_offset() argument
56 if (start_blk && ext2fs_test_block_bitmap_range2(bmap, start_blk, in flexbg_offset()
68 bmap, &first_free) == 0) in flexbg_offset()
72 bmap, &first_free) == 0) in flexbg_offset()
75 if (ext2fs_get_free_blocks2(fs, 0, last_blk, elem_size, bmap, in flexbg_offset()
83 ext2fs_block_bitmap bmap) in ext2fs_allocate_group_table() argument
94 if (!bmap) in ext2fs_allocate_group_table()
95 bmap = fs->block_map; in ext2fs_allocate_group_table()
112 1, bmap, &start_blk); in ext2fs_allocate_group_table()
128 start_blk = flexbg_offset(fs, group, prev_block, bmap, in ext2fs_allocate_group_table()
[all …]
Dcheck_desc.c34 ext2fs_block_bitmap bmap; in ext2fs_check_desc() local
47 retval = ext2fs_allocate_subcluster_bitmap(fs, "check_desc map", &bmap); in ext2fs_check_desc()
52 ext2fs_reserve_super_and_bgd(fs, i, bmap); in ext2fs_check_desc()
66 ext2fs_test_block_bitmap2(bmap, blk)) { in ext2fs_check_desc()
70 ext2fs_mark_block_bitmap2(bmap, blk); in ext2fs_check_desc()
77 ext2fs_test_block_bitmap2(bmap, blk)) { in ext2fs_check_desc()
81 ext2fs_mark_block_bitmap2(bmap, blk); in ext2fs_check_desc()
94 if (ext2fs_test_block_bitmap2(bmap, b)) { in ext2fs_check_desc()
98 ext2fs_mark_block_bitmap2(bmap, b); in ext2fs_check_desc()
102 ext2fs_free_block_bitmap(bmap); in ext2fs_check_desc()
Dbmap64.h56 #define EXT2FS_IS_32_BITMAP(bmap) \ argument
57 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP) || \
58 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP) || \
59 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP))
61 #define EXT2FS_IS_64_BITMAP(bmap) \ argument
62 (((bmap)->magic == EXT2_ET_MAGIC_GENERIC_BITMAP64) || \
63 ((bmap)->magic == EXT2_ET_MAGIC_BLOCK_BITMAP64) || \
64 ((bmap)->magic == EXT2_ET_MAGIC_INODE_BITMAP64))
69 errcode_t (*new_bmap)(ext2_filsys fs, ext2fs_generic_bitmap bmap);
Dalloc_sb.c45 ext2fs_block_bitmap bmap) in ext2fs_reserve_super_and_bgd() argument
61 ext2fs_mark_block_bitmap2(bmap, super_blk); in ext2fs_reserve_super_and_bgd()
64 ext2fs_mark_block_bitmap2(bmap, 0); in ext2fs_reserve_super_and_bgd()
67 if (fs->super->s_reserved_gdt_blocks && fs->block_map == bmap) in ext2fs_reserve_super_and_bgd()
73 ext2fs_mark_block_bitmap_range2(bmap, old_desc_blk, num_blocks); in ext2fs_reserve_super_and_bgd()
76 ext2fs_mark_block_bitmap2(bmap, new_desc_blk); in ext2fs_reserve_super_and_bgd()
Dblkmap64_ba.c123 static errcode_t ba_resize_bmap(ext2fs_generic_bitmap bmap, in ba_resize_bmap() argument
126 ext2fs_ba_private bp = (ext2fs_ba_private) bmap->private; in ba_resize_bmap()
135 if (new_end > bmap->end) { in ba_resize_bmap()
136 bitno = bmap->real_end; in ba_resize_bmap()
139 for (; bitno > bmap->end; bitno--) in ba_resize_bmap()
140 ext2fs_clear_bit64(bitno - bmap->start, bp->bitarray); in ba_resize_bmap()
142 if (new_real_end == bmap->real_end) { in ba_resize_bmap()
143 bmap->end = new_end; in ba_resize_bmap()
147 size = ((bmap->real_end - bmap->start) / 8) + 1; in ba_resize_bmap()
148 new_size = ((new_real_end - bmap->start) / 8) + 1; in ba_resize_bmap()
[all …]
Dimager.c285 ext2fs_generic_bitmap bmap; in ext2fs_image_bitmap_write() local
298 bmap = fs->inode_map; in ext2fs_image_bitmap_write()
308 bmap = fs->block_map; in ext2fs_image_bitmap_write()
320 retval = ext2fs_get_generic_bmap_range(bmap, itr, in ext2fs_image_bitmap_write()
360 ext2fs_generic_bitmap bmap; in ext2fs_image_bitmap_read() local
373 bmap = fs->inode_map; in ext2fs_image_bitmap_read()
383 bmap = fs->block_map; in ext2fs_image_bitmap_read()
400 retval = ext2fs_set_generic_bmap_range(bmap, itr, in ext2fs_image_bitmap_read()
Dext2fsP.h116 ext2fs_generic_bitmap *bmap);
118 extern void ext2fs_free_generic_bmap(ext2fs_generic_bitmap bmap);
123 extern errcode_t ext2fs_resize_generic_bmap(ext2fs_generic_bitmap bmap,
Dext2fs.h676 ext2fs_block_bitmap bmap);
695 ext2fs_block_bitmap bmap);
773 ext2fs_inode_bitmap bmap);
776 ext2fs_inode_bitmap bmap);
778 ext2fs_block_bitmap bmap);
781 ext2fs_block_bitmap bmap);
786 extern errcode_t ext2fs_set_inode_bitmap_range(ext2fs_inode_bitmap bmap,
789 extern errcode_t ext2fs_set_inode_bitmap_range2(ext2fs_inode_bitmap bmap,
792 extern errcode_t ext2fs_get_inode_bitmap_range(ext2fs_inode_bitmap bmap,
795 extern errcode_t ext2fs_get_inode_bitmap_range2(ext2fs_inode_bitmap bmap,
[all …]
Dblkmap64_rb.c297 static errcode_t rb_resize_bmap(ext2fs_generic_bitmap bmap, in rb_resize_bmap() argument
302 if (new_real_end >= bmap->real_end) { in rb_resize_bmap()
303 bmap->end = new_end; in rb_resize_bmap()
304 bmap->real_end = new_real_end; in rb_resize_bmap()
308 bp = (struct ext2fs_rb_private *) bmap->private; in rb_resize_bmap()
315 bmap->end = new_end; in rb_resize_bmap()
316 bmap->real_end = new_real_end; in rb_resize_bmap()
DMakefile.pq13 bmap.obj \
Dtst_bitmaps.c249 void dump_bitmap(ext2fs_generic_bitmap bmap, unsigned int start, unsigned num) in dump_bitmap() argument
261 retval = ext2fs_get_generic_bmap_range(bmap, (__u64) start, num, buf); in dump_bitmap()
DAndroid.mk17 bmap.c \
/external/iptables/include/linux/netfilter/
Dxt_TCPOPTSTRIP.h6 #define tcpoptstrip_set_bit(bmap, idx) \ argument
7 (bmap[(idx) >> 5] |= 1U << (idx & 31))
8 #define tcpoptstrip_test_bit(bmap, idx) \ argument
9 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
/external/kernel-headers/original/uapi/linux/netfilter/
Dxt_TCPOPTSTRIP.h6 #define tcpoptstrip_set_bit(bmap, idx) \ argument
7 (bmap[(idx) >> 5] |= 1U << (idx & 31))
8 #define tcpoptstrip_test_bit(bmap, idx) \ argument
9 (((1U << (idx & 31)) & bmap[(idx) >> 5]) != 0)
/external/webrtc/webrtc/modules/video_render/windows/
Dvideo_render_direct3d9.cc1014 BITMAP bmap; in SetBitmap() local
1018 GetObject((HBITMAP)bitMap, sizeof(bmap), &bmap); in SetBitmap()
1024 pbi.bmiHeader.biWidth = bmap.bmWidth; in SetBitmap()
1025 pbi.bmiHeader.biHeight = bmap.bmHeight; in SetBitmap()
1027 pbi.bmiHeader.biBitCount = bmap.bmBitsPixel; in SetBitmap()
1029 pbi.bmiHeader.biSizeImage = bmap.bmWidth * bmap.bmHeight * 3; in SetBitmap()
1030 srcPtr = new unsigned char[bmap.bmWidth * bmap.bmHeight * 4]; in SetBitmap()
1032 int pixelHeight = GetDIBits(hdcNew, (HBITMAP)bitMap, 0, bmap.bmHeight, srcPtr, &pbi, in SetBitmap()
1057 ret = _pd3dDevice->CreateTexture(bmap.bmWidth, bmap.bmHeight, 1, 0, in SetBitmap()
1081 int pitch = bmap.bmWidth * 4; in SetBitmap()
[all …]
/external/e2fsprogs/misc/
Dtune2fs.c1304 ext2fs_block_bitmap bmap) in get_move_bitmaps() argument
1333 ext2fs_mark_block_bitmap2(bmap, j); in get_move_bitmaps()
1378 static int move_block(ext2_filsys fs, ext2fs_block_bitmap bmap) in move_block() argument
1394 if (!ext2fs_test_block_bitmap2(bmap, blk)) in move_block()
1472 ext2fs_block_bitmap bmap = (ext2fs_block_bitmap) priv_data; in process_block() local
1474 if (!ext2fs_test_block_bitmap2(bmap, *block_nr)) in process_block()
1488 static int inode_scan_and_fix(ext2_filsys fs, ext2fs_block_bitmap bmap) in inode_scan_and_fix() argument
1524 ext2fs_test_block_bitmap2(bmap, in inode_scan_and_fix()
1546 process_block, bmap); in inode_scan_and_fix()
1563 static int group_desc_scan_and_fix(ext2_filsys fs, ext2fs_block_bitmap bmap) in group_desc_scan_and_fix() argument
[all …]
/external/e2fsprogs/resize/
Dresize2fs.c54 ext2fs_block_bitmap bmap);
742 ext2fs_block_bitmap bmap) in mark_table_blocks() argument
748 ext2fs_reserve_super_and_bgd(fs, i, bmap); in mark_table_blocks()
755 ext2fs_mark_block_bitmap_range2(bmap, blk, in mark_table_blocks()
763 ext2fs_mark_block_bitmap2(bmap, blk); in mark_table_blocks()
770 ext2fs_mark_block_bitmap2(bmap, blk); in mark_table_blocks()
1238 retval = ext2fs_create_extent_table(&rfs->bmap, 0); in block_mover()
1267 ext2fs_add_extent_entry(rfs->bmap, B2C(blk), B2C(new_blk)); in block_mover()
1272 if (rfs->bmap) { in block_mover()
1273 ext2fs_free_extent_table(rfs->bmap); in block_mover()
[all …]
Dresize2fs.h109 ext2_extent bmap; member
/external/mesa3d/src/mesa/drivers/windows/gdi/
Dwgl.c407 unsigned char *bmap; in wglUseFontBitmaps_FX() local
442 bmap = malloc(numBytes); in wglUseFontBitmaps_FX()
445 res = GetDIBits(bitDevice, bitObject, 0, bmapHeight, bmap, in wglUseFontBitmaps_FX()
454 bmap); in wglUseFontBitmaps_FX()
462 free(bmap); in wglUseFontBitmaps_FX()
/external/e2fsprogs/tests/f_resize_inode/
Dscript72 echo "debugfs -R ''set_inode_field <7> bmap[524] 57'' -w test.img" > $OUT.new
73 $DEBUGFS -R "set_inode_field <7> bmap[524] 57" -w $TMPFILE >> $OUT.new 2>&1
/external/e2fsprogs/debugfs/
Dro_debug_cmds.ct79 bmap;
Ddebug_cmds.ct158 bmap;

12