return num_trbs;
}
-static int dwc3_prepare_one_trb_sg(struct dwc3_ep *dep,
+static int dwc3_prepare_trbs_sg(struct dwc3_ep *dep,
struct dwc3_request *req)
{
struct scatterlist *sg = req->start_sg;
return req->num_trbs - num_trbs;
}
-static int dwc3_prepare_one_trb_linear(struct dwc3_ep *dep,
+static int dwc3_prepare_trbs_linear(struct dwc3_ep *dep,
struct dwc3_request *req)
{
return dwc3_prepare_last_sg(dep, req, req->request.length, 0);
*/
list_for_each_entry(req, &dep->started_list, list) {
if (req->num_pending_sgs > 0) {
- ret = dwc3_prepare_one_trb_sg(dep, req);
+ ret = dwc3_prepare_trbs_sg(dep, req);
if (!ret)
return ret;
}
req->num_pending_sgs = req->request.num_mapped_sgs;
if (req->num_pending_sgs > 0)
- ret = dwc3_prepare_one_trb_sg(dep, req);
+ ret = dwc3_prepare_trbs_sg(dep, req);
else
- ret = dwc3_prepare_one_trb_linear(dep, req);
+ ret = dwc3_prepare_trbs_linear(dep, req);
if (!ret || !dwc3_calc_trbs_left(dep))
return ret;