Lines Matching refs:txd

67 	struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf;  in r92c_tx_set_ht40()  local
73 txd->txdw4 |= htole32(R92C_TXDW4_DATA_BW40); in r92c_tx_set_ht40()
74 txd->txdw4 |= htole32(SM(R92C_TXDW4_DATA_SCO, extc_offset)); in r92c_tx_set_ht40()
79 r92c_tx_protection(struct rtwn_softc *sc, struct r92c_tx_desc *txd, in r92c_tx_protection() argument
91 txd->txdw4 |= htole32(R92C_TXDW4_CTS2SELF); in r92c_tx_protection()
94 txd->txdw4 |= htole32(R92C_TXDW4_RTSEN); in r92c_tx_protection()
117 txd->txdw4 |= htole32(SM(R92C_TXDW4_RTSRATE, ridx)); in r92c_tx_protection()
119 txd->txdw5 |= htole32(SM(R92C_TXDW5_RTSRATE_FB_LMT, 0xf)); in r92c_tx_protection()
124 txd->txdw4 |= htole32(R92C_TXDW4_RTS_SHORT); in r92c_tx_protection()
129 r92c_tx_raid(struct rtwn_softc *sc, struct r92c_tx_desc *txd, in r92c_tx_raid() argument
179 txd->txdw1 |= htole32(SM(R92C_TXDW1_RAID, raid)); in r92c_tx_raid()
186 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf; in r92c_tx_set_sgi() local
197 txd->txdw5 |= htole32(R92C_TXDW5_SGI); in r92c_tx_set_sgi()
200 txd->txdw5 |= htole32(R92C_TXDW5_SGI); in r92c_tx_set_sgi()
207 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf; in r92c_tx_enable_ampdu() local
210 txd->txdw1 |= htole32(R92C_TXDW1_AGGEN); in r92c_tx_enable_ampdu()
212 txd->txdw1 |= htole32(R92C_TXDW1_AGGBK); in r92c_tx_enable_ampdu()
218 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf; in r92c_tx_setup_hwseq() local
220 txd->txdw4 |= htole32(R92C_TXDW4_HWSEQ_EN); in r92c_tx_setup_hwseq()
226 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf; in r92c_tx_setup_macid() local
228 txd->txdw1 |= htole32(SM(R92C_TXDW1_MACID, id)); in r92c_tx_setup_macid()
275 r92c_fill_tx_desc_datarate(struct rtwn_softc *sc, struct r92c_tx_desc *txd, in r92c_fill_tx_desc_datarate() argument
281 txd->txdw5 |= htole32(SM(R92C_TXDW5_DATARATE, 0)); in r92c_fill_tx_desc_datarate()
283 txd->txdw5 |= htole32(SM(R92C_TXDW5_DATARATE, ridx)); in r92c_fill_tx_desc_datarate()
284 txd->txdw4 |= htole32(R92C_TXDW4_DRVRATE); in r92c_fill_tx_desc_datarate()
288 txd->txdw5 |= htole32(SM(R92C_TXDW5_DATARATE_FB_LMT, 0x1f)); in r92c_fill_tx_desc_datarate()
292 r92c_fill_tx_desc_shpreamble(struct rtwn_softc *sc, struct r92c_tx_desc *txd, in r92c_fill_tx_desc_shpreamble() argument
299 txd->txdw4 |= htole32(R92C_TXDW4_DATA_SHPRE); in r92c_fill_tx_desc_shpreamble()
355 struct r92c_tx_desc *txd; in r92c_fill_tx_desc() local
375 txd = (struct r92c_tx_desc *)buf; in r92c_fill_tx_desc()
376 txd->flags0 |= R92C_FLAGS0_LSG | R92C_FLAGS0_FSG; in r92c_fill_tx_desc()
378 txd->flags0 |= R92C_FLAGS0_BMCAST; in r92c_fill_tx_desc()
381 txd->txdw4 |= htole32(R92C_TXDW4_QOS); in r92c_fill_tx_desc()
390 txd->txdw5 |= htole32(R92C_TXDW5_RTY_LMT_ENA); in r92c_fill_tx_desc()
391 txd->txdw5 |= htole32(SM(R92C_TXDW5_RTY_LMT, in r92c_fill_tx_desc()
401 txd->txdw2 |= htole32(SM(R92C_TXDW2_AMPDU_DEN, in r92c_fill_tx_desc()
403 txd->txdw6 |= htole32(SM(R92C_TXDW6_MAX_AGG, in r92c_fill_tx_desc()
407 txd->txdw2 |= htole32(R92C_TXDW2_CCX_RPT); in r92c_fill_tx_desc()
414 r92c_fill_tx_desc_shpreamble(sc, txd, ridx, force_rate); in r92c_fill_tx_desc()
426 r92c_tx_set_ht40(sc, txd, ni); in r92c_fill_tx_desc()
427 r92c_tx_set_sgi(sc, txd, ni); in r92c_fill_tx_desc()
431 r92c_tx_protection(sc, txd, prot, ridx, force_rate); in r92c_fill_tx_desc()
439 txd->txdw1 |= htole32(SM(R92C_TXDW1_QSEL, qsel)); in r92c_fill_tx_desc()
441 rtwn_r92c_tx_setup_macid(sc, txd, macid); in r92c_fill_tx_desc()
444 r92c_fill_tx_desc_datarate(sc, txd, ridx, force_rate); in r92c_fill_tx_desc()
446 txd->txdw4 |= htole32(SM(R92C_TXDW4_PORT_ID, uvp->id)); in r92c_fill_tx_desc()
447 r92c_tx_raid(sc, txd, ni, ismcast); in r92c_fill_tx_desc()
451 rtwn_r92c_tx_setup_hwseq(sc, txd); in r92c_fill_tx_desc()
462 txd->txdseq = htole16(seqno); in r92c_fill_tx_desc()
473 struct r92c_tx_desc *txd; in r92c_fill_tx_desc_raw() local
484 txd = (struct r92c_tx_desc *)buf; in r92c_fill_tx_desc_raw()
485 txd->flags0 |= R92C_FLAGS0_LSG | R92C_FLAGS0_FSG; in r92c_fill_tx_desc_raw()
487 txd->flags0 |= R92C_FLAGS0_BMCAST; in r92c_fill_tx_desc_raw()
490 txd->txdw5 |= htole32(R92C_TXDW5_RTY_LMT_ENA); in r92c_fill_tx_desc_raw()
491 txd->txdw5 |= htole32(SM(R92C_TXDW5_RTY_LMT, in r92c_fill_tx_desc_raw()
495 r92c_tx_protection(sc, txd, IEEE80211_PROT_RTSCTS, ridx, in r92c_fill_tx_desc_raw()
498 r92c_tx_protection(sc, txd, IEEE80211_PROT_CTSONLY, ridx, in r92c_fill_tx_desc_raw()
501 rtwn_r92c_tx_setup_macid(sc, txd, RTWN_MACID_BC); in r92c_fill_tx_desc_raw()
502 txd->txdw1 |= htole32(SM(R92C_TXDW1_QSEL, R92C_TXDW1_QSEL_MGNT)); in r92c_fill_tx_desc_raw()
505 r92c_fill_tx_desc_datarate(sc, txd, ridx, true); /* force rate */ in r92c_fill_tx_desc_raw()
506 txd->txdw4 |= htole32(SM(R92C_TXDW4_PORT_ID, uvp->id)); in r92c_fill_tx_desc_raw()
507 r92c_tx_raid(sc, txd, ni, ismcast); in r92c_fill_tx_desc_raw()
511 rtwn_r92c_tx_setup_hwseq(sc, txd); in r92c_fill_tx_desc_raw()
514 txd->txdseq |= htole16(M_SEQNO_GET(m) % IEEE80211_SEQ_RANGE); in r92c_fill_tx_desc_raw()
522 struct r92c_tx_desc *txd = (struct r92c_tx_desc *)buf; in r92c_fill_tx_desc_null() local
524 txd->flags0 = R92C_FLAGS0_FSG | R92C_FLAGS0_LSG | R92C_FLAGS0_OWN; in r92c_fill_tx_desc_null()
525 txd->txdw1 = htole32( in r92c_fill_tx_desc_null()
528 txd->txdw4 = htole32(R92C_TXDW4_DRVRATE); in r92c_fill_tx_desc_null()
529 txd->txdw4 |= htole32(SM(R92C_TXDW4_PORT_ID, id)); in r92c_fill_tx_desc_null()
531 txd->txdw5 = htole32(SM(R92C_TXDW5_DATARATE, in r92c_fill_tx_desc_null()
534 txd->txdw5 = htole32(SM(R92C_TXDW5_DATARATE, in r92c_fill_tx_desc_null()
539 rtwn_r92c_tx_setup_hwseq(sc, txd); in r92c_fill_tx_desc_null()
546 const struct r92c_tx_desc *txd = buf; in r92c_tx_radiotap_flags() local
550 if (txd->txdw4 & htole32(R92C_TXDW4_DATA_SHPRE)) in r92c_tx_radiotap_flags()
552 if (txd->txdw5 & htole32(R92C_TXDW5_SGI)) in r92c_tx_radiotap_flags()