Home
last modified time | relevance | path

Searched refs:maxpacket (Results 1 – 25 of 100) sorted by relevance

1234

/linux/drivers/usb/musb/
H A Dmusb_core.c1275 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
1276 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
1277 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, },
1278 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1279 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
1284 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1285 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1286 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, },
1287 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, },
1288 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, },
[all …]
H A Dmpfs.c33 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, },
34 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, },
35 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, },
36 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, },
37 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, },
38 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, },
39 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 1024, },
40 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 4096, },
H A Dmusb_dma.h159 u16 maxpacket, u8 mode,
164 u16 maxpacket,
/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Depn.c51 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick()
52 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick()
53 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_epn_kick()
135 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack()
206 if (!chunk || !req->req.zero || (chunk % ep->ep.maxpacket) != 0) in ast_vhub_epn_kick_desc()
295 CHECK(ep, is_last_desc == (len < ep->ep.maxpacket || in ast_vhub_epn_handle_ack_desc()
301 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc()
380 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue()
606 u16 maxpacket, type; in ast_vhub_epn_enable() local
614 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable()
[all …]
H A Dep0.c203 if (chunk > ep->ep.maxpacket) in ast_vhub_ep0_do_send()
204 chunk = ep->ep.maxpacket; in ast_vhub_ep0_do_send()
205 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_ep0_do_send()
209 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket); in ast_vhub_ep0_do_send()
255 if (len < ep->ep.maxpacket && len != remain) { in ast_vhub_ep0_do_receive()
265 if (len < ep->ep.maxpacket || len == remain) { in ast_vhub_ep0_do_receive()
/linux/drivers/usb/gadget/udc/
H A Dlpc32xx_udc.c105 u32 maxpacket; member
479 ep->ep.name, ep->ep.maxpacket, in proc_ep_show()
822 u32 maxpacket) in udc_realize_hwep() argument
830 writel(maxpacket, USBD_EPMAXPSIZE(udc->udp_baseaddr)); in udc_realize_hwep()
992 if (req->req.length % ep->ep.maxpacket) in udc_ep_in_req_dma()
1075 udc_realize_hwep(udc, i, ep->ep.maxpacket); in udc_enable()
1388 usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); in udc_reinit()
1459 } else if (ts > ep0->ep.maxpacket) in udc_ep0_in_req()
1460 ts = ep0->ep.maxpacket; /* Just send what we can */ in udc_ep0_in_req()
1468 if (tsend >= ep0->ep.maxpacket) in udc_ep0_in_req()
[all …]
H A Dat91_udc.c125 ep->ep.name, ep->ep.maxpacket, in proc_ep_show()
332 if (count > ep->ep.maxpacket) in read_fifo()
333 count = ep->ep.maxpacket; in read_fifo()
356 is_done = (count < ep->ep.maxpacket); in read_fifo()
420 if (ep->ep.maxpacket < total) { in write_fifo()
421 count = ep->ep.maxpacket; in write_fifo()
425 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo()
477 u16 maxpacket; in at91_ep_enable() local
484 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable()
485 || maxpacket > ep->maxpacket) { in at91_ep_enable()
[all …]
H A Dpxa25x_udc.c459 ep->ep.maxpacket = usb_endpoint_maxp (desc); in pxa25x_ep_enable()
744 is_short = (count < ep->ep.maxpacket); in read_fifo()
1399 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in udc_reinit()
1998 .maxpacket = EP0_FIFO_SIZE,
2012 .maxpacket = BULK_FIFO_SIZE,
2027 .maxpacket = BULK_FIFO_SIZE,
2044 .maxpacket = ISO_FIFO_SIZE,
2059 .maxpacket = ISO_FIFO_SIZE,
2075 .maxpacket = INT_FIFO_SIZE,
2091 .maxpacket = BULK_FIFO_SIZE,
[all …]
H A Dsnps_udc_core.c326 unsigned maxpacket; in udc_ep_enable() local
353 maxpacket = usb_endpoint_maxp(desc); in udc_ep_enable()
355 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_EP_MAX_PKT_SIZE); in udc_ep_enable()
356 ep->ep.maxpacket = maxpacket; in udc_ep_enable()
370 maxpacket * UDC_EPIN_BUFF_SIZE_MULT in udc_ep_enable()
390 tmp = AMD_ADDBITS(tmp, maxpacket, in udc_ep_enable()
407 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_CSR_NE_MAX_PKT); in udc_ep_enable()
661 bytes = ep->ep.maxpacket; in udc_txfifo_write()
731 if ((buf_space % ep->ep.maxpacket) != 0) { in udc_rxfifo_read()
742 if (((bytes % ep->ep.maxpacket) != 0) || (!bytes) in udc_rxfifo_read()
[all …]
H A Drenesas_usbf.c576 if ((req->req.actual % ep0->ep.maxpacket) == 0) { in usbf_ep0_pio_in()
588 if (left > ep0->ep.maxpacket) in usbf_ep0_pio_in()
589 left = ep0->ep.maxpacket; in usbf_ep0_pio_in()
638 if (left > ep0->ep.maxpacket) in usbf_ep0_pio_out()
639 left = ep0->ep.maxpacket; in usbf_ep0_pio_out()
670 if (recv < ep0->ep.maxpacket) { in usbf_ep0_pio_out()
753 if ((req->req.actual % epn->ep.maxpacket) == 0) { in usbf_epn_pio_in()
766 if (left > epn->ep.maxpacket) in usbf_epn_pio_in()
767 left = epn->ep.maxpacket; in usbf_epn_pio_in()
842 npkt = DIV_ROUND_UP(left, epn->ep.maxpacket); in usbf_epn_dma_in()
[all …]
H A Dudc-xilinx.c148 u16 maxpacket; member
288 (ep->ep_usb.maxpacket << 15) | (ep->rambase)); in xudc_epconfig()
401 ep->ep_usb.maxpacket); in xudc_dma_send()
451 ep->rambase + ep->ep_usb.maxpacket); in xudc_dma_receive()
518 ep->ep_usb.maxpacket); in xudc_eptxrx()
614 is_short = count < ep->ep_usb.maxpacket; in xudc_read_fifo()
812 u16 maxpacket; in __xudc_ep_enable() local
820 ep->ep_usb.maxpacket = maxpacket = le16_to_cpu(desc->wMaxPacketSize); in __xudc_ep_enable()
831 if (maxpacket > 64) { in __xudc_ep_enable()
832 dev_dbg(udc->dev, "bogus maxpacket %d\n", maxpacket); in __xudc_ep_enable()
[all …]
H A Domap_udc.c156 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable()
162 && maxp != ep->maxpacket) in omap_ep_enable()
163 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable()
203 ep->ep.maxpacket = maxp; in omap_ep_enable()
251 ep->ep.maxpacket = ep->maxpacket; in omap_ep_disable()
371 count = ep->ep.maxpacket; in write_fifo()
377 if (count != ep->ep.maxpacket) in write_fifo()
440 avail = ep->ep.maxpacket; in read_fifo()
448 if (count < ep->ep.maxpacket) { in read_fifo()
526 || (cpu_is_omap15xx() && length < ep->maxpacket)) { in next_in_dma()
[all …]
H A Dm66592-udc.c273 m66592_write(m66592, info->maxpacket, M66592_PIPEMAXP); in pipe_buffer_setting()
360 ep->ep.maxpacket = usb_endpoint_maxp(desc); in m66592_ep_setting()
437 info.maxpacket = usb_endpoint_maxp(desc); in alloc_pipe_config()
547 (req->req.length + ep->ep.maxpacket - 1) in start_packet_read()
548 / ep->ep.maxpacket, in start_packet_read()
772 if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) in irq_ep0_write()
781 || (size % ep->ep.maxpacket) in irq_ep0_write()
819 || ((size % ep->ep.maxpacket) != 0) in irq_packet_write()
820 || ((bufsize != ep->ep.maxpacket) in irq_packet_write()
829 || (size % ep->ep.maxpacket) in irq_packet_write()
[all …]
/linux/drivers/net/usb/
H A Dint51x1.c65 if ((pack_with_header_len) < dev->maxpacket) in int51x1_tx_fixup()
66 need_tail = dev->maxpacket - pack_with_header_len + 1; in int51x1_tx_fixup()
72 else if (!(pack_with_header_len % dev->maxpacket)) in int51x1_tx_fixup()
H A Drndis_host.c337 dev->maxpacket = usb_maxpacket(dev->udev, dev->out); in generic_rndis_bind()
338 if (dev->maxpacket == 0) { in generic_rndis_bind()
345 dev->rx_urb_size = dev->hard_mtu + (dev->maxpacket + 1); in generic_rndis_bind()
346 dev->rx_urb_size &= ~(dev->maxpacket - 1); in generic_rndis_bind()
/linux/drivers/usb/dwc3/
H A Dep0.c767 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel()
900 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data()
995 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
1000 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data()
1002 u32 maxpacket; in __dwc3_ep0_do_control_data() local
1010 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
1011 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data()
1024 maxpacket - rem, in __dwc3_ep0_do_control_data()
1028 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data()
1045 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
/linux/include/net/
H A Dcodel_impl.h71 stats->maxpacket = 0; in codel_stats_init()
125 if (unlikely(skb_len > stats->maxpacket)) in codel_should_drop()
126 stats->maxpacket = skb_len; in codel_should_drop()
/linux/drivers/usb/isp1760/
H A Disp1760-udc.c283 __func__, req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_udc_receive()
292 if (req->req.actual == req->req.length || len < ep->maxpacket) { in isp1760_udc_receive()
308 ep->maxpacket); in isp1760_udc_transmit()
415 !(req->req.length % ep->maxpacket) && in isp1760_ep_tx_complete()
420 req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_ep_tx_complete()
790 le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket) { in isp1760_ep_enable()
795 le16_to_cpu(desc->wMaxPacketSize), ep->maxpacket); in isp1760_ep_enable()
819 uep->maxpacket = le16_to_cpu(desc->wMaxPacketSize); in isp1760_ep_enable()
826 isp1760_udc_write(udc, DC_FFOSZ, uep->maxpacket); in isp1760_ep_enable()
827 isp1760_udc_write(udc, DC_BUFLEN, uep->maxpacket); in isp1760_ep_enable()
[all …]
H A Disp1760-udc.h41 unsigned int maxpacket; member
/linux/drivers/usb/atm/
H A Dusbatm.c1017 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local
1095 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint); in usbatm_usb_probe()
1097 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) { in usbatm_usb_probe()
1104 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe()
1106 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe()
1109 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe()
1110 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
/linux/drivers/usb/host/
H A Disp1362-hcd.c281 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd()
286 len = max_transfer_size(epq, buf_len, ep->maxpacket); in prepare_ptd()
287 DBG(1, "%s: IN len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, in prepare_ptd()
294 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd()
298 len = max_transfer_size(epq, buf_len, ep->maxpacket); in prepare_ptd()
302 DBG(1, "%s: OUT len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, in prepare_ptd()
330 ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | in prepare_ptd()
533 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep()
541 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep()
582 ep->num_req, len, ep->maxpacket, urbstat); in postproc_ep()
[all …]
/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_udc.c86 bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE; in bdc_uspc_connected()
98 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected()
104 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected()
110 bdc->gadget.ep0->maxpacket = 8; in bdc_uspc_connected()
/linux/drivers/usb/usbip/
H A Dvudc_transfer.c213 if (len >= ep->ep.maxpacket) { in transfer()
215 if (len % ep->ep.maxpacket > 0) in transfer()
217 len -= len % ep->ep.maxpacket; in transfer()
/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-ep0.c598 (request->length % ep->maxpacket == 0)) in cdns2_gadget_ep0_queue()
640 writeb(pdev->gadget.ep0->maxpacket, &pdev->ep0_regs->maxpack); in cdns2_ep0_config()
648 u16 maxpacket = le16_to_cpu(cdns2_gadget_ep0_desc.wMaxPacketSize); in cdns2_init_ep0() local
650 usb_ep_set_maxpacket_limit(&pep->endpoint, maxpacket); in cdns2_init_ep0()
/linux/sound/usb/usx2y/
H A Dusb_stream.c50 int maxpacket = use_packsize ? in init_pipe_urbs() local
52 int transfer_length = maxpacket * sk->n_o_ps; in init_pipe_urbs()
73 desc->length = maxpacket; in init_pipe_urbs()
75 desc[p].offset = desc[p - 1].offset + maxpacket; in init_pipe_urbs()
76 desc[p].length = maxpacket; in init_pipe_urbs()

1234