Lines Matching refs:txq
1948 struct iwl_txq *txq = &trans_pcie->txq[queue]; in iwl_trans_pcie_freeze_txq_timer() local
1951 spin_lock_bh(&txq->lock); in iwl_trans_pcie_freeze_txq_timer()
1955 if (txq->frozen == freeze) in iwl_trans_pcie_freeze_txq_timer()
1961 txq->frozen = freeze; in iwl_trans_pcie_freeze_txq_timer()
1963 if (txq->read_ptr == txq->write_ptr) in iwl_trans_pcie_freeze_txq_timer()
1968 txq->stuck_timer.expires))) { in iwl_trans_pcie_freeze_txq_timer()
1976 txq->frozen_expiry_remainder = in iwl_trans_pcie_freeze_txq_timer()
1977 txq->stuck_timer.expires - now; in iwl_trans_pcie_freeze_txq_timer()
1978 del_timer(&txq->stuck_timer); in iwl_trans_pcie_freeze_txq_timer()
1986 mod_timer(&txq->stuck_timer, in iwl_trans_pcie_freeze_txq_timer()
1987 now + txq->frozen_expiry_remainder); in iwl_trans_pcie_freeze_txq_timer()
1990 spin_unlock_bh(&txq->lock); in iwl_trans_pcie_freeze_txq_timer()
2000 struct iwl_txq *txq = &trans_pcie->txq[i]; in iwl_trans_pcie_block_txq_ptrs() local
2005 spin_lock_bh(&txq->lock); in iwl_trans_pcie_block_txq_ptrs()
2007 if (!block && !(WARN_ON_ONCE(!txq->block))) { in iwl_trans_pcie_block_txq_ptrs()
2008 txq->block--; in iwl_trans_pcie_block_txq_ptrs()
2009 if (!txq->block) { in iwl_trans_pcie_block_txq_ptrs()
2011 txq->write_ptr | (i << 8)); in iwl_trans_pcie_block_txq_ptrs()
2014 txq->block++; in iwl_trans_pcie_block_txq_ptrs()
2017 spin_unlock_bh(&txq->lock); in iwl_trans_pcie_block_txq_ptrs()
2023 void iwl_trans_pcie_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_trans_pcie_log_scd_error() argument
2031 txq->read_ptr, txq->write_ptr); in iwl_trans_pcie_log_scd_error()
2038 SCD_TX_STTS_QUEUE_OFFSET(txq->id); in iwl_trans_pcie_log_scd_error()
2072 struct iwl_txq *txq; in iwl_trans_pcie_wait_txq_empty() local
2089 txq = &trans_pcie->txq[cnt]; in iwl_trans_pcie_wait_txq_empty()
2090 wr_ptr = ACCESS_ONCE(txq->write_ptr); in iwl_trans_pcie_wait_txq_empty()
2092 while (txq->read_ptr != ACCESS_ONCE(txq->write_ptr) && in iwl_trans_pcie_wait_txq_empty()
2095 u8 write_ptr = ACCESS_ONCE(txq->write_ptr); in iwl_trans_pcie_wait_txq_empty()
2104 if (txq->read_ptr != txq->write_ptr) { in iwl_trans_pcie_wait_txq_empty()
2114 iwl_trans_pcie_log_scd_error(trans, txq); in iwl_trans_pcie_wait_txq_empty()
2271 struct iwl_txq *txq; in iwl_dbgfs_tx_queue_read() local
2280 if (!trans_pcie->txq) in iwl_dbgfs_tx_queue_read()
2288 txq = &trans_pcie->txq[cnt]; in iwl_dbgfs_tx_queue_read()
2291 cnt, txq->read_ptr, txq->write_ptr, in iwl_dbgfs_tx_queue_read()
2294 txq->need_update, txq->frozen, in iwl_dbgfs_tx_queue_read()
2705 struct iwl_txq *cmdq = &trans_pcie->txq[trans_pcie->cmd_queue]; in iwl_trans_pcie_dump_data()