Lines Matching defs:txq_id

724 		    struct iwl_device_tx_cmd *dev_cmd, int txq_id)
727 struct iwl_txq *txq = trans->txqs.txq[txq_id];
732 if (WARN_ONCE(txq_id >= IWL_MAX_TVQM_QUEUES,
733 "queue %d out of range", txq_id))
736 if (WARN_ONCE(!test_bit(txq_id, trans->txqs.queue_used),
737 "TX on unused queue %d\n", txq_id))
771 cpu_to_le16((u16)(QUEUE_TO_SEQ(txq_id) |
820 void iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id)
822 struct iwl_txq *txq = trans->txqs.txq[txq_id];
827 txq_id, txq->read_ptr);
829 if (txq_id != trans->txqs.cmd.q_id) {
882 static void iwl_txq_gen2_free(struct iwl_trans *trans, int txq_id)
887 if (WARN_ONCE(txq_id >= IWL_MAX_TVQM_QUEUES,
888 "queue %d out of range", txq_id))
891 txq = trans->txqs.txq[txq_id];
896 iwl_txq_gen2_unmap(trans, txq_id);
899 if (txq_id == trans->txqs.cmd.q_id)
908 trans->txqs.txq[txq_id] = NULL;
910 clear_bit(txq_id, trans->txqs.queue_used);
993 u32 txq_id = txq->id;
999 IWL_ERR(trans, "Queue %d is stuck %d %d\n", txq_id,
1005 status = iwl_read_prph(trans, SCD_QUEUE_STATUS_BITS(txq_id));
1011 txq_id, active ? "" : "in", fifo,
1014 iwl_read_prph(trans, SCD_QUEUE_RDPTR(txq_id)) &
1016 iwl_read_prph(trans, SCD_QUEUE_WRPTR(txq_id)) &
1332 int iwl_txq_gen2_init(struct iwl_trans *trans, int txq_id, int queue_size)
1338 if (!trans->txqs.txq[txq_id]) {
1344 trans->txqs.txq[txq_id] = queue;
1347 IWL_ERR(trans, "Tx %d queue init failed\n", txq_id);
1351 queue = trans->txqs.txq[txq_id];
1355 (txq_id == trans->txqs.cmd.q_id));
1357 IWL_ERR(trans, "Tx %d queue alloc failed\n", txq_id);
1360 trans->txqs.txq[txq_id]->id = txq_id;
1361 set_bit(txq_id, trans->txqs.queue_used);
1444 int txq_id = txq->id;
1475 scd_bc_tbl[txq_id].tfd_offset[write_ptr] = bc_ent;
1478 scd_bc_tbl[txq_id].tfd_offset[TFD_QUEUE_SIZE_MAX + write_ptr] =
1486 int txq_id = txq->id;
1495 if (txq_id != trans->txqs.cmd.q_id)
1500 scd_bc_tbl[txq_id].tfd_offset[read_ptr] = bc_ent;
1503 scd_bc_tbl[txq_id].tfd_offset[TFD_QUEUE_SIZE_MAX + read_ptr] =
1578 void iwl_txq_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
1581 struct iwl_txq *txq = trans->txqs.txq[txq_id];
1585 if (WARN_ON(txq_id == trans->txqs.cmd.q_id))
1596 if (!test_bit(txq_id, trans->txqs.queue_used)) {
1598 txq_id, ssn);
1606 txq_id, read_ptr, txq->read_ptr, tfd_num, ssn);
1615 __func__, txq_id, last_to_free,
1635 read_ptr, txq->read_ptr, txq_id))
1653 test_bit(txq_id, trans->txqs.queue_stopped)) {
1690 iwl_trans_tx(trans, skb, dev_cmd_ptr, txq_id);
1705 void iwl_txq_set_q_ptrs(struct iwl_trans *trans, int txq_id, int ptr)
1707 struct iwl_txq *txq = trans->txqs.txq[txq_id];