Lines Matching refs:ucode_rate
832 u32 ucode_rate = 0; in ucode_rate_from_rs_rate() local
835 ucode_rate |= ((rate->ant << RATE_MCS_ANT_POS) & in ucode_rate_from_rs_rate()
839 ucode_rate |= iwl_rates[index].plcp; in ucode_rate_from_rs_rate()
841 ucode_rate |= RATE_MCS_CCK_MSK; in ucode_rate_from_rs_rate()
842 return ucode_rate; in ucode_rate_from_rs_rate()
850 ucode_rate |= RATE_MCS_HT_MSK; in ucode_rate_from_rs_rate()
853 ucode_rate |= iwl_rates[index].plcp_ht_siso; in ucode_rate_from_rs_rate()
855 ucode_rate |= iwl_rates[index].plcp_ht_mimo2; in ucode_rate_from_rs_rate()
863 ucode_rate |= RATE_MCS_VHT_MSK; in ucode_rate_from_rs_rate()
865 ucode_rate |= iwl_rates[index].plcp_vht_siso; in ucode_rate_from_rs_rate()
867 ucode_rate |= iwl_rates[index].plcp_vht_mimo2; in ucode_rate_from_rs_rate()
877 ucode_rate |= RATE_MCS_ANT_AB_MSK; in ucode_rate_from_rs_rate()
878 ucode_rate |= RATE_MCS_STBC_MSK; in ucode_rate_from_rs_rate()
881 ucode_rate |= rate->bw; in ucode_rate_from_rs_rate()
883 ucode_rate |= RATE_MCS_SGI_MSK; in ucode_rate_from_rs_rate()
885 ucode_rate |= RATE_MCS_LDPC_MSK; in ucode_rate_from_rs_rate()
887 return ucode_rate; in ucode_rate_from_rs_rate()
891 static int rs_rate_from_ucode_rate(const u32 ucode_rate, in rs_rate_from_ucode_rate() argument
895 u32 ant_msk = ucode_rate & RATE_MCS_ANT_ABC_MSK; in rs_rate_from_ucode_rate()
896 u8 num_of_ant = get_num_of_ant_from_rate(ucode_rate); in rs_rate_from_ucode_rate()
900 rate->index = iwl_hwrate_to_plcp_idx(ucode_rate); in rs_rate_from_ucode_rate()
908 if (!(ucode_rate & RATE_MCS_HT_MSK) && in rs_rate_from_ucode_rate()
909 !(ucode_rate & RATE_MCS_VHT_MSK) && in rs_rate_from_ucode_rate()
910 !(ucode_rate & RATE_MCS_HE_MSK)) { in rs_rate_from_ucode_rate()
922 if (ucode_rate & RATE_MCS_SGI_MSK) in rs_rate_from_ucode_rate()
924 if (ucode_rate & RATE_MCS_LDPC_MSK) in rs_rate_from_ucode_rate()
926 if (ucode_rate & RATE_MCS_STBC_MSK) in rs_rate_from_ucode_rate()
928 if (ucode_rate & RATE_MCS_BF_MSK) in rs_rate_from_ucode_rate()
931 rate->bw = ucode_rate & RATE_MCS_CHAN_WIDTH_MSK; in rs_rate_from_ucode_rate()
933 if (ucode_rate & RATE_MCS_HT_MSK) { in rs_rate_from_ucode_rate()
934 nss = ((ucode_rate & RATE_HT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
948 } else if (ucode_rate & RATE_MCS_VHT_MSK) { in rs_rate_from_ucode_rate()
949 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
963 } else if (ucode_rate & RATE_MCS_HE_MSK) { in rs_rate_from_ucode_rate()
964 nss = ((ucode_rate & RATE_VHT_MCS_NSS_MSK) >> in rs_rate_from_ucode_rate()
3254 u32 ucode_rate) in rs_build_rates_table_from_fixed() argument
3259 __le32 ucode_rate_le32 = cpu_to_le32(ucode_rate); in rs_build_rates_table_from_fixed()
3260 u8 ant = (ucode_rate & RATE_MCS_ANT_ABC_MSK) >> RATE_MCS_ANT_POS; in rs_build_rates_table_from_fixed()
3265 rs_rate_from_ucode_rate(ucode_rate, band, &rate); in rs_build_rates_table_from_fixed()
3293 __le32 ucode_rate; in rs_fill_rates_for_column() local
3301 ucode_rate = cpu_to_le32(ucode_rate_from_rs_rate(mvm, in rs_fill_rates_for_column()
3303 rs_table[index] = ucode_rate; in rs_fill_rates_for_column()