Home
last modified time | relevance | path

Searched refs:diff_b (Results 1 – 3 of 3) sorted by relevance

/linux-6.6.21/sound/soc/img/
Dimg-spdif-out.c237 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_spdif_out_hw_params() local
262 diff_b = abs((pre_div_b / 384) - rate); in img_spdif_out_hw_params()
265 if (diff_a > diff_b) in img_spdif_out_hw_params()
278 diff_b = abs((clk_rate / 384) - rate); in img_spdif_out_hw_params()
281 if (diff_a <= diff_b) in img_spdif_out_hw_params()
Dimg-i2s-out.c218 long pre_div_a, pre_div_b, diff_a, diff_b, rate, clk_rate; in img_i2s_out_hw_params() local
244 diff_b = abs((pre_div_b / 384) - rate); in img_i2s_out_hw_params()
247 if (diff_a > diff_b) in img_i2s_out_hw_params()
260 diff_b = abs((clk_rate / 384) - rate); in img_i2s_out_hw_params()
262 if (diff_a > diff_b) in img_i2s_out_hw_params()
/linux-6.6.21/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c2782 s8 diff_a, diff_b; in rtw8822c_set_tx_power_index() local
2794 diff_b = (s8)pwr_b - (s8)pwr_ref_cck[1]; in rtw8822c_set_tx_power_index()
2797 diff_b = (s8)pwr_b - (s8)pwr_ref_ofdm[1]; in rtw8822c_set_tx_power_index()
2799 diff_idx[rate % 4] = min(diff_a, diff_b); in rtw8822c_set_tx_power_index()