Lines Matching refs:max_sector
2411 static int transfer_size(int ssize, int max_sector, int max_size) in transfer_size() argument
2413 SUPBOUND(max_sector, fsector_t + max_size); in transfer_size()
2416 max_sector -= (max_sector % _floppy->sect) % ssize; in transfer_size()
2419 current_count_sectors = max_sector - fsector_t; in transfer_size()
2421 return max_sector; in transfer_size()
2427 static void copy_buffer(int ssize, int max_sector, int max_sector_2) in copy_buffer() argument
2435 max_sector = transfer_size(ssize, in copy_buffer()
2436 min(max_sector, max_sector_2), in copy_buffer()
2453 pr_info("max_sector=%d\n", max_sector); in copy_buffer()
2457 buffer_max = max(max_sector, buffer_max); in copy_buffer()
2495 max_sector -= remaining >> 9; in copy_buffer()
2541 int max_sector; in make_raw_rw_request() local
2565 max_sector = _floppy->sect * _floppy->head; in make_raw_rw_request()
2567 raw_cmd->cmd[TRACK] = (int)blk_rq_pos(current_req) / max_sector; in make_raw_rw_request()
2568 fsector_t = (int)blk_rq_pos(current_req) % max_sector; in make_raw_rw_request()
2581 max_sector = _floppy->sect; in make_raw_rw_request()
2585 max_sector = 2 * _floppy->sect / 3; in make_raw_rw_request()
2586 if (fsector_t >= max_sector) { in make_raw_rw_request()
2631 max_sector = raw_cmd->cmd[HEAD] * _floppy->sect + tracksize; in make_raw_rw_request()
2633 max_sector = _floppy->sect; in make_raw_rw_request()
2636 max_sector = _floppy->sect; in make_raw_rw_request()
2647 copy_buffer(1, max_sector, buffer_max); in make_raw_rw_request()
2666 max_size = max_sector; /* unbounded */ in make_raw_rw_request()
2675 max_sector > 2 * max_buffer_sectors + buffer_min && in make_raw_rw_request()
2694 copy_buffer(ssize, max_sector, in make_raw_rw_request()
2697 transfer_size(ssize, max_sector, in make_raw_rw_request()
2718 fsector_t, aligned_sector_t, max_sector, max_size); in make_raw_rw_request()