Home
last modified time | relevance | path

Searched refs:gpioDevice (Results 1 – 4 of 4) sorted by relevance

/drivers/hdf_core/adapter/platform/gpio/
Dgpio_wm.c300 struct GpioDevice *gpioDevice = NULL; in AttachGpioDevice() local
306 gpioDevice = (struct GpioDevice *)OsalMemAlloc(sizeof(struct GpioDevice)); in AttachGpioDevice()
307 if (gpioDevice == NULL) { in AttachGpioDevice()
312 ret = GetGpioDeviceResource(gpioDevice, device->property); in AttachGpioDevice()
314 (void)OsalMemFree(gpioDevice); in AttachGpioDevice()
318 gpioCntlr->count = gpioDevice->resource.pinNum; in AttachGpioDevice()
Dgpio_asr.c383 struct GpioDevice *gpioDevice = NULL; local
393 gpioDevice = (struct GpioDevice *)OsalMemAlloc(sizeof(struct GpioDevice));
394 if (gpioDevice == NULL) {
399 ret = GetGpioDeviceResource(gpioDevice);
401 ret = GetGpioDeviceResource(gpioDevice, device->property);
404 (void)OsalMemFree(gpioDevice);
408 (void)OsalMemFree(gpioDevice);
409 gpioCntlr->count = gpioDevice->resource.pinNum;
Dgpio_bes.c267 struct GpioDevice *gpioDevice = NULL; local
277 gpioDevice = (struct GpioDevice *)OsalMemAlloc(sizeof(struct GpioDevice));
278 if (gpioDevice == NULL) {
283 ret = GetGpioDeviceResource(gpioDevice);
285 ret = GetGpioDeviceResource(gpioDevice, device->property);
288 OsalMemFree(gpioDevice);
292 gpioCntlr->count = gpioDevice->resource.pinNum;
293 gpioCntlr->priv = (void *)gpioDevice;
Dgpio_stm32f4xx.c354 GpioDevice *gpioDevice = NULL; local
364 gpioDevice = (GpioDevice *)OsalMemAlloc(sizeof(GpioDevice));
365 if (gpioDevice == NULL) {
371 ret = GetGpioDeviceResource(gpioDevice);
373 ret = GetGpioDeviceResource(gpioDevice, device->property);
376 (void)OsalMemFree(gpioDevice);
379 gpioCntlr->priv = gpioDevice;
380 gpioCntlr->count = gpioDevice->pinNums;