Lines Matching refs:sectors
20 * badblocks_check() - check a given range for bad sectors
23 * @sectors: number of sectors to check for badblocks
30 * Length of bad-range, in sectors: 0-511 for lengths 1-512
53 int badblocks_check(struct badblocks *bb, sector_t s, int sectors,
60 sector_t target = s + sectors;
151 * @sectors: number of sectors to mark as bad
152 * @acknowledged: weather to mark the bad sectors as acknowledged
162 int badblocks_set(struct badblocks *bb, sector_t s, int sectors,
176 sector_t next = s + sectors;
181 sectors = next - s;
212 if (s == a && s + sectors >= e)
218 if (e < s + sectors)
219 e = s + sectors;
231 sectors = e - s;
234 if (sectors && hi < bb->count) {
242 if (a <= s + sectors) {
244 if (e <= s + sectors) {
246 e = s + sectors;
259 sectors = e - s;
264 if (sectors == 0 && hi < bb->count) {
282 while (sectors) {
291 int this_sectors = sectors;
300 sectors -= this_sectors;
320 * @sectors: number of sectors to mark as bad
330 int badblocks_clear(struct badblocks *bb, sector_t s, int sectors)
334 sector_t target = s + sectors;