Home
last modified time | relevance | path

Searched refs:tx_q (Results 1 – 25 of 28) sorted by relevance

12

/linux/drivers/net/ethernet/stmicro/stmmac/
H A Dchain_mode.c17 static int jumbo_frm(struct stmmac_tx_queue *tx_q, struct sk_buff *skb, in jumbo_frm() argument
21 struct stmmac_priv *priv = tx_q->priv_data; in jumbo_frm()
22 unsigned int entry = tx_q->cur_tx; in jumbo_frm()
27 desc = tx_q->dma_tx + entry; in jumbo_frm()
42 tx_q->tx_skbuff_dma[entry].buf = des2; in jumbo_frm()
43 tx_q->tx_skbuff_dma[entry].len = buf_len; in jumbo_frm()
49 tx_q->tx_skbuff[entry] = NULL; in jumbo_frm()
51 desc = tx_q->dma_tx + entry; in jumbo_frm()
60 tx_q->tx_skbuff_dma[entry].buf = des2; in jumbo_frm()
61 tx_q->tx_skbuff_dma[entry].len = bmax; in jumbo_frm()
[all …]
H A Dstmmac_main.c359 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; in stmmac_tx_avail() local
361 return CIRC_SPACE(tx_q->cur_tx, tx_q->dirty_tx, in stmmac_tx_avail()
366 struct stmmac_tx_queue *tx_q) in stmmac_get_tx_desc_size() argument
370 else if (tx_q->tbs & STMMAC_TBS_AVAIL) in stmmac_get_tx_desc_size()
377 struct stmmac_tx_queue *tx_q, in stmmac_get_tx_desc() argument
381 return &tx_q->dma_etx[index].basic; in stmmac_get_tx_desc()
382 else if (tx_q->tbs & STMMAC_TBS_AVAIL) in stmmac_get_tx_desc()
383 return &tx_q->dma_entx[index].basic; in stmmac_get_tx_desc()
385 return &tx_q in stmmac_get_tx_desc()
389 stmmac_set_queue_tx_tail_ptr(struct stmmac_priv * priv,struct stmmac_tx_queue * tx_q,unsigned int chan,unsigned int index) stmmac_set_queue_tx_tail_ptr() argument
466 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_eee_tx_busy() local
1522 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[queue]; stmmac_display_tx_rings() local
1609 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[queue]; stmmac_clear_tx_descriptors() local
1728 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[queue]; stmmac_free_tx_buffer() local
1980 stmmac_set_tx_dma_entry(struct stmmac_tx_queue * tx_q,unsigned int entry,enum stmmac_txbuf_type type,dma_addr_t addr,size_t len,bool map_as_page) stmmac_set_tx_dma_entry() argument
1994 stmmac_set_tx_skb_dma_entry(struct stmmac_tx_queue * tx_q,unsigned int entry,dma_addr_t addr,size_t len,bool map_as_page) stmmac_set_tx_skb_dma_entry() argument
2002 stmmac_set_tx_dma_last_segment(struct stmmac_tx_queue * tx_q,unsigned int entry) stmmac_set_tx_dma_last_segment() argument
2021 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[queue]; __init_dma_tx_desc_rings() local
2110 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[queue]; dma_free_tx_skbufs() local
2200 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[queue]; __free_dma_tx_desc_resources() local
2354 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[queue]; __alloc_dma_tx_desc_resources() local
2693 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_xdp_xmit_zc() local
2829 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_tx_clean() local
3017 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[chan]; stmmac_tx_err() local
3085 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[chan]; stmmac_napi_check() local
3277 struct stmmac_tx_queue *tx_q; stmmac_init_dma_engine() local
3329 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_tx_timer_arm() local
3360 struct stmmac_tx_queue *tx_q = container_of(t, struct stmmac_tx_queue, txtimer); stmmac_tx_timer() local
3395 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[chan]; stmmac_init_coalesce() local
3740 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[chan]; stmmac_hw_setup() local
4096 struct stmmac_tx_queue *tx_q = &dma_conf->tx_queue[chan]; stmmac_setup_dma_desc() local
4293 stmmac_vlan_insert(struct stmmac_priv * priv,struct sk_buff * skb,struct stmmac_tx_queue * tx_q) stmmac_vlan_insert() argument
4330 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_tso_allocator() local
4365 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_flush_tx_descriptors() local
4502 struct stmmac_tx_queue *tx_q; stmmac_tso_xmit() local
4761 struct stmmac_tx_queue *tx_q; stmmac_xmit() local
5171 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_xdp_xmit_xdpf() local
6322 struct stmmac_tx_queue *tx_q = (struct stmmac_tx_queue *)data; stmmac_msi_intr_tx() local
6545 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_rings_status_show() local
7059 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_enable_tx_queue() local
7135 struct stmmac_tx_queue *tx_q; stmmac_xdp_open() local
7224 struct stmmac_tx_queue *tx_q; stmmac_xsk_wakeup() local
8239 struct stmmac_tx_queue *tx_q = &priv->dma_conf.tx_queue[queue]; stmmac_reset_tx_queue() local
[all...]
/linux/drivers/net/ethernet/qualcomm/emac/
H A Demac-mac.c305 writel(upper_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config()
308 writel(lower_32_bits(adpt->tx_q.tpd.dma_addr), in emac_mac_dma_rings_config()
311 writel(adpt->tx_q.tpd.count & TPD_RING_SIZE_BMSK, in emac_mac_dma_rings_config()
587 struct emac_tx_queue *tx_q = &adpt->tx_q; in emac_tx_q_descs_free() local
592 if (!tx_q->tpd.tpbuff) in emac_tx_q_descs_free()
595 for (i = 0; i < tx_q->tpd.count; i++) { in emac_tx_q_descs_free()
596 struct emac_buffer *tpbuf = GET_TPD_BUFFER(tx_q, i); in emac_tx_q_descs_free()
610 size = sizeof(struct emac_buffer) * tx_q->tpd.count; in emac_tx_q_descs_free()
611 memset(tx_q->tpd.tpbuff, 0, size); in emac_tx_q_descs_free()
614 memset(tx_q->tpd.v_addr, 0, tx_q->tpd.size); in emac_tx_q_descs_free()
[all …]
H A Demac-mac.h231 struct emac_tx_queue *tx_q,
233 void emac_mac_tx_process(struct emac_adapter *adpt, struct emac_tx_queue *tx_q);
H A Demac.h341 struct emac_tx_queue tx_q; member
/linux/drivers/net/ethernet/intel/idpf/
H A Didpf_txrx.c173 * @tx_q: queue for which the buffers are allocated
177 static int idpf_tx_buf_alloc_all(struct idpf_tx_queue *tx_q) in idpf_tx_buf_alloc_all() argument
182 if (idpf_queue_has(FLOW_SCH_EN, tx_q)) in idpf_tx_buf_alloc_all()
183 tx_q->buf_pool_size = U16_MAX; in idpf_tx_buf_alloc_all()
185 tx_q->buf_pool_size = tx_q->desc_count; in idpf_tx_buf_alloc_all()
186 tx_q->tx_buf = kzalloc_objs(*tx_q->tx_buf, tx_q->buf_pool_size); in idpf_tx_buf_alloc_all()
187 if (!tx_q in idpf_tx_buf_alloc_all()
201 idpf_tx_desc_alloc(const struct idpf_vport * vport,struct idpf_tx_queue * tx_q) idpf_tx_desc_alloc() argument
2060 idpf_tx_splitq_clean(struct idpf_tx_queue * tx_q,u16 end,int napi_budget,struct libeth_sq_napi_stats * cleaned,bool descs_only) idpf_tx_splitq_clean() argument
2209 struct idpf_tx_queue *tx_q; idpf_tx_clean_complq() local
2283 struct idpf_tx_queue *tx_q = complq->txq_grp->txqs[i]; idpf_tx_clean_complq() local
2424 idpf_txq_has_room(struct idpf_tx_queue * tx_q,u32 descs_needed,u32 bufs_needed) idpf_txq_has_room() argument
2443 idpf_tx_maybe_stop_splitq(struct idpf_tx_queue * tx_q,u32 descs_needed,u32 bufs_needed) idpf_tx_maybe_stop_splitq() argument
2474 idpf_tx_buf_hw_update(struct idpf_tx_queue * tx_q,u32 val,bool xmit_more) idpf_tx_buf_hw_update() argument
2642 idpf_tx_splitq_map(struct idpf_tx_queue * tx_q,struct idpf_tx_splitq_params * params,struct idpf_tx_buf * first) idpf_tx_splitq_map() argument
2919 idpf_tx_drop_skb(struct idpf_tx_queue * tx_q,struct sk_buff * skb) idpf_tx_drop_skb() argument
2941 idpf_tx_tstamp(struct idpf_tx_queue * tx_q,struct sk_buff * skb,struct idpf_tx_offload_params * off) idpf_tx_tstamp() argument
2988 idpf_tx_tstamp(struct idpf_tx_queue * tx_q,struct sk_buff * skb,struct idpf_tx_offload_params * off) idpf_tx_tstamp() argument
3005 idpf_tx_splitq_need_re(struct idpf_tx_queue * tx_q) idpf_tx_splitq_need_re() argument
3022 idpf_tx_splitq_frame(struct sk_buff * skb,struct idpf_tx_queue * tx_q) idpf_tx_splitq_frame() argument
3150 struct idpf_tx_queue *tx_q; idpf_tx_start() local
[all...]
H A Didpf_ptp.c637 * @tx_q: Transmit queue on which the Tx timestamp is requested
647 int idpf_ptp_request_ts(struct idpf_tx_queue *tx_q, struct sk_buff *skb, in idpf_ptp_request_ts() argument
654 spin_lock(&tx_q->cached_tstamp_caps->latches_lock); in idpf_ptp_request_ts()
656 head = &tx_q->cached_tstamp_caps->latches_free; in idpf_ptp_request_ts()
658 spin_unlock(&tx_q->cached_tstamp_caps->latches_lock); in idpf_ptp_request_ts()
671 &tx_q->cached_tstamp_caps->latches_in_use); in idpf_ptp_request_ts()
672 spin_unlock(&tx_q->cached_tstamp_caps->latches_lock); in idpf_ptp_request_ts()
H A Didpf_ptp.h286 int idpf_ptp_request_ts(struct idpf_tx_queue *tx_q, struct sk_buff *skb,
371 static inline int idpf_ptp_request_ts(struct idpf_tx_queue *tx_q, in idpf_ptp_request_ts() argument
H A Didpf_txrx.h1115 void idpf_tx_buf_hw_update(struct idpf_tx_queue *tx_q, u32 val,
1118 netdev_tx_t idpf_tx_drop_skb(struct idpf_tx_queue *tx_q, struct sk_buff *skb);
1123 struct idpf_tx_queue *tx_q);
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_dpmaif.c211 struct dpmaif_tx_queue *tx_q; in t7xx_dpmaif_rxtx_sw_allocs() local
236 tx_q = &dpmaif_ctrl->txq[tx_idx]; in t7xx_dpmaif_rxtx_sw_allocs()
237 tx_q->index = tx_idx; in t7xx_dpmaif_rxtx_sw_allocs()
238 tx_q->dpmaif_ctrl = dpmaif_ctrl; in t7xx_dpmaif_rxtx_sw_allocs()
239 ret = t7xx_dpmaif_txq_init(tx_q); in t7xx_dpmaif_rxtx_sw_allocs()
261 tx_q = &dpmaif_ctrl->txq[i]; in t7xx_dpmaif_rxtx_sw_allocs()
262 t7xx_dpmaif_txq_free(tx_q); in t7xx_dpmaif_rxtx_sw_allocs()
282 struct dpmaif_tx_queue *tx_q; in t7xx_dpmaif_sw_release() local
289 tx_q = &dpmaif_ctrl->txq[i]; in t7xx_dpmaif_sw_release()
290 t7xx_dpmaif_txq_free(tx_q); in t7xx_dpmaif_sw_release()
/linux/drivers/net/ethernet/intel/ice/
H A Dice_dcb_lib.h47 static inline bool ice_find_q_in_range(u16 low, u16 high, unsigned int tx_q) in ice_find_q_in_range() argument
49 return (tx_q >= low) && (tx_q < high); in ice_find_q_in_range()
/linux/net/nfc/nci/
H A Duart.c44 skb = skb_dequeue(&nu->tx_q); in nci_uart_dequeue()
56 return skb_queue_empty(&nu->tx_q); in nci_uart_queue_empty()
122 skb_queue_head_init(&nu->tx_q); in nci_uart_set_driver()
186 skb_queue_purge(&nu->tx_q); in nci_uart_tty_close()
363 skb_queue_tail(&nu->tx_q, skb); in nci_uart_send()
H A Ddata.c150 spin_lock_irqsave(&ndev->tx_q.lock, flags); in nci_queue_tx_data_frags()
153 __skb_queue_tail(&ndev->tx_q, skb_frag); in nci_queue_tx_data_frags()
155 spin_unlock_irqrestore(&ndev->tx_q.lock, flags); in nci_queue_tx_data_frags()
189 skb_queue_tail(&ndev->tx_q, skb); in nci_send_data()
H A Dcore.c543 skb_queue_purge(&ndev->tx_q); in nci_open_device()
580 skb_queue_purge(&ndev->tx_q); in nci_close_device()
1285 skb_queue_head_init(&ndev->tx_q); in nci_register_device()
1534 skb = skb_dequeue(&ndev->tx_q); in nci_tx_work()
H A Dntf.c94 if (!skb_queue_empty(&ndev->tx_q)) in nci_core_conn_credits_ntf_packet()
909 skb_queue_purge(&ndev->tx_q); in nci_rf_deactivate_ntf_packet()
/linux/drivers/net/wireless/mediatek/mt7601u/
H A Ddma.c312 struct mt7601u_tx_queue *q = &dev->tx_q[ep]; in mt7601u_dma_submit_tx()
477 if (!dev->tx_q) in mt7601u_free_tx()
481 mt7601u_free_tx_queue(&dev->tx_q[i]); in mt7601u_free_tx()
505 dev->tx_q = devm_kcalloc(dev->dev, __MT_EP_OUT_MAX, in mt7601u_alloc_tx()
506 sizeof(*dev->tx_q), GFP_KERNEL); in mt7601u_alloc_tx()
507 if (!dev->tx_q) in mt7601u_alloc_tx()
511 if (mt7601u_alloc_tx_queue(dev, &dev->tx_q[i])) in mt7601u_alloc_tx()
H A Dmt7601u.h201 struct mt7601u_tx_queue *tx_q; member
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt76_connac_mac.c92 if (wcid && pm->tx_q[i].wcid != wcid) in mt76_connac_free_pending_tx_skbs()
95 dev_kfree_skb(pm->tx_q[i].skb); in mt76_connac_free_pending_tx_skbs()
96 pm->tx_q[i].skb = NULL; in mt76_connac_free_pending_tx_skbs()
111 if (!pm->tx_q[qid].skb) { in mt76_connac_pm_queue_skb()
113 pm->tx_q[qid].wcid = wcid; in mt76_connac_pm_queue_skb()
114 pm->tx_q[qid].skb = skb; in mt76_connac_pm_queue_skb()
130 struct mt76_wcid *wcid = pm->tx_q[i].wcid; in mt76_connac_pm_dequeue_skbs()
133 if (!pm->tx_q[i].skb) in mt76_connac_pm_dequeue_skbs()
140 mt76_tx(phy, sta, wcid, pm->tx_q[i].skb); in mt76_connac_pm_dequeue_skbs()
141 pm->tx_q[ in mt76_connac_pm_dequeue_skbs()
[all...]
/linux/drivers/net/fddi/skfp/h/
H A Dhwmtm.h242 #define HWM_GET_TX_USED(smc,queue) (int) (smc)->hw.fp.tx_q[queue].tx_used
261 (smc)->hw.fp.tx_q[queue].tx_curr_put
H A Dfplustm.h191 struct s_smt_tx_queue tx_q[USED_QUEUES] ; member
/linux/net/bluetooth/
H A Dl2cap_core.c451 skb_queue_head_init(&chan->tx_q); in l2cap_chan_create()
578 skb_queue_head_init(&chan->tx_q); in l2cap_ecred_init()
685 skb_queue_purge(&chan->tx_q); in l2cap_chan_del()
700 skb_queue_purge(&chan->tx_q); in l2cap_chan_del()
1945 skb_queue_splice_tail_init(skbs, &chan->tx_q); in l2cap_streaming_send()
1947 while (!skb_queue_empty(&chan->tx_q)) { in l2cap_streaming_send()
1949 skb = skb_dequeue(&chan->tx_q); in l2cap_streaming_send()
2025 if (skb_queue_is_last(&chan->tx_q, skb)) in l2cap_ertm_send()
2028 chan->tx_send_head = skb_queue_next(&chan->tx_q, skb); in l2cap_ertm_send()
2035 chan->unacked_frames, skb_queue_len(&chan->tx_q)); in l2cap_ertm_send()
[all...]
/linux/drivers/net/ethernet/chelsio/cxgb3/
H A Dadapter.h208 struct netdev_queue *tx_q; /* associated netdev TX queue */ member
H A Dsge.c1992 netif_tx_wake_queue(qs->tx_q); in restart_tx()
2915 if (__netif_tx_trylock(qs->tx_q)) { in sge_timer_tx()
2918 __netif_tx_unlock(qs->tx_q); in sge_timer_tx()
3156 q->tx_q = netdevq; in t3_sge_alloc_qset()
/linux/drivers/net/fddi/skfp/
H A Dfplustm.c305 smc->hw.fp.tx[QUEUE_S] = queue = &smc->hw.fp.tx_q[QUEUE_S] ; in init_tx()
316 smc->hw.fp.tx[QUEUE_A0] = queue = &smc->hw.fp.tx_q[QUEUE_A0] ; in init_tx()
/linux/include/net/bluetooth/
H A Dl2cap.h604 struct sk_buff_head tx_q;
607 struct sk_buff_head tx_q; global() member

12