Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 200) sorted by relevance

12345678

/drivers/hdf_core/framework/support/platform/src/mipi/
Dmipi_dsi_core.c18 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 …]
Dmipi_csi_core.c16 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 …]
/drivers/hdf_core/framework/support/platform/src/i2s/
Di2s_core.c30 (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/interface/power/v1_2/
DRunningLockTypes.idl33 * @brief Enumerates data types related to running lock management.
35 * Such data types include running lock types and running lock information.
44 * @brief Enumerates base running lock types.
50 * Running lock for keeping screen on.
54 * Running lock for keeping the CPU on to finish background tasks.
58 * Running lock for controlling screen on and off by proximity sensor.
64 * @brief Enumerates running lock types.
70 * Running lock for keeping background phone tasks to finish.
74 * Running lock for keeping background notification tasks to finish.
78 * Running lock for keeping background audio tasks to finish.
[all …]
DIPowerInterface.idl98 * @brief Enables the running lock to block device hibernation.
100 * @param name Name of the running lock.
110 * @brief Disables the running lock to unblock device hibernation.
112 * @param name Name of the running lock.
133 * @brief Holds the running lock to block device hibernation.
135 * @param info Running lock info.
138 * running lock type conflicts with current lock.
145 * @brief Unholds the running lock to unblock device hibernation.
147 * @param info Running lock info.
167 * @brief Holds the running lock to block device hibernation.
[all …]
/drivers/interface/power/v1_1/
DRunningLockTypes.idl33 * @brief Enumerates data types related to running lock management.
35 * Such data types include running lock types and running lock information.
44 * @brief Enumerates base running lock types.
50 * Running lock for keeping screen on.
54 * Running lock for keeping the CPU on to finish background tasks.
58 * Running lock for controlling screen on and off by proximity sensor.
64 * @brief Enumerates running lock types.
70 * Running lock for keeping background phone tasks to finish.
74 * Running lock for keeping background notification tasks to finish.
78 * Running lock for keeping background audio tasks to finish.
[all …]
DIPowerInterface.idl98 * @brief Enables the running lock to block device hibernation.
100 * @param name Name of the running lock.
110 * @brief Disables the running lock to unblock device hibernation.
112 * @param name Name of the running lock.
133 * @brief Holds the running lock to block device hibernation.
135 * @param info Running lock info.
138 * running lock type conflicts with current lock.
145 * @brief Unholds the running lock to unblock device hibernation.
147 * @param info Running lock info.
167 * @brief Holds the running lock to block device hibernation.
[all …]
/drivers/peripheral/wlan/chip/hdi_service/
Dwifi_sta_iface.cpp67 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()->StopPnoScan(ifname_); in StopPnoScan()
[all …]
Diface_util.cpp30 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()
/drivers/hdf_core/framework/support/platform/src/regulator/
Dregulator_core.c21 struct OsalMutex lock; member
35 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { 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()
87 (void)OsalMutexUnlock(&manager->lock); in RegulatorNodeListPrint()
99 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in RegulatorNodeSetParent()
110 (void)OsalMutexUnlock(&manager->lock); in RegulatorNodeSetParent()
115 (void)OsalMutexUnlock(&manager->lock); in RegulatorNodeSetParent()
[all …]
Dregulator_tree_mgr.c55 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { 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()
96 (void)OsalMutexUnlock(&manager->lock); in RegulatorTreeGetChild()
102 (void)OsalMutexUnlock(&manager->lock); in RegulatorTreeGetChild()
195 if (OsalMutexLock(&nodeInfo->child->lock) != HDF_SUCCESS) { in RegulatorTreeChildForceDisable()
204 (void)OsalMutexUnlock(&nodeInfo->child->lock); in RegulatorTreeChildForceDisable()
222 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in RegulatorTreeManagerNodeInit()
[all …]
/drivers/hdf_core/framework/support/platform/src/pwm/
Dpwm_core.c24 (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/timer/
Dtimer_core.c24 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/i2c/
Di2c_core.c25 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()
80 (void)OsalMutexUnlock(&manager->lock); in I2cManagerAddCntlr()
97 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in I2cManagerRemoveCntlr()
108 (void)OsalMutexUnlock(&manager->lock); in I2cManagerRemoveCntlr()
129 if (OsalMutexLock(&manager->lock) != HDF_SUCCESS) { in I2cManagerFindCntlr()
134 (void)OsalMutexUnlock(&manager->lock); in I2cManagerFindCntlr()
[all …]
/drivers/hdf_core/adapter/khdf/linux/model/network/wifi/platform/src/
Dhdf_wlan_queue.c27 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()
94 ret = OsalMutexUnlock(&impl->lock); in PopQueue()
111 status = OsalMutexLock(&impl->lock); in PushQueue()
129 status = OsalMutexUnlock(&impl->lock); in PushQueue()
/drivers/hdf_core/adapter/uhdf2/hdi/src/
Diservmgr_client.cpp63 std::unique_lock<std::mutex> lock(g_remoteMutex); in Get() local
85 std::unique_lock<std::mutex> lock(g_remoteMutex); in RegisterServiceStatusListener() local
88 lock.unlock(); in RegisterServiceStatusListener()
105 std::unique_lock<std::mutex> lock(g_remoteMutex); in UnregisterServiceStatusListener() local
109 lock.unlock(); in UnregisterServiceStatusListener()
125 std::unique_lock<std::mutex> lock(g_remoteMutex); in GetService() local
128 lock.unlock(); in GetService()
162 std::unique_lock<std::mutex> lock(g_remoteMutex); in ListAllService() local
165 lock.unlock(); in ListAllService()
190 std::unique_lock<std::mutex> lock(g_remoteMutex); in ListServiceByInterfaceDesc() local
[all …]
Dobject_collector.cpp37 std::lock_guard<std::mutex> lock(mutex_); in ConstructorRegister() local
44 std::lock_guard<std::mutex> lock(mutex_); in ConstructorUnRegister() local
65 std::lock_guard<std::mutex> lock(mutex_); in NewObject() local
75 mutex_.lock(); in GetOrNewObject()
83 mutex_.lock(); in GetOrNewObject()
97 std::lock_guard<std::mutex> lock(mutex_); in RemoveObject() local
Didevmgr_client.cpp70 std::unique_lock<std::mutex> lock(g_remoteMutex); in LoadDevice() local
72 lock.unlock(); in LoadDevice()
92 std::unique_lock<std::mutex> lock(g_remoteMutex); in UnloadDevice() local
94 lock.unlock(); in UnloadDevice()
159 std::unique_lock<std::mutex> lock(g_remoteMutex); in ListAllDevice() local
161 lock.unlock(); in ListAllDevice()
182 std::unique_lock<std::mutex> lock(g_remoteMutex); in Get() local
/drivers/peripheral/bluetooth/hci/hdi_service/implement/
Dhci_watcher.cpp43 std::lock_guard<std::mutex> lock(fdsMutex_); in AddFdToWatcher() local
51 std::lock_guard<std::mutex> lock(fdsMutex_); in RemoveFdToWatcher() local
60 std::lock_guard<std::mutex> lock(timeoutMutex_); in SetTimeout() local
122 std::lock_guard<std::mutex> lock(fdsMutex_); in WatcherThread() local
130 std::lock_guard<std::mutex> lock(timeoutMutex_); in WatcherThread() local
144 std::lock_guard<std::mutex> lock(timeoutMutex_); in WatcherThread() local
155 std::lock_guard<std::mutex> lock(fdsMutex_); in WatcherThread() local
/drivers/hdf_core/framework/support/platform/src/watchdog/
Dwatchdog_core.c38 ret = OsalSpinInit(&cntlr->lock); in WatchdogCntlrAdd()
62 (void)OsalSpinDestroy(&cntlr->lock); in WatchdogCntlrRemove()
107 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrGetStatus()
116 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrGetStatus()
134 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrStart()
146 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrStart()
164 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrStop()
177 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrStop()
195 if (OsalSpinLockIrqSave(&cntlr->lock, &flags) != HDF_SUCCESS) { in WatchdogCntlrSetTimeout()
200 (void)OsalSpinUnlockIrqRestore(&cntlr->lock, &flags); in WatchdogCntlrSetTimeout()
[all …]
/drivers/peripheral/sensor/hdi_service/
Dsensor_clients_manager.cpp58 std::unique_lock<std::mutex> lock(sensorInfoMutex_); in CopySensorInfo() local
69 std::unique_lock<std::mutex> lock(sensorsDataPackMutex_); in GetEventData() local
76 std::unique_lock<std::mutex> lock(sensorsDataPackMutex_); in CopyEventData() local
96 std::unique_lock<std::mutex> lock(clientsMutex_); in GetServiceId() local
107 std::unique_lock<std::mutex> lock(clientsMutex_); in ReportDataCbRegister() local
127 std::unique_lock<std::mutex> lock(clientsMutex_); in ReportDataCbUnRegister() local
141 std::unique_lock<std::mutex> lock(sensorConfigMutex_); in UpdateSensorConfig() local
156 std::unique_lock<std::mutex> lock(sdcSensorConfigMutex_); in UpdateSdcSensorConfig() local
174 std::unique_lock<std::mutex> lock(clientsMutex_); in UpdateClientPeriodCount() local
200 std::unique_lock<std::mutex> lock(sensorConfigMutex_); in SetSensorBestConfig() local
[all …]
/drivers/hdf_core/framework/support/platform/src/fwk/
Dplatform_listener_u.c199 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) != HDF_SUCCESS) { in PlatformUserListenerManagerDestory()
[all …]
/drivers/peripheral/usb/ddk_service/src/
Dusb_ddk_hash.cpp31 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkHash() local
44 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkUnHash() local
55 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkDelHashRecord() local
61 std::lock_guard<std::mutex> lock(g_mapMutex); in UsbDdkGetRecordByVal() local
/drivers/interface/display/composer/cache_manager/
Dcache_manager.h47 std::lock_guard<std::mutex> lock(mutex_); in ~CacheManager()
75 std::lock_guard<std::mutex> lock(mutex_); in Size()
81 std::lock_guard<std::mutex> lock(mutex_); in InsertCache()
101 std::lock_guard<std::mutex> lock(mutex_); in EraseCache()
118 std::lock_guard<std::mutex> lock(mutex_); in SearchCache()
129 std::lock_guard<std::mutex> lock(mutex_); in TravelCaches()
/drivers/peripheral/camera/vdi_base/common/metadata_manager/src/
Dmetadata_controller.cpp46 std::unique_lock<std::mutex> lock(queueLock_); in ~MetadataController() local
64 std::unique_lock<std::mutex> lock(dataConfigLock_); in SetUpdateSettingCallback() local
74 std::unique_lock<std::mutex> lock(dataConfigLock_); in UnSetUpdateSettingCallback() local
84 std::unique_lock<std::mutex> lock(queueLock_); in AddNodeCallback() local
96 std::unique_lock<std::mutex> lock(queueLock_); in ClearNodeCallback() local
102 std::unique_lock<std::mutex> lock(dataConfigLock_); in SetPeerFrameFlag() local
108 std::unique_lock<std::mutex> lock(dataConfigLock_); in AddEnabledAbility() local
140 std::unique_lock<std::mutex> lock(dataConfigLock_); in GetEnabledAbility() local
147 std::unique_lock<std::mutex> lock(dataConfigLock_); in DelEnabledAbility() local
178 std::unique_lock<std::mutex> lock(dataConfigLock_); in GetSettingsConfig() local
[all …]

12345678