Lines Matching refs:last_rec

272 static int count_ccws(sector_t first_rec, sector_t last_rec,  in count_ccws()  argument
282 if (wz_stop > last_rec) in count_ccws()
283 wz_stop = last_rec; in count_ccws()
288 if (last_rec - (first_rec + cur_pos) + 1 >= blocks_per_page) { in count_ccws()
289 if ((last_rec - blocks_per_page + 1) % blocks_per_page != 0) in count_ccws()
290 d_stop = last_rec - ((last_rec - blocks_per_page + 1) % in count_ccws()
293 d_stop = last_rec; in count_ccws()
299 if (cur_pos == 0 || first_rec + cur_pos - 1 < last_rec) in count_ccws()
326 sector_t first_rec, last_rec; in dasd_fba_build_cp_discard() local
339 last_rec = in dasd_fba_build_cp_discard()
341 count = last_rec - first_rec + 1; in dasd_fba_build_cp_discard()
344 nr_ccws = count_ccws(first_rec, last_rec, blocks_per_page); in dasd_fba_build_cp_discard()
365 if (wz_stop > last_rec) in dasd_fba_build_cp_discard()
366 wz_stop = last_rec; in dasd_fba_build_cp_discard()
379 if (last_rec - (first_rec + cur_pos) + 1 >= blocks_per_page) { in dasd_fba_build_cp_discard()
381 if ((last_rec - blocks_per_page + 1) % blocks_per_page != 0) in dasd_fba_build_cp_discard()
382 d_stop = last_rec - ((last_rec - blocks_per_page + 1) % in dasd_fba_build_cp_discard()
385 d_stop = last_rec; in dasd_fba_build_cp_discard()
399 if (cur_pos == 0 || first_rec + cur_pos - 1 < last_rec) { in dasd_fba_build_cp_discard()
401 wz_count = last_rec - d_stop; in dasd_fba_build_cp_discard()
403 wz_count = last_rec - wz_stop; in dasd_fba_build_cp_discard()
443 sector_t recid, first_rec, last_rec; in dasd_fba_build_cp_regular() local
456 last_rec = in dasd_fba_build_cp_regular()
470 if (count != last_rec - first_rec + 1) in dasd_fba_build_cp_regular()