Lines Matching refs:pktcnt
381 uint32_t max_xfersize, max_pktcnt, pktcnt; in dwc2_tx_fifo_write() local
444 pktcnt = DIV_ROUND_UP(len, udc_mps_ep_size(cfg)); in dwc2_tx_fifo_write()
445 if (pktcnt > max_pktcnt) { in dwc2_tx_fifo_write()
446 pktcnt = ROUND_DOWN(max_pktcnt, (1 + addnl)); in dwc2_tx_fifo_write()
447 len = pktcnt * udc_mps_ep_size(cfg); in dwc2_tx_fifo_write()
451 pktcnt = 1U; in dwc2_tx_fifo_write()
455 cfg->addr, len, pktcnt, addnl); in dwc2_tx_fifo_write()
463 usb_dwc2_set_dieptsizn_pktcnt(pktcnt) | in dwc2_tx_fifo_write()
512 while (pktcnt > 0) { in dwc2_tx_fifo_write()
531 pktcnt--; in dwc2_tx_fifo_write()
583 uint32_t pktcnt; in dwc2_prep_rx() local
594 pktcnt = 1 + USB_MPS_ADDITIONAL_TRANSACTIONS(cfg->mps); in dwc2_prep_rx()
615 pktcnt = DIV_ROUND_UP(xfersize, USB_MPS_EP_SIZE(cfg->mps)); in dwc2_prep_rx()
618 pktcnt = DIV_ROUND_UP(xfersize, udc_mps_ep_size(cfg)); in dwc2_prep_rx()
619 doeptsiz = usb_dwc2_set_doeptsizn_pktcnt(pktcnt) | in dwc2_prep_rx()