Home
last modified time | relevance | path

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

/drivers/hdf_core/adapter/platform/gpio/
H A Dgpio_wm.c60 static struct GpioCntlr gpioCntlr; variable
76 GpioCntlrIrqCallback(&gpioCntlr, i); in GpioIrqHdl()
296 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, const struct HdfDeviceObject *device) in AttachGpioDevice() argument
318 gpioCntlr->count = gpioDevice->resource.pinNum; in AttachGpioDevice()
326 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverInit() local
333 gpioCntlr = GpioCntlrFromHdfDev(device); in GpioDriverInit()
334 if (gpioCntlr == NULL) { in GpioDriverInit()
339 ret = AttachGpioDevice(gpioCntlr, device); // GpioCntlr add GpioDevice to priv in GpioDriverInit()
345 gpioCntlr->ops = &g_GpioCntlrMethod; // register callback in GpioDriverInit()
346 ret = GpioCntlrAdd(gpioCntlr); in GpioDriverInit()
369 struct GpioCntlr *gpioCntlr = NULL; GpioDriverRelease() local
[all...]
H A Dgpio_bes.c263 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, const struct HdfDeviceObject *device) argument
292 gpioCntlr->count = gpioDevice->resource.pinNum;
293 gpioCntlr->priv = (void *)gpioDevice;
300 struct GpioCntlr *gpioCntlr = NULL; local
313 gpioCntlr = GpioCntlrFromHdfDev(device);
314 if (gpioCntlr == NULL) {
319 ret = AttachGpioDevice(gpioCntlr, device); // GpioCntlr add GpioDevice to priv
325 gpioCntlr->ops = &g_GpioCntlrMethod; // register callback
326 ret = GpioCntlrAdd(gpioCntlr);
328 HDF_LOGE("GpioCntlrAdd fail %d\r\n", gpioCntlr
336 struct GpioCntlr *gpioCntlr = NULL; global() local
[all...]
H A Dgpio_asr.c383 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, const struct HdfDeviceObject *device) argument
413 gpioCntlr->count = gpioDevice->resource.pinNum;
421 struct GpioCntlr *gpioCntlr = NULL; local
434 gpioCntlr = GpioCntlrFromHdfDev(device);
435 if (gpioCntlr == NULL) {
440 ret = AttachGpioDevice(gpioCntlr, device); // GpioCntlr add GpioDevice to priv
446 gpioCntlr->ops = &g_GpioCntlrMethod; // register callback
447 ret = GpioCntlrAdd(gpioCntlr);
449 HDF_LOGE("GpioCntlrAdd fail %d\r\n", gpioCntlr->start);
457 struct GpioCntlr *gpioCntlr local
[all...]
H A Dgpio_stm32f4xx.c350 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, const struct HdfDeviceObject *device) argument
379 gpioCntlr->priv = gpioDevice;
380 gpioCntlr->count = gpioDevice->pinNums;
388 struct GpioCntlr *gpioCntlr = NULL; local
401 gpioCntlr = GpioCntlrFromHdfDev(device);
402 if (gpioCntlr == NULL) {
407 ret = AttachGpioDevice(gpioCntlr, device); /* GpioCntlr add GpioDevice to priv */
413 gpioCntlr->ops = &g_GpioCntlrMethod; /* register callback */
414 ret = GpioCntlrAdd(gpioCntlr);
416 HDF_LOGE("GpioCntlrAdd fail %d\r\n", gpioCntlr
435 struct GpioCntlr *gpioCntlr = NULL; global() local
[all...]
H A Dgpio_gr5xx.c391 struct GpioCntlr *gpioCntlr = &g_GpioCntlr; in GpioDriverInit() local
405 gpioCntlr->count = IO_NUM_MAX; in GpioDriverInit()
406 gpioCntlr->priv = (void *)device->property; in GpioDriverInit()
407 gpioCntlr->ops = &g_GpioCntlrMethod; in GpioDriverInit()
408 (void)PlatformDeviceBind(&gpioCntlr->device, device); in GpioDriverInit()
409 ret = GpioCntlrAdd(gpioCntlr); in GpioDriverInit()
420 struct GpioCntlr *gpioCntlr = NULL; in GpioDriverRelease() local
427 gpioCntlr = GpioCntlrFromHdfDev(device); in GpioDriverRelease()
428 if (gpioCntlr == NULL) { in GpioDriverRelease()
434 GpioCntlrRemove(gpioCntlr); in GpioDriverRelease()
[all...]

Completed in 4 milliseconds