Lines Matching refs:txqs
54 WARN_ON(trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
62 WARN_ON(!trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
100 if (num_tbs > trans->txqs.tfd.max_tbs) { in iwl_txq_gen2_tfd_unmap()
172 if (le16_to_cpu(tfd->num_tbs) >= trans->txqs.tfd.max_tbs) { in iwl_txq_gen2_set_tb()
174 trans->txqs.tfd.max_tbs); in iwl_txq_gen2_set_tb()
192 page_ptr = (void *)((u8 *)skb->cb + trans->txqs.page_offs); in get_workaround_page()
290 struct iwl_tso_hdr_page *p = this_cpu_ptr(trans->txqs.tso_hdr_page); in get_page_hdr()
293 page_ptr = (void *)((u8 *)skb->cb + trans->txqs.page_offs); in get_page_hdr()
715 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_tx()
724 if (WARN_ONCE(!test_bit(txq_id, trans->txqs.queue_used), in iwl_txq_gen2_tx()
743 trans->txqs.dev_cmd_offs); in iwl_txq_gen2_tx()
810 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_unmap()
817 if (txq_id != trans->txqs.cmd.q_id) { in iwl_txq_gen2_unmap()
848 trans->txqs.tfd.size * txq->n_window, in iwl_txq_gen2_free_memory()
857 dma_pool_free(trans->txqs.bc_pool, in iwl_txq_gen2_free_memory()
879 txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_free()
887 if (txq_id == trans->txqs.cmd.q_id) in iwl_txq_gen2_free()
896 trans->txqs.txq[txq_id] = NULL; in iwl_txq_gen2_free()
898 clear_bit(txq_id, trans->txqs.queue_used); in iwl_txq_gen2_free()
968 page_ptr = (void *)((u8 *)skb->cb + trans->txqs.page_offs); in iwl_txq_free_tso_page()
1032 size_t tfd_sz = trans->txqs.tfd.size * in iwl_txq_alloc()
1041 tfd_sz = trans->txqs.tfd.size * slots_num; in iwl_txq_alloc()
1102 WARN_ON(!trans->txqs.bc_tbl_size); in iwl_txq_dyn_alloc_dma()
1104 bc_tbl_size = trans->txqs.bc_tbl_size; in iwl_txq_dyn_alloc_dma()
1114 txq->bc_tbl.addr = dma_pool_alloc(trans->txqs.bc_pool, GFP_KERNEL, in iwl_txq_dyn_alloc_dma()
1159 if (qid >= ARRAY_SIZE(trans->txqs.txq)) { in iwl_txq_alloc_response()
1165 if (test_and_set_bit(qid, trans->txqs.queue_used)) { in iwl_txq_alloc_response()
1171 if (WARN_ONCE(trans->txqs.txq[qid], in iwl_txq_alloc_response()
1178 trans->txqs.txq[qid] = txq; in iwl_txq_alloc_response()
1213 if (trans->txqs.queue_alloc_cmd_ver == 0) { in iwl_txq_dyn_alloc()
1230 } else if (trans->txqs.queue_alloc_cmd_ver == 3) { in iwl_txq_dyn_alloc()
1271 if (!test_and_clear_bit(queue, trans->txqs.queue_used)) { in iwl_txq_dyn_free()
1286 memset(trans->txqs.queue_used, 0, sizeof(trans->txqs.queue_used)); in iwl_txq_gen2_tx_free()
1289 for (i = 0; i < ARRAY_SIZE(trans->txqs.txq); i++) { in iwl_txq_gen2_tx_free()
1290 if (!trans->txqs.txq[i]) in iwl_txq_gen2_tx_free()
1303 if (!trans->txqs.txq[txq_id]) { in iwl_txq_gen2_init()
1309 trans->txqs.txq[txq_id] = queue; in iwl_txq_gen2_init()
1316 queue = trans->txqs.txq[txq_id]; in iwl_txq_gen2_init()
1320 (txq_id == trans->txqs.cmd.q_id)); in iwl_txq_gen2_init()
1325 trans->txqs.txq[txq_id]->id = txq_id; in iwl_txq_gen2_init()
1326 set_bit(txq_id, trans->txqs.queue_used); in iwl_txq_gen2_init()
1377 if (num_tbs > trans->txqs.tfd.max_tbs) { in iwl_txq_gen1_tfd_unmap()
1435 scd_bc_tbl = trans->txqs.scd_bc_tbls.addr; in iwl_txq_gen1_update_byte_cnt_tbl()
1450 if (trans->txqs.bc_table_dword) in iwl_txq_gen1_update_byte_cnt_tbl()
1468 struct iwlagn_scd_bc_tbl *scd_bc_tbl = trans->txqs.scd_bc_tbls.addr; in iwl_txq_gen1_inval_byte_cnt_tbl()
1478 if (txq_id != trans->txqs.cmd.q_id) in iwl_txq_gen1_inval_byte_cnt_tbl()
1559 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_reclaim()
1565 if (WARN_ON(txq_id == trans->txqs.cmd.q_id)) in iwl_txq_reclaim()
1570 if (!test_bit(txq_id, trans->txqs.queue_used)) { in iwl_txq_reclaim()
1626 test_bit(txq_id, trans->txqs.queue_stopped)) { in iwl_txq_reclaim()
1655 trans->txqs.dev_cmd_offs); in iwl_txq_reclaim()
1679 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_set_q_ptrs()
1689 void iwl_trans_txq_freeze_timer(struct iwl_trans *trans, unsigned long txqs, in iwl_trans_txq_freeze_timer() argument
1694 for_each_set_bit(queue, &txqs, BITS_PER_LONG) { in iwl_trans_txq_freeze_timer()
1695 struct iwl_txq *txq = trans->txqs.txq[queue]; in iwl_trans_txq_freeze_timer()
1747 struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id]; in iwl_trans_txq_send_hcmd_sync()