Home
last modified time | relevance | path

Searched refs:CONFIG_USB_ALIGN_SIZE (Results 1 – 25 of 35) sorted by relevance

12

/components/drivers/usb/cherryusb/port/ohci/
A Dusb_hc_ohci.h26 #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 Dusbh_dfs.c42 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 Dusbd_serial.c38 …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 Dusbh_serial.c49 …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 Dusb_hc_ehci.h34 #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 Dusb_hc_ehci.c140 …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 Dusbh_bluetooth.c18 … 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 Dusbd_rndis.c42 …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 Dusbh_rndis.c21 …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 Dusb_config.h38 #ifndef CONFIG_USB_ALIGN_SIZE
39 #define CONFIG_USB_ALIGN_SIZE 4 macro
/components/drivers/usb/cherryusb/
A Dcherryusb_config_template.h30 #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 Dusb_config.h50 #ifndef CONFIG_USB_ALIGN_SIZE
51 #define CONFIG_USB_ALIGN_SIZE 4 macro
/components/drivers/usb/cherryusb/class/cdc/
A Dusbd_cdc_ecm.c20 …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 Dusbh_cdc_ecm.c27 …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 Dusbh_cdc_ncm.c28 …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 Dusbh_cdc_acm.c15 …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 Dusb_dcache.h10 #if CONFIG_USB_ALIGN_SIZE % 32
A Dusb_util.h212 #define USB_MEM_ALIGNX __attribute__((aligned(CONFIG_USB_ALIGN_SIZE)))
/components/drivers/usb/cherryusb/port/dwc2/
A Dusb_dc_dwc2.c785 …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 Dusb_hc_dwc2.c1005 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 Dusbh_asix.c18 …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 Dusbh_msc.c20 …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 Dusbh_ch34x.c11 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 Dusbd_adb.c43 USB_MEM_ALIGNX uint8_t payload[USB_ALIGN_UP(MAX_PAYLOAD, CONFIG_USB_ALIGN_SIZE)];
/components/drivers/usb/cherryusb/class/aoa/
A Dusbh_aoa.c15 USB_NOCACHE_RAM_SECTION USB_MEM_ALIGNX uint8_t g_aoa_buffer[USB_ALIGN_UP(128, CONFIG_USB_ALIGN_SIZE

Completed in 31 milliseconds

12