Lines Matching defs:ma
51 struct brel_ma *ma = 0;
70 retval = ext2fs_get_mem(sizeof(struct brel_ma), &ma);
73 memset(ma, 0, sizeof(struct brel_ma));
74 brel->priv_data = ma;
79 sizeof(struct ext2_block_relocate_entry), &ma->entries);
82 memset(ma->entries, 0, size);
83 ma->max_block = max_block;
107 struct brel_ma *ma;
109 ma = brel->priv_data;
110 if (old > ma->max_block)
112 ma->entries[(unsigned)old] = *ent;
119 struct brel_ma *ma;
121 ma = brel->priv_data;
122 if (old > ma->max_block)
124 if (ma->entries[(unsigned)old].new == 0)
126 *ent = ma->entries[old];
139 struct brel_ma *ma;
141 ma = brel->priv_data;
142 while (++brel->current < ma->max_block) {
143 if (ma->entries[(unsigned)brel->current].new == 0)
146 *ent = ma->entries[(unsigned)brel->current];
155 struct brel_ma *ma;
157 ma = brel->priv_data;
158 if ((old > ma->max_block) || (new > ma->max_block))
160 if (ma->entries[(unsigned)old].new == 0)
162 ma->entries[(unsigned)new] = ma->entries[old];
163 ma->entries[(unsigned)old].new = 0;
169 struct brel_ma *ma;
171 ma = brel->priv_data;
172 if (old > ma->max_block)
174 if (ma->entries[(unsigned)old].new == 0)
176 ma->entries[(unsigned)old].new = 0;
182 struct brel_ma *ma;
187 ma = brel->priv_data;
189 if (ma) {
190 if (ma->entries)
191 ext2fs_free_mem(&ma->entries);
192 ext2fs_free_mem(&ma);