Lines Matching refs:max_sector
2478 static int transfer_size(int ssize, int max_sector, int max_size) in transfer_size() argument
2480 SUPBOUND(max_sector, fsector_t + max_size); in transfer_size()
2483 max_sector -= (max_sector % _floppy->sect) % ssize; in transfer_size()
2486 current_count_sectors = max_sector - fsector_t; in transfer_size()
2488 return max_sector; in transfer_size()
2494 static void copy_buffer(int ssize, int max_sector, int max_sector_2) in copy_buffer() argument
2503 max_sector = transfer_size(ssize, in copy_buffer()
2504 min(max_sector, max_sector_2), in copy_buffer()
2523 printk("max_sector=%d\n", max_sector); in copy_buffer()
2528 buffer_max = max(max_sector, buffer_max); in copy_buffer()
2573 max_sector -= remaining >> 9; in copy_buffer()
2621 int max_sector; in make_raw_rw_request() local
2648 max_sector = _floppy->sect * _floppy->head; in make_raw_rw_request()
2650 TRACK = (int)current_req->sector / max_sector; in make_raw_rw_request()
2651 fsector_t = (int)current_req->sector % max_sector; in make_raw_rw_request()
2663 max_sector = _floppy->sect; in make_raw_rw_request()
2667 max_sector = 2 * _floppy->sect / 3; in make_raw_rw_request()
2668 if (fsector_t >= max_sector) { in make_raw_rw_request()
2712 max_sector = HEAD * _floppy->sect + tracksize; in make_raw_rw_request()
2714 max_sector = _floppy->sect; in make_raw_rw_request()
2717 max_sector = _floppy->sect; in make_raw_rw_request()
2728 copy_buffer(1, max_sector, buffer_max); in make_raw_rw_request()
2747 transfer_size(ssize, max_sector, in make_raw_rw_request()
2766 direct = transfer_size(ssize, max_sector, max_size) - fsector_t; in make_raw_rw_request()
2795 max_size = max_sector; /* unbounded */ in make_raw_rw_request()
2804 max_sector > 2 * max_buffer_sectors + buffer_min && in make_raw_rw_request()
2826 copy_buffer(ssize, max_sector, in make_raw_rw_request()
2829 transfer_size(ssize, max_sector, in make_raw_rw_request()
2853 fsector_t, aligned_sector_t, max_sector, max_size); in make_raw_rw_request()