Lines Matching refs:cfg
36 const struct mux_config *cfg; in davinci_cfg_reg() local
56 cfg = &soc_info->pinmux_pins[index]; in davinci_cfg_reg()
58 if (cfg->name == NULL) { in davinci_cfg_reg()
64 if (cfg->mask) { in davinci_cfg_reg()
68 reg_orig = __raw_readl(pinmux_base + cfg->mux_reg); in davinci_cfg_reg()
70 mask = (cfg->mask << cfg->mask_offset); in davinci_cfg_reg()
74 tmp2 = (cfg->mode << cfg->mask_offset); in davinci_cfg_reg()
80 __raw_writel(reg, pinmux_base + cfg->mux_reg); in davinci_cfg_reg()
86 pr_warn("initialized %s\n", cfg->name); in davinci_cfg_reg()
91 if (cfg->debug || warn) { in davinci_cfg_reg()
92 pr_warn("Setting register %s\n", cfg->name); in davinci_cfg_reg()
94 cfg->mux_reg_name, cfg->mux_reg, reg_orig, reg); in davinci_cfg_reg()