/drivers/usb/musb/ |
D | musb_core.c | 1279 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1280 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1281 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1282 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1283 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1288 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1289 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1290 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1291 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1292 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, [all …]
|
D | jz4740.c | 62 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 63 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 64 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 64, }, 167 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 168 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 169 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, 170 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, 171 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, 172 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, 173 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, [all …]
|
D | cppi_dma.c | 563 unsigned maxpacket = tx->maxpacket; in cppi_next_tx_segment() local 577 rndis = (maxpacket & 0x3f) == 0 in cppi_next_tx_segment() 578 && length > maxpacket in cppi_next_tx_segment() 580 && (length % maxpacket) != 0; in cppi_next_tx_segment() 583 maxpacket = length; in cppi_next_tx_segment() 587 n_bds = DIV_ROUND_UP(length, maxpacket); in cppi_next_tx_segment() 591 length = min(n_bds * maxpacket, length); in cppi_next_tx_segment() 596 maxpacket, in cppi_next_tx_segment() 632 if ((tx->offset + maxpacket) <= tx->buf_len) { in cppi_next_tx_segment() 633 tx->offset += maxpacket; in cppi_next_tx_segment() [all …]
|
D | mediatek.c | 420 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 421 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 422 { .hw_ep_num = 2, .style = FIFO_TX, .maxpacket = 512, }, 423 { .hw_ep_num = 2, .style = FIFO_RX, .maxpacket = 512, }, 424 { .hw_ep_num = 3, .style = FIFO_TX, .maxpacket = 512, }, 425 { .hw_ep_num = 3, .style = FIFO_RX, .maxpacket = 512, }, 426 { .hw_ep_num = 4, .style = FIFO_TX, .maxpacket = 512, }, 427 { .hw_ep_num = 4, .style = FIFO_RX, .maxpacket = 512, }, 428 { .hw_ep_num = 5, .style = FIFO_TX, .maxpacket = 512, }, 429 { .hw_ep_num = 5, .style = FIFO_RX, .maxpacket = 512, }, [all …]
|
D | musb_host.c | 478 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 567 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit() 578 u16 pkt_size = qh->maxpacket; in musb_tx_dma_set_mode_mentor() 630 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program() 680 u16 packet_sz = qh->maxpacket; in musb_ep_program() 789 qh->maxpacket | in musb_ep_program() 998 if (len < qh->maxpacket) { in musb_h_ep0_continue() 1024 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue() 1382 if (qh->segsize < qh->maxpacket) in musb_host_tx() 1430 if (length > qh->maxpacket) in musb_host_tx() [all …]
|
D | musb_dma.h | 166 u16 maxpacket, u8 mode, 171 u16 maxpacket,
|
/drivers/usb/gadget/udc/aspeed-vhub/ |
D | epn.c | 52 if (chunk > ep->ep.maxpacket) in ast_vhub_epn_kick() 53 chunk = ep->ep.maxpacket; in ast_vhub_epn_kick() 54 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_epn_kick() 129 if (len < ep->ep.maxpacket) in ast_vhub_epn_handle_ack() 199 if (!chunk || !req->req.zero || (chunk % ep->ep.maxpacket) != 0) in ast_vhub_epn_kick_desc() 288 CHECK(ep, is_last_desc == (len < ep->ep.maxpacket || in ast_vhub_epn_handle_ack_desc() 294 req->req.zero, ep->ep.maxpacket); in ast_vhub_epn_handle_ack_desc() 373 (ep->epn.is_in || !(u_req->length & (u_ep->maxpacket - 1))))) { in ast_vhub_epn_queue() 597 u16 maxpacket, type; in ast_vhub_epn_enable() local 605 maxpacket = usb_endpoint_maxp(desc); in ast_vhub_epn_enable() [all …]
|
D | ep0.c | 204 if (chunk > ep->ep.maxpacket) in ast_vhub_ep0_do_send() 205 chunk = ep->ep.maxpacket; in ast_vhub_ep0_do_send() 206 else if ((chunk < ep->ep.maxpacket) || !req->req.zero) in ast_vhub_ep0_do_send() 210 chunk, req->last_desc, req->req.actual, ep->ep.maxpacket); in ast_vhub_ep0_do_send() 259 if (len < ep->ep.maxpacket || len == remain) { in ast_vhub_ep0_do_receive()
|
/drivers/usb/gadget/udc/ |
D | lpc32xx_udc.c | 105 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 …]
|
D | at91_udc.c | 124 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 331 if (count > ep->ep.maxpacket) in read_fifo() 332 count = ep->ep.maxpacket; in read_fifo() 355 is_done = (count < ep->ep.maxpacket); in read_fifo() 419 if (ep->ep.maxpacket < total) { in write_fifo() 420 count = ep->ep.maxpacket; in write_fifo() 424 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo() 476 u16 maxpacket; in at91_ep_enable() local 483 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable() 484 || maxpacket > ep->maxpacket) { in at91_ep_enable() [all …]
|
D | pxa25x_udc.c | 463 ep->ep.maxpacket = usb_endpoint_maxp (desc); in pxa25x_ep_enable() 748 is_short = (count < ep->ep.maxpacket); in read_fifo() 1400 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in udc_reinit() 2036 .maxpacket = EP0_FIFO_SIZE, 2050 .maxpacket = BULK_FIFO_SIZE, 2065 .maxpacket = BULK_FIFO_SIZE, 2082 .maxpacket = ISO_FIFO_SIZE, 2097 .maxpacket = ISO_FIFO_SIZE, 2113 .maxpacket = INT_FIFO_SIZE, 2129 .maxpacket = BULK_FIFO_SIZE, [all …]
|
D | udc-xilinx.c | 149 u16 maxpacket; member 287 (ep->ep_usb.maxpacket << 15) | (ep->rambase)); in xudc_epconfig() 400 ep->ep_usb.maxpacket); in xudc_dma_send() 450 ep->rambase + ep->ep_usb.maxpacket); in xudc_dma_receive() 517 ep->ep_usb.maxpacket); in xudc_eptxrx() 613 is_short = count < ep->ep_usb.maxpacket; in xudc_read_fifo() 811 u16 maxpacket; in __xudc_ep_enable() local 819 ep->ep_usb.maxpacket = maxpacket = le16_to_cpu(desc->wMaxPacketSize); in __xudc_ep_enable() 830 if (maxpacket > 64) { in __xudc_ep_enable() 831 dev_dbg(udc->dev, "bogus maxpacket %d\n", maxpacket); in __xudc_ep_enable() [all …]
|
D | snps_udc_core.c | 326 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 …]
|
D | s3c2410_udc.c | 324 count = s3c2410_udc_write_packet(fifo_reg, req, ep->ep.maxpacket); in s3c2410_udc_write_fifo() 327 if (count != ep->ep.maxpacket) in s3c2410_udc_write_fifo() 444 if (fifo_count > ep->ep.maxpacket) in s3c2410_udc_read_fifo() 445 avail = ep->ep.maxpacket; in s3c2410_udc_read_fifo() 454 if (idx != 0 && fifo_count < ep->ep.maxpacket) { in s3c2410_udc_read_fifo() 889 udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_irq() 1026 _ep->maxpacket = max; in s3c2410_udc_ep_enable() 1581 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in s3c2410_udc_reinit() 1600 udc_write((dev->ep[i].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_enable() 1663 .maxpacket = EP0_FIFO_SIZE, [all …]
|
D | trace.h | 149 __field(unsigned, maxpacket) 161 __entry->maxpacket = ep->maxpacket; 172 __get_str(name), __entry->maxpacket, __entry->maxpacket_limit,
|
D | omap_udc.c | 154 || ep->maxpacket < usb_endpoint_maxp(desc)) { in omap_ep_enable() 160 && maxp != ep->maxpacket) in omap_ep_enable() 161 || usb_endpoint_maxp(desc) > ep->maxpacket in omap_ep_enable() 201 ep->ep.maxpacket = maxp; in omap_ep_enable() 249 ep->ep.maxpacket = ep->maxpacket; in omap_ep_disable() 369 count = ep->ep.maxpacket; in write_fifo() 375 if (count != ep->ep.maxpacket) in write_fifo() 438 avail = ep->ep.maxpacket; in read_fifo() 446 if (count < ep->ep.maxpacket) { in read_fifo() 524 || (cpu_is_omap15xx() && length < ep->maxpacket)) { in next_in_dma() [all …]
|
/drivers/usb/dwc3/ |
D | ep0.c | 753 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 886 if ((IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 981 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 986 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() 988 u32 maxpacket; in __dwc3_ep0_do_control_data() local 996 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 997 rem = req->request.length % maxpacket; in __dwc3_ep0_do_control_data() 1010 maxpacket - rem, in __dwc3_ep0_do_control_data() 1014 } else if (IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) && in __dwc3_ep0_do_control_data() 1031 trb_length = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data()
|
D | trace.h | 295 __field(unsigned int, maxpacket) 306 __entry->maxpacket = dep->endpoint.maxpacket; 316 __get_str(name), __entry->maxpacket,
|
/drivers/net/usb/ |
D | int51x1.c | 65 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()
|
/drivers/usb/isp1760/ |
D | isp1760-udc.c | 283 __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 …]
|
/drivers/usb/host/ |
D | ehci-q.c | 38 size_t len, int token, int maxpacket) in qtd_fill() argument 68 count -= (count % maxpacket); in qtd_fill() 583 int len, this_sg_len, maxpacket; in qh_urb_transaction() local 647 maxpacket = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_urb_transaction() 658 maxpacket); in qh_urb_transaction() 672 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction() 715 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction() 1179 int len, maxpacket; in ehci_submit_single_step_set_feature() local 1220 maxpacket = usb_maxpacket(urb->dev, urb->pipe, 0); in ehci_submit_single_step_set_feature() 1222 qtd_fill(ehci, qtd, buf, len, token, maxpacket); in ehci_submit_single_step_set_feature()
|
D | sl811-hcd.c | 212 len = ep->maxpacket; in in_packet() 251 len = min_t(u32, ep->maxpacket, in out_packet() 357 fclock -= ep->maxpacket << 8; in start() 517 else if (ep->length < ep->maxpacket in done() 527 len = ep->maxpacket - sl811_read(sl811, in done() 538 (len < ep->maxpacket || in done() 845 ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); in sl811h_urb_enqueue() 856 if (ep->maxpacket > H_MAXPACKET) { in sl811h_urb_enqueue() 860 epnum, ep->maxpacket); in sl811h_urb_enqueue() 1449 ep->maxpacket, in sl811h_debug_show() [all …]
|
D | isp1362-hcd.c | 281 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 …]
|
/drivers/usb/atm/ |
D | usbatm.c | 1017 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local 1092 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0); in usbatm_usb_probe() 1094 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) { in usbatm_usb_probe() 1101 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe() 1103 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe() 1106 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe() 1107 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
|
/drivers/staging/emxx_udc/ |
D | emxx_udc.c | 224 data = (begin_adrs << 16) | ep->ep.maxpacket; in _nbu2ss_ep_init() 347 data = ep->ep.maxpacket; in _nbu2ss_ep_dma_init() 895 ((req->req.actual % ep->ep.maxpacket) != 0)) { in _nbu2ss_epn_out_pio() 921 i_buf_size = min_t(u32, i_buf_size, ep->ep.maxpacket); in _nbu2ss_epn_out_data() 950 if (i_recv_length < ep->ep.maxpacket) { in _nbu2ss_epn_out_transfer() 958 ((req->req.actual % ep->ep.maxpacket) != 0)) { in _nbu2ss_epn_out_transfer() 964 if ((req->req.actual % ep->ep.maxpacket) == 0) { in _nbu2ss_epn_out_transfer() 1085 if (result != ep->ep.maxpacket) { in _nbu2ss_epn_in_pio() 1116 data_size = min_t(u32, data_size, ep->ep.maxpacket); in _nbu2ss_epn_in_data() 1175 if ((req->req.length % ep->ep.maxpacket) == 0) in _nbu2ss_start_transfer() [all …]
|