Home
last modified time | relevance | path

Searched refs:freq_diff (Results 1 – 6 of 6) sorted by relevance

/linux-6.6.21/drivers/pmdomain/qcom/
Dcpr.c961 unsigned long freq_diff; in cpr_calculate_scaling() local
980 freq_diff = fuse->max_freq - prev_fuse->max_freq; in cpr_calculate_scaling()
981 freq_diff /= 1000000; /* Convert to MHz */ in cpr_calculate_scaling()
982 scaling = 1000 * quot_diff / freq_diff; in cpr_calculate_scaling()
1087 unsigned long freq_diff, freq_diff_mhz; in cpr_corner_init() local
1200 freq_diff = fuse->max_freq - corner->freq; in cpr_corner_init()
1201 freq_diff_mhz = freq_diff / 1000000; in cpr_corner_init()
/linux-6.6.21/drivers/net/wireless/ath/ath11k/
Dreg.c389 u32 freq_diff, max_bw; in ath11k_reg_intersect_rules() local
401 freq_diff = new_rule->freq_range.end_freq_khz - in ath11k_reg_intersect_rules()
405 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath11k_reg_intersect_rules()
/linux-6.6.21/drivers/net/wireless/ath/ath12k/
Dreg.c351 u32 freq_diff, max_bw; in ath12k_reg_intersect_rules() local
363 freq_diff = new_rule->freq_range.end_freq_khz - in ath12k_reg_intersect_rules()
367 new_rule->freq_range.max_bandwidth_khz = min_t(u32, max_bw, freq_diff); in ath12k_reg_intersect_rules()
/linux-6.6.21/drivers/net/wireless/realtek/rtw89/
Drtw8851b.c1179 s32 freq_diff, csi_idx, csi_tone_idx; in rtw8851b_set_csi_tone_idx() local
1188 freq_diff = (spur_freq - chan->freq) * 1000000; in rtw8851b_set_csi_tone_idx()
1189 csi_idx = s32_div_u32_round_closest(freq_diff, CARRIER_SPACING_78_125); in rtw8851b_set_csi_tone_idx()
1214 s32 freq_diff; in rtw8851b_set_nbi_tone_idx() local
1235 freq_diff = (spur_freq - fc) * 1000000; in rtw8851b_set_nbi_tone_idx()
1236 nbi_idx = s32_div_u32_round_down(freq_diff, CARRIER_SPACING_312_5, in rtw8851b_set_nbi_tone_idx()
Drtw8852c.c1219 s32 freq_diff, csi_idx, csi_tone_idx; in rtw8852c_set_csi_tone_idx() local
1227 freq_diff = (spur_freq - chan->freq) * 1000000; in rtw8852c_set_csi_tone_idx()
1228 csi_idx = s32_div_u32_round_closest(freq_diff, CARRIER_SPACING_78_125); in rtw8852c_set_csi_tone_idx()
1260 s32 freq_diff; in rtw8852c_set_nbi_tone_idx() local
1282 freq_diff = (spur_freq - fc) * 1000000; in rtw8852c_set_nbi_tone_idx()
1283 nbi_idx = s32_div_u32_round_down(freq_diff, CARRIER_SPACING_312_5, &nbi_frac_idx); in rtw8852c_set_nbi_tone_idx()
/linux-6.6.21/net/wireless/
Dreg.c1235 u32 freq_diff; in is_valid_reg_rule() local
1243 freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz; in is_valid_reg_rule()
1246 freq_range->max_bandwidth_khz > freq_diff) in is_valid_reg_rule()
1346 u32 freq_diff, max_bandwidth1, max_bandwidth2; in reg_rules_intersect() local
1391 freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz; in reg_rules_intersect()
1392 if (freq_range->max_bandwidth_khz > freq_diff) in reg_rules_intersect()
1393 freq_range->max_bandwidth_khz = freq_diff; in reg_rules_intersect()