/linux/drivers/gpu/drm/tegra/ |
H A 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 …]
|
H A D | dp.h | 144 unsigned int num_rates; member
|
/linux/sound/soc/codecs/ |
H A D | sigmadsp.c | 290 unsigned int num_rates; in sigma_fw_load_samplerates() local 296 num_rates = (length - sizeof(*rate_chunk)) / sizeof(__le32); in sigma_fw_load_samplerates() 298 if (num_rates > 32 || num_rates == 0) in sigma_fw_load_samplerates() 305 rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL); in sigma_fw_load_samplerates() 309 for (i = 0; i < num_rates; i++) in sigma_fw_load_samplerates() 312 sigmadsp->rate_constraints.count = num_rates; in sigma_fw_load_samplerates()
|
H A D | madera.c | 3114 int bclk, lrclk, wl, frame, bclk_target, num_rates; in madera_hw_params() local 3120 num_rates = ARRAY_SIZE(madera_44k1_bclk_rates); in madera_hw_params() 3123 num_rates = ARRAY_SIZE(madera_48k_bclk_rates); in madera_hw_params() 3153 for (i = 0; i < num_rates; i++) { in madera_hw_params() 3160 if (i == num_rates) { in madera_hw_params()
|
H A D | wm8994.c | 118 int num_rates; in wm8958_micd_set_rate() local 130 num_rates = control->pdata.num_micd_rates; in wm8958_micd_set_rate() 133 num_rates = ARRAY_SIZE(jackdet_rates); in wm8958_micd_set_rate() 136 num_rates = ARRAY_SIZE(micdet_rates); in wm8958_micd_set_rate() 140 for (i = 0; i < num_rates; i++) { in wm8958_micd_set_rate()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | cfp.c | 383 u32 num_rates, rate_mask; in mwifiex_get_rates_from_cfg80211() local 399 num_rates = 0; in mwifiex_get_rates_from_cfg80211() 403 rates[num_rates++] = (u8)(sband->bitrates[i].bitrate / 5); in mwifiex_get_rates_from_cfg80211() 406 return num_rates; in mwifiex_get_rates_from_cfg80211()
|
/linux/drivers/clk/ |
H A D | clk-scmi.c | 242 int num_rates = sclk->info->list.num_rates; in scmi_clk_ops_init() local 244 if (num_rates <= 0) in scmi_clk_ops_init() 248 max_rate = sclk->info->list.rates[num_rates - 1]; in scmi_clk_ops_init()
|
/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00dev.c | 1008 unsigned int num_rates; in rt2x00lib_probe_hw_modes() local 1011 num_rates = 0; in rt2x00lib_probe_hw_modes() 1013 num_rates += 4; in rt2x00lib_probe_hw_modes() 1015 num_rates += 8; in rt2x00lib_probe_hw_modes() 1021 rates = kcalloc(num_rates, sizeof(*rates), GFP_KERNEL); in rt2x00lib_probe_hw_modes() 1028 for (i = 0; i < num_rates; i++) in rt2x00lib_probe_hw_modes() 1047 rt2x00dev->bands[NL80211_BAND_2GHZ].n_bitrates = num_rates; in rt2x00lib_probe_hw_modes() 1065 num_rates - 4; in rt2x00lib_probe_hw_modes()
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | rs.c | 3285 int num_rates = ARRAY_SIZE(lq_cmd->rs_table); in rs_build_rates_table_from_fixed() local 3289 for (i = 0; i < num_rates; i++) in rs_build_rates_table_from_fixed() 3298 lq_cmd->mimo_delim = num_rates - 1; in rs_build_rates_table_from_fixed() 3319 int num_rates, int num_retries, in rs_fill_rates_for_column() argument 3329 for (i = 0; i < num_rates && index < end; i++) { in rs_fill_rates_for_column() 3376 int num_rates, num_retries, index = 0; in rs_build_rates_table() local 3392 num_rates = IWL_MVM_RS_INITIAL_SISO_NUM_RATES; in rs_build_rates_table() 3395 num_rates = IWL_MVM_RS_INITIAL_MIMO_NUM_RATES; in rs_build_rates_table() 3398 num_rates = IWL_MVM_RS_INITIAL_LEGACY_NUM_RATES; in rs_build_rates_table() 3404 num_rates, num_retries, valid_tx_ant, in rs_build_rates_table() [all …]
|
/linux/sound/soc/fsl/ |
H A D | imx-card.c | 80 unsigned int num_rates; member 452 constraint_rates.count = data->plat_data->num_rates; in imx_aif_startup() 806 plat_data->num_rates = ARRAY_SIZE(akcodec_rates); in imx_card_probe()
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | mac.c | 1906 rateset->num_rates = 0; in ath11k_peer_assoc_h_rates() 1913 rateset->rates[rateset->num_rates] = rate; in ath11k_peer_assoc_h_rates() 1914 rateset->num_rates++; in ath11k_peer_assoc_h_rates() 2037 arg->peer_ht_rates.num_rates = 8; in ath11k_peer_assoc_h_ht() 2038 for (i = 0; i < arg->peer_ht_rates.num_rates; i++) in ath11k_peer_assoc_h_ht() 2041 arg->peer_ht_rates.num_rates = n; in ath11k_peer_assoc_h_ht() 2047 arg->peer_ht_rates.num_rates, in ath11k_peer_assoc_h_ht() 4444 int num_rates = 0; in ath11k_mac_bitrate_mask_num_ht_rates() local 4448 num_rates += hweight8(mask->control[band].ht_mcs[i]); in ath11k_mac_bitrate_mask_num_ht_rates() 4450 return num_rates; in ath11k_mac_bitrate_mask_num_ht_rates() [all …]
|
H A D | wmi.c | 1954 if (param->peer_ht_rates.num_rates == 0) in ath11k_wmi_copy_peer_flags() 1972 peer_legacy_rates_align = roundup(param->peer_legacy_rates.num_rates, in ath11k_wmi_send_peer_assoc_cmd() 1974 peer_ht_rates_align = roundup(param->peer_ht_rates.num_rates, in ath11k_wmi_send_peer_assoc_cmd() 2034 cmd->num_peer_legacy_rates = param->peer_legacy_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd() 2036 param->peer_legacy_rates.num_rates); in ath11k_wmi_send_peer_assoc_cmd() 2045 cmd->num_peer_ht_rates = param->peer_ht_rates.num_rates; in ath11k_wmi_send_peer_assoc_cmd() 2047 param->peer_ht_rates.num_rates); in ath11k_wmi_send_peer_assoc_cmd()
|
/linux/drivers/firmware/arm_scmi/ |
H A D | clock.c | 499 p->clk->list.num_rates++; in iter_clk_describe_process_response() 537 } else if (clk->list.num_rates) { in scmi_clock_describe_rates_get() 538 sort(clk->list.rates, clk->list.num_rates, in scmi_clock_describe_rates_get()
|
/linux/drivers/net/wireless/ath/ath12k/ |
H A D | mac.c | 1862 rateset->num_rates = 0; in ath12k_peer_assoc_h_rates() 1869 rateset->rates[rateset->num_rates] = rate; in ath12k_peer_assoc_h_rates() 1870 rateset->num_rates++; in ath12k_peer_assoc_h_rates() 1986 arg->peer_ht_rates.num_rates = 8; in ath12k_peer_assoc_h_ht() 1987 for (i = 0; i < arg->peer_ht_rates.num_rates; i++) in ath12k_peer_assoc_h_ht() 1990 arg->peer_ht_rates.num_rates = n; in ath12k_peer_assoc_h_ht() 1996 arg->peer_ht_rates.num_rates, in ath12k_peer_assoc_h_ht() 4439 int num_rates = 0; in ath12k_mac_bitrate_mask_num_vht_rates() local 4443 num_rates += hweight16(mask->control[band].vht_mcs[i]); in ath12k_mac_bitrate_mask_num_vht_rates() 4445 return num_rates; in ath12k_mac_bitrate_mask_num_vht_rates() [all …]
|
H A D | wmi.c | 1992 if (arg->peer_ht_rates.num_rates == 0) in ath12k_wmi_copy_peer_flags() 2011 peer_legacy_rates_align = roundup(arg->peer_legacy_rates.num_rates, in ath12k_wmi_send_peer_assoc_cmd() 2013 peer_ht_rates_align = roundup(arg->peer_ht_rates.num_rates, in ath12k_wmi_send_peer_assoc_cmd() 2088 cmd->num_peer_legacy_rates = cpu_to_le32(arg->peer_legacy_rates.num_rates); in ath12k_wmi_send_peer_assoc_cmd() 2090 arg->peer_legacy_rates.num_rates); in ath12k_wmi_send_peer_assoc_cmd() 2098 cmd->num_peer_ht_rates = cpu_to_le32(arg->peer_ht_rates.num_rates); in ath12k_wmi_send_peer_assoc_cmd() 2100 arg->peer_ht_rates.num_rates); in ath12k_wmi_send_peer_assoc_cmd()
|
/linux/drivers/net/wireless/ath/ath10k/ |
H A D | wmi-tlv.c | 2680 if (arg->peer_legacy_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_tlv_op_gen_peer_assoc() 2682 if (arg->peer_ht_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_tlv_op_gen_peer_assoc() 2685 legacy_rate_len = roundup(arg->peer_legacy_rates.num_rates, in ath10k_wmi_tlv_op_gen_peer_assoc() 2687 ht_rate_len = roundup(arg->peer_ht_rates.num_rates, sizeof(__le32)); in ath10k_wmi_tlv_op_gen_peer_assoc() 2715 cmd->num_legacy_rates = __cpu_to_le32(arg->peer_legacy_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc() 2716 cmd->num_ht_rates = __cpu_to_le32(arg->peer_ht_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc() 2726 arg->peer_legacy_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc() 2735 arg->peer_ht_rates.num_rates); in ath10k_wmi_tlv_op_gen_peer_assoc()
|
H A D | mac.c | 2260 rateset->num_rates = 0; in ath10k_peer_assoc_h_rates() 2267 rateset->rates[rateset->num_rates] = rate; in ath10k_peer_assoc_h_rates() 2268 rateset->num_rates++; in ath10k_peer_assoc_h_rates() 2388 arg->peer_ht_rates.num_rates = 8; in ath10k_peer_assoc_h_ht() 2389 for (i = 0; i < arg->peer_ht_rates.num_rates; i++) in ath10k_peer_assoc_h_ht() 2392 arg->peer_ht_rates.num_rates = n; in ath10k_peer_assoc_h_ht() 2399 arg->peer_ht_rates.num_rates, in ath10k_peer_assoc_h_ht() 6898 int num_rates = 0; in ath10k_mac_bitrate_mask_has_single_rate() local 6901 num_rates += hweight32(mask->control[band].legacy); in ath10k_mac_bitrate_mask_has_single_rate() 6904 num_rates += hweight8(mask->control[band].ht_mcs[i]); in ath10k_mac_bitrate_mask_has_single_rate() [all …]
|
H A D | wmi.c | 7659 cmd->peer_legacy_rates.num_rates = in ath10k_wmi_peer_assoc_fill() 7660 __cpu_to_le32(arg->peer_legacy_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7662 arg->peer_legacy_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7664 cmd->peer_ht_rates.num_rates = in ath10k_wmi_peer_assoc_fill() 7665 __cpu_to_le32(arg->peer_ht_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7667 arg->peer_ht_rates.num_rates); in ath10k_wmi_peer_assoc_fill() 7731 if (arg->peer_legacy_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_peer_assoc_check_arg() 7733 if (arg->peer_ht_rates.num_rates > MAX_SUPPORTED_RATES) in ath10k_wmi_peer_assoc_check_arg()
|
H A D | wmi.h | 6350 __le32 num_rates; member 6360 unsigned int num_rates; member
|
/linux/include/linux/ |
H A D | scmi_protocol.h | 56 int num_rates; member
|
/linux/drivers/net/wireless/ath/ath6kl/ |
H A D | wmi.c | 2005 int num_rates; in ath6kl_wmi_beginscan_cmd() local 2047 num_rates = 0; in ath6kl_wmi_beginscan_cmd() 2052 supp_rates[num_rates++] = in ath6kl_wmi_beginscan_cmd() 2055 sc->supp_rates[band].nrates = num_rates; in ath6kl_wmi_beginscan_cmd()
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
H A 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()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A 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()
|
/linux/net/mac80211/ |
H A D | util.c | 1521 size_t num_rates; in ieee80211_sta_get_rates() local 1532 num_rates = sband->n_bitrates; in ieee80211_sta_get_rates() 1550 for (j = 0; j < num_rates; j++) { in ieee80211_sta_get_rates()
|
/linux/include/linux/mlx4/ |
H A D | device.h | 505 u16 num_rates; /* Number of different rates */ member
|