Searched refs:gpd_mgr (Results 1 – 1 of 1) sorted by relevance
102 struct gpd_onoff_manager *gpd_mgr = CONTAINER_OF(mgr_, struct gpd_onoff_manager, mgr); in request_cb() local104 gpd_mgr->res = res; in request_cb()105 k_sem_give(&gpd_mgr->sem); in request_cb()108 static int nrf_gpd_sync(struct gpd_onoff_manager *gpd_mgr) in nrf_gpd_sync() argument115 key = k_spin_lock(&gpd_mgr->mgr.lock); in nrf_gpd_sync()117 if (gpd_mgr->mgr.refs == 0) { in nrf_gpd_sync()123 k_spin_unlock(&gpd_mgr->mgr.lock, key); in nrf_gpd_sync()128 err = nrfs_gdpwr_power_request(gpd_mgr->id, request, gpd_mgr); in nrf_gpd_sync()154 struct gpd_onoff_manager *gpd_mgr = context; in evt_handler() local158 gpd_mgr->notify(&gpd_mgr->mgr, 0); in evt_handler()[all …]