Lines Matching full:trans
27 void iwl_txq_gen2_unmap(struct iwl_trans *trans, int txq_id);
29 static inline void iwl_wake_queue(struct iwl_trans *trans, in iwl_wake_queue() argument
32 if (test_and_clear_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_wake_queue()
33 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->id); in iwl_wake_queue()
34 iwl_op_mode_queue_not_full(trans->op_mode, txq->id); in iwl_wake_queue()
38 static inline void *iwl_txq_get_tfd(struct iwl_trans *trans, in iwl_txq_get_tfd() argument
41 if (trans->trans_cfg->use_tfh) in iwl_txq_get_tfd()
44 return txq->tfds + trans->txqs.tfd.size * idx; in iwl_txq_get_tfd()
47 int iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
59 int iwl_txq_space(struct iwl_trans *trans, const struct iwl_txq *q);
61 static inline void iwl_txq_stop(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_stop() argument
63 if (!test_and_set_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_txq_stop()
64 iwl_op_mode_queue_full(trans->op_mode, txq->id); in iwl_txq_stop()
65 IWL_DEBUG_TX_QUEUES(trans, "Stop hwq %d\n", txq->id); in iwl_txq_stop()
67 IWL_DEBUG_TX_QUEUES(trans, "hwq %d already stopped\n", in iwl_txq_stop()
76 static inline int iwl_txq_inc_wrap(struct iwl_trans *trans, int index) in iwl_txq_inc_wrap() argument
79 (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_txq_inc_wrap()
86 static inline int iwl_txq_dec_wrap(struct iwl_trans *trans, int index) in iwl_txq_dec_wrap() argument
89 (trans->trans_cfg->base_params->max_tfd_queue_size - 1); in iwl_txq_dec_wrap()
103 void iwl_txq_free_tso_page(struct iwl_trans *trans, struct sk_buff *skb);
105 void iwl_txq_log_scd_error(struct iwl_trans *trans, struct iwl_txq *txq);
107 int iwl_txq_gen2_set_tb(struct iwl_trans *trans,
111 void iwl_txq_gen2_tfd_unmap(struct iwl_trans *trans,
115 int iwl_txq_dyn_alloc(struct iwl_trans *trans,
120 int iwl_txq_gen2_tx(struct iwl_trans *trans, struct sk_buff *skb,
123 void iwl_txq_dyn_free(struct iwl_trans *trans, int queue);
124 void iwl_txq_gen2_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq);
125 void iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq);
126 void iwl_txq_gen2_tx_free(struct iwl_trans *trans);
127 int iwl_txq_init(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
129 int iwl_txq_gen2_init(struct iwl_trans *trans, int txq_id, int queue_size);
131 struct iwl_tso_hdr_page *get_page_hdr(struct iwl_trans *trans, size_t len,
134 static inline u8 iwl_txq_gen1_tfd_get_num_tbs(struct iwl_trans *trans, in iwl_txq_gen1_tfd_get_num_tbs() argument
139 if (trans->trans_cfg->use_tfh) { in iwl_txq_gen1_tfd_get_num_tbs()
149 static inline u16 iwl_txq_gen1_tfd_tb_get_len(struct iwl_trans *trans, in iwl_txq_gen1_tfd_tb_get_len() argument
155 if (trans->trans_cfg->use_tfh) { in iwl_txq_gen1_tfd_tb_get_len()
168 void iwl_txq_gen1_tfd_unmap(struct iwl_trans *trans,
171 void iwl_txq_gen1_inval_byte_cnt_tbl(struct iwl_trans *trans,
173 void iwl_txq_gen1_update_byte_cnt_tbl(struct iwl_trans *trans,
176 void iwl_txq_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
178 void iwl_txq_set_q_ptrs(struct iwl_trans *trans, int txq_id, int ptr);
179 void iwl_trans_txq_freeze_timer(struct iwl_trans *trans, unsigned long txqs,
182 void iwl_txq_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq);
183 int iwl_trans_txq_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);