Lines Matching refs:grp

84 #define MUX_REG(grp)	_R(0x80 + ((tegra_soc_pingroups[grp].ctl_id / 16) * 4))  argument
85 #define MUX_SHIFT(grp) ((tegra_soc_pingroups[grp].ctl_id % 16) * 2) argument
87 #define PULL_REG(grp) _R(0xa0 + ((tegra_soc_pingroups[grp].pull_id / 16) * 4)) argument
88 #define PULL_SHIFT(grp) ((tegra_soc_pingroups[grp].pull_id % 16) * 2) argument
90 #define TRI_REG(grp) _R(0x14 + (((grp) / 32) * 4)) argument
91 #define TRI_SHIFT(grp) ((grp) % 32) argument
382 u32 *reg = REG(grp); in pinmux_set_schmt()
407 u32 *reg = REG(grp); in pinmux_set_hsm()
515 static void pinmux_set_drvup_slwf(enum pmux_drvgrp grp, int slwf) in pinmux_set_drvup_slwf() argument
517 u32 *reg = DRV_REG(grp); in pinmux_set_drvup_slwf()
525 assert(pmux_drvgrp_isvalid(grp)); in pinmux_set_drvup_slwf()
536 static void pinmux_set_drvdn_slwr(enum pmux_drvgrp grp, int slwr) in pinmux_set_drvdn_slwr() argument
538 u32 *reg = DRV_REG(grp); in pinmux_set_drvdn_slwr()
546 assert(pmux_drvgrp_isvalid(grp)); in pinmux_set_drvdn_slwr()
557 static void pinmux_set_drvup(enum pmux_drvgrp grp, int drvup) in pinmux_set_drvup() argument
559 u32 *reg = DRV_REG(grp); in pinmux_set_drvup()
567 assert(pmux_drvgrp_isvalid(grp)); in pinmux_set_drvup()
578 static void pinmux_set_drvdn(enum pmux_drvgrp grp, int drvdn) in pinmux_set_drvdn() argument
580 u32 *reg = DRV_REG(grp); in pinmux_set_drvdn()
588 assert(pmux_drvgrp_isvalid(grp)); in pinmux_set_drvdn()
600 static void pinmux_set_lpmd(enum pmux_drvgrp grp, enum pmux_lpmd lpmd) in pinmux_set_lpmd() argument
602 u32 *reg = DRV_REG(grp); in pinmux_set_lpmd()
610 assert(pmux_drvgrp_isvalid(grp)); in pinmux_set_lpmd()
623 static void pinmux_set_schmt(enum pmux_drvgrp grp, enum pmux_schmt schmt) in pinmux_set_schmt() argument
625 u32 *reg = DRV_REG(grp); in pinmux_set_schmt()
633 assert(pmux_drvgrp_isvalid(grp)); in pinmux_set_schmt()
648 static void pinmux_set_hsm(enum pmux_drvgrp grp, enum pmux_hsm hsm) in pinmux_set_hsm() argument
650 u32 *reg = DRV_REG(grp); in pinmux_set_hsm()
658 assert(pmux_drvgrp_isvalid(grp)); in pinmux_set_hsm()
674 enum pmux_drvgrp grp = config->drvgrp; in pinmux_config_drvgrp() local
676 pinmux_set_drvup_slwf(grp, config->slwf); in pinmux_config_drvgrp()
677 pinmux_set_drvdn_slwr(grp, config->slwr); in pinmux_config_drvgrp()
678 pinmux_set_drvup(grp, config->drvup); in pinmux_config_drvgrp()
679 pinmux_set_drvdn(grp, config->drvdn); in pinmux_config_drvgrp()
681 pinmux_set_lpmd(grp, config->lpmd); in pinmux_config_drvgrp()
684 pinmux_set_schmt(grp, config->schmt); in pinmux_config_drvgrp()
687 pinmux_set_hsm(grp, config->hsm); in pinmux_config_drvgrp()
705 static void pinmux_mipipadctrl_set_func(enum pmux_mipipadctrlgrp grp, in pinmux_mipipadctrl_set_func() argument
708 u32 *reg = MIPIPADCTRL_REG(grp); in pinmux_mipipadctrl_set_func()
716 assert(pmux_mipipadctrlgrp_isvalid(grp)); in pinmux_mipipadctrl_set_func()
724 if (tegra_soc_mipipadctrl_groups[grp].funcs[i] in pinmux_mipipadctrl_set_func()
741 enum pmux_mipipadctrlgrp grp = config->grp; in pinmux_config_mipipadctrlgrp() local
743 pinmux_mipipadctrl_set_func(grp, config->func); in pinmux_config_mipipadctrlgrp()