/drivers/usb/musb/ |
D | musb_core.c | 1135 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1136 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1137 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1138 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1139 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1144 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1145 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1146 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1147 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1148 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, [all …]
|
D | cppi_dma.c | 562 unsigned maxpacket = tx->maxpacket; in cppi_next_tx_segment() local 576 rndis = (maxpacket & 0x3f) == 0 in cppi_next_tx_segment() 577 && length > maxpacket in cppi_next_tx_segment() 579 && (length % maxpacket) != 0; in cppi_next_tx_segment() 582 maxpacket = length; in cppi_next_tx_segment() 586 n_bds = DIV_ROUND_UP(length, maxpacket); in cppi_next_tx_segment() 590 length = min(n_bds * maxpacket, length); in cppi_next_tx_segment() 595 maxpacket, in cppi_next_tx_segment() 631 if ((tx->offset + maxpacket) <= tx->buf_len) { in cppi_next_tx_segment() 632 tx->offset += maxpacket; in cppi_next_tx_segment() [all …]
|
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, },
|
D | musb_host.c | 516 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 608 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit() 620 u16 pkt_size = qh->maxpacket; in musb_tx_dma_set_mode_mentor() 676 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program() 727 u16 packet_sz = qh->maxpacket; in musb_ep_program() 844 qh->maxpacket | in musb_ep_program() 1056 if (len < qh->maxpacket) { in musb_h_ep0_continue() 1082 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue() 1440 if (qh->segsize < qh->maxpacket) in musb_host_tx() 1488 if (length > qh->maxpacket) in musb_host_tx() [all …]
|
D | musb_dma.h | 196 u16 maxpacket, u8 mode, 201 u16 maxpacket,
|
/drivers/usb/gadget/udc/ |
D | lpc32xx_udc.c | 119 u32 maxpacket; member 491 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 835 u32 maxpacket) in udc_realize_hwep() argument 843 writel(maxpacket, USBD_EPMAXPSIZE(udc->udp_baseaddr)); in udc_realize_hwep() 1005 if (req->req.length % ep->ep.maxpacket) in udc_ep_in_req_dma() 1088 udc_realize_hwep(udc, i, ep->ep.maxpacket); in udc_enable() 1401 usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); in udc_reinit() 1472 } else if (ts > ep0->ep.maxpacket) in udc_ep0_in_req() 1473 ts = ep0->ep.maxpacket; /* Just send what we can */ in udc_ep0_in_req() 1481 if (tsend >= ep0->ep.maxpacket) in udc_ep0_in_req() [all …]
|
D | at91_udc.c | 128 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 347 if (count > ep->ep.maxpacket) in read_fifo() 348 count = ep->ep.maxpacket; in read_fifo() 371 is_done = (count < ep->ep.maxpacket); in read_fifo() 435 if (ep->ep.maxpacket < total) { in write_fifo() 436 count = ep->ep.maxpacket; in write_fifo() 440 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo() 492 u16 maxpacket; in at91_ep_enable() local 499 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable() 500 || maxpacket > ep->maxpacket) { in at91_ep_enable() [all …]
|
D | pxa25x_udc.c | 467 ep->ep.maxpacket = usb_endpoint_maxp (desc); in pxa25x_ep_enable() 752 is_short = (count < ep->ep.maxpacket); in read_fifo() 1418 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in udc_reinit() 2054 .maxpacket = EP0_FIFO_SIZE, 2068 .maxpacket = BULK_FIFO_SIZE, 2083 .maxpacket = BULK_FIFO_SIZE, 2100 .maxpacket = ISO_FIFO_SIZE, 2115 .maxpacket = ISO_FIFO_SIZE, 2131 .maxpacket = INT_FIFO_SIZE, 2147 .maxpacket = BULK_FIFO_SIZE, [all …]
|
D | udc-xilinx.c | 154 u16 maxpacket; member 292 (ep->ep_usb.maxpacket << 15) | (ep->rambase)); in xudc_epconfig() 405 ep->ep_usb.maxpacket); in xudc_dma_send() 455 ep->rambase + ep->ep_usb.maxpacket); in xudc_dma_receive() 520 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 …]
|
D | snps_udc_core.c | 336 unsigned maxpacket; in udc_ep_enable() local 363 maxpacket = usb_endpoint_maxp(desc); in udc_ep_enable() 365 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_EP_MAX_PKT_SIZE); in udc_ep_enable() 366 ep->ep.maxpacket = maxpacket; in udc_ep_enable() 380 maxpacket * UDC_EPIN_BUFF_SIZE_MULT in udc_ep_enable() 400 tmp = AMD_ADDBITS(tmp, maxpacket, in udc_ep_enable() 417 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_CSR_NE_MAX_PKT); in udc_ep_enable() 671 bytes = ep->ep.maxpacket; in udc_txfifo_write() 741 if ((buf_space % ep->ep.maxpacket) != 0) { in udc_rxfifo_read() 752 if (((bytes % ep->ep.maxpacket) != 0) || (!bytes) in udc_rxfifo_read() [all …]
|
D | s3c2410_udc.c | 349 count = s3c2410_udc_write_packet(fifo_reg, req, ep->ep.maxpacket); in s3c2410_udc_write_fifo() 352 if (count != ep->ep.maxpacket) in s3c2410_udc_write_fifo() 468 if (fifo_count > ep->ep.maxpacket) in s3c2410_udc_read_fifo() 469 avail = ep->ep.maxpacket; in s3c2410_udc_read_fifo() 478 if (idx != 0 && fifo_count < ep->ep.maxpacket) { in s3c2410_udc_read_fifo() 915 udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_irq() 1052 _ep->maxpacket = max; in s3c2410_udc_ep_enable() 1610 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in s3c2410_udc_reinit() 1629 udc_write((dev->ep[i].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_enable() 1692 .maxpacket = EP0_FIFO_SIZE, [all …]
|
D | trace.h | 155 __field(unsigned, maxpacket) 167 __entry->maxpacket = ep->maxpacket; 178 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
|
D | omap_udc.c | 158 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable() 164 && maxp != ep->maxpacket) in omap_ep_enable() 165 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable() 205 ep->ep.maxpacket = maxp; in omap_ep_enable() 253 ep->ep.maxpacket = ep->maxpacket; in omap_ep_disable() 373 count = ep->ep.maxpacket; in write_fifo() 379 if (count != ep->ep.maxpacket) in write_fifo() 442 avail = ep->ep.maxpacket; in read_fifo() 450 if (count < ep->ep.maxpacket) { in read_fifo() 528 || (cpu_is_omap15xx() && length < ep->maxpacket)) { in next_in_dma() [all …]
|
D | fotg210-udc.c | 152 fotg210_set_mps(ep, ep->epnum, ep->ep.maxpacket, ep->dir_in); in fotg210_config_ep() 171 ep->ep.maxpacket = usb_endpoint_maxp(desc); in fotg210_ep_enable() 348 if (req->req.length - req->req.actual > ep->ep.maxpacket) in fotg210_start_dma() 349 length = ep->ep.maxpacket; in fotg210_start_dma() 389 (req->req.actual < ep->ep.maxpacket)) in fotg210_ep0_queue() 810 if ((req->req.length - req->req.actual) < ep->ep.maxpacket) in fotg210_ep0out() 830 if ((req->req.length - req->req.actual) < ep->ep.maxpacket) in fotg210_ep0in() 864 req->req.actual < ep->ep.maxpacket) in fotg210_out_fifo_handler()
|
/drivers/usb/dwc3/ |
D | ep0.c | 739 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 878 maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data() 882 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 978 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() 980 u32 maxpacket; in __dwc3_ep0_do_control_data() local 988 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 989 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data() 1002 maxpacket - rem, in __dwc3_ep0_do_control_data() 1006 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data() 1008 u32 maxpacket; in __dwc3_ep0_do_control_data() local [all …]
|
D | trace.h | 299 __field(unsigned, maxpacket) 310 __entry->maxpacket = dep->endpoint.maxpacket; 320 __get_str(name), __entry->maxpacket,
|
/drivers/usb/host/ |
D | imx21-hcd.c | 228 int etd_num, struct urb *urb, u8 dir, u16 maxpacket) in setup_etd_dword0() argument 237 ((u32) maxpacket << DW0_MAXPKTSIZ)); in setup_etd_dword0() 410 u32 maxpacket = etd_readl(imx21, etd_num, 1) >> DW1_YBUFSRTAD; in activate_queued_etd() local 416 ((dmem_offset + maxpacket) << DW1_YBUFSRTAD) | dmem_offset); in activate_queued_etd() 751 u16 maxpacket; in imx21_hc_urb_enqueue_isoc() local 791 maxpacket = usb_maxpacket(urb->dev, urb->pipe, usb_pipeout(urb->pipe)); in imx21_hc_urb_enqueue_isoc() 795 if (etd->dmem_size > 0 && etd->dmem_size < maxpacket) { in imx21_hc_urb_enqueue_isoc() 798 etd->dmem_size, maxpacket); in imx21_hc_urb_enqueue_isoc() 804 etd->dmem_offset = alloc_dmem(imx21, maxpacket, ep); in imx21_hc_urb_enqueue_isoc() 810 etd->dmem_size = maxpacket; in imx21_hc_urb_enqueue_isoc() [all …]
|
D | ehci-q.c | 51 size_t len, int token, int maxpacket) in qtd_fill() argument 81 count -= (count % maxpacket); in qtd_fill() 596 int len, this_sg_len, maxpacket; in qh_urb_transaction() local 660 maxpacket = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_urb_transaction() 671 maxpacket); in qh_urb_transaction() 685 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction() 728 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction() 1192 int len, maxpacket; in submit_single_step_set_feature() local 1233 maxpacket = usb_maxpacket(urb->dev, urb->pipe, 0); in submit_single_step_set_feature() 1235 qtd_fill(ehci, qtd, buf, len, token, maxpacket); in submit_single_step_set_feature()
|
D | sl811-hcd.c | 211 len = ep->maxpacket; in in_packet() 250 len = min_t(u32, ep->maxpacket, in out_packet() 356 fclock -= ep->maxpacket << 8; in start() 516 else if (ep->length < ep->maxpacket in done() 526 len = ep->maxpacket - sl811_read(sl811, in done() 537 (len < ep->maxpacket || in done() 844 ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); in sl811h_urb_enqueue() 855 if (ep->maxpacket > H_MAXPACKET) { in sl811h_urb_enqueue() 859 epnum, ep->maxpacket); in sl811h_urb_enqueue() 1449 ep->maxpacket, in sl811h_show() [all …]
|
D | isp1362-hcd.c | 280 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd() 285 len = max_transfer_size(epq, buf_len, ep->maxpacket); in prepare_ptd() 286 DBG(1, "%s: IN len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, in prepare_ptd() 293 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd() 297 len = max_transfer_size(epq, buf_len, ep->maxpacket); in prepare_ptd() 301 DBG(1, "%s: OUT len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, in prepare_ptd() 329 ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | in prepare_ptd() 532 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep() 540 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep() 581 ep->num_req, len, ep->maxpacket, urbstat); in postproc_ep() [all …]
|
/drivers/net/usb/ |
D | int51x1.c | 76 if ((pack_with_header_len) < dev->maxpacket) in int51x1_tx_fixup() 77 need_tail = dev->maxpacket - pack_with_header_len + 1; in int51x1_tx_fixup() 83 else if (!(pack_with_header_len % dev->maxpacket)) in int51x1_tx_fixup()
|
/drivers/usb/isp1760/ |
D | isp1760-udc.c | 228 __func__, req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_udc_receive() 237 if (req->req.actual == req->req.length || len < ep->maxpacket) { in isp1760_udc_receive() 253 ep->maxpacket); in isp1760_udc_transmit() 360 !(req->req.length % ep->maxpacket) && in isp1760_ep_tx_complete() 365 req, req->req.actual, req->req.length, ep->maxpacket, in isp1760_ep_tx_complete() 727 le16_to_cpu(desc->wMaxPacketSize) > ep->maxpacket) { in isp1760_ep_enable() 732 le16_to_cpu(desc->wMaxPacketSize), ep->maxpacket); in isp1760_ep_enable() 756 uep->maxpacket = le16_to_cpu(desc->wMaxPacketSize); in isp1760_ep_enable() 762 isp1760_udc_write(udc, DC_EPMAXPKTSZ, uep->maxpacket); in isp1760_ep_enable() 763 isp1760_udc_write(udc, DC_BUFLEN, uep->maxpacket); in isp1760_ep_enable() [all …]
|
/drivers/usb/atm/ |
D | usbatm.c | 1029 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local 1104 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0); in usbatm_usb_probe() 1106 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) { in usbatm_usb_probe() 1113 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe() 1115 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe() 1118 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe() 1119 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
|
/drivers/staging/emxx_udc/ |
D | emxx_udc.c | 235 data = (begin_adrs << 16) | ep->ep.maxpacket; in _nbu2ss_ep_init() 358 data = ep->ep.maxpacket; in _nbu2ss_ep_dma_init() 928 ((req->req.actual % ep->ep.maxpacket) != 0)) { in _nbu2ss_epn_out_pio() 958 i_buf_size = min_t(u32, i_buf_size, ep->ep.maxpacket); in _nbu2ss_epn_out_data() 989 if (i_recv_length < ep->ep.maxpacket) { in _nbu2ss_epn_out_transfer() 997 ((req->req.actual % ep->ep.maxpacket) != 0)) { in _nbu2ss_epn_out_transfer() 1003 if ((req->req.actual % ep->ep.maxpacket) == 0) { in _nbu2ss_epn_out_transfer() 1135 if (result != ep->ep.maxpacket) { in _nbu2ss_epn_in_pio() 1170 data_size = min_t(u32, data_size, ep->ep.maxpacket); in _nbu2ss_epn_in_data() 1233 if ((req->req.length % ep->ep.maxpacket) == 0) in _nbu2ss_start_transfer() [all …]
|
/drivers/usb/gadget/udc/bdc/ |
D | bdc_udc.c | 91 bdc->gadget.ep0->maxpacket = EP0_MAX_PKT_SIZE; in bdc_uspc_connected() 103 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected() 109 bdc->gadget.ep0->maxpacket = 64; in bdc_uspc_connected() 115 bdc->gadget.ep0->maxpacket = 8; in bdc_uspc_connected()
|