| /bsp/stm32/libraries/HAL_Drivers/drivers/ |
| A D | drv_usbh.c | 231 uhcd_t uhcd = (uhcd_t)rt_malloc(sizeof(struct uhcd)); in stm_usbh_register() local 232 if (uhcd == RT_NULL) in stm_usbh_register() 238 rt_memset((void *)uhcd, 0, sizeof(struct uhcd)); in stm_usbh_register() 240 uhcd->parent.type = RT_Device_Class_USBHost; in stm_usbh_register() 241 uhcd->parent.init = stm32_hcd_init; in stm_usbh_register() 242 uhcd->parent.user_data = &stm32_hhcd_fs; in stm_usbh_register() 244 uhcd->ops = &_uhcd_ops; in stm_usbh_register() 245 uhcd->num_ports = OTG_FS_PORT; in stm_usbh_register() 246 stm32_hhcd_fs.pData = uhcd; in stm_usbh_register() 248 res = rt_device_register(&uhcd->parent, "usbh", RT_DEVICE_FLAG_DEACTIVATE); in stm_usbh_register()
|
| /bsp/wch/arm/ch579m/board/ |
| A D | drv_usbh.c | 24 static struct uhcd uhcd; variable 238 rt_usbh_root_hub_connect_handler(&uhcd, 1, RT_FALSE); in USB_IRQHandler() 243 rt_usbh_root_hub_disconnect_handler(&uhcd, 1); in USB_IRQHandler() 279 rt_memset((void *)&uhcd, 0, sizeof(struct uhcd)); in rt_hw_usbh_init() 280 uhcd.parent.type = RT_Device_Class_USBHost; in rt_hw_usbh_init() 281 uhcd.parent.init = hcd_init; in rt_hw_usbh_init() 282 uhcd.ops = &uhcd_ops; in rt_hw_usbh_init() 283 uhcd.num_ports = 1; in rt_hw_usbh_init() 285 res = rt_device_register(&uhcd.parent, "usbh", RT_DEVICE_FLAG_DEACTIVATE); in rt_hw_usbh_init()
|
| /bsp/nxp/imx/imxrt/libraries/drivers/ |
| A D | drv_usbh.c | 69 struct uhcd uhcd; member 708 rt_memset((void *)(&(usb_host_obj->uhcd)), 0, sizeof(struct uhcd)); in imxrt_usbh_register() 710 usb_host_obj->uhcd.parent.init = _ehci0_usbh_init; in imxrt_usbh_register() 711 usb_host_obj->uhcd.parent.user_data = usb_host_obj; in imxrt_usbh_register() 712 usb_host_obj->uhcd.ops = &_ehci0_uhcd_ops; in imxrt_usbh_register() 713 usb_host_obj->uhcd.num_ports = OTG_PORT; in imxrt_usbh_register() 725 rt_memset((void *)(&(usb_host_obj->uhcd)), 0, sizeof(struct uhcd)); in imxrt_usbh_register() 727 usb_host_obj->uhcd.parent.init = _ehci1_usbh_init; in imxrt_usbh_register() 728 usb_host_obj->uhcd.parent.user_data = usb_host_obj; in imxrt_usbh_register() 729 usb_host_obj->uhcd.ops = &_ehci1_uhcd_ops; in imxrt_usbh_register() [all …]
|
| /bsp/wch/risc-v/Libraries/ch32_drivers/ |
| A D | drv_usbh.c | 19 static struct uhcd uhcd; variable 243 rt_usbh_root_hub_connect_handler(&uhcd, 1, RT_FALSE); in OTG_HS_IRQHandler() 251 rt_usbh_root_hub_disconnect_handler(&uhcd, 1); in OTG_HS_IRQHandler() 268 rt_memset((void *)&uhcd, 0, sizeof(struct uhcd)); in rt_hw_usbh_init() 269 uhcd.parent.type = RT_Device_Class_USBHost; in rt_hw_usbh_init() 270 uhcd.parent.init = hcd_init; in rt_hw_usbh_init() 271 uhcd.ops = &uhcd_ops; in rt_hw_usbh_init() 272 uhcd.num_ports = 1; in rt_hw_usbh_init() 274 res = rt_device_register(&uhcd.parent, "usbh", RT_DEVICE_FLAG_DEACTIVATE); in rt_hw_usbh_init()
|
| A D | drv_usbd.c | 401 rt_memset((void *)&udcd, 0, sizeof(struct uhcd)); in rt_hw_usbd_init()
|
| /bsp/at32/libraries/rt_drivers/ |
| A D | drv_usbotgh.c | 383 uhcd_t uhcd = (uhcd_t)rt_malloc(sizeof(struct uhcd)); in at32_usbh_register() local 384 if (uhcd == RT_NULL) in at32_usbh_register() 389 rt_memset((void *)uhcd, 0, sizeof(struct uhcd)); in at32_usbh_register() 399 uhcd->parent.type = RT_Device_Class_USBHost; in at32_usbh_register() 400 uhcd->parent.init = at32_hcd_init; in at32_usbh_register() 401 uhcd->parent.user_data = &(p_otg_core->host); in at32_usbh_register() 403 uhcd->ops = &_uhcd_ops; in at32_usbh_register() 404 uhcd->num_ports = 1; in at32_usbh_register() 405 p_otg_core->host.pdata = uhcd; in at32_usbh_register() 408 … result = rt_device_register(&uhcd->parent, usbotgh_config[index].name, RT_DEVICE_FLAG_DEACTIVATE); in at32_usbh_register()
|
| /bsp/hc32/libraries/hc32_drivers/ |
| A D | drv_usbh.c | 1147 uhcd_t uhcd = (uhcd_t)rt_malloc(sizeof(struct uhcd)); in rt_hw_usbh_init() local 1148 if (uhcd == RT_NULL) in rt_hw_usbh_init() 1154 rt_memset((void *)uhcd, 0, sizeof(struct uhcd)); in rt_hw_usbh_init() 1156 uhcd->parent.type = RT_Device_Class_USBHost; in rt_hw_usbh_init() 1157 uhcd->parent.init = _usbh_init; in rt_hw_usbh_init() 1158 uhcd->parent.user_data = &_hc32_usbh; in rt_hw_usbh_init() 1160 uhcd->ops = &_uhcd_ops; in rt_hw_usbh_init() 1161 uhcd->num_ports = USB_FS_PORT; in rt_hw_usbh_init() 1162 _hc32_usbh.pData = uhcd; in rt_hw_usbh_init() 1164 res = rt_device_register(&uhcd->parent, "usbh", RT_DEVICE_FLAG_DEACTIVATE); in rt_hw_usbh_init()
|
| /bsp/nuvoton/libraries/m460/rtt_port/ |
| A D | drv_usbhost.c | 85 struct uhcd uhcd; member 717 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_TRUE); in nu_hcd_connect_callback() 719 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_FALSE); in nu_hcd_connect_callback() 757 rt_usbh_root_hub_disconnect_handler(&s_sUSBHDev.uhcd, port_index); in nu_hcd_disconnect_callback() 868 psUHCD = (uhcd_t)&s_sUSBHDev.uhcd; in nu_usbh_register()
|
| /bsp/nuvoton/libraries/m480/rtt_port/ |
| A D | drv_usbhost.c | 88 struct uhcd uhcd; member 703 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_TRUE); in nu_hcd_connect_callback() 705 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_FALSE); in nu_hcd_connect_callback() 743 rt_usbh_root_hub_disconnect_handler(&s_sUSBHDev.uhcd, port_index); in nu_hcd_disconnect_callback() 854 psUHCD = (uhcd_t)&s_sUSBHDev.uhcd; in nu_usbh_register()
|
| /bsp/nuvoton/libraries/m2354/rtt_port/ |
| A D | drv_usbhost.c | 86 struct uhcd uhcd; member 701 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_TRUE); in nu_hcd_connect_callback() 703 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_FALSE); in nu_hcd_connect_callback() 741 rt_usbh_root_hub_disconnect_handler(&s_sUSBHDev.uhcd, port_index); in nu_hcd_disconnect_callback() 851 psUHCD = (uhcd_t)&s_sUSBHDev.uhcd; in nu_usbh_register()
|
| /bsp/nuvoton/libraries/ma35/rtt_port/ |
| A D | drv_usbhost.c | 83 struct uhcd uhcd; member 743 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_TRUE); in nu_hcd_connect_callback() 745 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_FALSE); in nu_hcd_connect_callback() 783 rt_usbh_root_hub_disconnect_handler(&s_sUSBHDev.uhcd, port_index); in nu_hcd_disconnect_callback() 894 psUHCD = (uhcd_t)&s_sUSBHDev.uhcd; in nu_usbh_register()
|
| /bsp/nuvoton/libraries/n9h30/rtt_port/ |
| A D | drv_usbhost.c | 85 struct uhcd uhcd; member 792 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_TRUE); in nu_hcd_connect_callback() 794 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_FALSE); in nu_hcd_connect_callback() 832 rt_usbh_root_hub_disconnect_handler(&s_sUSBHDev.uhcd, port_index); in nu_hcd_disconnect_callback() 951 psUHCD = (uhcd_t)&s_sUSBHDev.uhcd; in nu_usbh_register()
|
| /bsp/nuvoton/libraries/nuc980/rtt_port/ |
| A D | drv_usbhost.c | 85 struct uhcd uhcd; member 792 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_TRUE); in nu_hcd_connect_callback() 794 rt_usbh_root_hub_connect_handler(&s_sUSBHDev.uhcd, port_index, RT_FALSE); in nu_hcd_connect_callback() 832 rt_usbh_root_hub_disconnect_handler(&s_sUSBHDev.uhcd, port_index); in nu_hcd_disconnect_callback() 951 psUHCD = (uhcd_t)&s_sUSBHDev.uhcd; in nu_usbh_register()
|