Lines Matching refs:current_req
260 static struct request *current_req; variable
1865 pr_info("current_req=%p\n", current_req); in show_floppy()
2271 current_req = NULL; in floppy_end_request()
2278 struct request *req = current_req; in request_done()
2437 blk_rq_sectors(current_req)); in copy_buffer()
2440 buffer_max > fsector_t + blk_rq_sectors(current_req)) in copy_buffer()
2442 blk_rq_sectors(current_req)); in copy_buffer()
2445 if (remaining > blk_rq_bytes(current_req) && CT(raw_cmd->cmd[COMMAND]) == FD_WRITE) { in copy_buffer()
2450 blk_rq_sectors(current_req)); in copy_buffer()
2452 blk_rq_cur_sectors(current_req)); in copy_buffer()
2461 size = blk_rq_cur_bytes(current_req); in copy_buffer()
2463 rq_for_each_segment(bv, current_req, iter) { in copy_buffer()
2549 set_fdc((long)current_req->q->disk->private_data); in make_raw_rw_request()
2554 if (rq_data_dir(current_req) == READ) { in make_raw_rw_request()
2557 } else if (rq_data_dir(current_req) == WRITE) { 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()
2570 if (blk_rq_cur_sectors(current_req) & 1) { in make_raw_rw_request()
2589 blk_rq_sectors(current_req)); in make_raw_rw_request()
2641 max_size = blk_rq_sectors(current_req); in make_raw_rw_request()
2650 } else if (in_sector_offset || blk_rq_sectors(current_req) < ssize) { in make_raw_rw_request()
2654 sectors = fsector_t + blk_rq_sectors(current_req); in make_raw_rw_request()
2674 (!in_sector_offset && blk_rq_sectors(current_req) >= ssize)) && in make_raw_rw_request()
2757 current_req = list_first_entry_or_null(&floppy_reqs, struct request, in set_next_request()
2759 if (current_req) { in set_next_request()
2761 list_del_init(¤t_req->queuelist); in set_next_request()
2780 if (!current_req) { in redo_fd_request()
2792 drive = (long)current_req->q->disk->private_data; in redo_fd_request()
2861 current_req, (long)blk_rq_pos(current_req), in floppy_queue_rq()
2862 (__force unsigned long long) current_req->cmd_flags)) in floppy_queue_rq()