Home
last modified time | relevance | path

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

1234

/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/musb/
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,
H A Dmusb_host.c479 || (rx_count < qh->maxpacket) in musb_host_packet_rx()
568 qh->maxpacket | ((qh->hb_mult - 1) << 11)); in musb_rx_reinit()
579 u16 pkt_size = qh->maxpacket; in musb_tx_dma_set_mode_mentor()
631 u16 pkt_size = qh->maxpacket; in musb_tx_dma_program()
681 u16 packet_sz = qh->maxpacket; in musb_ep_program()
790 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 …]
H A Dcppi_dma.h90 u32 maxpacket; member
/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 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 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 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 …]
H A Dr8a66597-udc.c363 r8a66597_write(r8a66597, info->maxpacket, PIPEMAXP); in pipe_buffer_setting()
428 ep->ep.maxpacket = usb_endpoint_maxp(desc); in r8a66597_ep_setting()
510 info.maxpacket = usb_endpoint_maxp(desc); in alloc_pipe_config()
750 DIV_ROUND_UP(req->req.length, ep->ep.maxpacket), in start_packet_read()
969 if ((size == 0) || ((size % ep->ep.maxpacket) != 0)) in irq_ep0_write()
978 || (size % ep->ep.maxpacket) in irq_ep0_write()
1018 || ((size % ep->ep.maxpacket) != 0) in irq_packet_write()
1019 || ((bufsize != ep->ep.maxpacket) in irq_packet_write()
1028 || (size % ep->ep.maxpacket) in irq_packet_write()
1075 || (size % ep->ep.maxpacket) in irq_packet_read()
[all …]
/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 WRITE_ONCE(stats->maxpacket, skb_len); in codel_should_drop()
H A Dcodel.h152 u32 maxpacket; member
/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 Dsl811-hcd.c213 len = ep->maxpacket; in in_packet()
252 len = min_t(u32, ep->maxpacket, in out_packet()
358 fclock -= ep->maxpacket << 8; in start()
518 else if (ep->length < ep->maxpacket in done()
528 len = ep->maxpacket - sl811_read(sl811, in done()
539 (len < ep->maxpacket || in done()
848 ep->maxpacket = usb_maxpacket(udev, urb->pipe); in sl811h_urb_enqueue()
859 if (ep->maxpacket > H_MAXPACKET) { in sl811h_urb_enqueue()
863 epnum, ep->maxpacket); in sl811h_urb_enqueue()
1452 ep->maxpacket, in sl811h_debug_show()
[all …]
H A Dr8a66597.h36 u16 maxpacket; member
65 u16 maxpacket; member
/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()
/linux/net/sched/
H A Dsch_codel.c262 .maxpacket = READ_ONCE(q->stats.maxpacket),

1234