Home
last modified time | relevance | path

Searched refs:devid (Results 1 – 13 of 13) sorted by relevance

/drivers/hdf_core/interfaces/inner_api/host/shared/
Dhdf_device.h34 #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/
Dhdf_device.c49 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()
Dhdf_service_subscriber.c13 …HdfServiceSubscriber *HdfServiceSubscriberObtain(struct SubscriberCallback callback, devid_t devid) in HdfServiceSubscriberObtain() argument
19 serviceSubscriber->devId = devid; in HdfServiceSubscriberObtain()
Ddevmgr_service_clnt.c51 int DevmgrServiceClntDetachDevice(devid_t devid) in DevmgrServiceClntDetachDevice() argument
64 return devMgrSvcIf->DetachDevice(devMgrSvcIf, devid); in DevmgrServiceClntDetachDevice()
Dhdf_device_node.c263 devNode->token->devid = deviceInfo->deviceId; in HdfDeviceNodeNewInstance()
/drivers/hdf_core/framework/core/manager/src/
Ddevmgr_service.c240 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/
Ddevice_token_if.h17 devid_t devid; member
/drivers/hdf_core/adapter/uhdf2/host/src/
Ddevhost_service_full.c43 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()
Ddevmgr_service_proxy.c69 …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/
Ddevmgr_service_clnt.h27 int DevmgrServiceClntDetachDevice(devid_t devid);
Dhdf_service_subscriber.h28 …dfServiceSubscriber *HdfServiceSubscriberObtain(struct SubscriberCallback callback, devid_t devid);
/drivers/hdf_core/adapter/uhdf2/manager/src/
Ddevhost_service_proxy.c52 struct IDevHostService *inst, devid_t devid) in DevHostServiceProxyDelDevice() argument
62 HdfSbufWriteUint32(data, devid); in DevHostServiceProxyDelDevice()
Ddevmgr_service_stub.c51 tokenClnt->super.devid = deviceId; in DevmgrServiceStubDispatchAttachDevice()