Lines Matching refs:maxsize

670 	unsigned int maxsize;  in get_ep_limit()  local
674 maxsize = DXEPTSIZ_XFERSIZE_LIMIT + 1; in get_ep_limit()
677 maxsize = 64 + 64; in get_ep_limit()
686 maxsize--; in get_ep_limit()
693 if ((maxpkt * hs_ep->ep.maxpacket) < maxsize) in get_ep_limit()
694 maxsize = maxpkt * hs_ep->ep.maxpacket; in get_ep_limit()
696 return maxsize; in get_ep_limit()
729 unsigned int maxsize; in dwc2_gadget_get_chain_limit() local
734 maxsize = (hs_ep->dir_in ? DEV_DMA_ISOC_TX_NBYTES_LIMIT : in dwc2_gadget_get_chain_limit()
738 maxsize = DEV_DMA_NBYTES_LIMIT * MAX_DMA_DESC_NUM_GENERIC; in dwc2_gadget_get_chain_limit()
743 maxsize = mps * MAX_DMA_DESC_NUM_GENERIC; in dwc2_gadget_get_chain_limit()
745 return maxsize; in dwc2_gadget_get_chain_limit()
809 u32 maxsize = 0; in dwc2_gadget_fill_nonisoc_xfer_ddma_one() local
814 maxsize = dwc2_gadget_get_desc_params(hs_ep, &mask); in dwc2_gadget_fill_nonisoc_xfer_ddma_one()
816 hs_ep->desc_count = (len / maxsize) + in dwc2_gadget_fill_nonisoc_xfer_ddma_one()
817 ((len % maxsize) ? 1 : 0); in dwc2_gadget_fill_nonisoc_xfer_ddma_one()
826 if (len > maxsize) { in dwc2_gadget_fill_nonisoc_xfer_ddma_one()
831 maxsize << DEV_DMA_NBYTES_SHIFT & mask; in dwc2_gadget_fill_nonisoc_xfer_ddma_one()
834 len -= maxsize; in dwc2_gadget_fill_nonisoc_xfer_ddma_one()
835 offset += maxsize; in dwc2_gadget_fill_nonisoc_xfer_ddma_one()
1410 u32 maxsize = 0; in dwc2_hsotg_ep_queue() local
1441 maxsize = dwc2_gadget_get_desc_params(hs_ep, &mask); in dwc2_hsotg_ep_queue()
1442 if (hs_ep->dir_in && req->length > maxsize) { in dwc2_hsotg_ep_queue()
1444 req->length, maxsize); in dwc2_hsotg_ep_queue()