Lines Matching refs:sectors
53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors, in badblocks_check() argument
60 sector_t target = s + sectors; in badblocks_check()
162 int badblocks_set(struct badblocks *bb, sector_t s, int sectors, in badblocks_set() argument
176 sector_t next = s + sectors; in badblocks_set()
181 sectors = next - s; in badblocks_set()
212 if (s == a && s + sectors >= e) in badblocks_set()
218 if (e < s + sectors) in badblocks_set()
219 e = s + sectors; in badblocks_set()
231 sectors = e - s; in badblocks_set()
234 if (sectors && hi < bb->count) { in badblocks_set()
242 if (a <= s + sectors) { in badblocks_set()
244 if (e <= s + sectors) { in badblocks_set()
246 e = s + sectors; in badblocks_set()
259 sectors = e - s; in badblocks_set()
264 if (sectors == 0 && hi < bb->count) { in badblocks_set()
282 while (sectors) { in badblocks_set()
291 int this_sectors = sectors; in badblocks_set()
300 sectors -= this_sectors; in badblocks_set()
330 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors) in badblocks_clear() argument
334 sector_t target = s + sectors; in badblocks_clear()