/freebsd/tools/tools/ath/athalq/ |
H A D | ar9300_ds.c | 60 struct ar9300_txs txs; in ar9300_decode_txstatus() local 63 memcpy(&txs, &a->payload, sizeof(struct ar9300_txs)); in ar9300_decode_txstatus() 69 txs.status4, in ar9300_decode_txstatus() 70 txs.status4 - last_ts, in ar9300_decode_txstatus() 71 (unsigned int) MS(txs.status1, AR_tx_desc_id), in ar9300_decode_txstatus() 72 (unsigned int) MS(txs.ds_info, AR_tx_qcu_num)); in ar9300_decode_txstatus() 73 printf(" DescId=0x%08x\n", txs.status1); in ar9300_decode_txstatus() 75 last_ts = txs.status4; in ar9300_decode_txstatus() 78 txs.ds_info & 0xff, in ar9300_decode_txstatus() 79 MS(txs.ds_info, AR_tx_qcu_num), in ar9300_decode_txstatus() [all …]
|
H A D | ar5416_ds.c | 41 struct ar5416_desc txs; in ar5416_decode_txstatus() local 44 memcpy(&txs, &a->payload, sizeof(struct ar5416_desc)); in ar5416_decode_txstatus() 50 MF(txs.u.tx.status[9], AR_TxDone), in ar5416_decode_txstatus() 51 MF(txs.u.tx.status[1], AR_FrmXmitOK), in ar5416_decode_txstatus() 52 MF(txs.u.tx.status[1], AR_Filtered), in ar5416_decode_txstatus() 53 txs.u.tx.status[2]); in ar5416_decode_txstatus() 57 MS(txs.u.tx.status[0], AR_TxRSSIAnt00), in ar5416_decode_txstatus() 58 MS(txs.u.tx.status[0], AR_TxRSSIAnt01), in ar5416_decode_txstatus() 59 MS(txs.u.tx.status[0], AR_TxRSSIAnt02)); in ar5416_decode_txstatus() 63 MS(txs.u.tx.status[5], AR_TxRSSIAnt10), in ar5416_decode_txstatus() [all …]
|
H A D | ar5416_ds_tdma.c | 41 struct ar5416_desc txs; in ar5416_decode_txstatus() local 45 memcpy(&txs, &a->payload, sizeof(struct ar5416_desc)); in ar5416_decode_txstatus() 47 if (MF(txs.u.tx.status[9], AR_TxDone) == 0) in ar5416_decode_txstatus() 53 MF(txs.u.tx.status[9], AR_TxDone), in ar5416_decode_txstatus() 54 txs.u.tx.status[2], in ar5416_decode_txstatus() 55 txs.u.tx.status[2] - tx_tsf); in ar5416_decode_txstatus() 57 tx_tsf = txs.u.tx.status[2]; in ar5416_decode_txstatus() 62 MS(txs.u.tx.status[0], AR_TxRSSIAnt00), in ar5416_decode_txstatus() 63 MS(txs.u.tx.status[0], AR_TxRSSIAnt01), in ar5416_decode_txstatus() 64 MS(txs.u.tx.status[0], AR_TxRSSIAnt02)); in ar5416_decode_txstatus() [all …]
|
H A D | ar5212_ds.c | 41 struct ar5212_desc txs; in ar5212_decode_txstatus() local 44 memcpy(&txs, &a->payload, sizeof(struct ar5212_desc)); in ar5212_decode_txstatus() 50 MF(txs.u.tx.status1, AR_Done), in ar5212_decode_txstatus() 51 MS(txs.u.tx.status0, AR_SendTimestamp)); in ar5212_decode_txstatus() 55 MF(txs.u.tx.status0, AR_FrmXmitOK), in ar5212_decode_txstatus() 56 MF(txs.u.tx.status0, AR_ExcessiveRetries), in ar5212_decode_txstatus() 57 MF(txs.u.tx.status0, AR_FIFOUnderrun), in ar5212_decode_txstatus() 58 MF(txs.u.tx.status0, AR_Filtered)); in ar5212_decode_txstatus() 60 MS(txs.u.tx.status0, AR_RTSFailCnt), in ar5212_decode_txstatus() 61 MS(txs.u.tx.status0, AR_DataFailCnt), in ar5212_decode_txstatus() [all …]
|
H A D | ar5211_ds.c | 41 struct ar5211_desc txs; in ar5211_decode_txstatus() local 44 memcpy(&txs, &a->payload, sizeof(struct ar5211_desc)); in ar5211_decode_txstatus() 53 MF(txs.ds_status0, AR_FrmXmitOK), in ar5211_decode_txstatus() 54 MF(txs.ds_status0, AR_ExcessiveRetries), in ar5211_decode_txstatus() 55 MF(txs.ds_status0, AR_FIFOUnderrun), in ar5211_decode_txstatus() 56 MF(txs.ds_status0, AR_Filtered)); in ar5211_decode_txstatus() 58 MS(txs.ds_status0, AR_LongRetryCnt), in ar5211_decode_txstatus() 59 MS(txs.ds_status0, AR_ShortRetryCnt), in ar5211_decode_txstatus() 60 MS(txs.ds_status0, AR_VirtCollCnt)); in ar5211_decode_txstatus() 62 MS(txs.ds_status0, AR_SendTimestamp)); in ar5211_decode_txstatus() [all …]
|
H A D | ar5210_ds.c | 41 struct ar5210_desc txs; in ar5210_decode_txstatus() local 44 memcpy(&txs, &a->payload, sizeof(struct ar5210_desc)); in ar5210_decode_txstatus() 53 MF(txs.ds_status0, AR_FrmXmitOK), in ar5210_decode_txstatus() 54 MF(txs.ds_status0, AR_ExcessiveRetries), in ar5210_decode_txstatus() 55 MF(txs.ds_status0, AR_FIFOUnderrun), in ar5210_decode_txstatus() 56 MF(txs.ds_status0, AR_Filtered)); in ar5210_decode_txstatus() 58 MS(txs.ds_status0, AR_LongRetryCnt), in ar5210_decode_txstatus() 59 MS(txs.ds_status0, AR_ShortRetryCnt)); in ar5210_decode_txstatus() 61 MS(txs.ds_status0, AR_SendTimestamp)); in ar5210_decode_txstatus() 65 MF(txs.ds_status1, AR_Done), in ar5210_decode_txstatus() [all …]
|
/freebsd/sys/dev/rtwn/rtl8188e/ |
H A D | r88e_rx.c | 78 struct ieee80211_ratectl_tx_status txs; in r88e_ratectl_tx_complete() local 119 txs.flags = IEEE80211_RATECTL_STATUS_LONG_RETRY | in r88e_ratectl_tx_complete() 121 txs.long_retries = ntries; in r88e_ratectl_tx_complete() 123 txs.final_rate = in r88e_ratectl_tx_complete() 125 txs.final_rate |= IEEE80211_RATE_MCS; in r88e_ratectl_tx_complete() 127 txs.final_rate = ridx2rate[rpt->final_rate]; in r88e_ratectl_tx_complete() 129 txs.status = IEEE80211_RATECTL_TX_SUCCESS; in r88e_ratectl_tx_complete() 131 txs.status = IEEE80211_RATECTL_TX_FAIL_LONG; in r88e_ratectl_tx_complete() 133 txs.status = IEEE80211_RATECTL_TX_FAIL_EXPIRED; in r88e_ratectl_tx_complete() 135 txs.status = IEEE80211_RATECTL_TX_FAIL_UNSPECIFIED; in r88e_ratectl_tx_complete() [all …]
|
/freebsd/sys/powerpc/ps3/ |
H A D | if_glc.c | 120 struct glc_txsoft *txs; in glc_attach() local 226 txs = &sc->sc_txsoft[i]; in glc_attach() 227 txs->txs_mbuf = NULL; in glc_attach() 228 err = bus_dmamap_create(sc->sc_txdma_tag, 0, &txs->txs_dmamap); in glc_attach() 234 STAILQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in glc_attach() 291 struct glc_txsoft *txs; in glc_init_locked() local 319 while ((txs = STAILQ_FIRST(&sc->sc_txdirtyq)) != NULL) { in glc_init_locked() 321 bus_dmamap_unload(sc->sc_txdma_tag, txs->txs_dmamap); in glc_init_locked() 323 if (txs->txs_mbuf != NULL) { in glc_init_locked() 324 m_freem(txs->txs_mbuf); in glc_init_locked() [all …]
|
/freebsd/sys/dev/gem/ |
H A D | if_gem.c | 145 struct gem_txsoft *txs; in gem_attach() local 236 txs = &sc->sc_txsoft[i]; in gem_attach() 237 txs->txs_mbuf = NULL; in gem_attach() 238 txs->txs_ndescs = 0; in gem_attach() 240 &txs->txs_dmamap)) != 0) { in gem_attach() 246 STAILQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in gem_attach() 636 struct gem_txsoft *txs; in gem_stop() local 653 while ((txs = STAILQ_FIRST(&sc->sc_txdirtyq)) != NULL) { in gem_stop() 655 if (txs->txs_ndescs != 0) { in gem_stop() 656 bus_dmamap_sync(sc->sc_tdmatag, txs->txs_dmamap, in gem_stop() [all …]
|
/freebsd/sys/dev/rtwn/rtl8812a/ |
H A D | r12a_rx.c | 67 struct ieee80211_ratectl_tx_status txs; in r12a_ratectl_tx_complete() local 107 txs.flags = IEEE80211_RATECTL_STATUS_LONG_RETRY | in r12a_ratectl_tx_complete() 109 txs.long_retries = ntries; in r12a_ratectl_tx_complete() 111 txs.final_rate = in r12a_ratectl_tx_complete() 113 txs.final_rate |= IEEE80211_RATE_MCS; in r12a_ratectl_tx_complete() 115 txs.final_rate = ridx2rate[rpt->final_rate]; in r12a_ratectl_tx_complete() 117 txs.status = IEEE80211_RATECTL_TX_FAIL_LONG; in r12a_ratectl_tx_complete() 119 txs.status = IEEE80211_RATECTL_TX_FAIL_EXPIRED; in r12a_ratectl_tx_complete() 121 txs.status = IEEE80211_RATECTL_TX_SUCCESS; in r12a_ratectl_tx_complete() 122 ieee80211_ratectl_tx_complete(ni, &txs); in r12a_ratectl_tx_complete()
|
/freebsd/sys/dev/cas/ |
H A D | if_cas.c | 184 struct cas_txsoft *txs; in cas_attach() local 280 txs = &sc->sc_txsoft[i]; in cas_attach() 281 txs->txs_mbuf = NULL; in cas_attach() 282 txs->txs_ndescs = 0; in cas_attach() 284 &txs->txs_dmamap)) != 0) { in cas_attach() 290 STAILQ_INSERT_TAIL(&sc->sc_txfreeq, txs, txs_q); in cas_attach() 713 struct cas_txsoft *txs; in cas_stop() local 731 while ((txs = STAILQ_FIRST(&sc->sc_txdirtyq)) != NULL) { in cas_stop() 733 if (txs->txs_ndescs != 0) { in cas_stop() 734 bus_dmamap_sync(sc->sc_tdmatag, txs->txs_dmamap, in cas_stop() [all …]
|
/freebsd/sys/dev/rtwn/rtl8192c/ |
H A D | r92c_fw.c | 365 struct ieee80211_ratectl_tx_status txs; in r92c_ratectl_tx_complete() local 411 txs.flags = IEEE80211_RATECTL_STATUS_LONG_RETRY; in r92c_ratectl_tx_complete() 412 txs.long_retries = ntries; in r92c_ratectl_tx_complete() 414 txs.status = IEEE80211_RATECTL_TX_SUCCESS; in r92c_ratectl_tx_complete() 416 txs.status = IEEE80211_RATECTL_TX_FAIL_LONG; /* XXX */ in r92c_ratectl_tx_complete() 418 txs.status = IEEE80211_RATECTL_TX_FAIL_EXPIRED; in r92c_ratectl_tx_complete() 420 txs.status = IEEE80211_RATECTL_TX_FAIL_UNSPECIFIED; in r92c_ratectl_tx_complete() 421 ieee80211_ratectl_tx_complete(ni, &txs); in r92c_ratectl_tx_complete()
|
/freebsd/sys/dev/xen/netback/ |
H A D | netback_unit_tests.c | 189 netif_tx_sring_t* txs; member 347 xnb_unit_pvt.txs = malloc(PAGE_SIZE, M_XENNETBACK, M_WAITOK|M_ZERO); in setup_pvt_data() 348 if (xnb_unit_pvt.txs != NULL) { in setup_pvt_data() 349 SHARED_RING_INIT(xnb_unit_pvt.txs); in setup_pvt_data() 350 BACK_RING_INIT(&xnb_unit_pvt.txb, xnb_unit_pvt.txs, PAGE_SIZE); in setup_pvt_data() 351 FRONT_RING_INIT(&xnb_unit_pvt.txf, xnb_unit_pvt.txs, PAGE_SIZE); in setup_pvt_data() 376 if (xnb_unit_pvt.txs != NULL) { in teardown_pvt_data() 377 free(xnb_unit_pvt.txs, M_XENNETBACK); in teardown_pvt_data() 609 xnb_unit_pvt.txs->req_prod = rsize - 2; in xnb_ring2pkt_wraps() 610 xnb_unit_pvt.txs->req_event = rsize - 1; in xnb_ring2pkt_wraps() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7603/ |
H A D | mac.c | 1105 u32 txs; in mt7603_fill_txs() local 1112 txs = le32_to_cpu(txs_data[4]); in mt7603_fill_txs() 1113 ampdu = !fixed_rate && (txs & MT_TXS4_AMPDU); in mt7603_fill_txs() 1114 count = FIELD_GET(MT_TXS4_TX_COUNT, txs); in mt7603_fill_txs() 1115 last_idx = FIELD_GET(MT_TXS4_LAST_TX_RATE, txs); in mt7603_fill_txs() 1117 txs = le32_to_cpu(txs_data[0]); in mt7603_fill_txs() 1118 final_rate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7603_fill_txs() 1119 ack_timeout = txs & MT_TXS0_ACK_TIMEOUT; in mt7603_fill_txs() 1121 if (!ampdu && (txs & MT_TXS0_RTS_TIMEOUT)) in mt7603_fill_txs() 1124 if (txs & MT_TXS0_QUEUE_TIMEOUT) in mt7603_fill_txs()
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7615/ |
H A D | mac.c | 1330 u32 final_rate, final_rate_flags, final_nss, txs; in mt7615_fill_txs() local 1332 txs = le32_to_cpu(txs_data[1]); in mt7615_fill_txs() 1333 ampdu = txs & MT_TXS1_AMPDU; in mt7615_fill_txs() 1335 txs = le32_to_cpu(txs_data[3]); in mt7615_fill_txs() 1336 count = FIELD_GET(MT_TXS3_TX_COUNT, txs); in mt7615_fill_txs() 1337 last_idx = FIELD_GET(MT_TXS3_LAST_TX_RATE, txs); in mt7615_fill_txs() 1339 txs = le32_to_cpu(txs_data[0]); in mt7615_fill_txs() 1340 fixed_rate = txs & MT_TXS0_FIXED_RATE; in mt7615_fill_txs() 1341 final_rate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt7615_fill_txs() 1342 ack_timeout = txs & MT_TXS0_ACK_TIMEOUT; in mt7615_fill_txs() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
H A D | mcu.h | 31 u8 txs[28]; member
|
/freebsd/sys/dev/vmware/vmxnet3/ |
H A D | if_vmx.c | 688 struct vmxnet3_txq_shared *txs; in vmxnet3_set_interrupt_idx() local 724 txs = txq->vxtxq_ts; in vmxnet3_set_interrupt_idx() 726 txs->intr_idx = txq->vxtxq_intr_idx; in vmxnet3_set_interrupt_idx() 1050 struct vmxnet3_txq_shared *txs; in vmxnet3_init_shared_data() local 1115 txs = txq->vxtxq_ts; in vmxnet3_init_shared_data() 1117 txs->cmd_ring = txq->vxtxq_cmd_ring.vxtxr_paddr; in vmxnet3_init_shared_data() 1118 txs->cmd_ring_len = txq->vxtxq_cmd_ring.vxtxr_ndesc; in vmxnet3_init_shared_data() 1119 txs->comp_ring = txq->vxtxq_comp_ring.vxcr_paddr; in vmxnet3_init_shared_data() 1120 txs->comp_ring_len = txq->vxtxq_comp_ring.vxcr_ndesc; in vmxnet3_init_shared_data() 1121 txs->driver_data = vtophys(txq); in vmxnet3_init_shared_data() [all …]
|
/freebsd/sys/dev/ral/ |
H A D | rt2560.c | 908 struct ieee80211_ratectl_tx_status *txs = &sc->sc_txs; in rt2560_tx_intr() local 919 txs->flags = IEEE80211_RATECTL_STATUS_LONG_RETRY; in rt2560_tx_intr() 935 txs->status = IEEE80211_RATECTL_TX_SUCCESS; in rt2560_tx_intr() 936 txs->long_retries = 0; in rt2560_tx_intr() 940 ieee80211_ratectl_tx_complete(ni, txs); in rt2560_tx_intr() 945 txs->status = IEEE80211_RATECTL_TX_SUCCESS; in rt2560_tx_intr() 946 txs->long_retries = RT2560_TX_RETRYCNT(flags); in rt2560_tx_intr() 949 txs->long_retries); in rt2560_tx_intr() 951 ieee80211_ratectl_tx_complete(ni, txs); in rt2560_tx_intr() 956 txs->status = IEEE80211_RATECTL_TX_FAIL_LONG; in rt2560_tx_intr() [all …]
|
H A D | rt2661.c | 849 struct ieee80211_ratectl_tx_status *txs = &sc->sc_txs; in rt2661_tx_intr() local 855 txs->flags = IEEE80211_RATECTL_TX_FAIL_LONG; in rt2661_tx_intr() 881 txs->status = IEEE80211_RATECTL_TX_SUCCESS; in rt2661_tx_intr() 882 txs->long_retries = RT2661_TX_RETRYCNT(val); in rt2661_tx_intr() 885 "%d retries\n", txs->long_retries); in rt2661_tx_intr() 887 ieee80211_ratectl_tx_complete(ni, txs); in rt2661_tx_intr() 892 txs->status = IEEE80211_RATECTL_TX_FAIL_LONG; in rt2661_tx_intr() 893 txs->long_retries = RT2661_TX_RETRYCNT(val); in rt2661_tx_intr() 898 ieee80211_ratectl_tx_complete(ni, txs); in rt2661_tx_intr()
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76_connac_mac.c | 607 u32 txrate, txs, mode, stbc; in mt76_connac2_mac_fill_txs() local 609 txs = le32_to_cpu(txs_data[0]); in mt76_connac2_mac_fill_txs() 613 FIELD_GET(MT_TXS0_TXS_FORMAT, txs) > 1) { in mt76_connac2_mac_fill_txs() 628 tid = FIELD_GET(MT_TXS0_TID, txs); in mt76_connac2_mac_fill_txs() 634 txrate = FIELD_GET(MT_TXS0_TX_RATE, txs); in mt76_connac2_mac_fill_txs() 700 switch (FIELD_GET(MT_TXS0_BW, txs)) { in mt76_connac2_mac_fill_txs()
|
/freebsd/sys/dev/usb/wlan/ |
H A D | if_ural.c | 2184 struct ieee80211_ratectl_tx_stats *txs = &sc->sc_txs; in ural_ratectl_task() local 2191 txs->flags = IEEE80211_RATECTL_TX_STATS_RETRIES; in ural_ratectl_task() 2192 txs->nsuccess = sc->sta[7] + /* TX ok w/o retry */ in ural_ratectl_task() 2195 txs->nframes = txs->nsuccess + fail; in ural_ratectl_task() 2197 txs->nretries = sc->sta[8] + fail; in ural_ratectl_task() 2199 ieee80211_ratectl_tx_update(vap, txs); in ural_ratectl_task()
|
H A D | if_run.c | 2682 struct ieee80211_ratectl_tx_stats *txs = &sc->sc_txs; in run_iter_func() local 2696 txs->flags = IEEE80211_RATECTL_TX_STATS_NODE | in run_iter_func() 2698 txs->ni = ni; in run_iter_func() 2711 txs->nretries = le16toh(sta[1].tx.retry); in run_iter_func() 2712 txs->nsuccess = le16toh(sta[1].tx.success); in run_iter_func() 2714 txs->nframes = txs->nretries + txs->nsuccess + in run_iter_func() 2719 txs->nretries, txs->nsuccess, le16toh(sta[0].error.fail)); in run_iter_func() 2727 txs->nretries = (*wstat)[RUN_RETRY]; in run_iter_func() 2728 txs->nsuccess = (*wstat)[RUN_SUCCESS]; in run_iter_func() 2729 txs->nframes = (*wstat)[RUN_TXCNT]; in run_iter_func() [all …]
|
/freebsd/sys/compat/linuxkpi/common/src/ |
H A D | linux_80211.c | 4810 uint32_t rxs, txs; in linuxkpi_ieee80211_ifattach() local 4812 if (lkpi_80211_mo_get_antenna(hw, &txs, &rxs) == 0) { in linuxkpi_ieee80211_ifattach() 4814 ic->ic_txstream = bitcount32(txs); in linuxkpi_ieee80211_ifattach() 5901 struct ieee80211_ratectl_tx_status txs; in linuxkpi_ieee80211_tx_status_ext() local 5911 memset(&txs, 0, sizeof(txs)); in linuxkpi_ieee80211_tx_status_ext() 5919 txs.status = IEEE80211_RATECTL_TX_SUCCESS; in linuxkpi_ieee80211_tx_status_ext() 5922 txs.status = IEEE80211_RATECTL_TX_FAIL_UNSPECIFIED; in linuxkpi_ieee80211_tx_status_ext() 5932 txs.pktlen = skb->len; in linuxkpi_ieee80211_tx_status_ext() 5933 txs.flags |= IEEE80211_RATECTL_STATUS_PKTLEN; in linuxkpi_ieee80211_tx_status_ext() 5935 txs.long_retries = info->status.rates[0].count - 1; /* 1 + retries in drivers. */ in linuxkpi_ieee80211_tx_status_ext() [all …]
|
H A D | linux_80211_macops.c | 91 lkpi_80211_mo_get_antenna(struct ieee80211_hw *hw, u32 *txs, u32 *rxs) in lkpi_80211_mo_get_antenna() argument 103 error = lhw->ops->get_antenna(hw, txs, rxs); in lkpi_80211_mo_get_antenna()
|
/freebsd/sys/dev/ae/ |
H A D | if_ae.c | 1795 ae_txs_t *txs; in ae_tx_intr() local 1815 txs = sc->txs_base + sc->txs_ack; in ae_tx_intr() 1816 flags = le16toh(txs->flags); in ae_tx_intr() 1819 txs->flags = htole16(flags & ~AE_TXS_UPDATE); in ae_tx_intr() 1830 if (txs->len != txd->len) in ae_tx_intr() 1832 le16toh(txs->len), le16toh(txd->len)); in ae_tx_intr()
|