Lines Matching refs:tcb_desc

599 					  struct rtl_tcb_desc *tcb_desc,  in _rtl_qurey_shortpreamble_mode()  argument
605 tcb_desc->use_shortpreamble = false; in _rtl_qurey_shortpreamble_mode()
608 if (tcb_desc->hw_rate == rtlpriv->cfg->maps[RTL_RC_CCK_RATE1M]) in _rtl_qurey_shortpreamble_mode()
611 tcb_desc->use_shortpreamble = true; in _rtl_qurey_shortpreamble_mode()
618 struct rtl_tcb_desc *tcb_desc, in _rtl_query_shortgi() argument
625 tcb_desc->use_shortgi = false; in _rtl_query_shortgi()
652 tcb_desc->use_shortgi = true; in _rtl_query_shortgi()
654 tcb_desc->use_shortgi = false; in _rtl_query_shortgi()
657 tcb_desc->use_shortgi = true; in _rtl_query_shortgi()
659 tcb_desc->use_shortgi = true; in _rtl_query_shortgi()
663 tcb_desc->use_shortgi = false; in _rtl_query_shortgi()
667 struct rtl_tcb_desc *tcb_desc, in _rtl_query_protection_mode() argument
674 tcb_desc->rts_stbc = false; in _rtl_query_protection_mode()
675 tcb_desc->cts_enable = false; in _rtl_query_protection_mode()
676 tcb_desc->rts_sc = 0; in _rtl_query_protection_mode()
677 tcb_desc->rts_bw = false; in _rtl_query_protection_mode()
678 tcb_desc->rts_use_shortpreamble = false; in _rtl_query_protection_mode()
679 tcb_desc->rts_use_shortgi = false; in _rtl_query_protection_mode()
683 tcb_desc->rts_enable = true; in _rtl_query_protection_mode()
684 tcb_desc->cts_enable = true; in _rtl_query_protection_mode()
685 tcb_desc->rts_rate = rtlpriv->cfg->maps[RTL_RC_OFDM_RATE24M]; in _rtl_query_protection_mode()
688 tcb_desc->rts_enable = true; in _rtl_query_protection_mode()
689 tcb_desc->rts_rate = rtlpriv->cfg->maps[RTL_RC_OFDM_RATE24M]; in _rtl_query_protection_mode()
695 struct rtl_tcb_desc *tcb_desc) in _rtl_txrate_selectmode() argument
706 if (!tcb_desc->disable_ratefallback || !tcb_desc->use_driver_rate) { in _rtl_txrate_selectmode()
708 tcb_desc->ratr_index = 0; in _rtl_txrate_selectmode()
711 if (tcb_desc->multicast || tcb_desc->broadcast) { in _rtl_txrate_selectmode()
712 tcb_desc->hw_rate = in _rtl_txrate_selectmode()
714 tcb_desc->use_driver_rate = 1; in _rtl_txrate_selectmode()
715 tcb_desc->ratr_index = RATR_INX_WIRELESS_MC; in _rtl_txrate_selectmode()
717 tcb_desc->ratr_index = ratr_index; in _rtl_txrate_selectmode()
720 tcb_desc->ratr_index = ratr_index; in _rtl_txrate_selectmode()
725 tcb_desc->ratr_index = ratr_index; in _rtl_txrate_selectmode()
729 tcb_desc->mac_id = 0; in _rtl_txrate_selectmode()
732 tcb_desc->ratr_index = in _rtl_txrate_selectmode()
735 tcb_desc->ratr_index = in _rtl_txrate_selectmode()
738 tcb_desc->ratr_index = RATR_INX_WIRELESS_NGB; in _rtl_txrate_selectmode()
740 tcb_desc->ratr_index = RATR_INX_WIRELESS_NG; in _rtl_txrate_selectmode()
742 tcb_desc->ratr_index = RATR_INX_WIRELESS_GB; in _rtl_txrate_selectmode()
744 tcb_desc->ratr_index = RATR_INX_WIRELESS_B; in _rtl_txrate_selectmode()
746 tcb_desc->ratr_index = RATR_INX_WIRELESS_G; in _rtl_txrate_selectmode()
752 tcb_desc->mac_id = sta->aid + 1; in _rtl_txrate_selectmode()
754 tcb_desc->mac_id = 1; in _rtl_txrate_selectmode()
756 tcb_desc->mac_id = 0; in _rtl_txrate_selectmode()
764 struct rtl_tcb_desc *tcb_desc) in _rtl_query_bandwidth_mode() argument
769 tcb_desc->packet_bw = false; in _rtl_query_bandwidth_mode()
782 if (tcb_desc->multicast || tcb_desc->broadcast) in _rtl_query_bandwidth_mode()
786 if (tcb_desc->hw_rate <= rtlpriv->cfg->maps[RTL_RC_OFDM_RATE54M]) in _rtl_query_bandwidth_mode()
789 tcb_desc->packet_bw = HT_CHANNEL_WIDTH_20_40; in _rtl_query_bandwidth_mode()
803 if (tcb_desc->hw_rate <= in _rtl_query_bandwidth_mode()
806 tcb_desc->packet_bw = HT_CHANNEL_WIDTH_80; in _rtl_query_bandwidth_mode()
1098 struct sk_buff *skb, struct rtl_tcb_desc *tcb_desc) in rtl_get_tcb_desc() argument
1108 tcb_desc->hw_rate = txrate->hw_value; in rtl_get_tcb_desc()
1123 tcb_desc->use_driver_rate = true; in rtl_get_tcb_desc()
1124 tcb_desc->ratr_index = RATR_INX_WIRELESS_MC; in rtl_get_tcb_desc()
1126 tcb_desc->disable_ratefallback = 1; in rtl_get_tcb_desc()
1136 tcb_desc->hw_rate = in rtl_get_tcb_desc()
1140 tcb_desc->hw_rate = in rtl_get_tcb_desc()
1144 tcb_desc->hw_rate = in rtl_get_tcb_desc()
1147 tcb_desc->hw_rate = in rtl_get_tcb_desc()
1155 tcb_desc->multicast = 1; in rtl_get_tcb_desc()
1157 tcb_desc->broadcast = 1; in rtl_get_tcb_desc()
1159 _rtl_txrate_selectmode(hw, sta, tcb_desc); in rtl_get_tcb_desc()
1160 _rtl_query_bandwidth_mode(hw, sta, tcb_desc); in rtl_get_tcb_desc()
1161 _rtl_qurey_shortpreamble_mode(hw, tcb_desc, info); in rtl_get_tcb_desc()
1162 _rtl_query_shortgi(hw, sta, tcb_desc, info); in rtl_get_tcb_desc()
1163 _rtl_query_protection_mode(hw, tcb_desc, info); in rtl_get_tcb_desc()
1165 tcb_desc->use_driver_rate = true; in rtl_get_tcb_desc()
1166 tcb_desc->ratr_index = RATR_INX_WIRELESS_MC; in rtl_get_tcb_desc()
1167 tcb_desc->disable_ratefallback = 1; in rtl_get_tcb_desc()
1168 tcb_desc->mac_id = 0; in rtl_get_tcb_desc()
1169 tcb_desc->packet_bw = false; in rtl_get_tcb_desc()
1828 struct rtl_tcb_desc tcb_desc; in rtl_send_smps_action() local
1831 memset(&tcb_desc, 0, sizeof(struct rtl_tcb_desc)); in rtl_send_smps_action()
1861 rtlpriv->intf_ops->adapter_tx(hw, sta, skb, &tcb_desc); in rtl_send_smps_action()