Home
last modified time | relevance | path

Searched refs:deviceObject (Results 1 – 15 of 15) sorted by relevance

/device/soc/chipsea/cst85/liteos_m/components/drivers/led_driver/src/
Dled_driver.c50 static void HdfLedDriverRelease(struct HdfDeviceObject *deviceObject) in HdfLedDriverRelease() argument
52 (void)deviceObject; in HdfLedDriverRelease()
56 static int HdfLedDriverBind(struct HdfDeviceObject *deviceObject) in HdfLedDriverBind() argument
58 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in HdfLedDriverBind()
59 if (deviceObject == NULL) { in HdfLedDriverBind()
67 deviceObject->service = &LedService.service; in HdfLedDriverBind()
72 static int HdfLedDriverInit(struct HdfDeviceObject *deviceObject) in HdfLedDriverInit() argument
74 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in HdfLedDriverInit()
75 if (deviceObject == NULL) { in HdfLedDriverInit()
84 deviceObject->service = &LedService.service; in HdfLedDriverInit()
/device/qemu/riscv32_virt/liteos_m/board/hardware/adapter/
Dhdf_syscall_adapter.c43 static struct HdfSyscallAdapter *HdfSyscallAdapterInstance(struct HdfDeviceObject *deviceObject) in HdfSyscallAdapterInstance() argument
51 adapter = CONTAINER_OF(deviceObject, struct HdfSyscallAdapter, deviceObject); in HdfSyscallAdapterInstance()
64 if (deviceObject == NULL) { in HdfSyscallAdapterInstance()
70 adapter->client.device = deviceObject; in HdfSyscallAdapterInstance()
72 if (deviceObject->service != NULL && deviceObject->service->Open != NULL) { in HdfSyscallAdapterInstance()
73 if (deviceObject->service->Open(&adapter->client) != HDF_SUCCESS) { in HdfSyscallAdapterInstance()
87 struct HdfDeviceObject *deviceObject = NULL; in HdfIoServiceAdapterObtain() local
101 deviceObject = DevSvcManagerClntGetDeviceObject(serviceName); in HdfIoServiceAdapterObtain()
102 if (deviceObject == NULL) { in HdfIoServiceAdapterObtain()
106 adapter = HdfSyscallAdapterInstance(deviceObject); in HdfIoServiceAdapterObtain()
[all …]
Dhdf_syscall_adapter.h27 struct HdfDeviceObject deviceObject; member
/device/board/beken/bk7235x/hdf/src/
Dbk_i2c_driver.c74 static int32_t I2cDriverBind(struct HdfDeviceObject *deviceObject) in I2cDriverBind() argument
76 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in I2cDriverBind()
78 if (deviceObject == NULL) { in I2cDriverBind()
82 deviceObject->service = &g_i2cService.service; in I2cDriverBind()
86 static int32_t I2cDriverInit(struct HdfDeviceObject *deviceObject) in I2cDriverInit() argument
90 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in I2cDriverInit()
92 if (deviceObject == NULL) { in I2cDriverInit()
96 ret = GetI2cDeviceResource(&g_i2cService, deviceObject->property); in I2cDriverInit()
106 static void I2cDriverRelease(struct HdfDeviceObject *deviceObject) in I2cDriverRelease() argument
108 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in I2cDriverRelease()
Dbk_uart_driver.c91 static int32_t UartDriverBind(struct HdfDeviceObject *deviceObject) in UartDriverBind() argument
93 HDF_LOGI("%s::enter, deviceObject=%p", __func__, deviceObject); in UartDriverBind()
95 if (deviceObject == NULL) { in UartDriverBind()
99 deviceObject->service = &g_uartService.service; in UartDriverBind()
103 static int32_t UartDriverInit(struct HdfDeviceObject *deviceObject) in UartDriverInit() argument
107 HDF_LOGI("%s::enter, deviceObject=%p", __func__, deviceObject); in UartDriverInit()
109 if (deviceObject == NULL) { in UartDriverInit()
113 ret = GetUartDeviceResource(&g_uartService, deviceObject->property); in UartDriverInit()
123 static void UartDriverRelease(struct HdfDeviceObject *deviceObject) in UartDriverRelease() argument
125 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in UartDriverRelease()
Dbk_gpio_driver.c275 static int32_t GpioDriverBind(struct HdfDeviceObject *deviceObject) in GpioDriverBind() argument
277 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in GpioDriverBind()
279 if (deviceObject == NULL) { in GpioDriverBind()
283 deviceObject->service = &g_GpioService.service; in GpioDriverBind()
287 static int32_t GpioDriverInit(struct HdfDeviceObject *deviceObject) in GpioDriverInit() argument
292 HDF_LOGD("%s::enter, deviceObject=%p", __func__, deviceObject); in GpioDriverInit()
294 if (deviceObject == NULL) { in GpioDriverInit()
298 ret = GetGpioDeviceResource(&g_GpioService, deviceObject->property); in GpioDriverInit()
310 gpioCntlr->device.hdfDev = deviceObject; in GpioDriverInit()
326 static void GpioDriverRelease(struct HdfDeviceObject *deviceObject) in GpioDriverRelease() argument
[all …]
/device/qemu/riscv32_virt/liteos_m/board/driver/cfiflash/
Dhdf_cfi.c22 int HdfCfiDriverInit(struct HdfDeviceObject *deviceObject) in HdfCfiDriverInit() argument
28 if (deviceObject == NULL || deviceObject->property == NULL) { in HdfCfiDriverInit()
33 if ((ret = p->GetUint32(deviceObject->property, "pbase0", &pbase, 0))) { in HdfCfiDriverInit()
42 if ((ret = p->GetUint32(deviceObject->property, "pbase1", &pbase, 0))) { in HdfCfiDriverInit()
/device/soc/st/stm32f407zg/uniproton/board/hdf_platform/src/
Dethernet_init.c35 static int32_t EthernetInit(struct HdfDeviceObject *deviceObject) in EthernetInit() argument
/device/board/bearpi/bearpi_hm_micro/docs/device-dev/
D编写一个点亮LED灯程序.md173 int32_t HdfLedDriverBind(struct HdfDeviceObject *deviceObject)
175 if (deviceObject == NULL)
183 deviceObject->service = (struct IDeviceIoService *)(&ledDriver);
216 void HdfLedDriverRelease(struct HdfDeviceObject *deviceObject)
218 if (deviceObject == NULL)
/device/qemu/drivers/virtio/
Dvirtinput.c383 static void HdfVirtinRelease(struct HdfDeviceObject *deviceObject) in HdfVirtinRelease() argument
385 if (deviceObject == NULL) { in HdfVirtinRelease()
389 struct Virtin *in = deviceObject->priv; in HdfVirtinRelease()
Dvirtgpu.c583 static void HdfVirtgpuRelease(struct HdfDeviceObject *deviceObject) in HdfVirtgpuRelease() argument
585 if (deviceObject) { in HdfVirtgpuRelease()
586 if (deviceObject->priv) { in HdfVirtgpuRelease()
587 VirtgpuDeInit(deviceObject->priv); in HdfVirtgpuRelease()
Dvirtblock.c507 static void HdfVirtblkRelease(struct HdfDeviceObject *deviceObject) in HdfVirtblkRelease() argument
509 struct MmcCntlr *cntlr = deviceObject->priv; in HdfVirtblkRelease()
Dvirtnet.c797 static void FakeWifiRelease(struct HdfDeviceObject *deviceObject) in FakeWifiRelease() argument
799 if (deviceObject) { in FakeWifiRelease()
/device/qemu/riscv32_virt/liteos_m/board/driver/
Dvirtinput.c422 static void HdfVirtinRelease(struct HdfDeviceObject *deviceObject) in HdfVirtinRelease() argument
424 if (deviceObject == NULL) { in HdfVirtinRelease()
428 struct Virtin *in = deviceObject->priv; in HdfVirtinRelease()
Dvirtgpu.c595 static void HdfVirtgpuRelease(struct HdfDeviceObject *deviceObject) in HdfVirtgpuRelease() argument
597 if (deviceObject) { in HdfVirtgpuRelease()
598 if (deviceObject->priv) { in HdfVirtgpuRelease()