/drivers/usb/musb/ |
H A D | musb_core.c | 1062 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1063 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1064 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1065 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1066 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1071 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1072 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1073 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1074 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1075 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket 1172 u16 maxpacket = cfg->maxpacket; local [all...] |
H A D | musb_dma.h | 167 u16 maxpacket, u8 mode, 172 u16 maxpacket,
|
H A D | cppi_dma.c | 563 unsigned maxpacket = tx->maxpacket; local 577 rndis = (maxpacket & 0x3f) == 0 578 && length > maxpacket 580 && (length % maxpacket) != 0; 583 maxpacket = length; 586 n_bds = length / maxpacket; 587 if (!length || (length % maxpacket)) 590 length = min(n_bds * maxpacket, length); 595 maxpacket, 763 unsigned maxpacket = rx->maxpacket; local 948 cppi_channel_program(struct dma_channel *ch, u16 maxpacket, u8 mode, dma_addr_t dma_addr, u32 len) argument [all...] |
H A D | jz4740.c | 61 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 62 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 63 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 64, },
|
H A D | cppi_dma.h | 96 u32 maxpacket; member in struct:cppi_channel
|
H A D | musb_host.h | 63 u16 maxpacket; member in struct:musb_qh
|
H A D | musb_host.c | 522 || (rx_count < qh->maxpacket) 607 /* NOTE: bulk combining rewrites high bits of maxpacket */ 615 qh->maxpacket | ((qh->hb_mult - 1) << 11)); 626 u16 pkt_size = qh->maxpacket; 707 u16 packet_sz = qh->maxpacket; 824 qh->maxpacket | 1028 if (len < qh->maxpacket) { 1054 fifo_count = min_t(size_t, qh->maxpacket, 1412 if (qh->segsize < qh->maxpacket) 1460 if (length > qh->maxpacket) [all...] |
/drivers/net/usb/ |
H A D | int51x1.c | 76 if ((pack_with_header_len) < dev->maxpacket) 77 need_tail = dev->maxpacket - pack_with_header_len + 1; 83 else if (!(pack_with_header_len % dev->maxpacket))
|
H A D | gl620a.c | 185 if ((skb->len % dev->maxpacket) == 0)
|
H A D | rndis_host.c | 347 dev->maxpacket = usb_maxpacket(dev->udev, dev->out, 1); 348 if (dev->maxpacket == 0) { 350 "dev->maxpacket can't be 0\n"); 355 dev->rx_urb_size = dev->hard_mtu + (dev->maxpacket + 1); 356 dev->rx_urb_size &= ~(dev->maxpacket - 1);
|
/drivers/usb/gadget/udc/ |
H A D | at91_udc.c | 107 seq_printf(s, "%s, maxpacket %d %s%s %s%s\n", 108 ep->ep.name, ep->ep.maxpacket, 327 if (count > ep->ep.maxpacket) 328 count = ep->ep.maxpacket; 351 is_done = (count < ep->ep.maxpacket); 415 if (ep->ep.maxpacket < total) { 416 count = ep->ep.maxpacket; 420 is_last = (count < ep->ep.maxpacket) || !req->req.zero; 472 u16 maxpacket; local 479 || (maxpacket [all...] |
H A D | lpc32xx_udc.c | 133 u32 maxpacket; member in struct:lpc32xx_ep 517 seq_printf(s, "%12s, maxpacket %4d %3s", 518 ep->ep.name, ep->ep.maxpacket, 866 u32 maxpacket) 874 writel(maxpacket, USBD_EPMAXPSIZE(udc->udp_baseaddr)); 1055 if (req->req.length % ep->ep.maxpacket) 1138 udc_realize_hwep(udc, i, ep->ep.maxpacket); 1451 usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); 1522 } else if (ts > ep0->ep.maxpacket) 1523 ts = ep0->ep.maxpacket; /* Jus 865 udc_realize_hwep(struct lpc32xx_udc *udc, u32 hwep, u32 maxpacket) argument 1669 u16 maxpacket; local [all...] |
H A D | pxa25x_udc.c | 240 DMSG("%s, bad %s maxpacket\n", __func__, _ep->name); 253 ep->ep.maxpacket = usb_endpoint_maxp (desc); 406 /* interrupt/iso maxpacket may not fill the fifo */ 537 is_short = (count < ep->ep.maxpacket); 1196 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); 1804 .maxpacket = EP0_FIFO_SIZE, 1816 .maxpacket = BULK_FIFO_SIZE, 1829 .maxpacket = BULK_FIFO_SIZE, 1844 .maxpacket = ISO_FIFO_SIZE, 1857 .maxpacket [all...] |
H A D | udc-xilinx.c | 136 * @maxpacket: maximum packet size the endpoint can store 154 u16 maxpacket; member in struct:xusb_ep 292 (ep->ep_usb.maxpacket << 15) | (ep->rambase)); 405 ep->ep_usb.maxpacket); 455 ep->rambase + ep->ep_usb.maxpacket); 520 ep->ep_usb.maxpacket); 614 is_short = count < ep->ep_usb.maxpacket; 812 u16 maxpacket; local 820 ep->ep_usb.maxpacket = maxpacket [all...] |
H A D | at91_udc.h | 100 unsigned maxpacket:16; member in struct:at91_ep
|
H A D | omap_udc.c | 158 || ep->maxpacket < usb_endpoint_maxp(desc)) { 164 && maxp != ep->maxpacket) 165 || usb_endpoint_maxp(desc) > ep->maxpacket 167 DBG("%s, bad %s maxpacket\n", __func__, _ep->name); 205 ep->ep.maxpacket = maxp; 253 ep->ep.maxpacket = ep->maxpacket; 373 count = ep->ep.maxpacket; 379 if (count != ep->ep.maxpacket) 442 avail = ep->ep.maxpacket; [all...] |
H A D | s3c2410_udc.c | 372 count = s3c2410_udc_write_packet(fifo_reg, req, ep->ep.maxpacket); 375 if (count != ep->ep.maxpacket) 491 if (fifo_count > ep->ep.maxpacket) 492 avail = ep->ep.maxpacket; 501 if (idx != 0 && fifo_count < ep->ep.maxpacket) { 938 udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3, 1075 _ep->maxpacket = max & 0x7ff; 1633 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); 1652 udc_write((dev->ep[i].ep.maxpacket & 0x7ff) >> 3, 1716 .maxpacket [all...] |
H A D | amd5536udc.c | 318 unsigned maxpacket; local 345 maxpacket = usb_endpoint_maxp(desc); 347 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_EP_MAX_PKT_SIZE); 348 ep->ep.maxpacket = maxpacket; 362 maxpacket * UDC_EPIN_BUFF_SIZE_MULT 382 tmp = AMD_ADDBITS(tmp, maxpacket, 399 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_CSR_NE_MAX_PKT); 633 bytes = ep->ep.maxpacket; 703 if ((buf_space % ep->ep.maxpacket) ! [all...] |
H A D | omap_udc.h | 144 u16 maxpacket; member in struct:omap_ep
|
H A D | m66592-udc.c | 276 m66592_write(m66592, info->maxpacket, M66592_PIPEMAXP); 363 ep->ep.maxpacket = usb_endpoint_maxp(desc); 440 info.maxpacket = usb_endpoint_maxp(desc); 550 (req->req.length + ep->ep.maxpacket - 1) 551 / ep->ep.maxpacket, 775 if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) 784 || (size % ep->ep.maxpacket) 822 || ((size % ep->ep.maxpacket) != 0) 823 || ((bufsize != ep->ep.maxpacket) 832 || (size % ep->ep.maxpacket) [all...] |
/drivers/usb/host/ |
H A D | imx21-hcd.c | 228 int etd_num, struct urb *urb, u8 dir, u16 maxpacket) 237 ((u32) maxpacket << DW0_MAXPKTSIZ)); 410 u32 maxpacket = etd_readl(imx21, etd_num, 1) >> DW1_YBUFSRTAD; local 416 ((dmem_offset + maxpacket) << DW1_YBUFSRTAD) | dmem_offset); 751 u16 maxpacket; local 791 maxpacket = usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)); 795 if (etd->dmem_size > 0 && etd->dmem_size < maxpacket) { 798 etd->dmem_size, maxpacket); 804 etd->dmem_offset = alloc_dmem(imx21, maxpacket, ep); 810 etd->dmem_size = maxpacket; 227 setup_etd_dword0(struct imx21 *imx21, int etd_num, struct urb *urb, u8 dir, u16 maxpacket) argument 921 u16 maxpacket; local [all...] |
H A D | ehci-q.c | 47 size_t len, int token, int maxpacket) 77 count -= (count % maxpacket); 581 int len, this_sg_len, maxpacket; local 645 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); 656 maxpacket); 670 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) 713 && !(urb->transfer_buffer_length % maxpacket)) { 783 /* 1024 byte maxpacket is a hardware ceiling. High bandwidth 787 ehci_dbg(ehci, "bogus qh maxpacket 46 qtd_fill(struct ehci_hcd *ehci, struct ehci_qtd *qtd, dma_addr_t buf, size_t len, int token, int maxpacket) argument 1174 int len, maxpacket; local [all...] |
H A D | sl811.h | 173 u8 maxpacket; member in struct:sl811h_ep
|
/drivers/usb/dwc3/ |
H A D | ep0.c | 668 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; 814 unsigned maxp = ep0->endpoint.maxpacket; 833 if (IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && 924 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) 927 u32 maxpacket; local 938 maxpacket = dep->endpoint.maxpacket; 939 transfer_size = roundup(req->request.length, maxpacket);
|
/drivers/usb/atm/ |
H A D | usbatm.c | 1029 unsigned int maxpacket, num_packets; local 1105 /* rx buffer size must be a positive multiple of the endpoint maxpacket */ 1106 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0); 1108 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) { 1115 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ 1117 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) 1120 instance->rx_channel.buf_size = num_packets * maxpacket; 1121 instance->rx_channel.packet_size = maxpacket; [all...] |