Home
last modified time | relevance | path

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

/drivers/hdf_core/framework/support/platform/src/fwk/
Dplatform_device.c293 if (device->hdfDev != NULL) { in PlatformDeviceSetHdfDev()
298 device->hdfDev = hdfDevice; in PlatformDeviceSetHdfDev()
314 void PlatformDeviceUnbind(struct PlatformDevice *device, const struct HdfDeviceObject *hdfDev) in PlatformDeviceUnbind() argument
320 if (device->hdfDev == NULL) { in PlatformDeviceUnbind()
324 if (device->hdfDev != hdfDev) { in PlatformDeviceUnbind()
329 device->hdfDev->service = NULL; in PlatformDeviceUnbind()
330 device->hdfDev->priv = NULL; in PlatformDeviceUnbind()
331 device->hdfDev = NULL; in PlatformDeviceUnbind()
334 struct PlatformDevice *PlatformDeviceFromHdfDev(const struct HdfDeviceObject *hdfDev) in PlatformDeviceFromHdfDev() argument
336 if (hdfDev == NULL || hdfDev->priv == NULL) { in PlatformDeviceFromHdfDev()
[all …]
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
Dplatform_device_test.c198 struct HdfDeviceObject hdfDev; in PlatformDeviceTestBindDevice() local
203 ret = PlatformDeviceBind(device, &hdfDev); in PlatformDeviceTestBindDevice()
205 CHECK_EQ_RETURN(device->hdfDev, &hdfDev, HDF_FAILURE); in PlatformDeviceTestBindDevice()
206 CHECK_EQ_RETURN(device->service, hdfDev.service, HDF_FAILURE); in PlatformDeviceTestBindDevice()
208 devFromHdf = PlatformDeviceFromHdfDev(&hdfDev); in PlatformDeviceTestBindDevice()
211 PlatformDeviceUnbind(device, &hdfDev); in PlatformDeviceTestBindDevice()
212 CHECK_EQ_RETURN(device->hdfDev, NULL, ret); in PlatformDeviceTestBindDevice()
213 CHECK_EQ_RETURN(hdfDev.service, NULL, ret); in PlatformDeviceTestBindDevice()
223 struct HdfDeviceObject hdfDev; in PlatformDeviceTestReliability() local
263 ret = PlatformDeviceBind(NULL, &hdfDev); in PlatformDeviceTestReliability()
/drivers/hdf_core/framework/test/unittest/platform/common/
Dplatform_device_test.c183 struct HdfDeviceObject hdfDev; in PlatformDeviceTestBindDevice() local
190 ret = PlatformDeviceBind(device, &hdfDev); in PlatformDeviceTestBindDevice()
192 CHECK_EQ_RETURN(device->hdfDev, &hdfDev, HDF_FAILURE); in PlatformDeviceTestBindDevice()
193 CHECK_EQ_RETURN(device->service, hdfDev.service, HDF_FAILURE); in PlatformDeviceTestBindDevice()
195 devFromHdf = PlatformDeviceFromHdfDev(&hdfDev); in PlatformDeviceTestBindDevice()
198 PlatformDeviceUnbind(device, &hdfDev); in PlatformDeviceTestBindDevice()
199 CHECK_EQ_RETURN(device->hdfDev, NULL, ret); in PlatformDeviceTestBindDevice()
200 CHECK_EQ_RETURN(hdfDev.service, NULL, ret); in PlatformDeviceTestBindDevice()
210 struct HdfDeviceObject hdfDev; in PlatformDeviceTestReliability() local
250 ret = PlatformDeviceBind(NULL, &hdfDev); in PlatformDeviceTestReliability()
Dcan_test.c33 static struct HdfDeviceObject hdfDev = { variable
159 LONGS_EQUAL_RETURN(HDF_SUCCESS, g_driverEntry->Init(&hdfDev)); in CanTestSetUpEveryCase()
169 g_driverEntry->Release(&hdfDev); in CanTestTearDownEveryCase()
/drivers/hdf_core/framework/model/input/driver/
Devent_hub.c18 struct HdfDeviceObject *hdfDev = inputDev->hdfDevObj; in SendFramePackages() local
19 if (hdfDev == NULL || inputDev->pkgBuf == NULL) { in SendFramePackages()
23 HdfDeviceSendEvent(hdfDev, 0, inputDev->pkgBuf); in SendFramePackages()
Dhdf_input_device_manager.c50 struct HdfDeviceObject *hdfDev = NULL; in HidRegisterHdfDevice() local
60 hdfDev = HdfDeviceObjectAlloc(g_inputManager->hdfDevObj, moduleName); in HidRegisterHdfDevice()
61 if (hdfDev == NULL) { in HidRegisterHdfDevice()
65 ret = HdfDeviceObjectRegister(hdfDev); in HidRegisterHdfDevice()
68 HdfDeviceObjectRelease(hdfDev); in HidRegisterHdfDevice()
71 …ret = HdfDeviceObjectPublishService(hdfDev, svcName, SERVICE_POLICY_CAPACITY, 0664); // 0664:permi… in HidRegisterHdfDevice()
74 HdfDeviceObjectRelease(hdfDev); in HidRegisterHdfDevice()
77 inputDev->hdfDevObj = hdfDev; in HidRegisterHdfDevice()
79 return hdfDev; in HidRegisterHdfDevice()
/drivers/hdf_core/framework/support/platform/include/fwk/
Dplatform_device.h30 struct HdfDeviceObject *hdfDev; /* related to a hdf device object */ member
259 struct PlatformDevice *PlatformDeviceFromHdfDev(const struct HdfDeviceObject *hdfDev);
/drivers/hdf_core/framework/support/platform/src/gpio/
Dgpio_service.c149 if (gpioMgr == NULL || gpioMgr->device.hdfDev == NULL) { in GpioServiceUpdate()
165 ret = HdfDeviceSendEvent(gpioMgr->device.hdfDev, id, data); in GpioServiceUpdate()
/drivers/hdf_core/adapter/platform/gpio/
Dgpio_wm.c361 gpioCntlr.device.hdfDev = device; in GpioDriverBind()
362 device->service = gpioCntlr.device.hdfDev; in GpioDriverBind()
/drivers/hdf_core/adapter/khdf/linux/network/src/
Dnet_device_adapter.c144 static struct net_device *CreateNetDevice(struct NetDevice *hdfDev) in CreateNetDevice() argument
153 if (memcpy_s(dev->name, IFNAMSIZ, hdfDev->name, IFNAMSIZ) != EOK) { in CreateNetDevice()
/drivers/hdf_core/framework/support/platform/src/pcie/
Dpcie_core.c36 cntlr->device.hdfDev = cntlr->hdfDevObj; in PcieCntlrInit()
/drivers/hdf_core/framework/model/storage/src/mmc/
Dmmc_core.c271 cntlr->device.hdfDev = cntlr->hdfDevObj; in MmcCntlrInit()
/drivers/hdf_core/framework/support/platform/src/hdmi/
Dhdmi_core.c302 cntlr->device.hdfDev = cntlr->hdfDevObj; in HdmiCntlrInit()