/linux-4.4.14/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()
|
/linux-4.4.14/drivers/media/rc/ |
D | ati_remote.c | 778 int pipe, maxp; in ati_remote_initialize() local 784 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize() 785 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize() 788 maxp, ati_remote_irq_in, ati_remote, in ati_remote_initialize() 795 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in ati_remote_initialize() 796 maxp = (maxp > DATA_BUFSIZE) ? DATA_BUFSIZE : maxp; in ati_remote_initialize() 799 maxp, ati_remote_irq_out, ati_remote, in ati_remote_initialize()
|
D | streamzap.c | 346 int pipe, maxp; in streamzap_probe() local 382 maxp = usb_maxpacket(usbdev, pipe, usb_pipeout(pipe)); in streamzap_probe() 384 if (maxp == 0) { in streamzap_probe() 392 sz->buf_in = usb_alloc_coherent(usbdev, maxp, GFP_ATOMIC, &sz->dma_in); in streamzap_probe() 401 sz->buf_in_len = maxp; in streamzap_probe() 435 maxp, (usb_complete_t)streamzap_callback, in streamzap_probe() 453 usb_free_coherent(usbdev, maxp, sz->buf_in, sz->dma_in); in streamzap_probe()
|
D | mceusb.c | 1277 int pipe, maxp, i; in mceusb_dev_probe() local 1333 maxp = usb_maxpacket(dev, pipe, usb_pipeout(pipe)); in mceusb_dev_probe() 1339 ir->buf_in = usb_alloc_coherent(dev, maxp, GFP_ATOMIC, &ir->dma_in); in mceusb_dev_probe() 1349 ir->len_in = maxp; in mceusb_dev_probe() 1373 usb_fill_int_urb(ir->urb_in, dev, pipe, ir->buf_in, maxp, in mceusb_dev_probe() 1380 mce_flush_rx_buffer(ir, maxp); in mceusb_dev_probe() 1417 usb_free_coherent(dev, maxp, ir->buf_in, ir->dma_in); in mceusb_dev_probe()
|
/linux-4.4.14/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 | 367 unsigned int maxp; in usb_stor_intr_transfer() local 372 maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); in usb_stor_intr_transfer() 373 if (maxp > length) in usb_stor_intr_transfer() 374 maxp = length; in usb_stor_intr_transfer() 378 maxp, usb_stor_blocking_completion, NULL, in usb_stor_intr_transfer()
|
/linux-4.4.14/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()
|
/linux-4.4.14/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() 231 acecad->data, maxp > 8 ? 8 : maxp, in usb_acecad_probe()
|
/linux-4.4.14/drivers/usb/renesas_usbhs/ |
D | pipe.c | 376 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_pipe_set_trans_count_if_bulk() local 378 usbhsp_pipe_trn_set(pipe, 0xffff, DIV_ROUND_UP(len, maxp)); in usbhs_pipe_set_trans_count_if_bulk() 550 u16 epnum, u16 maxp) in usbhs_pipe_config_update() argument 563 pipe->maxp = maxp; in usbhs_pipe_config_update() 568 maxp); in usbhs_pipe_config_update() 584 return pipe->maxp; in usbhs_pipe_get_maxpacket()
|
D | pipe.h | 33 int maxp; member 99 u16 epnum, u16 maxp);
|
D | fifo.c | 507 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_push() local 534 len = min(len, maxp); in usbhsf_pio_try_push() 536 is_short = total_len < maxp; in usbhsf_pio_try_push() 650 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_pio_try_pop() local 678 (total_len < maxp)) { /* short packet */ in usbhsf_pio_try_pop() 1106 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhsf_dma_pop_done_with_rx_irq() local 1115 (pkt->trans < maxp)) { /* short packet */ in usbhsf_dma_pop_done_with_rx_irq() 1133 int maxp = usbhs_pipe_get_maxpacket(pipe); in usbhs_dma_calc_received_size() local 1140 received_size &= ~(maxp - 1); in usbhs_dma_calc_received_size()
|
D | mod_host.c | 217 int maxp = usb_endpoint_maxp(&urb->ep->desc); in usbhsh_endpoint_sequence_save() local 241 t = len / maxp; in usbhsh_endpoint_sequence_save() 242 if (len % maxp) in usbhsh_endpoint_sequence_save()
|
/linux-4.4.14/drivers/usb/host/ |
D | ehci-q.c | 766 int maxp = 0; in qh_make() local 781 maxp = usb_maxpacket (urb->dev, urb->pipe, !is_input); in qh_make() 786 if (max_packet(maxp) > 1024) { in qh_make() 787 ehci_dbg(ehci, "bogus qh maxpacket %d\n", max_packet(maxp)); in qh_make() 804 hb_mult(maxp) * max_packet(maxp))); in qh_make() 834 is_input, 0, maxp) / (125 * 1000); in qh_make() 848 is_input, 0, max_packet (maxp))); in qh_make() 882 info1 |= maxp << 16; in qh_make() 919 info1 |= max_packet(maxp) << 16; in qh_make() 922 info1 |= max_packet (maxp) << 16; in qh_make() [all …]
|
D | ehci-sched.c | 1050 unsigned epnum, maxp; in iso_stream_init() local 1060 maxp = usb_endpoint_maxp(&urb->ep->desc); in iso_stream_init() 1069 unsigned multi = hb_mult(maxp); in iso_stream_init() 1073 maxp = max_packet(maxp); in iso_stream_init() 1074 buf1 |= maxp; in iso_stream_init() 1075 maxp *= multi; in iso_stream_init() 1084 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init() 1110 stream->ps.usecs = HS_USECS_ISO(maxp); in iso_stream_init() 1113 dev->speed, is_input, 1, maxp)); in iso_stream_init() 1114 hs_transfers = max (1u, (maxp + 187) / 188); in iso_stream_init() [all …]
|
D | fotg210-hcd.c | 2747 int maxp = 0; in qh_make() local 2762 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make() 2767 if (max_packet(maxp) > 1024) { in qh_make() 2769 max_packet(maxp)); in qh_make() 2784 hb_mult(maxp) * max_packet(maxp))); in qh_make() 2807 is_input, 0, maxp) / (125 * 1000); in qh_make() 2821 is_input, 0, max_packet(maxp))); in qh_make() 2847 info1 |= maxp << 16; in qh_make() 2884 info1 |= max_packet(maxp) << 16; in qh_make() 2887 info1 |= max_packet(maxp) << 16; in qh_make() [all …]
|
D | oxu210hp-hcd.c | 1366 int maxp = 0; in qh_make() local 1379 maxp = usb_maxpacket(urb->dev, urb->pipe, !is_input); in qh_make() 1392 hb_mult(maxp) * max_packet(maxp))); in qh_make() 1415 is_input, 0, maxp) / (125 * 1000); in qh_make() 1429 is_input, 0, max_packet(maxp))); in qh_make() 1451 info1 |= maxp << 16; in qh_make() 1472 info1 |= max_packet(maxp) << 16; in qh_make() 1473 info2 |= hb_mult(maxp) << 30; in qh_make()
|
D | fotg210.h | 518 u16 maxp; member
|
D | ehci.h | 489 u16 maxp; member
|
D | xhci-ring.c | 3066 u32 maxp, total_packet_count; in xhci_td_remainder() local 3071 maxp = GET_MAX_PACKET(usb_endpoint_maxp(&urb->ep->desc)); in xhci_td_remainder() 3072 total_packet_count = DIV_ROUND_UP(td_total_len, maxp); in xhci_td_remainder() 3080 return (total_packet_count - ((transferred + trb_buff_len) / maxp)); in xhci_td_remainder()
|
/linux-4.4.14/drivers/usb/dwc2/ |
D | hcd_queue.c | 78 qh->maxp = dwc2_hcd_get_mps(&urb->pipe_info); in dwc2_qh_init() 103 dwc2_hb_mult(qh->maxp) * dwc2_max_packet(qh->maxp); in dwc2_qh_init() 450 max_xfer_size = dwc2_max_packet(qh->maxp) * dwc2_hb_mult(qh->maxp); in dwc2_check_max_xfer_size()
|
D | hcd.h | 266 u16 maxp; member
|
D | hcd.c | 804 chan->max_packet = dwc2_max_packet(qh->maxp); in dwc2_assign_and_init_hc() 882 chan->multi_count = dwc2_hb_mult(qh->maxp); in dwc2_assign_and_init_hc()
|
/linux-4.4.14/drivers/net/ethernet/renesas/ |
D | sh_eth.h | 540 u32 *maxp; in sh_eth_soft_swap() local 541 maxp = p + ((len + sizeof(u32) - 1) / sizeof(u32)); in sh_eth_soft_swap() 543 for (; p < maxp; p++) in sh_eth_soft_swap()
|
/linux-4.4.14/drivers/usb/misc/ |
D | lvstest.c | 369 int ret, maxp; in lvs_rh_probe() local 421 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in lvs_rh_probe() 422 usb_fill_int_urb(lvs->urb, hdev, pipe, &lvs->buffer[0], maxp, in lvs_rh_probe()
|
D | usbtest.c | 1885 unsigned i, maxp, packets; in iso_alloc_urb() local 1889 maxp = 0x7ff & usb_endpoint_maxp(desc); in iso_alloc_urb() 1890 maxp *= 1 + (0x3 & (usb_endpoint_maxp(desc) >> 11)); in iso_alloc_urb() 1891 packets = DIV_ROUND_UP(bytes, maxp); in iso_alloc_urb() 1921 urb->iso_frame_desc[i].length = min((unsigned) bytes, maxp); in iso_alloc_urb() 1924 urb->iso_frame_desc[i].offset = maxp * i; in iso_alloc_urb()
|
/linux-4.4.14/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 …]
|
D | fotg210.h | 231 unsigned int maxp; member
|
/linux-4.4.14/drivers/usb/dwc3/ |
D | ep0.c | 792 unsigned maxp; in dwc3_ep0_complete_data() local 829 maxp = ep0->endpoint.maxpacket; in dwc3_ep0_complete_data() 837 transfer_size = ALIGN(ur->length - maxp, maxp); in dwc3_ep0_complete_data() 850 maxp); in dwc3_ep0_complete_data()
|
/linux-4.4.14/drivers/usb/core/ |
D | config.c | 266 unsigned maxp; in usb_parse_endpoint() local 268 maxp = usb_endpoint_maxp(&endpoint->desc) & 0x07ff; in usb_parse_endpoint() 269 if (maxp != 512) in usb_parse_endpoint() 273 maxp); in usb_parse_endpoint()
|
D | hub.c | 1362 int maxp, ret, i; in hub_configure() local 1598 maxp = usb_maxpacket(hdev, pipe, usb_pipeout(pipe)); in hub_configure() 1600 if (maxp > sizeof(*hub->buffer)) in hub_configure() 1601 maxp = sizeof(*hub->buffer); in hub_configure() 1609 usb_fill_int_urb(hub->urb, hdev, pipe, *hub->buffer, maxp, hub_irq, in hub_configure()
|
/linux-4.4.14/drivers/watchdog/ |
D | pcwd_usb.c | 611 int pipe, maxp; in usb_pcwd_probe() local 644 maxp = usb_maxpacket(udev, pipe, usb_pipeout(pipe)); in usb_pcwd_probe()
|
/linux-4.4.14/mm/ |
D | page-writeback.c | 189 unsigned long *minp, unsigned long *maxp) in wb_min_max_ratio() argument 212 *maxp = max; in wb_min_max_ratio() 243 unsigned long *minp, unsigned long *maxp) in wb_min_max_ratio() argument 246 *maxp = wb->bdi->max_ratio; in wb_min_max_ratio()
|
/linux-4.4.14/drivers/net/usb/ |
D | usbnet.c | 217 unsigned maxp; in init_status() local 226 maxp = usb_maxpacket (dev->udev, pipe, 0); in init_status() 232 buf = kmalloc (maxp, GFP_KERNEL); in init_status() 240 buf, maxp, intr_complete, dev, period); in init_status() 244 usb_pipeendpoint(pipe), maxp, period); in init_status()
|
D | lan78xx.c | 2925 unsigned maxp; in lan78xx_probe() local 2984 maxp = usb_maxpacket(dev->udev, dev->pipe_intr, 0); in lan78xx_probe() 2985 buf = kmalloc(maxp, GFP_KERNEL); in lan78xx_probe() 2993 dev->pipe_intr, buf, maxp, in lan78xx_probe()
|
/linux-4.4.14/drivers/usb/gadget/udc/bdc/ |
D | bdc_ep.c | 434 u32 maxp, tfs, dword2, dword3; in setup_bd_list_xfr() local 449 maxp = usb_endpoint_maxp(ep->desc) & 0x7ff; in setup_bd_list_xfr() 450 tfs = roundup(req->usb_req.length, maxp); in setup_bd_list_xfr() 451 tfs = tfs/maxp; in setup_bd_list_xfr()
|