Lines Matching refs:ptcb_desc
339 u8 hw_queue, struct rtl_tcb_desc *ptcb_desc) in rtl92se_tx_fill_desc() argument
372 rtl_get_tcb_desc(hw, info, sta, skb, ptcb_desc); in rtl92se_tx_fill_desc()
384 if (ptcb_desc->mac_id < 32) { in rtl92se_tx_fill_desc()
385 SET_TX_DESC_MACID(pdesc, ptcb_desc->mac_id); in rtl92se_tx_fill_desc()
386 reserved_macid |= ptcb_desc->mac_id; in rtl92se_tx_fill_desc()
391 SET_TX_DESC_TXHT(pdesc, ((ptcb_desc->hw_rate >= in rtl92se_tx_fill_desc()
395 if (ptcb_desc->hw_rate == DESC_RATE1M || in rtl92se_tx_fill_desc()
396 ptcb_desc->hw_rate == DESC_RATE2M || in rtl92se_tx_fill_desc()
397 ptcb_desc->hw_rate == DESC_RATE5_5M || in rtl92se_tx_fill_desc()
398 ptcb_desc->hw_rate == DESC_RATE11M) { in rtl92se_tx_fill_desc()
399 ptcb_desc->hw_rate = DESC_RATE12M; in rtl92se_tx_fill_desc()
403 SET_TX_DESC_TX_RATE(pdesc, ptcb_desc->hw_rate); in rtl92se_tx_fill_desc()
405 if (ptcb_desc->use_shortgi || ptcb_desc->use_shortpreamble) in rtl92se_tx_fill_desc()
418 SET_TX_DESC_RTS_ENABLE(pdesc, ((ptcb_desc->rts_enable && in rtl92se_tx_fill_desc()
419 !ptcb_desc->cts_enable) ? 1 : 0)); in rtl92se_tx_fill_desc()
420 SET_TX_DESC_CTS_ENABLE(pdesc, ((ptcb_desc->cts_enable) ? in rtl92se_tx_fill_desc()
422 SET_TX_DESC_RTS_STBC(pdesc, ((ptcb_desc->rts_stbc) ? 1 : 0)); in rtl92se_tx_fill_desc()
424 SET_TX_DESC_RTS_RATE(pdesc, ptcb_desc->rts_rate); in rtl92se_tx_fill_desc()
426 SET_TX_DESC_RTS_SUB_CARRIER(pdesc, ptcb_desc->rts_sc); in rtl92se_tx_fill_desc()
427 SET_TX_DESC_RTS_SHORT(pdesc, ((ptcb_desc->rts_rate <= in rtl92se_tx_fill_desc()
429 (ptcb_desc->rts_use_shortpreamble ? 1 : 0) in rtl92se_tx_fill_desc()
430 : (ptcb_desc->rts_use_shortgi ? 1 : 0))); in rtl92se_tx_fill_desc()
435 if (ptcb_desc->packet_bw) { in rtl92se_tx_fill_desc()
456 SET_TX_DESC_RA_BRSR_ID(pdesc, ptcb_desc->ratr_index); in rtl92se_tx_fill_desc()
492 ptcb_desc->use_driver_rate ? 1 : 0); in rtl92se_tx_fill_desc()