/drivers/media/rc/ |
D | ati_remote.c | 785 int pipe, maxp; in ati_remote_initialize() local 791 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize() 792 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize() 795 maxp, ati_remote_irq_in, ati_remote, in ati_remote_initialize() 802 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize() 803 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize() 806 maxp, ati_remote_irq_out, ati_remote, in ati_remote_initialize()
|
D | streamzap.c | 345 int pipe, maxp; in streamzap_probe() local 381 maxp = usb_maxpacket(usbdev, pipe, usb_pipeout(pipe)); in streamzap_probe() 383 if (maxp == 0) { in streamzap_probe() 391 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe() 400 sz->buf_in_len = maxp; in streamzap_probe() 434 maxp, (usb_complete_t)streamzap_callback, in streamzap_probe() 452 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe()
|
D | mceusb.c | 1288 int pipe, maxp, i; in mceusb_dev_probe() local 1344 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in mceusb_dev_probe() 1350 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in); in mceusb_dev_probe() 1360 ir->len_in = maxp; in mceusb_dev_probe() 1385 usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe() 1388 usb_fill_bulk_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe() 1396 mce_flush_rx_buffer(ir, maxp); in mceusb_dev_probe() 1433 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
|
/drivers/input/misc/ |
D | powermate.c | 306 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()
|
D | ati_remote2.c | 635 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/ |
D | onetouch.c | 186 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()
|
D | transport.c | 377 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/ |
D | vudc_rx.c | 137 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()
|
D | stub_rx.c | 387 unsigned int maxp, packets, bytes; in get_pipe() local 389 maxp = usb_endpoint_maxp(epd); in get_pipe() 390 maxp *= usb_endpoint_maxp_mult(epd); in get_pipe() 392 packets = DIV_ROUND_UP(bytes, maxp); in get_pipe()
|
D | vudc_dev.c | 247 unsigned maxp; in vep_enable() local 262 maxp = usb_endpoint_maxp(desc) & 0x7ff; in vep_enable() 263 _ep->maxpacket = maxp; in vep_enable()
|
/drivers/hid/usbhid/ |
D | usbmouse.c | 126 int pipe, maxp; in usb_mouse_probe() local 139 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in usb_mouse_probe() 194 (maxp > 8 ? 8 : maxp), in usb_mouse_probe()
|
D | usbkbd.c | 282 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/renesas_usbhs/ |
D | pipe.c | 383 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_pipe_set_trans_count_if_bulk() local 385 usbhsp_pipe_trn_set(pipe, 0xffff, DIV_ROUND_UP(len, maxp)); in usbhs_pipe_set_trans_count_if_bulk() 497 u16 epnum, u16 maxp) in usbhs_pipe_config_update() argument 515 pipe->maxp = maxp; in usbhs_pipe_config_update() 520 maxp); in usbhs_pipe_config_update() 536 return pipe->maxp; in usbhs_pipe_get_maxpacket()
|
D | pipe.h | 33 int maxp; member 100 u16 epnum, u16 maxp);
|
D | fifo.c | 522 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local 549 len = min(len, maxp); in usbhsf_pio_try_push() 551 is_short = total_len < maxp; in usbhsf_pio_try_push() 665 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local 693 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop() 1137 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done_with_rx_irq() local 1146 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq() 1164 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_dma_calc_received_size() local 1171 received_size &= ~(maxp - 1); in usbhs_dma_calc_received_size()
|
/drivers/usb/core/ |
D | config.c | 207 unsigned int maxp; in usb_parse_endpoint() local 343 maxp = usb_endpoint_maxp(&endpoint->desc); in usb_parse_endpoint() 357 i = maxp & (BIT(12) | BIT(11)); in usb_parse_endpoint() 358 maxp &= ~i; in usb_parse_endpoint() 371 if (maxp > j) { in usb_parse_endpoint() 373 cfgno, inum, asnum, d->bEndpointAddress, maxp, j); in usb_parse_endpoint() 374 maxp = j; in usb_parse_endpoint() 375 endpoint->desc.wMaxPacketSize = cpu_to_le16(i | maxp); in usb_parse_endpoint() 385 if (maxp != 512) in usb_parse_endpoint() 389 maxp); in usb_parse_endpoint()
|
/drivers/input/tablet/ |
D | acecad.c | 142 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/host/ |
D | ehci-q.c | 775 int maxp = 0; in qh_make() local 790 maxp = usb_maxpacket (urb->dev, urb->pipe, !is_input); in qh_make() 795 if (max_packet(maxp) > 1024) { in qh_make() 796 ehci_dbg(ehci, "bogus qh maxpacket %d\n", max_packet(maxp)); in qh_make() 813 hb_mult(maxp) * max_packet(maxp))); in qh_make() 843 is_input, 0, maxp) / (125 * 1000); in qh_make() 857 is_input, 0, max_packet (maxp))); in qh_make() 891 info1 |= maxp << 16; in qh_make() 928 info1 |= max_packet(maxp) << 16; in qh_make() 931 info1 |= max_packet (maxp) << 16; in qh_make() [all …]
|
D | ehci-sched.c | 1052 unsigned epnum, maxp; in iso_stream_init() local 1062 maxp = usb_endpoint_maxp(&urb->ep->desc); in iso_stream_init() 1067 unsigned multi = hb_mult(maxp); in iso_stream_init() 1071 maxp = max_packet(maxp); in iso_stream_init() 1072 buf1 |= maxp; in iso_stream_init() 1073 maxp *= multi; in iso_stream_init() 1082 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init() 1108 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init() 1111 dev->speed, is_input, 1, maxp)); in iso_stream_init() 1112 hs_transfers = max(1u, (maxp + 187) / 188); in iso_stream_init() [all …]
|
D | fotg210-hcd.c | 2742 int maxp = 0; in qh_make() local 2757 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make() 2762 if (max_packet(maxp) > 1024) { in qh_make() 2764 max_packet(maxp)); in qh_make() 2779 hb_mult(maxp) * max_packet(maxp))); in qh_make() 2802 is_input, 0, maxp) / (125 * 1000); in qh_make() 2816 is_input, 0, max_packet(maxp))); in qh_make() 2842 info1 |= maxp << 16; in qh_make() 2879 info1 |= max_packet(maxp) << 16; in qh_make() 2882 info1 |= max_packet(maxp) << 16; in qh_make() [all …]
|
/drivers/usb/dwc2/ |
D | hcd_queue.c | 706 int bytecount = dwc2_hb_mult(qh->maxp) * dwc2_max_packet(qh->maxp); in dwc2_uframe_schedule_split() 1330 max_xfer_size = dwc2_max_packet(qh->maxp) * dwc2_hb_mult(qh->maxp); in dwc2_check_max_xfer_size() 1463 int maxp = dwc2_hcd_get_mps(&urb->pipe_info); in dwc2_qh_init() local 1464 int bytecount = dwc2_hb_mult(maxp) * dwc2_max_packet(maxp); in dwc2_qh_init() 1475 qh->maxp = maxp; in dwc2_qh_init()
|
/drivers/net/ethernet/renesas/ |
D | sh_eth.h | 538 u32 *maxp; in sh_eth_soft_swap() local 539 maxp = p + ((len + sizeof(u32) - 1) / sizeof(u32)); in sh_eth_soft_swap() 541 for (; p < maxp; p++) in sh_eth_soft_swap()
|
/drivers/usb/gadget/udc/ |
D | omap_udc.c | 152 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() 2481 unsigned buf, unsigned maxp, int dbuf) in omap_ep_setup() argument 2496 switch (maxp) { in omap_ep_setup() 2531 switch (maxp) { in omap_ep_setup() 2559 name, addr, epn_rxtx, maxp, dbuf ? "x2" : "", buf); in omap_ep_setup() 2567 buf += maxp; in omap_ep_setup() 2569 buf += maxp; in omap_ep_setup() [all …]
|
/drivers/usb/misc/ |
D | lvstest.c | 365 int ret, maxp; in lvs_rh_probe() local 412 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in lvs_rh_probe() 413 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
|
/drivers/usb/dwc3/ |
D | ep0.c | 803 unsigned maxp; in dwc3_ep0_complete_data() local 842 maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data() 850 transfer_size = ALIGN(ur->length - maxp, maxp); in dwc3_ep0_complete_data() 863 maxp); in dwc3_ep0_complete_data()
|