/Linux-v5.4/drivers/media/rc/ |
D | xbox_remote.c | 170 int pipe, maxp; in xbox_remote_initialize() local 174 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in xbox_remote_initialize() 175 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in xbox_remote_initialize() 178 maxp, xbox_remote_irq_in, xbox_remote, in xbox_remote_initialize()
|
D | ati_remote.c | 770 int pipe, maxp; in ati_remote_initialize() local 776 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize() 777 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize() 780 maxp, ati_remote_irq_in, ati_remote, in ati_remote_initialize() 787 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize() 788 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize() 791 maxp, ati_remote_irq_out, ati_remote, in ati_remote_initialize()
|
D | streamzap.c | 330 int pipe, maxp; in streamzap_probe() local 366 maxp = usb_maxpacket(usbdev, pipe, usb_pipeout(pipe)); in streamzap_probe() 368 if (maxp == 0) { in streamzap_probe() 376 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe() 385 sz->buf_in_len = maxp; in streamzap_probe() 419 maxp, (usb_complete_t)streamzap_callback, in streamzap_probe() 437 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe()
|
D | mceusb.c | 1611 int pipe, maxp, i, res; in mceusb_dev_probe() local 1667 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in mceusb_dev_probe() 1674 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in); in mceusb_dev_probe() 1685 ir->len_in = maxp; in mceusb_dev_probe() 1723 usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe() 1726 usb_fill_bulk_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe() 1775 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
|
/Linux-v5.4/drivers/input/misc/ |
D | powermate.c | 307 int pipe, maxp; in powermate_probe() local 377 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in powermate_probe() 379 if (maxp < POWERMATE_PAYLOAD_SIZE_MIN || maxp > POWERMATE_PAYLOAD_SIZE_MAX) { in powermate_probe() 381 POWERMATE_PAYLOAD_SIZE_MIN, POWERMATE_PAYLOAD_SIZE_MAX, maxp); in powermate_probe() 382 maxp = POWERMATE_PAYLOAD_SIZE_MAX; in powermate_probe() 386 maxp, powermate_irq, in powermate_probe()
|
D | ati_remote2.c | 630 int i, pipe, maxp; in ati_remote2_urb_init() local 642 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote2_urb_init() 643 maxp = maxp > 4 ? 4 : maxp; in ati_remote2_urb_init() 645 usb_fill_int_urb(ar2->urb[i], udev, pipe, ar2->buf[i], maxp, in ati_remote2_urb_init()
|
/Linux-v5.4/drivers/usb/storage/ |
D | onetouch.c | 170 int pipe, maxp; in onetouch_connect_input() local 183 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input() 184 maxp = min(maxp, ONETOUCH_PKT_LEN); in onetouch_connect_input() 235 usb_fill_int_urb(onetouch->irq, udev, pipe, onetouch->data, maxp, in onetouch_connect_input()
|
D | transport.c | 361 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-v5.4/drivers/usb/usbip/ |
D | vudc_rx.c | 125 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()
|
D | vudc_dev.c | 234 unsigned int maxp; in vep_enable() local 249 maxp = usb_endpoint_maxp(desc); in vep_enable() 250 _ep->maxpacket = maxp; in vep_enable()
|
/Linux-v5.4/drivers/hid/usbhid/ |
D | usbmouse.c | 113 int pipe, maxp; in usb_mouse_probe() local 126 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_mouse_probe() 181 (maxp > 8 ? 8 : maxp), in usb_mouse_probe()
|
D | usbkbd.c | 269 int i, pipe, maxp; in usb_kbd_probe() local 282 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_kbd_probe() 336 kbd->new, (maxp > 8 ? 8 : maxp), in usb_kbd_probe()
|
/Linux-v5.4/drivers/usb/core/ |
D | config.c | 214 unsigned int maxp; in usb_parse_endpoint() local 350 maxp = usb_endpoint_maxp(&endpoint->desc); in usb_parse_endpoint() 351 if (maxp == 0) { in usb_parse_endpoint() 369 i = maxp & (BIT(12) | BIT(11)); in usb_parse_endpoint() 370 maxp &= ~i; in usb_parse_endpoint() 383 if (maxp > j) { in usb_parse_endpoint() 385 cfgno, inum, asnum, d->bEndpointAddress, maxp, j); in usb_parse_endpoint() 386 maxp = j; in usb_parse_endpoint() 387 endpoint->desc.wMaxPacketSize = cpu_to_le16(i | maxp); in usb_parse_endpoint() 397 if (maxp != 512) in usb_parse_endpoint() [all …]
|
/Linux-v5.4/drivers/input/tablet/ |
D | acecad.c | 121 int pipe, maxp; in usb_acecad_probe() local 133 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_acecad_probe() 209 acecad->data, maxp > 8 ? 8 : maxp, in usb_acecad_probe()
|
/Linux-v5.4/drivers/usb/renesas_usbhs/ |
D | pipe.c | 389 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_pipe_set_trans_count_if_bulk() local 391 usbhsp_pipe_trn_set(pipe, 0xffff, DIV_ROUND_UP(len, maxp)); in usbhs_pipe_set_trans_count_if_bulk() 503 u16 epnum, u16 maxp) in usbhs_pipe_config_update() argument 521 pipe->maxp = maxp; in usbhs_pipe_config_update() 526 maxp); in usbhs_pipe_config_update() 542 return pipe->maxp; in usbhs_pipe_get_maxpacket()
|
D | pipe.h | 24 int maxp; member 94 u16 epnum, u16 maxp);
|
D | fifo.c | 500 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local 527 len = min(len, maxp); in usbhsf_pio_try_push() 529 is_short = total_len < maxp; in usbhsf_pio_try_push() 648 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local 676 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop() 1130 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done_with_rx_irq() local 1139 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq() 1157 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_dma_calc_received_size() local 1164 received_size &= ~(maxp - 1); in usbhs_dma_calc_received_size()
|
/Linux-v5.4/drivers/usb/mtu3/ |
D | mtu3_gadget_ep0.c | 506 u32 maxp; in ep0_rx_state() local 531 maxp = mtu->g.ep0->maxpacket; in ep0_rx_state() 532 if (count < maxp || req->actual == req->length) { in ep0_rx_state() 562 u32 maxp; in ep0_tx_state() local 569 maxp = mtu->g.ep0->maxpacket; in ep0_tx_state() 574 count = min(maxp, req->length - req->actual); in ep0_tx_state() 579 __func__, req->actual, req->length, count, maxp, req->zero); in ep0_tx_state() 583 if ((count < maxp) in ep0_tx_state()
|
D | mtu3_trace.h | 223 __field(unsigned int, maxp) 234 __entry->maxp = mep->ep.maxpacket; 243 __entry->maxp, __entry->slot,
|
/Linux-v5.4/drivers/usb/host/ |
D | ehci-q.c | 758 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()
|
D | fotg210-hcd.c | 2720 int maxp = 0; in qh_make() local 2735 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make() 2740 if (max_packet(maxp) > 1024) { in qh_make() 2742 max_packet(maxp)); in qh_make() 2757 hb_mult(maxp) * max_packet(maxp))); in qh_make() 2780 is_input, 0, maxp) / (125 * 1000); in qh_make() 2794 is_input, 0, max_packet(maxp))); in qh_make() 2820 info1 |= maxp << 16; in qh_make() 2857 info1 |= max_packet(maxp) << 16; in qh_make() 2860 info1 |= max_packet(maxp) << 16; in qh_make() [all …]
|
/Linux-v5.4/drivers/usb/dwc2/ |
D | hcd.h | 174 u16 maxp; member 344 u16 maxp; member 511 return pipe->maxp; in dwc2_hcd_get_maxp()
|
D | hcd_queue.c | 711 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split() 1335 max_xfer_size = qh->maxp * qh->maxp_mult; in dwc2_check_max_xfer_size() 1520 int maxp = dwc2_hcd_get_maxp(&urb->pipe_info); in dwc2_qh_init() local 1522 int bytecount = maxp_mult * maxp; in dwc2_qh_init() 1534 qh->maxp = maxp; in dwc2_qh_init()
|
/Linux-v5.4/drivers/usb/gadget/udc/ |
D | omap_udc.c | 148 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() 2465 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument 2480 switch (maxp) { in omap_ep_setup() 2515 switch (maxp) { in omap_ep_setup() 2541 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup() 2549 buf += maxp; in omap_ep_setup() 2551 buf += maxp; in omap_ep_setup() [all …]
|
/Linux-v5.4/drivers/usb/misc/ |
D | lvstest.c | 400 int ret, maxp; in lvs_rh_probe() local 440 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in lvs_rh_probe() 441 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
|