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()
722 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_tx()
731 if (WARN_ONCE(!test_bit(txq_id, trans->txqs.queue_used), in iwl_txq_gen2_tx()
750 trans->txqs.dev_cmd_offs); in iwl_txq_gen2_tx()
817 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_unmap()
824 if (txq_id != trans->txqs.cmd.q_id) { in iwl_txq_gen2_unmap()
855 trans->txqs.tfd.size * txq->n_window, in iwl_txq_gen2_free_memory()
864 dma_pool_free(trans->txqs.bc_pool, in iwl_txq_gen2_free_memory()
886 txq = trans->txqs.txq[txq_id]; in iwl_txq_gen2_free()
894 if (txq_id == trans->txqs.cmd.q_id) in iwl_txq_gen2_free()
903 trans->txqs.txq[txq_id] = NULL; in iwl_txq_gen2_free()
905 clear_bit(txq_id, trans->txqs.queue_used); in iwl_txq_gen2_free()
975 page_ptr = (void *)((u8 *)skb->cb + trans->txqs.page_offs); in iwl_txq_free_tso_page()
1052 size_t tfd_sz = trans->txqs.tfd.size * in iwl_txq_alloc()
1064 tfd_sz = trans->txqs.tfd.size * slots_num; in iwl_txq_alloc()
1125 WARN_ON(!trans->txqs.bc_tbl_size); in iwl_txq_dyn_alloc_dma()
1127 bc_tbl_size = trans->txqs.bc_tbl_size; in iwl_txq_dyn_alloc_dma()
1137 txq->bc_tbl.addr = dma_pool_alloc(trans->txqs.bc_pool, GFP_KERNEL, in iwl_txq_dyn_alloc_dma()
1182 if (qid >= ARRAY_SIZE(trans->txqs.txq)) { in iwl_txq_alloc_response()
1188 if (test_and_set_bit(qid, trans->txqs.queue_used)) { in iwl_txq_alloc_response()
1194 if (WARN_ONCE(trans->txqs.txq[qid], in iwl_txq_alloc_response()
1201 trans->txqs.txq[qid] = txq; in iwl_txq_alloc_response()
1240 if (trans->txqs.queue_alloc_cmd_ver == 0) { in iwl_txq_dyn_alloc()
1257 } else if (trans->txqs.queue_alloc_cmd_ver == 3) { in iwl_txq_dyn_alloc()
1298 if (!test_and_clear_bit(queue, trans->txqs.queue_used)) { in iwl_txq_dyn_free()
1313 memset(trans->txqs.queue_used, 0, sizeof(trans->txqs.queue_used)); in iwl_txq_gen2_tx_free()
1316 for (i = 0; i < ARRAY_SIZE(trans->txqs.txq); i++) { in iwl_txq_gen2_tx_free()
1317 if (!trans->txqs.txq[i]) in iwl_txq_gen2_tx_free()
1330 if (!trans->txqs.txq[txq_id]) { in iwl_txq_gen2_init()
1336 trans->txqs.txq[txq_id] = queue; in iwl_txq_gen2_init()
1343 queue = trans->txqs.txq[txq_id]; in iwl_txq_gen2_init()
1347 (txq_id == trans->txqs.cmd.q_id)); in iwl_txq_gen2_init()
1352 trans->txqs.txq[txq_id]->id = txq_id; in iwl_txq_gen2_init()
1353 set_bit(txq_id, trans->txqs.queue_used); in iwl_txq_gen2_init()
1404 if (num_tbs > trans->txqs.tfd.max_tbs) { in iwl_txq_gen1_tfd_unmap()
1462 scd_bc_tbl = trans->txqs.scd_bc_tbls.addr; in iwl_txq_gen1_update_byte_cnt_tbl()
1477 if (trans->txqs.bc_table_dword) in iwl_txq_gen1_update_byte_cnt_tbl()
1495 struct iwlagn_scd_bc_tbl *scd_bc_tbl = trans->txqs.scd_bc_tbls.addr; in iwl_txq_gen1_inval_byte_cnt_tbl()
1505 if (txq_id != trans->txqs.cmd.q_id) in iwl_txq_gen1_inval_byte_cnt_tbl()
1586 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_reclaim()
1590 if (WARN_ON(txq_id == trans->txqs.cmd.q_id)) in iwl_txq_reclaim()
1601 if (!test_bit(txq_id, trans->txqs.queue_used)) { in iwl_txq_reclaim()
1657 test_bit(txq_id, trans->txqs.queue_stopped)) { in iwl_txq_reclaim()
1686 trans->txqs.dev_cmd_offs); in iwl_txq_reclaim()
1710 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_txq_set_q_ptrs()
1720 void iwl_trans_txq_freeze_timer(struct iwl_trans *trans, unsigned long txqs, in iwl_trans_txq_freeze_timer() argument
1725 for_each_set_bit(queue, &txqs, BITS_PER_LONG) { in iwl_trans_txq_freeze_timer()
1726 struct iwl_txq *txq = trans->txqs.txq[queue]; in iwl_trans_txq_freeze_timer()
1778 struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id]; in iwl_trans_txq_send_hcmd_sync()