Lines Matching refs:pd_req

245 struct pd_req {  struct
362 static struct request *pd_req; /* current request */ variable
414 pd_req = list_first_entry(&disk->rq_list, in set_next_request()
417 list_del_init(&pd_req->queuelist); in set_next_request()
418 blk_mq_start_request(pd_req); in set_next_request()
423 return pd_req != NULL; in set_next_request()
433 pd_current = pd_req->q->disk->private_data; in run_fsm()
458 if (!blk_update_request(pd_req, err, in run_fsm()
459 blk_rq_cur_bytes(pd_req))) { in run_fsm()
460 __blk_mq_end_request(pd_req, err); in run_fsm()
461 pd_req = NULL; in run_fsm()
487 switch (req_op(pd_req)) { in do_pd_io_start()
493 pd_block = blk_rq_pos(pd_req); in do_pd_io_start()
494 pd_count = blk_rq_cur_sectors(pd_req); in do_pd_io_start()
495 if (pd_block + pd_count > get_capacity(pd_req->q->disk)) in do_pd_io_start()
497 pd_run = blk_rq_sectors(pd_req); in do_pd_io_start()
498 pd_buf = bio_data(pd_req->bio); in do_pd_io_start()
500 if (req_op(pd_req) == REQ_OP_READ) in do_pd_io_start()
512 struct pd_req *req = blk_mq_rq_to_pdu(pd_req); in pd_special()
530 if (!blk_update_request(pd_req, 0, blk_rq_cur_bytes(pd_req))) { in pd_next_buf()
531 __blk_mq_end_request(pd_req, 0); in pd_next_buf()
532 pd_req = NULL; in pd_next_buf()
536 pd_count = blk_rq_cur_sectors(pd_req); in pd_next_buf()
537 pd_buf = bio_data(pd_req->bio); in pd_next_buf()
763 if (!pd_req) { in pd_queue_rq()
764 pd_req = bd->rq; in pd_queue_rq()
765 blk_mq_start_request(pd_req); in pd_queue_rq()
778 struct pd_req *req; in pd_special_command()
904 disk->tag_set.cmd_size = sizeof(struct pd_req); in pd_probe_drive()