Home
last modified time | relevance | path

Searched refs:ginfos (Results 1 – 3 of 3) sorted by relevance

/drivers/hdf_core/framework/support/platform/src/gpio/
Dgpio_manager.c103 OsalMemFree(cntlr->ginfos); in GpioInfosFree()
104 cntlr->ginfos = NULL; in GpioInfosFree()
115 if (cntlr->ginfos == NULL) { in GpioCntlrCreateGpioInfos()
116 cntlr->ginfos = OsalMemCalloc(sizeof(*cntlr->ginfos) * cntlr->count); in GpioCntlrCreateGpioInfos()
117 if (cntlr->ginfos == NULL) { in GpioCntlrCreateGpioInfos()
125 cntlr->ginfos[i].cntlr = cntlr; in GpioCntlrCreateGpioInfos()
126 if (strlen(cntlr->ginfos[i].name) == 0) { in GpioCntlrCreateGpioInfos()
127 if (snprintf_s(cntlr->ginfos[i].name, GPIO_NAME_LEN, GPIO_NAME_LEN - 1, in GpioCntlrCreateGpioInfos()
134 (void)OsalSpinInit(&cntlr->ginfos[i].spin); in GpioCntlrCreateGpioInfos()
141 (void)OsalSpinDestroy(&cntlr->ginfos[i].spin); in GpioCntlrCreateGpioInfos()
[all …]
Dgpio_core.c121 if (cntlr == NULL || cntlr->ginfos == NULL || local >= cntlr->count) { in GpioCntlrIrqCallback()
125 ginfo = &cntlr->ginfos[local]; in GpioCntlrIrqCallback()
257 if (cntlr == NULL || cntlr->ginfos == NULL) { in GpioCntlrSetIrq()
270 ginfo = &cntlr->ginfos[local]; in GpioCntlrSetIrq()
291 if (cntlr == NULL || cntlr->ginfos == NULL) { in GpioCntlrUnsetIrq()
304 ginfo = &cntlr->ginfos[local]; in GpioCntlrUnsetIrq()
372 if (strcmp(cntlr->ginfos[index].name, gpioName) == 0) { in GpioCntlrGetNumByGpioName()
/drivers/hdf_core/framework/support/platform/include/gpio/
Dgpio_core.h44 struct GpioInfo *ginfos; member
64 return ginfo - &(ginfo->cntlr->ginfos[0]); in GpioInfoToLocal()