/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/src/ |
H A D | spunge_core.c | 306 inst->unsendItem = in SpungeInstSendInit() 340 FillpMacTimerExpire(&inst->macInfo, inst->curTime); in SpungeInstTimerInit() 354 inst->mainThreadParam.param = inst; in SpungeThreadInit() 578 inst->fairTimerNode.cbNode.arg = (void *)inst; in FtGlobalTimerInit() 584 inst->macTimerNode.cbNode.arg = (void *)inst; in FtGlobalTimerInit() 1237 FillpMacTimerExpire(&inst->macInfo, inst->curTime); in SpinstLoopMacTimerChecker() 1251 inst->rateControl.lastControlTime = inst->curTime; in SpinstLoopFairnessChecker() 1279 struct SpungeInstance *inst = (struct SpungeInstance *)stb->inst; in SpungeTokenTimerCb() local 1445 stb->inst = inst; in SpungeInitTokenBucket() 1555 (void)inst; in SpungeSetThreadInfo() [all …]
|
/ohos5.0/foundation/resourceschedule/ffrt/src/util/ |
H A D | ffrt_facade.h | 36 static ExecuteUnit& inst = Instance().GetEUInstanceImpl(); in GetEUInstance() local 37 return inst; in GetEUInstance() 43 return inst; in GetDMInstance() 49 return inst; in GetPPInstance() 55 return inst; in GetDWInstance() 61 return inst; in GetSchedInstance() 66 static IOPoller& inst = Instance().GetIoPPInstanceImpl(); in GetIoPPInstance() local 67 return inst; in GetIoPPInstance() 73 return inst; in GetCSAInstance() 79 return inst; in GetQMInstance() [all …]
|
/ohos5.0/drivers/hdf_core/framework/core/host/src/ |
H A D | devmgr_service_clnt.c | 20 struct DevmgrServiceClnt *inst = DevmgrServiceClntGetInstance(); in DevmgrServiceClntAttachDeviceHost() local 21 if (inst == NULL || inst->devMgrSvcIf == NULL) { in DevmgrServiceClntAttachDeviceHost() 26 devMgrSvcIf = inst->devMgrSvcIf; in DevmgrServiceClntAttachDeviceHost() 37 struct DevmgrServiceClnt *inst = DevmgrServiceClntGetInstance(); in DevmgrServiceClntAttachDevice() local 38 if ((inst == NULL) || (inst->devMgrSvcIf == NULL)) { in DevmgrServiceClntAttachDevice() 43 devMgrSvcIf = inst->devMgrSvcIf; in DevmgrServiceClntAttachDevice() 55 if (inst == NULL || inst->devMgrSvcIf == NULL) { in DevmgrServiceClntDetachDevice() 60 devMgrSvcIf = inst->devMgrSvcIf; in DevmgrServiceClntDetachDevice() 76 void DevmgrServiceClntFreeInstance(struct DevmgrServiceClnt *inst) in DevmgrServiceClntFreeInstance() argument 78 if ((inst != NULL) && (inst->devMgrSvcIf != NULL)) { in DevmgrServiceClntFreeInstance() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devhost_service_proxy.c | 52 struct IDevHostService *inst, devid_t devid) in DevHostServiceProxyDelDevice() argument 108 inst->remote = remote; in DevHostServiceProxyConstruct() 109 inst->super.AddDevice = DevHostServiceProxyAddDevice; in DevHostServiceProxyConstruct() 110 inst->super.DelDevice = DevHostServiceProxyDelDevice; in DevHostServiceProxyConstruct() 111 inst->super.Dump = DevHostServicProxyDump; in DevHostServiceProxyConstruct() 114 remote->target = (struct HdfObject *)inst; in DevHostServiceProxyConstruct() 133 if (inst != NULL) { in DevHostServiceProxyRecycle() 134 if (inst->remote != NULL) { in DevHostServiceProxyRecycle() 135 HdfRemoteServiceRecycle(inst->remote); in DevHostServiceProxyRecycle() 136 inst->remote = NULL; in DevHostServiceProxyRecycle() [all …]
|
H A D | device_token_proxy.c | 19 static void HdfDevTokenProxyConstruct(struct HdfDevTokenProxy *inst, struct HdfRemoteService *remot… in HdfDevTokenProxyConstruct() argument 21 inst->remote = remote; in HdfDevTokenProxyConstruct() 34 void HdfDevTokenProxyRecycle(struct HdfDevTokenProxy *inst) in HdfDevTokenProxyRecycle() argument 36 if (inst != NULL) { in HdfDevTokenProxyRecycle() 37 if (inst->remote != NULL) { in HdfDevTokenProxyRecycle() 38 HdfRemoteServiceRecycle(inst->remote); in HdfDevTokenProxyRecycle() 39 inst->remote = NULL; in HdfDevTokenProxyRecycle() 41 OsalMemFree((void *)inst->super.servName); in HdfDevTokenProxyRecycle() 42 OsalMemFree((void *)inst->super.deviceName); in HdfDevTokenProxyRecycle() 43 OsalMemFree(inst); in HdfDevTokenProxyRecycle()
|
H A D | devmgr_service_full.c | 63 static void DevmgrServiceFullOnDeviceHostDied(struct DevmgrServiceFull *inst, uint32_t hostId, in DevmgrServiceFullOnDeviceHostDied() argument 68 if (inst == NULL) { in DevmgrServiceFullOnDeviceHostDied() 71 OsalMutexLock(&inst->super.devMgrMutex); in DevmgrServiceFullOnDeviceHostDied() 72 …DLIST_FOR_EACH_ENTRY_SAFE(hostClnt, hostClntTmp, &inst->super.hosts, struct DevHostServiceClnt, no… in DevmgrServiceFullOnDeviceHostDied() 81 OsalMutexUnlock(&inst->super.devMgrMutex); in DevmgrServiceFullOnDeviceHostDied() 114 void DevmgrServiceFullConstruct(struct DevmgrServiceFull *inst) in DevmgrServiceFullConstruct() argument 117 if (inst != NULL) { in DevmgrServiceFullConstruct() 118 HdfMessageLooperConstruct(&inst->looper); in DevmgrServiceFullConstruct() 119 DevmgrServiceConstruct(&inst->super); in DevmgrServiceFullConstruct() 120 HdfMessageTaskConstruct(&inst->task, &inst->looper, &handler); in DevmgrServiceFullConstruct()
|
/ohos5.0/drivers/hdf_core/framework/core/manager/src/ |
H A D | devsvc_manager.c | 84 int DevSvcManagerAddService(struct IDevSvcManager *inst, in DevSvcManagerAddService() argument 130 int DevSvcManagerUpdateService(struct IDevSvcManager *inst, in DevSvcManagerUpdateService() argument 173 deviceService = DevSvcManagerGetService(inst, svcName); in DevSvcManagerSubscribeService() 353 bool DevSvcManagerConstruct(struct DevSvcManager *inst) in DevSvcManagerConstruct() argument 356 if (inst == NULL) { in DevSvcManagerConstruct() 360 devSvcMgrIf = &inst->super; in DevSvcManagerConstruct() 372 if (OsalMutexInit(&inst->mutex) != HDF_SUCCESS) { in DevSvcManagerConstruct() 376 DListHeadInit(&inst->services); in DevSvcManagerConstruct() 377 DListHeadInit(&inst->svcstatListeners); in DevSvcManagerConstruct() 414 void DevSvcManagerRelease(struct IDevSvcManager *inst) in DevSvcManagerRelease() argument [all …]
|
H A D | devsvc_manager_ext.c | 134 if (inst == NULL) { in DevSvcManagerExtStart() 138 if (inst->started) { in DevSvcManagerExtStart() 148 if (inst->serv == NULL) { in DevSvcManagerExtStart() 154 inst->serv->dispatcher = &dispatcher; in DevSvcManagerExtStart() 159 inst->started = true; in DevSvcManagerExtStart() 165 if (inst == NULL) { in DevSvcManagerExtConstruct() 168 if (!DevSvcManagerConstruct(&inst->super)) { in DevSvcManagerExtConstruct() 172 if (OsalMutexInit(&inst->mutex) != HDF_SUCCESS) { in DevSvcManagerExtConstruct() 176 inst->super.super.StartService = DevSvcManagerExtStart; in DevSvcManagerExtConstruct() 197 void DevSvcManagerExtRelease(struct IDevSvcManager *inst) in DevSvcManagerExtRelease() argument [all …]
|
H A D | devmgr_service.c | 226 struct DevmgrService *dmService = (struct DevmgrService *)inst; in DevmgrServiceFindDeviceHost() 276 hostClnt = DevmgrServiceFindDeviceHost(inst, HOSTID(devid)); in DevmgrServiceDetachDevice() 354 ret = DevmgrServiceStartDeviceHost(inst, hostAttr); in DevmgrServiceStartDeviceHosts() 366 struct DevmgrService *devMgrSvc = (struct DevmgrService *)inst; in DevmgrServiceListAllDevice() 400 int DevmgrServiceStartService(struct IDevmgrService *inst) in DevmgrServiceStartService() argument 403 struct DevmgrService *dmService = (struct DevmgrService *)inst; in DevmgrServiceStartService() 454 bool DevmgrServiceConstruct(struct DevmgrService *inst) in DevmgrServiceConstruct() argument 456 if (inst == NULL) { in DevmgrServiceConstruct() 461 if (OsalMutexInit(&inst->devMgrMutex) != HDF_SUCCESS) { in DevmgrServiceConstruct() 465 devMgrSvcIf = (struct IDevmgrService *)inst; in DevmgrServiceConstruct() [all …]
|
/ohos5.0/foundation/communication/bluetooth_service/services/bluetooth/stack/src/l2cap/ |
H A D | l2cap_inst.c | 35 L2capInstance *inst = L2capGetInstance(); in L2capInitialized() local 37 if (inst->connList != NULL) { in L2capInitialized() 46 L2capInstance *inst = L2capGetInstance(); in L2capGetPsm() local 50 node = ListGetFirstNode(inst->psmList); in L2capGetPsm() 180 if (inst->nextLcid == 0) { in L2capGetNewLcid() 193 lcid = inst->nextLcid; in L2capGetNewLcid() 196 inst->nextLcid = 0; in L2capGetNewLcid() 198 inst->nextLcid += 1; in L2capGetNewLcid() 329 if (inst->connList == NULL) { in L2capDisconnectTimeout() 405 ListAddFirst(inst->connList, conn); in L2capNewConnection() [all …]
|
H A D | l2cap.c | 383 L2capInstance *inst = NULL; in L2CAP_RegisterEcho() local 395 inst = L2capGetInstance(); in L2CAP_RegisterEcho() 396 inst->echo.ctx = context; in L2CAP_RegisterEcho() 412 inst = L2capGetInstance(); in L2CAP_DeregisterEcho() 493 inst = L2capGetInstance(); in L2CAP_RegisterService() 523 inst = L2capGetInstance(); in L2CAP_DeregisterService() 558 inst = L2capGetInstance(); in L2CAP_Initialize() 581 inst = L2capGetInstance(); in L2CAP_Finalize() 591 inst->connList = NULL; in L2CAP_Finalize() 602 ListDelete(inst->psmList); in L2CAP_Finalize() [all …]
|
H A D | l2cap_le.c | 90 L2capLeInstance *inst = &g_l2capLeInst; in L2capLeInitialized() local 92 if (inst->connList != NULL) { in L2capLeInitialized() 101 L2capLeInstance *inst = &g_l2capLeInst; in L2capLeGetPsm() local 227 if (inst->nextLcid == 0) { in L2capLeGetNewLcid() 240 lcid = inst->nextLcid; in L2capLeGetNewLcid() 243 inst->nextLcid = 0; in L2capLeGetNewLcid() 245 inst->nextLcid += 1; in L2capLeGetNewLcid() 334 ListAddFirst(inst->connList, conn); in L2capLeNewConnection() 397 if (inst->connList == NULL) { in L2capLeResponseTimeout() 1489 ListAddFirst(inst->psmList, psm); in L2CAP_LeRegisterService() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/src/ |
H A D | devsvc_manager_proxy.c | 75 struct DevSvcManagerProxy *serviceProxy = (struct DevSvcManagerProxy *)inst; in DevSvcManagerProxyAddService() 112 static int DevSvcManagerProxyUpdateService(struct IDevSvcManager *inst, in DevSvcManagerProxyUpdateService() argument 115 struct DevSvcManagerProxy *serviceProxy = (struct DevSvcManagerProxy *)inst; in DevSvcManagerProxyUpdateService() 185 if (inst == NULL || svcName == NULL) { in DevSvcManagerProxyRemoveService() 232 inst->pvtbl.AddService = DevSvcManagerProxyAddService; in DevSvcManagerProxyConstruct() 233 inst->pvtbl.UpdateService = DevSvcManagerProxyUpdateService; in DevSvcManagerProxyConstruct() 234 inst->pvtbl.GetService = DevSvcManagerProxyGetService; in DevSvcManagerProxyConstruct() 235 inst->pvtbl.RemoveService = DevSvcManagerProxyRemoveService; in DevSvcManagerProxyConstruct() 236 inst->remote = remote; in DevSvcManagerProxyConstruct() 237 inst->recipient.OnRemoteDied = DevSvcManagerProxyOnRemoteDied; in DevSvcManagerProxyConstruct() [all …]
|
H A D | devhost_service_full.c | 66 struct HdfMessageTask *task = &inst->task; in DevHostServiceFullOpsDevice() 202 void DevHostServiceFullConstruct(struct DevHostServiceFull *inst) in DevHostServiceFullConstruct() argument 204 struct IDevHostService *hostServiceIf = &inst->super.super; in DevHostServiceFullConstruct() 206 DevHostServiceConstruct(&inst->super); in DevHostServiceFullConstruct() 211 HdfMessageLooperConstruct(&inst->looper); in DevHostServiceFullConstruct() 212 HdfMessageTaskConstruct(&inst->task, &inst->looper, &handler); in DevHostServiceFullConstruct() 215 void DevHostServiceFullDestruct(struct DevHostServiceFull *inst) in DevHostServiceFullDestruct() argument 217 if (inst != NULL) { in DevHostServiceFullDestruct() 218 DevHostServiceDestruct(&inst->super); in DevHostServiceFullDestruct() 219 if (inst->looper.Stop != NULL) { in DevHostServiceFullDestruct() [all …]
|
H A D | hdf_device_thread.c | 50 int DeviceThreadAttach(struct DeviceThread *inst, struct IHdfDevice *device, struct HdfDeviceNode *… in DeviceThreadAttach() argument 52 if (inst == NULL || device == NULL || service == NULL) { in DeviceThreadAttach() 57 struct HdfMessageTask *task = &inst->task; in DeviceThreadAttach() 80 void DeviceThreadConstruct(struct DeviceThread *inst) in DeviceThreadConstruct() argument 86 HdfMessageLooperConstruct(&inst->looper); in DeviceThreadConstruct() 87 HdfMessageTaskConstruct(&inst->task, &inst->looper, &handler); in DeviceThreadConstruct() 88 inst->super.ThreadEntry = DeviceThreadMain; in DeviceThreadConstruct() 89 HdfThreadConstruct(&inst->super); in DeviceThreadConstruct()
|
H A D | devmgr_service_proxy.c | 35 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyAttachDeviceHost() 72 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyAttachDevice() 92 int DevmgrServiceProxyDetachDevice(struct IDevmgrService *inst, devid_t devid) in DevmgrServiceProxyDetachDevice() argument 97 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyDetachDevice() 116 struct DevmgrServiceProxy *serviceProxy = (struct DevmgrServiceProxy *)inst; in DevmgrServiceProxyProcessLoad() 134 int DevmgrServiceProxyLoadDevice(struct IDevmgrService *inst, const char *svcName) in DevmgrServiceProxyLoadDevice() argument 136 return DevmgrServiceProxyProcessLoad(inst, svcName, DEVMGR_SERVICE_LOAD_DEVICE); in DevmgrServiceProxyLoadDevice() 139 int DevmgrServiceProxyUnLoadDevice(struct IDevmgrService *inst, const char *svcName) in DevmgrServiceProxyUnLoadDevice() argument 141 return DevmgrServiceProxyProcessLoad(inst, svcName, DEVMGR_SERVICE_UNLOAD_DEVICE); in DevmgrServiceProxyUnLoadDevice() 144 static void DevmgrServiceProxyConstruct(struct DevmgrServiceProxy *inst) in DevmgrServiceProxyConstruct() argument [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/public/src/ |
H A D | spunge_message.c | 121 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgFreeSockEagain() 316 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgConnect() 429 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgBind() 561 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgDoShutdown() 646 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgClose() 701 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgSetSendBuf() 735 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgSetRecvBuf() 775 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgSetNackDelay() 810 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgGetEvtInfo() 828 FILLP_UNUSED_PARA(inst); in SpungeHandleMsgSetKeepAlive() [all …]
|
/ohos5.0/foundation/communication/dsoftbus/components/nstackx/fillp/src/fillp_lib/include/ |
H A D | spunge_core.h | 70 FILLP_INT SpungeInstInit(struct SpungeInstance *inst); 72 void SpungeHandleMsgCycle(struct SpungeInstance *inst); 91 void FillpServerRecvRateAdjustment(struct SpungeInstance *inst, FILLP_UINT32 calcRecvTotalRate, FIL… 94 void FillpServerSendRateAdjustment(struct SpungeInstance *inst, FILLP_UINT32 calcSendTotalRate, FIL… 99 void FillpCalculateFairness(struct SpungeInstance *inst); 109 void FtGlobalTimerInit(struct SpungeInstance *inst); 111 void SpungeDestroyInstance(struct SpungeInstance *inst); 113 void SpungeInitTokenBucket(struct SpungeInstance *inst);
|
/ohos5.0/drivers/hdf_core/framework/core/shared/src/ |
H A D | hdf_service_record.c | 17 void DevSvcRecordFreeInstance(struct DevSvcRecord *inst) in DevSvcRecordFreeInstance() argument 19 if (inst != NULL) { in DevSvcRecordFreeInstance() 20 OsalMemFree((char *)inst->servName); in DevSvcRecordFreeInstance() 21 OsalMemFree((char *)inst->servInfo); in DevSvcRecordFreeInstance() 22 OsalMemFree((char *)inst->interfaceDesc); in DevSvcRecordFreeInstance() 23 OsalMemFree(inst); in DevSvcRecordFreeInstance()
|
/ohos5.0/drivers/hdf_core/framework/core/manager/include/ |
H A D | devsvc_manager.h | 26 bool DevSvcManagerConstruct(struct DevSvcManager *inst); 27 void DevSvcManagerRelease(struct IDevSvcManager *inst); 33 …struct IDevSvcManager *inst, struct HdfDeviceObject *service, const struct HdfServiceInfo *servInf… 34 struct HdfObject *DevSvcManagerGetService(struct IDevSvcManager *inst, const char *svcName); 36 struct IDevSvcManager *inst, const char *svcName, const struct HdfDeviceObject *devObj); 39 struct IDevSvcManager *inst, const char *interfaceDesc, struct HdfSBuf *reply);
|
/ohos5.0/drivers/hdf_core/adapter/khdf/liteos_m/core/common/src/ |
H A D | hdf_device_node_ext.c | 42 static int DeviceNodeExtPublishService(struct HdfDeviceNode *inst) in DeviceNodeExtPublishService() argument 44 struct DeviceNodeExt *devNodeExt = (struct DeviceNodeExt *)inst; in DeviceNodeExtPublishService() 49 int ret = HdfDeviceNodePublishPublicService(inst); in DeviceNodeExtPublishService() 57 static void DeviceNodeExtConstruct(struct DeviceNodeExt *inst) in DeviceNodeExtConstruct() argument 59 struct IDeviceNode *nodeIf = (struct IDeviceNode *)inst; in DeviceNodeExtConstruct() 61 HdfDeviceNodeConstruct(&inst->super); in DeviceNodeExtConstruct()
|
/ohos5.0/drivers/hdf_core/adapter/khdf/uniproton/core/common/src/ |
H A D | hdf_device_node_ext.c | 38 static int DeviceNodeExtPublishService(struct HdfDeviceNode *inst) in DeviceNodeExtPublishService() argument 40 struct DeviceNodeExt *devNodeExt = (struct DeviceNodeExt *)inst; in DeviceNodeExtPublishService() 45 int ret = HdfDeviceNodePublishPublicService(inst); in DeviceNodeExtPublishService() 53 static void DeviceNodeExtConstruct(struct DeviceNodeExt *inst) in DeviceNodeExtConstruct() argument 55 struct IDeviceNode *nodeIf = (struct IDeviceNode *)inst; in DeviceNodeExtConstruct() 57 HdfDeviceNodeConstruct(&inst->super); in DeviceNodeExtConstruct()
|
/ohos5.0/base/security/device_security_level/baselib/msglib/src/standard/ |
H A D | messenger_device_socket_manager.c | 223 LockMutex(&inst->mutex); in CreateOrRestartSocketCloseTimerWithLock() 225 UnlockMutex(&inst->mutex); in CreateOrRestartSocketCloseTimerWithLock() 432 if (inst == NULL) { in CreateServer() 438 if (ProcessCreateServer(inst->primarySockName, inst->pkgName, &socket) == 0) { in CreateServer() 439 inst->primarySocket = socket; in CreateServer() 441 if (ProcessCreateServer(inst->secondarySockName, inst->pkgName, &socket) == 0) { in CreateServer() 442 inst->secondarySocket = socket; in CreateServer() 445 if (inst->primarySocket == 0 && inst->secondarySocket == 0) { in CreateServer() 461 inst->pkgName = config->pkgName; in InitDeviceSocketManager() 464 inst->queue = queue; in InitDeviceSocketManager() [all …]
|
/ohos5.0/drivers/hdf_core/framework/utils/src/ |
H A D | hdf_message_task.c | 49 void HdfMessageTaskConstruct(struct HdfMessageTask *inst, in HdfMessageTaskConstruct() argument 52 if (inst != NULL && looper != NULL) { in HdfMessageTaskConstruct() 53 inst->SendMessage = HdfMessageTaskSendMessage; in HdfMessageTaskConstruct() 54 inst->messageHandler = handler; in HdfMessageTaskConstruct() 55 inst->messageQueue = &looper->messageQueue; in HdfMessageTaskConstruct() 56 inst->DispatchMessage = HdfMessageTaskDispatchMessage; in HdfMessageTaskConstruct()
|
/ohos5.0/base/security/device_security_level/baselib/msglib/src/lite/ |
H A D | messenger_device_session_manager.c | 316 DeviceSessionManager *inst = GetDeviceSessionManagerInstance(); in InitDeviceSessionManager() local 317 inst->pkgName = config->pkgName; in InitDeviceSessionManager() 318 inst->primarySessName = config->primarySessName; in InitDeviceSessionManager() 319 inst->secondarySessName = config->secondarySessName; in InitDeviceSessionManager() 320 inst->messageReceiver = config->messageReceiver; in InitDeviceSessionManager() 321 inst->sendResultNotifier = config->sendResultNotifier; in InitDeviceSessionManager() 322 inst->queue = queue; in InitDeviceSessionManager() 324 bool succ = TryToCreateSessionServer(inst->pkgName, inst->primarySessName, &inst->listener); in InitDeviceSessionManager() 325 …SECURITY_LOG_INFO("CreateSessionServer %{public}s = %{public}s", inst->primarySessName, succ ? "su… in InitDeviceSessionManager() 327 if (inst->secondarySessName == NULL) { in InitDeviceSessionManager() [all …]
|