Lines Matching refs:g
1669 const struct nmk_pingroup *g; in nmk_pmx_set() local
1676 g = &npct->soc->groups[group]; in nmk_pmx_set()
1678 if (g->altsetting < 0) in nmk_pmx_set()
1681 dev_dbg(npct->dev, "enable group %s, %u pins\n", g->name, g->npins); in nmk_pmx_set()
1704 glitch = ((g->altsetting & NMK_GPIO_ALT_C) == NMK_GPIO_ALT_C); in nmk_pmx_set()
1716 for (i = 0; i < g->npins; i++) in nmk_pmx_set()
1717 slpm[g->pins[i] / NMK_GPIO_PER_CHIP] &= ~BIT(g->pins[i]); in nmk_pmx_set()
1721 for (i = 0; i < g->npins; i++) { in nmk_pmx_set()
1725 nmk_chip = find_nmk_gpio_from_pin(g->pins[i]); in nmk_pmx_set()
1729 g->pins[i], g->name, i); in nmk_pmx_set()
1732 dev_dbg(npct->dev, "setting pin %d to altsetting %d\n", g->pins[i], g->altsetting); in nmk_pmx_set()
1735 bit = g->pins[i] % NMK_GPIO_PER_CHIP; in nmk_pmx_set()
1746 (g->altsetting & NMK_GPIO_ALT_C), glitch); in nmk_pmx_set()
1757 if ((g->altsetting & NMK_GPIO_ALT_C) == NMK_GPIO_ALT_C) in nmk_pmx_set()
1758 nmk_prcm_altcx_set_mode(npct, g->pins[i], in nmk_pmx_set()
1759 g->altsetting >> NMK_GPIO_ALT_CX_SHIFT); in nmk_pmx_set()