Home
last modified time | relevance | path

Searched refs:txq (Results 1 – 25 of 253) sorted by relevance

1234567891011

/drivers/infiniband/hw/hfi1/
Dipoib_tx.c39 struct hfi1_ipoib_txq *txq; member
47 struct hfi1_ipoib_txq *txq; member
59 static u64 hfi1_ipoib_used(struct hfi1_ipoib_txq *txq) in hfi1_ipoib_used() argument
61 return hfi1_ipoib_txreqs(txq->sent_txreqs, in hfi1_ipoib_used()
62 atomic64_read(&txq->complete_txreqs)); in hfi1_ipoib_used()
65 static void hfi1_ipoib_stop_txq(struct hfi1_ipoib_txq *txq) in hfi1_ipoib_stop_txq() argument
67 trace_hfi1_txq_stop(txq); in hfi1_ipoib_stop_txq()
68 if (atomic_inc_return(&txq->stops) == 1) in hfi1_ipoib_stop_txq()
69 netif_stop_subqueue(txq->priv->netdev, txq->q_idx); in hfi1_ipoib_stop_txq()
72 static void hfi1_ipoib_wake_txq(struct hfi1_ipoib_txq *txq) in hfi1_ipoib_wake_txq() argument
[all …]
Dtrace_tx.h939 TP_PROTO(struct hfi1_ipoib_txq *txq),
940 TP_ARGS(txq),
942 DD_DEV_ENTRY(txq->priv->dd)
943 __field(struct hfi1_ipoib_txq *, txq)
955 DD_DEV_ASSIGN(txq->priv->dd)
956 __entry->txq = txq;
957 __entry->sde = txq->sde;
958 __entry->head = txq->tx_ring.head;
959 __entry->tail = txq->tx_ring.tail;
960 __entry->idx = txq->q_idx;
[all …]
/drivers/net/wireless/intel/iwlwifi/queue/
Dtx.c79 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()
90 struct iwl_txq *txq, u16 byte_cnt, in iwl_pcie_gen2_update_byte_tbl() argument
93 int idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_pcie_gen2_update_byte_tbl()
98 if (WARN(idx >= txq->n_window, "%d >= %d\n", idx, txq->n_window)) in iwl_pcie_gen2_update_byte_tbl()
114 struct iwl_gen3_bc_tbl *scd_bc_tbl_gen3 = txq->bc_tbl.addr; in iwl_pcie_gen2_update_byte_tbl()
122 struct iwlagn_scd_bc_tbl *scd_bc_tbl = txq->bc_tbl.addr; in iwl_pcie_gen2_update_byte_tbl()
136 void iwl_txq_inc_wr_ptr(struct iwl_trans *trans, struct iwl_txq *txq) in iwl_txq_inc_wr_ptr() argument
138 lockdep_assert_held(&txq->lock); in iwl_txq_inc_wr_ptr()
140 IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq->id, txq->write_ptr); in iwl_txq_inc_wr_ptr()
[all …]
Dtx.h69 iwl_txq_get_first_tb_dma(struct iwl_txq *txq, int idx) in iwl_txq_get_first_tb_dma() argument
71 return txq->first_tb_dma + in iwl_txq_get_first_tb_dma()
83 struct iwl_txq *txq) in iwl_wake_queue() argument
85 if (test_and_clear_bit(txq->id, trans->txqs.queue_stopped)) { in iwl_wake_queue()
86 IWL_DEBUG_TX_QUEUES(trans, "Wake hwq %d\n", txq->id); in iwl_wake_queue()
87 iwl_op_mode_queue_not_full(trans->op_mode, txq->id); in iwl_wake_queue()
92 struct iwl_txq *txq, int idx) in iwl_txq_get_tfd() argument
95 idx = iwl_txq_get_cmd_index(txq, idx); in iwl_txq_get_tfd()
97 return txq->tfds + trans->txqs.tfd.size * idx; in iwl_txq_get_tfd()
100 int iwl_txq_alloc(struct iwl_trans *trans, struct iwl_txq *txq, int slots_num,
[all …]
/drivers/net/wireless/intel/iwlwifi/pcie/
Dtx.c130 struct iwl_txq *txq) in iwl_pcie_txq_inc_wr_ptr() argument
133 int txq_id = txq->id; in iwl_pcie_txq_inc_wr_ptr()
135 lockdep_assert_held(&txq->lock); in iwl_pcie_txq_inc_wr_ptr()
158 txq->need_update = true; in iwl_pcie_txq_inc_wr_ptr()
167 IWL_DEBUG_TX(trans, "Q:%d WR: 0x%x\n", txq_id, txq->write_ptr); in iwl_pcie_txq_inc_wr_ptr()
168 if (!txq->block) in iwl_pcie_txq_inc_wr_ptr()
170 txq->write_ptr | (txq_id << 8)); in iwl_pcie_txq_inc_wr_ptr()
178 struct iwl_txq *txq = trans->txqs.txq[i]; in iwl_pcie_txq_check_wrptrs() local
183 spin_lock_bh(&txq->lock); in iwl_pcie_txq_check_wrptrs()
184 if (txq->need_update) { in iwl_pcie_txq_check_wrptrs()
[all …]
Dtx-gen2.c78 struct iwl_txq *txq = trans->txqs.txq[trans->txqs.cmd.q_id]; in iwl_pcie_gen2_enqueue_hcmd() local
159 spin_lock_irqsave(&txq->lock, flags); in iwl_pcie_gen2_enqueue_hcmd()
161 idx = iwl_txq_get_cmd_index(txq, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
162 tfd = iwl_txq_get_tfd(trans, txq, txq->write_ptr); in iwl_pcie_gen2_enqueue_hcmd()
165 if (iwl_txq_space(trans, txq) < ((cmd->flags & CMD_ASYNC) ? 2 : 1)) { in iwl_pcie_gen2_enqueue_hcmd()
166 spin_unlock_irqrestore(&txq->lock, flags); in iwl_pcie_gen2_enqueue_hcmd()
174 out_cmd = txq->entries[idx].cmd; in iwl_pcie_gen2_enqueue_hcmd()
175 out_meta = &txq->entries[idx].meta; in iwl_pcie_gen2_enqueue_hcmd()
191 INDEX_TO_SEQ(txq->write_ptr)); in iwl_pcie_gen2_enqueue_hcmd()
238 cmd_size, txq->write_ptr, idx, trans->txqs.cmd.q_id); in iwl_pcie_gen2_enqueue_hcmd()
[all …]
/drivers/net/ethernet/huawei/hinic/
Dhinic_tx.c76 void hinic_txq_clean_stats(struct hinic_txq *txq) in hinic_txq_clean_stats() argument
78 struct hinic_txq_stats *txq_stats = &txq->txq_stats; in hinic_txq_clean_stats()
95 void hinic_txq_get_stats(struct hinic_txq *txq, struct hinic_txq_stats *stats) in hinic_txq_get_stats() argument
97 struct hinic_txq_stats *txq_stats = &txq->txq_stats; in hinic_txq_get_stats()
115 static void txq_stats_init(struct hinic_txq *txq) in txq_stats_init() argument
117 struct hinic_txq_stats *txq_stats = &txq->txq_stats; in txq_stats_init()
120 hinic_txq_clean_stats(txq); in txq_stats_init()
497 struct hinic_txq *txq; in hinic_lb_xmit_frame() local
500 txq = &nic_dev->txqs[q_id]; in hinic_lb_xmit_frame()
501 qp = container_of(txq->sq, struct hinic_qp, sq); in hinic_lb_xmit_frame()
[all …]
/drivers/net/wireless/ath/ath9k/
Dxmit.c50 static void ath_tx_send_normal(struct ath_softc *sc, struct ath_txq *txq,
53 int tx_flags, struct ath_txq *txq,
56 struct ath_txq *txq, struct list_head *bf_q,
59 static void ath_tx_txqaddbuf(struct ath_softc *sc, struct ath_txq *txq,
67 struct ath_txq *txq,
101 void ath_txq_unlock_complete(struct ath_softc *sc, struct ath_txq *txq) in ath_txq_unlock_complete() argument
102 __releases(&txq->axq_lock) in ath_txq_unlock_complete()
109 skb_queue_splice_init(&txq->complete_q, &q); in ath_txq_unlock_complete()
110 spin_unlock_bh(&txq->axq_lock); in ath_txq_unlock_complete()
129 struct ath_txq *txq = tid->txq; in ath9k_wake_tx_queue() local
[all …]
/drivers/net/ethernet/marvell/
Dmv643xx_eth.c178 #define IS_TSO_HEADER(txq, addr) \ argument
179 ((addr >= txq->tso_hdrs_dma) && \
180 (addr < txq->tso_hdrs_dma + txq->tx_ring_size * TSO_HEADER_SIZE))
407 struct tx_queue txq[8]; member
445 static struct mv643xx_eth_private *txq_to_mp(struct tx_queue *txq) in txq_to_mp() argument
447 return container_of(txq, struct mv643xx_eth_private, txq[txq->index]); in txq_to_mp()
466 static void txq_reset_hw_ptr(struct tx_queue *txq) in txq_reset_hw_ptr() argument
468 struct mv643xx_eth_private *mp = txq_to_mp(txq); in txq_reset_hw_ptr()
471 addr = (u32)txq->tx_desc_dma; in txq_reset_hw_ptr()
472 addr += txq->tx_curr_desc * sizeof(struct tx_desc); in txq_reset_hw_ptr()
[all …]
Dmvneta.c130 #define MVNETA_CPU_TXQ_ACCESS(txq) BIT(txq + 8) argument
335 #define IS_TSO_HEADER(txq, addr) \ argument
336 ((addr >= txq->tso_hdrs_phys) && \
337 (addr < txq->tso_hdrs_phys + txq->size * TSO_HEADER_SIZE))
734 static void mvneta_txq_inc_get(struct mvneta_tx_queue *txq) in mvneta_txq_inc_get() argument
736 txq->txq_get_index++; in mvneta_txq_inc_get()
737 if (txq->txq_get_index == txq->size) in mvneta_txq_inc_get()
738 txq->txq_get_index = 0; in mvneta_txq_inc_get()
742 static void mvneta_txq_inc_put(struct mvneta_tx_queue *txq) in mvneta_txq_inc_put() argument
744 txq->txq_put_index++; in mvneta_txq_inc_put()
[all …]
/drivers/net/ethernet/qlogic/qede/
Dqede_fp.c75 int qede_free_tx_pkt(struct qede_dev *edev, struct qede_tx_queue *txq, int *len) in qede_free_tx_pkt() argument
77 u16 idx = txq->sw_tx_cons; in qede_free_tx_pkt()
78 struct sk_buff *skb = txq->sw_tx_ring.skbs[idx].skb; in qede_free_tx_pkt()
83 bool data_split = txq->sw_tx_ring.skbs[idx].flags & QEDE_TSO_SPLIT_BD; in qede_free_tx_pkt()
89 idx, txq->sw_tx_cons, txq->sw_tx_prod); in qede_free_tx_pkt()
95 first_bd = (struct eth_tx_1st_bd *)qed_chain_consume(&txq->tx_pbl); in qede_free_tx_pkt()
103 qed_chain_consume(&txq->tx_pbl); in qede_free_tx_pkt()
113 qed_chain_consume(&txq->tx_pbl); in qede_free_tx_pkt()
119 qed_chain_consume(&txq->tx_pbl); in qede_free_tx_pkt()
123 txq->sw_tx_ring.skbs[idx].skb = NULL; in qede_free_tx_pkt()
[all …]
Dqede_main.c524 static void qede_tx_log_print(struct qede_dev *edev, struct qede_tx_queue *txq) in qede_tx_log_print() argument
528 txq->index, le16_to_cpu(*txq->hw_cons_ptr), in qede_tx_log_print()
529 qed_chain_get_cons_idx(&txq->tx_pbl), in qede_tx_log_print()
530 qed_chain_get_prod_idx(&txq->tx_pbl), in qede_tx_log_print()
537 struct qede_tx_queue *txq; in qede_tx_timeout() local
547 txq = &edev->fp_array[txqueue].txq[cos]; in qede_tx_timeout()
549 if (qed_chain_get_cons_idx(&txq->tx_pbl) != in qede_tx_timeout()
550 qed_chain_get_prod_idx(&txq->tx_pbl)) in qede_tx_timeout()
551 qede_tx_log_print(edev, txq); in qede_tx_timeout()
906 kfree(fp->txq); in qede_free_fp_array()
[all …]
/drivers/net/ethernet/atheros/alx/
Dmain.c54 static void alx_free_txbuf(struct alx_tx_queue *txq, int entry) in alx_free_txbuf() argument
56 struct alx_buffer *txb = &txq->bufs[entry]; in alx_free_txbuf()
59 dma_unmap_single(txq->dev, in alx_free_txbuf()
150 return alx->qnapi[r_idx]->txq; in alx_tx_queue_mapping()
153 static struct netdev_queue *alx_get_tx_queue(const struct alx_tx_queue *txq) in alx_get_tx_queue() argument
155 return netdev_get_tx_queue(txq->netdev, txq->queue_idx); in alx_get_tx_queue()
158 static inline int alx_tpd_avail(struct alx_tx_queue *txq) in alx_tpd_avail() argument
160 if (txq->write_idx >= txq->read_idx) in alx_tpd_avail()
161 return txq->count + txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
162 return txq->read_idx - txq->write_idx - 1; in alx_tpd_avail()
[all …]
/drivers/net/wireless/mediatek/mt76/
Dtx.c9 mt76_txq_get_qid(struct ieee80211_txq *txq) in mt76_txq_get_qid() argument
11 if (!txq->sta) in mt76_txq_get_qid()
14 return txq->ac; in mt76_txq_get_qid()
21 struct ieee80211_txq *txq; in mt76_tx_check_agg_ssn() local
30 txq = sta->txq[tid]; in mt76_tx_check_agg_ssn()
31 mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_tx_check_agg_ssn()
306 struct ieee80211_txq *txq = mtxq_to_txq(mtxq); in mt76_txq_dequeue() local
311 skb = ieee80211_tx_dequeue(phy->hw, txq); in mt76_txq_dequeue()
352 struct ieee80211_txq *txq = sta->txq[i]; in mt76_release_buffered_frames() local
353 struct mt76_txq *mtxq = (struct mt76_txq *)txq->drv_priv; in mt76_release_buffered_frames()
[all …]
/drivers/net/ethernet/freescale/
Dfec_main.c276 #define IS_TSO_HEADER(txq, addr) \ argument
277 ((addr >= txq->tso_hdrs_dma) && \
278 (addr < txq->tso_hdrs_dma + txq->bd.ring_size * TSO_HEADER_SIZE))
302 static int fec_enet_get_free_txdesc_num(struct fec_enet_priv_tx_q *txq) in fec_enet_get_free_txdesc_num() argument
306 entries = (((const char *)txq->dirty_tx - in fec_enet_get_free_txdesc_num()
307 (const char *)txq->bd.cur) >> txq->bd.dsize_log2) - 1; in fec_enet_get_free_txdesc_num()
309 return entries >= 0 ? entries : entries + txq->bd.ring_size; in fec_enet_get_free_txdesc_num()
335 struct fec_enet_priv_tx_q *txq; in fec_dump() local
341 txq = fep->tx_queue[0]; in fec_dump()
342 bdp = txq->bd.base; in fec_dump()
[all …]
/drivers/net/ethernet/chelsio/cxgb4vf/
Dsge.c1133 static void txq_stop(struct sge_eth_txq *txq) in txq_stop() argument
1135 netif_tx_stop_queue(txq->txq); in txq_stop()
1136 txq->q.stops++; in txq_stop()
1164 struct sge_eth_txq *txq; in t4vf_eth_xmit() local
1198 txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; in t4vf_eth_xmit()
1208 reclaim_completed_tx(adapter, &txq->q, true); in t4vf_eth_xmit()
1217 credits = txq_avail(&txq->q) - ndesc; in t4vf_eth_xmit()
1226 txq_stop(txq); in t4vf_eth_xmit()
1240 txq->mapping_err++; in t4vf_eth_xmit()
1255 txq_stop(txq); in t4vf_eth_xmit()
[all …]
/drivers/net/ethernet/hisilicon/
Dhisi_femac.c120 struct hisi_femac_queue txq; member
147 dma_addr = priv->txq.dma_phys[pos]; in hisi_femac_tx_dma_unmap()
155 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_xmit_reclaim() local
163 skb = txq->skb[txq->tail]; in hisi_femac_xmit_reclaim()
169 hisi_femac_tx_dma_unmap(priv, skb, txq->tail); in hisi_femac_xmit_reclaim()
177 txq->skb[txq->tail] = NULL; in hisi_femac_xmit_reclaim()
178 txq->tail = (txq->tail + 1) % txq->num; in hisi_femac_xmit_reclaim()
372 ret = hisi_femac_init_queue(priv->dev, &priv->txq, TXQ_NUM); in hisi_femac_init_tx_and_rx_queues()
387 struct hisi_femac_queue *txq = &priv->txq; in hisi_femac_free_skb_rings() local
412 pos = txq->tail; in hisi_femac_free_skb_rings()
[all …]
/drivers/net/wireless/ath/ath5k/
Dbase.c733 struct ath5k_txq *txq, int padsize, in ath5k_txbuf_setup() argument
830 spin_lock_bh(&txq->lock); in ath5k_txbuf_setup()
831 list_add_tail(&bf->list, &txq->q); in ath5k_txbuf_setup()
832 txq->txq_len++; in ath5k_txbuf_setup()
833 if (txq->link == NULL) /* is this first packet? */ in ath5k_txbuf_setup()
834 ath5k_hw_set_txdp(ah, txq->qnum, bf->daddr); in ath5k_txbuf_setup()
836 *txq->link = bf->daddr; in ath5k_txbuf_setup()
838 txq->link = &ds->ds_link; in ath5k_txbuf_setup()
839 ath5k_hw_start_tx_dma(ah, txq->qnum); in ath5k_txbuf_setup()
840 spin_unlock_bh(&txq->lock); in ath5k_txbuf_setup()
[all …]
/drivers/net/ethernet/chelsio/cxgb3/
Dsge.c179 return container_of(q, struct sge_qset, txq[qidx]); in txq_to_qset()
658 memset(q->txq, 0, sizeof(struct sge_txq) * SGE_TXQ_PER_SET); in t3_reset_qset()
695 if (q->txq[i].desc) { in t3_free_qset()
697 t3_sge_enable_ecntxt(adapter, q->txq[i].cntxt_id, 0); in t3_free_qset()
699 if (q->txq[i].sdesc) { in t3_free_qset()
700 free_tx_desc(adapter, &q->txq[i], in t3_free_qset()
701 q->txq[i].in_use); in t3_free_qset()
702 kfree(q->txq[i].sdesc); in t3_free_qset()
705 q->txq[i].size * in t3_free_qset()
707 q->txq[i].desc, q->txq[i].phys_addr); in t3_free_qset()
[all …]
/drivers/net/wireless/intel/iwlegacy/
Dcommon.c364 il->txq[il->cmd_queue].meta[cmd_idx].flags &= ~CMD_WANT_SKB; in il_send_cmd_sync()
2709 il_txq_update_write_ptr(struct il_priv *il, struct il_tx_queue *txq) in il_txq_update_write_ptr() argument
2712 int txq_id = txq->q.id; in il_txq_update_write_ptr()
2714 if (txq->need_update == 0) in il_txq_update_write_ptr()
2732 il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8)); in il_txq_update_write_ptr()
2740 _il_wr(il, HBUS_TARG_WRPTR, txq->q.write_ptr | (txq_id << 8)); in il_txq_update_write_ptr()
2741 txq->need_update = 0; in il_txq_update_write_ptr()
2751 struct il_tx_queue *txq = &il->txq[txq_id]; in il_tx_queue_unmap() local
2752 struct il_queue *q = &txq->q; in il_tx_queue_unmap()
2758 il->ops->txq_free_tfd(il, txq); in il_tx_queue_unmap()
[all …]
/drivers/atm/
Dambassador.c613 amb_txq * txq = &dev->txq; in tx_give() local
621 spin_lock_irqsave (&txq->lock, flags); in tx_give()
623 if (txq->pending < txq->maximum) { in tx_give()
624 PRINTD (DBG_TX, "TX in slot %p", txq->in.ptr); in tx_give()
626 *txq->in.ptr = *tx; in tx_give()
627 txq->pending++; in tx_give()
628 txq->in.ptr = NEXTQ (txq->in.ptr, txq->in.start, txq->in.limit); in tx_give()
630 wr_mem (dev, offsetof(amb_mem, mb.adapter.tx_address), virt_to_bus (txq->in.ptr)); in tx_give()
633 if (txq->pending > txq->high) in tx_give()
634 txq->high = txq->pending; in tx_give()
[all …]
/drivers/net/ethernet/chelsio/cxgb4/
Dsge.c1234 netif_tx_stop_queue(q->txq); in eth_txq_stop()
1425 if (!q->in_use || !__netif_tx_trylock(eq->txq)) in t4_sge_eth_txq_egress_update()
1441 if (netif_tx_queue_stopped(eq->txq) && hw_in_use < (q->size / 2)) { in t4_sge_eth_txq_egress_update()
1442 netif_tx_wake_queue(eq->txq); in t4_sge_eth_txq_egress_update()
1446 __netif_tx_unlock(eq->txq); in t4_sge_eth_txq_egress_update()
1831 struct sge_eth_txq *txq; in cxgb4_vf_eth_xmit() local
1854 txq = &adapter->sge.ethtxq[pi->first_qset + qidx]; in cxgb4_vf_eth_xmit()
1859 reclaim_completed_tx(adapter, &txq->q, -1, true); in cxgb4_vf_eth_xmit()
1867 credits = txq_avail(&txq->q) - ndesc; in cxgb4_vf_eth_xmit()
1875 eth_txq_stop(txq); in cxgb4_vf_eth_xmit()
[all …]
/drivers/net/ethernet/brocade/bna/
Dbna_tx_rx.c2870 struct bna_txq *txq; in bna_tx_sm_started_entry() local
2873 list_for_each_entry(txq, &tx->txq_q, qe) { in bna_tx_sm_started_entry()
2874 txq->tcb->priority = txq->priority; in bna_tx_sm_started_entry()
2876 bna_ib_start(tx->bna, &txq->ib, is_regular); in bna_tx_sm_started_entry()
3089 struct bna_txq *txq = NULL; in bna_bfi_tx_enet_start() local
3099 txq = txq ? list_next_entry(txq, qe) in bna_bfi_tx_enet_start()
3101 bfi_enet_datapath_q_init(&cfg_req->q_cfg[i].q.q, &txq->qpt); in bna_bfi_tx_enet_start()
3102 cfg_req->q_cfg[i].q.priority = txq->priority; in bna_bfi_tx_enet_start()
3105 txq->ib.ib_seg_host_addr.lsb; in bna_bfi_tx_enet_start()
3107 txq->ib.ib_seg_host_addr.msb; in bna_bfi_tx_enet_start()
[all …]
/drivers/net/ethernet/marvell/mvpp2/
Dmvpp2_main.c224 unsigned int txq) in mvpp2_txdesc_txq_set() argument
227 tx_desc->pp21.phys_txq = txq; in mvpp2_txdesc_txq_set()
229 tx_desc->pp22.phys_txq = txq; in mvpp2_txdesc_txq_set()
344 static inline int mvpp2_txq_phys(int port, int txq) in mvpp2_txq_phys() argument
346 return (MVPP2_MAX_TCONT + port) * MVPP2_MAX_TXQ + txq; in mvpp2_txq_phys()
2025 struct mvpp2_tx_queue *txq = port->txqs[queue]; in mvpp2_egress_enable() local
2027 if (txq->descs) in mvpp2_egress_enable()
2131 mvpp2_txq_next_desc_get(struct mvpp2_tx_queue *txq) in mvpp2_txq_next_desc_get() argument
2133 int tx_desc = txq->next_desc_to_proc; in mvpp2_txq_next_desc_get()
2135 txq->next_desc_to_proc = MVPP2_QUEUE_NEXT_DESC(txq, tx_desc); in mvpp2_txq_next_desc_get()
[all …]
/drivers/net/ethernet/alacritech/
Dslicoss.c113 static unsigned int slic_get_free_tx_descs(struct slic_tx_queue *txq) in slic_get_free_tx_descs() argument
117 return slic_get_free_queue_descs(txq->put_idx, txq->done_idx, txq->len); in slic_get_free_tx_descs()
344 struct slic_tx_queue *txq = &sdev->txq; in slic_xmit_complete() local
359 txq->done_idx = idx; in slic_xmit_complete()
360 buff = &txq->txbuffs[idx]; in slic_xmit_complete()
387 (slic_get_free_tx_descs(txq) >= SLIC_MIN_TX_WAKEUP_DESCS)) in slic_xmit_complete()
838 struct slic_tx_queue *txq = &sdev->txq; in slic_init_tx_queue() local
844 txq->len = SLIC_NUM_TX_DESCS; in slic_init_tx_queue()
845 txq->put_idx = 0; in slic_init_tx_queue()
846 txq->done_idx = 0; in slic_init_tx_queue()
[all …]

1234567891011