/drivers/hdf_core/framework/support/platform/src/i2s/ |
H A D | i2s_core.c | 30 (void)OsalMutexLock(&(cntlr->lock)); in I2sCntlrOpen() 32 (void)OsalMutexUnlock(&(cntlr->lock)); in I2sCntlrOpen() 48 (void)OsalMutexLock(&(cntlr->lock)); in I2sCntlrClose() 50 (void)OsalMutexUnlock(&(cntlr->lock)); in I2sCntlrClose() 66 (void)OsalMutexLock(&(cntlr->lock)); in I2sCntlrEnable() 68 (void)OsalMutexUnlock(&(cntlr->lock)); in I2sCntlrEnable() 84 (void)OsalMutexLock(&(cntlr->lock)); in I2sCntlrDisable() 86 (void)OsalMutexUnlock(&(cntlr->lock)); in I2sCntlrDisable() 103 (void)OsalMutexLock(&(cntlr->lock)); in I2sCntlrStartRead() 113 (void)OsalMutexUnlock(&(cntlr->lock)); in I2sCntlrStartRead() [all...] |
/drivers/hdf_core/framework/support/platform/src/mipi/ |
H A D | mipi_csi_core.c | 16 struct OsalMutex lock; member 39 (void)OsalMutexInit(&g_mipiCsihandle[cntlr->devNo].lock); in MipiCsiRegisterCntlr() 40 (void)OsalMutexInit(&(cntlr->lock)); in MipiCsiRegisterCntlr() 63 (void)OsalMutexDestroy(&(cntlr->lock)); in MipiCsiUnregisterCntlr() 64 (void)OsalMutexDestroy(&(g_mipiCsihandle[cntlr->devNo].lock)); in MipiCsiUnregisterCntlr() 89 (void)OsalMutexLock(&(g_mipiCsihandle[number].lock)); in MipiCsiCntlrGet() 92 (void)OsalMutexUnlock(&(g_mipiCsihandle[number].lock)); in MipiCsiCntlrGet() 133 (void)OsalMutexLock(&(cntlr->lock)); in MipiCsiCntlrSetComboDevAttr() 135 (void)OsalMutexUnlock(&(cntlr->lock)); in MipiCsiCntlrSetComboDevAttr() 160 (void)OsalMutexLock(&(cntlr->lock)); in MipiCsiCntlrSetPhyCmvmode() [all...] |
H A D | mipi_dsi_core.c | 18 struct OsalMutex lock; member 41 (void)OsalMutexInit(&g_mipiDsihandle[cntlr->devNo].lock); in MipiDsiRegisterCntlr() 42 (void)OsalMutexInit(&(cntlr->lock)); in MipiDsiRegisterCntlr() 65 (void)OsalMutexDestroy(&(cntlr->lock)); in MipiDsiUnregisterCntlr() 66 (void)OsalMutexDestroy(&(g_mipiDsihandle[cntlr->devNo].lock)); in MipiDsiUnregisterCntlr() 91 (void)OsalMutexLock(&(g_mipiDsihandle[number].lock)); in MipiDsiCntlrOpen() 94 (void)OsalMutexUnlock(&(g_mipiDsihandle[number].lock)); in MipiDsiCntlrOpen() 136 (void)OsalMutexLock(&(cntlr->lock)); in MipiDsiCntlrSetCfg() 139 (void)OsalMutexUnlock(&(cntlr->lock)); in MipiDsiCntlrSetCfg() 159 (void)OsalMutexLock(&(cntlr->lock)); in MipiDsiCntlrGetCfg() [all...] |
/drivers/peripheral/wlan/chip/hdi_service/ |
H A D | wifi_sta_iface.cpp | 67 std::tie(status, validFrequencies) = vendorHal_.lock()->GetValidFrequenciesForBand( in GetSupportFreqs() 78 WifiError status = vendorHal_.lock()->GetSupportedFeatureSet(ifname_, capabilities); in GetIfaceCap() 87 bool status = ifaceUtil_.lock()->SetMacAddress(ifname_, mac); in SetMacAddress() 96 WifiError status = vendorHal_.lock()->SetCountryCode(ifname_, code); in SetCountryCode() 120 vendorHal_.lock()->RegisterIfaceCallBack(ifname_, chipIfaceCallback); in RegisterChipIfaceCallBack() 131 vendorHal_.lock()->UnRegisterIfaceCallBack(ifname_, chipIfaceCallback); in UnRegisterChipIfaceCallBack() 138 WifiError status = vendorHal_.lock()->StartScan(ifname_, scanParam); in StartScan() 148 WifiError status = vendorHal_.lock()->GetScanInfos(ifname_, scanResultsInfo); in GetScanInfos() 158 WifiError status = vendorHal_.lock()->StartPnoScan(ifname_, pnoParams); in StartPnoScan() 168 WifiError status = vendorHal_.lock() in StopPnoScan() [all...] |
H A D | wifi_ap_iface.cpp | 71 std::tie(status, validFrequencies) = vendorHal_.lock()->GetValidFrequenciesForBand( in GetSupportFreqs() 87 bool status = ifaceUtil_.lock()->SetMacAddress(ifname_, mac); in SetMacAddress() 96 WifiError status = vendorHal_.lock()->SetCountryCode(ifname_, code); in SetCountryCode() 108 std::tie(status, mode) = vendorHal_.lock()->GetPowerMode(ifname_); in GetPowerMode() 118 WifiError status = vendorHal_.lock()->SetPowerMode(ifname_, powerMode); in SetPowerMode() 173 WifiError status = vendorHal_.lock()->SetTxPower(ifname_, power); in SetTxPower() 180 if (ifaceUtil_.lock()->SetUpState(ifname_, state)) { in SetIfaceState() 188 WifiError status = vendorHal_.lock()->SendCmdToDriver(ifName, cmdId, paramBuf); in SendCmdToDriver()
|
H A D | iface_util.cpp | 30 bool success = ifaceTool_.lock()->SetMacAddress(ifaceName.c_str(), mac.c_str()); in SetMacAddress() 41 return ifaceTool_.lock()->SetUpState(ifaceName.c_str(), requestUp); in SetUpState() 46 return ifaceTool_.lock()->GetUpState(ifaceName.c_str()); in GetUpState()
|
H A D | wifi.cpp | 40 std::unique_lock<std::mutex> lock(g_chipMutex); in ChipControllerImplGetInstance() 131 auto lock = AcquireGlobalLock(); in Release() local 132 ErrorCode res = StopVendorHal(&lock); in Release() 171 ErrorCode Wifi::StopVendorHal(std::unique_lock<std::recursive_mutex>* lock) in StopVendorHal() argument 179 WifiError tmp = hal->Stop(lock, [&]() {}); in StopVendorHal() 242 auto lock = AcquireGlobalLock(); in OnRemoteDied() local 243 StopVendorHal(&lock); in OnRemoteDied()
|
/drivers/hdf_core/framework/support/platform/src/timer/ |
H A D | timer_core.c | 24 struct OsalMutex lock; member 39 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in TimerCntrlOpen() 46 (void)OsalMutexUnlock(&manager->lock); in TimerCntrlOpen() 51 (void)OsalMutexUnlock(&manager->lock); in TimerCntrlOpen() 59 if (OsalMutexLock(&cntrl->lock) != HDF_SUCCESS) { in TimerCntrlClose() 65 (void)OsalMutexUnlock(&cntrl->lock); in TimerCntrlClose() 68 (void)OsalMutexUnlock(&cntrl->lock); in TimerCntrlClose() 76 if (OsalMutexLock(&cntrl->lock) != HDF_SUCCESS) { in TimerCntrlSet() 82 (void)OsalMutexUnlock(&cntrl->lock); in TimerCntrlSet() 86 (void)OsalMutexUnlock(&cntrl->lock); in TimerCntrlSet() [all...] |
/drivers/hdf_core/framework/support/platform/src/regulator/ |
H A D | regulator_core.c | 21 struct OsalMutex lock;
member 35 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) {
in RegulatorNodeOpen() 36 HDF_LOGE("RegulatorNodeOpen: lock regulator manager fail!");
in RegulatorNodeOpen() 43 (void)OsalMutexUnlock(&manager->lock);
in RegulatorNodeOpen() 47 (void)OsalMutexUnlock(&manager->lock);
in RegulatorNodeOpen() 52 (void)OsalMutexUnlock(&manager->lock);
in RegulatorNodeOpen() 71 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) {
in RegulatorNodeListPrint() 72 HDF_LOGE("RegulatorNodeListPrint: lock regulator manager fail!");
in RegulatorNodeListPrint() 87 (void)OsalMutexUnlock(&manager->lock);
in RegulatorNodeListPrint() 99 if (OsalMutexLock(&manager->lock) ! in RegulatorNodeSetParent() [all...] |
H A D | regulator_tree_mgr.c | 55 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in RegulatorTreeGetParent() 56 HDF_LOGE("RegulatorTreeGetParent: lock regulator manager fail!"); in RegulatorTreeGetParent() 63 (void)OsalMutexUnlock(&manager->lock); in RegulatorTreeGetParent() 67 (void)OsalMutexUnlock(&manager->lock); in RegulatorTreeGetParent() 74 (void)OsalMutexUnlock(&manager->lock); in RegulatorTreeGetParent() 89 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in RegulatorTreeGetChild() 90 HDF_LOGE("RegulatorTreeGetChild: lock regulator manager fail!"); in RegulatorTreeGetChild() 96 (void)OsalMutexUnlock(&manager->lock); in RegulatorTreeGetChild() 102 (void)OsalMutexUnlock(&manager->lock); in RegulatorTreeGetChild() 195 if (OsalMutexLock(&nodeInfo->child->lock) ! in RegulatorTreeChildForceDisable() [all...] |
/drivers/hdf_core/framework/support/platform/src/pwm/ |
H A D | pwm_core.c | 24 (void)OsalSpinLock(&(pwm->lock)); in PwmDeviceGet() 26 (void)OsalSpinUnlock(&(pwm->lock)); in PwmDeviceGet() 33 (void)OsalSpinUnlock(&(pwm->lock)); in PwmDeviceGet() 40 (void)OsalSpinUnlock(&(pwm->lock)); in PwmDeviceGet() 60 (void)OsalSpinLock(&(pwm->lock)); in PwmDevicePut() 62 (void)OsalSpinUnlock(&(pwm->lock)); in PwmDevicePut() 91 (void)OsalSpinLock(&(pwm->lock)); in PwmDeviceSetConfig() 93 (void)OsalSpinUnlock(&(pwm->lock)); in PwmDeviceSetConfig() 104 (void)OsalSpinLock(&(pwm->lock)); in PwmDeviceGetConfig() 106 (void)OsalSpinUnlock(&(pwm->lock)); in PwmDeviceGetConfig() [all...] |
/drivers/hdf_core/framework/support/platform/src/i2c/ |
H A D | i2c_core.c | 25 struct OsalMutex lock; member 36 return OsalMutexLock(&cntlr->lock); in I2cCntlrLockDefault() 45 (void)OsalMutexUnlock(&cntlr->lock); in I2cCntlrUnlockDefault() 49 .lock = I2cCntlrLockDefault, 67 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in I2cManagerAddCntlr() 68 HDF_LOGE("I2cManagerAddCntlr: lock i2c manager fail!"); in I2cManagerAddCntlr() 80 (void)OsalMutexUnlock(&manager->lock); in I2cManagerAddCntlr() 97 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in I2cManagerRemoveCntlr() 98 HDF_LOGE("I2cManagerRemoveCntlr: lock i2c manager fail!"); in I2cManagerRemoveCntlr() 108 (void)OsalMutexUnlock(&manager->lock); in I2cManagerRemoveCntlr() [all...] |
/drivers/hdf_core/framework/support/platform/src/watchdog/ |
H A D | watchdog_core.c | 38 ret = OsalSpinInit(&cntlr->lock); in WatchdogCntlrAdd() 62 (void)OsalSpinDestroy(&cntlr->lock); in WatchdogCntlrRemove() 107 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrGetStatus() 108 HDF_LOGE("WatchdogCntlrGetStatus: osal spin lock irq save fail!"); in WatchdogCntlrGetStatus() 114 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrGetStatus() 117 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrGetStatus() 135 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrStart() 136 HDF_LOGE("WatchdogCntlrStart: osal spin lock irq save fail!"); in WatchdogCntlrStart() 147 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrStart() 165 if (OsalSpinLockIrqSave(&cntlr->lock, in WatchdogCntlrStop() [all...] |
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
H A D | iservmgr_client.cpp | 63 std::unique_lock<std::mutex> lock(g_remoteMutex); in Get() 85 std::unique_lock<std::mutex> lock(g_remoteMutex); in RegisterServiceStatusListener() 92 lock.unlock(); in RegisterServiceStatusListener() 109 std::unique_lock<std::mutex> lock(g_remoteMutex); in UnregisterServiceStatusListener() 117 lock.unlock(); in UnregisterServiceStatusListener() 133 std::unique_lock<std::mutex> lock(g_remoteMutex); in GetService() 140 lock.unlock(); in GetService() 174 std::unique_lock<std::mutex> lock(g_remoteMutex); in ListAllService() 181 lock.unlock(); in ListAllService() 206 std::unique_lock<std::mutex> lock(g_remoteMute in ListServiceByInterfaceDesc() [all...] |
H A D | object_collector.cpp | 37 std::lock_guard<std::mutex> lock(mutex_); in ConstructorRegister() 44 std::lock_guard<std::mutex> lock(mutex_); in ConstructorUnRegister() 65 std::lock_guard<std::mutex> lock(mutex_); in NewObject() 77 std::unique_lock<std::mutex> lock(mutex_); in GetOrNewObject() 82 lock.unlock(); in GetOrNewObject() 95 std::lock_guard<std::mutex> lock(mutex_); in RemoveObject()
|
H A D | idevmgr_client.cpp | 74 std::unique_lock<std::mutex> lock(g_remoteMutex); in LoadDevice() 80 lock.unlock(); in LoadDevice() 100 std::unique_lock<std::mutex> lock(g_remoteMutex); in UnloadDevice() 106 lock.unlock(); in UnloadDevice() 171 std::unique_lock<std::mutex> lock(g_remoteMutex); in ListAllDevice() 177 lock.unlock(); in ListAllDevice() 224 std::unique_lock<std::mutex> lock(g_remoteMutex); in ListAllHost() 231 lock.unlock(); in ListAllHost() 253 std::unique_lock<std::mutex> lock(g_remoteMutex); in Get()
|
/drivers/hdf_core/adapter/khdf/linux/model/network/wifi/platform/src/ |
H A D | hdf_wlan_queue.c | 27 OSAL_DECLARE_MUTEX(lock); 51 ret = OsalMutexInit(&impl->lock); in CreateQueue() 67 ret = OsalMutexDestroy(&impl->lock); in DestroyQueue() 83 ret = OsalMutexLock(&impl->lock); in PopQueue() 85 HDF_LOGE("%s:Get lock failed!ret=%d", __func__, ret); in PopQueue() 94 ret = OsalMutexUnlock(&impl->lock); in PopQueue() 96 HDF_LOGE("%s:Release lock failed!ret=%d", __func__, ret); in PopQueue() 111 status = OsalMutexLock(&impl->lock); in PushQueue() 113 HDF_LOGE("%s:Get lock failed! status=%d", __func__, status); in PushQueue() 129 status = OsalMutexUnlock(&impl->lock); in PushQueue() [all...] |
/drivers/peripheral/bluetooth/hci/hdi_service/implement/ |
H A D | hci_watcher.cpp | 43 std::lock_guard<std::mutex> lock(fdsMutex_);
in AddFdToWatcher() 51 std::lock_guard<std::mutex> lock(fdsMutex_);
in RemoveFdToWatcher() 60 std::lock_guard<std::mutex> lock(timeoutMutex_);
in SetTimeout() 128 std::lock_guard<std::mutex> lock(fdsMutex_);
in WatcherThread() 136 std::lock_guard<std::mutex> lock(timeoutMutex_);
in WatcherThread() 150 std::lock_guard<std::mutex> lock(timeoutMutex_);
in WatcherThread() 161 std::lock_guard<std::mutex> lock(fdsMutex_);
in WatcherThread()
|
/drivers/peripheral/usb/ddk_service/src/ |
H A D | usb_ddk_hash.cpp | 31 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkHash() 44 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkUnHash() 55 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkDelHashRecord() 61 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkGetRecordByVal()
|
/drivers/peripheral/camera/vdi_base/common/metadata_manager/src/ |
H A D | metadata_controller.cpp | 46 std::unique_lock<std::mutex> lock(queueLock_); in ~MetadataController() 64 std::unique_lock<std::mutex> lock(dataConfigLock_); in SetUpdateSettingCallback() 74 std::unique_lock<std::mutex> lock(dataConfigLock_); in UnSetUpdateSettingCallback() 84 std::unique_lock<std::mutex> lock(queueLock_); in AddNodeCallback() 96 std::unique_lock<std::mutex> lock(queueLock_); in ClearNodeCallback() 102 std::unique_lock<std::mutex> lock(dataConfigLock_); in SetPeerFrameFlag() 108 std::unique_lock<std::mutex> lock(dataConfigLock_); in AddEnabledAbility() 140 std::unique_lock<std::mutex> lock(dataConfigLock_); in GetEnabledAbility() 147 std::unique_lock<std::mutex> lock(dataConfigLock_); in DelEnabledAbility() 178 std::unique_lock<std::mutex> lock(dataConfigLock in GetSettingsConfig() [all...] |
/drivers/peripheral/sensor/hdi_service/ |
H A D | sensor_clients_manager.cpp | 60 std::unique_lock<std::mutex> lock(sensorInfoMutex_);
in CopySensorInfo() 71 std::unique_lock<std::mutex> lock(sensorsDataPackMutex_);
in GetEventData() 78 std::unique_lock<std::mutex> lock(sensorsDataPackMutex_);
in CopyEventData() 99 std::unique_lock<std::mutex> lock(clientsMutex_);
in GetServiceId() 111 std::unique_lock<std::mutex> lock(clientsMutex_);
in ReportDataCbRegister() 132 std::unique_lock<std::mutex> lock(clientsMutex_);
in ReportDataCbUnRegister() 147 std::unique_lock<std::mutex> lock(sensorConfigMutex_);
in UpdateSensorConfig() 163 std::unique_lock<std::mutex> lock(sdcSensorConfigMutex_);
in UpdateSdcSensorConfig() 182 std::unique_lock<std::mutex> lock(clientsMutex_);
in UpdateClientPeriodCount() 211 std::unique_lock<std::mutex> lock(sensorConfigMutex in SetSensorBestConfig() [all...] |
/drivers/hdf_core/framework/support/platform/src/fwk/ |
H A D | platform_listener_u.c | 199 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in PlatformUserListenerReg() 205 (void)OsalMutexUnlock(&manager->lock); in PlatformUserListenerReg() 213 (void)OsalMutexUnlock(&manager->lock); in PlatformUserListenerReg() 218 (void)OsalMutexUnlock(&manager->lock); in PlatformUserListenerReg() 231 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in PlatformUserListenerDestory() 240 (void)OsalMutexUnlock(&manager->lock); in PlatformUserListenerDestory() 247 (void)OsalMutexUnlock(&manager->lock); in PlatformUserListenerDestory() 251 (void)OsalMutexUnlock(&manager->lock); in PlatformUserListenerDestory() 265 if (OsalMutexInit(&manager->lock) != HDF_SUCCESS) { in PlatformUserListenerManagerGet() 284 if (OsalMutexLock(&manager->lock) ! in PlatformUserListenerManagerDestory() [all...] |
/drivers/interface/display/composer/cache_manager/ |
H A D | cache_manager.h | 50 std::lock_guard<std::mutex> lock(mutex_); in ~CacheManager() 78 std::lock_guard<std::mutex> lock(mutex_); in Size() 84 std::lock_guard<std::mutex> lock(mutex_); in InsertCache() 104 std::lock_guard<std::mutex> lock(mutex_); in EraseCache() 120 std::lock_guard<std::mutex> lock(mutex_); in SearchCache() 131 std::lock_guard<std::mutex> lock(mutex_); in TravelCaches() 166 std::lock_guard<std::mutex> lock(mutex_); in ~CacheManager() 194 std::lock_guard<std::mutex> lock(mutex_); in Size() 200 std::lock_guard<std::mutex> lock(mutex_); in InsertCache() 220 std::lock_guard<std::mutex> lock(mutex in EraseCache() [all...] |
/drivers/external_device_manager/services/native/driver_extension_manager/src/device_manager/ |
H A D | device.cpp | 50 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in Connect() 84 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in Connect() 121 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in Disconnect() 147 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in OnConnect() 163 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in OnDisconnect() 194 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in RegisterDrvExtMgrCallback() 210 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in UnregisterDrvExtMgrCallback() 223 std::lock_guard<std::recursive_mutex> lock(deviceMutex_);
in UnregisterDrvExtMgrCallback() 244 auto device = device_.lock();
in OnRemoteDied() 256 auto device = device_.lock();
in OnConnectDone() [all...] |
/drivers/peripheral/usb/hdi_service/include/ |
H A D | usbd.h | 54 struct OsalMutex lock; member 98 struct OsalMutex lock; member 148 struct OsalMutex lock; member 155 struct OsalMutex lock; member 166 struct OsalMutex lock; member
|