Home
last modified time | relevance | path

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

12

/linux/drivers/input/misc/
H A Dpowermate.c300 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 Dati_remote2.c601 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 Donetouch.c170 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 Dtransport.c361 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/usb/usbip/
H A Dvudc_rx.c125 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 Dvudc_dev.c234 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 Dacecad.c118 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 Dpipe.c389 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 Dpipe.h24 int maxp; member
94 u16 epnum, u16 maxp);
H A Dfifo.c510 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()
H A Dmod_host.c204 int maxp = usb_endpoint_maxp(&urb->ep->desc); in usbhsh_endpoint_sequence_save() local
228 t = len / maxp; in usbhsh_endpoint_sequence_save()
229 if (len % maxp) in usbhsh_endpoint_sequence_save()
/linux/drivers/usb/mtu3/
H A Dmtu3_gadget_ep0.c514 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 Dmtu3_gadget.c73 mep->maxp = usb_endpoint_maxp(desc); in mtu3_ep_enable()
109 __func__, mep->maxp, interval, burst, mult); in mtu3_ep_enable()
111 mep->ep.maxpacket = mep->maxp; in mtu3_ep_enable()
H A Dmtu3.h289 u16 maxp; member
/linux/drivers/usb/dwc2/
H A Dhcd.h145 u16 maxp; member
315 u16 maxp; member
482 return pipe->maxp; in dwc2_hcd_get_maxp()
H A Dhcd_queue.c645 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 Dcdnsp-debug.h545 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()
/linux/drivers/usb/gadget/udc/
H A Domap_udc.c150 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()
2458 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2473 switch (maxp) { in omap_ep_setup()
2508 switch (maxp) { in omap_ep_setup()
2534 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2542 buf += maxp; in omap_ep_setup()
2544 buf += maxp; in omap_ep_setup()
[all …]
/linux/drivers/usb/misc/
H A Dlvstest.c400 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()
/linux/drivers/usb/host/
H A Dehci-sched.c1026 unsigned epnum, maxp; in iso_stream_init() local
1036 maxp = usb_endpoint_maxp(&urb->ep->desc); in iso_stream_init()
1045 buf1 |= maxp; in iso_stream_init()
1046 maxp *= multi; in iso_stream_init()
1055 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1081 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init()
1084 dev->speed, is_input, 1, maxp)); in iso_stream_init()
1085 hs_transfers = max(1u, (maxp + 187) / 188); in iso_stream_init()
1121 stream->maxp = maxp; in iso_stream_init()
H A Doxu210hp-hcd.c1762 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 Dfotg210-hcd.c2708 int maxp = 0; in qh_make() local
2725 maxp = usb_endpoint_maxp(&ep->desc); in qh_make()
2731 if (maxp > 1024) { in qh_make()
2732 fotg210_dbg(fotg210, "bogus qh maxpacket %d\n", maxp); in qh_make()
2746 is_input, 0, mult * maxp)); in qh_make()
2769 is_input, 0, maxp) / (125 * 1000); in qh_make()
2783 is_input, 0, maxp)); in qh_make()
2809 info1 |= maxp << 16; in qh_make()
2846 info1 |= maxp << 16; in qh_make()
2849 info1 |= maxp << 16; in qh_make()
[all …]
H A Dfotg210-udc.h229 unsigned int maxp; member
H A Dfotg210-hcd.h520 u16 maxp; member
/linux/drivers/net/usb/
H A Dusbnet.c227 unsigned maxp; in init_status() local
234 maxp = usb_maxpacket(dev->udev, pipe); in init_status()
240 buf = kmalloc(maxp, GFP_KERNEL); in init_status()
248 buf, maxp, intr_complete, dev, period); in init_status()
252 usb_pipeendpoint(pipe), maxp, period); in init_status()

12