Lines Matching refs:groups
52 *group = &stm32gpio->groups[groupIndex]; in Mp1xxGetGroupByGpioNum()
444 struct GpioGroup *groups = NULL; in InitGpioCntlrMem() local
451 groups = (struct GpioGroup *)OsalMemCalloc(groupMemSize); in InitGpioCntlrMem()
452 if (groups == NULL) { in InitGpioCntlrMem()
455 cntlr->groups = groups; in InitGpioCntlrMem()
458 groups[i].index = i; in InitGpioCntlrMem()
459 groups[i].regBase = cntlr->regBase + (i * cntlr->gpioRegStep); in InitGpioCntlrMem()
460 groups[i].exitBase = cntlr->exitBase; in InitGpioCntlrMem()
461 if (OsalSpinInit(&groups[i].lock) != HDF_SUCCESS) { in InitGpioCntlrMem()
463 (void)OsalSpinDestroy(&groups[i - 1].lock); in InitGpioCntlrMem()
465 OsalMemFree(groups); in InitGpioCntlrMem()
477 if (cntlr->groups != NULL) { in ReleaseGpioCntlrMem()
479 (void)OsalSpinDestroy(&cntlr->groups[i].lock); in ReleaseGpioCntlrMem()
481 OsalMemFree(cntlr->groups); in ReleaseGpioCntlrMem()
482 cntlr->groups = NULL; in ReleaseGpioCntlrMem()