Home
last modified time | relevance | path

Searched refs:maxp (Results 1 – 25 of 45) sorted by relevance

12

/Linux-v4.19/drivers/input/misc/
Dpowermate.c306 int pipe, maxp; in powermate_probe() local
376 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in powermate_probe()
378 if (maxp < POWERMATE_PAYLOAD_SIZE_MIN || maxp > POWERMATE_PAYLOAD_SIZE_MAX) { in powermate_probe()
380 POWERMATE_PAYLOAD_SIZE_MIN, POWERMATE_PAYLOAD_SIZE_MAX, maxp); in powermate_probe()
381 maxp = POWERMATE_PAYLOAD_SIZE_MAX; in powermate_probe()
385 maxp, powermate_irq, in powermate_probe()
Dati_remote2.c633 int i, pipe, maxp; in ati_remote2_urb_init() local
645 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote2_urb_init()
646 maxp = maxp > 4 ? 4 : maxp; in ati_remote2_urb_init()
648 usb_fill_int_urb(ar2->urb[i], udev, pipe, ar2->buf[i], maxp, in ati_remote2_urb_init()
/Linux-v4.19/drivers/media/rc/
Dati_remote.c780 int pipe, maxp; in ati_remote_initialize() local
786 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
787 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
790 maxp, ati_remote_irq_in, ati_remote, in ati_remote_initialize()
797 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
798 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
801 maxp, ati_remote_irq_out, ati_remote, in ati_remote_initialize()
Dstreamzap.c339 int pipe, maxp; in streamzap_probe() local
375 maxp = usb_maxpacket(usbdev, pipe, usb_pipeout(pipe)); in streamzap_probe()
377 if (maxp == 0) { in streamzap_probe()
385 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe()
394 sz->buf_in_len = maxp; in streamzap_probe()
428 maxp, (usb_complete_t)streamzap_callback, in streamzap_probe()
446 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe()
Dmceusb.c1514 int pipe, maxp, i, res; in mceusb_dev_probe() local
1570 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in mceusb_dev_probe()
1577 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in); in mceusb_dev_probe()
1587 ir->len_in = maxp; in mceusb_dev_probe()
1625 usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe()
1628 usb_fill_bulk_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe()
1677 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
/Linux-v4.19/drivers/usb/storage/
Donetouch.c169 int pipe, maxp; in onetouch_connect_input() local
182 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input()
183 maxp = min(maxp, ONETOUCH_PKT_LEN); in onetouch_connect_input()
234 usb_fill_int_urb(onetouch->irq, udev, pipe, onetouch->data, maxp, in onetouch_connect_input()
Dtransport.c361 unsigned int maxp; in usb_stor_intr_transfer() local
366 maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); in usb_stor_intr_transfer()
367 if (maxp > length) in usb_stor_intr_transfer()
368 maxp = length; in usb_stor_intr_transfer()
372 maxp, usb_stor_blocking_completion, NULL, in usb_stor_intr_transfer()
/Linux-v4.19/drivers/usb/usbip/
Dvudc_rx.c125 unsigned int maxp, packets, bytes; in v_recv_cmd_submit() local
127 maxp = usb_endpoint_maxp(urb_p->ep->desc); in v_recv_cmd_submit()
128 maxp *= usb_endpoint_maxp_mult(urb_p->ep->desc); in v_recv_cmd_submit()
130 packets = DIV_ROUND_UP(bytes, maxp); in v_recv_cmd_submit()
Dstub_rx.c365 unsigned int maxp, packets, bytes; in get_pipe() local
367 maxp = usb_endpoint_maxp(epd); in get_pipe()
368 maxp *= usb_endpoint_maxp_mult(epd); in get_pipe()
370 packets = DIV_ROUND_UP(bytes, maxp); in get_pipe()
Dvudc_dev.c234 unsigned int maxp; in vep_enable() local
249 maxp = usb_endpoint_maxp(desc); in vep_enable()
250 _ep->maxpacket = maxp; in vep_enable()
/Linux-v4.19/drivers/hid/usbhid/
Dusbmouse.c125 int pipe, maxp; in usb_mouse_probe() local
138 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_mouse_probe()
193 (maxp > 8 ? 8 : maxp), in usb_mouse_probe()
Dusbkbd.c281 int i, pipe, maxp; in usb_kbd_probe() local
294 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_kbd_probe()
348 kbd->new, (maxp > 8 ? 8 : maxp), in usb_kbd_probe()
/Linux-v4.19/drivers/input/tablet/
Dacecad.c134 int pipe, maxp; in usb_acecad_probe() local
146 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_acecad_probe()
222 acecad->data, maxp > 8 ? 8 : maxp, in usb_acecad_probe()
/Linux-v4.19/drivers/usb/renesas_usbhs/
Dpipe.c374 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_pipe_set_trans_count_if_bulk() local
376 usbhsp_pipe_trn_set(pipe, 0xffff, DIV_ROUND_UP(len, maxp)); in usbhs_pipe_set_trans_count_if_bulk()
488 u16 epnum, u16 maxp) in usbhs_pipe_config_update() argument
506 pipe->maxp = maxp; in usbhs_pipe_config_update()
511 maxp); in usbhs_pipe_config_update()
527 return pipe->maxp; in usbhs_pipe_get_maxpacket()
Dpipe.h24 int maxp; member
93 u16 epnum, u16 maxp);
Dfifo.c503 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local
530 len = min(len, maxp); in usbhsf_pio_try_push()
532 is_short = total_len < maxp; in usbhsf_pio_try_push()
646 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local
674 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop()
1118 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done_with_rx_irq() local
1127 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq()
1145 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_dma_calc_received_size() local
1152 received_size &= ~(maxp - 1); in usbhs_dma_calc_received_size()
/Linux-v4.19/drivers/usb/core/
Dconfig.c214 unsigned int maxp; in usb_parse_endpoint() local
350 maxp = usb_endpoint_maxp(&endpoint->desc); in usb_parse_endpoint()
364 i = maxp & (BIT(12) | BIT(11)); in usb_parse_endpoint()
365 maxp &= ~i; in usb_parse_endpoint()
378 if (maxp > j) { in usb_parse_endpoint()
380 cfgno, inum, asnum, d->bEndpointAddress, maxp, j); in usb_parse_endpoint()
381 maxp = j; in usb_parse_endpoint()
382 endpoint->desc.wMaxPacketSize = cpu_to_le16(i | maxp); in usb_parse_endpoint()
392 if (maxp != 512) in usb_parse_endpoint()
396 maxp); in usb_parse_endpoint()
/Linux-v4.19/drivers/usb/mtu3/
Dmtu3_gadget_ep0.c504 u32 maxp; in ep0_rx_state() local
529 maxp = mtu->g.ep0->maxpacket; in ep0_rx_state()
530 if (count < maxp || req->actual == req->length) { in ep0_rx_state()
560 u32 maxp; in ep0_tx_state() local
567 maxp = mtu->g.ep0->maxpacket; in ep0_tx_state()
572 count = min(maxp, req->length - req->actual); in ep0_tx_state()
577 __func__, req->actual, req->length, count, maxp, req->zero); in ep0_tx_state()
581 if ((count < maxp) in ep0_tx_state()
/Linux-v4.19/drivers/usb/dwc2/
Dhcd_queue.c711 int bytecount = dwc2_hb_mult(qh->maxp) * dwc2_max_packet(qh->maxp); in dwc2_uframe_schedule_split()
1335 max_xfer_size = dwc2_max_packet(qh->maxp) * dwc2_hb_mult(qh->maxp); in dwc2_check_max_xfer_size()
1517 int maxp = dwc2_hcd_get_mps(&urb->pipe_info); in dwc2_qh_init() local
1518 int bytecount = dwc2_hb_mult(maxp) * dwc2_max_packet(maxp); in dwc2_qh_init()
1529 qh->maxp = maxp; in dwc2_qh_init()
/Linux-v4.19/drivers/usb/host/
Dehci-q.c758 int maxp = 0; in qh_make() local
775 maxp = usb_endpoint_maxp (&ep->desc); in qh_make()
781 if (maxp > 1024) { in qh_make()
782 ehci_dbg(ehci, "bogus qh maxpacket %d\n", maxp); in qh_make()
798 is_input, 0, mult * maxp)); in qh_make()
828 is_input, 0, maxp) / (125 * 1000); in qh_make()
842 is_input, 0, maxp)); in qh_make()
876 info1 |= maxp << 16; in qh_make()
913 info1 |= maxp << 16; in qh_make()
916 info1 |= maxp << 16; in qh_make()
Dfotg210-hcd.c2714 int maxp = 0; in qh_make() local
2729 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make()
2734 if (max_packet(maxp) > 1024) { in qh_make()
2736 max_packet(maxp)); in qh_make()
2751 hb_mult(maxp) * max_packet(maxp))); in qh_make()
2774 is_input, 0, maxp) / (125 * 1000); in qh_make()
2788 is_input, 0, max_packet(maxp))); in qh_make()
2814 info1 |= maxp << 16; in qh_make()
2851 info1 |= max_packet(maxp) << 16; in qh_make()
2854 info1 |= max_packet(maxp) << 16; in qh_make()
[all …]
Dehci-sched.c1040 unsigned epnum, maxp; in iso_stream_init() local
1050 maxp = usb_endpoint_maxp(&urb->ep->desc); in iso_stream_init()
1059 buf1 |= maxp; in iso_stream_init()
1060 maxp *= multi; in iso_stream_init()
1069 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1095 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1098 dev->speed, is_input, 1, maxp)); in iso_stream_init()
1099 hs_transfers = max(1u, (maxp + 187) / 188); in iso_stream_init()
1135 stream->maxp = maxp; in iso_stream_init()
/Linux-v4.19/drivers/usb/gadget/udc/
Domap_udc.c148 u16 maxp; in omap_ep_enable() local
158 maxp = usb_endpoint_maxp(desc); in omap_ep_enable()
160 && maxp != ep->maxpacket) in omap_ep_enable()
201 ep->ep.maxpacket = maxp; in omap_ep_enable()
2464 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2479 switch (maxp) { in omap_ep_setup()
2514 switch (maxp) { in omap_ep_setup()
2540 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2548 buf += maxp; in omap_ep_setup()
2550 buf += maxp; in omap_ep_setup()
[all …]
/Linux-v4.19/drivers/usb/misc/
Dlvstest.c403 int ret, maxp; in lvs_rh_probe() local
449 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in lvs_rh_probe()
450 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
/Linux-v4.19/drivers/usb/dwc3/
Dgadget.c953 unsigned int maxp = usb_endpoint_maxp(ep->desc); in __dwc3_prepare_one_trb() local
955 if (length <= (2 * maxp)) in __dwc3_prepare_one_trb()
958 if (length <= maxp) in __dwc3_prepare_one_trb()
1056 unsigned int maxp = usb_endpoint_maxp(dep->endpoint.desc); in dwc3_prepare_one_trb_sg() local
1057 unsigned int rem = length % maxp; in dwc3_prepare_one_trb_sg()
1075 maxp - rem, false, 0, in dwc3_prepare_one_trb_sg()
1104 unsigned int maxp = usb_endpoint_maxp(dep->endpoint.desc); in dwc3_prepare_one_trb_linear() local
1105 unsigned int rem = length % maxp; in dwc3_prepare_one_trb_linear()
1118 __dwc3_prepare_one_trb(dep, trb, dwc->bounce_addr, maxp - rem, in dwc3_prepare_one_trb_linear()
1123 (IS_ALIGNED(req->request.length, maxp))) { in dwc3_prepare_one_trb_linear()

12