• Home
  • Raw
  • Download

Lines Matching refs:blk

107 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
174 if (blk == bb->list[low]) in ext2fs_u32_list_find()
176 if (blk == bb->list[high]) in ext2fs_u32_list_find()
183 if (blk == bb->list[mid]) in ext2fs_u32_list_find()
185 if (blk < bb->list[mid]) in ext2fs_u32_list_find()
197 int ext2fs_u32_list_test(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_test() argument
199 if (ext2fs_u32_list_find(bb, blk) < 0) in ext2fs_u32_list_test()
205 int ext2fs_badblocks_list_test(ext2_badblocks_list bb, blk_t blk) in ext2fs_badblocks_list_test() argument
207 return ext2fs_u32_list_test((ext2_u32_list) bb, (__u32) blk); in ext2fs_badblocks_list_test()
214 int ext2fs_u32_list_del(ext2_u32_list bb, __u32 blk) in ext2fs_u32_list_del() argument
221 remloc = ext2fs_u32_list_find(bb, blk); in ext2fs_u32_list_del()
231 void ext2fs_badblocks_list_del(ext2_u32_list bb, __u32 blk) in ext2fs_badblocks_list_del() argument
233 ext2fs_u32_list_del(bb, blk); in ext2fs_badblocks_list_del()
263 int ext2fs_u32_list_iterate(ext2_u32_iterate iter, __u32 *blk) in ext2fs_u32_list_iterate() argument
276 *blk = bb->list[iter->ptr++]; in ext2fs_u32_list_iterate()
279 *blk = 0; in ext2fs_u32_list_iterate()
283 int ext2fs_badblocks_list_iterate(ext2_badblocks_iterate iter, blk_t *blk) in ext2fs_badblocks_list_iterate() argument
286 (__u32 *) blk); in ext2fs_badblocks_list_iterate()