| /components/drivers/usb/cherryusb/port/ohci/ |
| A D | usb_hc_ohci.h | 26 #if CONFIG_USB_ALIGN_SIZE <= 32 28 #elif CONFIG_USB_ALIGN_SIZE <= 64 37 #if defined(CONFIG_USB_OHCI_DESC_DCACHE_ENABLE) && (CONFIG_USB_ALIGN_SIZE == 32) 39 #elif defined(CONFIG_USB_OHCI_DESC_DCACHE_ENABLE) && (CONFIG_USB_ALIGN_SIZE == 64) 50 #if defined(CONFIG_USB_OHCI_DESC_DCACHE_ENABLE) && (CONFIG_USB_ALIGN_SIZE == 32) 52 #elif defined(CONFIG_USB_OHCI_DESC_DCACHE_ENABLE) && (CONFIG_USB_ALIGN_SIZE == 64)
|
| /components/drivers/usb/cherryusb/platform/rtthread/ |
| A D | usbh_dfs.c | 42 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in rt_udisk_read() 43 align_buf = rt_malloc_align(size * msc_class->blocksize, CONFIG_USB_ALIGN_SIZE); in rt_udisk_read() 57 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in rt_udisk_read() 74 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in rt_udisk_write() 75 align_buf = rt_malloc_align(size * msc_class->blocksize, CONFIG_USB_ALIGN_SIZE); in rt_udisk_write() 90 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in rt_udisk_write()
|
| A D | usbd_serial.c | 38 …d_serial_cdc_acm_rx_buf[CONFIG_USBDEV_MAX_CDC_ACM_CLASS][USB_ALIGN_UP(512, CONFIG_USB_ALIGN_SIZE)]; 127 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in usbd_serial_write() 128 align_buf = rt_malloc_align(size, CONFIG_USB_ALIGN_SIZE); in usbd_serial_write() 148 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in usbd_serial_write()
|
| A D | usbh_serial.c | 49 …buf[CONFIG_USBHOST_MAX_VENDOR_SERIAL_CLASS][USB_ALIGN_UP(USBH_RX_MAX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 50 …cm_rx_buf[CONFIG_USBHOST_MAX_CDC_ACM_CLASS][USB_ALIGN_UP(USBH_RX_MAX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 197 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in usbh_serial_write() 198 align_buf = rt_malloc_align(size, CONFIG_USB_ALIGN_SIZE); in usbh_serial_write() 262 if ((uint32_t)buffer & (CONFIG_USB_ALIGN_SIZE - 1)) { in usbh_serial_write()
|
| /components/drivers/usb/cherryusb/port/ehci/ |
| A D | usb_hc_ehci.h | 34 #if CONFIG_USB_ALIGN_SIZE <= 32 36 #elif CONFIG_USB_ALIGN_SIZE <= 64 48 #if defined(CONFIG_USB_EHCI_DESC_DCACHE_ENABLE) && (CONFIG_USB_ALIGN_SIZE == 64)
|
| A D | usb_hc_ehci.c | 140 …tr_t)n->urb->transfer_buffer, USB_ALIGN_UP(n->urb->transfer_buffer_length, CONFIG_USB_ALIGN_SIZE)); in ehci_qh_add_head() 1206 USB_ASSERT_MSG(!((uintptr_t)urb->setup % CONFIG_USB_ALIGN_SIZE) && in usbh_submit_urb() 1207 !((uintptr_t)urb->transfer_buffer % CONFIG_USB_ALIGN_SIZE), in usbh_submit_urb() 1208 "urb->setup or urb->transfer_buffer is not aligned %d", CONFIG_USB_ALIGN_SIZE); in usbh_submit_urb()
|
| /components/drivers/usb/cherryusb/class/wireless/ |
| A D | usbh_bluetooth.c | 18 … uint8_t g_bluetooth_tx_buf[USB_ALIGN_UP(CONFIG_USBHOST_BLUETOOTH_TX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 19 … uint8_t g_bluetooth_rx_buf[USB_ALIGN_UP(CONFIG_USBHOST_BLUETOOTH_RX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 21 …E_RAM_SECTION USB_MEM_ALIGNX uint8_t g_bluetooth_cmd_buf[USB_ALIGN_UP(256, CONFIG_USB_ALIGN_SIZE)]; 22 …E_RAM_SECTION USB_MEM_ALIGNX uint8_t g_bluetooth_evt_buf[USB_ALIGN_UP(256, CONFIG_USB_ALIGN_SIZE)]; 23 … uint8_t g_bluetooth_tx_buf[USB_ALIGN_UP(CONFIG_USBHOST_BLUETOOTH_TX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 24 … uint8_t g_bluetooth_rx_buf[USB_ALIGN_UP(CONFIG_USBHOST_BLUETOOTH_RX_SIZE, CONFIG_USB_ALIGN_SIZE)];
|
| A D | usbd_rndis.c | 42 …8_t g_rndis_rx_buffer[USB_ALIGN_UP(CONFIG_USBDEV_RNDIS_ETH_MAX_FRAME_SIZE, CONFIG_USB_ALIGN_SIZE)]; 43 …8_t g_rndis_tx_buffer[USB_ALIGN_UP(CONFIG_USBDEV_RNDIS_ETH_MAX_FRAME_SIZE, CONFIG_USB_ALIGN_SIZE)]; 46 …ncapsulated_resp_buffer[USB_ALIGN_UP(CONFIG_USBDEV_RNDIS_RESP_BUFFER_SIZE, CONFIG_USB_ALIGN_SIZE)]; 47 …M_SECTION USB_MEM_ALIGNX uint8_t NOTIFY_RESPONSE_AVAILABLE[USB_ALIGN_UP(8, CONFIG_USB_ALIGN_SIZE)];
|
| A D | usbh_rndis.c | 21 …nt8_t g_rndis_rx_buffer[USB_ALIGN_UP(CONFIG_USBHOST_RNDIS_ETH_MAX_RX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 22 …nt8_t g_rndis_tx_buffer[USB_ALIGN_UP(CONFIG_USBHOST_RNDIS_ETH_MAX_TX_SIZE, CONFIG_USB_ALIGN_SIZE)];
|
| /components/drivers/usb/cherryusb/port/pusb2/rt-thread/ |
| A D | usb_config.h | 38 #ifndef CONFIG_USB_ALIGN_SIZE 39 #define CONFIG_USB_ALIGN_SIZE 4 macro
|
| /components/drivers/usb/cherryusb/ |
| A D | cherryusb_config_template.h | 30 #define CONFIG_USB_ALIGN_SIZE 32 // 32 or 64 macro 32 #define CONFIG_USB_ALIGN_SIZE 4 macro
|
| /components/drivers/usb/cherryusb/port/xhci/phytium/rt-thread/ |
| A D | usb_config.h | 50 #ifndef CONFIG_USB_ALIGN_SIZE 51 #define CONFIG_USB_ALIGN_SIZE 4 macro
|
| /components/drivers/usb/cherryusb/class/cdc/ |
| A D | usbd_cdc_ecm.c | 20 …NX uint8_t g_cdc_ecm_rx_buffer[USB_ALIGN_UP(CONFIG_CDC_ECM_ETH_MAX_SEGSZE, CONFIG_USB_ALIGN_SIZE)]; 21 …NX uint8_t g_cdc_ecm_tx_buffer[USB_ALIGN_UP(CONFIG_CDC_ECM_ETH_MAX_SEGSZE, CONFIG_USB_ALIGN_SIZE)]; 23 …E_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ecm_notify_buf[USB_ALIGN_UP(16, CONFIG_USB_ALIGN_SIZE)];
|
| A D | usbh_cdc_ecm.c | 27 …t8_t g_cdc_ecm_rx_buffer[USB_ALIGN_UP(CONFIG_USBHOST_CDC_ECM_ETH_MAX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 28 …t8_t g_cdc_ecm_tx_buffer[USB_ALIGN_UP(CONFIG_USBHOST_CDC_ECM_ETH_MAX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 29 …RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ecm_inttx_buffer[USB_ALIGN_UP(16, CONFIG_USB_ALIGN_SIZE)];
|
| A D | usbh_cdc_ncm.c | 28 …RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_inttx_buffer[USB_ALIGN_UP(16, CONFIG_USB_ALIGN_SIZE)]; 30 …_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_cdc_ncm_buf[USB_ALIGN_UP(32, CONFIG_USB_ALIGN_SIZE)];
|
| A D | usbh_cdc_acm.c | 15 …X uint8_t g_cdc_acm_buf[CONFIG_USBHOST_MAX_CDC_ACM_CLASS][USB_ALIGN_UP(64, CONFIG_USB_ALIGN_SIZE)];
|
| /components/drivers/usb/cherryusb/common/ |
| A D | usb_dcache.h | 10 #if CONFIG_USB_ALIGN_SIZE % 32
|
| A D | usb_util.h | 212 #define USB_MEM_ALIGNX __attribute__((aligned(CONFIG_USB_ALIGN_SIZE)))
|
| /components/drivers/usb/cherryusb/port/dwc2/ |
| A D | usb_dc_dwc2.c | 785 …usb_dcache_invalidate((uintptr_t)&g_dwc2_udc[busid].setup, USB_ALIGN_UP(8, CONFIG_USB_ALIGN_SIZE)); in usbd_ep_set_stall() 840 …USB_ASSERT_MSG(!((uint32_t)data % CONFIG_USB_ALIGN_SIZE), "dwc2 data must be %d-byte aligned", CON… in usbd_ep_start_write() 895 usb_dcache_clean((uintptr_t)data, USB_ALIGN_UP(data_len, CONFIG_USB_ALIGN_SIZE)); in usbd_ep_start_write() 917 …USB_ASSERT_MSG(!((uint32_t)data % CONFIG_USB_ALIGN_SIZE), "dwc2 data must be %d-byte aligned", CON… in usbd_ep_start_read() 956 usb_dcache_invalidate((uintptr_t)data, USB_ALIGN_UP(data_len, CONFIG_USB_ALIGN_SIZE)); in usbd_ep_start_read() 1032 …].xfer_buf, USB_ALIGN_UP(g_dwc2_udc[busid].out_ep[ep_idx].actual_xfer_len, CONFIG_USB_ALIGN_SIZE)); in USBD_IRQHandler() 1044 …].xfer_buf, USB_ALIGN_UP(g_dwc2_udc[busid].out_ep[ep_idx].actual_xfer_len, CONFIG_USB_ALIGN_SIZE)); in USBD_IRQHandler() 1054 …usb_dcache_invalidate((uintptr_t)&g_dwc2_udc[busid].setup, USB_ALIGN_UP(8, CONFIG_USB_ALIGN_SIZE)); in USBD_IRQHandler()
|
| A D | usb_hc_dwc2.c | 1005 USB_ASSERT_MSG(!((uintptr_t)urb->setup % CONFIG_USB_ALIGN_SIZE) && in usbh_submit_urb() 1006 !((uintptr_t)urb->transfer_buffer % CONFIG_USB_ALIGN_SIZE), in usbh_submit_urb() 1007 "urb->setup or urb->transfer_buffer is not aligned %d", CONFIG_USB_ALIGN_SIZE); in usbh_submit_urb() 1065 …clean((uintptr_t)urb->setup, USB_ALIGN_UP(sizeof(struct usb_setup_packet), CONFIG_USB_ALIGN_SIZE)); in usbh_submit_urb() 1069 …(uintptr_t)urb->transfer_buffer, USB_ALIGN_UP(urb->transfer_buffer_length, CONFIG_USB_ALIGN_SIZE)); in usbh_submit_urb() 1071 …(uintptr_t)urb->transfer_buffer, USB_ALIGN_UP(urb->transfer_buffer_length, CONFIG_USB_ALIGN_SIZE)); in usbh_submit_urb() 1076 …(uintptr_t)urb->transfer_buffer, USB_ALIGN_UP(urb->transfer_buffer_length, CONFIG_USB_ALIGN_SIZE)); in usbh_submit_urb() 1078 …(uintptr_t)urb->transfer_buffer, USB_ALIGN_UP(urb->transfer_buffer_length, CONFIG_USB_ALIGN_SIZE)); in usbh_submit_urb() 1222 …validate((uintptr_t)urb->transfer_buffer, USB_ALIGN_UP(urb->actual_length, CONFIG_USB_ALIGN_SIZE)); in dwc2_inchan_irq_handler() 1350 …date((uintptr_t)urb->transfer_buffer, USB_ALIGN_UP(urb->actual_length - 8, CONFIG_USB_ALIGN_SIZE)); in dwc2_outchan_irq_handler()
|
| /components/drivers/usb/cherryusb/class/vendor/net/ |
| A D | usbh_asix.c | 18 …uint8_t g_asix_rx_buffer[USB_ALIGN_UP(CONFIG_USBHOST_ASIX_ETH_MAX_TX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 19 …uint8_t g_asix_tx_buffer[USB_ALIGN_UP(CONFIG_USBHOST_ASIX_ETH_MAX_RX_SIZE, CONFIG_USB_ALIGN_SIZE)]; 20 …HE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_asix_inttx_buffer[USB_ALIGN_UP(16, CONFIG_USB_ALIGN_SIZE)]; 22 …USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_asix_buf[USB_ALIGN_UP(32, CONFIG_USB_ALIGN_SIZE)];
|
| /components/drivers/usb/cherryusb/class/msc/ |
| A D | usbh_msc.c | 20 …LIGNX uint8_t g_msc_cbw_csw[CONFIG_USBHOST_MAX_MSC_CLASS][USB_ALIGN_UP(64, CONFIG_USB_ALIGN_SIZE)]; 21 …EM_ALIGNX uint8_t g_msc_buf[CONFIG_USBHOST_MAX_MSC_CLASS][USB_ALIGN_UP(64, CONFIG_USB_ALIGN_SIZE)];
|
| /components/drivers/usb/cherryusb/class/vendor/serial/ |
| A D | usbh_ch34x.c | 11 USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_ch34x_buf[USB_ALIGN_UP(64, CONFIG_USB_ALIGN_SIZE)];
|
| /components/drivers/usb/cherryusb/class/adb/ |
| A D | usbd_adb.c | 43 USB_MEM_ALIGNX uint8_t payload[USB_ALIGN_UP(MAX_PAYLOAD, CONFIG_USB_ALIGN_SIZE)];
|
| /components/drivers/usb/cherryusb/class/aoa/ |
| A D | usbh_aoa.c | 15 USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_aoa_buffer[USB_ALIGN_UP(128, CONFIG_USB_ALIGN_SIZE…
|