Home
last modified time | relevance | path

Searched refs:txqs (Results 1 – 25 of 52) sorted by relevance

123

/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-trans.c116 trans->txqs.bc_tbl_size = sizeof(struct iwl_gen3_bc_tbl); in iwl_trans_alloc()
118 trans->txqs.bc_tbl_size = sizeof(struct iwlagn_scd_bc_tbl); in iwl_trans_alloc()
125 trans->txqs.bc_pool = dmam_pool_create("iwlwifi:bc", dev, in iwl_trans_alloc()
126 trans->txqs.bc_tbl_size, in iwl_trans_alloc()
128 if (!trans->txqs.bc_pool) in iwl_trans_alloc()
133 trans->txqs.tfd.addr_size = 64; in iwl_trans_alloc()
134 trans->txqs.tfd.max_tbs = IWL_TFH_NUM_TBS; in iwl_trans_alloc()
135 trans->txqs.tfd.size = sizeof(struct iwl_tfh_tfd); in iwl_trans_alloc()
137 trans->txqs.tfd.addr_size = 36; in iwl_trans_alloc()
138 trans->txqs.tfd.max_tbs = IWL_NUM_OF_TBS; in iwl_trans_alloc()
[all …]
Diwl-trans.h223 #define IWL_TRANS_MAX_FRAGS(trans) ((trans)->txqs.tfd.max_tbs - 3)
616 void (*freeze_txq_timer)(struct iwl_trans *trans, unsigned long txqs,
1036 struct iwl_trans_txqs txqs; member
1297 unsigned long txqs, in iwl_trans_freeze_txq_timer() argument
1306 trans->ops->freeze_txq_timer(trans, txqs, freeze); in iwl_trans_freeze_txq_timer()
1322 u32 txqs) in iwl_trans_wait_tx_queues_empty() argument
1332 return trans->ops->wait_tx_queues_empty(trans, txqs); in iwl_trans_wait_tx_queues_empty()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/queue/
Dtx.c74 memset(trans->txqs.queue_stopped, 0, in iwl_txq_gen2_tx_stop()
75 sizeof(trans->txqs.queue_stopped)); in iwl_txq_gen2_tx_stop()
76 memset(trans->txqs.queue_used, 0, sizeof(trans->txqs.queue_used)); in iwl_txq_gen2_tx_stop()
79 for (txq_id = 0; txq_id < ARRAY_SIZE(trans->txqs.txq); txq_id++) { in iwl_txq_gen2_tx_stop()
80 if (!trans->txqs.txq[txq_id]) in iwl_txq_gen2_tx_stop()
117 WARN_ON(trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
125 WARN_ON(!trans->txqs.bc_table_dword); in iwl_pcie_gen2_update_byte_tbl()
163 if (num_tbs > trans->txqs.tfd.max_tbs) { in iwl_txq_gen2_tfd_unmap()
236 if (le16_to_cpu(tfd->num_tbs) >= trans->txqs.tfd.max_tbs) { in iwl_txq_gen2_set_tb()
238 trans->txqs.tfd.max_tbs); in iwl_txq_gen2_set_tb()
[all …]
Dtx.h85 if (test_and_clear_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_wake_queue()
97 return txq->tfds + trans->txqs.tfd.size * idx; in iwl_txq_get_tfd()
116 if (!test_and_set_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_txq_stop()
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c144 txq_id != trans->txqs.cmd.q_id && in iwl_pcie_txq_inc_wr_ptr()
178 struct iwl_txq *txq = trans->txqs.txq[i]; in iwl_pcie_txq_check_wrptrs()
180 if (!test_bit(i, trans->txqs.queue_used)) in iwl_pcie_txq_check_wrptrs()
255 tfd = txq->tfds + trans->txqs.tfd.size * txq->write_ptr; in iwl_pcie_txq_build_tfd()
258 memset(tfd, 0, trans->txqs.tfd.size); in iwl_pcie_txq_build_tfd()
263 if (num_tbs >= trans->txqs.tfd.max_tbs) { in iwl_pcie_txq_build_tfd()
265 trans->txqs.tfd.max_tbs); in iwl_pcie_txq_build_tfd()
300 struct iwl_txq *txq = trans->txqs.txq[txq_id]; in iwl_pcie_txq_unmap()
312 if (txq_id != trans->txqs.cmd.q_id) { in iwl_pcie_txq_unmap()
325 if (txq_id == trans->txqs.cmd.q_id) in iwl_pcie_txq_unmap()
[all …]
Dtrans-gen2.c248 if (iwl_txq_gen2_init(trans, trans->txqs.cmd.q_id, queue_size)) in iwl_pcie_gen2_nic_init()
265 memset(trans->txqs.queue_stopped, 0, in iwl_trans_pcie_gen2_fw_alive()
266 sizeof(trans->txqs.queue_stopped)); in iwl_trans_pcie_gen2_fw_alive()
267 memset(trans->txqs.queue_used, 0, sizeof(trans->txqs.queue_used)); in iwl_trans_pcie_gen2_fw_alive()
Dtx-gen2.c78 struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id]; in iwl_pcie_gen2_enqueue_hcmd()
190 cpu_to_le16(QUEUE_TO_SEQ(trans->txqs.cmd.q_id) | in iwl_pcie_gen2_enqueue_hcmd()
238 cmd_size, txq->write_ptr, idx, trans->txqs.cmd.q_id); in iwl_pcie_gen2_enqueue_hcmd()
315 struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id]; in iwl_pcie_gen2_send_hcmd_sync()
Dtrans.c1914 trans->txqs.cmd.q_id = trans_cfg->cmd_queue; in iwl_trans_pcie_configure()
1915 trans->txqs.cmd.fifo = trans_cfg->cmd_fifo; in iwl_trans_pcie_configure()
1916 trans->txqs.cmd.wdg_timeout = trans_cfg->cmd_q_wdg_timeout; in iwl_trans_pcie_configure()
1917 trans->txqs.page_offs = trans_cfg->cb_data_offs; in iwl_trans_pcie_configure()
1918 trans->txqs.dev_cmd_offs = trans_cfg->cb_data_offs + sizeof(void *); in iwl_trans_pcie_configure()
1937 trans->txqs.bc_table_dword = trans_cfg->bc_table_dword; in iwl_trans_pcie_configure()
2222 unsigned long txqs, in iwl_trans_pcie_freeze_txq_timer() argument
2227 for_each_set_bit(queue, &txqs, BITS_PER_LONG) { in iwl_trans_pcie_freeze_txq_timer()
2228 struct iwl_txq *txq = trans->txqs.txq[queue]; in iwl_trans_pcie_freeze_txq_timer()
2279 struct iwl_txq *txq = trans->txqs.txq[i]; in iwl_trans_pcie_block_txq_ptrs()
[all …]
Dctxt-info.c269 cpu_to_le64(trans->txqs.txq[trans->txqs.cmd.q_id]->dma_addr); in iwl_pcie_ctxt_info_init()
Dctxt-info-gen3.c223 cpu_to_le64(trans->txqs.txq[trans->txqs.cmd.q_id]->dma_addr); in iwl_pcie_ctxt_info_gen3_init()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath5k/
Dmac80211-ops.c69 ath5k_tx_queue(hw, skb, &ah->txqs[qnum], control); in ath5k_tx()
744 *tx = ah->txqs[AR5K_TX_QUEUE_ID_DATA_MIN].txq_max; in ath5k_get_ringparam()
764 for (qnum = 0; qnum < ARRAY_SIZE(ah->txqs); qnum++) { in ath5k_set_ringparam()
765 if (!ah->txqs[qnum].setup) in ath5k_set_ringparam()
767 if (ah->txqs[qnum].qnum < AR5K_TX_QUEUE_ID_DATA_MIN || in ath5k_set_ringparam()
768 ah->txqs[qnum].qnum > AR5K_TX_QUEUE_ID_DATA_MAX) in ath5k_set_ringparam()
771 ah->txqs[qnum].txq_max = tx; in ath5k_set_ringparam()
772 if (ah->txqs[qnum].txq_len >= ah->txqs[qnum].txq_max) in ath5k_set_ringparam()
773 ieee80211_stop_queue(hw, ah->txqs[qnum].qnum); in ath5k_set_ringparam()
Dbase.c1010 txq = &ah->txqs[qnum]; in ath5k_txq_setup()
1022 return &ah->txqs[qnum]; in ath5k_txq_setup()
1116 for (i = 0; i < ARRAY_SIZE(ah->txqs); i++) { in ath5k_drain_tx_buffs()
1117 if (ah->txqs[i].setup) { in ath5k_drain_tx_buffs()
1118 txq = &ah->txqs[i]; in ath5k_drain_tx_buffs()
1141 struct ath5k_txq *txq = ah->txqs; in ath5k_txq_release()
1144 for (i = 0; i < ARRAY_SIZE(ah->txqs); i++, txq++) in ath5k_txq_release()
1793 if (ah->txqs[i].setup && (ah->ah_txq_isr_txok_all & BIT(i))) in ath5k_tasklet_tx()
1794 ath5k_tx_processq(ah, &ah->txqs[i]); in ath5k_tasklet_tx()
2009 trace_ath5k_tx(ah, bf->skb, &ah->txqs[ah->bhalq]); in ath5k_beacon_send()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/
Dhinic_main.c120 gather_tx_stats(nic_tx_stats, &nic_dev->txqs[i]); in gather_nic_stats()
134 if (nic_dev->txqs) in create_txqs()
137 nic_dev->txqs = devm_kcalloc(&netdev->dev, num_txqs, in create_txqs()
138 sizeof(*nic_dev->txqs), GFP_KERNEL); in create_txqs()
139 if (!nic_dev->txqs) in create_txqs()
147 err = hinic_init_txq(&nic_dev->txqs[i], sq, netdev); in create_txqs()
166 hinic_clean_txq(&nic_dev->txqs[i]); in create_txqs()
169 hinic_sq_debug_rem(nic_dev->txqs[j].sq); in create_txqs()
170 hinic_clean_txq(&nic_dev->txqs[j]); in create_txqs()
175 devm_kfree(&netdev->dev, nic_dev->txqs); in create_txqs()
[all …]
Dhinic_dev.h93 struct hinic_txq *txqs; member
/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/
Dipoib_tx.c177 struct hfi1_ipoib_txq *txq = &priv->txqs[napi - priv->tx_napis]; in hfi1_ipoib_process_tx_ring()
597 txp.txq = &priv->txqs[skb_get_queue_mapping(skb)]; in hfi1_ipoib_send_dma()
710 priv->txqs = kcalloc_node(dev->num_tx_queues, in hfi1_ipoib_txreq_init()
714 if (!priv->txqs) in hfi1_ipoib_txreq_init()
718 struct hfi1_ipoib_txq *txq = &priv->txqs[i]; in hfi1_ipoib_txreq_init()
764 struct hfi1_ipoib_txq *txq = &priv->txqs[i]; in hfi1_ipoib_txreq_init()
770 kfree(priv->txqs); in hfi1_ipoib_txreq_init()
771 priv->txqs = NULL; in hfi1_ipoib_txreq_init()
813 struct hfi1_ipoib_txq *txq = &priv->txqs[i]; in hfi1_ipoib_txreq_deinit()
823 kfree(priv->txqs); in hfi1_ipoib_txreq_deinit()
[all …]
Dipoib.h104 struct hfi1_ipoib_txq *txqs; member
/kernel/linux/linux-5.10/net/
Ddevres.c22 unsigned int txqs, unsigned int rxqs) in devm_alloc_etherdev_mqs() argument
30 dr->ndev = alloc_etherdev_mqs(sizeof_priv, txqs, rxqs); in devm_alloc_etherdev_mqs()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/
Dmain.c85 unsigned int txqs; in nfp_abm_spawn_repr() local
90 txqs = 1; in nfp_abm_spawn_repr()
93 txqs = alink->vnic->max_rx_rings; in nfp_abm_spawn_repr()
96 netdev = nfp_repr_alloc_mqs(app, txqs, 1); in nfp_abm_spawn_repr()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/
Dnfp_net_repr.h102 nfp_repr_alloc_mqs(struct nfp_app *app, unsigned int txqs, unsigned int rxqs);
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_base.c638 u8 buf_len = struct_size(qg_buf, txqs, 1); in ice_vsi_cfg_txq()
650 qg_buf->txqs[0].txq_id = cpu_to_le16(pf_q); in ice_vsi_cfg_txq()
651 ice_set_ctx(hw, (u8 *)&tlan_ctx, qg_buf->txqs[0].txq_ctx, in ice_vsi_cfg_txq()
681 txq = &qg_buf->txqs[0]; in ice_vsi_cfg_txq()
/kernel/linux/linux-5.10/include/linux/
Detherdevice.h49 struct net_device *alloc_etherdev_mqs(int sizeof_priv, unsigned int txqs,
55 unsigned int txqs,
/kernel/linux/linux-5.10/net/ethernet/
Deth.c395 struct net_device *alloc_etherdev_mqs(int sizeof_priv, unsigned int txqs, in alloc_etherdev_mqs() argument
399 ether_setup, txqs, rxqs); in alloc_etherdev_mqs()
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/
Dmvneta.c470 struct mvneta_tx_queue *txqs; member
1220 struct mvneta_tx_queue *txq = &pp->txqs[queue]; in mvneta_port_up()
1828 return &pp->txqs[queue]; in mvneta_tx_done_policy()
2100 txq = &pp->txqs[cpu % txq_number]; in mvneta_xdp_xmit_back()
2141 txq = &pp->txqs[cpu % txq_number]; in mvneta_xdp_xmit()
2769 struct mvneta_tx_queue *txq = &pp->txqs[txq_id]; in mvneta_tx()
3278 mvneta_txq_done_force(pp, &pp->txqs[queue]); in mvneta_tx_reset()
3503 mvneta_txq_deinit(pp, &pp->txqs[queue]); in mvneta_cleanup_txqs()
3541 int err = mvneta_txq_init(pp, &pp->txqs[queue]); in mvneta_setup_txqs()
4498 struct mvneta_tx_queue *txq = &pp->txqs[queue]; in mvneta_ethtool_set_coalesce()
[all …]
/kernel/linux/linux-5.10/drivers/net/wan/
Dfarsync.c437 int txqs; /* index to get next buffer to tx */ member
1349 if ((txq_length = port->txqe - port->txqs) < 0) { in do_bottom_half_tx()
1362 skb = port->txq[port->txqs]; in do_bottom_half_tx()
1363 port->txqs++; in do_bottom_half_tx()
1364 if (port->txqs == FST_TXQ_DEPTH) { in do_bottom_half_tx()
1365 port->txqs = 0; in do_bottom_half_tx()
2160 port->txqs = 0; in fst_openport()
2298 if ((txq_length = port->txqe - port->txqs) < 0) { in fst_start_xmit()
/kernel/linux/linux-5.10/include/linux/can/
Ddev.h196 unsigned int txqs, unsigned int rxqs);

123