/external/e2fsprogs/lib/ext2fs/ |
H A D | write_bb_file.c | 22 blk_t blk; local 29 while (ext2fs_badblocks_list_iterate(bb_iter, &blk)) { 30 fprintf(f, "%u\n", blk);
|
H A D | check_desc.c | 39 blk_t blk, b; local 63 blk = fs->group_desc[i].bg_block_bitmap; 64 if (blk < first_block || blk > last_block || 65 ext2fs_test_block_bitmap(bmap, blk)) { 69 ext2fs_mark_block_bitmap(bmap, blk); 74 blk = fs->group_desc[i].bg_inode_bitmap; 75 if (blk < first_block || blk > last_block || 76 ext2fs_test_block_bitmap(bmap, blk)) { [all...] |
H A D | bb_compat.c | 39 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk) argument 41 return ext2fs_badblocks_list_add(bb, blk); 44 int badblocks_list_test(badblocks_list bb, blk_t blk) argument 46 return ext2fs_badblocks_list_test(bb, blk); 55 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk) argument 57 return ext2fs_badblocks_list_iterate(iter, blk);
|
H A D | badblocks.c | 107 errcode_t ext2fs_u32_list_add(ext2_u32_list bb, __u32 blk) argument 130 if ((bb->num != 0) && (bb->list[i] == blk)) 132 if ((bb->num == 0) || (bb->list[i] < blk)) { 133 bb->list[bb->num++] = blk; 139 if (bb->list[i] == blk) 141 if (bb->list[i] > blk) { 148 bb->list[j] = blk; 153 errcode_t ext2fs_badblocks_list_add(ext2_badblocks_list bb, blk_t blk) argument 155 return ext2fs_u32_list_add((ext2_u32_list) bb, (__u32) blk); 162 int ext2fs_u32_list_find(ext2_u32_list bb, __u32 blk) argument 197 ext2fs_u32_list_test(ext2_u32_list bb, __u32 blk) argument 205 ext2fs_badblocks_list_test(ext2_badblocks_list bb, blk_t blk) argument 214 ext2fs_u32_list_del(ext2_u32_list bb, __u32 blk) argument 231 ext2fs_badblocks_list_del(ext2_u32_list bb, __u32 blk) argument 263 ext2fs_u32_list_iterate(ext2_u32_iterate iter, __u32 *blk) argument 283 ext2fs_badblocks_list_iterate(ext2_badblocks_iterate iter, blk_t *blk) argument [all...] |
H A D | alloc_stats.c | 63 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) argument 65 int group = ext2fs_group_of_blk(fs, blk); 68 if (blk >= fs->super->s_blocks_count) { 70 "Illegal block number: %lu", (unsigned long) blk); 75 ext2fs_mark_block_bitmap(fs->block_map, blk); 77 ext2fs_unmark_block_bitmap(fs->block_map, blk); 86 (fs->block_alloc_stats)(fs, (blk64_t) blk, inuse); 91 blk64_t blk, 94 blk64_t blk, 89 ext2fs_set_block_alloc_stats_callback(ext2_filsys fs, void (*func)(ext2_filsys fs, blk64_t blk, int inuse), void (**old)(ext2_filsys fs, blk64_t blk, int inuse)) argument
|
H A D | ind_block.c | 22 errcode_t ext2fs_read_ind_block(ext2_filsys fs, blk_t blk, void *buf) argument 35 retval = io_channel_read_blk(fs->io, blk, 1, buf); 47 errcode_t ext2fs_write_ind_block(ext2_filsys fs, blk_t blk, void *buf) argument 63 return io_channel_write_blk(fs->io, blk, 1, buf);
|
H A D | mkdir.c | 40 blk_t blk; local 58 retval = ext2fs_new_block(fs, 0, 0, &blk); 86 inode.i_block[0] = blk; 93 retval = ext2fs_write_dir_block(fs, blk, block); 131 ext2fs_block_alloc_stats(fs, blk, +1);
|
H A D | rw_bitmaps.c | 39 blk_t blk; local 93 blk = fs->group_desc[i].bg_block_bitmap; 94 if (blk) { 95 retval = io_channel_write_blk(fs->io, blk, 1, 116 blk = fs->group_desc[i].bg_inode_bitmap; 117 if (blk) { 118 retval = io_channel_write_blk(fs->io, blk, 1, 149 blk_t blk; local 202 blk = (fs->image_header->offset_inodemap / fs->blocksize); 205 retval = io_channel_read_blk(fs->image_io, blk [all...] |
H A D | alloc.c | 35 blk_t blk, super_blk, old_desc_blk, new_desc_blk; local 43 blk = (group * fs->super->s_blocks_per_group) + 55 for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) { 56 if ((blk == super_blk) || 58 (blk >= old_desc_blk) && 59 (blk < old_desc_blk + old_desc_blocks)) || 60 (new_desc_blk && (blk == new_desc_blk)) || 61 (blk == fs->group_desc[group].bg_block_bitmap) || 62 (blk == fs->group_desc[group].bg_inode_bitmap) || 63 (blk > [all...] |
H A D | read_bb_file.c | 36 blk_t blk, 78 static void call_compat_invalid(ext2_filsys fs, blk_t blk, argument 86 (st->invalid)(fs, blk); 95 void (*invalid)(ext2_filsys fs, blk_t blk)) 32 ext2fs_read_bb_FILE2(ext2_filsys fs, FILE *f, ext2_badblocks_list *bb_list, void *priv_data, void (*invalid)(ext2_filsys fs, blk_t blk, char *badstr, void *priv_data)) argument 93 ext2fs_read_bb_FILE(ext2_filsys fs, FILE *f, ext2_badblocks_list *bb_list, void (*invalid)(ext2_filsys fs, blk_t blk)) argument
|
H A D | ext_attr.c | 102 errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk, argument 110 if ((blk >= fs->super->s_blocks_count) || 111 (blk < fs->super->s_first_data_block)) 121 retval = ext2fs_read_ext_attr(fs, blk, block_buf); 130 retval = ext2fs_write_ext_attr(fs, blk, block_buf);
|
H A D | dblist.c | 155 errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, argument 176 new_entry->blk = blk; 188 errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, argument 199 dblist->list[i].blk = blk; 248 if (db_a->blk != db_b->blk) 249 return (int) (db_a->blk - db_b->blk); [all...] |
H A D | tst_iscan.c | 174 unsigned long blk; local 185 for (j=0, blk = test_fs->group_desc[i].bg_inode_table; 187 j++, blk++) { 188 if (!ext2fs_test_block_bitmap(touched_map, blk) && 189 !ext2fs_test_block_bitmap(bad_block_map, blk)) { 190 printf("Missing block --- %lu\n", blk);
|
/external/e2fsprogs/debugfs/ |
H A D | unused.c | 29 unsigned long blk; local 38 for (blk=current_fs->super->s_first_data_block; 39 blk < current_fs->super->s_blocks_count; blk++) { 40 if (ext2fs_test_block_bitmap(current_fs->block_map,blk)) 42 retval = io_channel_read_blk(current_fs->io, blk, 1, buf); 53 blk);
|
H A D | htree.c | 34 blk_t blk, char *buf) 47 errcode = ext2fs_bmap(fs, ino, inode, buf, 0, blk, &pblk); 50 "while mapping logical block %u\n", blk); 55 (unsigned long) blk, (unsigned long) pblk); 60 (unsigned long) blk, (unsigned long) pblk); 74 (unsigned long) blk); 81 fprintf(pager, "Corrupted directory block (%u)!\n", blk); 112 blk_t blk, char *buf, int level); 161 blk_t blk, char *buf, int level) 173 errcode = ext2fs_bmap(fs, ino, inode, buf, 0, blk, 31 htree_dump_leaf_node(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, struct ext2_dx_root_info * rootnode, blk_t blk, char *buf) argument 158 htree_dump_int_block(ext2_filsys fs, ext2_ino_t ino, struct ext2_inode *inode, struct ext2_dx_root_info * rootnode, blk_t blk, char *buf, int level) argument 202 blk_t blk; local [all...] |
/external/e2fsprogs/e2fsck/ |
H A D | ea_refcount.c | 113 blk_t blk, int pos) 144 el->ea_blk = blk; 155 blk_t blk, int create) 167 (blk > refcount->list[high].ea_blk))) { 171 return insert_refcount_el(refcount, blk, 179 if (blk == refcount->list[refcount->cursor].ea_blk) 182 printf("Non-cursor get_refcount_el: %u\n", blk); 195 if (blk < lowval) 197 else if (blk > highval) 200 range = ((float) (blk 112 insert_refcount_el(ext2_refcount_t refcount, blk_t blk, int pos) argument 154 get_refcount_el(ext2_refcount_t refcount, blk_t blk, int create) argument 234 ea_refcount_fetch(ext2_refcount_t refcount, blk_t blk, int *ret) argument 248 ea_refcount_increment(ext2_refcount_t refcount, blk_t blk, int *ret) argument 262 ea_refcount_decrement(ext2_refcount_t refcount, blk_t blk, int *ret) argument 277 ea_refcount_store(ext2_refcount_t refcount, blk_t blk, int count) argument 398 blk_t blk; local [all...] |
H A D | pass1.c | 407 blk_t blk; local 444 &blk)) 450 blk = inode->i_block[i]; 451 if (!blk) 456 if (blk < ctx->fs->super->s_first_data_block || 457 blk >= ctx->fs->super->s_blocks_count || 459 blk)) 462 blk = inode->i_block[0]; 476 retval = ext2fs_read_dir_block(ctx->fs, blk, buf); 1373 blk_t blk; local 1415 blk_t blk; local 1598 blk_t blk; local 1679 blk_t blk; local 2127 blk_t blk = *block_nr; local 2277 blk_t blk = *block_nr; local 2714 e2fsck_block_alloc_stats(ext2_filsys fs, blk64_t blk, int inuse) argument [all...] |
/external/libnfc-nxp/src/ |
H A D | phFriNfc_ISO15693Map.h | 43 #define ISO15693_GET_VALUE_FIELD_BLOCK_NO(blk, byte_addr, ndef_size) \ 45 (ISO15693_BYTES_PER_BLOCK - 1)) ? (blk + 1) : blk) 47 #define ISO15693_GET_VALUE_FIELD_BYTE_NO(blk, byte_addr, ndef_size) \
|
/external/yaffs2/yaffs2/direct/ |
H A D | yaffs_ramdisk.c | 121 int blk; local 127 blk = chunkInNAND/32; 133 memcpy(ramdisk.block[blk]->page[pg].data,data,512); 142 memcpy(&ramdisk.block[blk]->page[pg].data[512],&pt,sizeof(pt)); 152 int blk; local 158 blk = chunkInNAND/32; 164 memcpy(data,ramdisk.block[blk]->page[pg].data,512); 172 memcpy(&pt,&ramdisk.block[blk]->page[pg].data[512],sizeof(pt)); 183 int blk; local 190 blk [all...] |
H A D | yaffs_ramem2k.c | 93 nandemul_Block *blk; local 100 blk = ned.block[blockNumber]; 104 memset(blk->page[i],0xff,sizeof(nandemul_Page)); 105 blk->page[i]->empty = 1; 149 nandemul_Block *blk; local 151 if(!(blk = ned.block[i] = YMALLOC(sizeof(nandemul_Block)))) 159 if((blk->page[j] = YMALLOC(sizeof(nandemul_Page))) == 0) 194 int blk; local 201 blk = chunkInNAND/PAGES_PER_BLOCK; 207 x = ned.block[blk] 237 int blk; local 267 int blk; local [all...] |
H A D | yaffs_flashif.c | 117 int blk; local 123 blk = chunkInNAND/32; 129 memcpy(ramdisk.block[blk]->page[pg].data,data,512); 137 memcpy(&ramdisk.block[blk]->page[pg].data[512],&pt,sizeof(pt)); 147 int blk; local 153 blk = chunkInNAND/32; 159 memcpy(data,ramdisk.block[blk]->page[pg].data,512); 166 memcpy(&pt,&ramdisk.block[blk]->page[pg].data[512],sizeof(yaffs_PackedTags)); 176 int blk; local 183 blk [all...] |
/external/e2fsprogs/resize/ |
H A D | resize2fs.c | 61 #define IS_BLOCK_BM(fs, i, blk) ((blk) == FS_BLOCK_BM((fs),(i))) 62 #define IS_INODE_BM(fs, i, blk) ((blk) == FS_INODE_BM((fs),(i))) 64 #define IS_INODE_TB(fs, i, blk) (((blk) >= FS_INODE_TB((fs), (i))) && \ 65 ((blk) < (FS_INODE_TB((fs), (i)) + \ 193 blk_t i, blk, super_blk, old_desc_blk, new_desc_blk; local 205 blk = (g * fs->super->s_blocks_per_group) + 217 for (i=0; i < fs->super->s_blocks_per_group; i++, blk 257 blk_t blk; local 300 blk_t blk, group_block; local 729 mark_fs_metablock(ext2_resize_t rfs, ext2fs_block_bitmap meta_bmap, int group, blk_t blk) argument 777 blk_t blk, group_blk; local 1081 blk_t blk; local 1100 blk_t blk, old_blk, new_blk; local 1587 blk_t old_blk, new_blk, blk; local 1762 blk_t blk; local [all...] |
/external/zlib/src/examples/ |
H A D | fitblk.c | 132 unsigned char *blk; /* intermediate and final stream */ local 147 blk = malloc(size + EXCESS); 152 if (ret != Z_OK || blk == NULL) 157 def.next_out = blk; 166 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) 172 free(blk); 194 inf.next_in = blk; 211 def.next_out = blk; 219 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) 228 free(blk); [all...] |
/external/libpcap/ |
H A D | grammar.y | 150 } blk; 154 %type <blk> expr id nid pid term rterm qid 155 %type <blk> head 159 %type <blk> and or paren not null prog 162 %type <blk> atmfield 163 %type <blk> atmfieldvalue atmvalue atmlistvalue 165 %type <blk> mtp3field 166 %type <blk> mtp3fieldvalue mtp3value mtp3listvalue 224 and: AND { $$ = $<blk>0; } 226 or: OR { $$ = $<blk> [all...] |
/external/e2fsprogs/tests/progs/ |
H A D | test_rel.c | 55 const char *str, blk_t *blk) 59 *blk = strtoul(str, &tmp, 0); 218 blk_t blk; local 226 if (parse_block(argv[0], "block", argv[1], &blk)) 228 retval = ext2fs_brel_get(brel, blk, &ent); 233 display_brel_entry(blk, &ent); 256 blk_t blk; local 261 retval = ext2fs_brel_next(brel, &blk, &ent); 266 if (blk == 0) { 270 display_brel_entry(blk, 54 parse_block(const char *request, const char *desc, const char *str, blk_t *blk) argument 278 blk_t blk; local 332 blk_t blk; local [all...] |