Lines Matching refs:prov_ctx_lock

140 static SemaphoreHandle_t prov_ctx_lock = NULL;  variable
170 RELEASE_LOCK(prov_ctx_lock); in execute_event_cb()
188 ACQUIRE_LOCK(prov_ctx_lock); in execute_event_cb()
199 if (!prov_ctx_lock) { in wifi_prov_mgr_set_app_info()
205 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_set_app_info()
231 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_set_app_info()
401 if (!prov_ctx_lock) { in wifi_prov_mgr_endpoint_create()
408 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_endpoint_create()
420 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_endpoint_create()
426 if (!prov_ctx_lock) { in wifi_prov_mgr_endpoint_register()
433 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_endpoint_register()
439 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_endpoint_register()
449 if (!prov_ctx_lock) { in wifi_prov_mgr_endpoint_unregister()
454 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_endpoint_unregister()
460 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_endpoint_unregister()
501 ACQUIRE_LOCK(prov_ctx_lock); in prov_stop_task()
503 RELEASE_LOCK(prov_ctx_lock); in prov_stop_task()
541 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_service()
543 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_service()
550 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_service()
552 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_service()
607 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_service()
609 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_service()
635 if (!prov_ctx_lock) { in wifi_prov_mgr_disable_auto_stop()
641 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_disable_auto_stop()
651 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_disable_auto_stop()
658 if (!prov_ctx_lock) { in wifi_prov_mgr_done()
664 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_done()
668 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_done()
802 if (!prov_ctx_lock) { in wifi_prov_mgr_event_handler_internal()
806 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_event_handler_internal()
812 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_event_handler_internal()
826 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_event_handler_internal()
893 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_event_handler_internal()
899 if (!prov_ctx_lock) { in wifi_prov_mgr_wifi_scan_start()
903 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_start()
907 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_start()
913 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_start()
948 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_start()
955 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_start()
965 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_start()
967 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_start()
978 if (!prov_ctx_lock) { in wifi_prov_mgr_wifi_scan_finished()
983 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_finished()
986 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_finished()
991 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_finished()
998 if (!prov_ctx_lock) { in wifi_prov_mgr_wifi_scan_result_count()
1003 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_result_count()
1006 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_result_count()
1016 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_result_count()
1023 if (!prov_ctx_lock) { in wifi_prov_mgr_wifi_scan_result()
1028 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_result()
1031 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_result()
1038 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wifi_scan_result()
1044 if (!prov_ctx_lock) { in wifi_prov_mgr_get_wifi_state()
1049 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_get_wifi_state()
1051 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_get_wifi_state()
1056 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_get_wifi_state()
1062 if (!prov_ctx_lock) { in wifi_prov_mgr_get_wifi_disconnect_reason()
1067 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_get_wifi_disconnect_reason()
1069 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_get_wifi_disconnect_reason()
1074 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_get_wifi_disconnect_reason()
1079 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_get_wifi_disconnect_reason()
1104 if (!prov_ctx_lock) { in wifi_prov_mgr_is_provisioned()
1131 if (!prov_ctx_lock) { in wifi_prov_mgr_configure_sta()
1136 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1139 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1144 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1152 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1165 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1172 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1179 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1188 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_configure_sta()
1195 if (!prov_ctx_lock) { in wifi_prov_mgr_init()
1201 prov_ctx_lock = xSemaphoreCreateMutex(); in wifi_prov_mgr_init()
1202 if (!prov_ctx_lock) { in wifi_prov_mgr_init()
1224 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_init()
1227 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_init()
1235 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_init()
1294 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_init()
1300 if (!prov_ctx_lock) { in wifi_prov_mgr_wait()
1306 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wait()
1309 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wait()
1315 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_wait()
1320 if (!prov_ctx_lock) { in wifi_prov_mgr_deinit()
1325 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_deinit()
1339 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_deinit()
1361 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_deinit()
1397 if (!prov_ctx_lock) { in wifi_prov_mgr_start_provisioning()
1402 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_start_provisioning()
1405 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_start_provisioning()
1411 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_start_provisioning()
1519 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_start_provisioning()
1528 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_start_provisioning()
1547 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_start_provisioning()
1553 if (!prov_ctx_lock) { in wifi_prov_mgr_stop_provisioning()
1558 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_provisioning()
1568 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_stop_provisioning()
1585 if (!prov_ctx_lock) { in wifi_prov_mgr_reset_sm_state_on_failure()
1590 ACQUIRE_LOCK(prov_ctx_lock); in wifi_prov_mgr_reset_sm_state_on_failure()
1610 RELEASE_LOCK(prov_ctx_lock); in wifi_prov_mgr_reset_sm_state_on_failure()