Lines Matching refs:ptcb_desc
531 static void _rtl92de_insert_emcontent(struct rtl_tcb_desc *ptcb_desc, in _rtl92de_insert_emcontent() argument
536 SET_EARLYMODE_PKTNUM(virtualaddress, ptcb_desc->empkt_num); in _rtl92de_insert_emcontent()
537 SET_EARLYMODE_LEN0(virtualaddress, ptcb_desc->empkt_len[0]); in _rtl92de_insert_emcontent()
538 SET_EARLYMODE_LEN1(virtualaddress, ptcb_desc->empkt_len[1]); in _rtl92de_insert_emcontent()
539 SET_EARLYMODE_LEN2_1(virtualaddress, ptcb_desc->empkt_len[2] & 0xF); in _rtl92de_insert_emcontent()
540 SET_EARLYMODE_LEN2_2(virtualaddress, ptcb_desc->empkt_len[2] >> 4); in _rtl92de_insert_emcontent()
541 SET_EARLYMODE_LEN3(virtualaddress, ptcb_desc->empkt_len[3]); in _rtl92de_insert_emcontent()
542 SET_EARLYMODE_LEN4(virtualaddress, ptcb_desc->empkt_len[4]); in _rtl92de_insert_emcontent()
550 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl92de_tx_fill_desc() argument
578 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl92de_tx_fill_desc()
602 if (ptcb_desc->empkt_num) { in rtl92de_tx_fill_desc()
605 ptcb_desc->empkt_num); in rtl92de_tx_fill_desc()
606 _rtl92de_insert_emcontent(ptcb_desc, in rtl92de_tx_fill_desc()
614 if (ptcb_desc->hw_rate < DESC_RATE6M) in rtl92de_tx_fill_desc()
615 ptcb_desc->hw_rate = DESC_RATE6M; in rtl92de_tx_fill_desc()
616 SET_TX_DESC_TX_RATE(pdesc, ptcb_desc->hw_rate); in rtl92de_tx_fill_desc()
617 if (ptcb_desc->use_shortgi || ptcb_desc->use_shortpreamble) in rtl92de_tx_fill_desc()
621 ptcb_desc->hw_rate == DESC_RATEMCS7) in rtl92de_tx_fill_desc()
629 SET_TX_DESC_RTS_ENABLE(pdesc, ((ptcb_desc->rts_enable && in rtl92de_tx_fill_desc()
630 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
631 SET_TX_DESC_HW_RTS_ENABLE(pdesc, ((ptcb_desc->rts_enable in rtl92de_tx_fill_desc()
632 || ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
633 SET_TX_DESC_CTS2SELF(pdesc, ((ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
634 SET_TX_DESC_RTS_STBC(pdesc, ((ptcb_desc->rts_stbc) ? 1 : 0)); in rtl92de_tx_fill_desc()
637 if (ptcb_desc->rts_rate < DESC_RATE6M) in rtl92de_tx_fill_desc()
638 ptcb_desc->rts_rate = DESC_RATE6M; in rtl92de_tx_fill_desc()
639 SET_TX_DESC_RTS_RATE(pdesc, ptcb_desc->rts_rate); in rtl92de_tx_fill_desc()
641 SET_TX_DESC_RTS_SC(pdesc, ptcb_desc->rts_sc); in rtl92de_tx_fill_desc()
642 SET_TX_DESC_RTS_SHORT(pdesc, ((ptcb_desc->rts_rate <= in rtl92de_tx_fill_desc()
644 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) : in rtl92de_tx_fill_desc()
645 (ptcb_desc->rts_use_shortgi ? 1 : 0))); in rtl92de_tx_fill_desc()
647 if (ptcb_desc->packet_bw) { in rtl92de_tx_fill_desc()
688 SET_TX_DESC_DISABLE_FB(pdesc, ptcb_desc->disable_ratefallback ? in rtl92de_tx_fill_desc()
690 SET_TX_DESC_USE_RATE(pdesc, ptcb_desc->use_driver_rate ? 1 : 0); in rtl92de_tx_fill_desc()
695 if (!ptcb_desc->use_driver_rate) { in rtl92de_tx_fill_desc()
714 SET_TX_DESC_RATE_ID(pdesc, ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()
715 SET_TX_DESC_MACID(pdesc, ptcb_desc->mac_id); in rtl92de_tx_fill_desc()
717 SET_TX_DESC_RATE_ID(pdesc, 0xC + ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()
718 SET_TX_DESC_MACID(pdesc, ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()