/drivers/hdf_core/framework/support/platform/src/fwk/ |
D | platform_device.c | 293 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/ |
D | platform_device_test.c | 198 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/ |
D | platform_device_test.c | 183 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()
|
D | can_test.c | 33 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/ |
D | event_hub.c | 18 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()
|
D | hdf_input_device_manager.c | 50 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/ |
D | platform_device.h | 30 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/ |
D | gpio_service.c | 149 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/ |
D | gpio_wm.c | 361 gpioCntlr.device.hdfDev = device; in GpioDriverBind() 362 device->service = gpioCntlr.device.hdfDev; in GpioDriverBind()
|
/drivers/hdf_core/adapter/khdf/linux/network/src/ |
D | net_device_adapter.c | 144 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/ |
D | pcie_core.c | 36 cntlr->device.hdfDev = cntlr->hdfDevObj; in PcieCntlrInit()
|
/drivers/hdf_core/framework/model/storage/src/mmc/ |
D | mmc_core.c | 271 cntlr->device.hdfDev = cntlr->hdfDevObj; in MmcCntlrInit()
|
/drivers/hdf_core/framework/support/platform/src/hdmi/ |
D | hdmi_core.c | 302 cntlr->device.hdfDev = cntlr->hdfDevObj; in HdmiCntlrInit()
|