Searched refs:target_freq (Results 1 – 4 of 4) sorted by relevance
/Zephyr-latest/drivers/pwm/ |
D | pwm_mchp_xec.c | 155 static uint16_t xec_compare_div_on_off(uint32_t target_freq, uint32_t dc, in xec_compare_div_on_off() argument 162 xec_compute_on_off(target_freq, dc, max_freq[div_a], in xec_compare_div_on_off() 167 xec_compute_on_off(target_freq, dc, max_freq[div_b], in xec_compare_div_on_off() 172 if ((target_freq - freq_a) < (target_freq - freq_b)) { in xec_compare_div_on_off() 188 static uint8_t xec_select_best_div_on_off(uint32_t target_freq, uint32_t dc, in xec_select_best_div_on_off() argument 195 div = xec_select_div(target_freq, max_freq); in xec_select_best_div_on_off() 198 div = xec_compare_div_on_off(target_freq, dc, max_freq, in xec_select_best_div_on_off() 205 static struct xec_params *xec_compare_params(uint32_t target_freq, in xec_compare_params() argument 227 if (abs((int)target_freq - (int)freq_h) < in xec_compare_params() 228 abs((int)target_freq - (int)freq_l)) { in xec_compare_params() [all …]
|
D | pwm_ite_it8xxx2.c | 106 uint32_t actual_freq = 0xffffffff, target_freq, deviation; in pwm_it8xxx2_set_cycles() local 129 target_freq = ((uint32_t) pwm_clk_src) / period_cycles; in pwm_it8xxx2_set_cycles() 140 if (target_freq < 1) { in pwm_it8xxx2_set_cycles() 145 deviation = (target_freq / 100) + 1; in pwm_it8xxx2_set_cycles() 154 if (target_freq <= 324) { in pwm_it8xxx2_set_cycles() 172 if (target_freq != data->target_freq_prev) { in pwm_it8xxx2_set_cycles() 176 cxcprs = (((uint32_t) pwm_clk_src) / (ctr + 1) / target_freq); in pwm_it8xxx2_set_cycles() 183 if (abs(actual_freq - target_freq) < deviation) { in pwm_it8xxx2_set_cycles() 223 data->target_freq_prev = target_freq; in pwm_it8xxx2_set_cycles() 226 (uint32_t) pwm_clk_src, target_freq); in pwm_it8xxx2_set_cycles()
|
/Zephyr-latest/drivers/mipi_dsi/ |
D | dsi_mcux.c | 52 static uint32_t dsi_mcux_best_clock(uint32_t ref_clk, uint32_t target_freq) in dsi_mcux_best_clock() argument 76 vco_freq = target_freq << co_shift; in dsi_mcux_best_clock() 131 if (cand_freq < target_freq) { in dsi_mcux_best_clock() 138 if ((cand_freq - target_freq) < best_diff) { in dsi_mcux_best_clock() 140 best_diff = (cand_freq - target_freq); in dsi_mcux_best_clock()
|
/Zephyr-latest/drivers/clock_control/ |
D | clock_control_nrf2_global_hsfll.c | 177 enum gdfs_frequency_setting target_freq; in global_hsfll_work_handler() local 181 target_freq = global_hsfll_freq_idx_to_nrfs_freq(dev, freq_idx); in global_hsfll_work_handler() 183 LOG_DBG("requesting %s", global_hsfll_gdfs_freq_to_str(target_freq)); in global_hsfll_work_handler() 184 err = nrfs_gdfs_request_freq(target_freq, dev_data); in global_hsfll_work_handler()
|