Lines Matching refs:config
36 struct clk_factors_config *config; member
57 struct clk_factors_config *config = factors->config; in clk_factors_recalc_rate() local
63 if (config->nwidth != SUNXI_FACTORS_NOT_APPLICABLE) in clk_factors_recalc_rate()
64 n = FACTOR_GET(config->nshift, config->nwidth, reg); in clk_factors_recalc_rate()
65 if (config->kwidth != SUNXI_FACTORS_NOT_APPLICABLE) in clk_factors_recalc_rate()
66 k = FACTOR_GET(config->kshift, config->kwidth, reg); in clk_factors_recalc_rate()
67 if (config->mwidth != SUNXI_FACTORS_NOT_APPLICABLE) in clk_factors_recalc_rate()
68 m = FACTOR_GET(config->mshift, config->mwidth, reg); in clk_factors_recalc_rate()
69 if (config->pwidth != SUNXI_FACTORS_NOT_APPLICABLE) in clk_factors_recalc_rate()
70 p = FACTOR_GET(config->pshift, config->pwidth, reg); in clk_factors_recalc_rate()
94 struct clk_factors_config *config = factors->config; in clk_factors_set_rate() local
106 reg = FACTOR_SET(config->nshift, config->nwidth, reg, n); in clk_factors_set_rate()
107 reg = FACTOR_SET(config->kshift, config->kwidth, reg, k); in clk_factors_set_rate()
108 reg = FACTOR_SET(config->mshift, config->mwidth, reg, m); in clk_factors_set_rate()
109 reg = FACTOR_SET(config->pshift, config->pwidth, reg, p); in clk_factors_set_rate()
144 struct clk_factors_config *config, in clk_register_factors() argument
168 factors->config = config; in clk_register_factors()