/drivers/gpu/drm/tegra/ |
D | dp.c | 56 link->num_rates = 0; in drm_dp_link_reset() 78 if (link->num_rates == DP_MAX_SUPPORTED_RATES) in drm_dp_link_add_rate() 81 for (pivot = 0; pivot < link->num_rates; pivot++) in drm_dp_link_add_rate() 85 if (pivot != link->num_rates && rate == link->rates[pivot]) in drm_dp_link_add_rate() 88 for (i = link->num_rates; i > pivot; i--) in drm_dp_link_add_rate() 92 link->num_rates++; in drm_dp_link_add_rate() 115 for (i = 0; i < link->num_rates; i++) in drm_dp_link_remove_rate() 119 if (i == link->num_rates) in drm_dp_link_remove_rate() 122 link->num_rates--; in drm_dp_link_remove_rate() 124 while (i < link->num_rates) { in drm_dp_link_remove_rate() [all …]
|
D | dp.h | 144 unsigned int num_rates; member
|
D | sor.c | 625 for (i = 0; i < link->num_rates; i++) { in tegra_sor_filter_rates()
|
/drivers/clk/ |
D | clk-scmi.c | 123 int num_rates = sclk->info->list.num_rates; in scmi_clk_ops_init() local 125 if (num_rates <= 0) in scmi_clk_ops_init() 129 max_rate = sclk->info->list.rates[num_rates - 1]; in scmi_clk_ops_init()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | cfp.c | 395 u32 num_rates, rate_mask; in mwifiex_get_rates_from_cfg80211() local 411 num_rates = 0; in mwifiex_get_rates_from_cfg80211() 415 rates[num_rates++] = (u8)(sband->bitrates[i].bitrate / 5); in mwifiex_get_rates_from_cfg80211() 418 return num_rates; in mwifiex_get_rates_from_cfg80211()
|
/drivers/cpufreq/ |
D | tegra186-cpufreq.c | 150 int err, i, j, num_rates = 0; in init_vhint_table() local 186 num_rates++; in init_vhint_table() 189 table = devm_kcalloc(&pdev->dev, num_rates + 1, sizeof(*table), in init_vhint_table()
|
/drivers/net/wireless/ralink/rt2x00/ |
D | rt2x00dev.c | 1013 unsigned int num_rates; in rt2x00lib_probe_hw_modes() local 1016 num_rates = 0; in rt2x00lib_probe_hw_modes() 1018 num_rates += 4; in rt2x00lib_probe_hw_modes() 1020 num_rates += 8; in rt2x00lib_probe_hw_modes() 1026 rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL); in rt2x00lib_probe_hw_modes() 1033 for (i = 0; i < num_rates; i++) in rt2x00lib_probe_hw_modes() 1052 rt2x00dev->bands[NL80211_BAND_2GHZ].n_bitrates = num_rates; in rt2x00lib_probe_hw_modes() 1070 num_rates - 4; in rt2x00lib_probe_hw_modes()
|
/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | rs.c | 3327 int num_rates = ARRAY_SIZE(lq_cmd->rs_table); in rs_build_rates_table_from_fixed() local 3331 for (i = 0; i < num_rates; i++) in rs_build_rates_table_from_fixed() 3340 lq_cmd->mimo_delim = num_rates - 1; in rs_build_rates_table_from_fixed() 3361 int num_rates, int num_retries, in rs_fill_rates_for_column() argument 3371 for (i = 0; i < num_rates && index < end; i++) { in rs_fill_rates_for_column() 3418 int num_rates, num_retries, index = 0; in rs_build_rates_table() local 3434 num_rates = IWL_MVM_RS_INITIAL_SISO_NUM_RATES; in rs_build_rates_table() 3437 num_rates = IWL_MVM_RS_INITIAL_MIMO_NUM_RATES; in rs_build_rates_table() 3440 num_rates = IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES; in rs_build_rates_table() 3446 num_rates, num_retries, valid_tx_ant, in rs_build_rates_table() [all …]
|
/drivers/net/wireless/ath/ath11k/ |
D | mac.c | 974 rateset->num_rates = 0; in ath11k_peer_assoc_h_rates() 981 rateset->rates[rateset->num_rates] = rate; in ath11k_peer_assoc_h_rates() 982 rateset->num_rates++; in ath11k_peer_assoc_h_rates() 1097 arg->peer_ht_rates.num_rates = 8; in ath11k_peer_assoc_h_ht() 1098 for (i = 0; i < arg->peer_ht_rates.num_rates; i++) in ath11k_peer_assoc_h_ht() 1101 arg->peer_ht_rates.num_rates = n; in ath11k_peer_assoc_h_ht() 1107 arg->peer_ht_rates.num_rates, in ath11k_peer_assoc_h_ht() 2626 int num_rates = 0; in ath11k_mac_bitrate_mask_num_vht_rates() local 2630 num_rates += hweight16(mask->control[band].vht_mcs[i]); in ath11k_mac_bitrate_mask_num_vht_rates() 2632 return num_rates; in ath11k_mac_bitrate_mask_num_vht_rates() [all …]
|
D | wmi.c | 1763 if (param->peer_ht_rates.num_rates == 0) in ath11k_wmi_copy_peer_flags() 1781 peer_legacy_rates_align = roundup(param->peer_legacy_rates.num_rates, in ath11k_wmi_send_peer_assoc_cmd() 1783 peer_ht_rates_align = roundup(param->peer_ht_rates.num_rates, in ath11k_wmi_send_peer_assoc_cmd() 1841 cmd->num_peer_legacy_rates = param->peer_legacy_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd() 1843 param->peer_legacy_rates.num_rates); in ath11k_wmi_send_peer_assoc_cmd() 1852 cmd->num_peer_ht_rates = param->peer_ht_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd() 1854 param->peer_ht_rates.num_rates); in ath11k_wmi_send_peer_assoc_cmd()
|
D | wmi.h | 3478 u32 num_rates; member 3882 u32 num_rates; member
|
/drivers/net/wireless/intel/ipw2x00/ |
D | ipw2200.c | 5348 int num_rates, i; in ipw_compatible_rates() local 5351 num_rates = min(network->rates_len, (u8) IPW_MAX_RATES); in ipw_compatible_rates() 5352 rates->num_rates = 0; in ipw_compatible_rates() 5353 for (i = 0; i < num_rates; i++) { in ipw_compatible_rates() 5361 rates->supported_rates[rates->num_rates++] = in ipw_compatible_rates() 5371 rates->supported_rates[rates->num_rates++] = network->rates[i]; in ipw_compatible_rates() 5374 num_rates = min(network->rates_ex_len, in ipw_compatible_rates() 5375 (u8) (IPW_MAX_RATES - num_rates)); in ipw_compatible_rates() 5376 for (i = 0; i < num_rates; i++) { in ipw_compatible_rates() 5383 rates->supported_rates[rates->num_rates++] = in ipw_compatible_rates() [all …]
|
D | ipw2200.h | 737 u8 num_rates; member 893 u8 num_rates; member
|
/drivers/firmware/arm_scmi/ |
D | clock.c | 206 clk->list.num_rates = tot_rate_cnt; in scmi_clock_describe_rates_get()
|
/drivers/net/wireless/ath/ath10k/ |
D | wmi-tlv.c | 2668 if (arg->peer_legacy_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_tlv_op_gen_peer_assoc() 2670 if (arg->peer_ht_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_tlv_op_gen_peer_assoc() 2673 legacy_rate_len = roundup(arg->peer_legacy_rates.num_rates, in ath10k_wmi_tlv_op_gen_peer_assoc() 2675 ht_rate_len = roundup(arg->peer_ht_rates.num_rates, sizeof(__le32)); in ath10k_wmi_tlv_op_gen_peer_assoc() 2703 cmd->num_legacy_rates = __cpu_to_le32(arg->peer_legacy_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc() 2704 cmd->num_ht_rates = __cpu_to_le32(arg->peer_ht_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc() 2714 arg->peer_legacy_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc() 2723 arg->peer_ht_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc()
|
D | mac.c | 2253 rateset->num_rates = 0; in ath10k_peer_assoc_h_rates() 2260 rateset->rates[rateset->num_rates] = rate; in ath10k_peer_assoc_h_rates() 2261 rateset->num_rates++; in ath10k_peer_assoc_h_rates() 2381 arg->peer_ht_rates.num_rates = 8; in ath10k_peer_assoc_h_ht() 2382 for (i = 0; i < arg->peer_ht_rates.num_rates; i++) in ath10k_peer_assoc_h_ht() 2385 arg->peer_ht_rates.num_rates = n; in ath10k_peer_assoc_h_ht() 2391 arg->peer_ht_rates.num_rates, in ath10k_peer_assoc_h_ht() 6740 int num_rates = 0; in ath10k_mac_bitrate_mask_has_single_rate() local 6743 num_rates += hweight32(mask->control[band].legacy); in ath10k_mac_bitrate_mask_has_single_rate() 6746 num_rates += hweight8(mask->control[band].ht_mcs[i]); in ath10k_mac_bitrate_mask_has_single_rate() [all …]
|
D | wmi.c | 7594 cmd->peer_legacy_rates.num_rates = in ath10k_wmi_peer_assoc_fill() 7595 __cpu_to_le32(arg->peer_legacy_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7597 arg->peer_legacy_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7599 cmd->peer_ht_rates.num_rates = in ath10k_wmi_peer_assoc_fill() 7600 __cpu_to_le32(arg->peer_ht_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7602 arg->peer_ht_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7666 if (arg->peer_legacy_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_peer_assoc_check_arg() 7668 if (arg->peer_ht_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_peer_assoc_check_arg()
|
D | wmi.h | 6342 __le32 num_rates; member 6352 unsigned int num_rates; member
|
/drivers/net/wireless/ath/ath6kl/ |
D | wmi.c | 2014 int num_rates; in ath6kl_wmi_beginscan_cmd() local 2061 num_rates = 0; in ath6kl_wmi_beginscan_cmd() 2066 supp_rates[num_rates++] = in ath6kl_wmi_beginscan_cmd() 2069 sc->supp_rates[band].nrates = num_rates; in ath6kl_wmi_beginscan_cmd()
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_cmn.c | 2029 uint rate, num_rates; in wlc_phy_txpower_get_current() local 2051 num_rates = ((ISNPHY(pi)) ? (TXP_NUM_RATES) : in wlc_phy_txpower_get_current() 2055 for (rate = 0; rate < num_rates; rate++) { in wlc_phy_txpower_get_current()
|
/drivers/net/ethernet/mellanox/mlx4/ |
D | fw.c | 1078 dev_cap->rl_caps.num_rates = size; in mlx4_QUERY_DEV_CAP() 1079 if (dev_cap->rl_caps.num_rates) { in mlx4_QUERY_DEV_CAP() 1178 rl_caps->num_rates, rl_caps->max_unit, rl_caps->max_val, in mlx4_dev_cap_dump()
|
/drivers/net/wireless/ath/wcn36xx/ |
D | hal.h | 1792 u8 num_rates; member
|
/drivers/net/wireless/marvell/ |
D | mwl8k.c | 3566 __le32 num_rates; member 3608 __le32 num_rates; member
|