| /linux/drivers/media/rc/ |
| H A D | xbox_remote.c | 170 int pipe, maxp; in xbox_remote_initialize() local 174 maxp = usb_maxpacket(udev, 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()
|
| /linux/drivers/input/misc/ |
| H A D | powermate.c | 300 int pipe, maxp; in powermate_probe() local 370 maxp = usb_maxpacket(udev, pipe); in powermate_probe() 372 if (maxp < POWERMATE_PAYLOAD_SIZE_MIN || maxp > POWERMATE_PAYLOAD_SIZE_MAX) { in powermate_probe() 374 POWERMATE_PAYLOAD_SIZE_MIN, POWERMATE_PAYLOAD_SIZE_MAX, maxp); in powermate_probe() 375 maxp = POWERMATE_PAYLOAD_SIZE_MAX; in powermate_probe() 379 maxp, powermate_irq, in powermate_probe()
|
| H A D | ati_remote2.c | 601 int i, pipe, maxp; in ati_remote2_urb_init() local 613 maxp = usb_maxpacket(udev, pipe); in ati_remote2_urb_init() 614 maxp = maxp > 4 ? 4 : maxp; in ati_remote2_urb_init() 616 usb_fill_int_urb(ar2->urb[i], udev, pipe, ar2->buf[i], maxp, in ati_remote2_urb_init()
|
| /linux/drivers/usb/storage/ |
| H A D | onetouch.c | 170 int pipe, maxp; in onetouch_connect_input() local 183 maxp = usb_maxpacket(udev, 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()
|
| H A D | transport.c | 361 unsigned int maxp; in usb_stor_intr_transfer() local 366 maxp = usb_maxpacket(us->pusb_dev, 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/drivers/hid/usbhid/ |
| H A D | usbmouse.c | 113 int pipe, maxp; in usb_mouse_probe() local 126 maxp = usb_maxpacket(dev, pipe); in usb_mouse_probe() 181 (maxp > 8 ? 8 : maxp), in usb_mouse_probe()
|
| /linux/drivers/usb/usbip/ |
| H A 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()
|
| H A 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/drivers/input/tablet/ |
| H A D | acecad.c | 118 int pipe, maxp; in usb_acecad_probe() local 130 maxp = usb_maxpacket(dev, pipe); in usb_acecad_probe() 206 acecad->data, maxp > 8 ? 8 : maxp, in usb_acecad_probe()
|
| /linux/drivers/usb/renesas_usbhs/ |
| H A 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()
|
| H A D | pipe.h | 24 int maxp; member 94 u16 epnum, u16 maxp);
|
| H A D | fifo.c | 510 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local 537 len = min(len, maxp); in usbhsf_pio_try_push() 539 is_short = total_len < maxp; in usbhsf_pio_try_push() 658 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local 686 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop() 1142 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done_with_rx_irq() local 1151 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq() 1168 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_dma_calc_received_size() local 1174 received_size &= ~(maxp - 1); in usbhs_dma_calc_received_size()
|
| /linux/drivers/usb/mtu3/ |
| H A D | mtu3_gadget_ep0.c | 514 u32 maxp; in ep0_rx_state() local 539 maxp = mtu->g.ep0->maxpacket; in ep0_rx_state() 540 if (count < maxp || req->actual == req->length) { in ep0_rx_state() 570 u32 maxp; in ep0_tx_state() local 577 maxp = mtu->g.ep0->maxpacket; in ep0_tx_state() 582 count = min(maxp, req->length - req->actual); in ep0_tx_state() 587 __func__, req->actual, req->length, count, maxp, req->zero); in ep0_tx_state() 591 if ((count < maxp) in ep0_tx_state()
|
| H A D | mtu3_core.c | 414 fifo_addr = ep_fifo_alloc(mep, mep->maxp); in mtu3_config_ep() 416 dev_err(mtu->dev, "alloc ep fifo failed(%d)\n", mep->maxp); in mtu3_config_ep() 424 csr0 = TX_TXMAXPKTSZ(mep->maxp); in mtu3_config_ep() 460 csr0 = RX_RXMAXPKTSZ(mep->maxp); in mtu3_config_ep()
|
| H A D | mtu3.h | 289 u16 maxp; member
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | omap_udc.c | 150 u16 maxp; in omap_ep_enable() local 160 maxp = usb_endpoint_maxp(desc); in omap_ep_enable() 162 && maxp != ep->maxpacket) in omap_ep_enable() 203 ep->ep.maxpacket = maxp; in omap_ep_enable() 2462 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument 2477 switch (maxp) { in omap_ep_setup() 2512 switch (maxp) { in omap_ep_setup() 2538 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup() 2546 buf += maxp; in omap_ep_setup() 2548 buf += maxp; in omap_ep_setup() [all …]
|
| /linux/drivers/usb/dwc2/ |
| H A D | hcd.h | 145 u16 maxp; member 315 u16 maxp; member 482 return pipe->maxp; in dwc2_hcd_get_maxp()
|
| H A D | hcd_queue.c | 645 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split() 1269 max_xfer_size = qh->maxp * qh->maxp_mult; in dwc2_check_max_xfer_size() 1454 int maxp = dwc2_hcd_get_maxp(&urb->pipe_info); in dwc2_qh_init() local 1456 int bytecount = maxp_mult * maxp; in dwc2_qh_init() 1467 qh->maxp = maxp; in dwc2_qh_init()
|
| /linux/drivers/usb/cdns3/ |
| H A D | cdnsp-debug.h | 545 u16 maxp, avg; in cdnsp_decode_ep_context() local 562 maxp = MAX_PACKET_DECODED(info2); in cdnsp_decode_ep_context() 577 burst, maxp, deq); in cdnsp_decode_ep_context()
|
| H A D | cdnsp-ring.c | 1779 u32 maxp, total_packet_count; in cdnsp_td_remainder() local 1790 maxp = usb_endpoint_maxp(preq->pep->endpoint.desc); in cdnsp_td_remainder() 1791 total_packet_count = DIV_ROUND_UP(td_total_len, maxp); in cdnsp_td_remainder() 1794 return (total_packet_count - ((transferred + trb_buff_len) / maxp)); in cdnsp_td_remainder() 2051 u32 maxp; in cdnsp_queue_ctrl_tx() local 2061 maxp = usb_endpoint_maxp(pep->endpoint.desc); in cdnsp_queue_ctrl_tx() 2064 (preq->request.length % maxp == 0)) { in cdnsp_queue_ctrl_tx()
|
| /linux/drivers/usb/misc/ |
| H A D | lvstest.c | 400 int ret, maxp; in lvs_rh_probe() local 440 maxp = usb_maxpacket(hdev, pipe); in lvs_rh_probe() 441 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
|
| H A D | usbtest.c | 1789 unsigned maxp = get_maxpacket(udev, dev->out_pipe); in toggle_sync_simple() local 1796 urb = simple_alloc_urb(udev, 0, 2 * maxp, 0); in toggle_sync_simple() 1983 unsigned i, maxp, packets; in iso_alloc_urb() local 1988 maxp = usb_endpoint_maxp(desc); in iso_alloc_urb() 1990 maxp *= ss_isoc_get_packet_num(udev, pipe); in iso_alloc_urb() 1992 maxp *= usb_endpoint_maxp_mult(desc); in iso_alloc_urb() 1994 packets = DIV_ROUND_UP(bytes, maxp); in iso_alloc_urb() 2025 bytes, maxp); in iso_alloc_urb() 2028 urb->iso_frame_desc[i].offset = maxp * i; in iso_alloc_urb()
|
| /linux/drivers/usb/host/ |
| H A D | ehci-sched.c | 1027 unsigned epnum, maxp; in iso_stream_init() local 1037 maxp = usb_endpoint_maxp(&urb->ep->desc); in iso_stream_init() 1046 buf1 |= maxp; in iso_stream_init() 1047 maxp *= multi; in iso_stream_init() 1056 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init() 1082 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init() 1085 dev->speed, is_input, 1, maxp)); in iso_stream_init() 1086 hs_transfers = max(1u, (maxp + 187) / 188); in iso_stream_init() 1122 stream->maxp = maxp; in iso_stream_init()
|
| H A D | oxu210hp-hcd.c | 1762 int maxp = 0; in qh_make() local 1775 maxp = usb_maxpacket(urb->dev, urb->pipe); in qh_make() 1788 hb_mult(maxp) * max_packet(maxp))); in qh_make() 1811 is_input, 0, maxp) / (125 * 1000); in qh_make() 1825 is_input, 0, max_packet(maxp))); in qh_make() 1847 info1 |= maxp << 16; in qh_make() 1868 info1 |= max_packet(maxp) << 16; in qh_make() 1869 info2 |= hb_mult(maxp) << 30; in qh_make()
|
| /linux/drivers/usb/fotg210/ |
| H A D | fotg210-udc.h | 229 unsigned int maxp; member
|