/linux/drivers/net/ethernet/pasemi/ |
H A D | pasemi_mac.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 5 * Driver for the PA6T-1682M onchip 1G/10G Ethernet MACs, soft state and 94 #define TX_DESC(tx, num) ((tx)->chan.ring_virt[(num) & (TX_RING_SIZE-1)]) argument 95 #define TX_DESC_INFO(tx, num) ((tx)->ring_info[(num) & (TX_RING_SIZE-1)]) argument 96 #define RX_DESC(rx, num) ((rx)->chan.ring_virt[(num) & (RX_RING_SIZE-1)]) argument 97 #define RX_DESC_INFO(rx, num) ((rx)->ring_info[(num) & (RX_RING_SIZE-1)]) argument 98 #define RX_BUFF(rx, num) ((rx)->buffers[(num) & (RX_RING_SIZE-1)]) argument 99 #define CS_DESC(cs, num) ((cs)->chan.ring_virt[(num) & (CS_RING_SIZE-1)]) argument 101 #define RING_USED(ring) (((ring)->next_to_fill - (ring)->next_to_clean) \ 102 & ((ring)->size - 1)) [all …]
|
/linux/Documentation/devicetree/bindings/nvmem/layouts/ |
H A D | onie,tlv-layout.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/nvmem/layouts/onie,tlv-layout.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Miquel Raynal <miquel.raynal@bootlin.com> 14 infrastructure shall provide a non-volatile memory with a table whose the 26 const: onie,tlv-layout 28 product-name: 32 part-number: 36 serial-number: [all …]
|
/linux/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_encap.h | 26 * - Redistributions of source code must retain the above copyright 28 * - Redistributions in binary form must reproduce the above copyright 32 * - Neither the name of Intel Corporation nor the names of its 84 #define OPA_VNIC_EMA_DATA (OPA_MGMT_MAD_SIZE - IB_MGMT_VENDOR_HDR) 118 * struct opa_vesw_info - OPA vnic switch information 119 * @fabric_id: 10-bit fabric id 120 * @vesw_id: 12-bit virtual ethernet switch id 155 * struct opa_per_veswport_info - OPA vnic per port information 171 * @non_vlan_sc_uc: sc for non-vlan unicast ethernet packets 172 * @non_vlan_vl_uc: vl for non-vlan unicast ethernet packets [all …]
|
/linux/drivers/net/ethernet/broadcom/bnx2x/ |
H A D | bnx2x_sp.h | 3 * Copyright 2011-2013 Broadcom Corporation 10 * at http://www.gnu.org/licenses/gpl-2.0.html (the "GPL"). 45 * re-try to submit this one. This flag can be set only in sleepable 101 /************************* VLAN-MAC commands related parameters ***************/ 178 /* Return positive if entry was optimized, 0 - if not, negative 211 * Must run under exe_queue->lock 227 * Must run under exe_queue->lock 242 /***************** Classification verbs: Set/Del MAC/VLAN/VLAN-MAC ************/ 250 /* Used to store the cam offset used for the mac/vlan/vlan-mac. 251 * Relevant for 57710 and 57711 only. VLANs and MACs share the [all …]
|
H A D | bnx2x_sp.c | 3 * Copyright 2011-2013 Broadcom Corporation 10 * at http://www.gnu.org/licenses/gpl-2.0.html (the "GPL"). 38 * bnx2x_exe_queue_init - init the Exe Queue object 62 INIT_LIST_HEAD(&o->exe_queue); in bnx2x_exe_queue_init() 63 INIT_LIST_HEAD(&o->pending_comp); in bnx2x_exe_queue_init() 65 spin_lock_init(&o->lock); in bnx2x_exe_queue_init() 67 o->exe_chunk_len = exe_len; in bnx2x_exe_queue_init() 68 o->owner = owner; in bnx2x_exe_queue_init() 71 o->validate = validate; in bnx2x_exe_queue_init() 72 o->remove = remove; in bnx2x_exe_queue_init() [all …]
|
H A D | bnx2x_sriov.c | 3 * Copyright 2009-2013 Broadcom Corporation 10 * at http://www.gnu.org/licenses/old-licenses/gpl-2.0.html (the "GPL"). 82 /* acking a VF sb through the PF - use the GRC */ in bnx2x_vf_igu_ack_sb() 86 u32 func_encode = vf->abs_vfid; in bnx2x_vf_igu_ack_sb() 132 "VF[%d] Q_SETUP: txq[%d]-- vfsb=%d, sb-index=%d, hc-rate=%d, flags=0x%lx, traffic-type=%d", in bnx2x_vfop_qctor_dump_tx() 133 vf->abs_vfid, in bnx2x_vfop_qctor_dump_tx() 136 init_params->tx.sb_cq_index, in bnx2x_vfop_qctor_dump_tx() 137 init_params->tx.hc_rate, in bnx2x_vfop_qctor_dump_tx() 138 setup_params->flags, in bnx2x_vfop_qctor_dump_tx() 139 setup_params->txq_params.traffic_type); in bnx2x_vfop_qctor_dump_tx() [all …]
|
H A D | bnx2x.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 21 #include <linux/dma-mapping.h> 37 * to break this driver due to amount of abuse of in-kernel interfaces 42 #define DRV_MODULE_VERSION "1.713.36-0" 53 #define BNX2X_MIN_MSIX_VEC_CNT(bp) ((bp)->min_msix_vec_cnt) 94 bp->dev ? (bp->dev->name) : "?", \ 99 if (unlikely(bp->msg_enable & (__mask))) \ 105 if (unlikely((bp->msg_enable & (__mask)) == __mask)) \ 111 if (unlikely(bp->msg_enable & (__mask))) \ 121 bp->dev ? (bp->dev->name) : "?", \ [all …]
|
/linux/Documentation/networking/ |
H A D | pktgen.rst | 1 .. SPDX-License-Identifier: GPL-2.0 7 Enable CONFIG_NET_PKTGEN to compile and build pktgen either in-kernel 31 overload type of benchmarking, as this could hurt the normal use-case. 35 # ethtool -G ethX tx 1024 44 ring-buffers for various performance reasons, and packets stalling 49 and the cleanup interval is affected by the ethtool --coalesce setting 50 of parameter "rx-usecs". 54 # ethtool -C ethX rx-usecs 30 72 * add_device DEVICE@NAME -- adds a single device 73 * rem_device_all -- remove all associated devices [all …]
|
/linux/drivers/net/wireless/ath/ath11k/ |
H A D | core.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2024 Qualcomm Innovation Center, Inc. All rights reserved. 51 /* SMBIOS type structure length (excluding strings-set) */ 184 /* set country code by ANSI country name, based on ISO3166-1 alpha2 */ 319 * struct ath11k_chan_power_info - TPE containing power info per channel chunk 337 * struct ath11k_reg_tpc_power_info - regulatory TPC power info 415 /* Must be last - ends in a flexible-array member. 533 /* the following are protected by ar->data_lock */ 562 /* Protected with ar->data_lock */ [all …]
|
/linux/drivers/net/ethernet/brocade/bna/ |
H A D | bna_enet.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Linux network driver for QLogic BR-series Converged Network Adapter. 6 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. 7 * Copyright (c) 2014-2015 QLogic Corporation 17 if (ethport->bna->enet.type == BNA_ENET_T_REGULAR) in ethport_can_be_up() 18 ready = ((ethport->flags & BNA_ETHPORT_F_ADMIN_UP) && in ethport_can_be_up() 19 (ethport->flags & BNA_ETHPORT_F_RX_STARTED) && in ethport_can_be_up() 20 (ethport->flags & BNA_ETHPORT_F_PORT_ENABLED)); in ethport_can_be_up() 22 ready = ((ethport->flags & BNA_ETHPORT_F_ADMIN_UP) && in ethport_can_be_up() 23 (ethport->flags & BNA_ETHPORT_F_RX_STARTED) && in ethport_can_be_up() [all …]
|
/linux/drivers/net/wireless/intel/iwlwifi/fw/api/ |
H A D | mac.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2022, 2024 Intel Corporation 11 * AUX indices follows - 1 for non-CDB, 2 for CDB. 31 * enum iwl_mac_protection_flags - MAC context flags 50 * enum iwl_mac_types - Supported MAC types 54 * @FW_MAC_TYPE_PIBSS: Pseudo-IBSS 78 * enum iwl_tsf_id - TSF hw timer ID 94 * struct iwl_mac_data_ap - configuration data for AP MAC context 117 * struct iwl_mac_data_ibss - configuration data for IBSS MAC context 133 * enum iwl_mac_data_policy - policy of the data path for this MAC [all …]
|
H A D | rx.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2024 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2015-2017 Intel Deutschland GmbH 10 /* API for pre-9000 hardware */ 26 * struct iwl_rx_phy_info - phy info 34 * @beacon_time_stamp: beacon at on-air rise 39 * @byte_count: frame's byte-count 42 * @mac_active_msk: what MACs were active when the frame was received 70 * bits 0:3 - reserved [all …]
|
/linux/drivers/net/ethernet/qlogic/qed/ |
H A D | qed_sriov.c | 1 // 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. 27 return le16_to_cpu(entity_id) - MAX_NUM_PFS; in qed_vf_from_entity_id() 34 if (p_vf->acquire.vfdev_info.eth_fp_hsi_minor == in qed_vf_calculate_legacy() 38 if (!(p_vf->acquire.vfdev_info.capabilities & in qed_vf_calculate_legacy() 51 int rc = -EINVAL; in qed_sp_vf_start() 57 init_data.opaque_fid = p_vf->opaque_fid; in qed_sp_vf_start() 66 p_ramrod = &p_ent->ramrod.vf_start; in qed_sp_vf_start() 68 p_ramrod->vf_id = GET_FIELD(p_vf->concrete_fid, PXP_CONCRETE_FID_VFID); in qed_sp_vf_start() [all …]
|
H A D | qed_mcp.h | 1 /* 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. 158 u8 name[MCP_DRV_VER_STR_SIZE - 4]; 243 /* First entry for primary MAC, 2 secondary MACs possible */ 321 * Return: Int - 0 - operation was successful. 334 * Return: Int - 0 - operation was successful. 346 * Return: Int - 0 - Operation was successul. 347 * -EBUSY - Operation failed 360 * Return: Int - 0 - Operation was successul. [all …]
|
/linux/arch/xtensa/variants/test_kc705_be/include/variant/ |
H A D | core.h | 2 * xtensa/config/core-isa.h -- HAL definitions that are dependent on Xtensa 10 Copyright (c) 1999-2015 Tensilica Inc. 45 /*---------------------------------------------------------------------- 47 ----------------------------------------------------------------------*/ 49 #define XCHAL_HAVE_BE 1 /* big-endian byte ordering */ 51 #define XCHAL_NUM_AREGS 32 /* num of physical addr regs */ 55 #define XCHAL_HAVE_DENSITY 1 /* 16-bit instructions */ 56 #define XCHAL_HAVE_LOOPS 1 /* zero-overhead loops */ 57 #define XCHAL_LOOP_BUFFER_SIZE 0 /* zero-ov. loop instr buffer size */ 68 #define XCHAL_HAVE_ABSOLUTE_LITERALS 0 /* non-PC-rel (extended) L32R */ [all …]
|
/linux/drivers/net/ethernet/emulex/benet/ |
H A D | be.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright (C) 2005 - 2016 Broadcom 7 * linux-drivers@emulex.com 31 #include <linux/hwmon-sysfs.h> 60 /* Number of bytes of an RX frame that are copied to skb->data */ 67 #define BE_MAX_MTU (BE_MAX_JUMBO_FRAME_SIZE - \ 71 #define BE_MAX_GSO_SIZE (65535 - 2 * VLAN_HLEN) 105 #define RX_FRAGS_REFILL_WM (RX_Q_LEN - MAX_RX_POST) 111 #define CNTL_SERIAL_NUM_WORD_SZ (sizeof(u16)) /* Byte-sz of serial num word */ 136 BUG_ON(limit & (limit - 1)); in MODULO() [all …]
|
H A D | be_main.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2005 - 2016 Broadcom 7 * linux-drivers@emulex.com 38 /* Per-module error detection/recovery workq shared across all functions. 146 struct be_dma_mem *mem = &q->dma_mem; in be_queue_free() 148 if (mem->va) { in be_queue_free() 149 dma_free_coherent(&adapter->pdev->dev, mem->size, mem->va, in be_queue_free() 150 mem->dma); in be_queue_free() 151 mem->va = NULL; in be_queue_free() 158 struct be_dma_mem *mem = &q->dma_mem; in be_queue_alloc() [all …]
|
/linux/drivers/net/ethernet/qlogic/qede/ |
H A D | qede_filter.c | 1 // 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. 73 #define QEDE_ARFS_BUCKET_HEAD(edev, idx) (&(edev)->arfs->arfs_hl_head[idx]) 76 #define QEDE_RFS_FLW_MASK ((1 << QEDE_RFS_FLW_BITSHIFT) - 1) 92 const struct qed_eth_ops *op = edev->ops; in qede_configure_arfs_fltr() 95 if (n->used) in qede_configure_arfs_fltr() 100 params.addr = n->mapping; in qede_configure_arfs_fltr() 101 params.length = n->buf_len; in qede_configure_arfs_fltr() 104 params.b_is_drop = n->b_is_drop; in qede_configure_arfs_fltr() [all …]
|
/linux/drivers/net/ |
H A D | virtio_net.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 50 * at once, the weight is chosen so that the EWMA will be insensitive to short- 113 #define VIRTNET_SQ_STAT(name, m) {name, offsetof(struct virtnet_sq_stats, m), -1} 114 #define VIRTNET_RQ_STAT(name, m) {name, offsetof(struct virtnet_rq_stats, m), -1} 159 {#name, offsetof(struct virtio_net_stats_cvq, name), -1} 162 {#name, offsetof(struct virtio_net_stats_rx_ ## class, rx_ ## name), -1} 165 {#name, offsetof(struct virtio_net_stats_tx_ ## class, tx_ ## name), -1} 517 static void virtnet_xsk_completed(struct send_queue *sq, int num); 529 rss->indirection_table = NULL; in rss_indirection_table_alloc() 533 rss->indirection_table = kmalloc_array(indir_table_size, sizeof(u16), GFP_KERNEL); in rss_indirection_table_alloc() [all …]
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | fsl-ls208xa.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 3 * Device Tree Include file for Freescale Layerscape-2080A family SoC. 6 * Copyright 2017-2020 NXP 12 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 13 #include <dt-bindings/thermal/thermal.h> 14 #include <dt-bindings/interrupt-controller/arm-gic.h> 18 interrupt-parent = <&gic>; 19 #address-cells = <2>; 20 #size-cells = <2>; 32 #address-cells = <1>; [all …]
|
/linux/drivers/net/wireless/ath/ath5k/ |
H A D | ath5k.h | 2 * Copyright (c) 2004-2007 Reyk Floeter <reyk@openbsd.org> 3 * Copyright (c) 2006-2007 Nick Kossifidis <mickflemm@gmail.com> 62 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV7 0x0057 /* AR5312 WMAC (AP30-040) */ 63 #define PCI_DEVICE_ID_ATHEROS_AR5312_REV8 0x0058 /* AR5312 WMAC (AP43-030) */ 70 #define PCI_DEVICE_ID_ATHEROS_AR2413 0x001a /* AR2413 (Griffin-lite) */ 72 #define PCI_DEVICE_ID_ATHEROS_AR5424 0x001c /* AR5424 (Condor PCI-E) */ 189 #define AR5K_TUNE_NOISE_FLOOR -72 190 #define AR5K_TUNE_CCA_MAX_GOOD_VALUE -95 274 * enum ath5k_version - MAC Chips 286 * enum ath5k_radio - PHY Chips [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | mlx4.h | 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 41 #include <linux/radix-tree.h> 60 #define DRV_VERSION "4.0-0" 88 MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE) / 16 - 2), 223 &(mdev)->persist->pdev->dev, format, \ 228 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 230 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 232 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 295 #define MLX4_EQ_TO_CQ_VECTOR(vector) ((vector) - \ [all …]
|
/linux/drivers/net/ethernet/mediatek/ |
H A D | mtk_eth_soc.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 4 * Copyright (C) 2009-2016 John Crispin <blogic@openwrt.org> 5 * Copyright (C) 2009-2016 Felix Fietkau <nbd@openwrt.org> 6 * Copyright (C) 2013-2016 Michael Lee <igvtee@gmail.com> 12 #include <linux/dma-mapping.h> 57 #define NEXT_DESP_IDX(X, Y) (((X) + 1) & ((Y) - 1)) 62 #define MTK_PP_MAX_BUF_SIZE (PAGE_SIZE - MTK_PP_PAD) 136 /* Unicast Filter MAC Address Register - Low */ 140 /* Unicast Filter MAC Address Register - High */ 157 #define PSE_IQ_REV(x) (0x140 + (((x) - 1) << 2)) [all …]
|
/linux/drivers/net/ethernet/agere/ |
H A D | et131x.c | 2 * 10/100/1000 Base-T Ethernet Driver for the ET1301 and ET131x series MACs 10 *------------------------------------------------------------------------------ 87 MODULE_DESCRIPTION("10/100/1000 Base-T Ethernet Driver for the ET1310 by Agere Systems"); 106 * In both cases, when flow control is enabled for either Tx or bi-direction, 156 #define ET131X_PCI_DEVICE_ID_GIG 0xED00 /* ET1310 1000 Base-T 8 */ 157 #define ET131X_PCI_DEVICE_ID_FAST 0xED01 /* ET1310 100 Base-T */ 173 /* number of RFDs - default and min */ 189 u32 word2; /* Bits 10-31 reserved, 0-9 descriptor */ 197 * PE-MCXMAC Data Sheet IPD DS54 0210-1 (also IPD-DS80 0205-2) 210 * 11-15: unused [all …]
|
/linux/net/core/ |
H A D | pktgen.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 23 * MAC address typo fixed. 010417 --ro 24 * Integrated. 020301 --DaveM 25 * Added multiskb option 020301 --DaveM 26 * Scaling of results. 020417--sigurdur@linpro.no 27 * Significant re-work of the module: 31 * * Allow configuration of ranges, like min/max IP address, MACs, 32 * and UDP-ports, for both source and destination, and can 35 * * Place 12-byte packet in UDP payload with magic number, 37 * * Add receiver code that detects dropped pkts, re-ordered pkts, and [all …]
|