Searched refs:sref (Results 1 - 5 of 5) sorted by relevance
/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_sref.c | 14 void HdfSRefAcquire(struct HdfSRef *sref) in HdfSRefAcquire() argument 17 if (sref == NULL) { in HdfSRefAcquire() 18 HDF_LOGE("Acquire input sref is null"); in HdfSRefAcquire() 21 OsalAtomicInc(&sref->refs); in HdfSRefAcquire() 22 lockRef = OsalAtomicRead(&sref->refs); in HdfSRefAcquire() 23 if ((lockRef == 1) && (sref->listener != NULL)) { in HdfSRefAcquire() 24 struct IHdfSRefListener *listener = sref->listener; in HdfSRefAcquire() 26 listener->OnFirstAcquire(sref); in HdfSRefAcquire() 31 int HdfSRefCount(const struct HdfSRef *sref) in HdfSRefCount() argument 33 if (sref in HdfSRefCount() 41 HdfSRefRelease(struct HdfSRef *sref) HdfSRefRelease() argument 58 HdfSRefConstruct(struct HdfSRef *sref, struct IHdfSRefListener *listener) HdfSRefConstruct() argument [all...] |
/drivers/hdf_core/framework/core/host/src/ |
H A D | power_state_token.c | 15 static void PowerStateTokenOnFirstAcquire(struct HdfSRef *sref) in PowerStateTokenOnFirstAcquire() argument 18 if (sref == NULL) { in PowerStateTokenOnFirstAcquire() 22 struct HdfSRef, sref, struct PowerStateToken, wakeRef); in PowerStateTokenOnFirstAcquire() 37 static void PowerStateTokenOnLastRelease(struct HdfSRef *sref) in PowerStateTokenOnLastRelease() argument 41 if (sref == NULL) { in PowerStateTokenOnLastRelease() 45 struct HdfSRef, sref, struct PowerStateToken, wakeRef); in PowerStateTokenOnLastRelease() 94 struct HdfSRef *sref = NULL; in PowerStateTokenAcquireWakeLock() local 99 sref = (struct HdfSRef *)&stateToken->wakeRef; in PowerStateTokenAcquireWakeLock() 100 if ((sref != NULL) && (sref in PowerStateTokenAcquireWakeLock() 107 struct HdfSRef *sref = NULL; PowerStateTokenReleaseWakeLock() local [all...] |
/drivers/hdf_core/interfaces/inner_api/utils/ |
H A D | hdf_sref.h | 33 void HdfSRefAcquire(struct HdfSRef *sref); 34 void HdfSRefRelease(struct HdfSRef *sref); 35 int HdfSRefCount(const struct HdfSRef *sref); 36 void HdfSRefConstruct(struct HdfSRef *sref, struct IHdfSRefListener *listener);
|
/drivers/hdf_core/framework/support/platform/src/can/ |
H A D | can_msg.c | 85 static void CanMsgHolderOnFirstGet(struct HdfSRef *sref) in CanMsgHolderOnFirstGet() argument 87 (void)sref; in CanMsgHolderOnFirstGet() 90 static void CanMsgHolderOnLastPut(struct HdfSRef *sref) in CanMsgHolderOnLastPut() argument 94 if (sref == NULL) { in CanMsgHolderOnLastPut() 95 HDF_LOGE("CanMsgHolderOnLastPut: sref is null!"); in CanMsgHolderOnLastPut() 98 holder = CONTAINER_OF(sref, struct CanMsgHolder, ref); in CanMsgHolderOnLastPut()
|
/drivers/hdf_core/framework/support/platform/src/fwk/ |
H A D | platform_device.c | 18 static void PlatformDeviceOnFirstGet(struct HdfSRef *sref) in PlatformDeviceOnFirstGet() argument 20 (void)sref; in PlatformDeviceOnFirstGet() 23 static void PlatformDeviceOnLastPut(struct HdfSRef *sref) in PlatformDeviceOnLastPut() argument 28 if (sref == NULL) { in PlatformDeviceOnLastPut() 29 PLAT_LOGE("PlatformDeviceOnLastPut: sref is null!"); in PlatformDeviceOnLastPut() 33 device = CONTAINER_OF(sref, struct PlatformDevice, ref); in PlatformDeviceOnLastPut()
|
Completed in 3 milliseconds