Searched refs:new_diff (Results 1 – 3 of 3) sorted by relevance
130 u64 diff = 0, new_diff; in iwl_mvm_phc_get_crosstimestamp_loop() local138 new_diff = tmp_sys_time - ((u64)tmp_gp2 * NSEC_PER_USEC); in iwl_mvm_phc_get_crosstimestamp_loop()139 if (!diff || new_diff < diff) { in iwl_mvm_phc_get_crosstimestamp_loop()142 diff = new_diff; in iwl_mvm_phc_get_crosstimestamp_loop()
115 int new_diff = temp_setup->fout - temp_setup->fout_request; in clk_sscg_pll2_check_match() local118 if (abs(diff) > abs(new_diff)) { in clk_sscg_pll2_check_match()119 temp_setup->fout_error = new_diff; in clk_sscg_pll2_check_match()
1236 u32 new_diff; in check_clock() local1240 new_diff = abs((u32)new_rate - rate); in check_clock()1242 if (new_diff < *best_diff) { in check_clock()1244 *best_diff = new_diff; in check_clock()1247 return new_diff; in check_clock()