Lines Matching refs:can_write
466 int can_write; in s3c_hsotg_write_fifo() local
501 can_write = hs_ep->fifo_load - size_done; in s3c_hsotg_write_fifo()
503 __func__, can_write); in s3c_hsotg_write_fifo()
505 can_write = hs_ep->fifo_size - can_write; in s3c_hsotg_write_fifo()
507 __func__, can_write); in s3c_hsotg_write_fifo()
509 if (can_write <= 0) { in s3c_hsotg_write_fifo()
514 can_write = readl(hsotg->regs + S3C_DTXFSTS(hs_ep->index)); in s3c_hsotg_write_fifo()
516 can_write &= 0xffff; in s3c_hsotg_write_fifo()
517 can_write *= 4; in s3c_hsotg_write_fifo()
528 can_write = S3C_GNPTXSTS_NPTxFSpcAvail_GET(gnptxsts); in s3c_hsotg_write_fifo()
529 can_write *= 4; /* fifo size is in 32bit quantities. */ in s3c_hsotg_write_fifo()
533 __func__, gnptxsts, can_write, to_write, hs_ep->ep.maxpacket); in s3c_hsotg_write_fifo()
539 if (can_write > 512) in s3c_hsotg_write_fifo()
540 can_write = 512; in s3c_hsotg_write_fifo()
555 if (to_write > can_write) { in s3c_hsotg_write_fifo()
556 to_write = can_write; in s3c_hsotg_write_fifo()
579 to_write, hs_req->req.length, can_write, buf_pos); in s3c_hsotg_write_fifo()
595 return (to_write >= can_write) ? -ENOSPC : 0; in s3c_hsotg_write_fifo()