Lines Matching refs:grp
532 const struct tz1090_pdc_pingroup *grp) in tz1090_pdc_pinctrl_mux() argument
535 unsigned int pin_shift = grp->pins[0]; in tz1090_pdc_pinctrl_mux()
543 reg = pmx_read(pmx, grp->reg); in tz1090_pdc_pinctrl_mux()
544 reg &= ~BIT(grp->bit); in tz1090_pdc_pinctrl_mux()
545 reg |= select << grp->bit; in tz1090_pdc_pinctrl_mux()
546 pmx_write(pmx, reg, grp->reg); in tz1090_pdc_pinctrl_mux()
555 const struct tz1090_pdc_pingroup *grp = &tz1090_pdc_groups[group]; in tz1090_pdc_pinctrl_set_mux() local
563 if (grp->drv) in tz1090_pdc_pinctrl_set_mux()
567 if (function != grp->func) in tz1090_pdc_pinctrl_set_mux()
572 pmx->mux_en |= BIT(grp->pins[0]); in tz1090_pdc_pinctrl_set_mux()
573 tz1090_pdc_pinctrl_mux(pmx, grp); in tz1090_pdc_pinctrl_set_mux()
582 const struct tz1090_pdc_pingroup *grp; in find_mux_group() local
585 grp = tz1090_pdc_groups; in find_mux_group()
586 for (group = 0; group < ARRAY_SIZE(tz1090_pdc_groups); ++group, ++grp) { in find_mux_group()
588 if (grp->drv) in find_mux_group()
592 if (grp->pins[0] == pin) in find_mux_group()
593 return grp; in find_mux_group()
605 const struct tz1090_pdc_pingroup *grp = find_mux_group(pmx, pin); in tz1090_pdc_pinctrl_gpio_request_enable() local
607 if (grp) { in tz1090_pdc_pinctrl_gpio_request_enable()
611 tz1090_pdc_pinctrl_mux(pmx, grp); in tz1090_pdc_pinctrl_gpio_request_enable()
623 const struct tz1090_pdc_pingroup *grp = find_mux_group(pmx, pin); in tz1090_pdc_pinctrl_gpio_disable_free() local
625 if (grp) { in tz1090_pdc_pinctrl_gpio_disable_free()
629 tz1090_pdc_pinctrl_mux(pmx, grp); in tz1090_pdc_pinctrl_gpio_disable_free()