Lines Matching refs:usbh_obj
310 usbh_t *usbh_obj = heap_caps_calloc(1, sizeof(usbh_t), MALLOC_CAP_DEFAULT); in usbh_install() local
312 if (usbh_obj == NULL || mux_lock == NULL) { in usbh_install()
322 TAILQ_INIT(&usbh_obj->dynamic.devs_idle_tailq); in usbh_install()
323 TAILQ_INIT(&usbh_obj->dynamic.devs_pending_tailq); in usbh_install()
324 usbh_obj->constant.notif_cb = usbh_config->notif_cb; in usbh_install()
325 usbh_obj->constant.notif_cb_arg = usbh_config->notif_cb_arg; in usbh_install()
326 usbh_obj->constant.event_cb = usbh_config->event_cb; in usbh_install()
327 usbh_obj->constant.event_cb_arg = usbh_config->event_cb_arg; in usbh_install()
328 usbh_obj->constant.ctrl_xfer_cb = usbh_config->ctrl_xfer_cb; in usbh_install()
329 usbh_obj->constant.ctrl_xfer_cb_arg = usbh_config->ctrl_xfer_cb_arg; in usbh_install()
330 usbh_obj->constant.mux_lock = mux_lock; in usbh_install()
339 p_usbh_obj = usbh_obj; in usbh_install()
352 heap_caps_free(usbh_obj); in usbh_install()
361 usbh_t *usbh_obj = p_usbh_obj; in usbh_uninstall() local
366 xSemaphoreTake(usbh_obj->constant.mux_lock, portMAX_DELAY); in usbh_uninstall()
374 assert(p_usbh_obj == usbh_obj); in usbh_uninstall()
377 xSemaphoreGive(usbh_obj->constant.mux_lock); in usbh_uninstall()
381 vSemaphoreDelete(usbh_obj->constant.mux_lock); in usbh_uninstall()
382 heap_caps_free(usbh_obj); in usbh_uninstall()