Lines Matching refs:mux_lock

98         SemaphoreHandle_t mux_lock;  member
265 xSemaphoreTake(p_usbh_obj->constant.mux_lock, portMAX_DELAY); in handle_pipe_halt_and_flush()
277 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in handle_pipe_halt_and_flush()
283 xSemaphoreTake(p_usbh_obj->constant.mux_lock, portMAX_DELAY); in handle_dev_free()
295 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in handle_dev_free()
311 SemaphoreHandle_t mux_lock = xSemaphoreCreateMutex(); in usbh_install() local
312 if (usbh_obj == NULL || mux_lock == NULL) { in usbh_install()
330 usbh_obj->constant.mux_lock = mux_lock; in usbh_install()
349 if (mux_lock != NULL) { in usbh_install()
350 vSemaphoreDelete(mux_lock); in usbh_install()
366 xSemaphoreTake(usbh_obj->constant.mux_lock, portMAX_DELAY); in usbh_uninstall()
377 xSemaphoreGive(usbh_obj->constant.mux_lock); in usbh_uninstall()
381 vSemaphoreDelete(usbh_obj->constant.mux_lock); in usbh_uninstall()
387 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in usbh_uninstall()
484 xSemaphoreTake(p_usbh_obj->constant.mux_lock, portMAX_DELAY); in usbh_num_devs()
486 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in usbh_num_devs()
773 xSemaphoreTake(p_usbh_obj->constant.mux_lock, portMAX_DELAY); in usbh_ep_alloc()
790 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in usbh_ep_alloc()
818 xSemaphoreTake(p_usbh_obj->constant.mux_lock, portMAX_DELAY); in usbh_ep_free()
838 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in usbh_ep_free()
861 xSemaphoreTake(p_usbh_obj->constant.mux_lock, portMAX_DELAY); in usbh_ep_get_context()
878 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in usbh_ep_get_context()
1038 xSemaphoreTake(p_usbh_obj->constant.mux_lock, portMAX_DELAY); in usbh_hub_enum_done()
1046 xSemaphoreGive(p_usbh_obj->constant.mux_lock); in usbh_hub_enum_done()