Lines Matching refs:trks_per_ext
3705 static int count_exts(unsigned int from, unsigned int to, int trks_per_ext) in count_exts() argument
3715 if (from % trks_per_ext != 0) { in count_exts()
3716 tmp = from + trks_per_ext - (from % trks_per_ext) - 1; in count_exts()
3723 if (to - (from + cur_pos) + 1 >= trks_per_ext) { in count_exts()
3724 tmp = to - ((to - trks_per_ext + 1) % trks_per_ext); in count_exts()
3725 count += (tmp - (from + cur_pos) + 1) / trks_per_ext; in count_exts()
3752 int trks_per_ext; in dasd_eckd_dso_ras() local
3766 trks_per_ext = dasd_eckd_ext_size(device) * private->rdc_data.trk_per_cyl; in dasd_eckd_dso_ras()
3769 nr_exts = count_exts(first_trk, last_trk, trks_per_ext); in dasd_eckd_dso_ras()
3800 cur_to_trk = first_trk + trks_per_ext - in dasd_eckd_dso_ras()
3801 (first_trk % trks_per_ext) - 1; in dasd_eckd_dso_ras()
3816 cur_to_trk = cur_from_trk + trks_per_ext - 1; in dasd_eckd_dso_ras()
3863 int trks_per_ext; in dasd_eckd_release_space_trks() local
3872 trks_per_ext = dasd_eckd_ext_size(device) * private->rdc_data.trk_per_cyl; in dasd_eckd_release_space_trks()
3875 step = trks_per_ext * min(device_exts, DASD_ECKD_RAS_EXTS_MAX); in dasd_eckd_release_space_trks()
3882 ((cur_pos + step) % trks_per_ext) - 1; in dasd_eckd_release_space_trks()