Lines Matching refs: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->gen2) in iwl_txq_get_tfd()
44 return (u8 *)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, u32 flags,
119 int iwl_txq_gen2_tx(struct iwl_trans *trans, struct sk_buff *skb,
122 void iwl_txq_dyn_free(struct iwl_trans *trans, int queue);
123 void iwl_txq_gen2_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq);
124 void iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq);
125 void iwl_txq_gen2_tx_free(struct iwl_trans *trans);
126 int iwl_txq_init(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
128 int iwl_txq_gen2_init(struct iwl_trans *trans, int txq_id, int queue_size);
130 struct iwl_tso_hdr_page *get_page_hdr(struct iwl_trans *trans, size_t len,
133 static inline u8 iwl_txq_gen1_tfd_get_num_tbs(struct iwl_trans *trans, in iwl_txq_gen1_tfd_get_num_tbs() argument
139 static inline u16 iwl_txq_gen1_tfd_tb_get_len(struct iwl_trans *trans, in iwl_txq_gen1_tfd_tb_get_len() argument
145 if (trans->trans_cfg->gen2) { in iwl_txq_gen1_tfd_tb_get_len()
158 static inline void iwl_pcie_gen1_tfd_set_tb(struct iwl_trans *trans, in iwl_pcie_gen1_tfd_set_tb() argument
173 void iwl_txq_gen1_tfd_unmap(struct iwl_trans *trans,
176 void iwl_txq_gen1_inval_byte_cnt_tbl(struct iwl_trans *trans,
178 void iwl_txq_gen1_update_byte_cnt_tbl(struct iwl_trans *trans,
181 void iwl_txq_reclaim(struct iwl_trans *trans, int txq_id, int ssn,
183 void iwl_txq_set_q_ptrs(struct iwl_trans *trans, int txq_id, int ptr);
184 void iwl_trans_txq_freeze_timer(struct iwl_trans *trans, unsigned long txqs,
187 void iwl_txq_free_tfd(struct iwl_trans *trans, struct iwl_txq *txq);
188 int iwl_trans_txq_send_hcmd(struct iwl_trans *trans, struct iwl_host_cmd *cmd);