Lines Matching full:trans

80 void iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id);
82 static inline void iwl_wake_queue(struct iwl_trans *trans, in iwl_wake_queue() argument
85 if (test_and_clear_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_wake_queue()
86 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->id); in iwl_wake_queue()
87 iwl_op_mode_queue_not_full(trans->op_mode, txq->id); in iwl_wake_queue()
91 static inline void *iwl_txq_get_tfd(struct iwl_trans *trans, in iwl_txq_get_tfd() argument
94 if (trans->trans_cfg->use_tfh) in iwl_txq_get_tfd()
97 return txq->tfds + trans->txqs.tfd.size * idx; in iwl_txq_get_tfd()
100 int iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
112 int iwl_txq_space(struct iwl_trans *trans, const struct iwl_txq *q);
114 static inline void iwl_txq_stop(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_stop() argument
116 if (!test_and_set_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_txq_stop()
117 iwl_op_mode_queue_full(trans->op_mode, txq->id); in iwl_txq_stop()
118 IWL_DEBUG_TX_QUEUES(trans, "Stop hwq %d\n", txq->id); in iwl_txq_stop()
120 IWL_DEBUG_TX_QUEUES(trans, "hwq %d already stopped\n", in iwl_txq_stop()
129 static inline int iwl_txq_inc_wrap(struct iwl_trans *trans, int index) in iwl_txq_inc_wrap() argument
132 (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_txq_inc_wrap()
139 static inline int iwl_txq_dec_wrap(struct iwl_trans *trans, int index) in iwl_txq_dec_wrap() argument
142 (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_txq_dec_wrap()
156 void iwl_txq_free_tso_page(struct iwl_trans *trans, struct sk_buff *skb);
158 void iwl_txq_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq);
160 int iwl_txq_gen2_set_tb(struct iwl_trans *trans,
164 void iwl_txq_gen2_tfd_unmap(struct iwl_trans *trans,
168 int iwl_txq_dyn_alloc(struct iwl_trans *trans,
173 int iwl_txq_gen2_tx(struct iwl_trans *trans, struct sk_buff *skb,
176 void iwl_txq_dyn_free(struct iwl_trans *trans, int queue);
177 void iwl_txq_gen2_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq);
178 void iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq);
179 void iwl_txq_gen2_tx_stop(struct iwl_trans *trans);
180 void iwl_txq_gen2_tx_free(struct iwl_trans *trans);
181 int iwl_txq_init(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
183 int iwl_txq_gen2_init(struct iwl_trans *trans, int txq_id, int queue_size);
185 struct iwl_tso_hdr_page *get_page_hdr(struct iwl_trans *trans, size_t len,
188 static inline u8 iwl_txq_gen1_tfd_get_num_tbs(struct iwl_trans *trans, in iwl_txq_gen1_tfd_get_num_tbs() argument
193 if (trans->trans_cfg->use_tfh) { in iwl_txq_gen1_tfd_get_num_tbs()
203 static inline u16 iwl_txq_gen1_tfd_tb_get_len(struct iwl_trans *trans, in iwl_txq_gen1_tfd_tb_get_len() argument
209 if (trans->trans_cfg->use_tfh) { in iwl_txq_gen1_tfd_tb_get_len()
222 void iwl_txq_gen1_tfd_unmap(struct iwl_trans *trans,
225 void iwl_txq_gen1_inval_byte_cnt_tbl(struct iwl_trans *trans,
227 void iwl_txq_gen1_update_byte_cnt_tbl(struct iwl_trans *trans,