Home
last modified time | relevance | path

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

/linux-4.1.27/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.c635 int i, pipe, maxp; in ati_remote2_urb_init() local
647 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote2_urb_init()
648 maxp = maxp > 4 ? 4 : maxp; in ati_remote2_urb_init()
650 usb_fill_int_urb(ar2->urb[i], udev, pipe, ar2->buf[i], maxp, in ati_remote2_urb_init()
/linux-4.1.27/drivers/media/rc/
Dati_remote.c778 int pipe, maxp; in ati_remote_initialize() local
784 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
785 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
788 maxp, ati_remote_irq_in, ati_remote, in ati_remote_initialize()
795 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
796 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
799 maxp, ati_remote_irq_out, ati_remote, in ati_remote_initialize()
Dstreamzap.c344 int pipe, maxp; in streamzap_probe() local
380 maxp = usb_maxpacket(usbdev, pipe, usb_pipeout(pipe)); in streamzap_probe()
382 if (maxp == 0) { in streamzap_probe()
390 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe()
399 sz->buf_in_len = maxp; in streamzap_probe()
433 maxp, (usb_complete_t)streamzap_callback, in streamzap_probe()
451 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe()
Dmceusb.c1277 int pipe, maxp, i; in mceusb_dev_probe() local
1333 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in mceusb_dev_probe()
1339 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in); in mceusb_dev_probe()
1349 ir->len_in = maxp; in mceusb_dev_probe()
1373 usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe()
1380 mce_flush_rx_buffer(ir, maxp); in mceusb_dev_probe()
1417 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
/linux-4.1.27/drivers/usb/storage/
Donetouch.c183 int pipe, maxp; in onetouch_connect_input() local
196 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input()
197 maxp = min(maxp, ONETOUCH_PKT_LEN); in onetouch_connect_input()
248 usb_fill_int_urb(onetouch->irq, udev, pipe, onetouch->data, maxp, in onetouch_connect_input()
Dtransport.c367 unsigned int maxp; in usb_stor_intr_transfer() local
372 maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); in usb_stor_intr_transfer()
373 if (maxp > length) in usb_stor_intr_transfer()
374 maxp = length; in usb_stor_intr_transfer()
378 maxp, usb_stor_blocking_completion, NULL, in usb_stor_intr_transfer()
/linux-4.1.27/drivers/hid/usbhid/
Dusbmouse.c126 int pipe, maxp; in usb_mouse_probe() local
139 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_mouse_probe()
194 (maxp > 8 ? 8 : maxp), in usb_mouse_probe()
Dusbkbd.c282 int i, pipe, maxp; in usb_kbd_probe() local
295 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_kbd_probe()
349 kbd->new, (maxp > 8 ? 8 : maxp), in usb_kbd_probe()
/linux-4.1.27/drivers/input/tablet/
Dacecad.c142 int pipe, maxp; in usb_acecad_probe() local
154 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_acecad_probe()
231 acecad->data, maxp > 8 ? 8 : maxp, in usb_acecad_probe()
/linux-4.1.27/drivers/usb/renesas_usbhs/
Dpipe.c376 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_pipe_set_trans_count_if_bulk() local
378 usbhsp_pipe_trn_set(pipe, 0xffff, DIV_ROUND_UP(len, maxp)); in usbhs_pipe_set_trans_count_if_bulk()
550 u16 epnum, u16 maxp) in usbhs_pipe_config_update() argument
563 pipe->maxp = maxp; in usbhs_pipe_config_update()
568 maxp); in usbhs_pipe_config_update()
584 return pipe->maxp; in usbhs_pipe_get_maxpacket()
Dpipe.h33 int maxp; member
99 u16 epnum, u16 maxp);
Dfifo.c507 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local
534 len = min(len, maxp); in usbhsf_pio_try_push()
536 is_short = total_len < maxp; in usbhsf_pio_try_push()
650 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local
678 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop()
1106 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done_with_rx_irq() local
1115 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq()
1133 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_dma_calc_received_size() local
1140 received_size &= ~(maxp - 1); in usbhs_dma_calc_received_size()
Dmod_host.c217 int maxp = usb_endpoint_maxp(&urb->ep->desc); in usbhsh_endpoint_sequence_save() local
241 t = len / maxp; in usbhsh_endpoint_sequence_save()
242 if (len % maxp) in usbhsh_endpoint_sequence_save()
/linux-4.1.27/drivers/usb/host/
Dehci-q.c766 int maxp = 0; in qh_make() local
781 maxp = usb_maxpacket (urb->dev, urb->pipe, !is_input); in qh_make()
786 if (max_packet(maxp) > 1024) { in qh_make()
787 ehci_dbg(ehci, "bogus qh maxpacket %d\n", max_packet(maxp)); in qh_make()
804 hb_mult(maxp) * max_packet(maxp))); in qh_make()
834 is_input, 0, maxp) / (125 * 1000); in qh_make()
848 is_input, 0, max_packet (maxp))); in qh_make()
882 info1 |= maxp << 16; in qh_make()
919 info1 |= max_packet(maxp) << 16; in qh_make()
922 info1 |= max_packet (maxp) << 16; in qh_make()
[all …]
Dehci-sched.c1050 unsigned epnum, maxp; in iso_stream_init() local
1060 maxp = usb_endpoint_maxp(&urb->ep->desc); in iso_stream_init()
1069 unsigned multi = hb_mult(maxp); in iso_stream_init()
1073 maxp = max_packet(maxp); in iso_stream_init()
1074 buf1 |= maxp; in iso_stream_init()
1075 maxp *= multi; in iso_stream_init()
1084 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1110 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1113 dev->speed, is_input, 1, maxp)); in iso_stream_init()
1114 hs_transfers = max (1u, (maxp + 187) / 188); in iso_stream_init()
[all …]
Dfusbh200-hcd.c2791 int maxp = 0; in qh_make() local
2806 maxp = usb_maxpacket (urb->dev, urb->pipe, !is_input); in qh_make()
2811 if (max_packet(maxp) > 1024) { in qh_make()
2812 fusbh200_dbg(fusbh200, "bogus qh maxpacket %d\n", max_packet(maxp)); in qh_make()
2827 hb_mult(maxp) * max_packet(maxp))); in qh_make()
2850 is_input, 0, maxp) / (125 * 1000); in qh_make()
2864 is_input, 0, max_packet (maxp))); in qh_make()
2890 info1 |= maxp << 16; in qh_make()
2927 info1 |= max_packet(maxp) << 16; in qh_make()
2930 info1 |= max_packet (maxp) << 16; in qh_make()
[all …]
Dfotg210-hcd.c2843 int maxp = 0; in qh_make() local
2858 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make()
2863 if (max_packet(maxp) > 1024) { in qh_make()
2865 max_packet(maxp)); in qh_make()
2880 hb_mult(maxp) * max_packet(maxp))); in qh_make()
2903 is_input, 0, maxp) / (125 * 1000); in qh_make()
2917 is_input, 0, max_packet(maxp))); in qh_make()
2943 info1 |= maxp << 16; in qh_make()
2980 info1 |= max_packet(maxp) << 16; in qh_make()
2983 info1 |= max_packet(maxp) << 16; in qh_make()
[all …]
Doxu210hp-hcd.c1366 int maxp = 0; in qh_make() local
1379 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make()
1392 hb_mult(maxp) * max_packet(maxp))); in qh_make()
1415 is_input, 0, maxp) / (125 * 1000); in qh_make()
1429 is_input, 0, max_packet(maxp))); in qh_make()
1451 info1 |= maxp << 16; in qh_make()
1472 info1 |= max_packet(maxp) << 16; in qh_make()
1473 info2 |= hb_mult(maxp) << 30; in qh_make()
Dfotg210.h512 u16 maxp; member
Dfusbh200.h502 u16 maxp; member
Dehci.h488 u16 maxp; member
Dxhci-ring.c3027 u32 maxp, total_packet_count; in xhci_td_remainder() local
3032 maxp = GET_MAX_PACKET(usb_endpoint_maxp(&urb->ep->desc)); in xhci_td_remainder()
3033 total_packet_count = DIV_ROUND_UP(td_total_len, maxp); in xhci_td_remainder()
3041 return (total_packet_count - ((transferred + trb_buff_len) / maxp)); in xhci_td_remainder()
/linux-4.1.27/drivers/usb/dwc2/
Dhcd_queue.c78 qh->maxp = dwc2_hcd_get_mps(&urb->pipe_info); in dwc2_qh_init()
103 dwc2_hb_mult(qh->maxp) * dwc2_max_packet(qh->maxp); in dwc2_qh_init()
445 max_xfer_size = dwc2_max_packet(qh->maxp) * dwc2_hb_mult(qh->maxp); in dwc2_check_max_xfer_size()
Dhcd.h266 u16 maxp; member
Dhcd.c802 chan->max_packet = dwc2_max_packet(qh->maxp); in dwc2_assign_and_init_hc()
880 chan->multi_count = dwc2_hb_mult(qh->maxp); in dwc2_assign_and_init_hc()
/linux-4.1.27/drivers/net/ethernet/renesas/
Dsh_eth.h541 u32 *maxp; in sh_eth_soft_swap() local
542 maxp = p + ((len + sizeof(u32) - 1) / sizeof(u32)); in sh_eth_soft_swap()
544 for (; p < maxp; p++) in sh_eth_soft_swap()
/linux-4.1.27/drivers/usb/misc/
Dlvstest.c369 int ret, maxp; in lvs_rh_probe() local
421 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in lvs_rh_probe()
422 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
Dusbtest.c1871 unsigned i, maxp, packets; in iso_alloc_urb() local
1875 maxp = 0x7ff & usb_endpoint_maxp(desc); in iso_alloc_urb()
1876 maxp *= 1 + (0x3 & (usb_endpoint_maxp(desc) >> 11)); in iso_alloc_urb()
1877 packets = DIV_ROUND_UP(bytes, maxp); in iso_alloc_urb()
1907 urb->iso_frame_desc[i].length = min((unsigned) bytes, maxp); in iso_alloc_urb()
1910 urb->iso_frame_desc[i].offset = maxp * i; in iso_alloc_urb()
/linux-4.1.27/drivers/usb/gadget/udc/
Domap_udc.c152 u16 maxp; in omap_ep_enable() local
162 maxp = usb_endpoint_maxp(desc); in omap_ep_enable()
164 && maxp != ep->maxpacket) in omap_ep_enable()
205 ep->ep.maxpacket = maxp; in omap_ep_enable()
2481 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2496 switch (maxp) { in omap_ep_setup()
2531 switch (maxp) { in omap_ep_setup()
2559 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2567 buf += maxp; in omap_ep_setup()
2569 buf += maxp; in omap_ep_setup()
[all …]
Dfotg210.h231 unsigned int maxp; member
/linux-4.1.27/drivers/usb/core/
Dconfig.c266 unsigned maxp; in usb_parse_endpoint() local
268 maxp = usb_endpoint_maxp(&endpoint->desc) & 0x07ff; in usb_parse_endpoint()
269 if (maxp != 512) in usb_parse_endpoint()
273 maxp); in usb_parse_endpoint()
Dhub.c1361 int maxp, ret, i; in hub_configure() local
1598 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in hub_configure()
1600 if (maxp > sizeof(*hub->buffer)) in hub_configure()
1601 maxp = sizeof(*hub->buffer); in hub_configure()
1609 usb_fill_int_urb(hub->urb, hdev, pipe, *hub->buffer, maxp, hub_irq, in hub_configure()
/linux-4.1.27/drivers/watchdog/
Dpcwd_usb.c611 int pipe, maxp; in usb_pcwd_probe() local
644 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in usb_pcwd_probe()
/linux-4.1.27/drivers/usb/dwc3/
Dep0.c815 unsigned maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data() local
817 transfer_size += (maxp - (transfer_size % maxp)); in dwc3_ep0_complete_data()
/linux-4.1.27/drivers/net/usb/
Dusbnet.c216 unsigned maxp; in init_status() local
225 maxp = usb_maxpacket (dev->udev, pipe, 0); in init_status()
231 buf = kmalloc (maxp, GFP_KERNEL); in init_status()
239 buf, maxp, intr_complete, dev, period); in init_status()
243 usb_pipeendpoint(pipe), maxp, period); in init_status()
/linux-4.1.27/drivers/usb/gadget/udc/bdc/
Dbdc_ep.c432 u32 maxp, tfs, dword2, dword3; in setup_bd_list_xfr() local
447 maxp = usb_endpoint_maxp(ep->desc) & 0x7ff; in setup_bd_list_xfr()
448 tfs = roundup(req->usb_req.length, maxp); in setup_bd_list_xfr()
449 tfs = tfs/maxp; in setup_bd_list_xfr()