Lines Matching refs:freq_range
362 start_freq1 = rule1->freq_range.start_freq_khz; in ath11k_reg_can_intersect()
363 start_freq2 = rule2->freq_range.start_freq_khz; in ath11k_reg_can_intersect()
365 end_freq1 = rule1->freq_range.end_freq_khz; in ath11k_reg_can_intersect()
366 end_freq2 = rule2->freq_range.end_freq_khz; in ath11k_reg_can_intersect()
391 start_freq1 = rule1->freq_range.start_freq_khz; in ath11k_reg_intersect_rules()
392 start_freq2 = rule2->freq_range.start_freq_khz; in ath11k_reg_intersect_rules()
394 end_freq1 = rule1->freq_range.end_freq_khz; in ath11k_reg_intersect_rules()
395 end_freq2 = rule2->freq_range.end_freq_khz; in ath11k_reg_intersect_rules()
397 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath11k_reg_intersect_rules()
399 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules()
401 freq_diff = new_rule->freq_range.end_freq_khz - in ath11k_reg_intersect_rules()
402 new_rule->freq_range.start_freq_khz; in ath11k_reg_intersect_rules()
403 max_bw = min_t(u32, rule1->freq_range.max_bandwidth_khz, in ath11k_reg_intersect_rules()
404 rule2->freq_range.max_bandwidth_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()
521 reg_rule->freq_range.start_freq_khz = MHZ_TO_KHZ(start_freq); in ath11k_reg_update_rule()
522 reg_rule->freq_range.end_freq_khz = MHZ_TO_KHZ(end_freq); in ath11k_reg_update_rule()
523 reg_rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw); in ath11k_reg_update_rule()