Lines Matching refs:to_write
466 int to_write = hs_ep->size_loaded; in s3c_hsotg_write_fifo() local
471 to_write -= (buf_pos - hs_ep->last_load); in s3c_hsotg_write_fifo()
474 if (to_write == 0) in s3c_hsotg_write_fifo()
538 __func__, gnptxsts, can_write, to_write, hs_ep->ep.maxpacket); in s3c_hsotg_write_fifo()
553 if (to_write > hs_ep->ep.maxpacket) { in s3c_hsotg_write_fifo()
554 to_write = hs_ep->ep.maxpacket; in s3c_hsotg_write_fifo()
563 if (to_write > can_write) { in s3c_hsotg_write_fifo()
564 to_write = can_write; in s3c_hsotg_write_fifo()
565 pkt_round = to_write % hs_ep->ep.maxpacket; in s3c_hsotg_write_fifo()
576 to_write -= pkt_round; in s3c_hsotg_write_fifo()
589 to_write, hs_req->req.length, can_write, buf_pos); in s3c_hsotg_write_fifo()
591 if (to_write <= 0) in s3c_hsotg_write_fifo()
594 hs_req->req.actual = buf_pos + to_write; in s3c_hsotg_write_fifo()
595 hs_ep->total_data += to_write; in s3c_hsotg_write_fifo()
598 hs_ep->fifo_load += to_write; in s3c_hsotg_write_fifo()
600 to_write = DIV_ROUND_UP(to_write, 4); in s3c_hsotg_write_fifo()
603 writesl(hsotg->regs + EPFIFO(hs_ep->index), data, to_write); in s3c_hsotg_write_fifo()
605 return (to_write >= can_write) ? -ENOSPC : 0; in s3c_hsotg_write_fifo()