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