Lines Matching refs:ptcb_desc

527 static void _rtl92de_insert_emcontent(struct rtl_tcb_desc *ptcb_desc,  in _rtl92de_insert_emcontent()  argument
532 SET_EARLYMODE_PKTNUM(virtualaddress, ptcb_desc->empkt_num); in _rtl92de_insert_emcontent()
533 SET_EARLYMODE_LEN0(virtualaddress, ptcb_desc->empkt_len[0]); in _rtl92de_insert_emcontent()
534 SET_EARLYMODE_LEN1(virtualaddress, ptcb_desc->empkt_len[1]); in _rtl92de_insert_emcontent()
535 SET_EARLYMODE_LEN2_1(virtualaddress, ptcb_desc->empkt_len[2] & 0xF); in _rtl92de_insert_emcontent()
536 SET_EARLYMODE_LEN2_2(virtualaddress, ptcb_desc->empkt_len[2] >> 4); in _rtl92de_insert_emcontent()
537 SET_EARLYMODE_LEN3(virtualaddress, ptcb_desc->empkt_len[3]); in _rtl92de_insert_emcontent()
538 SET_EARLYMODE_LEN4(virtualaddress, ptcb_desc->empkt_len[4]); in _rtl92de_insert_emcontent()
546 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl92de_tx_fill_desc() argument
574 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl92de_tx_fill_desc()
598 if (ptcb_desc->empkt_num) { in rtl92de_tx_fill_desc()
601 ptcb_desc->empkt_num); in rtl92de_tx_fill_desc()
602 _rtl92de_insert_emcontent(ptcb_desc, in rtl92de_tx_fill_desc()
610 if (ptcb_desc->hw_rate < DESC_RATE6M) in rtl92de_tx_fill_desc()
611 ptcb_desc->hw_rate = DESC_RATE6M; in rtl92de_tx_fill_desc()
612 SET_TX_DESC_TX_RATE(pdesc, ptcb_desc->hw_rate); in rtl92de_tx_fill_desc()
613 if (ptcb_desc->use_shortgi || ptcb_desc->use_shortpreamble) in rtl92de_tx_fill_desc()
617 ptcb_desc->hw_rate == DESC_RATEMCS7) in rtl92de_tx_fill_desc()
625 SET_TX_DESC_RTS_ENABLE(pdesc, ((ptcb_desc->rts_enable && in rtl92de_tx_fill_desc()
626 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
627 SET_TX_DESC_HW_RTS_ENABLE(pdesc, ((ptcb_desc->rts_enable in rtl92de_tx_fill_desc()
628 || ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
629 SET_TX_DESC_CTS2SELF(pdesc, ((ptcb_desc->cts_enable) ? 1 : 0)); in rtl92de_tx_fill_desc()
630 SET_TX_DESC_RTS_STBC(pdesc, ((ptcb_desc->rts_stbc) ? 1 : 0)); in rtl92de_tx_fill_desc()
633 if (ptcb_desc->rts_rate < DESC_RATE6M) in rtl92de_tx_fill_desc()
634 ptcb_desc->rts_rate = DESC_RATE6M; in rtl92de_tx_fill_desc()
635 SET_TX_DESC_RTS_RATE(pdesc, ptcb_desc->rts_rate); in rtl92de_tx_fill_desc()
637 SET_TX_DESC_RTS_SC(pdesc, ptcb_desc->rts_sc); in rtl92de_tx_fill_desc()
638 SET_TX_DESC_RTS_SHORT(pdesc, ((ptcb_desc->rts_rate <= in rtl92de_tx_fill_desc()
640 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) : in rtl92de_tx_fill_desc()
641 (ptcb_desc->rts_use_shortgi ? 1 : 0))); in rtl92de_tx_fill_desc()
643 if (ptcb_desc->packet_bw) { in rtl92de_tx_fill_desc()
684 SET_TX_DESC_DISABLE_FB(pdesc, ptcb_desc->disable_ratefallback ? in rtl92de_tx_fill_desc()
686 SET_TX_DESC_USE_RATE(pdesc, ptcb_desc->use_driver_rate ? 1 : 0); in rtl92de_tx_fill_desc()
691 if (!ptcb_desc->use_driver_rate) { in rtl92de_tx_fill_desc()
710 SET_TX_DESC_RATE_ID(pdesc, ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()
711 SET_TX_DESC_MACID(pdesc, ptcb_desc->mac_id); in rtl92de_tx_fill_desc()
713 SET_TX_DESC_RATE_ID(pdesc, 0xC + ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()
714 SET_TX_DESC_MACID(pdesc, ptcb_desc->ratr_index); in rtl92de_tx_fill_desc()