Home
last modified time | relevance | path

Searched refs:gpioCntlr (Results 1 – 5 of 5) sorted by relevance

/device/board/openvalley/niobeu4/liteos_m/hdf_drivers/gpio/
Dgpio_esp32u4.c257 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, struct HdfDeviceObject *device) in AttachGpioDevice() argument
269 gpioCntlr->priv = NULL; in AttachGpioDevice()
270 gpioCntlr->count = g_pin_nums; in AttachGpioDevice()
278 struct GpioCntlr *gpioCntlr = NULL; in Esp32u4GpioInit() local
291 gpioCntlr = GpioCntlrFromHdfDev(device); in Esp32u4GpioInit()
292 if (gpioCntlr == NULL) { in Esp32u4GpioInit()
297 ret = AttachGpioDevice(gpioCntlr, device); /* GpioCntlr add GpioDevice to priv */ in Esp32u4GpioInit()
303 gpioCntlr->ops = &g_GpioCntlrMethod; /* register callback */ in Esp32u4GpioInit()
304 ret = GpioCntlrAdd(gpioCntlr); in Esp32u4GpioInit()
306 HDF_LOGE("GpioCntlrAdd fail %d\r\n", gpioCntlr->start); in Esp32u4GpioInit()
/device/board/beken/bk7235x/hdf/src/
Dbk_gpio_driver.c290 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverInit() local
304 gpioCntlr = (struct GpioCntlr *)OsalMemCalloc(sizeof(*gpioCntlr)); in GpioDriverInit()
305 if (gpioCntlr == NULL) { in GpioDriverInit()
310 gpioCntlr->device.hdfDev = deviceObject; in GpioDriverInit()
311 gpioCntlr->start = 20; in GpioDriverInit()
313 gpioCntlr->ops = &g_gpioMethod; in GpioDriverInit()
314 gpioCntlr->count = g_gpioCnt; in GpioDriverInit()
315 ret = GpioCntlrAdd(gpioCntlr); in GpioDriverInit()
321 g_gpioCntlr = gpioCntlr; in GpioDriverInit()
/device/soc/st/stm32f407zg/uniproton/board/hdf_platform/src/
Dgpio_stm32f407.c176 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, struct HdfDeviceObject *device);
368 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, struct HdfDeviceObject *device) in AttachGpioDevice() argument
389 gpioCntlr->priv = gpioDevice; in AttachGpioDevice()
390 gpioCntlr->count = gpioDevice->pinNums; in AttachGpioDevice()
398 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverInit() local
411 gpioCntlr = GpioCntlrFromHdfDev(device); in GpioDriverInit()
412 if (gpioCntlr == NULL) { in GpioDriverInit()
417 ret = AttachGpioDevice(gpioCntlr, device); /* GpioCntlr add GpioDevice to priv */ in GpioDriverInit()
423 gpioCntlr->ops = &g_GpioCntlrMethod; /* register callback */ in GpioDriverInit()
425 ret = GpioCntlrAdd(gpioCntlr); in GpioDriverInit()
[all …]
/device/soc/telink/b91/hdf/
Dgpio_telink.c219 struct GpioCntlr *gpioCntlr = &pB91GpioCntlr->cntlr; in GpioDriverInit() local
220 (void)PlatformDeviceBind(&gpioCntlr->device, device); in GpioDriverInit()
237 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverRelease() local
252 gpioCntlr = GpioCntlrFromHdfDev(device); in GpioDriverRelease()
253 if (gpioCntlr == NULL) { in GpioDriverRelease()
257 GpioCntlrRemove(gpioCntlr); in GpioDriverRelease()
/device/soc/st/common/platform/gpio/
Dstm32mp1_gpio.c550 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverRelease() local
559 GpioCntlrRemove(gpioCntlr); in GpioDriverRelease()
561 stm32gpioGpioCntlr = (struct Mp1xxGpioCntlr *)gpioCntlr; in GpioDriverRelease()