| /src/sys/contrib/dev/iwlwifi/pcie/gen1_2/ |
| H A D | tx.c | 135 struct iwl_txq *txq = trans_pcie->txqs.txq[i]; in iwl_pcie_txq_check_wrptrs() 137 if (!test_bit(i, trans_pcie->txqs.queue_used)) in iwl_pcie_txq_check_wrptrs() 175 tfd = (u8 *)txq->tfds + trans_pcie->txqs.tfd.size * txq->write_ptr; in iwl_pcie_txq_build_tfd() 178 memset(tfd, 0, trans_pcie->txqs.tfd.size); in iwl_pcie_txq_build_tfd() 183 if (num_tbs >= trans_pcie->txqs.tfd.max_tbs) { in iwl_pcie_txq_build_tfd() 185 trans_pcie->txqs.tfd.max_tbs); in iwl_pcie_txq_build_tfd() 307 if (num_tbs > trans_pcie->txqs.tfd.max_tbs) { in iwl_txq_gen1_tfd_unmap() 391 struct iwl_txq *txq = trans_pcie->txqs.txq[txq_id]; in iwl_pcie_txq_unmap() 446 struct iwl_txq *txq = trans_pcie->txqs.txq[txq_id]; in iwl_pcie_txq_free() 465 trans_pcie->txqs.tfd.size * in iwl_pcie_txq_free() [all …]
|
| H A D | tx-gen2.c | 625 if (le16_to_cpu(tfd->num_tbs) >= trans_pcie->txqs.tfd.max_tbs) { in iwl_txq_gen2_set_tb() 627 trans_pcie->txqs.tfd.max_tbs); in iwl_txq_gen2_set_tb() 649 if (num_tbs > trans_pcie->txqs.tfd.max_tbs) { in iwl_txq_gen2_tfd_unmap() 724 struct iwl_txq *txq = trans_pcie->txqs.txq[txq_id]; in iwl_txq_gen2_tx() 733 if (WARN_ONCE(!test_bit(txq_id, trans_pcie->txqs.queue_used), in iwl_txq_gen2_tx() 821 struct iwl_txq *txq = trans_pcie->txqs.txq[txq_id]; in iwl_txq_gen2_unmap() 863 trans_pcie->txqs.tfd.size * txq->n_window, in iwl_txq_gen2_free_memory() 872 dma_pool_free(trans_pcie->txqs.bc_pool, in iwl_txq_gen2_free_memory() 895 txq = trans_pcie->txqs.txq[txq_id]; in iwl_txq_gen2_free() 912 trans_pcie->txqs.txq[txq_id] = NULL; in iwl_txq_gen2_free() [all …]
|
| H A D | trans.c | 2042 if (trans_pcie->txqs.tso_hdr_page) { in iwl_trans_pcie_free() 2045 per_cpu_ptr(trans_pcie->txqs.tso_hdr_page, i); in iwl_trans_pcie_free() 2051 free_percpu(trans_pcie->txqs.tso_hdr_page); in iwl_trans_pcie_free() 2580 if (!test_bit(txq_idx, trans_pcie->txqs.queue_used)) in iwl_trans_pcie_wait_txq_empty() 2584 txq = trans_pcie->txqs.txq[txq_idx]; in iwl_trans_pcie_wait_txq_empty() 2643 if (!test_bit(cnt, trans_pcie->txqs.queue_used)) in iwl_trans_pcie_wait_txqs_empty() 2817 struct iwl_txq *txq = trans_pcie->txqs.txq[state->pos]; in iwl_dbgfs_tx_queue_seq_show() 2821 !!test_bit(state->pos, trans_pcie->txqs.queue_used), in iwl_dbgfs_tx_queue_seq_show() 2822 !!test_bit(state->pos, trans_pcie->txqs.queue_stopped)); in iwl_dbgfs_tx_queue_seq_show() 3303 for (i = 0; i < trans_pcie->txqs.tfd.max_tbs; i++) in iwl_trans_pcie_get_cmdlen() [all …]
|
| H A D | trans-gen2.c | 372 memset(trans_pcie->txqs.queue_stopped, 0, in iwl_trans_pcie_gen2_fw_alive() 373 sizeof(trans_pcie->txqs.queue_stopped)); in iwl_trans_pcie_gen2_fw_alive() 374 memset(trans_pcie->txqs.queue_used, 0, in iwl_trans_pcie_gen2_fw_alive() 375 sizeof(trans_pcie->txqs.queue_used)); in iwl_trans_pcie_gen2_fw_alive()
|
| H A D | internal.h | 506 struct iwl_pcie_txqs txqs; member 597 #define IWL_TRANS_PCIE_MAX_FRAGS(trans_pcie) ((trans_pcie)->txqs.tfd.max_tbs - 3) 680 return (u8 *)txq->tfds + trans_pcie->txqs.tfd.size * idx; in iwl_txq_get_tfd() 699 if (!test_and_set_bit(txq->id, trans_pcie->txqs.queue_stopped)) { in iwl_txq_stop() 739 if (test_and_clear_bit(txq->id, trans_pcie->txqs.queue_stopped)) { in iwl_trans_pcie_wake_queue() 818 unsigned long txqs, bool freeze);
|
| H A D | rx.c | 1304 struct iwl_txq *txq = trans_pcie->txqs.txq[trans->conf.cmd_queue]; in iwl_pcie_rx_handle_rb() 1698 if (!trans_pcie->txqs.txq[i]) in iwl_pcie_irq_handle_error() 1700 timer_delete(&trans_pcie->txqs.txq[i]->stuck_timer); in iwl_pcie_irq_handle_error()
|
| /src/sys/dev/cxgb/ |
| H A D | cxgb_sge.c | 1128 txq_prod(struct sge_txq *txq, unsigned int ndesc, struct txq_state *txqs) in txq_prod() argument 1135 txqs->gen = txq->gen; in txq_prod() 1137 txqs->compl = (txq->unacked & 32) << (S_WR_COMPL - 5); in txq_prod() 1139 txqs->pidx = txq->pidx; in txq_prod() 1142 if (((txqs->pidx > txq->cidx) && in txq_prod() 1143 (txq->pidx < txqs->pidx) && in txq_prod() 1145 ((txqs->pidx < txq->cidx) && in txq_prod() 1147 ((txqs->pidx < txq->cidx) && in txq_prod() 1148 (txq->cidx < txqs->pidx))) in txq_prod() 1150 txqs->pidx, txq->pidx, txq->cidx); in txq_prod() [all …]
|
| /src/sys/dev/sfxge/ |
| H A D | sfxge_ev.c | 64 evq->txqs = &(evq->txq); in sfxge_ev_qcomplete() 308 evq->txqs != &(txq->next)) { in sfxge_ev_tx() 309 *(evq->txqs) = txq; in sfxge_ev_tx() 310 evq->txqs = &(txq->next); in sfxge_ev_tx() 692 KASSERT(evq->txqs == &evq->txq, ("evq->txqs != &evq->txq")); in sfxge_ev_qpoll() 877 KASSERT(evq->txqs == &evq->txq, ("evq->txqs != &evq->txq")); in sfxge_ev_qfini() 920 evq->txqs = &evq->txq; in sfxge_ev_qinit()
|
| H A D | sfxge.h | 173 struct sfxge_txq **txqs; member
|
| /src/sys/dev/ath/ |
| H A D | if_ath.c | 2085 uint32_t txqs; in ath_intr() local 2297 txqs = 0xffffffff; in ath_intr() 2298 ath_hal_gettxintrtxqs(sc->sc_ah, &txqs); in ath_intr() 2301 txqs, in ath_intr() 2303 sc->sc_txq_active | txqs); in ath_intr() 2304 sc->sc_txq_active |= txqs; in ath_intr() 4598 uint32_t txqs; in ath_tx_proc_q0() local 4602 txqs = sc->sc_txq_active; in ath_tx_proc_q0() 4603 sc->sc_txq_active &= ~txqs; in ath_tx_proc_q0() 4611 "ath_tx_proc_q0: txqs=0x%08x", txqs); in ath_tx_proc_q0() [all …]
|
| /src/sys/contrib/dev/iwlwifi/ |
| H A D | iwl-trans.c | 712 int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, u32 txqs) in iwl_trans_wait_tx_queues_empty() argument 718 return iwl_trans_pcie_wait_txqs_empty(trans, txqs); in iwl_trans_wait_tx_queues_empty() 723 unsigned long txqs, bool freeze) in iwl_trans_freeze_txq_timer() argument 729 iwl_pcie_freeze_txq_timer(trans, txqs, freeze); in iwl_trans_freeze_txq_timer()
|
| H A D | iwl-trans.h | 1016 unsigned long txqs, bool freeze); 1018 int iwl_trans_wait_tx_queues_empty(struct iwl_trans *trans, u32 txqs);
|
| /src/sys/contrib/dev/ath/ath_hal/ar9300/ |
| H A D | ar9300_xmit.c | 958 ar9300_get_tx_intr_queue(struct ath_hal *ah, u_int32_t *txqs) in ar9300_get_tx_intr_queue() argument 964 *txqs &= ahp->ah_intr_txqs; in ar9300_get_tx_intr_queue() 965 ahp->ah_intr_txqs &= ~(*txqs); in ar9300_get_tx_intr_queue()
|
| /src/sys/dev/ath/ath_hal/ar5212/ |
| H A D | ar5212_xmit.c | 951 ar5212GetTxIntrQueue(struct ath_hal *ah, uint32_t *txqs) in ar5212GetTxIntrQueue() argument 954 *txqs &= ahp->ah_intrTxqs; in ar5212GetTxIntrQueue() 955 ahp->ah_intrTxqs &= ~(*txqs); in ar5212GetTxIntrQueue()
|
| /src/sys/contrib/dev/iwlwifi/pcie/ |
| H A D | ctxt-info.c | 222 cpu_to_le64(trans_pcie->txqs.txq[trans->conf.cmd_queue]->dma_addr); in iwl_pcie_ctxt_info_init()
|
| H A D | ctxt-info-v2.c | 253 cpu_to_le64(trans_pcie->txqs.txq[trans->conf.cmd_queue]->dma_addr); in iwl_pcie_ctxt_info_v2_alloc()
|
| /src/sys/dev/ice/ |
| H A D | ice_common.c | 4616 sum_size += ice_struct_size(list, txqs, list->num_txqs); in ice_aq_add_lan_txq() 4617 list = (struct ice_aqc_add_tx_qgrp *)(list->txqs + in ice_aq_add_lan_txq() 5438 buf->txqs[0].info.valid_sections = in ice_ena_vsi_txq() 5441 buf->txqs[0].info.generic = 0; in ice_ena_vsi_txq() 5442 buf->txqs[0].info.cir_bw.bw_profile_idx = in ice_ena_vsi_txq() 5444 buf->txqs[0].info.cir_bw.bw_alloc = in ice_ena_vsi_txq() 5446 buf->txqs[0].info.eir_bw.bw_profile_idx = in ice_ena_vsi_txq() 5448 buf->txqs[0].info.eir_bw.bw_alloc = in ice_ena_vsi_txq() 5455 LE16_TO_CPU(buf->txqs[0].txq_id), in ice_ena_vsi_txq() 5460 node.node_teid = buf->txqs[0].q_teid; in ice_ena_vsi_txq()
|
| H A D | ice_adminq_cmd.h | 2726 struct ice_aqc_add_txqs_perq txqs[STRUCT_HACK_VAR_LEN]; member 2813 struct ice_aqc_move_txqs_elem txqs[STRUCT_HACK_VAR_LEN]; member
|
| H A D | ice_lib.c | 1666 qg_size = ice_struct_size(qg, txqs, 1); in ice_cfg_vsi_for_tx() 1682 qg->txqs[0].txq_id = htole16(pf_q); in ice_cfg_vsi_for_tx() 1688 ice_set_ctx(hw, (u8 *)&tlan_ctx, qg->txqs[0].txq_ctx, in ice_cfg_vsi_for_tx() 1704 if (pf_q == le16toh(qg->txqs[0].txq_id)) in ice_cfg_vsi_for_tx() 1705 txq->q_teid = le32toh(qg->txqs[0].q_teid); in ice_cfg_vsi_for_tx()
|
| /src/sys/dev/ath/ath_hal/ar5210/ |
| H A D | ar5210_xmit.c | 625 ar5210GetTxIntrQueue(struct ath_hal *ah, uint32_t *txqs) in ar5210GetTxIntrQueue() argument
|
| /src/sys/dev/ath/ath_hal/ar5211/ |
| H A D | ar5211_xmit.c | 663 ar5211GetTxIntrQueue(struct ath_hal *ah, uint32_t *txqs) in ar5211GetTxIntrQueue() argument
|
| /src/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | mac80211.c | 3324 unsigned long txqs = 0, tids = 0; in __iwl_mvm_mac_sta_notify() local 3342 __set_bit(tid_data->txq_id, &txqs); in __iwl_mvm_mac_sta_notify() 3355 if (txqs) in __iwl_mvm_mac_sta_notify() 3356 iwl_trans_freeze_txq_timer(mvm->trans, txqs, true); in __iwl_mvm_mac_sta_notify() 3367 if (txqs) in __iwl_mvm_mac_sta_notify() 3368 iwl_trans_freeze_txq_timer(mvm->trans, txqs, false); in __iwl_mvm_mac_sta_notify()
|
| /src/sys/contrib/dev/rtw88/ |
| H A D | tx.c | 699 list_for_each_entry_safe(rtwtxq, tmp, &rtwdev->txqs, list) { in __rtw_tx_work()
|
| H A D | mac80211.c | 43 list_add_tail(&rtwtxq->list, &rtwdev->txqs); in rtw_ops_wake_tx_queue()
|
| H A D | main.h | 2100 struct list_head txqs; member
|