/drivers/hdf_core/framework/core/manager/src/ |
D | servstat_listener_holder.c | 17 struct ServStatListenerHolder holder; member 39 int32_t KServStatListenerHolderNotifyStatus(struct ServStatListenerHolder *holder, in KServStatListenerHolderNotifyStatus() argument 42 if (holder == NULL || status == NULL) { in KServStatListenerHolderNotifyStatus() 45 …t KServStatListenerHolder *holderInst = CONTAINER_OF(holder, struct KServStatListenerHolder, holde… in KServStatListenerHolderNotifyStatus() 73 void KServStatListenerHolderRecycle(struct ServStatListenerHolder *holder) in KServStatListenerHolderRecycle() argument 75 if (holder == NULL) { in KServStatListenerHolderRecycle() 79 ServStatListenerHolderRelease(holder); in KServStatListenerHolderRecycle() 87 struct KServStatListenerHolder *holder = NULL; in ServStatListenerHolderCreate() local 93 holder = OsalMemCalloc(sizeof(struct KServStatListenerHolder)); in ServStatListenerHolderCreate() 94 if (holder == NULL) { in ServStatListenerHolderCreate() [all …]
|
D | devsvc_manager_ext.c | 39 struct ServStatListenerHolder *holder = NULL; in DevSvcManagerExtRegisterListener() local 51 holder = ServStatListenerHolderGet((uintptr_t)client); in DevSvcManagerExtRegisterListener() 52 if (holder != NULL) { in DevSvcManagerExtRegisterListener() 54 holder->listenClass = devClass; in DevSvcManagerExtRegisterListener() 58 holder = ServStatListenerHolderCreate((uintptr_t)client, devClass); in DevSvcManagerExtRegisterListener() 59 if (holder == NULL) { in DevSvcManagerExtRegisterListener() 63 return svcmgrInst->super.super.RegsterServListener(&svcmgrInst->super.super, holder); in DevSvcManagerExtRegisterListener() 68 struct ServStatListenerHolder *holder = NULL; in DevSvcManagerExtUnRegisterListener() local 77 holder = ServStatListenerHolderGet((uintptr_t)client); in DevSvcManagerExtUnRegisterListener() 78 if (holder == NULL) { in DevSvcManagerExtUnRegisterListener() [all …]
|
D | devsvc_manager.c | 44 struct ServStatListenerHolder *holder = NULL; in NotifyServiceStatusLocked() local 52 …DLIST_FOR_EACH_ENTRY_SAFE(holder, tmp, &devSvcManager->svcstatListeners, struct ServStatListenerHo… in NotifyServiceStatusLocked() 53 if ((holder->listenClass & record->devClass) && holder->NotifyStatus != NULL) { in NotifyServiceStatusLocked() 54 if (holder->NotifyStatus(holder, &svcstat) == HDF_FAILURE) { in NotifyServiceStatusLocked() 55 DListRemove(&holder->node); in NotifyServiceStatusLocked() 56 if (holder->Recycle != NULL) { in NotifyServiceStatusLocked() 57 holder->Recycle(holder); in NotifyServiceStatusLocked()
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
D | servstat_listener_holder.c | 26 struct ServStatListenerHolder holder; member 58 static void UServStatListenerHolderListListAdd(struct UServStatListenerHolder *holder) in UServStatListenerHolderListListAdd() argument 61 DListInsertTail(&holder->node, &g_holoderList.list); in UServStatListenerHolderListListAdd() 65 int32_t UServStatListenerHolderNotifyStatus(struct ServStatListenerHolder *holder, in UServStatListenerHolderNotifyStatus() argument 68 if (holder == NULL || status == NULL) { in UServStatListenerHolderNotifyStatus() 71 …t UServStatListenerHolder *holderInst = CONTAINER_OF(holder, struct UServStatListenerHolder, holde… in UServStatListenerHolderNotifyStatus() 107 void UServStatListenerHolderRecycle(struct ServStatListenerHolder *holder) in UServStatListenerHolderRecycle() argument 109 if (holder == NULL) { in UServStatListenerHolderRecycle() 113 ServStatListenerHolderRelease(holder); in UServStatListenerHolderRecycle() 121 struct UServStatListenerHolder *holder = NULL; in ServStatListenerHolderGet() local [all …]
|
D | devsvc_manager_stub.c | 84 struct HdfDeviceObjectHolder *holder = in CheckServiceObjectValidNoLock() local 87 if (((uintptr_t)(&holder->devObj) == (uintptr_t)service) && (holder->serviceName != NULL) && in CheckServiceObjectValidNoLock() 88 (service->priv != NULL) && (strcmp(holder->serviceName, (char *)service->priv) == 0)) { in CheckServiceObjectValidNoLock() 89 … HDF_LOGD("%{public}s %{public}s service object is valid", __func__, holder->serviceName); in CheckServiceObjectValidNoLock() 109 struct HdfDeviceObjectHolder *holder = in CheckRemoteObjectValidNoLock() local 112 if (holder->remoteSvcAddr == (uintptr_t)service) { in CheckRemoteObjectValidNoLock() 650 struct HdfDeviceObjectHolder *holder = in DevObjHolderListReleaseNoLock() local 653 ReleaseServiceObjectHolder(stub, holder); in DevObjHolderListReleaseNoLock()
|
/drivers/hdf_core/framework/support/platform/src/can/ |
D | can_msg.c | 35 struct CanMsgHolder *holder = NULL; in CanMsgPoolAcquireHolder() local 38 holder = &pool->holders[i]; in CanMsgPoolAcquireHolder() 39 if (OsalAtomicRead(&holder->available) < 1) { in CanMsgPoolAcquireHolder() 42 if (OsalAtomicDecReturn(&holder->available) != 0) { in CanMsgPoolAcquireHolder() 43 OsalAtomicInc(&holder->available); in CanMsgPoolAcquireHolder() 46 (void)memset_s(holder, sizeof(*holder), 0, sizeof(*holder)); in CanMsgPoolAcquireHolder() 47 return holder; in CanMsgPoolAcquireHolder() 52 static void CanMsgPoolRecycleHolder(struct CanMsgHolder *holder) in CanMsgPoolRecycleHolder() argument 54 if (holder == NULL) { in CanMsgPoolRecycleHolder() 58 OsalAtomicInc(&holder->available); in CanMsgPoolRecycleHolder() [all …]
|
/drivers/hdf_core/adapter/uhdf2/ipc/src/ |
D | hdf_remote_adapter.cpp | 113 …struct HdfRemoteServiceHolder *holder = reinterpret_cast<struct HdfRemoteServiceHolder *>(service); in HdfRemoteAdapterOptionalDispatch() local 115 OHOS::sptr<OHOS::IRemoteObject> remote = holder->remote_; in HdfRemoteAdapterOptionalDispatch() 161 …struct HdfRemoteServiceHolder *holder = reinterpret_cast<struct HdfRemoteServiceHolder *>(service); in HdfRemoteAdapterAddDeathRecipient() local 162 if (holder == nullptr) { in HdfRemoteAdapterAddDeathRecipient() 165 OHOS::sptr<OHOS::IRemoteObject> remote = holder->remote_; in HdfRemoteAdapterAddDeathRecipient() 169 if (holder->deathRecipient_ != nullptr) { in HdfRemoteAdapterAddDeathRecipient() 170 remote->RemoveDeathRecipient(holder->deathRecipient_); in HdfRemoteAdapterAddDeathRecipient() 172 holder->deathRecipient_ = new HdfDeathNotifier(service, recipient); in HdfRemoteAdapterAddDeathRecipient() 173 remote->AddDeathRecipient(holder->deathRecipient_); in HdfRemoteAdapterAddDeathRecipient() 179 …struct HdfRemoteServiceHolder *holder = reinterpret_cast<struct HdfRemoteServiceHolder *>(service); in HdfRemoteAdapterRemoveDeathRecipient() local [all …]
|
/drivers/hdf_core/framework/core/manager/test/unittest/common/ |
D | hdf_remote_adapter_test.cpp | 39 HdfRemoteServiceHolder *holder = new HdfRemoteServiceHolder(); variable 40 int ret = holder->SetInterfaceDescriptor(NULL); 43 ret = holder->SetInterfaceDescriptor(desc); 49 HdfRemoteAdapterAddDeathRecipient(reinterpret_cast<struct HdfRemoteService *>(holder), NULL); 51 HdfRemoteAdapterRemoveDeathRecipient(reinterpret_cast<struct HdfRemoteService *>(holder), NULL); 53 delete holder; 81 HdfRemoteServiceHolder *holder = new HdfRemoteServiceHolder(); variable 83 …ret = HdfRemoteAdapterWriteInterfaceToken(reinterpret_cast<struct HdfRemoteService *>(holder), sBu… 88 …ret = HdfRemoteAdapterWriteInterfaceToken(reinterpret_cast<struct HdfRemoteService *>(holder), NUL… 90 …ret = HdfRemoteAdapterWriteInterfaceToken(reinterpret_cast<struct HdfRemoteService *>(holder), sBu… [all …]
|
/drivers/hdf_core/framework/core/manager/include/ |
D | devsvc_listener_holder.h | 19 int32_t (*NotifyStatus)(struct ServStatListenerHolder *holder, struct ServiceStatus *status); 20 void (*Recycle)(struct ServStatListenerHolder *holder); 26 void ServStatListenerHolderRelease(struct ServStatListenerHolder *holder);
|
/drivers/hdf_core/adapter/khdf/liteos_m/test/ |
D | BUILD.gn | 14 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos_m/model/ |
D | BUILD.gn | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/uniproton/test/ |
D | BUILD.gn | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos/model/network/wifi/ |
D | Kconfig | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos/model/network/ethernet/ |
D | Kconfig | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos/network/ |
D | Kconfig | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos/model/bus/usb/ |
D | BUILD.gn | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
D | Kconfig | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos_m/test/sample_driver/ |
D | BUILD.gn | 14 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/liteos/ |
D | LICENSE | 14 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
D | BUILD.gn | 14 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos/model/misc/light/ |
D | Kconfig | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
D | BUILD.gn | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos_m/model/storage/ |
D | Kconfig | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos/manager/ |
D | BUILD.gn | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|
/drivers/hdf_core/adapter/khdf/liteos/test/ |
D | Kconfig | 13 # 3. Neither the name of the copyright holder nor the names of its contributors may be used
|