Lines Matching refs:to_write
324 int to_write = hs_ep->size_loaded; in s3c_hsotg_write_fifo() local
330 to_write -= (buf_pos - hs_ep->last_load); in s3c_hsotg_write_fifo()
333 if (to_write == 0) in s3c_hsotg_write_fifo()
399 __func__, gnptxsts, can_write, to_write, max_transfer); in s3c_hsotg_write_fifo()
414 if (to_write > max_transfer) { in s3c_hsotg_write_fifo()
415 to_write = max_transfer; in s3c_hsotg_write_fifo()
426 if (to_write > can_write) { in s3c_hsotg_write_fifo()
427 to_write = can_write; in s3c_hsotg_write_fifo()
428 pkt_round = to_write % max_transfer; in s3c_hsotg_write_fifo()
439 to_write -= pkt_round; in s3c_hsotg_write_fifo()
454 to_write, hs_req->req.length, can_write, buf_pos); in s3c_hsotg_write_fifo()
456 if (to_write <= 0) in s3c_hsotg_write_fifo()
459 hs_req->req.actual = buf_pos + to_write; in s3c_hsotg_write_fifo()
460 hs_ep->total_data += to_write; in s3c_hsotg_write_fifo()
463 hs_ep->fifo_load += to_write; in s3c_hsotg_write_fifo()
465 to_write = DIV_ROUND_UP(to_write, 4); in s3c_hsotg_write_fifo()
468 iowrite32_rep(hsotg->regs + EPFIFO(hs_ep->index), data, to_write); in s3c_hsotg_write_fifo()
470 return (to_write >= can_write) ? -ENOSPC : 0; in s3c_hsotg_write_fifo()