Home
last modified time | relevance | path

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

12

/linux/drivers/media/rc/
H A 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()
H A 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()
H A 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()
H A 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/drivers/input/misc/
H A 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()
H A 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/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/hid/usbhid/
H A 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()
H A 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/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()
/linux/drivers/usb/core/
H A 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/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_trace.h221 __field(unsigned int, maxp)
232 __entry->maxp = mep->ep.maxpacket;
241 __entry->maxp, __entry->slot,
/linux/drivers/usb/host/
H A Dehci-q.c766 int maxp = 0; in qh_make() local
783 maxp = usb_endpoint_maxp (&ep->desc); in qh_make()
789 if (maxp > 1024) { in qh_make()
790 ehci_dbg(ehci, "bogus qh maxpacket %d\n", maxp); in qh_make()
806 is_input, 0, mult * maxp)); in qh_make()
836 is_input, 0, maxp) / (125 * 1000); in qh_make()
850 is_input, 0, maxp)); in qh_make()
884 info1 |= maxp << 16; in qh_make()
921 info1 |= maxp << 16; in qh_make()
924 info1 |= maxp << 16; in qh_make()
/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()
1468 qh->maxp = maxp; in dwc2_qh_init()
/linux/drivers/usb/cdns3/
H A Dcdnsp-debug.h544 u16 maxp, avg; in cdnsp_decode_ep_context() local
561 maxp = MAX_PACKET_DECODED(info2); in cdnsp_decode_ep_context()
576 burst, maxp, deq); in cdnsp_decode_ep_context()
/linux/drivers/usb/gadget/udc/
H A Domap_udc.c149 u16 maxp; in omap_ep_enable() local
159 maxp = usb_endpoint_maxp(desc); in omap_ep_enable()
161 && maxp != ep->maxpacket) in omap_ep_enable()
202 ep->ep.maxpacket = maxp; in omap_ep_enable()
2476 switch (maxp) { in omap_ep_setup()
2511 switch (maxp) { in omap_ep_setup()
2545 buf += maxp; in omap_ep_setup()
2547 buf += maxp; in omap_ep_setup()
2584 ep->maxpacket = maxp; in omap_ep_setup()
2659 #define OMAP_INT_EP(name, addr, maxp) \ in omap_udc_setup() argument
[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()

12