Lines Matching refs:can_write
512 int can_write; in dwc2_hsotg_write_fifo() local
551 can_write = hs_ep->fifo_load - size_done; in dwc2_hsotg_write_fifo()
553 __func__, can_write); in dwc2_hsotg_write_fifo()
555 can_write = hs_ep->fifo_size - can_write; in dwc2_hsotg_write_fifo()
557 __func__, can_write); in dwc2_hsotg_write_fifo()
559 if (can_write <= 0) { in dwc2_hsotg_write_fifo()
564 can_write = dwc2_readl(hsotg, in dwc2_hsotg_write_fifo()
567 can_write &= 0xffff; in dwc2_hsotg_write_fifo()
568 can_write *= 4; in dwc2_hsotg_write_fifo()
579 can_write = GNPTXSTS_NP_TXF_SPC_AVAIL_GET(gnptxsts); in dwc2_hsotg_write_fifo()
580 can_write *= 4; /* fifo size is in 32bit quantities. */ in dwc2_hsotg_write_fifo()
586 __func__, gnptxsts, can_write, to_write, max_transfer); in dwc2_hsotg_write_fifo()
593 if (can_write > 512 && !periodic) in dwc2_hsotg_write_fifo()
594 can_write = 512; in dwc2_hsotg_write_fifo()
613 if (to_write > can_write) { in dwc2_hsotg_write_fifo()
614 to_write = can_write; in dwc2_hsotg_write_fifo()
641 to_write, hs_req->req.length, can_write, buf_pos); in dwc2_hsotg_write_fifo()
657 return (to_write >= can_write) ? -ENOSPC : 0; in dwc2_hsotg_write_fifo()