/linux-4.1.27/drivers/usb/musb/ |
D | musb_core.c | 1122 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, }, 1123 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, }, 1124 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, }, 1125 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1126 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, 1131 { .hw_ep_num = 1, .style = FIFO_TX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1132 { .hw_ep_num = 1, .style = FIFO_RX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1133 { .hw_ep_num = 2, .style = FIFO_RXTX, .maxpacket = 512, .mode = BUF_DOUBLE, }, 1134 { .hw_ep_num = 3, .style = FIFO_RXTX, .maxpacket = 256, }, 1135 { .hw_ep_num = 4, .style = FIFO_RXTX, .maxpacket = 256, }, [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() 586 n_bds = length / maxpacket; in cppi_next_tx_segment() 587 if (!length || (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() [all …]
|
D | musb_dma.h | 167 u16 maxpacket, u8 mode, 172 u16 maxpacket,
|
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 | 522 || (rx_count < qh->maxpacket) in musb_host_packet_rx() 615 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit() 626 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program() 707 u16 packet_sz = qh->maxpacket; in musb_ep_program() 824 qh->maxpacket | in musb_ep_program() 1028 if (len < qh->maxpacket) { in musb_h_ep0_continue() 1054 fifo_count = min_t(size_t, qh->maxpacket, in musb_h_ep0_continue() 1412 if (qh->segsize < qh->maxpacket) in musb_host_tx() 1460 if (length > qh->maxpacket) in musb_host_tx() 1461 length = qh->maxpacket; in musb_host_tx() [all …]
|
D | cppi_dma.h | 96 u32 maxpacket; member
|
D | musb_host.h | 63 u16 maxpacket; member
|
D | ux500_dma.c | 190 u16 maxpacket, void *buf, u32 length) in ux500_dma_is_compatible() argument 192 if ((maxpacket & 0x3) || in ux500_dma_is_compatible()
|
D | musb_cppi41.c | 509 static int cppi41_is_compatible(struct dma_channel *channel, u16 maxpacket, in cppi41_is_compatible() argument
|
/linux-4.1.27/drivers/usb/gadget/udc/ |
D | lpc32xx_udc.c | 133 u32 maxpacket; member 517 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 864 u32 maxpacket) in udc_realize_hwep() argument 872 writel(maxpacket, USBD_EPMAXPSIZE(udc->udp_baseaddr)); in udc_realize_hwep() 1053 if (req->req.length % ep->ep.maxpacket) in udc_ep_in_req_dma() 1136 udc_realize_hwep(udc, i, ep->ep.maxpacket); in udc_enable() 1449 usb_ep_set_maxpacket_limit(&ep->ep, ep->maxpacket); in udc_reinit() 1520 } else if (ts > ep0->ep.maxpacket) in udc_ep0_in_req() 1521 ts = ep0->ep.maxpacket; /* Just send what we can */ in udc_ep0_in_req() 1529 if (tsend >= ep0->ep.maxpacket) in udc_ep0_in_req() [all …]
|
D | at91_udc.c | 109 ep->ep.name, ep->ep.maxpacket, in proc_ep_show() 328 if (count > ep->ep.maxpacket) in read_fifo() 329 count = ep->ep.maxpacket; in read_fifo() 352 is_done = (count < ep->ep.maxpacket); in read_fifo() 416 if (ep->ep.maxpacket < total) { in write_fifo() 417 count = ep->ep.maxpacket; in write_fifo() 421 is_last = (count < ep->ep.maxpacket) || !req->req.zero; in write_fifo() 473 u16 maxpacket; in at91_ep_enable() local 480 || (maxpacket = usb_endpoint_maxp(desc)) == 0 in at91_ep_enable() 481 || maxpacket > ep->maxpacket) { in at91_ep_enable() [all …]
|
D | pxa25x_udc.c | 253 ep->ep.maxpacket = usb_endpoint_maxp (desc); in pxa25x_ep_enable() 537 is_short = (count < ep->ep.maxpacket); in read_fifo() 1191 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in udc_reinit() 1823 .maxpacket = EP0_FIFO_SIZE, 1835 .maxpacket = BULK_FIFO_SIZE, 1848 .maxpacket = BULK_FIFO_SIZE, 1863 .maxpacket = ISO_FIFO_SIZE, 1876 .maxpacket = ISO_FIFO_SIZE, 1890 .maxpacket = INT_FIFO_SIZE, 1905 .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 | amd5536udc.c | 318 unsigned maxpacket; in udc_ep_enable() local 345 maxpacket = usb_endpoint_maxp(desc); in udc_ep_enable() 347 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_EP_MAX_PKT_SIZE); in udc_ep_enable() 348 ep->ep.maxpacket = maxpacket; in udc_ep_enable() 362 maxpacket * UDC_EPIN_BUFF_SIZE_MULT in udc_ep_enable() 382 tmp = AMD_ADDBITS(tmp, maxpacket, in udc_ep_enable() 399 tmp = AMD_ADDBITS(tmp, maxpacket, UDC_CSR_NE_MAX_PKT); in udc_ep_enable() 633 bytes = ep->ep.maxpacket; in udc_txfifo_write() 703 if ((buf_space % ep->ep.maxpacket) != 0) { in udc_rxfifo_read() 714 if (((bytes % ep->ep.maxpacket) != 0) || (!bytes) in udc_rxfifo_read() [all …]
|
D | s3c2410_udc.c | 352 count = s3c2410_udc_write_packet(fifo_reg, req, ep->ep.maxpacket); in s3c2410_udc_write_fifo() 355 if (count != ep->ep.maxpacket) in s3c2410_udc_write_fifo() 471 if (fifo_count > ep->ep.maxpacket) in s3c2410_udc_read_fifo() 472 avail = ep->ep.maxpacket; in s3c2410_udc_read_fifo() 481 if (idx != 0 && fifo_count < ep->ep.maxpacket) { in s3c2410_udc_read_fifo() 918 udc_write((dev->ep[0].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_irq() 1055 _ep->maxpacket = max & 0x7ff; in s3c2410_udc_ep_enable() 1613 usb_ep_set_maxpacket_limit(&ep->ep, ep->ep.maxpacket); in s3c2410_udc_reinit() 1632 udc_write((dev->ep[i].ep.maxpacket & 0x7ff) >> 3, in s3c2410_udc_enable() 1695 .maxpacket = EP0_FIFO_SIZE, [all …]
|
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() 394 (req->req.actual < ep->ep.maxpacket)) in fotg210_ep0_queue() 820 if ((req->req.length - req->req.actual) < ep->ep.maxpacket) in fotg210_ep0out() 840 if ((req->req.length - req->req.actual) < ep->ep.maxpacket) in fotg210_ep0in() 874 req->req.actual < ep->ep.maxpacket) in fotg210_out_fifo_handler()
|
D | m66592-udc.c | 276 m66592_write(m66592, info->maxpacket, M66592_PIPEMAXP); in pipe_buffer_setting() 363 ep->ep.maxpacket = usb_endpoint_maxp(desc); in m66592_ep_setting() 440 info.maxpacket = usb_endpoint_maxp(desc); in alloc_pipe_config() 550 (req->req.length + ep->ep.maxpacket - 1) in start_packet_read() 551 / ep->ep.maxpacket, in start_packet_read() 775 if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) in irq_ep0_write() 784 || (size % ep->ep.maxpacket) in irq_ep0_write() 822 || ((size % ep->ep.maxpacket) != 0) in irq_packet_write() 823 || ((bufsize != ep->ep.maxpacket) in irq_packet_write() 832 || (size % ep->ep.maxpacket) in irq_packet_write() [all …]
|
D | atmel_usba_udc.c | 365 if (transaction_len > ep->ep.maxpacket) { in next_fifo_transaction() 366 transaction_len = ep->ep.maxpacket; in next_fifo_transaction() 368 } else if (transaction_len == ep->ep.maxpacket && req->req.zero) in next_fifo_transaction() 528 unsigned long flags, ept_cfg, maxpacket; in usba_ep_enable() local 533 maxpacket = usb_endpoint_maxp(desc) & 0x7ff; in usba_ep_enable() 538 || maxpacket == 0 in usba_ep_enable() 539 || maxpacket > ep->fifo_size) { in usba_ep_enable() 547 if (maxpacket <= 8) in usba_ep_enable() 551 ept_cfg = USBA_BF(EPT_SIZE, fls(maxpacket - 1) - 3); in usba_ep_enable() 554 ep->ep.name, ept_cfg, maxpacket); in usba_ep_enable() [all …]
|
D | r8a66597-udc.c | 366 r8a66597_write(r8a66597, info->maxpacket, PIPEMAXP); in pipe_buffer_setting() 431 ep->ep.maxpacket = usb_endpoint_maxp(desc); in r8a66597_ep_setting() 513 info.maxpacket = usb_endpoint_maxp(desc); in alloc_pipe_config() 753 DIV_ROUND_UP(req->req.length, ep->ep.maxpacket), in start_packet_read() 972 if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) in irq_ep0_write() 981 || (size % ep->ep.maxpacket) in irq_ep0_write() 1021 || ((size % ep->ep.maxpacket) != 0) in irq_packet_write() 1022 || ((bufsize != ep->ep.maxpacket) in irq_packet_write() 1031 || (size % ep->ep.maxpacket) in irq_packet_write() 1078 || (size % ep->ep.maxpacket) in irq_packet_read() [all …]
|
D | at91_udc.h | 100 unsigned maxpacket:16; member
|
D | fsl_qe_udc.c | 436 size = (ep->ep.maxpacket + USB_CRC_SIZE + 2) * (bdring_len + 1); in qe_ep_rxbd_update() 459 size = ep->ep.maxpacket + USB_CRC_SIZE + 2; in qe_ep_rxbd_update() 520 tmp = (u16)(ep->ep.maxpacket + USB_CRC_SIZE); in qe_ep_register_init() 639 ep->ep.maxpacket = max; in qe_ep_init() 919 if ((fsize < ep->ep.maxpacket) || in qe_ep_rxframe_handle() 1149 ep->ep.maxpacket); in txcomplete() 1162 (req->req.length % ep->ep.maxpacket) != 0) in txcomplete() 1199 ep->ep.maxpacket); in qe_usb_senddata() 1526 if ((fsize < ep->ep.maxpacket) in ep_req_rx() 1643 size = (ep->ep.maxpacket + USB_CRC_SIZE + 2) * in qe_ep_disable() [all …]
|
D | omap_udc.h | 144 u16 maxpacket; member
|
D | dummy_hcd.c | 521 _ep->maxpacket = max; in dummy_enable() 817 dum->ep[0].ep.maxpacket = 9; in dummy_udc_update_ep0() 819 dum->ep[0].ep.maxpacket = 64; in dummy_udc_update_ep0() 1317 if (limit < ep->ep.maxpacket && limit < len) in transfer() 1324 if (len > ep->ep.maxpacket) { in transfer() 1326 len -= (len % ep->ep.maxpacket); in transfer() 1328 is_short = (len % ep->ep.maxpacket) != 0; in transfer() 1403 int limit = ep->ep.maxpacket; in periodic_bytes() 2058 maxpacket = 8; in dummy_hub_control()
|
D | fusb300_udc.c | 111 fusb300->addrofs += (info.maxpacket + 7) / 8 * FUSB300_FIFO_ENTRY_NUM; in fusb300_set_epaddrofs() 160 reg |= FUSB300_EPSET2_MPS(info.maxpacket); in fusb300_set_epmps() 214 info.maxpacket = usb_endpoint_maxp(desc); in config_ep() 411 (req->req.actual < ep->ep.maxpacket)) in ep0_queue() 983 if ((req->req.length == req->req.actual) || (length < ep->ep.maxpacket)) in out_ep_fifo_handler() 1040 if ((req->req.length - req->req.actual) < ep->ep.maxpacket) in fusb300_ep0in()
|
D | net2280.c | 188 _ep->maxpacket = max & 0x7ff; in net2280_enable() 563 count = ep->ep.maxpacket; in write_fifo() 569 (count != ep->ep.maxpacket) ? " (short)" : "", in write_fifo() 587 if (count || total < ep->ep.maxpacket) { in write_fifo() 684 if ((tmp % ep->ep.maxpacket) != 0) { in read_fifo() 698 is_short = (count == 0) || ((count % ep->ep.maxpacket) != 0); in read_fifo() 745 if ((!ep->is_in && (dmacount % ep->ep.maxpacket) != 0) || in fill_dma_desc() 854 if (likely((req->req.length % ep->ep.maxpacket) || in start_dma() 1041 (req->req.length % ep->ep.maxpacket)); in net2280_queue() 1102 (req->req.length % ep->ep.maxpacket) && in scan_dma_completions() [all …]
|
D | goku_udc.c | 175 ep->ep.maxpacket = max; in goku_ep_enable() 369 count = write_packet(ep->reg_fifo, buf, req, ep->ep.maxpacket); in write_fifo() 372 if (unlikely(count != ep->ep.maxpacket)) { in write_fifo() 446 is_short = (size < ep->ep.maxpacket); in read_fifo() 553 else if ((req->req.length % ep->ep.maxpacket) != 0 in start_dma() 1173 ep->ep.maxpacket, in udc_proc_read()
|
D | s3c-hsudc.c | 158 #define ep_maxpacket(_ep) ((_ep)->ep.maxpacket) 400 is_short = (rlen < hsep->ep.maxpacket); in s3c_hsudc_read_fifo() 783 hsep->ep.maxpacket = usb_endpoint_maxp(desc); in s3c_hsudc_ep_enable() 1009 writel(hsep->ep.maxpacket, hsudc->regs + S3C_MPR); in s3c_hsudc_initep()
|
D | r8a66597-udc.h | 47 u16 maxpacket; member
|
D | fsl_qe_udc.h | 157 #define ep_maxpacket(EP) ((EP)->ep.maxpacket)
|
D | gr_udc.c | 145 seq_printf(seq, " maxpacket = %d\n", ep->ep.maxpacket); in gr_seq_ep_show() 576 if (req->req.zero && (req->req.length % ep->ep.maxpacket == 0)) { in gr_setup_in_desc_list() 696 ep->ep.maxpacket = MAX_CTRL_PL_SIZE; in gr_ep_reset() 1304 if (len < ep->ep.maxpacket || req->req.actual >= req->req.length) { in gr_handle_out_ep() 1577 ep->ep.maxpacket = max; in gr_ep_enable()
|
D | net2272.c | 208 _ep->maxpacket = max & 0x7fff; in net2272_enable() 470 if (max < ep->ep.maxpacket) in net2272_write_fifo() 478 if (count < ep->ep.maxpacket) in net2272_write_fifo() 524 is_short = (avail < ep->ep.maxpacket); in net2272_read_packet() 580 if ((tmp % ep->ep.maxpacket) != 0) { in net2272_read_fifo() 1552 if ((req->req.length % ep->ep.maxpacket != 0) || in net2272_handle_dma()
|
D | fsl_usb2_udc.h | 575 #define ep_maxpacket(EP) ((EP)->ep.maxpacket)
|
D | fusb300_udc.h | 630 u16 maxpacket; member
|
D | pxa27x_udc.h | 238 { .usb_ep = { .name = bname, .ops = &pxa_ep_ops, .maxpacket = maxpkt, }, \
|
D | m66592-udc.h | 433 u16 maxpacket; member
|
D | mv_u3d_core.c | 383 if (*length == 0 || (*length % req->ep->ep.maxpacket) != 0) in mv_u3d_build_trb_chain() 594 ep->ep.maxpacket = max; in mv_u3d_ep_enable() 827 if (req->req.length > ep->ep.maxpacket) in mv_u3d_ep_queue()
|
D | fsl_udc_core.c | 599 ep->ep.maxpacket = max; in fsl_ep_enable() 810 if (*length == 0 || (*length % req->ep->ep.maxpacket) != 0) in fsl_build_dtd() 891 if (req->req.length > ep->ep.maxpacket) in fsl_ep_queue()
|
D | mv_udc_core.c | 355 (unsigned)(mult * req->ep->ep.maxpacket)); in build_dtd() 384 if (*length == 0 || (*length % req->ep->ep.maxpacket) != 0) in build_dtd() 521 ep->ep.maxpacket = max; in mv_ep_enable()
|
D | pch_udc.c | 1620 retval = pch_udc_create_dma_chain(ep, req, ep->ep.maxpacket, gfp); in prepare_dma() 1717 ep->ep.maxpacket = usb_endpoint_maxp(desc); in pch_udc_pcd_ep_enable()
|
D | bcm63xx_udc.c | 1050 ep->maxpacket = usb_endpoint_maxp(desc); in bcm63xx_ep_enable()
|
D | pxa27x_udc.c | 1729 dev->udc_usb_ep[i].usb_ep.maxpacket); in udc_init_data()
|
/linux-4.1.27/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()
|
D | rndis_host.c | 347 dev->maxpacket = usb_maxpacket(dev->udev, dev->out, 1); in generic_rndis_bind() 348 if (dev->maxpacket == 0) { in generic_rndis_bind() 355 dev->rx_urb_size = dev->hard_mtu + (dev->maxpacket + 1); in generic_rndis_bind() 356 dev->rx_urb_size &= ~(dev->maxpacket - 1); in generic_rndis_bind()
|
D | gl620a.c | 185 if ((skb->len % dev->maxpacket) == 0) in genelink_tx_fixup()
|
D | cdc_eem.c | 118 if (!((len + EEM_HEAD + ETH_FCS_LEN) % dev->maxpacket)) in eem_tx_fixup()
|
D | sr9700.c | 474 if ((skb->len % dev->maxpacket) == 0) in sr9700_tx_fixup()
|
D | dm9601.c | 490 while ((len & 1) || !(len % dev->maxpacket)) in dm9601_tx_fixup()
|
D | asix_common.c | 148 padlen = ((skb->len + 4) & (dev->maxpacket - 1)) ? 0 : 4; in asix_tx_fixup()
|
D | usbnet.c | 386 if ((ll_mtu % dev->maxpacket) == 0) in usbnet_change_mtu() 1336 if (length % dev->maxpacket == 0) { in usbnet_start_xmit() 1706 dev->maxpacket = usb_maxpacket (dev->udev, dev->out, 1); in usbnet_probe()
|
D | sierra_net.c | 873 % dev->maxpacket == 0); in sierra_net_tx_fixup()
|
D | sr9800.c | 119 padlen = ((skb->len + 4) % (dev->maxpacket - 1)) ? 0 : 4; in sr_tx_fixup()
|
D | asix_devices.c | 760 if ((ll_mtu % dev->maxpacket) == 0) in ax88178_change_mtu()
|
D | ax88179_178a.c | 1427 int frame_size = dev->maxpacket; in ax88179_tx_fixup()
|
D | cdc_ncm.c | 1197 else if (skb_out->len < ctx->tx_max && (skb_out->len % dev->maxpacket) == 0) in cdc_ncm_fill_tx_frame()
|
/linux-4.1.27/include/net/ |
D | codel.h | 166 u32 maxpacket; member 187 stats->maxpacket = 0; in codel_stats_init() 237 if (unlikely(qdisc_pkt_len(skb) > stats->maxpacket)) in codel_should_drop() 238 stats->maxpacket = qdisc_pkt_len(skb); in codel_should_drop()
|
/linux-4.1.27/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 | 47 size_t len, int token, int maxpacket) in qtd_fill() argument 77 count -= (count % maxpacket); in qtd_fill() 581 int len, this_sg_len, maxpacket; in qh_urb_transaction() local 645 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); in qh_urb_transaction() 656 maxpacket); in qh_urb_transaction() 670 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction() 713 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction() 1174 int len, maxpacket; in submit_single_step_set_feature() local 1215 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, 0)); in submit_single_step_set_feature() 1217 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 | 279 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd() 284 len = max_transfer_size(epq, buf_len, ep->maxpacket); in prepare_ptd() 285 DBG(1, "%s: IN len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, in prepare_ptd() 292 len = min_t(size_t, ep->maxpacket, buf_len); in prepare_ptd() 296 len = max_transfer_size(epq, buf_len, ep->maxpacket); in prepare_ptd() 300 DBG(1, "%s: OUT len %d/%d/%d from URB\n", __func__, len, ep->maxpacket, in prepare_ptd() 328 ptd->mps = PTD_MPS(ep->maxpacket) | PTD_SPD(urb->dev->speed == USB_SPEED_LOW) | in prepare_ptd() 531 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep() 539 PTD_GET_COUNT(ptd), ep->maxpacket, len); in postproc_ep() 580 ep->num_req, len, ep->maxpacket, urbstat); in postproc_ep() [all …]
|
D | r8a66597.h | 49 u16 maxpacket; member 78 u16 maxpacket; member
|
D | sl811.h | 173 u8 maxpacket; member
|
D | isp116x-hcd.c | 275 ptd->mps = PTD_MPS(ep->maxpacket) in preproc_atl_queue() 433 && !(PTD_GET_COUNT(ptd) % ep->maxpacket)) { in postproc_atl_queue() 540 len -= len % ep->maxpacket; in start_atl_transfers() 727 ep->maxpacket = usb_maxpacket(udev, urb->pipe, is_out); in isp116x_urb_enqueue() 775 ep->length = min_t(u32, ep->maxpacket, in isp116x_urb_enqueue()
|
D | r8a66597-hcd.c | 637 r8a66597_write(r8a66597, make_devsel(info->address) | info->maxpacket, in pipe_buffer_setting() 957 info.maxpacket = usb_endpoint_maxp(ep); in init_pipe_info() 1086 r8a66597_write(r8a66597, make_devsel(td->address) | td->maxpacket, in prepare_setup_packet() 1127 td->maxpacket), in prepare_packet_read() 1354 bufsize = min(urb_len, (int) td->maxpacket); in packet_read() 1420 bufsize = td->maxpacket; in packet_write() 1437 if (!usb_pipebulk(urb->pipe) || td->maxpacket != size) in packet_write() 1881 td->maxpacket = usb_maxpacket(urb->dev, urb->pipe, in r8a66597_make_td()
|
D | oxu210hp-hcd.c | 783 int token, int maxpacket) in qtd_fill() argument 812 count -= (count % maxpacket); in qtd_fill() 1200 int len, maxpacket; in qh_urb_transaction() local 1268 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); in qh_urb_transaction() 1278 this_qtd_len = qtd_fill(qtd, buf, len, token, maxpacket); in qh_urb_transaction() 1287 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction() 1327 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction()
|
D | fusbh200-hcd.c | 2039 size_t len, int token, int maxpacket) in qtd_fill() argument 2069 count -= (count % maxpacket); in qtd_fill() 2606 int len, this_sg_len, maxpacket; in qh_urb_transaction() local 2670 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); in qh_urb_transaction() 2681 maxpacket); in qh_urb_transaction() 2695 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction() 2738 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction()
|
D | fotg210-hcd.c | 2086 size_t len, int token, int maxpacket) in qtd_fill() argument 2116 count -= (count % maxpacket); in qtd_fill() 2657 int len, this_sg_len, maxpacket; in qh_urb_transaction() local 2721 maxpacket = max_packet(usb_maxpacket(urb->dev, urb->pipe, !is_input)); in qh_urb_transaction() 2732 maxpacket); in qh_urb_transaction() 2746 if ((maxpacket & (this_qtd_len + (maxpacket - 1))) == 0) in qh_urb_transaction() 2789 && !(urb->transfer_buffer_length % maxpacket)) { in qh_urb_transaction()
|
D | isp116x.h | 306 u8 maxpacket; member
|
D | isp1362.h | 432 u8 maxpacket; member
|
/linux-4.1.27/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 …]
|
D | isp1760-udc.h | 40 unsigned int maxpacket; member
|
D | isp1760-hcd.c | 539 u32 maxpacket; in create_ptd_atl() local 547 maxpacket = usb_maxpacket(qtd->urb->dev, qtd->urb->pipe, in create_ptd_atl() 549 multi = 1 + ((maxpacket >> 11) & 0x3); in create_ptd_atl() 550 maxpacket &= 0x7ff; in create_ptd_atl() 555 ptd->dw0 |= TO_DW0_MAXPACKET(maxpacket); in create_ptd_atl()
|
/linux-4.1.27/include/linux/usb/ |
D | musb.h | 40 u16 maxpacket; member 48 .maxpacket = pkt, \
|
D | gadget.h | 176 unsigned maxpacket:16; member 200 ep->maxpacket = maxpacket_limit; in usb_ep_set_maxpacket_limit()
|
D | usbnet.h | 43 unsigned maxpacket; member
|
/linux-4.1.27/drivers/usb/dwc3/ |
D | ep0.c | 667 dwc->ep0_usb_req.request.length = dep->endpoint.maxpacket; in dwc3_ep0_set_sel() 815 unsigned maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data() 839 if (IS_ALIGNED(ur->length, ep0->endpoint.maxpacket) && in dwc3_ep0_complete_data() 932 } else if (!IS_ALIGNED(req->request.length, dep->endpoint.maxpacket) in __dwc3_ep0_do_control_data() 935 u32 maxpacket; in __dwc3_ep0_do_control_data() local 944 maxpacket = dep->endpoint.maxpacket; in __dwc3_ep0_do_control_data() 945 transfer_size = roundup(req->request.length, maxpacket); in __dwc3_ep0_do_control_data()
|
D | gadget.c | 216 tmp = mult * (dep->endpoint.maxpacket + mdwidth); in dwc3_gadget_resize_tx_fifos() 2320 dwc->gadget.ep0->maxpacket = 512; in dwc3_gadget_conndone_interrupt() 2325 dwc->gadget.ep0->maxpacket = 64; in dwc3_gadget_conndone_interrupt() 2331 dwc->gadget.ep0->maxpacket = 64; in dwc3_gadget_conndone_interrupt() 2336 dwc->gadget.ep0->maxpacket = 8; in dwc3_gadget_conndone_interrupt()
|
/linux-4.1.27/drivers/usb/atm/ |
D | usbatm.c | 1029 unsigned int maxpacket, num_packets; in usbatm_usb_probe() local 1106 maxpacket = usb_maxpacket(usb_dev, instance->rx_channel.endpoint, 0); in usbatm_usb_probe() 1108 if ((maxpacket < 1) || (maxpacket > UDSL_MAX_BUF_SIZE)) { in usbatm_usb_probe() 1115 num_packets = max(1U, (rcv_buf_bytes + maxpacket / 2) / maxpacket); /* round */ in usbatm_usb_probe() 1117 if (num_packets * maxpacket > UDSL_MAX_BUF_SIZE) in usbatm_usb_probe() 1120 instance->rx_channel.buf_size = num_packets * maxpacket; in usbatm_usb_probe() 1121 instance->rx_channel.packet_size = maxpacket; in usbatm_usb_probe()
|
/linux-4.1.27/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()
|
D | bdc_ep.c | 404 (req_len % bdc->gadget.ep0->maxpacket == 0)) { in setup_first_bd_ep0() 407 bdc->gadget.ep0->maxpacket); in setup_first_bd_ep0() 631 ep->usb_ep.maxpacket = usb_endpoint_maxp(ep->desc); in bdc_ep_enable()
|
/linux-4.1.27/net/sched/ |
D | sch_codel.c | 216 .maxpacket = q->stats.maxpacket, in codel_dump_stats()
|
D | sch_fq_codel.c | 465 st.qdisc_stats.maxpacket = q->cstats.maxpacket; in fq_codel_dump_stats()
|
/linux-4.1.27/drivers/staging/emxx_udc/ |
D | emxx_udc.c | 244 data = (begin_adrs << 16) | ep->ep.maxpacket; in _nbu2ss_ep_init() 367 data = ep->ep.maxpacket; in _nbu2ss_ep_dma_init() 942 || ((req->req.actual % ep->ep.maxpacket) != 0)) { in _nbu2ss_epn_out_pio() 974 iBufSize = min_t(u32, iBufSize, ep->ep.maxpacket); in _nbu2ss_epn_out_data() 1005 if (iRecvLength < ep->ep.maxpacket) { in _nbu2ss_epn_out_transfer() 1013 || ((req->req.actual % ep->ep.maxpacket) != 0)) { in _nbu2ss_epn_out_transfer() 1020 if ((req->req.actual % ep->ep.maxpacket) == 0) { in _nbu2ss_epn_out_transfer() 1152 if (result != ep->ep.maxpacket) { in _nbu2ss_epn_in_pio() 1188 data_size = min_t(u32, data_size, ep->ep.maxpacket); in _nbu2ss_epn_in_data() 1251 if ((req->req.length % ep->ep.maxpacket) == 0) in _nbu2ss_start_transfer() [all …]
|
/linux-4.1.27/sound/usb/usx2y/ |
D | usb_stream.c | 64 int maxpacket = use_packsize ? in init_pipe_urbs() local 66 int transfer_length = maxpacket * sk->n_o_ps; in init_pipe_urbs() 84 desc->length = maxpacket; in init_pipe_urbs() 86 desc[p].offset = desc[p - 1].offset + maxpacket; in init_pipe_urbs() 87 desc[p].length = maxpacket; in init_pipe_urbs()
|
/linux-4.1.27/drivers/usb/dwc2/ |
D | gadget.c | 396 max_transfer = hs_ep->ep.maxpacket * hs_ep->mc; in s3c_hsotg_write_fifo() 506 if ((maxpkt * hs_ep->ep.maxpacket) < maxsize) in get_ep_limit() 507 maxsize = maxpkt * hs_ep->ep.maxpacket; in get_ep_limit() 572 int round = maxreq % hs_ep->ep.maxpacket; in s3c_hsotg_start_req() 585 packets = DIV_ROUND_UP(length, hs_ep->ep.maxpacket); in s3c_hsotg_start_req() 589 if (hs_ep->isochronous && length > (hs_ep->mc * hs_ep->ep.maxpacket)) { in s3c_hsotg_start_req() 608 if ((ureq->length >= hs_ep->ep.maxpacket) && in s3c_hsotg_start_req() 609 !(ureq->length % hs_ep->ep.maxpacket)) in s3c_hsotg_start_req() 1732 hs_ep->ep.maxpacket = mps; in s3c_hsotg_set_ep_maxpacket() 1742 hs_ep->ep.maxpacket = mpsval; in s3c_hsotg_set_ep_maxpacket() [all …]
|
/linux-4.1.27/drivers/usb/gadget/legacy/ |
D | tcm_usb_gadget.c | 109 if (cmd->data_len > ep->maxpacket) { in bot_err_compl() 110 req->length = ep->maxpacket; in bot_err_compl() 111 cmd->data_len -= ep->maxpacket; in bot_err_compl() 141 if (cmd->data_len > fu->ep_in->maxpacket) { in bot_send_bad_status() 142 req->length = ep->maxpacket; in bot_send_bad_status() 143 cmd->data_len -= ep->maxpacket; in bot_send_bad_status() 341 fu->cmd.buf = kmalloc(fu->ep_out->maxpacket, GFP_KERNEL); in bot_prepare_reqs() 347 fu->cmd.req->length = fu->ep_out->maxpacket; in bot_prepare_reqs() 783 fu->cmd.buf = kmalloc(fu->ep_cmd->maxpacket, GFP_KERNEL); in uasp_alloc_cmd() 789 fu->cmd.req->length = fu->ep_cmd->maxpacket; in uasp_alloc_cmd()
|
D | dbgp.c | 367 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket; in dbgp_setup()
|
D | inode.c | 1266 qual.bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in make_qualifier() 1348 dev->dev->bMaxPacketSize0 = dev->gadget->ep0->maxpacket; in gadgetfs_setup()
|
/linux-4.1.27/drivers/usb/chipidea/ |
D | udc.c | 364 u32 mul = hwreq->req.length / hwep->ep.maxpacket; in add_td_to_list() 367 || hwreq->req.length % hwep->ep.maxpacket) in add_td_to_list() 449 && (hwreq->req.length % hwep->ep.maxpacket == 0)) in _hardware_enqueue() 494 u32 mul = hwreq->req.length / hwep->ep.maxpacket; in _hardware_enqueue() 497 || hwreq->req.length % hwep->ep.maxpacket) in _hardware_enqueue() 818 hwreq->req.length > (1 + hwep->ep.mult) * hwep->ep.maxpacket) { in _ep_queue() 1233 hwep->ep.maxpacket = usb_endpoint_maxp(desc) & 0x07ff; in ep_enable() 1240 cap |= (hwep->ep.maxpacket << __ffs(QH_MAX_PKT)) & QH_MAX_PKT; in ep_enable()
|
/linux-4.1.27/include/uapi/linux/ |
D | pkt_sched.h | 688 __u32 maxpacket; /* largest packet we've seen so far */ member 721 __u32 maxpacket; /* largest packet we've seen so far */ member
|
/linux-4.1.27/drivers/usb/gadget/function/ |
D | u_ether.c | 225 size += out->maxpacket - 1; in rx_submit() 226 size -= size % out->maxpacket; in rx_submit() 578 (length % in->maxpacket) == 0) in eth_start_xmit() 587 if (req->zero && !dev->zlp && (length % in->maxpacket) == 0) in eth_start_xmit()
|
D | u_serial.c | 375 len = gs_send_packet(port, req->buf, in->maxpacket); in gs_start_tx() 449 req->length = out->maxpacket; in gs_start_rx() 649 req = gs_alloc_req(ep, ep->maxpacket, GFP_ATOMIC); in gs_alloc_requests()
|
D | uvc_video.c | 244 req_size = video->ep->maxpacket in uvc_video_alloc_requests()
|
D | f_eem.c | 363 if (((len + EEM_HLEN + ETH_FCS_LEN) % in->maxpacket) == 0) in eem_wrap()
|
D | f_printer.c | 621 req->zero = ((len % dev->in_ep->maxpacket) == 0); in printer_write()
|
/linux-4.1.27/Documentation/usb/ |
D | error-codes.txt | 48 -EMSGSIZE (a) endpoint maxpacket size is zero; it is not usable 50 (b) ISO packet is larger than the endpoint maxpacket.
|
/linux-4.1.27/drivers/hid/usbhid/ |
D | hid-core.c | 385 int maxpacket, padlen; in hid_submit_ctrl() local 388 maxpacket = usb_maxpacket(hid_to_usb_dev(hid), in hid_submit_ctrl() 390 if (maxpacket > 0) { in hid_submit_ctrl() 391 padlen = DIV_ROUND_UP(len, maxpacket); in hid_submit_ctrl() 392 padlen *= maxpacket; in hid_submit_ctrl()
|
/linux-4.1.27/drivers/usb/misc/ |
D | usbtest.c | 319 unsigned maxpacket; in simple_fill_buf() local 328 maxpacket = get_maxpacket(urb->dev, urb->pipe); in simple_fill_buf() 330 *buf++ = (u8) ((i % maxpacket) % 63); in simple_fill_buf() 362 unsigned maxpacket = get_maxpacket(urb->dev, urb->pipe); in simple_check_buf() local 380 expected = (i % maxpacket) % 63; in simple_check_buf() 498 unsigned maxpacket = in alloc_sglist() local 528 *buf++ = (u8) (((j + n_size) % maxpacket) % 63); in alloc_sglist()
|
/linux-4.1.27/drivers/usb/gadget/ |
D | composite.c | 146 _ep->maxpacket = usb_endpoint_maxp(chosen_desc); in config_ep_by_speed() 608 qual->bMaxPacketSize0 = cdev->gadget->ep0->maxpacket; in device_qual() 1494 cdev->gadget->ep0->maxpacket; in composite_setup()
|