Lines Matching refs:txqs
49 WARN_ON(trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
57 WARN_ON(!trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
95 if (num_tbs > trans->txqs.tfd.max_tbs) { in iwl_txq_gen2_tfd_unmap()
167 if (le16_to_cpu(tfd->num_tbs) >= trans->txqs.tfd.max_tbs) { in iwl_txq_gen2_set_tb()
169 trans->txqs.tfd.max_tbs); in iwl_txq_gen2_set_tb()
187 page_ptr = (void *)((u8 *)skb->cb + trans->txqs.page_offs); in get_workaround_page()
285 struct iwl_tso_hdr_page *p = this_cpu_ptr(trans->txqs.tso_hdr_page); in get_page_hdr()
288 page_ptr = (void *)((u8 *)skb->cb + trans->txqs.page_offs); in get_page_hdr()
710 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_tx()
719 if (WARN_ONCE(!test_bit(txq_id, trans->txqs.queue_used), in iwl_txq_gen2_tx()
738 trans->txqs.dev_cmd_offs); in iwl_txq_gen2_tx()
805 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_unmap()
812 if (txq_id != trans->txqs.cmd.q_id) { in iwl_txq_gen2_unmap()
843 trans->txqs.tfd.size * txq->n_window, in iwl_txq_gen2_free_memory()
852 dma_pool_free(trans->txqs.bc_pool, in iwl_txq_gen2_free_memory()
874 txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_free()
882 if (txq_id == trans->txqs.cmd.q_id) in iwl_txq_gen2_free()
891 trans->txqs.txq[txq_id] = NULL; in iwl_txq_gen2_free()
893 clear_bit(txq_id, trans->txqs.queue_used); in iwl_txq_gen2_free()
961 page_ptr = (void *)((u8 *)skb->cb + trans->txqs.page_offs); in iwl_txq_free_tso_page()
1025 size_t tfd_sz = trans->txqs.tfd.size * in iwl_txq_alloc()
1034 tfd_sz = trans->txqs.tfd.size * slots_num; in iwl_txq_alloc()
1095 WARN_ON(!trans->txqs.bc_tbl_size); in iwl_txq_dyn_alloc_dma()
1097 bc_tbl_size = trans->txqs.bc_tbl_size; in iwl_txq_dyn_alloc_dma()
1107 txq->bc_tbl.addr = dma_pool_alloc(trans->txqs.bc_pool, GFP_KERNEL, in iwl_txq_dyn_alloc_dma()
1152 if (qid >= ARRAY_SIZE(trans->txqs.txq)) { in iwl_txq_alloc_response()
1158 if (test_and_set_bit(qid, trans->txqs.queue_used)) { in iwl_txq_alloc_response()
1164 if (WARN_ONCE(trans->txqs.txq[qid], in iwl_txq_alloc_response()
1171 trans->txqs.txq[qid] = txq; in iwl_txq_alloc_response()
1210 if (trans->txqs.queue_alloc_cmd_ver == 0) { in iwl_txq_dyn_alloc()
1227 } else if (trans->txqs.queue_alloc_cmd_ver == 3) { in iwl_txq_dyn_alloc()
1268 if (!test_and_clear_bit(queue, trans->txqs.queue_used)) { in iwl_txq_dyn_free()
1283 memset(trans->txqs.queue_used, 0, sizeof(trans->txqs.queue_used)); in iwl_txq_gen2_tx_free()
1286 for (i = 0; i < ARRAY_SIZE(trans->txqs.txq); i++) { in iwl_txq_gen2_tx_free()
1287 if (!trans->txqs.txq[i]) in iwl_txq_gen2_tx_free()
1300 if (!trans->txqs.txq[txq_id]) { in iwl_txq_gen2_init()
1306 trans->txqs.txq[txq_id] = queue; in iwl_txq_gen2_init()
1313 queue = trans->txqs.txq[txq_id]; in iwl_txq_gen2_init()
1317 (txq_id == trans->txqs.cmd.q_id)); in iwl_txq_gen2_init()
1322 trans->txqs.txq[txq_id]->id = txq_id; in iwl_txq_gen2_init()
1323 set_bit(txq_id, trans->txqs.queue_used); in iwl_txq_gen2_init()
1374 if (num_tbs > trans->txqs.tfd.max_tbs) { in iwl_txq_gen1_tfd_unmap()
1432 scd_bc_tbl = trans->txqs.scd_bc_tbls.addr; in iwl_txq_gen1_update_byte_cnt_tbl()
1447 if (trans->txqs.bc_table_dword) in iwl_txq_gen1_update_byte_cnt_tbl()
1465 struct iwlagn_scd_bc_tbl *scd_bc_tbl = trans->txqs.scd_bc_tbls.addr; in iwl_txq_gen1_inval_byte_cnt_tbl()
1475 if (txq_id != trans->txqs.cmd.q_id) in iwl_txq_gen1_inval_byte_cnt_tbl()
1556 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_reclaim()
1562 if (WARN_ON(txq_id == trans->txqs.cmd.q_id)) in iwl_txq_reclaim()
1567 if (!test_bit(txq_id, trans->txqs.queue_used)) { in iwl_txq_reclaim()
1623 test_bit(txq_id, trans->txqs.queue_stopped)) { in iwl_txq_reclaim()
1652 trans->txqs.dev_cmd_offs); in iwl_txq_reclaim()
1676 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_set_q_ptrs()
1686 void iwl_trans_txq_freeze_timer(struct iwl_trans *trans, unsigned long txqs, in iwl_trans_txq_freeze_timer() argument
1691 for_each_set_bit(queue, &txqs, BITS_PER_LONG) { in iwl_trans_txq_freeze_timer()
1692 struct iwl_txq *txq = trans->txqs.txq[queue]; in iwl_trans_txq_freeze_timer()
1744 struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id]; in iwl_trans_txq_send_hcmd_sync()