Lines Matching refs:max_sector

2482 static int transfer_size(int ssize, int max_sector, int max_size)  in transfer_size()  argument
2484 SUPBOUND(max_sector, sector_t + max_size); in transfer_size()
2487 max_sector -= (max_sector % _floppy->sect) % ssize; in transfer_size()
2490 current_count_sectors = max_sector - sector_t ; in transfer_size()
2492 return max_sector; in transfer_size()
2498 static void copy_buffer(int ssize, int max_sector, int max_sector_2) in copy_buffer() argument
2505 max_sector = transfer_size(ssize, in copy_buffer()
2506 minimum(max_sector, max_sector_2), in copy_buffer()
2524 printk("max_sector=%d\n", max_sector); in copy_buffer()
2529 buffer_max = maximum(max_sector, buffer_max); in copy_buffer()
2580 max_sector -= remaining >> 9; in copy_buffer()
2640 int max_sector, max_size, tracksize, ssize; in make_raw_rw_request() local
2664 max_sector = _floppy->sect * _floppy->head; in make_raw_rw_request()
2666 TRACK = CURRENT->sector / max_sector; in make_raw_rw_request()
2667 sector_t = CURRENT->sector % max_sector; in make_raw_rw_request()
2679 max_sector = _floppy->sect; in make_raw_rw_request()
2683 max_sector = 2 * _floppy->sect / 3; in make_raw_rw_request()
2684 if (sector_t >= max_sector){ in make_raw_rw_request()
2727 max_sector = HEAD * _floppy->sect + tracksize; in make_raw_rw_request()
2729 max_sector = _floppy->sect; in make_raw_rw_request()
2732 max_sector = _floppy->sect; in make_raw_rw_request()
2743 copy_buffer(1, max_sector, buffer_max); in make_raw_rw_request()
2761 indirect= transfer_size(ssize,max_sector,max_buffer_sectors*2) - in make_raw_rw_request()
2777 direct = transfer_size(ssize,max_sector,max_size) - sector_t; in make_raw_rw_request()
2810 max_size = max_sector; /* unbounded */ in make_raw_rw_request()
2819 max_sector > 2 * max_buffer_sectors + buffer_min && in make_raw_rw_request()
2840 copy_buffer(ssize, max_sector, 2*max_buffer_sectors+buffer_min); in make_raw_rw_request()
2842 transfer_size(ssize, max_sector, in make_raw_rw_request()
2867 sector_t, aligned_sector_t, max_sector, max_size); in make_raw_rw_request()