Home
last modified time | relevance | path

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

12

/drivers/input/misc/
Dpowermate.c303 int pipe, maxp; in powermate_probe() local
369 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in powermate_probe()
371 if (maxp < POWERMATE_PAYLOAD_SIZE_MIN || maxp > POWERMATE_PAYLOAD_SIZE_MAX) { in powermate_probe()
373 POWERMATE_PAYLOAD_SIZE_MIN, POWERMATE_PAYLOAD_SIZE_MAX, maxp); in powermate_probe()
374 maxp = POWERMATE_PAYLOAD_SIZE_MAX; in powermate_probe()
378 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()
/drivers/media/rc/
Dati_remote.c724 int pipe, maxp; in ati_remote_initialize() local
730 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
731 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
734 maxp, ati_remote_irq_in, ati_remote, in ati_remote_initialize()
741 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize()
742 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
745 maxp, ati_remote_irq_out, ati_remote, in ati_remote_initialize()
Dstreamzap.c357 int pipe, maxp; in streamzap_probe() local
395 maxp = usb_maxpacket(usbdev, pipe, usb_pipeout(pipe)); in streamzap_probe()
397 if (maxp == 0) { in streamzap_probe()
405 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe()
414 sz->buf_in_len = maxp; in streamzap_probe()
448 maxp, (usb_complete_t)streamzap_callback, in streamzap_probe()
469 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe()
Dmceusb.c1251 int pipe, maxp, i; in mceusb_dev_probe() local
1312 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in mceusb_dev_probe()
1318 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in); in mceusb_dev_probe()
1328 ir->len_in = maxp; in mceusb_dev_probe()
1354 maxp, (usb_complete_t) mceusb_dev_recv, ir, ep_in->bInterval); in mceusb_dev_probe()
1360 mce_flush_rx_buffer(ir, maxp); in mceusb_dev_probe()
1397 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
/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.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()
/drivers/usb/host/
Dehci-q.c809 int maxp = 0; in qh_make() local
824 maxp = usb_maxpacket (urb->dev, urb->pipe, !is_input); in qh_make()
829 if (max_packet(maxp) > 1024) { in qh_make()
830 ehci_dbg(ehci, "bogus qh maxpacket %d\n", max_packet(maxp)); in qh_make()
845 hb_mult(maxp) * max_packet(maxp))); in qh_make()
869 is_input, 0, maxp) / (125 * 1000); in qh_make()
883 is_input, 0, max_packet (maxp))); in qh_make()
909 info1 |= maxp << 16; in qh_make()
946 info1 |= max_packet(maxp) << 16; in qh_make()
949 info1 |= max_packet (maxp) << 16; in qh_make()
[all …]
Dehci-sched.c980 unsigned epnum, maxp; in iso_stream_init() local
990 maxp = usb_maxpacket(dev, pipe, !is_input); in iso_stream_init()
999 unsigned multi = hb_mult(maxp); in iso_stream_init()
1003 maxp = max_packet(maxp); in iso_stream_init()
1004 buf1 |= maxp; in iso_stream_init()
1005 maxp *= multi; in iso_stream_init()
1014 stream->usecs = HS_USECS_ISO (maxp); in iso_stream_init()
1030 stream->usecs = HS_USECS_ISO (maxp); in iso_stream_init()
1033 dev->speed, is_input, 1, maxp)); in iso_stream_init()
1034 hs_transfers = max (1u, (maxp + 187) / 188); in iso_stream_init()
[all …]
Doxu210hp-hcd.c1363 int maxp = 0; in qh_make() local
1376 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make()
1389 hb_mult(maxp) * max_packet(maxp))); in qh_make()
1412 is_input, 0, maxp) / (125 * 1000); in qh_make()
1426 is_input, 0, max_packet(maxp))); in qh_make()
1448 info1 |= maxp << 16; in qh_make()
1469 info1 |= max_packet(maxp) << 16; in qh_make()
1470 info2 |= hb_mult(maxp) << 30; in qh_make()
/drivers/input/tablet/
Dacecad.c137 int pipe, maxp; in usb_acecad_probe() local
149 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_acecad_probe()
225 acecad->data, maxp > 8 ? 8 : maxp, in usb_acecad_probe()
/drivers/usb/storage/
Donetouch.c184 int pipe, maxp; in onetouch_connect_input() local
197 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input()
249 (maxp > 8 ? 8 : maxp), in onetouch_connect_input()
Dtransport.c368 unsigned int maxp; in usb_stor_intr_transfer() local
373 maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); in usb_stor_intr_transfer()
374 if (maxp > length) in usb_stor_intr_transfer()
375 maxp = length; in usb_stor_intr_transfer()
379 maxp, usb_stor_blocking_completion, NULL, in usb_stor_intr_transfer()
/drivers/usb/renesas_usbhs/
Dpipe.c433 u16 epnum, u16 maxp) in usbhs_pipe_config_update() argument
446 pipe->maxp = maxp; in usbhs_pipe_config_update()
451 maxp); in usbhs_pipe_config_update()
467 return pipe->maxp; in usbhs_pipe_get_maxpacket()
Dpipe.h33 int maxp; member
93 u16 epnum, u16 maxp);
Dfifo.c483 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local
508 len = min(len, maxp); in usbhsf_pio_try_push()
510 is_short = total_len < maxp; in usbhsf_pio_try_push()
612 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local
640 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop()
960 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done() local
969 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done()
Dmod_host.c216 int maxp = usb_endpoint_maxp(&urb->ep->desc); in usbhsh_endpoint_sequence_save() local
240 t = len / maxp; in usbhsh_endpoint_sequence_save()
241 if (len % maxp) in usbhsh_endpoint_sequence_save()
/drivers/staging/media/lirc/
Dlirc_igorplugusb.c390 int devnum, pipe, maxp; in igorplugusb_remote_probe() local
414 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in igorplugusb_remote_probe()
417 devnum, CODE_LENGTH, maxp); in igorplugusb_remote_probe()
/drivers/usb/gadget/
Domap_udc.c153 u16 maxp; in omap_ep_enable() local
163 maxp = usb_endpoint_maxp(desc); in omap_ep_enable()
165 && maxp != ep->maxpacket) in omap_ep_enable()
206 ep->ep.maxpacket = maxp; in omap_ep_enable()
2563 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2578 switch (maxp) { in omap_ep_setup()
2598 switch (maxp) { in omap_ep_setup()
2617 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2625 buf += maxp; in omap_ep_setup()
2627 buf += maxp; in omap_ep_setup()
[all …]
/drivers/net/ethernet/renesas/
Dsh_eth.h803 u32 *maxp; in sh_eth_soft_swap() local
804 maxp = p + ((len + sizeof(u32) - 1) / sizeof(u32)); in sh_eth_soft_swap()
806 for (; p < maxp; p++) in sh_eth_soft_swap()
/drivers/usb/core/
Dconfig.c255 unsigned maxp; in usb_parse_endpoint() local
257 maxp = usb_endpoint_maxp(&endpoint->desc) & 0x07ff; in usb_parse_endpoint()
258 if (maxp != 512) in usb_parse_endpoint()
262 maxp); in usb_parse_endpoint()
/drivers/usb/dwc3/
Dep0.c566 unsigned maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data() local
568 transfer_size += (maxp - (transfer_size % maxp)); in dwc3_ep0_complete_data()
/drivers/watchdog/
Dpcwd_usb.c625 int pipe, maxp; in usb_pcwd_probe() local
658 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in usb_pcwd_probe()
/drivers/net/usb/
Dusbnet.c189 unsigned maxp; in init_status() local
198 maxp = usb_maxpacket (dev->udev, pipe, 0); in init_status()
204 buf = kmalloc (maxp, GFP_KERNEL); in init_status()
212 buf, maxp, intr_complete, dev, period); in init_status()
216 usb_pipeendpoint(pipe), maxp, period); in init_status()
/drivers/usb/misc/
Dusbtest.c1594 unsigned i, maxp, packets; in iso_alloc_urb() local
1598 maxp = 0x7ff & usb_endpoint_maxp(desc); in iso_alloc_urb()
1599 maxp *= 1 + (0x3 & (usb_endpoint_maxp(desc) >> 11)); in iso_alloc_urb()
1600 packets = DIV_ROUND_UP(bytes, maxp); in iso_alloc_urb()
1630 urb->iso_frame_desc[i].length = min((unsigned) bytes, maxp); in iso_alloc_urb()
1633 urb->iso_frame_desc[i].offset = maxp * i; in iso_alloc_urb()

12