/linux/drivers/net/wireless/ath/ath12k/ |
H A D | reg.c | 375 start_freq1 = rule1->freq_range.start_freq_khz; in ath12k_reg_can_intersect() 376 start_freq2 = rule2->freq_range.start_freq_khz; in ath12k_reg_can_intersect() 378 end_freq1 = rule1->freq_range.end_freq_khz; in ath12k_reg_can_intersect() 379 end_freq2 = rule2->freq_range.end_freq_khz; in ath12k_reg_can_intersect() 404 start_freq1 = rule1->freq_range.start_freq_khz; in ath12k_reg_intersect_rules() 405 start_freq2 = rule2->freq_range.start_freq_khz; in ath12k_reg_intersect_rules() 407 end_freq1 = rule1->freq_range.end_freq_khz; in ath12k_reg_intersect_rules() 408 end_freq2 = rule2->freq_range.end_freq_khz; in ath12k_reg_intersect_rules() 410 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath12k_reg_intersect_rules() 412 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath12k_reg_intersect_rules() [all …]
|
/linux/net/wireless/ |
H A D | reg.c | 951 rrule->freq_range.start_freq_khz = be32_to_cpu(rule->start); in regdb_query_country() 952 rrule->freq_range.end_freq_khz = be32_to_cpu(rule->end); in regdb_query_country() 953 rrule->freq_range.max_bandwidth_khz = be32_to_cpu(rule->max_bw); in regdb_query_country() 1164 const struct ieee80211_freq_range *freq_range = &rule->freq_range; in reg_get_max_bandwidth_from_range() local 1181 freq_range_tmp = &tmp->freq_range; in reg_get_max_bandwidth_from_range() 1183 if (freq_range_tmp->end_freq_khz < freq_range->start_freq_khz) in reg_get_max_bandwidth_from_range() 1186 freq_range = freq_range_tmp; in reg_get_max_bandwidth_from_range() 1189 start_freq = freq_range->start_freq_khz; in reg_get_max_bandwidth_from_range() 1192 freq_range = &rule->freq_range; in reg_get_max_bandwidth_from_range() 1197 freq_range_tmp = &tmp->freq_range; in reg_get_max_bandwidth_from_range() [all …]
|
H A D | util.c | 2617 bool cfg80211_does_bw_fit_range(const struct ieee80211_freq_range *freq_range, in cfg80211_does_bw_fit_range() argument 2625 if (start_freq_khz >= freq_range->start_freq_khz && in cfg80211_does_bw_fit_range() 2626 end_freq_khz <= freq_range->end_freq_khz) in cfg80211_does_bw_fit_range() 2900 r = &radio->freq_range[i]; in ieee80211_radio_freq_range_valid()
|
H A D | core.h | 463 bool cfg80211_does_bw_fit_range(const struct ieee80211_freq_range *freq_range,
|
H A D | nl80211.c | 2434 const struct wiphy_radio_freq_range *range = &r->freq_range[i]; in nl80211_put_radio() 8707 const struct ieee80211_freq_range *freq_range; in nl80211_put_regdom() local 8712 freq_range = ®_rule->freq_range; in nl80211_put_regdom() 8719 max_bandwidth_khz = freq_range->max_bandwidth_khz; in nl80211_put_regdom() 8727 freq_range->start_freq_khz) || in nl80211_put_regdom() 8729 freq_range->end_freq_khz) || in nl80211_put_regdom() 8923 struct ieee80211_freq_range *freq_range = ®_rule->freq_range; in parse_reg_rule() local 8939 freq_range->start_freq_khz = in parse_reg_rule() 8941 freq_range->end_freq_khz = in parse_reg_rule() 8943 freq_range->max_bandwidth_khz = in parse_reg_rule()
|
/linux/include/net/ |
H A D | regulatory.h | 208 struct ieee80211_freq_range freq_range; member 227 .freq_range.start_freq_khz = MHZ_TO_KHZ(start), \ 228 .freq_range.end_freq_khz = MHZ_TO_KHZ(end), \ 229 .freq_range.max_bandwidth_khz = MHZ_TO_KHZ(bw), \
|
H A D | cfg80211.h | 5441 const struct wiphy_radio_freq_range *freq_range; member
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | reg.c | 371 start_freq1 = rule1->freq_range.start_freq_khz; in ath11k_reg_can_intersect() 372 start_freq2 = rule2->freq_range.start_freq_khz; in ath11k_reg_can_intersect() 374 end_freq1 = rule1->freq_range.end_freq_khz; in ath11k_reg_can_intersect() 375 end_freq2 = rule2->freq_range.end_freq_khz; in ath11k_reg_can_intersect() 400 start_freq1 = rule1->freq_range.start_freq_khz; in ath11k_reg_intersect_rules() 401 start_freq2 = rule2->freq_range.start_freq_khz; in ath11k_reg_intersect_rules() 403 end_freq1 = rule1->freq_range.end_freq_khz; in ath11k_reg_intersect_rules() 404 end_freq2 = rule2->freq_range.end_freq_khz; in ath11k_reg_intersect_rules() 406 new_rule->freq_range.start_freq_khz = max_t(u32, start_freq1, in ath11k_reg_intersect_rules() 408 new_rule->freq_range.end_freq_khz = min_t(u32, end_freq1, end_freq2); in ath11k_reg_intersect_rules() [all …]
|
/linux/drivers/net/wireless/quantenna/qtnfmac/ |
H A D | qlink_util.c | 295 rule->freq_range.start_freq_khz = le32_to_cpu(tlv->start_freq_khz); in qlink_utils_regrule_q2nl() 296 rule->freq_range.end_freq_khz = le32_to_cpu(tlv->end_freq_khz); in qlink_utils_regrule_q2nl() 297 rule->freq_range.max_bandwidth_khz = in qlink_utils_regrule_q2nl()
|
/linux/drivers/media/pci/mgb4/ |
H A D | mgb4_cmt.h | 15 unsigned int freq_range);
|
H A D | mgb4_vin.h | 53 u32 freq_range; member
|
H A D | mgb4_sysfs_in.c | 402 return sprintf(buf, "%d\n", vindev->freq_range); in frequency_range_show() 427 vindev->freq_range = val; in frequency_range_store()
|
/linux/sound/pci/asihpi/ |
H A D | asihpi.c | 1913 u32 freq_range[3], temp_freq_range[3]; in snd_asihpi_tuner_freq_info() local 1918 freq_range[0] = INT_MAX; in snd_asihpi_tuner_freq_info() 1919 freq_range[1] = 0; in snd_asihpi_tuner_freq_info() 1920 freq_range[2] = INT_MAX; in snd_asihpi_tuner_freq_info() 1935 if (temp_freq_range[0] < freq_range[0]) in snd_asihpi_tuner_freq_info() 1936 freq_range[0] = temp_freq_range[0]; in snd_asihpi_tuner_freq_info() 1937 if (temp_freq_range[1] > freq_range[1]) in snd_asihpi_tuner_freq_info() 1938 freq_range[1] = temp_freq_range[1]; in snd_asihpi_tuner_freq_info() 1939 if (temp_freq_range[2] < freq_range[2]) in snd_asihpi_tuner_freq_info() 1940 freq_range[2] = temp_freq_range[2]; in snd_asihpi_tuner_freq_info() [all …]
|
/linux/net/ipv6/ |
H A D | ioam6_iptunnel.c | 51 static const struct netlink_range_validation freq_range = { variable 72 [IOAM6_IPTUNNEL_FREQ_K] = NLA_POLICY_FULL_RANGE(NLA_U32, &freq_range), 73 [IOAM6_IPTUNNEL_FREQ_N] = NLA_POLICY_FULL_RANGE(NLA_U32, &freq_range),
|
/linux/drivers/net/wireless/intel/iwlwifi/ |
H A D | iwl-nvm-parse.c | 1805 rule->freq_range.start_freq_khz = in iwl_parse_nvm_mcc_info() 1808 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(center_freq + 10); in iwl_parse_nvm_mcc_info() 1819 rule->freq_range.max_bandwidth_khz = 0; in iwl_parse_nvm_mcc_info() 1845 rule->freq_range.start_freq_khz = MHZ_TO_KHZ(2412); in iwl_parse_nvm_mcc_info() 1846 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(2413); in iwl_parse_nvm_mcc_info() 1847 rule->freq_range.max_bandwidth_khz = MHZ_TO_KHZ(1); in iwl_parse_nvm_mcc_info()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | sta_cmdresp.c | 1098 rule->freq_range.end_freq_khz = MHZ_TO_KHZ(freq + 10); in mwifiex_create_custom_regdomain() 1107 rule->freq_range.start_freq_khz = MHZ_TO_KHZ(freq - 10); in mwifiex_create_custom_regdomain() 1116 rule->freq_range.max_bandwidth_khz = bw; in mwifiex_create_custom_regdomain()
|
/linux/drivers/net/wireless/virtual/ |
H A D | mac80211_hwsim.c | 5458 radio->freq_range = radio_range; in mac80211_hwsim_new_radio()
|