/ohos5.0/drivers/hdf_core/interfaces/inner_api/host/shared/ |
H A D | hdf_device.h | 34 #define HOSTID(devid) (((uint32_t)(devid)) >> (DEVICEID_BITS + DEVNODEID_BITS)) argument 35 #define DEVICEID(devid) ((((uint32_t)(devid)) >> DEVNODEID_BITS) & DEVICEID_MASK) argument 36 #define DEVNODEID(devid) (((uint32_t)(devid)) & DEVNODEID_MASK) argument 47 struct HdfDeviceNode *(*GetDeviceNode)(struct IHdfDevice *device, devid_t devid); 48 int (*DetachWithDevid)(struct IHdfDevice *device, devid_t devid);
|
/ohos5.0/foundation/deviceprofile/device_info_manager/services/core/test/unittest/ |
H A D | dp_profile_service_test.cpp | 148 std::string devid; variable 186 std::string devid = ""; variable 189 ServiceProfile serviceProfile(devid, serName, serviceType); 210 std::string devid = ""; variable 214 CharacteristicProfile charProfile(devid, serName, charKey, characteristicValue); 223 std::string devid = ""; variable 231 std::string devid = ""; variable 241 std::string devid = ""; variable 246 DistributedDeviceProfileServiceNew::GetInstance().GetCharacteristicProfile(devid, 253 std::string devid = ""; variable [all …]
|
/ohos5.0/drivers/hdf_core/framework/core/host/src/ |
H A D | hdf_device.c | 49 static int AcquireNodeDeivceId(struct HdfDevice *device, devid_t *devid) in AcquireNodeDeivceId() argument 70 if (devid == NULL) { in AcquireNodeDeivceId() 74 *devid = MK_DEVID(HOSTID(device->deviceId), DEVICEID(device->deviceId), nodeId); in AcquireNodeDeivceId() 95 devNode->token->devid = devNode->devId; in HdfDeviceAttach() 129 static struct HdfDeviceNode *HdfDeviceGetDeviceNode(struct IHdfDevice *device, devid_t devid) in HdfDeviceGetDeviceNode() argument 134 if (devNode->devId == devid) { in HdfDeviceGetDeviceNode() 141 static int HdfDeviceDetachWithDevid(struct IHdfDevice *device, devid_t devid) in HdfDeviceDetachWithDevid() argument 145 struct HdfDeviceNode *devNode = HdfDeviceGetDeviceNode(device, devid); in HdfDeviceDetachWithDevid()
|
H A D | hdf_service_subscriber.c | 13 …HdfServiceSubscriber *HdfServiceSubscriberObtain(struct SubscriberCallback callback, devid_t devid) in HdfServiceSubscriberObtain() argument 19 serviceSubscriber->devId = devid; in HdfServiceSubscriberObtain()
|
H A D | devmgr_service_clnt.c | 51 int DevmgrServiceClntDetachDevice(devid_t devid) in DevmgrServiceClntDetachDevice() argument 64 return devMgrSvcIf->DetachDevice(devMgrSvcIf, devid); in DevmgrServiceClntDetachDevice()
|
H A D | hdf_device_node.c | 275 devNode->token->devid = deviceInfo->deviceId; in HdfDeviceNodeNewInstance()
|
/ohos5.0/drivers/hdf_core/framework/core/manager/src/ |
H A D | devmgr_service.c | 249 hostClnt = DevmgrServiceFindDeviceHost(inst, HOSTID(token->devid)); in DevmgrServiceAttachDevice() 264 static bool HdfSListHostSearchDeviceTokenComparer(struct HdfSListNode *tokenNode, uint32_t devid) in HdfSListHostSearchDeviceTokenComparer() argument 267 return tokenClnt->tokenIf->devid == devid; in HdfSListHostSearchDeviceTokenComparer() 270 static int DevmgrServiceDetachDevice(struct IDevmgrService *inst, devid_t devid) in DevmgrServiceDetachDevice() argument 276 hostClnt = DevmgrServiceFindDeviceHost(inst, HOSTID(devid)); in DevmgrServiceDetachDevice() 281 … tokenClntNode = HdfSListSearch(&hostClnt->devices, devid, HdfSListHostSearchDeviceTokenComparer); in DevmgrServiceDetachDevice() 389 HdfSbufWriteUint32(reply, tokenClnt->tokenIf->devid); in DevmgrServiceListAllDevice()
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/host/src/ |
H A D | devhost_service_full.c | 43 devid_t devid = (devid_t)((uintptr_t)msg->data[0]); in DevHostServiceFullDispatchMessage() local 44 status = DevHostServiceDelDevice(&hostService->super.super, devid); in DevHostServiceFullDispatchMessage() 83 static int DevHostServiceFullDelDevice(struct IDevHostService *devHostService, devid_t devid) in DevHostServiceFullDelDevice() argument 85 … return DevHostServiceFullOpsDevice(devHostService, (uintptr_t)devid, DEVHOST_MESSAGE_DEL_DEVICE); in DevHostServiceFullDelDevice()
|
H A D | devmgr_service_proxy.c | 80 …fRemoteServiceWriteInterfaceToken(remoteService, data) || !HdfSbufWriteInt32(data, token->devid) || in DevmgrServiceProxyAttachDevice() 92 int DevmgrServiceProxyDetachDevice(struct IDevmgrService *inst, devid_t devid) in DevmgrServiceProxyDetachDevice() argument 103 …if (!HdfRemoteServiceWriteInterfaceToken(remoteService, data) || !HdfSbufWriteInt32(data, devid)) { in DevmgrServiceProxyDetachDevice()
|
/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 62 HdfSbufWriteUint32(data, devid); in DevHostServiceProxyDelDevice()
|
H A D | devmgr_service_stub.c | 63 tokenClnt->super.devid = deviceId; in DevmgrServiceStubDispatchAttachDevice()
|
/ohos5.0/drivers/hdf_core/framework/core/shared/include/ |
H A D | device_token_if.h | 17 devid_t devid; member
|
/ohos5.0/drivers/hdf_core/framework/core/host/include/ |
H A D | devmgr_service_clnt.h | 27 int DevmgrServiceClntDetachDevice(devid_t devid);
|
H A D | hdf_service_subscriber.h | 28 …dfServiceSubscriber *HdfServiceSubscriberObtain(struct SubscriberCallback callback, devid_t devid);
|