Home
last modified time | relevance | path

Searched refs:PlatformDevice (Results 1 – 23 of 23) sorted by relevance

/drivers/hdf_core/framework/support/platform/include/fwk/
Dplatform_device.h29 struct PlatformDevice { struct
53 int32_t PlatformDeviceInit(struct PlatformDevice *device); argument
64 void PlatformDeviceUninit(struct PlatformDevice *device);
76 int32_t PlatformDeviceSetName(struct PlatformDevice *device, const char *fmt, ...);
87 void PlatformDeviceClearName(struct PlatformDevice *device);
97 int32_t PlatformDeviceGet(struct PlatformDevice *device);
106 void PlatformDevicePut(struct PlatformDevice *device);
116 int32_t PlatformDeviceRefCount(struct PlatformDevice *device);
129 int32_t PlatformDeviceWaitEvent(struct PlatformDevice *device, uint32_t mask, uint32_t tms, uint32_…
140 int32_t PlatformDevicePostEvent(struct PlatformDevice *device, uint32_t events);
[all …]
Dplatform_manager.h22 struct PlatformDevice device;
24 int32_t (*add)(struct PlatformManager *manager, struct PlatformDevice *device);
25 int32_t (*del)(struct PlatformManager *manager, struct PlatformDevice *device);
71 int32_t PlatformManagerAddDevice(struct PlatformManager *manager, struct PlatformDevice *device);
84 int32_t PlatformManagerDelDevice(struct PlatformManager *manager, struct PlatformDevice *device);
100 struct PlatformDevice *PlatformManagerFindDevice(struct PlatformManager *manager, void *data,
101 bool (*match)(struct PlatformDevice *pdevice, void *data));
114 struct PlatformDevice *PlatformManagerGetDeviceByNumber(struct PlatformManager *manager, uint32_t n…
127 struct PlatformDevice *PlatformManagerGetDeviceByName(struct PlatformManager *manager, const char *…
/drivers/hdf_core/framework/support/platform/src/fwk/
Dplatform_manager.c45 struct PlatformDevice *tmp = NULL; in PlatformManagerClearDevice()
46 struct PlatformDevice *pos = NULL; in PlatformManagerClearDevice()
54 DLIST_FOR_EACH_ENTRY_SAFE(pos, tmp, &manager->devices, struct PlatformDevice, node) { in PlatformManagerClearDevice()
127 …2_t PlatformManagerAddDeviceDefault(struct PlatformManager *manager, struct PlatformDevice *device) in PlatformManagerAddDeviceDefault()
129 struct PlatformDevice *tmp = NULL; in PlatformManagerAddDeviceDefault()
133 DLIST_FOR_EACH_ENTRY(tmp, &manager->devices, struct PlatformDevice, node) { in PlatformManagerAddDeviceDefault()
159 int32_t PlatformManagerAddDevice(struct PlatformManager *manager, struct PlatformDevice *device) in PlatformManagerAddDevice()
162 struct PlatformDevice *pos = NULL; in PlatformManagerAddDevice()
175 DLIST_FOR_EACH_ENTRY(pos, &manager->devices, struct PlatformDevice, node) { in PlatformManagerAddDevice()
203 …atformManagerDelDeviceDefault(const struct PlatformManager *manager, struct PlatformDevice *device) in PlatformManagerDelDeviceDefault()
[all …]
Dplatform_device.c25 struct PlatformDevice *device = NULL; in PlatformDeviceOnLastPut()
33 device = CONTAINER_OF(sref, struct PlatformDevice, ref); in PlatformDeviceOnLastPut()
53 int32_t PlatformDeviceSetName(struct PlatformDevice *device, const char *fmt, ...) in PlatformDeviceSetName()
102 void PlatformDeviceClearName(struct PlatformDevice *device) in PlatformDeviceClearName()
110 int32_t PlatformDeviceInit(struct PlatformDevice *device) in PlatformDeviceInit()
140 void PlatformDeviceUninit(struct PlatformDevice *device) in PlatformDeviceUninit()
152 int32_t PlatformDeviceGet(struct PlatformDevice *device) in PlatformDeviceGet()
163 void PlatformDevicePut(struct PlatformDevice *device) in PlatformDevicePut()
170 int32_t PlatformDeviceRefCount(struct PlatformDevice *device) in PlatformDeviceRefCount()
178 int32_t PlatformDeviceAdd(struct PlatformDevice *device) in PlatformDeviceAdd()
[all …]
/drivers/hdf_core/framework/test/unittest/platform/common/
Dplatform_manager_test.c22 static struct PlatformDevice *g_platDevices[PLAT_MGR_TEST_DEV_NUM];
31 g_platDevices[i] = (struct PlatformDevice *)OsalMemCalloc(sizeof(struct PlatformDevice)); in PlatformManagerTestCreateDevices()
73 struct PlatformDevice *device0 = g_platDevices[PLAT_DEV_NUMBER_0]; in PlatformManagerTestAddAndDel()
74 struct PlatformDevice *device1 = g_platDevices[PLAT_DEV_NUMBER_1]; in PlatformManagerTestAddAndDel()
75 struct PlatformDevice *device2 = g_platDevices[PLAT_DEV_NUMBER_2]; in PlatformManagerTestAddAndDel()
76 struct PlatformDevice *device0Get = NULL; in PlatformManagerTestAddAndDel()
77 struct PlatformDevice *device1Get = NULL; in PlatformManagerTestAddAndDel()
139 struct PlatformDevice *device0 = g_platDevices[PLAT_DEV_NUMBER_0]; in PlatformManagerTestGetDevice()
140 struct PlatformDevice *device1 = g_platDevices[PLAT_DEV_NUMBER_1]; in PlatformManagerTestGetDevice()
141 struct PlatformDevice *device2 = g_platDevices[PLAT_DEV_NUMBER_2]; in PlatformManagerTestGetDevice()
[all …]
Dplatform_device_test.c25 static int32_t PlatformDeviceTestSetName(struct PlatformDevice *device) in PlatformDeviceTestSetName()
53 static int32_t PlatformDeviceTestGetDevice(struct PlatformDevice *device) in PlatformDeviceTestGetDevice()
92 static int32_t PlatformDeviceTestWaitEvent(struct PlatformDevice *device) in PlatformDeviceTestWaitEvent()
120 static int32_t PlatformDeviceTestAddDevice(struct PlatformDevice *device) in PlatformDeviceTestAddDevice()
124 struct PlatformDevice *deviceGet = NULL; in PlatformDeviceTestAddDevice()
161 static int32_t PlatformDeviceTestCreateService(struct PlatformDevice *device) in PlatformDeviceTestCreateService()
180 static int32_t PlatformDeviceTestBindDevice(struct PlatformDevice *device) in PlatformDeviceTestBindDevice()
185 struct PlatformDevice *devFromHdf = NULL; in PlatformDeviceTestBindDevice()
206 static int32_t PlatformDeviceTestReliability(struct PlatformDevice *device) in PlatformDeviceTestReliability()
211 struct PlatformDevice *devGet = NULL; in PlatformDeviceTestReliability()
[all …]
/drivers/hdf_core/adapter/khdf/uniproton/test/sample_driver/src/
Dplatform_manager_test.c42 static struct PlatformDevice *g_platDevices[PLAT_MGR_TEST_DEV_NUM];
51 g_platDevices[i] = (struct PlatformDevice *)OsalMemCalloc(sizeof(struct PlatformDevice)); in PlatformManagerTestCreateDevices()
91 struct PlatformDevice *device0 = g_platDevices[PLAT_DEV_NUMBER_0]; in PlatformManagerTestAddAndDel()
92 struct PlatformDevice *device1 = g_platDevices[PLAT_DEV_NUMBER_1]; in PlatformManagerTestAddAndDel()
93 struct PlatformDevice *device2 = g_platDevices[PLAT_DEV_NUMBER_2]; in PlatformManagerTestAddAndDel()
94 struct PlatformDevice *device0Get = NULL; in PlatformManagerTestAddAndDel()
95 struct PlatformDevice *device1Get = NULL; in PlatformManagerTestAddAndDel()
157 struct PlatformDevice *device0 = g_platDevices[PLAT_DEV_NUMBER_0]; in PlatformManagerTestGetDevice()
158 struct PlatformDevice *device1 = g_platDevices[PLAT_DEV_NUMBER_1]; in PlatformManagerTestGetDevice()
159 struct PlatformDevice *device2 = g_platDevices[PLAT_DEV_NUMBER_2]; in PlatformManagerTestGetDevice()
[all …]
Dplatform_device_test.c45 static int32_t PlatformDeviceTestSetName(struct PlatformDevice *device) in PlatformDeviceTestSetName()
73 static int32_t PlatformDeviceTestGetDevice(struct PlatformDevice *device) in PlatformDeviceTestGetDevice()
112 static int32_t PlatformDeviceTestAddDevice(struct PlatformDevice *device) in PlatformDeviceTestAddDevice()
116 struct PlatformDevice *deviceGet = NULL; in PlatformDeviceTestAddDevice()
153 static int32_t PlatformDeviceTestCreateService(struct PlatformDevice *device) in PlatformDeviceTestCreateService()
172 static int32_t PlatformDeviceTestBindDeviceBefore(struct PlatformDevice *device) in PlatformDeviceTestBindDeviceBefore()
186 static int32_t PlatformDeviceTestBindDeviceAfter(struct PlatformDevice *device) in PlatformDeviceTestBindDeviceAfter()
195 static int32_t PlatformDeviceTestBindDevice(struct PlatformDevice *device) in PlatformDeviceTestBindDevice()
199 struct PlatformDevice *devFromHdf = NULL; in PlatformDeviceTestBindDevice()
219 static int32_t PlatformDeviceTestReliability(struct PlatformDevice *device) in PlatformDeviceTestReliability()
[all …]
/drivers/hdf_core/framework/support/platform/src/gpio/
Dgpio_manager.c22 struct PlatformDevice *iterLast = NULL; in GpioCntlrCheckStart()
23 struct PlatformDevice *iterCur = NULL; in GpioCntlrCheckStart()
24 struct PlatformDevice *tmp = NULL; in GpioCntlrCheckStart()
28 DLIST_FOR_EACH_ENTRY_SAFE(iterCur, tmp, list, struct PlatformDevice, node) { in GpioCntlrCheckStart()
61 static int32_t GpioManagerAdd(struct PlatformManager *manager, struct PlatformDevice *device) in GpioManagerAdd()
77 static int32_t GpioManagerDel(struct PlatformManager *manager, struct PlatformDevice *device) in GpioManagerDel()
217 static bool GpioCntlrFindMatch(struct PlatformDevice *device, void *data) in GpioCntlrFindMatch()
231 struct PlatformDevice *device = NULL; in GpioCntlrGetByGpio()
247 static bool GpioCntlrFindMatchByName(struct PlatformDevice *device, void *data) in GpioCntlrFindMatchByName()
270 struct PlatformDevice *device = NULL; in GpioCntlrGetByGpioName()
/drivers/hdf_core/framework/include/audio/
Daudio_platform_if.h41 … int32_t (*PlatformInit)(const struct AudioCard *audioCard, const struct PlatformDevice *platform);
205 struct PlatformDevice { struct
/drivers/hdf_core/framework/support/platform/include/can/
Dcan_core.h56 struct PlatformDevice device;
88 struct PlatformDevice *pdevice = PlatformDeviceFromHdfDev(device); in CanCntlrFromHdfDev()
/drivers/hdf_core/framework/support/platform/include/pcie/
Dpcie_core.h44 struct PlatformDevice device;
72 …struct PlatformDevice *device = PlatformManagerGetDeviceByNumber(PlatformManagerGet(PLATFORM_MODUL… in PcieCntlrGetByBusNum()
/drivers/hdf_core/framework/model/audio/sapm/include/
Daudio_sapm.h69 struct PlatformDevice *platform; /* parent platform */
105 struct PlatformDevice *platform; /* parent platform */
/drivers/hdf_core/framework/support/platform/src/can/
Dcan_manager.c237 static struct CanCntlr *CanCntlrFromPlatformDevice(const struct PlatformDevice *pdevice) in CanCntlrFromPlatformDevice()
245 struct PlatformDevice *pdevice = NULL; in CanCntlrGetByName()
265 struct PlatformDevice *pdevice = NULL; in CanCntlrGetByNumber()
/drivers/hdf_core/framework/model/audio/usb/include/
Daudio_usb_dma_ops.h16 int32_t AudioUsbDmaDeviceInit(const struct AudioCard *card, const struct PlatformDevice *platform);
/drivers/hdf_core/framework/model/storage/include/mtd/
Dmtd_core.h118 struct PlatformDevice device;
213 struct PlatformDevice *device = PlatformManagerGetDeviceByNumber(MtdManagerGet(), num); in MtdDeviceGetByNum()
/drivers/hdf_core/framework/model/storage/include/mmc/
Dmmc_corex.h56 struct PlatformDevice device;
113 …struct PlatformDevice *device = PlatformManagerGetDeviceByNumber(PlatformManagerGet(PLATFORM_MODUL… in MmcCntlrGetByNr()
227 struct PlatformDevice device;
/drivers/hdf_core/framework/model/audio/core/include/
Daudio_host.h238 struct PlatformDevice *platform;
/drivers/hdf_core/framework/support/platform/include/gpio/
Dgpio_core.h40 struct PlatformDevice device;
/drivers/hdf_core/framework/support/platform/include/hdmi/
Dhdmi_core.h201 struct PlatformDevice device;
238 …struct PlatformDevice *device = PlatformManagerGetDeviceByNumber(PlatformManagerGet(PLATFORM_MODUL… in HdmiCntlrGetByBusNum()
/drivers/hdf_core/framework/model/audio/core/src/
Daudio_core.c38 struct PlatformDevice *platformDevice = NULL; in AudioSocRegisterPlatform()
49 platformDevice = (struct PlatformDevice *)OsalMemCalloc(sizeof(*platformDevice)); in AudioSocRegisterPlatform()
175 struct PlatformDevice *platform = NULL; in AudioSeekPlatformDevice()
186 DLIST_FOR_EACH_ENTRY(platform, &platformController, struct PlatformDevice, list) { in AudioSeekPlatformDevice()
Daudio_host.c92 struct PlatformDevice *platform = NULL; in AudioPlatformDevInit()
/drivers/hdf_core/framework/model/audio/usb/src/
Daudio_usb_dma_ops.c63 int32_t AudioUsbDmaDeviceInit(const struct AudioCard *card, const struct PlatformDevice *platform) in AudioUsbDmaDeviceInit()