Lines Matching refs:ptcb_desc

360 static void _rtl8821ae_insert_emcontent(struct rtl_tcb_desc *ptcb_desc,  in _rtl8821ae_insert_emcontent()  argument
367 SET_EARLYMODE_PKTNUM(virtualaddress, ptcb_desc->empkt_num); in _rtl8821ae_insert_emcontent()
368 if (ptcb_desc->empkt_num == 1) { in _rtl8821ae_insert_emcontent()
369 dwtmp = ptcb_desc->empkt_len[0]; in _rtl8821ae_insert_emcontent()
371 dwtmp = ptcb_desc->empkt_len[0]; in _rtl8821ae_insert_emcontent()
373 dwtmp += ptcb_desc->empkt_len[1]; in _rtl8821ae_insert_emcontent()
377 if (ptcb_desc->empkt_num <= 3) { in _rtl8821ae_insert_emcontent()
378 dwtmp = ptcb_desc->empkt_len[2]; in _rtl8821ae_insert_emcontent()
380 dwtmp = ptcb_desc->empkt_len[2]; in _rtl8821ae_insert_emcontent()
382 dwtmp += ptcb_desc->empkt_len[3]; in _rtl8821ae_insert_emcontent()
385 if (ptcb_desc->empkt_num <= 5) { in _rtl8821ae_insert_emcontent()
386 dwtmp = ptcb_desc->empkt_len[4]; in _rtl8821ae_insert_emcontent()
388 dwtmp = ptcb_desc->empkt_len[4]; in _rtl8821ae_insert_emcontent()
390 dwtmp += ptcb_desc->empkt_len[5]; in _rtl8821ae_insert_emcontent()
394 if (ptcb_desc->empkt_num <= 7) { in _rtl8821ae_insert_emcontent()
395 dwtmp = ptcb_desc->empkt_len[6]; in _rtl8821ae_insert_emcontent()
397 dwtmp = ptcb_desc->empkt_len[6]; in _rtl8821ae_insert_emcontent()
399 dwtmp += ptcb_desc->empkt_len[7]; in _rtl8821ae_insert_emcontent()
402 if (ptcb_desc->empkt_num <= 9) { in _rtl8821ae_insert_emcontent()
403 dwtmp = ptcb_desc->empkt_len[8]; in _rtl8821ae_insert_emcontent()
405 dwtmp = ptcb_desc->empkt_len[8]; in _rtl8821ae_insert_emcontent()
407 dwtmp += ptcb_desc->empkt_len[9]; in _rtl8821ae_insert_emcontent()
579 struct rtl_tcb_desc *ptcb_desc) in rtl8821ae_bw_mapping() argument
587 rtlphy->current_chan_bw, ptcb_desc->packet_bw); in rtl8821ae_bw_mapping()
590 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_80) in rtl8821ae_bw_mapping()
592 else if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) in rtl8821ae_bw_mapping()
597 if ((ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) || in rtl8821ae_bw_mapping()
598 (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_80)) in rtl8821ae_bw_mapping()
609 struct rtl_tcb_desc *ptcb_desc) in rtl8821ae_sc_mapping() argument
617 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_80) { in rtl8821ae_sc_mapping()
619 } else if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) { in rtl8821ae_sc_mapping()
661 if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20_40) { in rtl8821ae_sc_mapping()
663 } else if (ptcb_desc->packet_bw == HT_CHANNEL_WIDTH_20) { in rtl8821ae_sc_mapping()
688 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl8821ae_tx_fill_desc() argument
709 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl8821ae_tx_fill_desc()
733 if (ptcb_desc->empkt_num) { in rtl8821ae_tx_fill_desc()
736 ptcb_desc->empkt_num); in rtl8821ae_tx_fill_desc()
737 _rtl8821ae_insert_emcontent(ptcb_desc, in rtl8821ae_tx_fill_desc()
746 SET_TX_DESC_TX_RATE(pdesc, ptcb_desc->hw_rate); in rtl8821ae_tx_fill_desc()
747 if (ptcb_desc->hw_rate > DESC_RATEMCS0) in rtl8821ae_tx_fill_desc()
748 short_gi = (ptcb_desc->use_shortgi) ? 1 : 0; in rtl8821ae_tx_fill_desc()
750 short_gi = (ptcb_desc->use_shortpreamble) ? 1 : 0; in rtl8821ae_tx_fill_desc()
759 SET_TX_DESC_RTS_ENABLE(pdesc, ((ptcb_desc->rts_enable && in rtl8821ae_tx_fill_desc()
760 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl8821ae_tx_fill_desc()
762 SET_TX_DESC_CTS2SELF(pdesc, ((ptcb_desc->cts_enable) ? 1 : 0)); in rtl8821ae_tx_fill_desc()
764 SET_TX_DESC_RTS_RATE(pdesc, ptcb_desc->rts_rate); in rtl8821ae_tx_fill_desc()
765 SET_TX_DESC_RTS_SC(pdesc, ptcb_desc->rts_sc); in rtl8821ae_tx_fill_desc()
767 ((ptcb_desc->rts_rate <= DESC_RATE54M) ? in rtl8821ae_tx_fill_desc()
768 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) : in rtl8821ae_tx_fill_desc()
769 (ptcb_desc->rts_use_shortgi ? 1 : 0))); in rtl8821ae_tx_fill_desc()
771 if (ptcb_desc->tx_enable_sw_calc_duration) in rtl8821ae_tx_fill_desc()
775 rtl8821ae_bw_mapping(hw, ptcb_desc)); in rtl8821ae_tx_fill_desc()
778 rtl8821ae_sc_mapping(hw, ptcb_desc)); in rtl8821ae_tx_fill_desc()
808 SET_TX_DESC_DISABLE_FB(pdesc, ptcb_desc->disable_ratefallback ? in rtl8821ae_tx_fill_desc()
810 SET_TX_DESC_USE_RATE(pdesc, ptcb_desc->use_driver_rate ? 1 : 0); in rtl8821ae_tx_fill_desc()
821 rtl_set_tx_report(ptcb_desc, pdesc, hw, tx_info); in rtl8821ae_tx_fill_desc()
830 SET_TX_DESC_RATE_ID(pdesc, ptcb_desc->ratr_index); in rtl8821ae_tx_fill_desc()
831 SET_TX_DESC_MACID(pdesc, ptcb_desc->mac_id); in rtl8821ae_tx_fill_desc()
833 SET_TX_DESC_RATE_ID(pdesc, 0xC + ptcb_desc->ratr_index); in rtl8821ae_tx_fill_desc()
834 SET_TX_DESC_MACID(pdesc, ptcb_desc->mac_id); in rtl8821ae_tx_fill_desc()
846 rtl8821ae_dm_set_tx_ant_by_tx_info(hw, pdesc, ptcb_desc->mac_id); in rtl8821ae_tx_fill_desc()