Lines Matching refs:xfersize
425 uint32_t xfersize, uint16_t mps) in dwc2_dma_buffer_ok_to_use() argument
435 if (unlikely(mps % 4) && (xfersize > USB_MPS_EP_SIZE(mps))) { in dwc2_dma_buffer_ok_to_use()
664 uint32_t xfersize; in dwc2_prep_rx() local
674 xfersize = USB_MPS_TO_TPL(cfg->mps); in dwc2_prep_rx()
677 if (xfersize > net_buf_tailroom(buf)) { in dwc2_prep_rx()
689 xfersize = net_buf_tailroom(buf); in dwc2_prep_rx()
692 if (xfersize > max_xfersize) { in dwc2_prep_rx()
693 xfersize = ROUND_DOWN(max_xfersize, USB_MPS_TO_TPL(cfg->mps)); in dwc2_prep_rx()
696 pktcnt = DIV_ROUND_UP(xfersize, USB_MPS_EP_SIZE(cfg->mps)); in dwc2_prep_rx()
701 xfersize = pktcnt * udc_mps_ep_size(cfg); in dwc2_prep_rx()
705 usb_dwc2_set_doeptsizn_xfersize(xfersize); in dwc2_prep_rx()
716 if (!dwc2_dma_buffer_ok_to_use(dev, data, xfersize, cfg->mps)) { in dwc2_prep_rx()
726 sys_cache_data_invd_range(data, xfersize); in dwc2_prep_rx()