| /freebsd/sys/dev/netmap/ |
| H A D | if_vtnet_netmap.h | 2 * Copyright (C) 2014-2018 Vincenzo Maffione, Luigi Rizzo. 39 if_t ifp = na->ifp; in vtnet_netmap_reg() 60 struct netmap_adapter *na = kring->na; in vtnet_netmap_txsync() 61 if_t ifp = na->ifp; in vtnet_netmap_txsync() 62 struct netmap_ring *ring = kring->ring; in vtnet_netmap_txsync() 63 u_int ring_nr = kring->ring_id; in vtnet_netmap_txsync() 65 u_int const lim = kring->nkr_num_slots - 1; in vtnet_netmap_txsync() 66 u_int const head = kring->rhead; in vtnet_netmap_txsync() 68 /* device-specific */ in vtnet_netmap_txsync() 70 struct vtnet_txq *txq = &sc->vtnet_txqs[ring_nr]; in vtnet_netmap_txsync() [all …]
|
| /freebsd/sys/dev/mana/ |
| H A D | mana_en.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 108 ifmr->ifm_status = IFM_AVALID; in mana_ifmedia_status() 109 ifmr->ifm_active = IFM_ETHER; in mana_ifmedia_status() 111 if (!apc->port_is_up) { in mana_ifmedia_status() 113 mana_dbg(NULL, "Port %u link is down\n", apc->port_idx); in mana_ifmedia_status() 117 ifmr->ifm_status |= IFM_ACTIVE; in mana_ifmedia_status() 118 ifmr->ifm_active |= IFM_100G_DR | IFM_FDX; in mana_ifmedia_status() 127 struct mana_port_stats *stats = &apc->port_stats; in mana_get_counter() 131 return (counter_u64_fetch(stats->rx_packets)); in mana_get_counter() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/net/ |
| H A D | brcm,systemport.txt | 4 - compatible: should be one of: 5 "brcm,systemport-v1.00" 6 "brcm,systemportlite-v1.00" or 8 - reg: address and length of the register set for the device. 9 - interrupts: interrupts for the device, first cell must be for the rx 11 optional third interrupt cell for Wake-on-LAN can be specified 12 - local-mac-address: Ethernet MAC address (48 bits) of this adapter 13 - phy-mode: Should be a string describing the PHY interface to the 15 - fixed-link: see Documentation/devicetree/bindings/net/fixed-link.txt for 19 - systemport,num-tier2-arb: number of tier 2 arbiters, an integer [all …]
|
| H A D | brcm,systemport.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Florian Fainelli <f.fainelli@gmail.com> 15 - brcm,systemport-v1.00 16 - brcm,systemportlite-v1.00 17 - brcm,systemport 25 - description: interrupt line for RX queues 26 - description: interrupt line for TX queues 27 - description: interrupt line for Wake-on-LAN [all …]
|
| /freebsd/sys/dev/ixl/ |
| H A D | ixl_pf_iov.c | 3 Copyright (c) 2013-2018, Intel Corporation 91 device_t dev = pf->dev; in ixl_initialize_sriov() 92 struct i40e_hw *hw = &pf->hw; in ixl_initialize_sriov() 98 pci_iov_schema_add_unicast_mac(vf_schema, "mac-addr", 0, NULL); in ixl_initialize_sriov() 99 pci_iov_schema_add_bool(vf_schema, "mac-anti-spoof", in ixl_initialize_sriov() 101 pci_iov_schema_add_bool(vf_schema, "allow-set-mac", in ixl_initialize_sriov() 103 pci_iov_schema_add_bool(vf_schema, "allow-promisc", in ixl_initialize_sriov() 105 pci_iov_schema_add_uint16(vf_schema, "num-queues", in ixl_initialize_sriov() 107 max(1, min(hw->func_caps.num_msix_vectors_vf - 1, IAVF_MAX_QUEUES))); in ixl_initialize_sriov() 112 "Failed to initialize SR-IOV (error=%d)\n", in ixl_initialize_sriov() [all …]
|
| /freebsd/sys/dev/ice/ |
| H A D | ice_iov.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 86 * ice_iov_attach - Initialize SR-IOV PF host support 89 * Initialize SR-IOV PF host support at the end of the driver attach process. 94 * - ENOMEM if there is no memory for the PF/VF schemas or iov device 95 * - ENXIO if the device isn't PCI-E or doesn't support the same SR-IOV 97 * - ENOENT if the device doesn't have the SR-IOV capability 102 device_t dev = sc->dev; in ice_iov_attach() 109 pci_iov_schema_add_unicast_mac(vf_schema, "mac-addr", 0, NULL); in ice_iov_attach() 110 pci_iov_schema_add_bool(vf_schema, "mac-anti-spoof", in ice_iov_attach() 112 pci_iov_schema_add_bool(vf_schema, "allow-set-mac", in ice_iov_attach() [all …]
|
| H A D | if_ice_iflib.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 272 * scctx->isc_tx_tso_size_max + the VLAN header is a valid size. 276 * DMA tag. However, scctx->isc_tx_tso_segsize_max is used to set the 305 * IFLIB_SKIP_MSIX allows the driver to handle allocating MSI-X 328 /* Static driver-wide sysctls */ 332 * ice_pci_mapping - Map PCI BAR memory 343 rc = ice_map_bar(sc->dev, &sc->bar0, 0); in ice_pci_mapping() 351 * ice_free_pci_mapping - Release PCI BAR memory 360 ice_free_bar(sc->dev, &sc->bar0); in ice_free_pci_mapping() 368 * ice_register - register device method callback [all …]
|
| H A D | ice_common.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 127 * ice_dump_phy_type - helper function to dump phy_type 158 * ice_set_mac_type - Sets MAC type 168 if (hw->vendor_id != ICE_INTEL_VENDOR_ID) in ice_set_mac_type() 171 switch (hw->device_id) { in ice_set_mac_type() 178 hw->mac_type = ICE_MAC_E810; in ice_set_mac_type() 199 hw->mac_type = ICE_MAC_GENERIC; in ice_set_mac_type() 205 hw->mac_type = ICE_MAC_GENERIC_3K_E825; in ice_set_mac_type() 225 hw->mac_type = ICE_MAC_E830; in ice_set_mac_type() 228 hw->mac_type = ICE_MAC_UNKNOWN; in ice_set_mac_type() [all …]
|
| H A D | ice_lib.c | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 74 static int ice_setup_rx_ctx(struct ice_rx_queue *rxq); 270 * ice_map_bar - Map PCIe BAR memory 281 if (bar->res != NULL) { in ice_map_bar() 286 bar->rid = PCIR_BAR(bar_num); in ice_map_bar() 287 bar->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &bar->rid, in ice_map_bar() 289 if (!bar->res) { in ice_map_bar() 294 bar->tag = rman_get_bustag(bar->res); in ice_map_bar() 295 bar->handle = rman_get_bushandle(bar->res); in ice_map_bar() 296 bar->size = rman_get_size(bar->res); in ice_map_bar() [all …]
|
| /freebsd/sys/dev/gve/ |
| H A D | gve_sysctl.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 2023-2024 Google LLC 54 struct sysctl_oid_list *child, struct gve_rx_ring *rxq) in gve_setup_rxq_sysctl() argument 61 snprintf(namebuf, sizeof(namebuf), "rxq%d", rxq->com.id); in gve_setup_rxq_sysctl() 66 stats = &rxq->stats; in gve_setup_rxq_sysctl() 70 &stats->rbytes, "Bytes received"); in gve_setup_rxq_sysctl() 73 &stats->rpackets, "Packets received"); in gve_setup_rxq_sysctl() 75 CTLFLAG_RD, &stats->rx_copybreak_cnt, in gve_setup_rxq_sysctl() 78 CTLFLAG_RD, &stats->rx_frag_flip_cnt, in gve_setup_rxq_sysctl() [all …]
|
| /freebsd/sys/dev/xen/netfront/ |
| H A D | netfront.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2004-2006 Kip Macy 64 #include <xen/xen-os.h> 221 struct netfront_rxq *rxq; member 241 struct netif_extra_info extras[XEN_NETIF_EXTRA_TYPE_MAX - 1]; 244 #define XN_RX_LOCK(_q) mtx_lock(&(_q)->lock) 245 #define XN_RX_UNLOCK(_q) mtx_unlock(&(_q)->lock) 247 #define XN_TX_LOCK(_q) mtx_lock(&(_q)->lock) 248 #define XN_TX_TRYLOCK(_q) mtx_trylock(&(_q)->lock) [all …]
|
| /freebsd/sys/dev/qlnx/qlnxe/ |
| H A D | qlnx_os.c | 2 * Copyright (c) 2017-2018 Cavium, Inc. 135 static int qlnx_alloc_rx_buffer(qlnx_host_t *ha, struct qlnx_rx_queue *rxq); 136 static void qlnx_reuse_rx_data(struct qlnx_rx_queue *rxq); 138 struct qlnx_rx_queue *rxq); 280 &qlnxe_queue_count, 0, "Multi-Queue queue count"); 311 device_id = ha->device_id; in qlnx_vf_device() 316 return -1; in qlnx_vf_device() 324 device_id = ha->device_id; in qlnx_valid_device() 338 return -1; in qlnx_valid_device() 347 device_id = pci_get_device(ha->pci_dev); in qlnx_rdma_supported() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/ |
| H A D | error-dump.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2014, 2018-2025 Intel Corporation 4 * Copyright (C) 2014-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 17 * enum iwl_fw_error_dump_type - types of data in the dump file 18 * @IWL_FW_ERROR_DUMP_CSR: Control Status Registers - from offset 0 25 * @IWL_FW_ERROR_DUMP_PRPH: range of periphery registers - there can be several 39 * for that reason is not in use in any other place in the Linux Wi-Fi 68 * struct iwl_fw_error_dump_data - data for one type 80 * struct iwl_dump_file_name_info - data for dump file name addition [all …]
|
| /freebsd/sys/dev/iwm/ |
| H A D | if_iwm.c | 20 /*- 21 * Based on BSD-licensed source modules in the Linux iwlwifi driver, 34 * Copyright(c) 2007 - 2013 Intel Corporation. All rights reserved. 55 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 60 * Copyright(c) 2005 - 2013 Intel Corporation. All rights reserved. 90 /*- 91 * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> 173 #define mtodoff(m, t, off) ((t)((m)->m_data + (off))) 230 #define IWM_RIDX_MAX (nitems(iwm_rates)-1) 440 dlen < sizeof(l->size) + l->size * sizeof(*l->cs)) in iwm_store_cscheme() [all …]
|
| /freebsd/sys/dev/iwx/ |
| H A D | if_iwx.c | 1 /*- 2 * SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) AND ISC 28 /*- 64 /*- 65 * Based on BSD-licensed source modules in the Linux iwlwifi driver, 76 * Copyright(c) 2018 - 2019 Intel Corporation 90 * Copyright(c) 2018 - 2019 Intel Corporation 122 /*- 123 * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> 187 #define DEVNAME(_sc) (device_get_nameunit((_sc)->sc_dev)) [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | rx.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2025 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 70 * bits 0:3 - reserved 71 * bits 4:7 - MIC CRC length [all …]
|
| /freebsd/sys/dev/iwn/ |
| H A D | if_iwn.c | 1 /*- 2 * Copyright (c) 2007-2009 Damien Bergamini <damien.bergamini@free.fr> 6 * Copyright (c) 2013 Cedric GROSS <c.gross@kreiz-it.fr> 84 { 0x8086, IWN_DID_6x05_1, "Intel Centrino Advanced-N 6205" }, 85 { 0x8086, IWN_DID_1000_1, "Intel Centrino Wireless-N 1000" }, 86 { 0x8086, IWN_DID_1000_2, "Intel Centrino Wireless-N 1000" }, 87 { 0x8086, IWN_DID_6x05_2, "Intel Centrino Advanced-N 6205" }, 88 { 0x8086, IWN_DID_6050_1, "Intel Centrino Advanced-N + WiMAX 6250" }, 89 { 0x8086, IWN_DID_6050_2, "Intel Centrino Advanced-N + WiMAX 6250" }, 90 { 0x8086, IWN_DID_x030_1, "Intel Centrino Wireless-N 1030" }, [all …]
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | pci.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 32 struct rtw89_pci *rtwpci = (struct rtw89_pci *)rtwdev->priv; in rtw89_pci_get_phy_offset_by_link_speed() 33 struct pci_dev *pdev = rtwpci->pdev; in rtw89_pci_get_phy_offset_by_link_speed() 48 return -EFAULT; in rtw89_pci_get_phy_offset_by_link_speed() 72 const struct rtw89_pci_info *info = rtwdev->pci_info; in rtw89_pci_dma_recalc() 75 rp = bd_ring->rp; in rtw89_pci_dma_recalc() 76 wp = bd_ring->wp; in rtw89_pci_dma_recalc() 77 len = bd_ring->len; in rtw89_pci_dma_recalc() 81 cnt = cur_rp >= rp ? cur_rp - rp : len - (rp - cur_rp); in rtw89_pci_dma_recalc() 83 if (info->rx_ring_eq_is_full) in rtw89_pci_dma_recalc() [all …]
|
| H A D | pci.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 1252 u32 num; member 1414 #define TXADDR_INFO_LENTHG_V1_MAX ALIGN_DOWN(BIT(11) - 1, 4) 1520 /* protect TRX resources (exclude RXQ) */ 1543 sizeof(info->status.status_driver_data)); in RTW89_PCI_RX_SKB_CB() 1545 return (struct rtw89_pci_rx_info *)skb->cb; in RTW89_PCI_RX_SKB_CB() 1551 struct rtw89_pci_dma_ring *bd_ring = &rx_ring->bd_ring; in RTW89_PCI_RX_BD() 1552 u8 *head = bd_ring->head; in RTW89_PCI_RX_BD() 1553 u32 desc_size = bd_ring->desc_size; in RTW89_PCI_RX_BD() 1562 struct rtw89_pci_dma_ring *bd_ring = &rx_ring->bd_ring; in rtw89_pci_rxbd_increase() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mld/tests/ |
| H A D | agg.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 5 * Copyright (C) 2024-2025 Intel Corporation 48 /* Set add_subframes > 0 to simulate an A-MSDU by 98 .desc = "RX non-QoS data", 106 /* non-QoS data frames do not require reordering. 167 .desc = "RX In-order packet, sn < nssn", 181 * and buffer->head_sn is updated to NSSN. 189 .desc = "RX In-order packet, sn == head_sn", 201 * 2. RX packet SN is equal to buffer->head_sn. 203 * and buffer->head_sn is incremented. [all …]
|
| /freebsd/sys/dev/bnxt/bnxt_en/ |
| H A D | bnxt_sysctl.c | 1 /*- 2 * Broadcom NetXtreme-C/E network driver. 60 sysctl_ctx_init(&softc->hw_stats); in bnxt_init_sysctl_ctx() 61 ctx = device_get_sysctl_ctx(softc->dev); in bnxt_init_sysctl_ctx() 62 softc->hw_stats_oid = SYSCTL_ADD_NODE(ctx, in bnxt_init_sysctl_ctx() 63 SYSCTL_CHILDREN(device_get_sysctl_tree(softc->dev)), OID_AUTO, in bnxt_init_sysctl_ctx() 65 if (!softc->hw_stats_oid) { in bnxt_init_sysctl_ctx() 66 sysctl_ctx_free(&softc->hw_stats); in bnxt_init_sysctl_ctx() 70 sysctl_ctx_init(&softc->ver_info->ver_ctx); in bnxt_init_sysctl_ctx() 71 ctx = device_get_sysctl_ctx(softc->dev); in bnxt_init_sysctl_ctx() [all …]
|
| /freebsd/usr.sbin/cxgbetool/ |
| H A D | cxgbetool.c | 1 /*- 88 unsigned char islog2; /* Field contains the base-2 log of the value */ 118 "\tloadboot-cfg <bc.bin> install boot config\n" in usage() 119 "\tloadboot-cfg clear remove boot config\n" in usage() 120 "\tloadcfg <fw-config.txt> install configuration file\n" in usage() 122 "\tloadfw <fw-image.bin> install firmware\n" in usage() 130 "\tsched-class params <param> <val> .. configure TX scheduler class\n" in usage() 131 "\tsched-queue <port> <queue> <class> bind NIC queues to TX Scheduling class\n" in usage() 265 return (val >> shift) & ((1 << len) - 1); in xtract() 273 for ( ; reg_array->nam in dump_block_regs() 3657 const char *num; open_nexus_device() local [all...] |
| /freebsd/sys/dev/sfxge/common/ |
| H A D | efx_regs_mcdi.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright 2008-2013 Solarflare Communications Inc. All rights reserved. 32 /* Power-on reset state */ 54 /* The 'doorbell' addresses are hard-wired to alert the MC when written */ 57 /* The rest of these are firmware-defined */ 65 /* Values to be written to the per-port status dword in shared 94 * | | \--- Response 95 * | \------- Error 96 * \------------------------------ Resync (always set) [all …]
|
| /freebsd/sys/dev/mgb/ |
| H A D | if_mgb.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 35 * LAN7430 https://www.microchip.com/en-us/product/LAN7430 36 * - Integrated IEEE 802.3 compliant PHY 37 * LAN7431 https://www.microchip.com/en-us/product/LAN7431 38 * - RGMII Interface 43 * ---------------------- 47 * - Multiple (up to 4) RX queues support 48 * - Just needs to remove asserts and malloc multiple `rx_ring_data` 50 * - RX/TX Checksum Offloading support [all …]
|
| /freebsd/sys/dev/neta/ |
| H A D | if_mvneta.c | 191 #define mvneta_sc_lock(sc) mtx_lock(&sc->mtx) 192 #define mvneta_sc_unlock(sc) mtx_unlock(&sc->mtx) 284 "rx_frame_1_64", "Frame Size 1 - 64"}, 286 "rx_frame_65_127", "Frame Size 65 - 127"}, 288 "rx_frame_128_255", "Frame Size 128 - 255"}, 290 "rx_frame_256_511", "Frame Size 256 - 511"}, 292 "rx_frame_512_1023", "Frame Size 512 - 1023"}, 294 "rx_fame_1024_max", "Frame Size 1024 - Max"}, 334 { -1, 0} 369 * Fall back -- use the currently programmed address. in mvneta_get_mac_address() [all …]
|