Lines Matching refs:host_lib_obj
368 host_lib_t *host_lib_obj = heap_caps_calloc(1, sizeof(host_lib_t), MALLOC_CAP_DEFAULT); in usb_host_install() local
371 if (host_lib_obj == NULL || event_sem == NULL || mux_lock == NULL) { in usb_host_install()
376 TAILQ_INIT(&host_lib_obj->mux_protected.client_tailq); in usb_host_install()
377 host_lib_obj->constant.event_sem = event_sem; in usb_host_install()
378 host_lib_obj->constant.mux_lock = mux_lock; in usb_host_install()
389 ret = usb_new_phy(&phy_config, &host_lib_obj->constant.phy_handle); in usb_host_install()
427 p_host_lib_obj = host_lib_obj; in usb_host_install()
451 heap_caps_free(host_lib_obj); in usb_host_install()
473 host_lib_t *host_lib_obj = p_host_lib_obj; in usb_host_uninstall() local
478 if (host_lib_obj->constant.phy_handle) { in usb_host_uninstall()
479 ESP_ERROR_CHECK(usb_del_phy(host_lib_obj->constant.phy_handle)); in usb_host_uninstall()
482 vSemaphoreDelete(host_lib_obj->constant.mux_lock); in usb_host_uninstall()
483 vSemaphoreDelete(host_lib_obj->constant.event_sem); in usb_host_uninstall()
484 heap_caps_free(host_lib_obj); in usb_host_uninstall()