Searched refs:diff_b (Results 1 – 3 of 3) sorted by relevance
/linux-6.6.21/sound/soc/img/ |
D | img-spdif-out.c | 237 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()
|
D | img-i2s-out.c | 218 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/ |
D | rtw8822c.c | 2782 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()
|