/openbmc/linux/tools/net/ynl/samples/ |
H A D | ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 9 #include "ethtool-user.h" 16 struct ethtool_rings_get_list *rings; in main() local 23 creq._present.header = 1; /* ethtool needs an empty nest, sigh */ in main() 30 printf(" %8s: ", dev->header.dev_name); in main() 31 if (dev->_present.rx_count) in main() 32 printf("rx %d ", dev->rx_count); in main() 33 if (dev->_present.tx_count) in main() 34 printf("tx %d ", dev->tx_count); in main() 35 if (dev->_present.combined_count) in main() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/soc/qcom/ |
H A D | qcom,wcnss.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andy Gross <agross@kernel.org> 11 - Bjorn Andersson <bjorn.andersson@linaro.org> 21 firmware-name: 32 - qcom,riva" 33 - qcom,pronto" 35 qcom,smd-channels: 46 - $ref: /schemas/net/bluetooth/bluetooth-controller.yaml# [all …]
|
/openbmc/linux/Documentation/networking/ |
H A D | af_xdp.rst | 1 .. SPDX-License-Identifier: GPL-2.0 20 XDP programs to redirect frames to a memory buffer in a user-space 24 syscall. Associated with each XSK are two rings: the RX ring and the 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 37 one of the rings references a frame by referencing its addr. The addr 42 UMEM also has two rings: the FILL ring and the COMPLETION ring. The [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/broadwellx/ |
H A D | uncore-interconnect.json | 6 …-width (L0) mode, flits are made up of four fits, each of which contains 20 bits of data (along wi… 15 …-width (L0) mode, flits are made up of four fits, each of which contains 20 bits of data (along wi… 118 … "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 122 …"PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Atomic Transactions as Secondary", 127 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 131 … "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Read Transactions as Secondary", 136 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 140 … "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Write Transactions as Secondary", 145 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 149 "PublicDescription": "Counts Timeouts - Set 0 : Fastpath Rejects", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/haswellx/ |
H A D | uncore-interconnect.json | 6 …-width (L0) mode, flits are made up of four fits, each of which contains 20 bits of data (along wi… 15 …-width (L0) mode, flits are made up of four fits, each of which contains 20 bits of data (along wi… 118 … "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 122 …"PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Atomic Transactions as Secondary", 127 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 131 … "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Read Transactions as Secondary", 136 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 140 … "PublicDescription": "Counts Timeouts - Set 0 : Cache Inserts of Write Transactions as Secondary", 145 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 149 "PublicDescription": "Counts Timeouts - Set 0 : Fastpath Rejects", [all …]
|
/openbmc/linux/drivers/net/ethernet/netronome/nfp/ |
H A D | nfp_net_ctrl.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */ 2 /* Copyright (C) 2015-2018 Netronome Systems, Inc. */ 17 /* 64-bit per app capabilities */ 23 * THB-350, 32k needs to be reserved. 51 #define NFP_NET_META_IPSEC 9 /* IPsec SA index for tx and rx */ 61 /* Hash type pre-pended when a RSS hash was computed */ 74 * %NFP_NET_TXR_MAX: Maximum number of TX rings 75 * %NFP_NET_RXR_MAX: Maximum number of RX rings 80 /* Read/Write config words (0x0000 - 0x002c) 83 * %NFP_NET_CFG_TXRS_ENABLE: Bitmask of enabled TX rings [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/skylakex/ |
H A D | uncore-interconnect.json | 132 "BriefDescription": "FAF allocation -- sent to ADQ", 155 … "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 163 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 171 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 179 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 187 "BriefDescription": "Misc Events - Set 0; Fastpath Requests", 195 "BriefDescription": "Misc Events - Set 0; Fastpath Transfers From Primary to Secondary", 203 "BriefDescription": "Misc Events - Set 0; Prefetch Ack Hints From Primary to Secondary", 211 "BriefDescription": "Misc Events - Set 0", 219 "BriefDescription": "Misc Events - Set 1; Lost Forward", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/jaketown/ |
H A D | uncore-interconnect.json | 147 "BriefDescription": "BL Ingress Occupancy - DRS", 169 "BriefDescription": "BL Ingress Occupancy - NCB", 191 "BriefDescription": "BL Ingress Occupancy - NCS", 228 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 237 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 246 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 295 …er of cycles when there are pending write ACK's in the switch but the switch->IRP pipeline is not … 315 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress Credits", 324 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress and RBT", 333 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - RBT Not Set", [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/cascadelakex/ |
H A D | uncore-interconnect.json | 132 "BriefDescription": "FAF allocation -- sent to ADQ", 155 … "BriefDescription": "Misc Events - Set 0; Cache Inserts of Atomic Transactions as Secondary", 163 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Read Transactions as Secondary", 171 "BriefDescription": "Misc Events - Set 0; Cache Inserts of Write Transactions as Secondary", 179 "BriefDescription": "Misc Events - Set 0; Fastpath Rejects", 187 "BriefDescription": "Misc Events - Set 0; Fastpath Requests", 195 "BriefDescription": "Misc Events - Set 0; Fastpath Transfers From Primary to Secondary", 203 "BriefDescription": "Misc Events - Set 0; Prefetch Ack Hints From Primary to Secondary", 211 "BriefDescription": "Misc Events - Set 0", 219 "BriefDescription": "Misc Events - Set 1; Lost Forward", [all …]
|
/openbmc/linux/drivers/net/ethernet/google/gve/ |
H A D | gve.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR MIT) 4 * Copyright (C) 2015-2021 Google, Inc. 10 #include <linux/dma-mapping.h> 30 /* 1 for management, 1 for rx, 1 for tx */ 33 /* Numbers of gve tx/rx stats in stats report. */ 40 /* Numbers of NIC tx/rx stats in stats report. */ 44 #define GVE_DATA_SLOT_ADDR_PAGE_MASK (~(PAGE_SIZE - 1)) 63 /* 2K buffers for DQO-QPL */ 69 * allocs and uses a non-qpl page on the receive path of DQO QPL to free 161 /* Linked list index to next element in the list, or -1 if none */ [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/icelakex/ |
H A D | uncore-interconnect.json | 96 "BriefDescription": "FAF allocation -- sent to ADQ", 127 … "BriefDescription": "Counts Timeouts - Set 0 : Cache Inserts of Atomic Transactions as Secondary", 135 … "BriefDescription": "Counts Timeouts - Set 0 : Cache Inserts of Read Transactions as Secondary", 143 … "BriefDescription": "Counts Timeouts - Set 0 : Cache Inserts of Write Transactions as Secondary", 151 "BriefDescription": "Counts Timeouts - Set 0 : Fastpath Rejects", 159 "BriefDescription": "Counts Timeouts - Set 0 : Fastpath Requests", 167 … "BriefDescription": "Counts Timeouts - Set 0 : Fastpath Transfers From Primary to Secondary", 175 … "BriefDescription": "Counts Timeouts - Set 0 : Prefetch Ack Hints From Primary to Secondary", 183 "BriefDescription": "Counts Timeouts - Set 0 : Slow path fwpf didn't find prefetch", 191 "BriefDescription": "Misc Events - Set 1 : Lost Forward", [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/fm10k/ |
H A D | fm10k_main.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2019 Intel Corporation. */ 18 "Copyright(c) 2013 - 2019 Intel Corporation."; 28 * fm10k_init_module - Driver Registration Routine 44 return -ENOMEM; in fm10k_init_module() 59 * fm10k_exit_module - Driver Exit Cleanup Routine 78 struct page *page = bi->page; in fm10k_alloc_mapped_page() 88 rx_ring->rx_stats.alloc_failed++; in fm10k_alloc_mapped_page() 93 dma = dma_map_page(rx_ring->dev, page, 0, PAGE_SIZE, DMA_FROM_DEVICE); in fm10k_alloc_mapped_page() 98 if (dma_mapping_error(rx_ring->dev, dma)) { in fm10k_alloc_mapped_page() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_lib.c | 1 // SPDX-License-Identifier: GPL-2.0 14 * ice_vsi_type_str - maps VSI type enum to string equivalents 38 * ice_vsi_ctrl_all_rx_rings - Start or stop a VSI's Rx rings 40 * @ena: start or stop the Rx rings 42 * First enable/disable all of the Rx rings, flush any remaining writes, and 44 * let all of the register writes complete when enabling/disabling the Rx rings 55 ice_flush(&vsi->back->hw); in ice_vsi_ctrl_all_rx_rings() 67 * ice_vsi_alloc_arrays - Allocate queue and vector pointer arrays for the VSI 75 struct ice_pf *pf = vsi->back; in ice_vsi_alloc_arrays() 79 if (vsi->type == ICE_VSI_CHNL) in ice_vsi_alloc_arrays() [all …]
|
H A D | ice_ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 113 /* SMA1 and UFL1 cannot be set to TX at the same time */ in ice_ptp_set_sma_config_e810t() 116 return -EINVAL; in ice_ptp_set_sma_config_e810t() 121 return -EINVAL; in ice_ptp_set_sma_config_e810t() 140 /* U.FL 1 TX will always enable SMA 1 RX */ in ice_ptp_set_sma_config_e810t() 141 dev_info(ice_hw_to_dev(hw), "SMA1 RX + U.FL1 TX"); in ice_ptp_set_sma_config_e810t() 144 dev_info(ice_hw_to_dev(hw), "SMA1 RX + U.FL1 TX"); in ice_ptp_set_sma_config_e810t() 147 dev_info(ice_hw_to_dev(hw), "SMA1 TX"); in ice_ptp_set_sma_config_e810t() 167 dev_info(ice_hw_to_dev(hw), "SMA2 TX"); in ice_ptp_set_sma_config_e810t() 172 dev_info(ice_hw_to_dev(hw), "SMA2 TX + U.FL2 RX"); in ice_ptp_set_sma_config_e810t() [all …]
|
/openbmc/linux/drivers/net/ethernet/broadcom/ |
H A D | bcm4908_enet.c | 1 // SPDX-License-Identifier: GPL-2.0-only 45 #define ENET_RX_BUF_DMA_SIZE (ENET_RX_SKB_BUF_SIZE - ENET_RX_BUF_DMA_OFFSET) 55 struct sk_buff *skb; /* TX */ 95 return readl(enet->base + offset); in enet_read() 100 writel(value, enet->base + offset); in enet_write() 150 enet_write(enet, ring->cfg_block + ENET_DMA_CH_CFG_INT_MASK, ENET_DMA_INT_DEFAULTS); in bcm4908_enet_dma_ring_intrs_on() 156 enet_write(enet, ring->cfg_block + ENET_DMA_CH_CFG_INT_MASK, 0); in bcm4908_enet_dma_ring_intrs_off() 162 enet_write(enet, ring->cfg_block + ENET_DMA_CH_CFG_INT_STAT, ENET_DMA_INT_DEFAULTS); in bcm4908_enet_dma_ring_intrs_ack() 172 int size = ring->length * sizeof(struct bcm4908_enet_dma_ring_bd); in bcm4908_dma_alloc_buf_descs() 173 struct device *dev = enet->dev; in bcm4908_dma_alloc_buf_descs() [all …]
|
/openbmc/linux/drivers/net/ethernet/sun/ |
H A D | cassini.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 19 * rings are all offset from 0. 29 /* cassini register map: 2M memory mapped in 32-bit memory space accessible as 30 * 32-bit words. there is no i/o port access. REG_ addresses are 42 * if rx weight == 1 and tx weight == 0, rx == 2x tx transfer credit 62 /* top level interrupts [0-9] are auto-cleared to 0 when the status 63 * register is read. second level interrupts [13 - 18] are cleared at 64 * the source. tx completion register 3 is replicated in [19 - 31] 70 TX FIFO */ 72 TX FIFO. i.e., [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/remoteproc/ |
H A D | qcom,wcnss-pil.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/remoteproc/qcom,wcnss-pil.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Bjorn Andersson <andersson@kernel.org> 21 - items: 22 - enum: 23 - qcom,pronto-v1-pil 24 - qcom,pronto-v2-pil 25 - qcom,pronto-v3-pil [all …]
|
/openbmc/linux/drivers/dma/ti/ |
H A D | k3-udma-glue.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2019 Texas Instruments Incorporated - http://www.ti.com 12 #include <linux/dma-mapping.h> 17 #include <linux/soc/ti/k3-ringacc.h> 18 #include <linux/dma/ti-cppi5.h> 19 #include <linux/dma/k3-udma-glue.h> 21 #include "k3-udma.h" 22 #include "k3-psil-priv.h" 104 common->udmax = of_xudma_dev_get(udmax_np, NULL); in of_k3_udma_glue_parse() 105 if (IS_ERR(common->udmax)) in of_k3_udma_glue_parse() [all …]
|
/openbmc/linux/drivers/net/ethernet/qualcomm/emac/ |
H A D | emac-mac.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 2 /* Copyright (c) 2013-2016, The Linux Foundation. All rights reserved. 5 /* EMAC DMA HW engine uses three rings: 6 * Tx: 10 * Ring of descriptors with empty buffers to be filled by Rx HW. 52 #define RRD_NOR(rrd) BITS_GET((rrd)->word[0], 16, 19) 53 /* start consumer index of rfd-ring */ 54 #define RRD_SI(rrd) BITS_GET((rrd)->word[0], 20, 31) 55 /* vlan-tag (CVID, CFI and PRI) */ 56 #define RRD_CVALN_TAG(rrd) BITS_GET((rrd)->word[2], 0, 15) [all …]
|
/openbmc/linux/drivers/net/can/spi/mcp251xfd/ |
H A D | mcp251xfd-ring.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // mcp251xfd - Microchip MCP251xFD Family CAN controller driver 6 // Marc Kleine-Budde <kernel@pengutronix.de> 18 #include "mcp251xfd-ram.h" 31 len = last_byte - first_byte + 1; in mcp251xfd_cmd_prepare_write_reg() 37 if (!(priv->devtype_data.quirks & MCP251XFD_QUIRK_CRC_REG)) { in mcp251xfd_cmd_prepare_write_reg() 38 len += sizeof(write_reg_buf->nocrc.cmd); in mcp251xfd_cmd_prepare_write_reg() 43 len += sizeof(write_reg_buf->safe.cmd); in mcp251xfd_cmd_prepare_write_reg() 44 crc = mcp251xfd_crc16_compute(&write_reg_buf->safe, len); in mcp251xfd_cmd_prepare_write_reg() 48 len += sizeof(write_reg_buf->safe.crc); in mcp251xfd_cmd_prepare_write_reg() [all …]
|
/openbmc/linux/Documentation/networking/device_drivers/ethernet/amazon/ |
H A D | ena.rst | 1 .. SPDX-License-Identifier: GPL-2.0 17 The driver supports a range of ENA devices, is link-speed independent 21 Some ENA devices support SR-IOV. This driver is used for both the 22 SR-IOV Physical Function (PF) and Virtual Function (VF) devices. 25 processing by providing multiple Tx/Rx queue pairs (the maximum number 26 is advertised by the device via the Admin Queue), a dedicated MSI-X 27 interrupt vector per Tx/Rx queue pair, adaptive interrupt moderation, 31 checksum offload. Receive-side scaling (RSS) is supported for multi-core 39 Some of the ENA devices support a working mode called Low-latency 50 ena_eth_com.[ch] Tx/Rx data path. [all …]
|
/openbmc/linux/arch/mips/include/asm/sn/ |
H A D | ioc3.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 50 u8 fill0[0x151 - 0x142 - 1]; 56 u8 fill1[0x159 - 0x153 - 1]; 62 u8 fill2[0x16a - 0x15b - 1]; 67 u8 fill3[0x170 - 0x16b - 1]; 153 u32 pad1[(0x20000 - 0x00154) / 4]; 157 u32 pad2[(0x40000 - 0x20180) / 4]; 160 u32 ssram[(0x80000 - 0x40000) / 4]; 163 0x80000 - Access to the generic devices selected with DEV0 165 0xA0000 - Access to the generic devices selected with DEV1 [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/iavf/ |
H A D | iavf_ethtool.c | 1 // SPDX-License-Identifier: GPL-2.0 2 /* Copyright(c) 2013 - 2018 Intel Corporation. */ 13 * struct iavf_stats - definition for an ethtool statistic 14 * @stat_string: statistic name to display in ethtool -S output 54 /* Stats associated with a Tx or Rx ring */ 56 IAVF_QUEUE_STAT("%s-%u.packets", stats.packets), 57 IAVF_QUEUE_STAT("%s-%u.bytes", stats.bytes), 61 * iavf_add_one_ethtool_stat - copy the stat into the supplied buffer 84 p = (char *)pointer + stat->stat_offset; in iavf_add_one_ethtool_stat() 85 switch (stat->sizeof_stat) { in iavf_add_one_ethtool_stat() [all …]
|
/openbmc/linux/tools/perf/pmu-events/arch/x86/ivytown/ |
H A D | uncore-interconnect.json | 147 "BriefDescription": "BL Ingress Occupancy - DRS", 169 "BriefDescription": "BL Ingress Occupancy - NCB", 191 "BriefDescription": "BL Ingress Occupancy - NCS", 210 …ny requests behind it in the switch queue will lose ownership and have to re-acquire it later when… 228 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 237 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 246 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 255 …ddition to the source queue. Note the special filtering equation. We do OR-reduction on the requ… 304 …er of cycles when there are pending write ACK's in the switch but the switch->IRP pipeline is not … 324 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress Credits", [all …]
|
/openbmc/linux/drivers/net/ethernet/freescale/ |
H A D | fec.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * fec.h -- Fast Ethernet Controller for Motorola ColdFire SoC 8 * (C) Copyright 2000-2005, Greg Ungerer (gerg@snapgear.com) 9 * (C) Copyright 2000-2001, Lineo (www.lineo.com) 23 #include <dt-bindings/firmware/imx/rsrc.h> 48 #define FEC_TXIC0 0x0f0 /* Tx Interrupt Coalescing for ring 0 */ 49 #define FEC_TXIC1 0x0f4 /* Tx Interrupt Coalescing for ring 1 */ 50 #define FEC_TXIC2 0x0f8 /* Tx Interrupt Coalescing for ring 2 */ 71 #define FEC_R_FIFO_RSEM 0x194 /* Receive FIFO section empty threshold */ 72 #define FEC_R_FIFO_RAEM 0x198 /* Receive FIFO almost empty threshold */ [all …]
|