/drivers/hdf_core/interfaces/inner_api/host/shared/ |
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);
|
/drivers/hdf_core/framework/core/host/src/ |
D | hdf_device.c | 49 static int AcquireNodeDeivceId(struct HdfDevice *device, devid_t *devid) in AcquireNodeDeivceId() argument 70 *devid = MK_DEVID(HOSTID(device->deviceId), DEVICEID(device->deviceId), nodeId); in AcquireNodeDeivceId() 91 devNode->token->devid = devNode->devId; in HdfDeviceAttach() 124 static struct HdfDeviceNode *HdfDeviceGetDeviceNode(struct IHdfDevice *device, devid_t devid) in HdfDeviceGetDeviceNode() argument 129 if (devNode->devId == devid) { in HdfDeviceGetDeviceNode() 136 static int HdfDeviceDetachWithDevid(struct IHdfDevice *device, devid_t devid) in HdfDeviceDetachWithDevid() argument 139 struct HdfDeviceNode *devNode = HdfDeviceGetDeviceNode(device, devid); in HdfDeviceDetachWithDevid() 141 HDF_LOGE("detach device node %x not in device %x", devid, dev->deviceId); in HdfDeviceDetachWithDevid()
|
D | hdf_service_subscriber.c | 13 …HdfServiceSubscriber *HdfServiceSubscriberObtain(struct SubscriberCallback callback, devid_t devid) in HdfServiceSubscriberObtain() argument 19 serviceSubscriber->devId = devid; in HdfServiceSubscriberObtain()
|
D | devmgr_service_clnt.c | 51 int DevmgrServiceClntDetachDevice(devid_t devid) in DevmgrServiceClntDetachDevice() argument 64 return devMgrSvcIf->DetachDevice(devMgrSvcIf, devid); in DevmgrServiceClntDetachDevice()
|
D | hdf_device_node.c | 263 devNode->token->devid = deviceInfo->deviceId; in HdfDeviceNodeNewInstance()
|
/drivers/hdf_core/framework/core/manager/src/ |
D | devmgr_service.c | 240 hostClnt = DevmgrServiceFindDeviceHost(inst, HOSTID(token->devid)); in DevmgrServiceAttachDevice() 255 static bool HdfSListHostSearchDeviceTokenComparer(struct HdfSListNode *tokenNode, uint32_t devid) in HdfSListHostSearchDeviceTokenComparer() argument 258 return tokenClnt->tokenIf->devid == devid; in HdfSListHostSearchDeviceTokenComparer() 261 static int DevmgrServiceDetachDevice(struct IDevmgrService *inst, devid_t devid) in DevmgrServiceDetachDevice() argument 267 hostClnt = DevmgrServiceFindDeviceHost(inst, HOSTID(devid)); in DevmgrServiceDetachDevice() 272 … tokenClntNode = HdfSListSearch(&hostClnt->devices, devid, HdfSListHostSearchDeviceTokenComparer); in DevmgrServiceDetachDevice() 274 HDF_LOGE("devmgr detach device %{public}x not found", devid); in DevmgrServiceDetachDevice() 380 HdfSbufWriteUint32(reply, tokenClnt->tokenIf->devid); in DevmgrServiceListAllDevice()
|
/drivers/hdf_core/framework/core/shared/include/ |
D | device_token_if.h | 17 devid_t devid; member
|
/drivers/hdf_core/adapter/uhdf2/host/src/ |
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()
|
D | devmgr_service_proxy.c | 69 …fRemoteServiceWriteInterfaceToken(remoteService, data) || !HdfSbufWriteInt32(data, token->devid) || in DevmgrServiceProxyAttachDevice() 81 int DevmgrServiceProxyDetachDevice(struct IDevmgrService *inst, devid_t devid) in DevmgrServiceProxyDetachDevice() argument 92 …if (!HdfRemoteServiceWriteInterfaceToken(remoteService, data) || !HdfSbufWriteInt32(data, devid)) { in DevmgrServiceProxyDetachDevice()
|
/drivers/hdf_core/framework/core/host/include/ |
D | devmgr_service_clnt.h | 27 int DevmgrServiceClntDetachDevice(devid_t devid);
|
D | hdf_service_subscriber.h | 28 …dfServiceSubscriber *HdfServiceSubscriberObtain(struct SubscriberCallback callback, devid_t devid);
|
/drivers/hdf_core/adapter/uhdf2/manager/src/ |
D | devhost_service_proxy.c | 52 struct IDevHostService *inst, devid_t devid) in DevHostServiceProxyDelDevice() argument 62 HdfSbufWriteUint32(data, devid); in DevHostServiceProxyDelDevice()
|
D | devmgr_service_stub.c | 51 tokenClnt->super.devid = deviceId; in DevmgrServiceStubDispatchAttachDevice()
|