Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/soc/qcom/
Dcpr.c962 unsigned long freq_diff; in cpr_calculate_scaling() local
981 freq_diff = fuse->max_freq - prev_fuse->max_freq; in cpr_calculate_scaling()
982 freq_diff /= 1000000; /* Convert to MHz */ in cpr_calculate_scaling()
983 scaling = 1000 * quot_diff / freq_diff; in cpr_calculate_scaling()
1088 unsigned long freq_diff, freq_diff_mhz; in cpr_corner_init() local
1201 freq_diff = fuse->max_freq - corner->freq; in cpr_corner_init()
1202 freq_diff_mhz = freq_diff / 1000000; in cpr_corner_init()
/linux-6.1.9/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.1.9/net/wireless/
Dreg.c1273 u32 freq_diff; in is_valid_reg_rule() local
1281 freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz; in is_valid_reg_rule()
1284 freq_range->max_bandwidth_khz > freq_diff) in is_valid_reg_rule()
1384 u32 freq_diff, max_bandwidth1, max_bandwidth2; in reg_rules_intersect() local
1429 freq_diff = freq_range->end_freq_khz - freq_range->start_freq_khz; in reg_rules_intersect()
1430 if (freq_range->max_bandwidth_khz > freq_diff) in reg_rules_intersect()
1431 freq_range->max_bandwidth_khz = freq_diff; in reg_rules_intersect()
/linux-6.1.9/drivers/net/wireless/realtek/rtw89/
Drtw8852c.c1320 s32 freq_diff, csi_idx, csi_tone_idx; in rtw8852c_set_csi_tone_idx() local
1328 freq_diff = (spur_freq - chan->freq) * 1000000; in rtw8852c_set_csi_tone_idx()
1329 csi_idx = s32_div_u32_round_closest(freq_diff, CARRIER_SPACING_78_125); in rtw8852c_set_csi_tone_idx()
1361 s32 freq_diff; in rtw8852c_set_nbi_tone_idx() local
1383 freq_diff = (spur_freq - fc) * 1000000; in rtw8852c_set_nbi_tone_idx()
1384 nbi_idx = s32_div_u32_round_down(freq_diff, CARRIER_SPACING_312_5, &nbi_frac_idx); in rtw8852c_set_nbi_tone_idx()