Lines Matching refs:blk_per_trk
715 dasd_eckd_cdl_special(int blk_per_trk, int recid) in dasd_eckd_cdl_special() argument
719 if (recid < blk_per_trk) in dasd_eckd_cdl_special()
721 if (recid < 2 * blk_per_trk) in dasd_eckd_cdl_special()
2352 unsigned int sb, blk_per_trk; in dasd_eckd_end_analysis() local
2368 blk_per_trk = DASD_RAW_BLOCK_PER_TRACK; in dasd_eckd_end_analysis()
2431 blk_per_trk = recs_per_track(&private->rdc_data, 0, block->bp_block); in dasd_eckd_end_analysis()
2436 blk_per_trk); in dasd_eckd_end_analysis()
2443 blk_per_trk * (block->bp_block >> 9)) >> 1), in dasd_eckd_end_analysis()
2444 ((blk_per_trk * block->bp_block) >> 10), in dasd_eckd_end_analysis()
3945 unsigned int blk_per_trk, in dasd_eckd_build_cp_cmd_single() argument
4005 if (private->uses_cdl && first_rec < 2*blk_per_trk) { in dasd_eckd_build_cp_cmd_single()
4006 if (last_rec >= 2*blk_per_trk) in dasd_eckd_build_cp_cmd_single()
4007 count = 2*blk_per_trk - first_rec; in dasd_eckd_build_cp_cmd_single()
4044 if (private->uses_cdl == 0 || recid > 2*blk_per_trk) { in dasd_eckd_build_cp_cmd_single()
4062 unsigned int recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_single()
4066 if (private->uses_cdl && recid < 2*blk_per_trk) { in dasd_eckd_build_cp_cmd_single()
4067 if (dasd_eckd_cdl_special(blk_per_trk, recid)){ in dasd_eckd_build_cp_cmd_single()
4081 if (private->uses_cdl && recid == 2*blk_per_trk) { in dasd_eckd_build_cp_cmd_single()
4137 unsigned int blk_per_trk, in dasd_eckd_build_cp_cmd_track() argument
4223 recoffs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_cmd_track()
4224 count_to_trk_end = blk_per_trk - recoffs; in dasd_eckd_build_cp_cmd_track()
4311 unsigned int blk_per_trk) in prepare_itcw() argument
4420 dedata->ep_rec_per_track = blk_per_trk; in prepare_itcw()
4469 unsigned int blk_per_trk, in dasd_eckd_build_cp_tpm_track() argument
4541 tlf, blk_per_trk) == -EAGAIN) { in dasd_eckd_build_cp_tpm_track()
4566 offs = sector_div(trkid, blk_per_trk); in dasd_eckd_build_cp_tpm_track()
4567 count_to_trk_end = blk_per_trk - offs; in dasd_eckd_build_cp_tpm_track()
4645 unsigned int blk_per_trk, blksize; in dasd_eckd_build_cp() local
4655 blk_per_trk = recs_per_track(&private->rdc_data, 0, blksize); in dasd_eckd_build_cp()
4656 if (blk_per_trk == 0) in dasd_eckd_build_cp()
4660 first_offs = sector_div(first_trk, blk_per_trk); in dasd_eckd_build_cp()
4663 last_offs = sector_div(last_trk, blk_per_trk); in dasd_eckd_build_cp()
4664 cdlspecial = (private->uses_cdl && first_rec < 2*blk_per_trk); in dasd_eckd_build_cp()
4688 blk_per_trk, blksize); in dasd_eckd_build_cp()
4699 blk_per_trk, blksize); in dasd_eckd_build_cp()
4709 blk_per_trk, blksize); in dasd_eckd_build_cp()
4873 unsigned int blksize, blk_per_trk, off; in dasd_eckd_free_cp() local
4881 blk_per_trk = recs_per_track(&private->rdc_data, 0, blksize); in dasd_eckd_free_cp()
4886 if (private->uses_cdl == 0 || recid > 2*blk_per_trk) in dasd_eckd_free_cp()
4892 if (private->uses_cdl && recid <= 2*blk_per_trk) in dasd_eckd_free_cp()