Lines Matching refs:pd_req
352 static struct request *pd_req; /* current request */ variable
395 pd_current = pd_req->rq_disk->private_data; in run_fsm()
416 if (!__blk_end_request_cur(pd_req, in run_fsm()
418 pd_req = blk_fetch_request(pd_queue); in run_fsm()
419 if (!pd_req) in run_fsm()
444 if (pd_req->cmd_type == REQ_TYPE_SPECIAL) { in do_pd_io_start()
449 pd_cmd = rq_data_dir(pd_req); in do_pd_io_start()
451 pd_block = blk_rq_pos(pd_req); in do_pd_io_start()
452 pd_count = blk_rq_cur_sectors(pd_req); in do_pd_io_start()
453 if (pd_block + pd_count > get_capacity(pd_req->rq_disk)) in do_pd_io_start()
455 pd_run = blk_rq_sectors(pd_req); in do_pd_io_start()
456 pd_buf = pd_req->buffer; in do_pd_io_start()
468 enum action (*func)(struct pd_unit *) = pd_req->special; in pd_special()
485 __blk_end_request_cur(pd_req, 0); in pd_next_buf()
486 pd_count = blk_rq_cur_sectors(pd_req); in pd_next_buf()
487 pd_buf = pd_req->buffer; in pd_next_buf()
708 if (pd_req) in do_pd_request()
710 pd_req = blk_fetch_request(q); in do_pd_request()
711 if (!pd_req) in do_pd_request()