Lines Matching refs:current_count_sectors

585 static long current_count_sectors;  variable
2321 block = current_count_sectors + CURRENT->sector; in request_done()
2328 while (current_count_sectors && !QUEUE_EMPTY && in request_done()
2329 current_count_sectors >= CURRENT->current_nr_sectors){ in request_done()
2330 current_count_sectors -= CURRENT->current_nr_sectors; in request_done()
2337 if (current_count_sectors && !QUEUE_EMPTY){ in request_done()
2339 CURRENT->buffer += current_count_sectors <<9; in request_done()
2340 CURRENT->current_nr_sectors -= current_count_sectors; in request_done()
2341 CURRENT->nr_sectors -= current_count_sectors; in request_done()
2342 CURRENT->sector += current_count_sectors; in request_done()
2346 if (current_count_sectors && QUEUE_EMPTY) in request_done()
2400 (in_sector_offset + current_count_sectors + ssize - 1) / ssize) { in rw_interrupt()
2402 nr_sectors, current_count_sectors); in rw_interrupt()
2415 SUPBOUND(current_count_sectors, nr_sectors); in rw_interrupt()
2422 if (!current_count_sectors){ in rw_interrupt()
2429 if (!current_count_sectors){ in rw_interrupt()
2490 current_count_sectors = max_sector - sector_t ; in transfer_size()
2509 if (current_count_sectors <= 0 && CT(COMMAND) == FD_WRITE && in copy_buffer()
2511 current_count_sectors = minimum(buffer_max - sector_t, in copy_buffer()
2514 remaining = current_count_sectors << 9; in copy_buffer()
2519 printk("current_count_sectors=%ld\n", current_count_sectors); in copy_buffer()
2548 current_count_sectors); in copy_buffer()
2670 current_count_sectors = 1; in make_raw_rw_request()
2685 current_count_sectors = minimum(_floppy->sect - sector_t, in make_raw_rw_request()
2793 raw_cmd->length = current_count_sectors << 9; in make_raw_rw_request()
2846 raw_cmd->length = in_sector_offset+current_count_sectors; in make_raw_rw_request()
2852 if ((raw_cmd->length < current_count_sectors << 9) || in make_raw_rw_request()
2858 raw_cmd->length <= 0 || current_count_sectors <= 0){ in make_raw_rw_request()
2860 raw_cmd->length, current_count_sectors); in make_raw_rw_request()
2865 current_count_sectors); in make_raw_rw_request()
2880 current_count_sectors < 0 || in make_raw_rw_request()
2889 current_count_sectors); in make_raw_rw_request()
2897 current_count_sectors > CURRENT->nr_sectors){ in make_raw_rw_request()
2900 } else if (raw_cmd->length < current_count_sectors << 9){ in make_raw_rw_request()
2903 printk("sectors=%ld\n", current_count_sectors); in make_raw_rw_request()