Lines Matching refs:ptcb_desc
28 static void _rtl92de_insert_emcontent(struct rtl_tcb_desc *ptcb_desc, in _rtl92de_insert_emcontent() argument
35 set_earlymode_pktnum(virtualaddress, ptcb_desc->empkt_num); in _rtl92de_insert_emcontent()
36 set_earlymode_len0(virtualaddress, ptcb_desc->empkt_len[0]); in _rtl92de_insert_emcontent()
37 set_earlymode_len1(virtualaddress, ptcb_desc->empkt_len[1]); in _rtl92de_insert_emcontent()
38 set_earlymode_len2_1(virtualaddress, ptcb_desc->empkt_len[2] & 0xF); in _rtl92de_insert_emcontent()
39 set_earlymode_len2_2(virtualaddress, ptcb_desc->empkt_len[2] >> 4); in _rtl92de_insert_emcontent()
40 set_earlymode_len3(virtualaddress, ptcb_desc->empkt_len[3]); in _rtl92de_insert_emcontent()
41 set_earlymode_len4(virtualaddress, ptcb_desc->empkt_len[4]); in _rtl92de_insert_emcontent()
49 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl92de_tx_fill_desc() argument
77 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl92de_tx_fill_desc()
101 if (ptcb_desc->empkt_num) { in rtl92de_tx_fill_desc()
104 ptcb_desc->empkt_num); in rtl92de_tx_fill_desc()
105 _rtl92de_insert_emcontent(ptcb_desc, in rtl92de_tx_fill_desc()
113 if (ptcb_desc->hw_rate < DESC_RATE6M) in rtl92de_tx_fill_desc()
114 ptcb_desc->hw_rate = DESC_RATE6M; in rtl92de_tx_fill_desc()
115 set_tx_desc_tx_rate(pdesc, ptcb_desc->hw_rate); in rtl92de_tx_fill_desc()
116 if (ptcb_desc->use_shortgi || ptcb_desc->use_shortpreamble) in rtl92de_tx_fill_desc()
120 ptcb_desc->hw_rate == DESC_RATEMCS7) in rtl92de_tx_fill_desc()
129 ((ptcb_desc->rts_enable && in rtl92de_tx_fill_desc()
130 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
131 set_tx_desc_hw_rts_enable(pdesc, ((ptcb_desc->rts_enable in rtl92de_tx_fill_desc()
132 || ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
133 set_tx_desc_cts2self(pdesc, ((ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
134 set_tx_desc_rts_stbc(pdesc, ((ptcb_desc->rts_stbc) ? 1 : 0)); in rtl92de_tx_fill_desc()
137 if (ptcb_desc->rts_rate < DESC_RATE6M) in rtl92de_tx_fill_desc()
138 ptcb_desc->rts_rate = DESC_RATE6M; in rtl92de_tx_fill_desc()
139 set_tx_desc_rts_rate(pdesc, ptcb_desc->rts_rate); in rtl92de_tx_fill_desc()
141 set_tx_desc_rts_sc(pdesc, ptcb_desc->rts_sc); in rtl92de_tx_fill_desc()
142 set_tx_desc_rts_short(pdesc, ((ptcb_desc->rts_rate <= in rtl92de_tx_fill_desc()
144 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) : in rtl92de_tx_fill_desc()
145 (ptcb_desc->rts_use_shortgi ? 1 : 0))); in rtl92de_tx_fill_desc()
147 if (ptcb_desc->packet_bw) { in rtl92de_tx_fill_desc()
188 set_tx_desc_disable_fb(pdesc, ptcb_desc->disable_ratefallback ? in rtl92de_tx_fill_desc()
190 set_tx_desc_use_rate(pdesc, ptcb_desc->use_driver_rate ? 1 : 0); in rtl92de_tx_fill_desc()
195 if (!ptcb_desc->use_driver_rate) { in rtl92de_tx_fill_desc()
214 set_tx_desc_rate_id(pdesc, ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()
215 set_tx_desc_macid(pdesc, ptcb_desc->mac_id); in rtl92de_tx_fill_desc()
217 set_tx_desc_rate_id(pdesc, 0xC + ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()
218 set_tx_desc_macid(pdesc, ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()