Home
last modified time | relevance | path

Searched refs:USB_GET_MAXPACKETSIZE (Results 1 – 24 of 24) sorted by relevance

/components/drivers/usb/cherryusb/port/musb/
A Dusb_hc_musb.c365 HWREGH(USB_RXMAP_BASE(chidx)) = USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize); in musb_bulk_urb_init()
386 if (buflen > USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in musb_bulk_urb_init()
387 buflen = USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize); in musb_bulk_urb_init()
445 if (buflen > USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in musb_intr_urb_init()
446 buflen = USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize); in musb_intr_urb_init()
909 if (size > USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in handle_ep0()
910 size = USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize); in handle_ep0()
945 if (size > USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in handle_ep0()
946 size = USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize); in handle_ep0()
1070 if (size > USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in USBH_IRQHandler()
[all …]
A Dusb_dc_musb.c419 g_musb_udc.out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
428 HWREGH(USB_RXMAP_BASE(ep_idx)) = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
470 g_musb_udc.in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
479 HWREGH(USB_TXMAP_BASE(ep_idx)) = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/port/dwc2/
A Dusb_hc_dwc2.c548 if (buflen > USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in dwc2_control_urb_init()
549 datalen = USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize); in dwc2_control_urb_init()
566 …chan->num_packets = dwc2_calculate_packet_num(8, 0x00, USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSi… in dwc2_control_urb_init()
572 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in dwc2_control_urb_init()
584 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in dwc2_control_urb_init()
596 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in dwc2_control_urb_init()
608 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in dwc2_control_urb_init()
620 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in dwc2_control_urb_init()
635 if (buflen > USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in dwc2_bulk_intr_urb_init()
636 datalen = USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize); in dwc2_bulk_intr_urb_init()
[all …]
A Dusb_dc_dwc2.c682 g_dwc2_udc[busid].out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
688 …USB_OTG_OUTEP(ep_idx)->DOEPCTL |= (USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize) & USB_OTG_DOEPCTL_MPS… in usbd_ep_open()
701 …USB_ASSERT_MSG((fifo_size * 4) >= USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize), "Ep addr %02x fifo ov… in usbd_ep_open()
703 g_dwc2_udc[busid].in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
709 …USB_OTG_INEP(ep_idx)->DIEPCTL |= (USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize) & USB_OTG_DIEPCTL_MPSI… in usbd_ep_open()
/components/drivers/usb/cherryusb/port/fsdev/
A Dusb_dc_fsdev.c171 g_fsdev_udc.out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
178 g_fsdev_udc.out_ep[ep_idx].ep_pma_buf_len = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
182 g_fsdev_udc.pma_offset += USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
185 PCD_SET_EP_RX_CNT(USB, ep_idx, USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize)); in usbd_ep_open()
188 g_fsdev_udc.in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
195 g_fsdev_udc.in_ep[ep_idx].ep_pma_buf_len = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
199 g_fsdev_udc.pma_offset += USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/port/template/
A Dusb_dc.c61 g_xxx_udc.out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
65 g_xxx_udc.in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/class/wireless/
A Dusbh_bluetooth.c82 mps = USB_GET_MAXPACKETSIZE(ep_desc->wMaxPacketSize); in usbh_bluetooth_connect()
200 ep_mps = USB_GET_MAXPACKETSIZE(g_bluetooth_class.bulkin->wMaxPacketSize); in usbh_bluetooth_hci_rx_thread()
283 ep_mps = USB_GET_MAXPACKETSIZE(g_bluetooth_class.intin->wMaxPacketSize); in usbh_bluetooth_hci_evt_rx_thread()
331 ep_mps = USB_GET_MAXPACKETSIZE(g_bluetooth_class.bulkin->wMaxPacketSize); in usbh_bluetooth_hci_acl_rx_thread()
A Dusbh_rndis.c494 if (g_rndis_rx_length % USB_GET_MAXPACKETSIZE(g_rndis_class.bulkin->wMaxPacketSize)) {
/components/drivers/usb/cherryusb/port/bouffalolab/
A Dusb_dc_bl.c673 g_bl_udc.out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
676 bflb_usb_set_outep_mps(ep_idx, USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize)); in usbd_ep_open()
678 g_bl_udc.in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
681 bflb_usb_set_inep_mps(ep_idx, USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize)); in usbd_ep_open()
687 if (USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize) > 512) { in usbd_ep_open()
729 if (USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize) > 512) { in usbd_ep_open()
765 if (USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize) > 512) { in usbd_ep_open()
/components/drivers/usb/cherryusb/port/hpmicro/
A Dusb_dc_hpm.c179 g_hpm_udc[busid].out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
183 g_hpm_udc[busid].in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/port/rp2040/
A Dusb_hc_rp2040.c153 len = MIN(urb->transfer_buffer_length, USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)); in usb_buf_ctrl_fill()
663 if (size == USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) { in rp2040_handle_buffer_status()
672 …if ((size < USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize)) || (urb->transfer_buffer_length == 0))… in rp2040_handle_buffer_status()
726 … if (size < USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize) || urb->transfer_buffer_length == 0) { in rp2040_handle_buffer_status()
A Dusb_dc_rp2040.c224 g_rp2040_udc.out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
233 g_rp2040_udc.in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/core/
A Dusbh_core.h58 USB_GET_MAXPACKETSIZE(ep_desc->wMaxPacketSize), \
A Dusbd_core.c138 USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize)); in usbd_set_endpoint()
141 …g_usbd_core[busid].tx_msg[ep->bEndpointAddress & 0x7f].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPack… in usbd_set_endpoint()
144 …g_usbd_core[busid].rx_msg[ep->bEndpointAddress & 0x7f].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPack… in usbd_set_endpoint()
/components/drivers/usb/cherryusb/port/kinetis/
A Dusb_dc_kinetis.c169 g_kinetis_udc[busid].out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
176 g_kinetis_udc[busid].in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/port/chipidea/
A Dusb_dc_chipidea.c541 g_chipidea_udc[busid].out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
545 g_chipidea_udc[busid].in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/class/cdc/
A Dusbh_cdc_ecm.c274 if (g_cdc_ecm_rx_length % USB_GET_MAXPACKETSIZE(g_cdc_ecm_class.bulkin->wMaxPacketSize) || in usbh_cdc_ecm_rx_thread()
A Dusbh_cdc_ncm.c295 if ((g_cdc_ncm_rx_length % USB_GET_MAXPACKETSIZE(g_cdc_ncm_class.bulkin->wMaxPacketSize)) ||
/components/drivers/usb/cherryusb/class/vendor/net/
A Dusbh_asix.c721 if (g_asix_rx_length % USB_GET_MAXPACKETSIZE(g_asix_class.bulkin->wMaxPacketSize) ||
782 if (!(buflen + 4) % USB_GET_MAXPACKETSIZE(g_asix_class.bulkout->wMaxPacketSize)) {
A Dusbh_rtl8152.c2189 if (g_rtl8152_rx_length % USB_GET_MAXPACKETSIZE(g_rtl8152_class.bulkin->wMaxPacketSize) ||
/components/drivers/usb/cherryusb/port/ehci/
A Dusb_hc_ehci.c350 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in ehci_control_urb_init()
445 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in ehci_bulk_urb_init()
541 USB_GET_MAXPACKETSIZE(urb->ep->wMaxPacketSize), in ehci_intr_urb_init()
/components/drivers/usb/cherryusb/common/
A Dusb_def.h253 #define USB_GET_MAXPACKETSIZE(x) ((x & USB_MAXPACKETSIZE_MASK) >> USB_MAXPACK… macro
/components/drivers/usb/cherryusb/port/aic/
A Dusb_dc_aic.c781 ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
801 g_aic_udc.out_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
814 g_aic_udc.in_ep[ep_idx].ep_mps = USB_GET_MAXPACKETSIZE(ep->wMaxPacketSize); in usbd_ep_open()
/components/drivers/usb/cherryusb/class/vendor/wifi/
A Dusbh_bl616.c457 if (!(txlen % USB_GET_MAXPACKETSIZE(g_bl616_class.bulkout->wMaxPacketSize))) { in usbh_bl616_eth_output()

Completed in 59 milliseconds