Searched refs:maxpacket (Results 1 - 25 of 74) sorted by relevance

123

/drivers/usb/musb/
H A Dmusb_core.c1057 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1058 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1059 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
1060 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1061 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
1066 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1067 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1068 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1069 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1070 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket
1167 u16 maxpacket = cfg->maxpacket; local
[all...]
H A Dmusb_dma.h168 u16 maxpacket, u8 mode,
173 u16 maxpacket,
H A Dcppi_dma.c577 unsigned maxpacket = tx->maxpacket; local
591 rndis = (maxpacket & 0x3f) == 0
592 && length > maxpacket
594 && (length % maxpacket) != 0;
597 maxpacket = length;
600 n_bds = length / maxpacket;
601 if (!length || (length % maxpacket))
604 length = min(n_bds * maxpacket, length);
609 maxpacket,
777 unsigned maxpacket = rx->maxpacket; local
967 cppi_channel_program(struct dma_channel *ch, u16 maxpacket, u8 mode, dma_addr_t dma_addr, u32 len) argument
[all...]
H A Dmusb_host.h71 u16 maxpacket; member in struct:musb_qh
H A Dcppi_dma.h96 u32 maxpacket; member in struct:cppi_channel
H A Dmusb_host.c510 || (rx_count < qh->maxpacket)
595 /* NOTE: bulk combining rewrites high bits of maxpacket */
603 qh->maxpacket | ((qh->hb_mult - 1) << 11));
614 u16 pkt_size = qh->maxpacket;
685 u16 packet_sz = qh->maxpacket;
783 qh->maxpacket |
900 if (len < qh->maxpacket) {
926 fifo_count = min_t(size_t, qh->maxpacket,
1273 if (qh->segsize < qh->maxpacket)
1321 if (length > qh->maxpacket)
[all...]
/drivers/usb/gadget/
H A Dat91_udc.c108 seq_printf(s, "%s, maxpacket %d %s%s %s%s\n",
109 ep->ep.name, ep->ep.maxpacket,
328 if (count > ep->ep.maxpacket)
329 count = ep->ep.maxpacket;
352 is_done = (count < ep->ep.maxpacket);
416 if (ep->ep.maxpacket < total) {
417 count = ep->ep.maxpacket;
421 is_last = (count < ep->ep.maxpacket) || !req->req.zero;
473 u16 maxpacket; local
481 || (maxpacket
[all...]
H A Depautoconf.c142 desc->wMaxPacketSize = cpu_to_le16(ep->maxpacket);
144 /* endpoint maxpacket size is an input parameter, except for bulk
146 * the usb spec fixes high speed bulk maxpacket at 512 bytes.
158 if (ep->maxpacket < max)
191 /* report (variable) full speed bulk maxpacket */
193 int size = ep->maxpacket;
H A Dpxa25x_udc.c242 DMSG("%s, bad %s maxpacket\n", __func__, _ep->name);
255 ep->ep.maxpacket = usb_endpoint_maxp (desc);
409 /* interrupt/iso maxpacket may not fill the fifo */
540 is_short = (count < ep->ep.maxpacket);
1847 .maxpacket = EP0_FIFO_SIZE,
1859 .maxpacket = BULK_FIFO_SIZE,
1872 .maxpacket = BULK_FIFO_SIZE,
1887 .maxpacket = ISO_FIFO_SIZE,
1900 .maxpacket = ISO_FIFO_SIZE,
1914 .maxpacket
[all...]
H A Domap_udc.c159 || ep->maxpacket < usb_endpoint_maxp(desc)) {
165 && maxp != ep->maxpacket)
166 || usb_endpoint_maxp(desc) > ep->maxpacket
168 DBG("%s, bad %s maxpacket\n", __func__, _ep->name);
206 ep->ep.maxpacket = maxp;
255 ep->ep.maxpacket = ep->maxpacket;
387 count = ep->ep.maxpacket;
393 if (count != ep->ep.maxpacket)
456 avail = ep->ep.maxpacket;
[all...]
H A Dat91_udc.h100 unsigned maxpacket:16; member in struct:at91_ep
H A Damd5536udc.c319 unsigned maxpacket; local
346 maxpacket = usb_endpoint_maxp(desc);
348 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_EP_MAX_PKT_SIZE);
349 ep->ep.maxpacket = maxpacket;
363 maxpacket * UDC_EPIN_BUFF_SIZE_MULT
383 tmp = AMD_ADDBITS(tmp, maxpacket,
400 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_CSR_NE_MAX_PKT);
450 ep->ep.maxpacket = (u16) ~0;
635 bytes = ep->ep.maxpacket;
[all...]
H A Dnet2280.c167 _ep->maxpacket = max & 0x7ff;
182 DEBUG (ep->dev, "%s, no dma for maxpacket %d\n",
183 ep->ep.name, ep->ep.maxpacket);
293 ep->ep.maxpacket = ~0;
472 count = ep->ep.maxpacket;
478 (count != ep->ep.maxpacket) ? " (short)" : "",
494 * when maxpacket is not a multiple of 4 bytes.
496 if (count || total < ep->ep.maxpacket) {
587 if ((tmp % ep->ep.maxpacket) != 0) {
601 is_short = (count == 0) || ((count % ep->ep.maxpacket) !
[all...]
H A Dm66592-udc.c276 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...]
H A Ds3c2410_udc.c369 count = s3c2410_udc_write_packet(fifo_reg, req, ep->ep.maxpacket);
372 if (count != ep->ep.maxpacket)
488 if (fifo_count > ep->ep.maxpacket)
489 avail = ep->ep.maxpacket;
498 if (idx != 0 && fifo_count < ep->ep.maxpacket) {
940 udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3,
1077 _ep->maxpacket = max & 0x7ff;
1654 udc_write((dev->ep[i].ep.maxpacket & 0x7ff) >> 3,
1773 .maxpacket = EP0_FIFO_SIZE,
1784 .maxpacket
[all...]
H A Domap_udc.h145 u16 maxpacket; member in struct:omap_ep
H A Duvc_video.c238 video->req_buffer[i] = kmalloc(video->ep->maxpacket, GFP_KERNEL);
255 video->req_size = video->ep->maxpacket;
/drivers/usb/host/
H A Dimx21-hcd.c223 int etd_num, struct urb *urb, u8 dir, u16 maxpacket)
232 ((u32) maxpacket << DW0_MAXPKTSIZ));
405 u32 maxpacket = etd_readl(imx21, etd_num, 1) >> DW1_YBUFSRTAD; local
411 ((dmem_offset + maxpacket) << DW1_YBUFSRTAD) | dmem_offset);
746 u16 maxpacket; local
786 maxpacket = usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe));
790 if (etd->dmem_size > 0 && etd->dmem_size < maxpacket) {
793 etd->dmem_size, maxpacket);
799 etd->dmem_offset = alloc_dmem(imx21, maxpacket, ep);
805 etd->dmem_size = maxpacket;
222 setup_etd_dword0(struct imx21 *imx21, int etd_num, struct urb *urb, u8 dir, u16 maxpacket) argument
907 u16 maxpacket; local
[all...]
H A Dehci-q.c47 size_t len, int token, int maxpacket)
77 count -= (count % maxpacket);
616 int len, this_sg_len, maxpacket; local
680 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input));
691 maxpacket);
705 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0)
748 && !(urb->transfer_buffer_length % maxpacket)) {
818 /* 1024 byte maxpacket is a hardware ceiling. High bandwidth
822 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
[all...]
H A Dsl811-hcd.c214 len = ep->maxpacket;
253 len = min_t(u32, ep->maxpacket,
358 fclock -= ep->maxpacket << 8;
516 else if (ep->length < ep->maxpacket
526 len = ep->maxpacket - sl811_read(sl811,
537 (len < ep->maxpacket ||
842 ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out);
853 if (ep->maxpacket > H_MAXPACKET) {
855 DBG("dev %d ep%d maxpacket %d\n",
856 udev->devnum, epnum, ep->maxpacket);
[all...]
/drivers/net/usb/
H A Dint51x1.c77 if ((pack_with_header_len) < dev->maxpacket)
78 need_tail = dev->maxpacket - pack_with_header_len + 1;
84 else if (!(pack_with_header_len % dev->maxpacket))
H A Dgl620a.c179 if ((skb->len % dev->maxpacket) == 0)
H A Drndis_host.c346 dev->maxpacket = usb_maxpacket(dev->udev, dev->out, 1);
347 if (dev->maxpacket == 0) {
349 "dev->maxpacket can't be 0\n");
354 dev->rx_urb_size = dev->hard_mtu + (dev->maxpacket + 1);
355 dev->rx_urb_size &= ~(dev->maxpacket - 1);
/drivers/usb/atm/
H A Dusbatm.c1061 unsigned int maxpacket, num_packets; local
1142 /* rx buffer size must be a positive multiple of the endpoint maxpacket */
1143 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0);
1145 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) {
1152 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */
1154 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE)
1157 instance->rx_channel.buf_size = num_packets * maxpacket;
1158 instance->rx_channel.packet_size = maxpacket;
[all...]
/drivers/usb/dwc3/
H A Dep0.c566 unsigned maxp = ep0->endpoint.maxpacket;
586 * seems to be case when req.length > maxpacket. Could it be?
682 } else if ((req->request.length % dep->endpoint.maxpacket)
691 WARN_ON(req->request.length > dep->endpoint.maxpacket);
701 dwc->ep0_bounce_addr, dep->endpoint.maxpacket,

Completed in 214 milliseconds

123