Home
last modified time | relevance | path

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

12

/openbmc/linux/fs/ecryptfs/
H A Dkeystore.c589 size_t max_packet_size; member
675 s->max_packet_size = (ECRYPTFS_TAG_70_MAX_METADATA_SIZE in ecryptfs_write_tag_70_packet()
678 (*packet_size) = s->max_packet_size; in ecryptfs_write_tag_70_packet()
681 if (s->max_packet_size > (*remaining_bytes)) { in ecryptfs_write_tag_70_packet()
683 "[%zd] available\n", __func__, s->max_packet_size, in ecryptfs_write_tag_70_packet()
860 size_t max_packet_size; member
897 char *data, size_t max_packet_size) in ecryptfs_parse_tag_70_packet() argument
910 if (max_packet_size < ECRYPTFS_TAG_70_MIN_METADATA_SIZE) { in ecryptfs_parse_tag_70_packet()
912 "at least [%d]\n", __func__, max_packet_size, in ecryptfs_parse_tag_70_packet()
943 > max_packet_size) { in ecryptfs_parse_tag_70_packet()
[all …]
/openbmc/linux/drivers/media/usb/gspca/stv06xx/
H A Dstv06xx_hdcs.h137 .max_packet_size = { 847 },
156 .max_packet_size = { 847 },
H A 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()
H A Dstv06xx_st6422.h30 .max_packet_size = { 300, 847 },
H A Dstv06xx_sensor.h45 int max_packet_size[4]; member
H A Dstv06xx_pb0100.h121 .max_packet_size = { 847, 923 },
H A Dstv06xx_vv6410.h186 .max_packet_size = { 1023 },
/openbmc/linux/sound/usb/line6/
H A Ddriver.c106 for (i = 0; i < size; i += line6->max_packet_size) { in line6_send_raw_message()
109 int frag_size = min(line6->max_packet_size, size - i); in line6_send_raw_message()
160 int bytes = min(msg->size - done, line6->max_packet_size); in line6_send_raw_message_async_part()
520 line6->max_packet_size = le16_to_cpu(ep->desc.wMaxPacketSize); in line6_get_usb_properties()
527 line6->max_packet_size = LINE6_FALLBACK_MAXPACKETSIZE; in line6_get_usb_properties()
613 if (count > line6->max_packet_size * LINE6_RAW_MESSAGES_MAXCOUNT) { in line6_hwdep_write()
H A Ddriver.h135 int max_packet_size; member
H A Dmidi.c47 req = min3(line6_midibuf_bytes_free(mb), line6->max_packet_size, in line6_midi_transmit()
/openbmc/qemu/net/
H A Dvmnet-common.m78 if (size > s->max_packet_size) {
81 s->max_packet_size);
127 packets[i].vm_pkt_size = s->max_packet_size;
237 iov[i].iov_len = s->max_packet_size;
327 s->max_packet_size = xpc_dictionary_get_uint64(
H A Dvmnet_int.h37 uint64_t max_packet_size; member
/openbmc/qemu/hw/usb/
H A Dcombined-packet.c171 if ((p->iov.size % ep->max_packet_size) != 0 || !p->short_not_ok || in usb_ep_combine_input_packets()
176 totalsize > 1 * MiB - ep->max_packet_size) { in usb_ep_combine_input_packets()
H A Dredirect.c85 uint16_t max_packet_size; /* In bytes, not wMaxPacketSize format !! */ member
688 const int maxp = dev->endpoint[EP2I(ep)].max_packet_size; in usbredir_buffered_bulk_in_complete_ftdi()
743 bpt = 512 + dev->endpoint[EP2I(ep)].max_packet_size - 1; in usbredir_handle_buffered_bulk_in_data()
744 bpt /= dev->endpoint[EP2I(ep)].max_packet_size; in usbredir_handle_buffered_bulk_in_data()
745 bpt *= dev->endpoint[EP2I(ep)].max_packet_size; in usbredir_handle_buffered_bulk_in_data()
788 const int maxp = dev->endpoint[EP2I(ep)].max_packet_size; in usbredir_handle_bulk_data()
859 if (intp->len < dev->endpoint[EP2I(ep)].max_packet_size || in usbredir_handle_interrupt_in_data()
903 if (intp->len < dev->endpoint[EP2I(ep)].max_packet_size || in usbredir_handle_interrupt_in_data()
1583 dev->endpoint[j].max_packet_size != 0) { in usbredir_check_bulk_receiving()
1768 if (uep->pid == USB_TOKEN_IN && uep->max_packet_size != 0 && in usbredir_set_pipeline()
[all …]
H A Dcore.c658 dev->ep_ctl.max_packet_size = 64; in usb_ep_reset()
671 dev->ep_in[ep].max_packet_size = 0; in usb_ep_reset()
672 dev->ep_out[ep].max_packet_size = 0; in usb_ep_reset()
718 dev->ep_in[ep].max_packet_size); in usb_ep_dump()
729 dev->ep_out[ep].max_packet_size); in usb_ep_dump()
786 uep->max_packet_size = size * microframes; in usb_ep_set_max_packet_size()
H A Ddev-serial.c426 const int max_packet_size = desc_iface0.eps[0].wMaxPacketSize; in usb_serial_token_in() local
456 len = MIN(packet_len, max_packet_size); in usb_serial_token_in()
/openbmc/linux/drivers/usb/cdns3/
H A 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()
/openbmc/linux/drivers/usb/gadget/function/
H A Df_uvc.c650 unsigned int max_packet_size; in uvc_function_bind() local
680 max_packet_size = opts->streaming_maxpacket; in uvc_function_bind()
683 max_packet_size = opts->streaming_maxpacket / 2; in uvc_function_bind()
686 max_packet_size = opts->streaming_maxpacket / 3; in uvc_function_bind()
694 cpu_to_le16(max_packet_size | ((max_packet_mult - 1) << 11)); in uvc_function_bind()
702 uvc_ss_streaming_ep.wMaxPacketSize = cpu_to_le16(max_packet_size); in uvc_function_bind()
707 cpu_to_le16(max_packet_size * max_packet_mult * in uvc_function_bind()
H A Df_sourcesink.c467 int max_packet_size = le16_to_cpu(ss->out_ep->desc->wMaxPacketSize); in check_read_data() local
489 if (*buf == (u8)((i % max_packet_size) % 63)) in check_read_data()
504 int max_packet_size = le16_to_cpu(ep->desc->wMaxPacketSize); in reinit_write_data() local
513 *buf++ = (u8) ((i % max_packet_size) % 63); in reinit_write_data()
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dusb.h84 u16 max_packet_size; member
/openbmc/linux/sound/usb/misc/
H A Dua101.c1073 unsigned max_packet_size = stream->max_packet_bytes; in alloc_stream_urbs() local
1082 while (size >= max_packet_size) { in alloc_stream_urbs()
1094 urb->urb.transfer_buffer_length = max_packet_size; in alloc_stream_urbs()
1100 urb->urb.iso_frame_desc[0].length = max_packet_size; in alloc_stream_urbs()
1102 size -= max_packet_size; in alloc_stream_urbs()
1103 addr += max_packet_size; in alloc_stream_urbs()
1104 dma += max_packet_size; in alloc_stream_urbs()
/openbmc/openbmc/meta-openembedded/meta-oe/dynamic-layers/selinux/recipes-devtool/android-tools/android-tools/
H A D0003-Update-usage-of-usbdevfs_urb-to-match-new-kernel-UAP.patch123 usb->max_packet_size = max_packet_size;
/openbmc/u-boot/drivers/usb/host/
H A Dxhci.c769 int max_packet_size; in xhci_check_maxpacket() local
778 max_packet_size = udev->epmaxpacketin[0]; in xhci_check_maxpacket()
779 if (hw_max_packet_size != max_packet_size) { in xhci_check_maxpacket()
781 debug("Max packet size in usb_device = %d\n", max_packet_size); in xhci_check_maxpacket()
792 ep_ctx->ep_info2 |= cpu_to_le32(MAX_PACKET(max_packet_size)); in xhci_check_maxpacket()
/openbmc/linux/drivers/usb/gadget/udc/cdns2/
H A Dcdns2-gadget.c1415 u32 max_packet_size; in cdns2_ep_config() local
1443 max_packet_size = is_iso_ep ? 1023 : 64; in cdns2_ep_config()
1446 max_packet_size = is_iso_ep ? 1024 : 512; in cdns2_ep_config()
1457 writew(max_packet_size, &pdev->epx_regs->txmaxpack[pep->num - 1]); in cdns2_ep_config()
1460 writew(max_packet_size, &pdev->epx_regs->rxmaxpack[pep->num - 1]); in cdns2_ep_config()
1470 if (max_packet_size == 1024) in cdns2_ep_config()
1472 else if (max_packet_size >= 512) in cdns2_ep_config()
1496 pep->name, max_packet_size, ep_cfg); in cdns2_ep_config()
/openbmc/linux/include/linux/usb/
H A Dgadget.h502 int max_packet_size = (size_t)usb_endpoint_maxp(ep->desc); in usb_ep_align() local
504 return round_up(len, max_packet_size); in usb_ep_align()

12