Lines Matching refs:config
26 const struct mod_system_pll_dev_config *config; member
103 if ((rate % ctx->config->min_step) > 0) { in system_pll_set_rate()
108 rounded_rate = FWK_ALIGN_PREVIOUS(rate, ctx->config->min_step); in system_pll_set_rate()
109 rounded_rate_alt = FWK_ALIGN_NEXT(rate, ctx->config->min_step); in system_pll_set_rate()
116 rounded_rate = FWK_ALIGN_PREVIOUS(rate, ctx->config->min_step); in system_pll_set_rate()
119 rounded_rate = FWK_ALIGN_NEXT(rate, ctx->config->min_step); in system_pll_set_rate()
127 if (rounded_rate < ctx->config->min_rate) in system_pll_set_rate()
129 if (rounded_rate > ctx->config->max_rate) in system_pll_set_rate()
137 *ctx->config->control_reg = picoseconds; in system_pll_set_rate()
139 if (ctx->config->status_reg != NULL) { in system_pll_set_rate()
141 while ((*ctx->config->status_reg & ctx->config->lock_flag_mask) == 0) in system_pll_set_rate()
209 range->min = ctx->config->min_rate; in system_pll_get_range()
210 range->max = ctx->config->max_rate; in system_pll_get_range()
211 range->step = ctx->config->min_step; in system_pll_get_range()
236 rate = ctx->config->initial_rate; in system_pll_power_state_change()
295 ctx->config = dev_config; in system_pll_element_init()
297 if (ctx->config->defer_initialization) in system_pll_element_init()
302 return system_pll_set_rate(element_id, ctx->config->initial_rate, in system_pll_element_init()