Lines Matching refs:q
227 struct iwl_queue q; member
449 if (test_and_clear_bit(txq->q.id, trans_pcie->queue_stopped)) { in iwl_wake_queue()
450 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->q.id); in iwl_wake_queue()
451 iwl_op_mode_queue_not_full(trans->op_mode, txq->q.id); in iwl_wake_queue()
460 if (!test_and_set_bit(txq->q.id, trans_pcie->queue_stopped)) { in iwl_stop_queue()
461 iwl_op_mode_queue_full(trans->op_mode, txq->q.id); in iwl_stop_queue()
462 IWL_DEBUG_TX_QUEUES(trans, "Stop hwq %d\n", txq->q.id); in iwl_stop_queue()
465 txq->q.id); in iwl_stop_queue()
468 static inline bool iwl_queue_used(const struct iwl_queue *q, int i) in iwl_queue_used() argument
470 return q->write_ptr >= q->read_ptr ? in iwl_queue_used()
471 (i >= q->read_ptr && i < q->write_ptr) : in iwl_queue_used()
472 !(i < q->read_ptr && i >= q->write_ptr); in iwl_queue_used()
475 static inline u8 get_cmd_index(struct iwl_queue *q, u32 index) in get_cmd_index() argument
477 return index & (q->n_window - 1); in get_cmd_index()