Searched refs:blk (Results 1 - 25 of 93) sorted by relevance

1234

/external/e2fsprogs/lib/ext2fs/
H A Dwrite_bb_file.c22 blk_t blk; local
29 while (ext2fs_badblocks_list_iterate(bb_iter, &blk)) {
30 fprintf(f, "%u\n", blk);
H A Dcheck_desc.c39 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 Dbb_compat.c39 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 Dbadblocks.c107 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 Dalloc_stats.c64 void ext2fs_block_alloc_stats(ext2_filsys fs, blk_t blk, int inuse) argument
66 int group = ext2fs_group_of_blk(fs, blk);
69 if (blk >= fs->super->s_blocks_count) {
71 "Illegal block number: %lu", (unsigned long) blk);
76 ext2fs_mark_block_bitmap(fs->block_map, blk);
78 ext2fs_unmark_block_bitmap(fs->block_map, blk);
87 (fs->block_alloc_stats)(fs, (blk64_t) blk, inuse);
92 blk64_t blk,
95 blk64_t blk,
90 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 Dind_block.c22 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 Dmkdir.c40 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 Drw_bitmaps.c39 blk_t blk; local
91 blk = fs->group_desc[i].bg_block_bitmap;
92 if (blk) {
93 retval = io_channel_write_blk(fs->io, blk, 1,
114 blk = fs->group_desc[i].bg_inode_bitmap;
115 if (blk) {
116 retval = io_channel_write_blk(fs->io, blk, 1,
147 blk_t blk; local
195 blk = (fs->image_header->offset_inodemap / fs->blocksize);
198 retval = io_channel_read_blk(fs->image_io, blk
[all...]
H A Dalloc.c36 blk_t blk, super_blk, old_desc_blk, new_desc_blk; local
44 blk = (group * fs->super->s_blocks_per_group) +
56 for (i=0; i < fs->super->s_blocks_per_group; i++, blk++) {
57 if ((blk == super_blk) ||
59 (blk >= old_desc_blk) &&
60 (blk < old_desc_blk + old_desc_blocks)) ||
61 (new_desc_blk && (blk == new_desc_blk)) ||
62 (blk == fs->group_desc[group].bg_block_bitmap) ||
63 (blk == fs->group_desc[group].bg_inode_bitmap) ||
64 (blk >
[all...]
H A Dread_bb_file.c36 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 Dext_attr.c102 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 Ddblist.c156 errcode_t ext2fs_add_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, argument
177 new_entry->blk = blk;
189 errcode_t ext2fs_set_dir_block(ext2_dblist dblist, ext2_ino_t ino, blk_t blk, argument
200 dblist->list[i].blk = blk;
249 if (db_a->blk != db_b->blk)
250 return (int) (db_a->blk - db_b->blk);
[all...]
/external/e2fsprogs/debugfs/
H A Dunused.c29 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);
/external/e2fsprogs/e2fsck/
H A Dea_refcount.c113 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
229 ea_refcount_fetch(ext2_refcount_t refcount, blk_t blk, int *ret) argument
243 ea_refcount_increment(ext2_refcount_t refcount, blk_t blk, int *ret) argument
257 ea_refcount_decrement(ext2_refcount_t refcount, blk_t blk, int *ret) argument
272 ea_refcount_store(ext2_refcount_t refcount, blk_t blk, int count) argument
393 blk_t blk; local
[all...]
H A Dpass1.c407 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);
1369 blk_t blk; local
1410 blk_t blk; local
1593 blk_t blk; local
1674 blk_t blk; local
2109 blk_t blk = *block_nr; local
2259 blk_t blk = *block_nr; local
2696 e2fsck_block_alloc_stats(ext2_filsys fs, blk64_t blk, int inuse) argument
[all...]
/external/libnfc-nxp/src/
H A DphFriNfc_ISO15693Map.h43 #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 Dyaffs_ramdisk.c121 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 Dyaffs_ramem2k.c93 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 Dyaffs_flashif.c117 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 Dresize2fs.c61 #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
1714 blk_t blk; local
1777 blk_t blk; local
[all...]
/external/zlib/examples/
H A Dfitblk.c132 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/bluetooth/bluez/sbc/
H A Dsbc_primitives.c430 int ch, sb, blk; local
434 for (blk = 0; blk < blocks; blk++) {
435 int32_t tmp = fabs(sb_sample_f[blk][ch][sb]);
450 int blk, joint = 0; local
458 for (blk = 0; blk < blocks; blk++) {
459 tmp0 = fabs(sb_sample_f[blk][
[all...]
H A Dsbc.c387 int ch, sb, blk, bit; /* channel, subband, block and bit standard local
493 for (blk = 0; blk < frame->blocks; blk++) {
508 frame->sb_sample[blk][ch][sb] =
512 frame->sb_sample[blk][ch][sb] = 0;
518 for (blk = 0; blk < frame->blocks; blk++) {
521 temp = frame->sb_sample[blk][
561 sbc_synthesize_four(struct sbc_decoder_state *state, struct sbc_frame *frame, int ch, int blk) argument
603 sbc_synthesize_eight(struct sbc_decoder_state *state, struct sbc_frame *frame, int ch, int blk) argument
652 int ch, blk; local
677 int ch, blk; local
775 int ch, sb, blk; /* channel, subband, block and bit counters */ local
[all...]
/external/libpcap/
H A Dgrammar.y150 } 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 Dtest_rel.c55 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...]

Completed in 262 milliseconds

1234