Home
last modified time | relevance | path

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

/linux-6.1.9/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
261 diff_a = abs((pre_div_a / 256) - rate); in img_spdif_out_hw_params()
265 if (diff_a > diff_b) in img_spdif_out_hw_params()
277 diff_a = abs((clk_rate / 256) - 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
243 diff_a = abs((pre_div_a / 256) - rate); in img_i2s_out_hw_params()
247 if (diff_a > diff_b) in img_i2s_out_hw_params()
259 diff_a = abs((clk_rate / 256) - rate); in img_i2s_out_hw_params()
262 if (diff_a > diff_b) in img_i2s_out_hw_params()
/linux-6.1.9/drivers/net/wireless/realtek/rtw88/
Drtw8822c.c2764 s8 diff_a, diff_b; in rtw8822c_set_tx_power_index() local
2775 diff_a = (s8)pwr_a - (s8)pwr_ref_cck[0]; in rtw8822c_set_tx_power_index()
2778 diff_a = (s8)pwr_a - (s8)pwr_ref_ofdm[0]; in rtw8822c_set_tx_power_index()
2781 diff_idx[rate % 4] = min(diff_a, diff_b); in rtw8822c_set_tx_power_index()