Lines Matching refs:txq

31 	struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id];  in iwl_pcie_gen2_enqueue_hcmd()  local
112 spin_lock_irqsave(&txq->lock, flags); in iwl_pcie_gen2_enqueue_hcmd()
114 idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
115 tfd = iwl_txq_get_tfd(trans, txq, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
118 if (iwl_txq_space(trans, txq) < ((cmd->flags & CMD_ASYNC) ? 2 : 1)) { in iwl_pcie_gen2_enqueue_hcmd()
119 spin_unlock_irqrestore(&txq->lock, flags); in iwl_pcie_gen2_enqueue_hcmd()
127 out_cmd = txq->entries[idx].cmd; in iwl_pcie_gen2_enqueue_hcmd()
128 out_meta = &txq->entries[idx].meta; in iwl_pcie_gen2_enqueue_hcmd()
144 INDEX_TO_SEQ(txq->write_ptr)); in iwl_pcie_gen2_enqueue_hcmd()
191 cmd_size, txq->write_ptr, idx, trans->txqs.cmd.q_id); in iwl_pcie_gen2_enqueue_hcmd()
195 memcpy(&txq->first_tb_bufs[idx], out_cmd, tb0_size); in iwl_pcie_gen2_enqueue_hcmd()
196 iwl_txq_gen2_set_tb(trans, tfd, iwl_txq_get_first_tb_dma(txq, idx), in iwl_pcie_gen2_enqueue_hcmd()
237 if (WARN_ON_ONCE(txq->entries[idx].free_buf)) in iwl_pcie_gen2_enqueue_hcmd()
238 kfree_sensitive(txq->entries[idx].free_buf); in iwl_pcie_gen2_enqueue_hcmd()
239 txq->entries[idx].free_buf = dup_buf; in iwl_pcie_gen2_enqueue_hcmd()
244 if (txq->read_ptr == txq->write_ptr && txq->wd_timeout) in iwl_pcie_gen2_enqueue_hcmd()
245 mod_timer(&txq->stuck_timer, jiffies + txq->wd_timeout); in iwl_pcie_gen2_enqueue_hcmd()
249 txq->write_ptr = iwl_txq_inc_wrap(trans, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
250 iwl_txq_inc_wr_ptr(trans, txq); in iwl_pcie_gen2_enqueue_hcmd()
254 spin_unlock_irqrestore(&txq->lock, flags); in iwl_pcie_gen2_enqueue_hcmd()