Home
last modified time | relevance | path

Searched refs:max_packet_size (Results 1 – 21 of 21) sorted by relevance

/drivers/media/usb/gspca/stv06xx/
Dstv06xx_hdcs.h137 .max_packet_size = { 847 },
156 .max_packet_size = { 847 },
Dstv06xx_pb0100.c177 int err, packet_size, max_packet_size; in pb0100_start() local
195 max_packet_size = sd->sensor->max_packet_size[sd->gspca_dev.curr_mode]; in pb0100_start()
196 if (packet_size < max_packet_size) in pb0100_start()
Dstv06xx_st6422.h30 .max_packet_size = { 300, 847 },
Dstv06xx_sensor.h45 int max_packet_size[4]; member
Dstv06xx_pb0100.h121 .max_packet_size = { 847, 923 },
Dstv06xx_vv6410.h186 .max_packet_size = { 1023 },
Dstv06xx.c328 cpu_to_le16(sd->sensor->max_packet_size[gspca_dev->curr_mode]); in stv06xx_isoc_init()
/drivers/usb/gadget/function/
Df_uvc.c610 unsigned int max_packet_size; in uvc_function_bind() local
640 max_packet_size = opts->streaming_maxpacket; in uvc_function_bind()
643 max_packet_size = opts->streaming_maxpacket / 2; in uvc_function_bind()
646 max_packet_size = opts->streaming_maxpacket / 3; in uvc_function_bind()
654 cpu_to_le16(max_packet_size | ((max_packet_mult - 1) << 11)); in uvc_function_bind()
662 uvc_ss_streaming_ep.wMaxPacketSize = cpu_to_le16(max_packet_size); in uvc_function_bind()
667 cpu_to_le16(max_packet_size * max_packet_mult * in uvc_function_bind()
Df_sourcesink.c469 int max_packet_size = le16_to_cpu(ss->out_ep->desc->wMaxPacketSize); in check_read_data() local
491 if (*buf == (u8)((i % max_packet_size) % 63)) in check_read_data()
506 int max_packet_size = le16_to_cpu(ep->desc->wMaxPacketSize); in reinit_write_data() local
515 *buf++ = (u8) ((i % max_packet_size) % 63); in reinit_write_data()
/drivers/usb/cdns3/
Dcdns3-ep0.c814 u32 max_packet_size = 64; in cdns3_ep0_config() local
820 max_packet_size = 512; in cdns3_ep0_config()
834 priv_dev->gadget.ep0->maxpacket = max_packet_size; in cdns3_ep0_config()
835 cdns3_gadget_ep0_desc.wMaxPacketSize = cpu_to_le16(max_packet_size); in cdns3_ep0_config()
847 ep_cfg = EP_CFG_ENABLE | EP_CFG_MAXPKTSIZE(max_packet_size); in cdns3_ep0_config()
Dcdns3-gadget.c2099 u32 max_packet_size = priv_ep->wMaxPacketSize; in cdns3_ep_config() local
2129 max_packet_size = is_iso_ep ? 1023 : 64; in cdns3_ep_config()
2132 max_packet_size = is_iso_ep ? 1024 : 512; in cdns3_ep_config()
2136 max_packet_size = 1024; in cdns3_ep_config()
2145 if (max_packet_size == 1024) in cdns3_ep_config()
2147 else if (max_packet_size >= 512) in cdns3_ep_config()
2197 ep_cfg |= EP_CFG_MAXPKTSIZE(max_packet_size) | in cdns3_ep_config()
/drivers/net/wireless/ath/ath10k/
Dusb.h83 u16 max_packet_size; member
Dusb.c435 if (!(skb->len % pipe->max_packet_size)) { in ath10k_usb_hif_tx_sg()
877 pipe->max_packet_size = le16_to_cpu(endpoint->wMaxPacketSize); in ath10k_usb_setup_pipe_resources()
/drivers/net/wireless/ath/ath6kl/
Dusb.c55 u16 max_packet_size; member
366 pipe->max_packet_size = le16_to_cpu(endpoint->wMaxPacketSize); in ath6kl_usb_setup_pipe_resources()
753 if ((len % pipe->max_packet_size) == 0) { in ath6kl_usb_send()
/drivers/media/usb/gspca/
Dxirlink_cit.c2634 int max_packet_size; in sd_isoc_init() local
2638 max_packet_size = 450; in sd_isoc_init()
2641 max_packet_size = 600; in sd_isoc_init()
2644 max_packet_size = 1022; in sd_isoc_init()
2659 alt->endpoint[0].desc.wMaxPacketSize = cpu_to_le16(max_packet_size); in sd_isoc_init()
/drivers/usb/serial/
Dftdi_sio.c74 unsigned short max_packet_size; member
1672 priv->max_packet_size = usb_endpoint_maxp(ep_desc); in ftdi_set_max_packet_size()
2476 for (i = 0; i < size - 1; i += priv->max_packet_size) { in ftdi_prepare_write_buffer()
2477 len = min_t(int, size - i, priv->max_packet_size) - 1; in ftdi_prepare_write_buffer()
2607 for (i = 0; i < urb->actual_length; i += priv->max_packet_size) { in ftdi_process_read_urb()
2608 len = min_t(int, urb->actual_length - i, priv->max_packet_size); in ftdi_process_read_urb()
/drivers/usb/host/
Dxhci.c1576 int max_packet_size; in xhci_check_maxpacket() local
1583 max_packet_size = usb_endpoint_maxp(&urb->dev->ep0.desc); in xhci_check_maxpacket()
1584 if (hw_max_packet_size != max_packet_size) { in xhci_check_maxpacket()
1589 max_packet_size); in xhci_check_maxpacket()
1620 ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size)); in xhci_check_maxpacket()
2557 virt_ep->bw_info.max_packet_size, in xhci_check_bw_table()
2659 unsigned int mps = DIV_ROUND_UP(ep_bw->max_packet_size, SS_BLOCK); in xhci_get_ss_bw_consumed()
2796 if (ep_bw->max_packet_size >= in xhci_add_ep_to_interval_table()
2797 smaller_ep->bw_info.max_packet_size) { in xhci_add_ep_to_interval_table()
Dxhci-mem.c1550 bw_info->max_packet_size = 0; in xhci_clear_endpoint_bw_info()
1600 bw_info->max_packet_size = MAX_PACKET_DECODED( in xhci_update_bw_info()
Dxhci.h881 unsigned int max_packet_size; member
/drivers/net/usb/
Dhso.c967 static void fix_crc_bug(struct urb *urb, __le16 max_packet_size) in fix_crc_bug() argument
970 u32 rest = urb->actual_length % le16_to_cpu(max_packet_size); in fix_crc_bug()
/drivers/usb/gadget/udc/
Dtegra-xudc.c268 BUILD_EP_CONTEXT_RW(max_packet_size, info1, 16, 0xffff)