Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/media/rc/
Dxbox_remote.c170 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()
Dstreamzap.c277 int pipe, maxp; in streamzap_probe() local
310 maxp = usb_maxpacket(usbdev, pipe); in streamzap_probe()
312 if (maxp == 0) { in streamzap_probe()
320 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe()
329 sz->buf_in_len = maxp; in streamzap_probe()
347 maxp, streamzap_callback, sz, endpoint->bInterval); in streamzap_probe()
361 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe()
Dati_remote.c768 int pipe, maxp; in ati_remote_initialize() local
774 maxp = usb_maxpacket(udev, pipe); in ati_remote_initialize()
775 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
778 maxp, ati_remote_irq_in, ati_remote, in ati_remote_initialize()
785 maxp = usb_maxpacket(udev, pipe); in ati_remote_initialize()
786 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize()
789 maxp, ati_remote_irq_out, ati_remote, in ati_remote_initialize()
Dmceusb.c1668 int pipe, maxp, i, res; in mceusb_dev_probe() local
1724 maxp = usb_maxpacket(dev, pipe); in mceusb_dev_probe()
1731 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_KERNEL, &ir->dma_in); in mceusb_dev_probe()
1742 ir->len_in = maxp; in mceusb_dev_probe()
1780 usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe()
1783 usb_fill_bulk_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe()
1832 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
/linux-6.1.9/drivers/input/misc/
Dpowermate.c307 int pipe, maxp; in powermate_probe() local
377 maxp = usb_maxpacket(udev, pipe); in powermate_probe()
379 if (maxp < POWERMATE_PAYLOAD_SIZE_MIN || maxp > POWERMATE_PAYLOAD_SIZE_MAX) { in powermate_probe()
381 POWERMATE_PAYLOAD_SIZE_MIN, POWERMATE_PAYLOAD_SIZE_MAX, maxp); in powermate_probe()
382 maxp = POWERMATE_PAYLOAD_SIZE_MAX; in powermate_probe()
386 maxp, powermate_irq, in powermate_probe()
Dati_remote2.c630 int i, pipe, maxp; in ati_remote2_urb_init() local
642 maxp = usb_maxpacket(udev, pipe); in ati_remote2_urb_init()
643 maxp = maxp > 4 ? 4 : maxp; in ati_remote2_urb_init()
645 usb_fill_int_urb(ar2->urb[i], udev, pipe, ar2->buf[i], maxp, in ati_remote2_urb_init()
/linux-6.1.9/drivers/usb/storage/
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()
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-6.1.9/drivers/usb/usbip/
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()
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-6.1.9/drivers/hid/usbhid/
Dusbmouse.c113 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()
Dusbkbd.c269 int i, pipe, maxp; in usb_kbd_probe() local
282 maxp = usb_maxpacket(dev, pipe); in usb_kbd_probe()
336 kbd->new, (maxp > 8 ? 8 : maxp), in usb_kbd_probe()
/linux-6.1.9/drivers/input/tablet/
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-6.1.9/drivers/usb/renesas_usbhs/
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()
Dpipe.h24 int maxp; member
94 u16 epnum, u16 maxp);
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()
/linux-6.1.9/drivers/usb/core/
Dconfig.c264 unsigned int maxp; in usb_parse_endpoint() local
409 maxp = le16_to_cpu(endpoint->desc.wMaxPacketSize); in usb_parse_endpoint()
410 if (maxp == 0 && !(usb_endpoint_xfer_isoc(d) && asnum == 0)) { in usb_parse_endpoint()
427 i = maxp & USB_EP_MAXP_MULT_MASK; in usb_parse_endpoint()
428 maxp &= ~i; in usb_parse_endpoint()
441 if (maxp > j) { in usb_parse_endpoint()
443 cfgno, inum, asnum, d->bEndpointAddress, maxp, j); in usb_parse_endpoint()
444 maxp = j; in usb_parse_endpoint()
445 endpoint->desc.wMaxPacketSize = cpu_to_le16(i | maxp); in usb_parse_endpoint()
454 if (maxp != 512) in usb_parse_endpoint()
[all …]
/linux-6.1.9/drivers/usb/mtu3/
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()
Dmtu3_trace.h221 __field(unsigned int, maxp)
232 __entry->maxp = mep->ep.maxpacket;
241 __entry->maxp, __entry->slot,
/linux-6.1.9/drivers/usb/host/
Dehci-q.c770 int maxp = 0; in qh_make() local
787 maxp = usb_endpoint_maxp (&ep->desc); in qh_make()
793 if (maxp > 1024) { in qh_make()
794 ehci_dbg(ehci, "bogus qh maxpacket %d\n", maxp); in qh_make()
810 is_input, 0, mult * maxp)); in qh_make()
840 is_input, 0, maxp) / (125 * 1000); in qh_make()
854 is_input, 0, maxp)); in qh_make()
888 info1 |= maxp << 16; in qh_make()
925 info1 |= maxp << 16; in qh_make()
928 info1 |= maxp << 16; in qh_make()
/linux-6.1.9/drivers/usb/cdns3/
Dcdnsp-debug.h547 u16 maxp, avg; in cdnsp_decode_ep_context() local
564 maxp = MAX_PACKET_DECODED(info2); in cdnsp_decode_ep_context()
579 burst, maxp, deq); in cdnsp_decode_ep_context()
/linux-6.1.9/drivers/usb/dwc2/
Dhcd.h145 u16 maxp; member
315 u16 maxp; member
482 return pipe->maxp; in dwc2_hcd_get_maxp()
Dhcd_queue.c681 int bytecount = qh->maxp_mult * qh->maxp; in dwc2_uframe_schedule_split()
1305 max_xfer_size = qh->maxp * qh->maxp_mult; in dwc2_check_max_xfer_size()
1490 int maxp = dwc2_hcd_get_maxp(&urb->pipe_info); in dwc2_qh_init() local
1492 int bytecount = maxp_mult * maxp; in dwc2_qh_init()
1504 qh->maxp = maxp; in dwc2_qh_init()
/linux-6.1.9/drivers/usb/gadget/udc/
Domap_udc.c151 u16 maxp; in omap_ep_enable() local
161 maxp = usb_endpoint_maxp(desc); in omap_ep_enable()
163 && maxp != ep->maxpacket) in omap_ep_enable()
204 ep->ep.maxpacket = maxp; in omap_ep_enable()
2470 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument
2485 switch (maxp) { in omap_ep_setup()
2520 switch (maxp) { in omap_ep_setup()
2546 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup()
2554 buf += maxp; in omap_ep_setup()
2556 buf += maxp; in omap_ep_setup()
[all …]
/linux-6.1.9/drivers/usb/misc/
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()

12