Lines Matching refs:pf_req
262 static struct request *pf_req; /* current request */ variable
817 pf_req = list_first_entry(&pf->rq_list, struct request, in set_next_request()
819 list_del_init(&pf_req->queuelist); in set_next_request()
820 blk_mq_start_request(pf_req); in set_next_request()
825 return pf_req != NULL; in set_next_request()
830 if (!pf_req) in pf_end_request()
832 if (!blk_update_request(pf_req, err, blk_rq_cur_bytes(pf_req))) { in pf_end_request()
833 __blk_mq_end_request(pf_req, err); in pf_end_request()
834 pf_req = NULL; in pf_end_request()
843 if (!pf_req && !set_next_request()) in pf_request()
846 pf_current = pf_req->rq_disk->private_data; in pf_request()
847 pf_block = blk_rq_pos(pf_req); in pf_request()
848 pf_run = blk_rq_sectors(pf_req); in pf_request()
849 pf_count = blk_rq_cur_sectors(pf_req); in pf_request()
851 if (pf_block + pf_count > get_capacity(pf_req->rq_disk)) { in pf_request()
856 pf_cmd = rq_data_dir(pf_req); in pf_request()
857 pf_buf = bio_data(pf_req->bio); in pf_request()
899 if (!pf_req) in pf_next_buf()
901 pf_count = blk_rq_cur_sectors(pf_req); in pf_next_buf()
902 pf_buf = bio_data(pf_req->bio); in pf_next_buf()