Searched refs:gpioCntlr (Results 1 – 5 of 5) sorted by relevance
/drivers/hdf_core/adapter/platform/gpio/ |
D | gpio_wm.c | 60 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() [all …]
|
D | gpio_bes.c | 263 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->start); [all …]
|
D | gpio_asr.c | 379 static int32_t AttachGpioDevice(struct GpioCntlr *gpioCntlr, const struct HdfDeviceObject *device) argument 409 gpioCntlr->count = gpioDevice->resource.pinNum; 417 struct GpioCntlr *gpioCntlr = NULL; local 430 gpioCntlr = GpioCntlrFromHdfDev(device); 431 if (gpioCntlr == NULL) { 436 ret = AttachGpioDevice(gpioCntlr, device); // GpioCntlr add GpioDevice to priv 442 gpioCntlr->ops = &g_GpioCntlrMethod; // register callback 443 ret = GpioCntlrAdd(gpioCntlr); 445 HDF_LOGE("GpioCntlrAdd fail %d\r\n", gpioCntlr->start); 453 struct GpioCntlr *gpioCntlr = NULL; local [all …]
|
D | gpio_gr5xx.c | 391 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()
|
D | gpio_stm32f4xx.c | 350 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->start); [all …]
|