Lines Matching refs:brel

29 static errcode_t bma_put(ext2_brel brel, blk64_t old,
31 static errcode_t bma_get(ext2_brel brel, blk64_t old,
33 static errcode_t bma_start_iter(ext2_brel brel);
34 static errcode_t bma_next(ext2_brel brel, blk64_t *old,
36 static errcode_t bma_move(ext2_brel brel, blk64_t old, blk64_t new);
37 static errcode_t bma_delete(ext2_brel brel, blk64_t old);
38 static errcode_t bma_free(ext2_brel brel);
49 ext2_brel brel = 0; in ext2fs_brel_memarray_create() local
60 &brel); in ext2fs_brel_memarray_create()
63 memset(brel, 0, sizeof(struct ext2_block_relocation_table)); in ext2fs_brel_memarray_create()
65 retval = ext2fs_get_mem(strlen(name)+1, &brel->name); in ext2fs_brel_memarray_create()
68 strcpy(brel->name, name); in ext2fs_brel_memarray_create()
74 brel->priv_data = ma; in ext2fs_brel_memarray_create()
88 brel->put = bma_put; in ext2fs_brel_memarray_create()
89 brel->get = bma_get; in ext2fs_brel_memarray_create()
90 brel->start_iter = bma_start_iter; in ext2fs_brel_memarray_create()
91 brel->next = bma_next; in ext2fs_brel_memarray_create()
92 brel->move = bma_move; in ext2fs_brel_memarray_create()
93 brel->delete = bma_delete; in ext2fs_brel_memarray_create()
94 brel->free = bma_free; in ext2fs_brel_memarray_create()
96 *new_brel = brel; in ext2fs_brel_memarray_create()
100 bma_free(brel); in ext2fs_brel_memarray_create()
104 static errcode_t bma_put(ext2_brel brel, blk64_t old, in bma_put() argument
109 ma = brel->priv_data; in bma_put()
116 static errcode_t bma_get(ext2_brel brel, blk64_t old, in bma_get() argument
121 ma = brel->priv_data; in bma_get()
130 static errcode_t bma_start_iter(ext2_brel brel) in bma_start_iter() argument
132 brel->current = 0; in bma_start_iter()
136 static errcode_t bma_next(ext2_brel brel, blk64_t *old, in bma_next() argument
141 ma = brel->priv_data; in bma_next()
142 while (++brel->current < ma->max_block) { in bma_next()
143 if (ma->entries[(unsigned)brel->current].new == 0) in bma_next()
145 *old = brel->current; in bma_next()
146 *ent = ma->entries[(unsigned)brel->current]; in bma_next()
153 static errcode_t bma_move(ext2_brel brel, blk64_t old, blk64_t new) in bma_move() argument
157 ma = brel->priv_data; in bma_move()
167 static errcode_t bma_delete(ext2_brel brel, blk64_t old) in bma_delete() argument
171 ma = brel->priv_data; in bma_delete()
180 static errcode_t bma_free(ext2_brel brel) in bma_free() argument
184 if (!brel) in bma_free()
187 ma = brel->priv_data; in bma_free()
194 if (brel->name) in bma_free()
195 ext2fs_free_mem(&brel->name); in bma_free()
196 ext2fs_free_mem(&brel); in bma_free()