Lines Matching refs:map_req

479 	struct ufshpb_req *map_req;  in ufshpb_get_map_req()  local
492 map_req = ufshpb_get_req(hpb, srgn->rgn_idx, REQ_OP_DRV_IN, false); in ufshpb_get_map_req()
493 if (!map_req) in ufshpb_get_map_req()
498 ufshpb_put_req(hpb, map_req); in ufshpb_get_map_req()
502 map_req->bio = bio; in ufshpb_get_map_req()
504 map_req->rb.srgn_idx = srgn->srgn_idx; in ufshpb_get_map_req()
505 map_req->rb.mctx = srgn->mctx; in ufshpb_get_map_req()
511 return map_req; in ufshpb_get_map_req()
515 struct ufshpb_req *map_req) in ufshpb_put_map_req() argument
519 bio_put(map_req->bio); in ufshpb_put_map_req()
520 ufshpb_put_req(hpb, map_req); in ufshpb_put_map_req()
628 struct ufshpb_req *map_req = req->end_io_data; in ufshpb_map_req_compl_fn() local
629 struct ufshpb_lu *hpb = map_req->hpb; in ufshpb_map_req_compl_fn()
633 srgn = hpb->rgn_tbl[map_req->rb.rgn_idx].srgn_tbl + in ufshpb_map_req_compl_fn()
634 map_req->rb.srgn_idx; in ufshpb_map_req_compl_fn()
641 ufshpb_put_map_req(map_req->hpb, map_req); in ufshpb_map_req_compl_fn()
688 struct ufshpb_req *map_req, bool last) in ufshpb_execute_map_req() argument
699 ret = bio_add_pc_page(q, map_req->bio, map_req->rb.mctx->m_page[i], in ufshpb_execute_map_req()
704 map_req->rb.rgn_idx, map_req->rb.srgn_idx); in ufshpb_execute_map_req()
709 req = map_req->req; in ufshpb_execute_map_req()
711 blk_rq_append_bio(req, map_req->bio); in ufshpb_execute_map_req()
713 req->end_io_data = map_req; in ufshpb_execute_map_req()
720 ufshpb_set_read_buf_cmd(scmd->cmnd, map_req->rb.rgn_idx, in ufshpb_execute_map_req()
721 map_req->rb.srgn_idx, mem_size); in ufshpb_execute_map_req()
993 struct ufshpb_req *map_req; in ufshpb_issue_map_req() local
1042 map_req = ufshpb_get_map_req(hpb, srgn); in ufshpb_issue_map_req()
1043 if (!map_req) in ufshpb_issue_map_req()
1047 ret = ufshpb_execute_map_req(hpb, map_req, srgn->is_last); in ufshpb_issue_map_req()
1057 ufshpb_put_map_req(hpb, map_req); in ufshpb_issue_map_req()