Lines Matching refs:to_write
322 int to_write = hs_ep->size_loaded; in s3c_hsotg_write_fifo() local
328 to_write -= (buf_pos - hs_ep->last_load); in s3c_hsotg_write_fifo()
331 if (to_write == 0) in s3c_hsotg_write_fifo()
397 __func__, gnptxsts, can_write, to_write, max_transfer); in s3c_hsotg_write_fifo()
412 if (to_write > max_transfer) { in s3c_hsotg_write_fifo()
413 to_write = max_transfer; in s3c_hsotg_write_fifo()
424 if (to_write > can_write) { in s3c_hsotg_write_fifo()
425 to_write = can_write; in s3c_hsotg_write_fifo()
426 pkt_round = to_write % max_transfer; in s3c_hsotg_write_fifo()
437 to_write -= pkt_round; in s3c_hsotg_write_fifo()
452 to_write, hs_req->req.length, can_write, buf_pos); in s3c_hsotg_write_fifo()
454 if (to_write <= 0) in s3c_hsotg_write_fifo()
457 hs_req->req.actual = buf_pos + to_write; in s3c_hsotg_write_fifo()
458 hs_ep->total_data += to_write; in s3c_hsotg_write_fifo()
461 hs_ep->fifo_load += to_write; in s3c_hsotg_write_fifo()
463 to_write = DIV_ROUND_UP(to_write, 4); in s3c_hsotg_write_fifo()
466 iowrite32_rep(hsotg->regs + EPFIFO(hs_ep->index), data, to_write); in s3c_hsotg_write_fifo()
468 return (to_write >= can_write) ? -ENOSPC : 0; in s3c_hsotg_write_fifo()