Home
last modified time | relevance | path

Searched +full:queue +full:- +full:pkt +full:- +full:tx (Results 1 – 25 of 202) sorted by relevance

123456789

/linux/Documentation/devicetree/bindings/net/
H A Dintel,ixp4xx-hss.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/net/intel,ixp4xx-hss.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Linus Walleij <linus.walleij@linaro.org>
15 Processing Engine) and the IXP4xx Queue Manager to process
20 const: intel,ixp4xx-hss
26 intel,npe-handle:
27 $ref: /schemas/types.yaml#/definitions/phandle-array
30 - description: phandle to the NPE this HSS instance is using
[all …]
/linux/drivers/net/ethernet/google/gve/
H A Dgve_tx_dqo.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 * Copyright (C) 2015-2021 Google, Inc.
19 static bool gve_has_free_tx_qpl_bufs(struct gve_tx_ring *tx, int count) in gve_has_free_tx_qpl_bufs() argument
23 if (!tx->dqo.qpl) in gve_has_free_tx_qpl_bufs()
26 num_avail = tx->dqo.num_tx_qpl_bufs - in gve_has_free_tx_qpl_bufs()
45 gve_alloc_tx_qpl_buf(struct gve_tx_ring * tx) gve_alloc_tx_qpl_buf() argument
70 gve_free_tx_qpl_bufs(struct gve_tx_ring * tx,struct gve_tx_pending_packet_dqo * pkt) gve_free_tx_qpl_bufs() argument
71 gve_free_tx_qpl_bufs(struct gve_tx_ring * tx,struct gve_tx_pending_packet_dqo * pkt) gve_free_tx_qpl_bufs() argument
102 gve_has_pending_packet(struct gve_tx_ring * tx) gve_has_pending_packet() argument
118 struct gve_tx_ring *tx = &priv->tx[tx_qid]; gve_xdp_tx_flush_dqo() local
124 gve_alloc_pending_packet(struct gve_tx_ring * tx) gve_alloc_pending_packet() argument
153 gve_free_pending_packet(struct gve_tx_ring * tx,struct gve_tx_pending_packet_dqo * pending_packet) gve_free_pending_packet() argument
172 gve_tx_clean_pending_packets(struct gve_tx_ring * tx) gve_tx_clean_pending_packets() argument
204 struct gve_tx_ring *tx = &priv->tx[idx]; gve_tx_stop_ring_dqo() local
217 gve_tx_free_ring_dqo(struct gve_priv * priv,struct gve_tx_ring * tx,struct gve_tx_alloc_rings_cfg * cfg) gve_tx_free_ring_dqo() argument
263 gve_tx_qpl_buf_init(struct gve_tx_ring * tx) gve_tx_qpl_buf_init() argument
289 struct gve_tx_ring *tx = &priv->tx[idx]; gve_tx_start_ring_dqo() local
300 gve_tx_alloc_ring_dqo(struct gve_priv * priv,struct gve_tx_alloc_rings_cfg * cfg,struct gve_tx_ring * tx,int idx) gve_tx_alloc_ring_dqo() argument
408 struct gve_tx_ring *tx = cfg->tx; gve_tx_alloc_rings_dqo() local
448 struct gve_tx_ring *tx = cfg->tx; gve_tx_free_rings_dqo() local
462 num_avail_tx_slots(const struct gve_tx_ring * tx) num_avail_tx_slots() argument
470 gve_has_tx_slots_available(struct gve_tx_ring * tx,u32 slots_req) gve_has_tx_slots_available() argument
485 gve_has_avail_slots_tx_dqo(struct gve_tx_ring * tx,int desc_count,int buf_count) gve_has_avail_slots_tx_dqo() argument
496 gve_maybe_stop_tx_dqo(struct gve_tx_ring * tx,int desc_count,int buf_count) gve_maybe_stop_tx_dqo() argument
537 gve_tx_fill_pkt_desc_dqo(struct gve_tx_ring * tx,u32 * desc_idx,bool enable_csum,u32 len,u64 addr,s16 compl_tag,bool eop,bool is_gso) gve_tx_fill_pkt_desc_dqo() argument
648 gve_tx_update_tail(struct gve_tx_ring * tx,u32 desc_idx) gve_tx_update_tail() argument
667 gve_tx_add_skb_no_copy_dqo(struct gve_tx_ring * tx,struct sk_buff * skb,struct gve_tx_pending_packet_dqo * pkt,s16 completion_tag,u32 * desc_idx,bool is_gso) gve_tx_add_skb_no_copy_dqo() argument
669 gve_tx_add_skb_no_copy_dqo(struct gve_tx_ring * tx,struct sk_buff * skb,struct gve_tx_pending_packet_dqo * pkt,s16 completion_tag,u32 * desc_idx,bool is_gso) gve_tx_add_skb_no_copy_dqo() argument
747 gve_tx_buf_get_addr(struct gve_tx_ring * tx,s16 index,void ** va,dma_addr_t * dma_addr) gve_tx_buf_get_addr() argument
758 gve_tx_add_skb_copy_dqo(struct gve_tx_ring * tx,struct sk_buff * skb,struct gve_tx_pending_packet_dqo * pkt,s16 completion_tag,u32 * desc_idx,bool is_gso) gve_tx_add_skb_copy_dqo() argument
760 gve_tx_add_skb_copy_dqo(struct gve_tx_ring * tx,struct sk_buff * skb,struct gve_tx_pending_packet_dqo * pkt,s16 completion_tag,u32 * desc_idx,bool is_gso) gve_tx_add_skb_copy_dqo() argument
811 gve_tx_add_skb_dqo(struct gve_tx_ring * tx,struct sk_buff * skb) gve_tx_add_skb_dqo() argument
816 struct gve_tx_pending_packet_dqo *pkt; gve_tx_add_skb_dqo() local
960 gve_try_tx_skb(struct gve_priv * priv,struct gve_tx_ring * tx,struct sk_buff * skb) gve_try_tx_skb() argument
1010 gve_xsk_reorder_queue_push_dqo(struct gve_tx_ring * tx,u16 completion_tag) gve_xsk_reorder_queue_push_dqo() argument
1021 gve_xsk_reorder_queue_head(struct gve_tx_ring * tx) gve_xsk_reorder_queue_head() argument
1036 gve_xsk_reorder_queue_pop_dqo(struct gve_tx_ring * tx) gve_xsk_reorder_queue_pop_dqo() argument
1046 struct gve_tx_ring *tx; gve_tx_dqo() local
1065 gve_xsk_tx_dqo(struct gve_priv * priv,struct gve_tx_ring * tx,int budget) gve_xsk_tx_dqo() argument
1075 struct gve_tx_pending_packet_dqo *pkt; gve_xsk_tx_dqo() local
1121 add_to_list(struct gve_tx_ring * tx,struct gve_index_list * list,struct gve_tx_pending_packet_dqo * pending_packet) add_to_list() argument
1138 remove_from_list(struct gve_tx_ring * tx,struct gve_index_list * list,struct gve_tx_pending_packet_dqo * pkt) remove_from_list() argument
1140 remove_from_list(struct gve_tx_ring * tx,struct gve_index_list * list,struct gve_tx_pending_packet_dqo * pkt) remove_from_list() argument
1162 gve_unmap_packet(struct device * dev,struct gve_tx_pending_packet_dqo * pkt) gve_unmap_packet() argument
1184 gve_handle_packet_completion(struct gve_priv * priv,struct gve_tx_ring * tx,bool is_napi,u16 compl_tag,u64 * bytes,u64 * pkts,bool is_reinjection) gve_handle_packet_completion() argument
1267 gve_handle_miss_completion(struct gve_priv * priv,struct gve_tx_ring * tx,u16 compl_tag,u64 * bytes,u64 * pkts) gve_handle_miss_completion() argument
1299 remove_miss_completions(struct gve_priv * priv,struct gve_tx_ring * tx) remove_miss_completions() argument
1345 remove_timed_out_completions(struct gve_priv * priv,struct gve_tx_ring * tx) remove_timed_out_completions() argument
1369 gve_tx_process_xsk_completions(struct gve_tx_ring * tx) gve_tx_process_xsk_completions() argument
1390 gve_clean_tx_done_dqo(struct gve_priv * priv,struct gve_tx_ring * tx,struct napi_struct * napi) gve_clean_tx_done_dqo() argument
1481 struct gve_tx_ring *tx = block->tx; gve_tx_poll_dqo() local
1507 struct gve_tx_ring *tx; gve_xsk_tx_poll_dqo() local
1519 struct gve_tx_ring *tx = block->tx; gve_xdp_poll_dqo() local
1529 gve_xdp_xmit_one_dqo(struct gve_priv * priv,struct gve_tx_ring * tx,struct xdp_frame * xdpf) gve_xdp_xmit_one_dqo() argument
1532 struct gve_tx_pending_packet_dqo *pkt; gve_xdp_xmit_one_dqo() local
1580 struct gve_tx_ring *tx; gve_xdp_xmit_dqo() local
[all...]
H A Dgve_tx.c1 // SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 * Copyright (C) 2015-2021 Google, Inc.
20 iowrite32be(val, &priv->db_bar2[be32_to_cpu(q_resources->db_index)]); in gve_tx_put_doorbell()
26 struct gve_tx_ring *tx = &priv->tx[tx_qid]; in gve_xdp_tx_flush() local
28 gve_tx_put_doorbell(priv, tx in gve_xdp_tx_flush()
157 gve_clean_xdp_done(struct gve_priv * priv,struct gve_tx_ring * tx,u32 to_do) gve_clean_xdp_done() argument
203 struct gve_tx_ring *tx = &priv->tx[idx]; gve_tx_stop_ring_gqi() local
217 gve_tx_free_ring_gqi(struct gve_priv * priv,struct gve_tx_ring * tx,struct gve_tx_alloc_rings_cfg * cfg) gve_tx_free_ring_gqi() argument
253 struct gve_tx_ring *tx = &priv->tx[idx]; gve_tx_start_ring_gqi() local
263 gve_tx_alloc_ring_gqi(struct gve_priv * priv,struct gve_tx_alloc_rings_cfg * cfg,struct gve_tx_ring * tx,int idx) gve_tx_alloc_ring_gqi() argument
336 struct gve_tx_ring *tx = cfg->tx; gve_tx_alloc_rings_gqi() local
376 struct gve_tx_ring *tx = cfg->tx; gve_tx_free_rings_gqi() local
396 gve_tx_avail(struct gve_tx_ring * tx) gve_tx_avail() argument
401 gve_skb_fifo_bytes_required(struct gve_tx_ring * tx,struct sk_buff * skb) gve_skb_fifo_bytes_required() argument
446 gve_can_tx(struct gve_tx_ring * tx,int bytes_required) gve_can_tx() argument
459 gve_maybe_stop_tx(struct gve_priv * priv,struct gve_tx_ring * tx,struct sk_buff * skb) gve_maybe_stop_tx() argument
562 gve_tx_add_skb_copy(struct gve_priv * priv,struct gve_tx_ring * tx,struct sk_buff * skb) gve_tx_add_skb_copy() argument
636 gve_tx_add_skb_no_copy(struct gve_priv * priv,struct gve_tx_ring * tx,struct sk_buff * skb) gve_tx_add_skb_no_copy() argument
740 struct gve_tx_ring *tx; gve_tx() local
779 gve_tx_fill_xdp(struct gve_priv * priv,struct gve_tx_ring * tx,void * data,int len,void * frame_p,bool is_xsk) gve_tx_fill_xdp() argument
830 struct gve_tx_ring *tx; gve_xdp_xmit_gqi() local
865 gve_xdp_xmit_one(struct gve_priv * priv,struct gve_tx_ring * tx,void * data,int len,void * frame_p) gve_xdp_xmit_one() argument
881 gve_clean_tx_done(struct gve_priv * priv,struct gve_tx_ring * tx,u32 to_do,bool try_to_wake) gve_clean_tx_done() argument
938 gve_tx_load_event_counter(struct gve_priv * priv,struct gve_tx_ring * tx) gve_tx_load_event_counter() argument
946 gve_xsk_tx(struct gve_priv * priv,struct gve_tx_ring * tx,int budget) gve_xsk_tx() argument
977 struct gve_tx_ring *tx; gve_xsk_tx_poll() local
997 struct gve_tx_ring *tx = block->tx; gve_xdp_poll() local
1013 struct gve_tx_ring *tx = block->tx; gve_tx_poll() local
1035 gve_tx_clean_pending(struct gve_priv * priv,struct gve_tx_ring * tx) gve_tx_clean_pending() argument
[all...]
H A Dgve.h1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT)
4 * Copyright (C) 2015-2024 Google LLC
10 #include <linux/dma-mapping.h>
35 /* 1 for management, 1 for rx, 1 for tx */
38 /* Numbers of gve tx/rx stats in stats report. */
45 /* Numbers of NIC tx/rx stats in stats report. */
51 #define GVE_DATA_SLOT_ADDR_PAGE_MASK (~(PAGE_SIZE - 1))
71 (GVE_ADMINQ_BUFFER_SIZE / sizeof(((struct gve_adminq_queried_flow_rule *)0)->locatio
345 struct gve_tx_pkt_desc pkt; /* first desc for a packet */ global() member
389 struct gve_tx_pkt_desc_dqo pkt; global() member
668 struct gve_tx_ring *tx; /* tx rings on this block */ global() member
716 struct gve_tx_ring *tx; global() member
794 struct gve_tx_ring *tx; /* array of tx_cfg.num_queues */ global() member
[all...]
/linux/drivers/staging/rtl8723bs/os_dep/
H A Dxmit_linux.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright(c) 2007 - 2012 Realtek Corporation. All rights reserved.
12 return (pfile->buf_len - ((SIZE_PTR)(pfile->cur_addr) - (SIZE_PTR)(pfile->buf_start))); in rtw_remainder_len()
17 pfile->pkt = pktptr; in _rtw_open_pktfile()
18 pfile->cur_addr = pfile->buf_start = pktptr->data; in _rtw_open_pktfile()
19 pfile->pkt_len = pfile->buf_len = pktptr->len; in _rtw_open_pktfile()
21 pfile->cur_buffer = pfile->buf_start; in _rtw_open_pktfile()
32 skb_copy_bits(pfile->pkt, pfile->buf_len - pfile->pkt_len, rmem, len); in _rtw_pktfile_read()
34 pfile->cur_addr += len; in _rtw_pktfile_read()
35 pfile->pkt_len -= len; in _rtw_pktfile_read()
[all …]
/linux/drivers/net/ethernet/meta/fbnic/
H A Dfbnic_txrx.c1 // SPDX-License-Identifier: GPL-2.0
38 #define FBNIC_XMIT_CB(__skb) ((struct fbnic_xmit_cb *)((__skb)->cb))
44 unsigned long csr_base = (unsigned long)ring->doorbell; in fbnic_ring_csr_base()
46 csr_base &= ~(FBNIC_QUEUE_STRIDE * sizeof(u32) - 1); in fbnic_ring_csr_base()
66 * fbnic_ts40_to_ns() - convert descriptor timestamp to PHC time
84 s = u64_stats_fetch_begin(&fbn->time_seq); in fbnic_ts40_to_ns()
85 offset = READ_ONCE(fbn->time_offset); in fbnic_ts40_to_ns()
86 } while (u64_stats_fetch_retry(&fbn->time_se in fbnic_ts40_to_ns()
956 fbnic_pkt_prepare(struct fbnic_napi_vector * nv,u64 rcd,struct fbnic_pkt_buff * pkt,struct fbnic_q_triad * qt) fbnic_pkt_prepare() argument
996 fbnic_add_rx_frag(struct fbnic_napi_vector * nv,u64 rcd,struct fbnic_pkt_buff * pkt,struct fbnic_q_triad * qt) fbnic_add_rx_frag() argument
1025 fbnic_put_pkt_buff(struct fbnic_q_triad * qt,struct fbnic_pkt_buff * pkt,int budget) fbnic_put_pkt_buff() argument
1052 fbnic_build_skb(struct fbnic_napi_vector * nv,struct fbnic_pkt_buff * pkt) fbnic_build_skb() argument
1068 fbnic_pkt_tx(struct fbnic_napi_vector * nv,struct fbnic_pkt_buff * pkt) fbnic_pkt_tx() argument
1146 fbnic_run_xdp(struct fbnic_napi_vector * nv,struct fbnic_pkt_buff * pkt) fbnic_run_xdp() argument
1188 fbnic_rx_tstamp(struct fbnic_napi_vector * nv,u64 rcd,struct fbnic_pkt_buff * pkt) fbnic_rx_tstamp() argument
1234 struct fbnic_pkt_buff *pkt; fbnic_clean_rcq() local
2316 static const struct fbnic_idle_regs tx[] = { fbnic_wait_all_queues_idle() local
[all...]
/linux/arch/arm/boot/dts/intel/ixp/
H A Dintel-ixp42x-goramo-multilink.dts1 // SPDX-License-Identifier: ISC
5 * - MultiLink Basic (a box)
6 * - MultiLink Max (19" rack mount)
9 * This is one of the few devices supporting the IXP4xx High-Speed Serial
14 /dts-v1/;
16 #include "intel-ixp42x.dtsi"
17 #include <dt-bindings/input/input.h>
21 compatible = "goramo,multilink-router", "intel,ixp42x";
22 #address-cells = <1>;
23 #size-cells = <1>;
[all …]
/linux/drivers/net/ethernet/intel/ixgbevf/
H A Ddefines.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 1999 - 2024 Intel Corporation. */
37 #define IXGBE_RXDCTL_ENABLE 0x02000000 /* Enable specific Rx Queue */
38 #define IXGBE_TXDCTL_ENABLE 0x02000000 /* Enable specific Tx Queue */
58 #define IXGBE_RXDCTL_ENABLE 0x02000000 /* Enable specific Rx Queue */
64 #define IXGBE_DCA_TXCTRL_TX_WB_RO_EN BIT(11) /* Tx Desc writeback RO bit */
97 #define IXGBE_RXD_STAT_PIF 0x80 /* passed in-exact filter */
101 #define IXGBE_RXD_STAT_DYNINT 0x800 /* Pkt caused INT via DYNINT */
132 #define IXGBE_RXDADV_STAT_VP IXGBE_RXD_STAT_VP /* IEEE VLAN Pkt */
133 #define IXGBE_RXDADV_STAT_MASK 0x000FFFFF /* Stat/NEXTP: bit 0-19 */
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dsge.c2 * This file is part of the Chelsio T4 PCI-E SR-IOV Virtual Function Ethernet
5 * Copyright (c) 2009-2010 Chelsio Communications, Inc. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
43 #include <linux/dma-mapping.h>
59 * Egress Queue sizes, producer and consumer indices are all in units
61 * concerned, the free list is an Egress Queue (the host produces free
63 * 64-bit PCI DMA addresses.
70 * Max number of TX descriptors we clean up at a time. Should be
84 * Period of the Rx queue check timer. This timer is infrequent as it
[all …]
/linux/drivers/tty/ipwireless/
H A Dhardware.c1 // SPDX-License-Identifier: GPL-2.0
13 * Copyright (C) 2006-2007 Jiri Kosina
60 timing_stats.read_time += (jiffies - start_time); in end_read_timing()
67 timing_stats.write_time += (jiffies - start_time); in end_write_timing()
74 unsigned long since = jiffies - timing_stats.last_report_time; in report_timing()
83 ": %u us elapsed - read %lu bytes in %u us, wrote %lu bytes in %u us\n", in report_timing()
163 #define HW_VERSION_UNKNOWN -1
175 #define IOTXR 0x0E /* Tx Fifo Register (Embedded to Host) */
205 unsigned short memreg_tx_old; /* TX Register (R/W) */
258 * a non-zero serial number (indicating the new firmware). Thereafter,
[all …]
/linux/Documentation/devicetree/bindings/firmware/
H A Dintel,ixp4xx-network-processing-engine.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
4 ---
5 $id: http://devicetree.org/schemas/firmware/intel,ixp4xx-network-processing-engine.yaml#
6 $schema: http://devicetree.org/meta-schemas/core.yaml#
11 - Linus Walleij <linus.walleij@linaro.org>
24 - items:
25 - const: intel,ixp4xx-network-processing-engine
29 - description: NPE0 (NPE-A) register range
30 - description: NPE1 (NPE-B) register range
31 - description: NPE2 (NPE-C) register range
[all …]
/linux/drivers/net/wireless/intel/iwlegacy/
H A D4965-mac.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
11 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
22 #include <linux/dma-mapping.h>
70 IL_ERR("Tx flush command to flush out all frames\n"); in il4965_check_abort_status()
71 if (!test_bit(S_EXIT_PENDING, &il->status)) in il4965_check_abort_status()
72 queue_work(il->workqueue, &il->tx_flush); in il4965_check_abort_status()
89 spin_lock_irqsave(&rxq->lock, flags); in il4965_rx_queue_reset()
90 INIT_LIST_HEAD(&rxq->rx_free); in il4965_rx_queue_reset()
91 INIT_LIST_HEAD(&rxq->rx_used); in il4965_rx_queue_reset()
[all …]
H A Dcommon.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
19 #include <linux/dma-mapping.h>
39 return -ETIMEDOUT; in _il_poll_bit()
48 spin_lock_irqsave(&p->reg_lock, reg_flags); in il_set_bit()
50 spin_unlock_irqrestore(&p->reg_lock, reg_flags); in il_set_bit()
59 spin_lock_irqsave(&p->reg_lock, reg_flags); in il_clear_bit()
61 spin_unlock_irqrestore(&p->reg_lock, reg_flags); in il_clear_bit()
79 * to/from host DRAM when sleeping/waking for power-saving. in _il_grab_nic_access()
[all …]
H A D3945.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
16 #include <linux/dma-mapping.h>
94 * il3945_disable_events - Disable selected events in uCode event log
99 * Use for only special debugging. This function is just a placeholder as-is,
107 u32 disable_ptr; /* SRAM address of event-disable bitmap array */ in il3945_disable_events()
110 0x00000000, /* 31 - 0 Event id numbers */ in il3945_disable_events()
111 0x00000000, /* 63 - 32 */ in il3945_disable_events()
112 0x00000000, /* 95 - 64 */ in il3945_disable_events()
[all …]
H A Dcommon.h1 /* SPDX-License-Identifier: GPL-2.0-only */
4 * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved.
8 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
31 #define IL_ERR(f, a...) dev_err(&il->pci_dev->dev, f, ## a)
32 #define IL_WARN(f, a...) dev_warn(&il->pci_dev->dev, f, ## a)
33 #define IL_WARN_ONCE(f, a...) dev_warn_once(&il->pci_dev->dev, f, ## a)
34 #define IL_INFO(f, a...) dev_info(&il->pci_dev->dev, f, ## a)
46 #define U32_PAD(n) ((4-(n))&0x3)
48 /* CT-KILL constants */
56 * Use default noise value of -127 ... this is below the range of measurable
[all …]
/linux/drivers/usb/host/
H A Dfhci-tds.c1 // SPDX-License-Identifier: GPL-2.0+
7 * Jerry Huang <Chang-Ming.Huang@freescale.com>
33 #define TD_CNF 0x0200 /* CNF - Must be always 1 */
34 #define TD_LSP 0x0100 /* Low-speed transaction */
84 if (!ep->already_pushed_dummy_bd) { in fhci_push_dummy_bd()
85 u16 td_status = in_be16(&ep->empty_td->status); in fhci_push_dummy_bd()
87 out_be32(&ep->empty_td->buf_ptr, DUMMY_BD_BUFFER); in fhci_push_dummy_bd()
89 ep->empty_td = next_bd(ep->td_base, ep->empty_td, td_status); in fhci_push_dummy_bd()
90 ep->already_pushed_dummy_bd = true; in fhci_push_dummy_bd()
100 ep = usb->ep0; in fhci_ep0_free()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dtx.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
14 * struct iwl_mld_txq - TX Queue data
18 * @status.allocated: Indicates that the queue was allocated.
19 * @status.stop_full: Indicates that the queue is full and should stop TXing.
21 * @tx_request: makes sure that if there are multiple threads that want to tx
41 INIT_LIST_HEAD(&mld_txq->list); in iwl_mld_init_txq()
42 atomic_set(&mld_txq->tx_request, 0); in iwl_mld_init_txq()
48 return (void *)txq->drv_priv; in iwl_mld_txq_from_mac80211()
58 struct iwl_rx_packet *pkt);
67 struct iwl_rx_packet *pkt);
/linux/drivers/net/wireless/marvell/libertas_tf/
H A Dlibertas_tf.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
5 * Copyright (C) 2003-2006, Marvell International Ltd.
88 * with a Tx control node. The driver maintains 8 RxPD descriptors for
205 /** command-related variables */
260 /* 802.11-related definitions */
264 /* Current Tx packet status */
266 /* Tx control */
269 /* Tx packet length */
277 /* Pkt Priority */
279 /* Pkt Trasnit Power control */
[all …]
/linux/drivers/net/ethernet/chelsio/cxgb4/
H A Dsge.c4 * Copyright (c) 2003-2014 Chelsio Communications, Inc. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
40 #include <linux/dma-mapping.h>
68 # define FL_PG_ORDER (16 - PAGE_SHIFT)
82 * Max number of Tx descriptors we clean up at a time. Should be modest as
97 * Period of the Rx queue check timer. This timer is infrequent as it has
103 * Period of the Tx queue check timer.
108 * Max number of Tx descriptors to be reclaimed by the Tx timer.
115 #define NOMEM_TMR_IDX (SGE_NTIMERS - 1)
[all …]
/linux/drivers/net/ethernet/qlogic/qed/
H A Dqed_ll2.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */
3 * Copyright (c) 2015-2017 QLogic Corporation
4 * Copyright (c) 2019-2020 Marvell International Ltd.
30 (QED_MAX_NUM_OF_LL2_CONNS_PF - QED_MAX_NUM_OF_LEGACY_LL2_CONNS_PF)
62 /* Lock protecting the Rx queue manipulation */
79 /* Lock protecting the Tx queue manipulation */
122 * starts rx & tx (if relevant) queues pair.
126 * @cxt: Pointer to the hw-function [opaque to some].
136 * @cxt: Pointer to the hw-function [opaque to some].
145 * qed_ll2_post_rx_buffer(): Submit buffers to LL2 Rx queue.
[all …]
/linux/net/caif/
H A Dcaif_usb.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) ST-Ericsson AB 2011
23 MODULE_DESCRIPTION("ST-Ericsson CAIF modem protocol USB support");
28 #define CFUSB_MAX_HEADLEN (CFUSB_PAD_DESCR_SZ + CFUSB_ALIGNMENT-1)
29 #define STE_USB_VID 0x04cc /* USB Product ID for ST-Ericsson */
39 static int cfusbl_receive(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_receive() argument
44 cfpkt_extr_head(pkt, &hpad, 1); in cfusbl_receive()
45 cfpkt_extr_head(pkt, NULL, hpad); in cfusbl_receive()
46 return layr->up->receive(layr->up, pkt); in cfusbl_receive()
49 static int cfusbl_transmit(struct cflayer *layr, struct cfpkt *pkt) in cfusbl_transmit() argument
[all …]
/linux/Documentation/networking/
H A Daf_xdp.rst1 .. SPDX-License-Identifier: GPL-2.0
20 XDP programs to redirect frames to a memory buffer in a user-space
25 TX ring. A socket can receive packets on the RX ring and it can send
26 packets on the TX ring. These rings are registered and sized with the
28 to have at least one of these rings for each socket. An RX or TX
30 UMEM. RX and TX can share the same UMEM so that a packet does not have
31 to be copied between RX and TX. Moreover, if a packet needs to be kept
48 space, for either TX or RX. Thus, the frame addrs appearing in the
50 TX ring. In summary, the RX and FILL rings are used for the RX path
51 and the TX and COMPLETION rings are used for the TX path.
[all …]
/linux/drivers/net/arcnet/
H A Darcnet.c2 * Linux ARCnet driver - device-independent routines
5 * Written 1994-1999 by Avery Pennarun.
6 * Written 1999-2000 by Martin Mares <mj@ucw.cz>.
27 * - Crynwr arcnet.com/arcether.com packet drivers.
28 * - arcnet.c v0.00 dated 1/1/94 and apparently by
29 * Donald Becker - it didn't work :)
30 * - skeleton.c v0.05 dated 11/16/93 by Donald Becker
32 * - RFC's 1201 and 1051 - re: TCP/IP over ARCnet
33 * - The official ARCnet COM9026 data sheets (!) thanks to
35 * - The official ARCnet COM20020 data sheets.
[all …]
/linux/drivers/net/ethernet/intel/igb/
H A De1000_82575.h1 /* SPDX-License-Identifier: GPL-2.0 */
2 /* Copyright(c) 2007 - 2018 Intel Corporation. */
62 /* Receive Descriptor - Advanced */
92 #define E1000_RXDADV_STAT_TS 0x10000 /* Pkt was time stamped */
95 /* Transmit Descriptor - Advanced */
117 #define E1000_ADVTXD_DCMD_VLE 0x40000000 /* VLAN pkt enable */
141 #define E1000_TXDCTL_QUEUE_ENABLE 0x02000000 /* Enable specific Tx Queue */
142 /* Tx Queue Arbitration Priority 0=low, 1=high */
145 #define E1000_RXDCTL_QUEUE_ENABLE 0x02000000 /* Enable specific Rx Queue */
157 #define E1000_DCA_TXCTRL_CPUID_MASK 0x0000001F /* Tx CPUID Mask */
[all …]
/linux/drivers/net/ethernet/netronome/nfp/nfd3/
H A Dnfd3.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
2 /* Copyright (C) 2015-2019 Netronome Systems, Inc. */
10 /* TX descriptor format */
16 /* Flags in the host TX descriptor */
31 u8 offset_eop; /* Offset in buf where pkt starts +
38 u8 flags; /* TX Flags, see @NFD3_DESC_TX_* */
54 * struct nfp_nfd3_tx_buf - software TX buffer descriptor
59 * @fidx: Fragment index (-1 for the head and [0..nr_frags-1] for frags)
62 * Will be 1 for all non-TSO packets.
64 * buffer from the TX queue (for AF_XDP).
[all …]

123456789