Home
last modified time | relevance | path

Searched refs:blk (Results 1 – 25 of 139) sorted by relevance

123456

/external/e2fsprogs/lib/quota/
Dquotaio_tree.c61 static void read_blk(struct quota_handle *h, uint blk, dqbuf_t buf) in read_blk() argument
65 err = h->e2fs_read(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in read_blk()
68 log_err("Cannot read block %u: %s", blk, strerror(errno)); in read_blk()
74 static int write_blk(struct quota_handle *h, uint blk, dqbuf_t buf) in write_blk() argument
78 err = h->e2fs_write(&h->qh_qf, blk << QT_BLKSIZE_BITS, buf, in write_blk()
81 log_err("Cannot write block (%u): %s", blk, strerror(errno)); in write_blk()
93 int blk; in get_free_dqblk() local
99 blk = info->dqi_free_blk; in get_free_dqblk()
100 read_blk(h, blk, buf); in get_free_dqblk()
111 blk = info->dqi_blocks++; in get_free_dqblk()
[all …]
/external/libpcap/
Dgrammar.c608 } blk; member
2254 finish_parse((yyvsp[(2) - (2)].blk).b);
2262 { (yyval.blk).q = qerr; }
2269 …{ gen_and((yyvsp[(1) - (3)].blk).b, (yyvsp[(3) - (3)].blk).b); (yyval.blk) = (yyvsp[(3) - (3)].blk
2276 …{ gen_and((yyvsp[(1) - (3)].blk).b, (yyvsp[(3) - (3)].blk).b); (yyval.blk) = (yyvsp[(3) - (3)].blk
2283 …{ gen_or((yyvsp[(1) - (3)].blk).b, (yyvsp[(3) - (3)].blk).b); (yyval.blk) = (yyvsp[(3) - (3)].blk)…
2290 …{ gen_or((yyvsp[(1) - (3)].blk).b, (yyvsp[(3) - (3)].blk).b); (yyval.blk) = (yyvsp[(3) - (3)].blk)…
2297 { (yyval.blk) = (yyvsp[(0) - (1)].blk); }
2304 { (yyval.blk) = (yyvsp[(0) - (1)].blk); }
2311 { (yyval.blk).b = gen_ncode(NULL, (bpf_u_int32)(yyvsp[(1) - (1)].i),
[all …]
Dgrammar.y254 } blk; member
258 %type <blk> expr id nid pid term rterm qid
259 %type <blk> head
263 %type <blk> and or paren not null prog
266 %type <blk> atmfield
267 %type <blk> atmfieldvalue atmvalue atmlistvalue
269 %type <blk> mtp3field
270 %type <blk> mtp3fieldvalue mtp3value mtp3listvalue
330 and: AND { $$ = $<blk>0; }
332 or: OR { $$ = $<blk>0; }
[all …]
/external/e2fsprogs/e2fsck/
Dea_refcount.c113 blk64_t blk, int pos) in insert_refcount_el() argument
144 el->ea_blk = blk; in insert_refcount_el()
155 blk64_t blk, int create) in get_refcount_el() argument
165 (blk > refcount->list[high].ea_blk))) { in get_refcount_el()
169 return insert_refcount_el(refcount, blk, in get_refcount_el()
177 if (blk == refcount->list[refcount->cursor].ea_blk) in get_refcount_el()
180 printf("Non-cursor get_refcount_el: %u\n", blk); in get_refcount_el()
184 if (blk == refcount->list[mid].ea_blk) { in get_refcount_el()
188 if (blk < refcount->list[mid].ea_blk) in get_refcount_el()
203 return insert_refcount_el(refcount, blk, low); in get_refcount_el()
[all …]
Dpass1.c406 blk64_t blk; in check_is_really_dir() local
443 &blk)) in check_is_really_dir()
449 blk = inode->i_block[i]; in check_is_really_dir()
450 if (!blk) in check_is_really_dir()
455 if (blk < ctx->fs->super->s_first_data_block || in check_is_really_dir()
456 blk >= ext2fs_blocks_count(ctx->fs->super) || in check_is_really_dir()
458 blk)) in check_is_really_dir()
461 blk = inode->i_block[0]; in check_is_really_dir()
475 retval = ext2fs_read_dir_block3(ctx->fs, blk, buf, 0); in check_is_really_dir()
1456 blk64_t blk; in adjust_extattr_refcount() local
[all …]
/external/e2fsprogs/lib/ext2fs/
Dcheck_desc.c39 blk64_t blk, b; in ext2fs_check_desc() local
64 blk = ext2fs_block_bitmap_loc(fs, i); in ext2fs_check_desc()
65 if (blk < first_block || blk > last_block || 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()
75 blk = ext2fs_inode_bitmap_loc(fs, i); in ext2fs_check_desc()
76 if (blk < first_block || blk > last_block || 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()
86 blk = ext2fs_inode_table_loc(fs, i); in ext2fs_check_desc()
[all …]
Dbadblocks.c107 errcode_t ext2fs_u32_list_add(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_add() argument
130 if ((bb->num != 0) && (bb->list[i] == blk)) in ext2fs_u32_list_add()
132 if ((bb->num == 0) || (bb->list[i] < blk)) { in ext2fs_u32_list_add()
133 bb->list[bb->num++] = blk; in ext2fs_u32_list_add()
139 if (bb->list[i] == blk) in ext2fs_u32_list_add()
141 if (bb->list[i] > blk) { in ext2fs_u32_list_add()
148 bb->list[j] = blk; in ext2fs_u32_list_add()
153 errcode_t ext2fs_badblocks_list_add(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_add() argument
155 return ext2fs_u32_list_add((ext2_u32_list) bb, (__u32) blk); in ext2fs_badblocks_list_add()
162 int ext2fs_u32_list_find(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_find() argument
[all …]
Dblknum.c19 dgrp_t ext2fs_group_of_blk2(ext2_filsys fs, blk64_t blk) in ext2fs_group_of_blk2() argument
21 return (blk - fs->super->s_first_data_block) / in ext2fs_group_of_blk2()
102 void ext2fs_blocks_count_set(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_set() argument
104 super->s_blocks_count = blk; in ext2fs_blocks_count_set()
106 super->s_blocks_count_hi = (__u64) blk >> 32; in ext2fs_blocks_count_set()
112 void ext2fs_blocks_count_add(struct ext2_super_block *super, blk64_t blk) in ext2fs_blocks_count_add() argument
115 tmp = ext2fs_blocks_count(super) + blk; in ext2fs_blocks_count_add()
132 void ext2fs_r_blocks_count_set(struct ext2_super_block *super, blk64_t blk) in ext2fs_r_blocks_count_set() argument
134 super->s_r_blocks_count = blk; in ext2fs_r_blocks_count_set()
136 super->s_r_blocks_count_hi = (__u64) blk >> 32; in ext2fs_r_blocks_count_set()
[all …]
Ddblist.c160 blk64_t blk, e2_blkcnt_t blockcnt) in ext2fs_add_dir_block2() argument
180 new_entry->blk = blk; in ext2fs_add_dir_block2()
193 blk64_t blk, e2_blkcnt_t blockcnt) in ext2fs_set_dir_block2() argument
203 dblist->list[i].blk = blk; in ext2fs_set_dir_block2()
252 if (db_a->blk != db_b->blk) in dir_block_cmp2()
253 return (int) (db_a->blk - db_b->blk); in dir_block_cmp2()
297 errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_add_dir_block() argument
300 return ext2fs_add_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_add_dir_block()
306 errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, in ext2fs_set_dir_block() argument
309 return ext2fs_set_dir_block2(dblist, ino, blk, blockcnt); in ext2fs_set_dir_block()
[all …]
Dalloc_stats.c61 void ext2fs_block_alloc_stats2(ext2_filsys fs, blk64_t blk, int inuse) in ext2fs_block_alloc_stats2() argument
63 int group = ext2fs_group_of_blk2(fs, blk); in ext2fs_block_alloc_stats2()
66 if (blk >= ext2fs_blocks_count(fs->super)) { in ext2fs_block_alloc_stats2()
68 "Illegal block number: %lu", (unsigned long) blk); in ext2fs_block_alloc_stats2()
73 ext2fs_mark_block_bitmap2(fs->block_map, blk); in ext2fs_block_alloc_stats2()
75 ext2fs_unmark_block_bitmap2(fs->block_map, blk); in ext2fs_block_alloc_stats2()
85 (fs->block_alloc_stats)(fs, (blk64_t) blk, inuse); in ext2fs_block_alloc_stats2()
88 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) in ext2fs_block_alloc_stats() argument
90 ext2fs_block_alloc_stats2(fs, blk, inuse); in ext2fs_block_alloc_stats()
95 blk64_t blk, in ext2fs_set_block_alloc_stats_callback() argument
[all …]
Drw_bitmaps.c39 blk64_t blk; in write_bitmaps() local
92 blk = ext2fs_block_bitmap_loc(fs, i); in write_bitmaps()
93 if (blk) { in write_bitmaps()
94 retval = io_channel_write_blk64(fs->io, blk, 1, in write_bitmaps()
117 blk = ext2fs_inode_bitmap_loc(fs, i); in write_bitmaps()
118 if (blk) { in write_bitmaps()
119 retval = io_channel_write_blk64(fs->io, blk, 1, in write_bitmaps()
157 blk64_t blk; in read_bitmaps() local
207 blk = (fs->image_header->offset_inodemap / fs->blocksize); in read_bitmaps()
210 retval = io_channel_read_blk64(fs->image_io, blk++, in read_bitmaps()
[all …]
Dbb_compat.c39 errcode_t badblocks_list_add(badblocks_list bb, blk_t blk) in badblocks_list_add() argument
41 return ext2fs_badblocks_list_add(bb, blk); in badblocks_list_add()
44 int badblocks_list_test(badblocks_list bb, blk_t blk) in badblocks_list_test() argument
46 return ext2fs_badblocks_list_test(bb, blk); in badblocks_list_test()
55 int badblocks_list_iterate(badblocks_iterate iter, blk_t *blk) in badblocks_list_iterate() argument
57 return ext2fs_badblocks_list_iterate(iter, blk); in badblocks_list_iterate()
Dalloc.c35 blk64_t blk, super_blk, old_desc_blk, new_desc_blk; in check_block_uninit() local
43 blk = ext2fs_group_first_block2(fs, group); in check_block_uninit()
54 for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) in check_block_uninit()
55 ext2fs_fast_unmark_block_bitmap2(map, blk); in check_block_uninit()
57 blk = ext2fs_group_first_block2(fs, group); in check_block_uninit()
58 for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) { in check_block_uninit()
59 if ((blk == super_blk) || in check_block_uninit()
61 (blk >= old_desc_blk) && in check_block_uninit()
62 (blk < old_desc_blk + old_desc_blocks)) || in check_block_uninit()
63 (new_desc_blk && (blk == new_desc_blk)) || in check_block_uninit()
[all …]
Dext_attr.c113 errcode_t ext2fs_adjust_ea_refcount2(ext2_filsys fs, blk64_t blk, in ext2fs_adjust_ea_refcount2() argument
121 if ((blk >= ext2fs_blocks_count(fs->super)) || in ext2fs_adjust_ea_refcount2()
122 (blk < fs->super->s_first_data_block)) in ext2fs_adjust_ea_refcount2()
132 retval = ext2fs_read_ext_attr2(fs, blk, block_buf); in ext2fs_adjust_ea_refcount2()
141 retval = ext2fs_write_ext_attr2(fs, blk, block_buf); in ext2fs_adjust_ea_refcount2()
151 errcode_t ext2fs_adjust_ea_refcount(ext2_filsys fs, blk_t blk, in ext2fs_adjust_ea_refcount() argument
155 return ext2fs_adjust_ea_refcount(fs, blk, block_buf, adjust, newcount); in ext2fs_adjust_ea_refcount()
Dmkdir.c41 blk64_t blk; in ext2fs_mkdir() local
59 retval = ext2fs_new_block2(fs, 0, 0, &blk); in ext2fs_mkdir()
90 inode.i_block[0] = blk; in ext2fs_mkdir()
97 retval = ext2fs_write_dir_block(fs, blk, block); in ext2fs_mkdir()
108 retval = ext2fs_extent_set_bmap(handle, 0, blk, 0); in ext2fs_mkdir()
145 ext2fs_block_alloc_stats2(fs, blk, +1); in ext2fs_mkdir()
/external/yaffs2/yaffs2/direct/
Dyaffs_ramem2k.c93 nandemul_Block *blk; in nandemul_ReallyEraseBlock() local
100 blk = ned.block[blockNumber]; in nandemul_ReallyEraseBlock()
104 memset(blk->page[i],0xff,sizeof(nandemul_Page)); in nandemul_ReallyEraseBlock()
105 blk->page[i]->empty = 1; in nandemul_ReallyEraseBlock()
149 nandemul_Block *blk; in CheckInit() local
151 if(!(blk = ned.block[i] = YMALLOC(sizeof(nandemul_Block)))) in CheckInit()
159 if((blk->page[j] = YMALLOC(sizeof(nandemul_Page))) == 0) in CheckInit()
194 int blk; in nandemul2k_WriteChunkWithTagsToNAND() local
201 blk = chunkInNAND/PAGES_PER_BLOCK; in nandemul2k_WriteChunkWithTagsToNAND()
207 x = ned.block[blk]->page[pg]->data; in nandemul2k_WriteChunkWithTagsToNAND()
[all …]
Dyaffs_ramdisk.c121 int blk; in yramdisk_WriteChunkWithTagsToNAND() local
127 blk = chunkInNAND/32; in yramdisk_WriteChunkWithTagsToNAND()
133 memcpy(ramdisk.block[blk]->page[pg].data,data,512); in yramdisk_WriteChunkWithTagsToNAND()
142 memcpy(&ramdisk.block[blk]->page[pg].data[512],&pt,sizeof(pt)); in yramdisk_WriteChunkWithTagsToNAND()
152 int blk; in yramdisk_ReadChunkWithTagsFromNAND() local
158 blk = chunkInNAND/32; in yramdisk_ReadChunkWithTagsFromNAND()
164 memcpy(data,ramdisk.block[blk]->page[pg].data,512); in yramdisk_ReadChunkWithTagsFromNAND()
172 memcpy(&pt,&ramdisk.block[blk]->page[pg].data[512],sizeof(pt)); in yramdisk_ReadChunkWithTagsFromNAND()
183 int blk; in yramdisk_CheckChunkErased() local
190 blk = chunkInNAND/32; in yramdisk_CheckChunkErased()
[all …]
Dyaffs_flashif.c117 int blk; in yflash_WriteChunkWithTagsToNAND() local
123 blk = chunkInNAND/32; in yflash_WriteChunkWithTagsToNAND()
129 memcpy(ramdisk.block[blk]->page[pg].data,data,512); in yflash_WriteChunkWithTagsToNAND()
137 memcpy(&ramdisk.block[blk]->page[pg].data[512],&pt,sizeof(pt)); in yflash_WriteChunkWithTagsToNAND()
147 int blk; in yflash_ReadChunkWithTagsFromNAND() local
153 blk = chunkInNAND/32; in yflash_ReadChunkWithTagsFromNAND()
159 memcpy(data,ramdisk.block[blk]->page[pg].data,512); in yflash_ReadChunkWithTagsFromNAND()
166 memcpy(&pt,&ramdisk.block[blk]->page[pg].data[512],sizeof(yaffs_PackedTags)); in yflash_ReadChunkWithTagsFromNAND()
176 int blk; in yflash_CheckChunkErased() local
183 blk = chunkInNAND/32; in yflash_CheckChunkErased()
[all …]
/external/e2fsprogs/resize/
Dresize2fs.c59 #define IS_BLOCK_BM(fs, i, blk) ((blk) == ext2fs_block_bitmap_loc((fs),(i))) argument
60 #define IS_INODE_BM(fs, i, blk) ((blk) == ext2fs_inode_bitmap_loc((fs),(i))) argument
62 #define IS_INODE_TB(fs, i, blk) (((blk) >= ext2fs_inode_table_loc((fs), (i))) && \ argument
63 ((blk) < (ext2fs_inode_table_loc((fs), (i)) + \
228 blk64_t blk, lblk; in fix_uninit_block_bitmaps() local
240 blk = ext2fs_group_first_block2(fs, g); in fix_uninit_block_bitmaps()
242 ext2fs_unmark_block_bitmap_range2(fs->block_map, blk, in fix_uninit_block_bitmaps()
243 lblk - blk + 1); in fix_uninit_block_bitmaps()
250 for (i = 0, blk = ext2fs_inode_table_loc(fs, g); in fix_uninit_block_bitmaps()
252 i++, blk++) in fix_uninit_block_bitmaps()
[all …]
/external/e2fsprogs/debugfs/
Dunused.c29 blk64_t blk; in do_dump_unused() local
38 for (blk=current_fs->super->s_first_data_block; in do_dump_unused()
39 blk < ext2fs_blocks_count(current_fs->super); blk++) { in do_dump_unused()
40 if (ext2fs_test_block_bitmap2(current_fs->block_map,blk)) in do_dump_unused()
42 retval = io_channel_read_blk64(current_fs->io, blk, 1, buf); in do_dump_unused()
53 blk); in do_dump_unused()
Dicheck.c22 blk64_t blk; member
44 if (!bw->barray[i].ino && bw->barray[i].blk == *block_nr) { in icheck_proc()
88 if (strtoblk(argv[0], argv[i], &bw.barray[i-1].blk)) in do_icheck()
109 blk64_t blk; in do_icheck() local
116 blk = ext2fs_file_acl_block(current_fs, &inode); in do_icheck()
117 if (blk) { in do_icheck()
118 icheck_proc(current_fs, &blk, 0, in do_icheck()
122 ext2fs_file_acl_block_set(current_fs, &inode, blk); in do_icheck()
160 printf("%llu\t<block not found>\n", binfo->blk); in do_icheck()
163 printf("%llu\t%u\n", binfo->blk, binfo->ino); in do_icheck()
Dhtree.c34 blk64_t blk, char *buf) in htree_dump_leaf_node() argument
47 errcode = ext2fs_bmap2(fs, ino, inode, buf, 0, blk, 0, &pblk); in htree_dump_leaf_node()
50 "while mapping logical block %llu\n", blk); in htree_dump_leaf_node()
54 fprintf(pager, "Reading directory block %llu, phys %llu\n", blk, pblk); in htree_dump_leaf_node()
59 blk, pblk); in htree_dump_leaf_node()
73 (unsigned long) blk); in htree_dump_leaf_node()
81 blk); in htree_dump_leaf_node()
111 blk64_t blk, char *buf, int level);
160 blk64_t blk, char *buf, int level) in htree_dump_int_block() argument
172 errcode = ext2fs_bmap2(fs, ino, inode, buf, 0, blk, 0, &pblk); in htree_dump_int_block()
[all …]
/external/zlib/src/examples/
Dfitblk.c132 unsigned char *blk; /* intermediate and final stream */ in main() local
147 blk = malloc(size + EXCESS); in main()
152 if (ret != Z_OK || blk == NULL) in main()
157 def.next_out = blk; in main()
166 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
172 free(blk); in main()
194 inf.next_in = blk; in main()
211 def.next_out = blk; in main()
219 if (fwrite(blk, 1, have, stdout) != have || ferror(stdout)) in main()
228 free(blk); in main()
/external/clang/test/SemaObjCXX/
Darc-nsconsumed-errors.mm4 typedef void (^blk)(id, __attribute((ns_consumed)) id);
6 blk a = ^void (__attribute((ns_consumed)) id, __attribute((ns_consumed)) id){}; // expected-error {…
8 blk b = ^void (id, __attribute((ns_consumed)) id){};
10 blk c = ^void (__attribute((ns_consumed)) id, __attribute((ns_consumed)) id){}; // expected-error {…
12 blk d = ^void (id, id) {}; // expected-error {{cannot initialize a variable of type '__strong blk'}}
/external/e2fsprogs/tests/progs/
Dtest_rel.c55 const char *str, blk_t *blk) in parse_block() argument
59 *blk = strtoul(str, &tmp, 0); in parse_block()
218 blk_t blk; in do_brel_get() local
226 if (parse_block(argv[0], "block", argv[1], &blk)) in do_brel_get()
228 retval = ext2fs_brel_get(brel, blk, &ent); in do_brel_get()
233 display_brel_entry(blk, &ent); in do_brel_get()
256 blk_t blk; in do_brel_next() local
261 retval = ext2fs_brel_next(brel, &blk, &ent); in do_brel_next()
266 if (blk == 0) { in do_brel_next()
270 display_brel_entry(blk, &ent); in do_brel_next()
[all …]

123456