Home
last modified time | relevance | path

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

12

/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.c1314 int pipe, maxp, i, res; in mceusb_dev_probe() local
1370 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in mceusb_dev_probe()
1377 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in); in mceusb_dev_probe()
1387 ir->len_in = maxp; in mceusb_dev_probe()
1424 usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe()
1427 usb_fill_bulk_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe()
1476 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
/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()
/drivers/usb/storage/
Donetouch.c186 int pipe, maxp; in onetouch_connect_input() local
199 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in onetouch_connect_input()
200 maxp = min(maxp, ONETOUCH_PKT_LEN); in onetouch_connect_input()
251 usb_fill_int_urb(onetouch->irq, udev, pipe, onetouch->data, maxp, in onetouch_connect_input()
Dtransport.c377 unsigned int maxp; in usb_stor_intr_transfer() local
382 maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); in usb_stor_intr_transfer()
383 if (maxp > length) in usb_stor_intr_transfer()
384 maxp = length; in usb_stor_intr_transfer()
388 maxp, usb_stor_blocking_completion, NULL, in usb_stor_intr_transfer()
/drivers/usb/usbip/
Dvudc_rx.c137 unsigned int maxp, packets, bytes; in v_recv_cmd_submit() local
139 maxp = usb_endpoint_maxp(urb_p->ep->desc); in v_recv_cmd_submit()
140 maxp *= usb_endpoint_maxp_mult(urb_p->ep->desc); in v_recv_cmd_submit()
142 packets = DIV_ROUND_UP(bytes, maxp); in v_recv_cmd_submit()
Dvudc_dev.c247 unsigned int maxp; in vep_enable() local
262 maxp = usb_endpoint_maxp(desc); in vep_enable()
263 _ep->maxpacket = maxp; in vep_enable()
/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()
/drivers/usb/core/
Dconfig.c263 unsigned int maxp; in usb_parse_endpoint() local
401 maxp = usb_endpoint_maxp(&endpoint->desc); in usb_parse_endpoint()
402 if (maxp == 0 && !(usb_endpoint_xfer_isoc(d) && asnum == 0)) { in usb_parse_endpoint()
419 i = maxp & (BIT(12) | BIT(11)); in usb_parse_endpoint()
420 maxp &= ~i; in usb_parse_endpoint()
433 if (maxp > j) { in usb_parse_endpoint()
435 cfgno, inum, asnum, d->bEndpointAddress, maxp, j); in usb_parse_endpoint()
436 maxp = j; in usb_parse_endpoint()
437 endpoint->desc.wMaxPacketSize = cpu_to_le16(i | maxp); in usb_parse_endpoint()
447 if (maxp != 512) in usb_parse_endpoint()
[all …]
/drivers/usb/renesas_usbhs/
Dpipe.c398 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_pipe_set_trans_count_if_bulk() local
400 usbhsp_pipe_trn_set(pipe, 0xffff, DIV_ROUND_UP(len, maxp)); in usbhs_pipe_set_trans_count_if_bulk()
512 u16 epnum, u16 maxp) in usbhs_pipe_config_update() argument
530 pipe->maxp = maxp; in usbhs_pipe_config_update()
535 maxp); in usbhs_pipe_config_update()
551 return pipe->maxp; in usbhs_pipe_get_maxpacket()
Dpipe.h33 int maxp; member
101 u16 epnum, u16 maxp);
Dfifo.c519 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local
546 len = min(len, maxp); in usbhsf_pio_try_push()
548 is_short = total_len < maxp; in usbhsf_pio_try_push()
662 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local
690 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop()
1144 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done_with_rx_irq() local
1153 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq()
1171 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_dma_calc_received_size() local
1178 received_size &= ~(maxp - 1); in usbhs_dma_calc_received_size()
/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()
230 acecad->data, maxp > 8 ? 8 : maxp, in usb_acecad_probe()
/drivers/usb/mtu3/
Dmtu3_gadget_ep0.c503 u32 maxp; in ep0_rx_state() local
528 maxp = mtu->g.ep0->maxpacket; in ep0_rx_state()
529 if (count < maxp || req->actual == req->length) { in ep0_rx_state()
559 u32 maxp; in ep0_tx_state() local
566 maxp = mtu->g.ep0->maxpacket; in ep0_tx_state()
571 count = min(maxp, req->length - req->actual); in ep0_tx_state()
576 __func__, req->actual, req->length, count, maxp, req->zero); in ep0_tx_state()
580 if ((count < maxp) in ep0_tx_state()
/drivers/usb/host/
Dehci-q.c782 int maxp = 0; in qh_make() local
799 maxp = usb_endpoint_maxp (&ep->desc); in qh_make()
805 if (maxp > 1024) { in qh_make()
806 ehci_dbg(ehci, "bogus qh maxpacket %d\n", maxp); in qh_make()
822 is_input, 0, mult * maxp)); in qh_make()
852 is_input, 0, maxp) / (125 * 1000); in qh_make()
866 is_input, 0, maxp)); in qh_make()
900 info1 |= maxp << 16; in qh_make()
937 info1 |= maxp << 16; in qh_make()
940 info1 |= maxp << 16; in qh_make()
Dfotg210-hcd.c2745 int maxp = 0; in qh_make() local
2760 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make()
2765 if (max_packet(maxp) > 1024) { in qh_make()
2767 max_packet(maxp)); in qh_make()
2782 hb_mult(maxp) * max_packet(maxp))); in qh_make()
2805 is_input, 0, maxp) / (125 * 1000); in qh_make()
2819 is_input, 0, max_packet(maxp))); in qh_make()
2845 info1 |= maxp << 16; in qh_make()
2882 info1 |= max_packet(maxp) << 16; in qh_make()
2885 info1 |= max_packet(maxp) << 16; in qh_make()
[all …]
Dehci-sched.c1052 unsigned epnum, maxp; in iso_stream_init() local
1062 maxp = usb_endpoint_maxp(&urb->ep->desc); in iso_stream_init()
1071 buf1 |= maxp; in iso_stream_init()
1072 maxp *= multi; in iso_stream_init()
1081 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1107 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1110 dev->speed, is_input, 1, maxp)); in iso_stream_init()
1111 hs_transfers = max(1u, (maxp + 187) / 188); in iso_stream_init()
1147 stream->maxp = maxp; in iso_stream_init()
/drivers/net/ethernet/renesas/
Dsh_eth.h557 u32 *maxp; in sh_eth_soft_swap() local
558 maxp = p + ((len + sizeof(u32) - 1) / sizeof(u32)); in sh_eth_soft_swap()
560 for (; p < maxp; p++) in sh_eth_soft_swap()
/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()
2483 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2498 switch (maxp) { in omap_ep_setup()
2533 switch (maxp) { in omap_ep_setup()
2561 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2569 buf += maxp; in omap_ep_setup()
2571 buf += maxp; in omap_ep_setup()
[all …]
/drivers/usb/dwc2/
Dhcd_queue.c706 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split()
1330 max_xfer_size = qh->maxp * qh->maxp_mult; in dwc2_check_max_xfer_size()
1463 int maxp = dwc2_hcd_get_maxp(&urb->pipe_info); in dwc2_qh_init() local
1465 int bytecount = maxp_mult * maxp; in dwc2_qh_init()
1476 qh->maxp = maxp; in dwc2_qh_init()
Dhcd.h173 u16 maxp; member
339 u16 maxp; member
497 return pipe->maxp; in dwc2_hcd_get_maxp()
/drivers/usb/misc/
Dlvstest.c406 int ret, maxp; in lvs_rh_probe() local
452 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in lvs_rh_probe()
453 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()

12