Searched refs:gpioCntlr (Results 1 – 5 of 5) sorted by relevance
257 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, struct HdfDeviceObject *device) in AttachGpioDevice() argument269 gpioCntlr->priv = NULL; in AttachGpioDevice()270 gpioCntlr->count = g_pin_nums; in AttachGpioDevice()278 struct GpioCntlr *gpioCntlr = NULL; in Esp32u4GpioInit() local291 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()
290 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverInit() local304 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()
176 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, struct HdfDeviceObject *device);368 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, struct HdfDeviceObject *device) in AttachGpioDevice() argument389 gpioCntlr->priv = gpioDevice; in AttachGpioDevice()390 gpioCntlr->count = gpioDevice->pinNums; in AttachGpioDevice()398 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverInit() local411 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 …]
219 struct GpioCntlr *gpioCntlr = &pB91GpioCntlr->cntlr; in GpioDriverInit() local220 (void)PlatformDeviceBind(&gpioCntlr->device, device); in GpioDriverInit()237 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverRelease() local252 gpioCntlr = GpioCntlrFromHdfDev(device); in GpioDriverRelease()253 if (gpioCntlr == NULL) { in GpioDriverRelease()257 GpioCntlrRemove(gpioCntlr); in GpioDriverRelease()
550 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverRelease() local559 GpioCntlrRemove(gpioCntlr); in GpioDriverRelease()561 stm32gpioGpioCntlr = (struct Mp1xxGpioCntlr *)gpioCntlr; in GpioDriverRelease()