/drivers/hdf_core/framework/core/host/src/ |
D | hdf_device_node.c | 27 static int HdfDeviceNodePublishLocalService(struct HdfDeviceNode *devNode) in HdfDeviceNodePublishLocalService() argument 29 if (devNode == NULL) { in HdfDeviceNodePublishLocalService() 33 if (devNode->hostService == NULL) { in HdfDeviceNodePublishLocalService() 37 return HdfServiceObserverPublishService(&(devNode->hostService->observer), devNode->servName, in HdfDeviceNodePublishLocalService() 38 devNode->devId, devNode->policy, (struct HdfObject *)devNode->deviceObject.service); in HdfDeviceNodePublishLocalService() 41 static int HdfDeviceNodePublishService(struct HdfDeviceNode *devNode) in HdfDeviceNodePublishService() argument 45 if (devNode->policy == SERVICE_POLICY_NONE || in HdfDeviceNodePublishService() 46 (devNode->servName != NULL && strlen(devNode->servName) == 0)) { in HdfDeviceNodePublishService() 50 nodeIf = &devNode->super; in HdfDeviceNodePublishService() 51 if (devNode->policy == SERVICE_POLICY_PUBLIC || devNode->policy == SERVICE_POLICY_CAPACITY) { in HdfDeviceNodePublishService() [all …]
|
D | hdf_device_object.c | 31 struct HdfDeviceNode *devNode = NULL; in HdfDeviceSubscribeService() local 36 devNode = (struct HdfDeviceNode *)HDF_SLIST_CONTAINER_OF( in HdfDeviceSubscribeService() 38 hostService = devNode->hostService; in HdfDeviceSubscribeService() 44 …return HdfServiceObserverSubscribeService(&hostService->observer, serviceName, devNode->devId, cal… in HdfDeviceSubscribeService() 49 struct HdfDeviceNode *devNode = NULL; in HdfDeviceGetServiceName() local 54 devNode = (struct HdfDeviceNode *)HDF_SLIST_CONTAINER_OF( in HdfDeviceGetServiceName() 56 return devNode->servName; in HdfDeviceGetServiceName() 61 struct HdfDeviceNode *devNode = NULL; in HdfPmRegisterPowerListener() local 65 devNode = (struct HdfDeviceNode *)HDF_SLIST_CONTAINER_OF( in HdfPmRegisterPowerListener() 67 return HdfDeviceNodeAddPowerStateListener(devNode, listener); in HdfPmRegisterPowerListener() [all …]
|
D | hdf_device.c | 33 struct HdfDeviceNode *devNode = NULL; in FindUsableDevNodeId() local 36 DLIST_FOR_EACH_ENTRY(devNode, &device->devNodes, struct HdfDeviceNode, entry) { in FindUsableDevNodeId() 37 if (DEVNODEID(devNode->devId) == nodeId) { in FindUsableDevNodeId() 75 static int HdfDeviceAttach(struct IHdfDevice *devInst, struct HdfDeviceNode *devNode) in HdfDeviceAttach() argument 79 struct IDeviceNode *nodeIf = (struct IDeviceNode *)devNode; in HdfDeviceAttach() 87 if (devNode->devId == 0 && AcquireNodeDeivceId(device, &devNode->devId) != HDF_SUCCESS) { in HdfDeviceAttach() 91 devNode->token->devid = devNode->devId; in HdfDeviceAttach() 92 ret = nodeIf->LaunchNode(devNode); in HdfDeviceAttach() 94 DListInsertTail(&devNode->entry, &device->devNodes); in HdfDeviceAttach() 95 UpdateDeivceNodeIdIndex(device, devNode->devId); in HdfDeviceAttach() [all …]
|
D | devhost_service.c | 67 struct HdfDeviceNode *devNode = NULL; in DevHostServiceAddDevice() local 82 devNode = device->super.GetDeviceNode(&device->super, deviceInfo->deviceId); in DevHostServiceAddDevice() 83 if (devNode != NULL) { in DevHostServiceAddDevice() 94 devNode = HdfDeviceNodeNewInstance(deviceInfo, driver); in DevHostServiceAddDevice() 95 if (devNode == NULL) { in DevHostServiceAddDevice() 101 devNode->hostService = hostService; in DevHostServiceAddDevice() 102 devNode->device = device; in DevHostServiceAddDevice() 103 devNode->driver = driver; in DevHostServiceAddDevice() 104 ret = device->super.Attach(&device->super, devNode); in DevHostServiceAddDevice() 107 HdfDeviceNodeFreeInstance(devNode); in DevHostServiceAddDevice() [all …]
|
/drivers/hdf_core/interfaces/inner_api/host/shared/ |
D | hdf_device_node.h | 28 int (*PublishService)(struct HdfDeviceNode *devNode); 29 int (*RemoveService)(struct HdfDeviceNode *devNode); 30 int (*LaunchNode)(struct HdfDeviceNode *devNode); 31 void (*UnlaunchNode)(struct HdfDeviceNode *devNode); 61 struct HdfDeviceNode *devNode, const struct IPowerEventListener *listener); 63 struct HdfDeviceNode *devNode, const struct IPowerEventListener *listener); 64 void HdfDeviceNodeConstruct(struct HdfDeviceNode *devNode); 65 void HdfDeviceNodeDestruct(struct HdfDeviceNode *devNode); 67 void HdfDeviceNodeFreeInstance(struct HdfDeviceNode *devNode); 68 void HdfDeviceNodeDelete(struct HdfDeviceNode *devNode); [all …]
|
D | hdf_device.h | 58 int HdfDeviceDetach(struct IHdfDevice *devInst, struct HdfDeviceNode *devNode);
|
/drivers/hdf_core/framework/core/common/src/ |
D | hdf_device_node_ext.c | 23 struct HdfDeviceNode *devNode = NULL; in DeviceNodeExtDispatch() local 35 devNode = CONTAINER_OF(stub, struct HdfDeviceNode, deviceObject); in DeviceNodeExtDispatch() 36 deviceMethod = devNode->deviceObject.service; in DeviceNodeExtDispatch() 42 if (devNode->policy == SERVICE_POLICY_CAPACITY) { in DeviceNodeExtDispatch() 52 static int DeviceNodeExtPublishService(struct HdfDeviceNode *devNode) in DeviceNodeExtPublishService() argument 55 struct DeviceNodeExt *devNodeExt = (struct DeviceNodeExt *)devNode; in DeviceNodeExtPublishService() 68 if (devNode->policy == SERVICE_POLICY_CAPACITY) { in DeviceNodeExtPublishService() 69 devNodeExt->ioService = HdfIoServicePublish(devNode->servName, devNode->permission); in DeviceNodeExtPublishService() 80 ret = HdfDeviceNodePublishPublicService(devNode); in DeviceNodeExtPublishService() 91 int DeviceNodeExtRemoveService(struct HdfDeviceNode *devNode) in DeviceNodeExtRemoveService() argument [all …]
|
D | hdf_attribute_macro.c | 155 const struct HdfDeviceNodeType *devNode = NULL; in GetDevcieNodeList() local 157 DLIST_FOR_EACH_ENTRY(devNode, &device->deviceNodes, struct HdfDeviceNodeType, deviceNodeEntry) { in GetDevcieNodeList() 162 if (!GetDeviceNodeInfo(devNode, devInfo)) { in GetDevcieNodeList() 188 struct HdfDeviceNodeType *devNode = NULL; in AttributeManagerFreeHost() local 192 … DLIST_FOR_EACH_ENTRY_SAFE(devNode, devNodeTemp, &device->deviceNodes, struct HdfDeviceNodeType, in AttributeManagerFreeHost() 194 OsalMemFree(devNode); in AttributeManagerFreeHost()
|
/drivers/hdf_core/adapter/uhdf2/host/test/unittest/ |
D | devhost_test.cpp | 216 struct HdfDeviceNode *devNode = HdfDeviceNodeNewInstance(&deviceInfo, &driver); variable 217 ASSERT_TRUE(devNode != nullptr); 219 devNode->servStatus = false; 220 int32_t ret = HdfDeviceNodeRemoveService(devNode); 223 ret = DeviceDriverBind(devNode); 225 HdfDeviceNodeFreeInstance(devNode); 229 devNode = HdfDeviceNodeNewInstance(&deviceInfo, &driver); 230 ret = DeviceDriverBind(devNode); 232 HdfDeviceNodeFreeInstance(devNode); 235 devNode = HdfDeviceNodeNewInstance(&deviceInfo, &driver); [all …]
|
/drivers/hdf_core/framework/core/shared/include/ |
D | hdf_service_info.h | 22 …ic inline void HdfServiceInfoInit(struct HdfServiceInfo *info, const struct HdfDeviceNode *devNode) in HdfServiceInfoInit() argument 24 info->servName = devNode->servName; in HdfServiceInfoInit() 25 info->servInfo = devNode->servInfo; in HdfServiceInfoInit() 26 info->devClass = devNode->deviceObject.deviceClass; in HdfServiceInfoInit() 27 info->devId = devNode->devId; in HdfServiceInfoInit() 28 info->interfaceDesc = devNode->interfaceDesc; in HdfServiceInfoInit()
|
/drivers/hdf_core/adapter/uhdf2/hdi/src/ |
D | devmgr_client.c | 142 struct DeviceInfoNode *devNode = NULL; in DevmgrFreeQueryDeviceListImpl() local 144 DLIST_FOR_EACH_ENTRY_SAFE(devNode, tmp, &list->list, struct DeviceInfoNode, node) { in DevmgrFreeQueryDeviceListImpl() 145 DListRemove(&devNode->node); in DevmgrFreeQueryDeviceListImpl() 146 OsalMemFree(devNode); in DevmgrFreeQueryDeviceListImpl()
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
D | device_service_stub.c | 151 struct HdfDeviceNode *devNode = CONTAINER_OF(dev, struct HdfDeviceNode, deviceObject); in HdfDeviceObjectCheckInterfaceDesc() local 152 struct DeviceServiceStub *instance = (struct DeviceServiceStub *)devNode; in HdfDeviceObjectCheckInterfaceDesc()
|
D | devsvc_manager_proxy.c | 45 struct HdfDeviceNode *devNode = in WriteServiceInfo() local 47 struct DeviceServiceStub *deviceFullService = (struct DeviceServiceStub *)devNode; in WriteServiceInfo()
|
/drivers/hdf_core/framework/test/unittest/pm/ |
D | hdf_pm_driver_test.c | 249 struct HdfDeviceNode *devNode = NULL; in HdfPmRegisterTestListener() local 260 devNode = (struct HdfDeviceNode *)HDF_SLIST_CONTAINER_OF( in HdfPmRegisterTestListener() 262 if ((devNode->powerToken != NULL) && (devNode->powerToken->listener != NULL)) { in HdfPmRegisterTestListener() 263 g_pmTestType[index].listenerBak = devNode->powerToken->listener; in HdfPmRegisterTestListener()
|
/drivers/hdf_core/framework/model/usb/src/ |
D | usb_ddk_pnp_loader.c | 151 struct HdfDeviceNode *devNode = CONTAINER_OF(devObj, struct HdfDeviceNode, deviceObject); in UsbPnpManagerRegisterDevice() local 152 if (devNode == NULL) { in UsbPnpManagerRegisterDevice() 157 devNode->policy = SERVICE_POLICY_CAPACITY; in UsbPnpManagerRegisterDevice() 158 devNode->servName = HdfStringCopy(managerInfo->serviceName); in UsbPnpManagerRegisterDevice() 159 if (devNode->servName == NULL) { in UsbPnpManagerRegisterDevice()
|