| /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() local [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/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 …]
|
| /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 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() 81 CTLFLAG_RD, &stats->rx_frag_copy_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> 206 struct netfront_txq *txq; member 222 struct netfront_txq *txq; 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) [all …]
|
| /freebsd/sys/contrib/dev/rtw88/ |
| H A D | tx.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 18 hdr = (struct ieee80211_hdr *)skb->data; in rtw_tx_stats() 20 if (!ieee80211_is_data(hdr->frame_control)) in rtw_tx_stats() 23 if (!is_broadcast_ether_addr(hdr->addr1) && in rtw_tx_stats() 24 !is_multicast_ether_addr(hdr->addr1)) { in rtw_tx_stats() 25 rtwdev->stats.tx_unicast += skb->len; in rtw_tx_stats() 26 rtwdev->stats.tx_cnt++; in rtw_tx_stats() 28 rtwvif = (struct rtw_vif *)vif->drv_priv; in rtw_tx_stats() 29 rtwvif->stats.tx_unicast += skb->len; in rtw_tx_stats() [all …]
|
| H A D | main.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 2 /* Copyright(c) 2018-2019 Realtek Corporation 231 .n_bitrates = ARRAY_SIZE(rtw_ratetable) - 4, 244 struct rtw_bf_info *bf_info = &rtwdev->bf_info; in rtw_dynamic_csi_rate() 248 if (rtwvif->bfee.role != RTW_BFEE_SU && in rtw_dynamic_csi_rate() 249 rtwvif->bfee.role != RTW_BFEE_MU) in rtw_dynamic_csi_rate() 252 rtw_chip_cfg_csi_rate(rtwdev, rtwdev->dm_info.min_rssi, in rtw_dynamic_csi_rate() 253 bf_info->cur_csi_rpt_rate, in rtw_dynamic_csi_rate() 256 if (new_csi_rate_idx != bf_info->cur_csi_rpt_rate) in rtw_dynamic_csi_rate() 257 bf_info->cur_csi_rpt_rate = new_csi_rate_idx; in rtw_dynamic_csi_rate() [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/contrib/dev/iwlwifi/queue/ |
| H A D | tx.c | |
| /freebsd/sys/contrib/dev/iwlwifi/pcie/gen1_2/ |
| H A D | tx.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2003-2014, 2018-2021, 2023-2025 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 24 #include "iwl-fh.h" 25 #include "iwl-debug.h" 26 #include "iwl-csr.h" 27 #include "iwl-prph.h" 28 #include "iwl-io.h" 29 #include "iwl-scd.h" [all …]
|
| /freebsd/sys/dev/ath/ |
| H A D | if_ath_tx.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2010-2012 Adrian Chadd, Xenion Pty Ltd 116 * What queue to throw the non-QoS TID traffic into 148 if (bf->bf_nseg == 0) in ath_tx_alq_post() 150 n = ((bf->bf_nseg - 1) / sc->sc_tx_nmaps) + 1; in ath_tx_alq_post() 151 for (i = 0, ds = (const char *) bf->bf_desc; in ath_tx_alq_post() 153 i++, ds += sc->sc_tx_desclen) { in ath_tx_alq_post() 154 if_ath_alq_post(&sc->sc_alq, in ath_tx_alq_post() [all …]
|
| /freebsd/sys/dev/qlnx/qlnxe/ |
| H A D | qlnx_os.c | 2 * Copyright (c) 2017-2018 Cavium, Inc. 149 struct qlnx_tx_queue *txq); 151 struct qlnx_tx_queue *txq); 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() 355 return (-1); in qlnx_rdma_supported() [all …]
|
| /freebsd/sys/contrib/dev/athk/ath10k/ |
| H A D | htt_rx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 34 hash_for_each_possible(ar->htt.rx_ring.skb_table, rxcb, hlist, paddr) in ath10k_htt_rx_find_skb_paddr() 35 if (rxcb->paddr == paddr) in ath10k_htt_rx_find_skb_paddr() 49 if (htt->rx_ring.in_ord_rx) { in ath10k_htt_rx_ring_free() 50 hash_for_each_safe(htt->rx_ring.skb_table, i, n, rxcb, hlist) { in ath10k_htt_rx_ring_free() 52 dma_unmap_single(htt->ar->dev, rxcb->paddr, in ath10k_htt_rx_ring_free() 53 skb->len + skb_tailroom(skb), in ath10k_htt_rx_ring_free() 55 hash_del(&rxcb->hlist); in ath10k_htt_rx_ring_free() [all …]
|
| H A D | htt_tx.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 38 struct ieee80211_txq *txq) in __ath10k_htt_tx_txq_recalc() argument 40 struct ath10k *ar = hw->priv; in __ath10k_htt_tx_txq_recalc() 42 struct ath10k_vif *arvif = (void *)txq->vif->drv_priv; in __ath10k_htt_tx_txq_recalc() 51 lockdep_assert_held(&ar->htt.tx_lock); in __ath10k_htt_tx_txq_recalc() 53 if (!ar->htt.tx_q_state.enabled) in __ath10k_htt_tx_txq_recalc() 56 if (ar->htt.tx_q_state.mode != HTT_TX_MODE_SWITCH_PUSH_PULL) in __ath10k_htt_tx_txq_recalc() 59 if (txq->sta) { in __ath10k_htt_tx_txq_recalc() [all …]
|
| H A D | mac.c | 1 // SPDX-License-Identifier: ISC 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 5 * Copyright (c) 2018-2019, The Linux Foundation. All rights reserved. 26 #include "wmi-tlv.h" 27 #include "wmi-ops.h" 100 #define ath10k_a_rates_size (ARRAY_SIZE(ath10k_rates) - \ 135 for (i = 0; i < sband->n_bitrates; i++) { in ath10k_mac_hw_rate_to_idx() 136 rate = &sband->bitrates[i]; in ath10k_mac_hw_rate_to_idx() 138 if (ath10k_mac_bitrate_is_cck(rate->bitrate) != cck) in ath10k_mac_hw_rate_to_idx() [all …]
|
| H A D | htt.h | 1 /* SPDX-License-Identifier: ISC */ 3 * Copyright (c) 2005-2011 Atheros Communications Inc. 4 * Copyright (c) 2011-2017 Qualcomm Atheros, Inc. 31 /* bits 5-23 currently reserved */ 36 enum htt_h2t_msg_type { /* host-to-target */ 59 u8 pad[sizeof(u32) - sizeof(struct htt_cmd_hdr)]; 76 * but the host shall use the bit-mast + bit-shift defs, to be endian- 178 * htt_data_tx_desc - used for data tx path 181 * ext_tid: for qos-data frames (0-15), see %HTT_DATA_TX_EXT_TID_ 243 #define HTT_RX_RING_FILL_LEVEL (((HTT_RX_RING_SIZE) / 2) - 1) [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/mvm/ |
| H A D | sta.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 3 * Copyright (C) 2012-2015, 2018-2025 Intel Corporation 4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH 5 * Copyright (C) 2016-2017 Intel Deutschland GmbH 24 fw_has_api(&mvm->fw->ucode_capa, IWL_UCODE_TLV_API_STA_TYPE)) in iwl_mvm_add_sta_cmd_size() 36 WARN_ON_ONCE(test_bit(IWL_MVM_STATUS_IN_HW_RESTART, &mvm->status)); in iwl_mvm_find_free_sta_id() 38 lockdep_assert_held(&mvm->mutex); in iwl_mvm_find_free_sta_id() 44 /* Don't take rcu_read_lock() since we are protected by mvm->mutex */ in iwl_mvm_find_free_sta_id() 45 for (sta_id = 0; sta_id < mvm->fw->ucode_capa.num_stations; sta_id++) { in iwl_mvm_find_free_sta_id() 49 if (!rcu_dereference_protected(mvm->fw_id_to_mac_id[sta_id], in iwl_mvm_find_free_sta_id() [all …]
|
| /freebsd/sys/contrib/dev/mediatek/mt76/mt7921/ |
| H A D | main.c | 1 // SPDX-License-Identifier: ISC 17 int nss = hweight8(phy->mt76->chainmask); in mt7921_init_he_caps() 30 &he_cap->he_cap_elem; in mt7921_init_he_caps() 32 &he_cap->he_mcs_nss_supp; in mt7921_init_he_caps() 43 he_cap->has_he = true; in mt7921_init_he_caps() 45 he_cap_elem->mac_cap_info[0] = in mt7921_init_he_caps() 47 he_cap_elem->mac_cap_info[3] = in mt7921_init_he_caps() 50 he_cap_elem->mac_cap_info[4] = in mt7921_init_he_caps() 54 he_cap_elem->phy_cap_info[0] = in mt7921_init_he_caps() 57 he_cap_elem->phy_cap_info[0] = in mt7921_init_he_caps() [all …]
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/api/ |
| H A D | tx.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2012-2014, 2018-2025 Intel Corporation 4 * Copyright (C) 2016-2017 Intel Deutschland GmbH 11 * enum iwl_tx_flags - bitmasks for tx_flags in TX command 12 * @TX_CMD_FLG_PROT_REQUIRE: use RTS or CTS-to-self to protect the frame 28 * Should be set for mgmt, non-QOS data, mcast, bcast and in scan command 29 * @TX_CMD_FLG_MORE_FRAG: this frame is non-last MPDU 38 * @TX_CMD_FLG_DUR: disable duration overwriting used in PS-Poll Assoc-id 73 * enum iwl_tx_cmd_flags - bitmasks for tx_flags in TX command for 22000 77 * @IWL_TX_FLAGS_HIGH_PRI: high priority frame (like EAPOL) - can affect rate [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/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 …]
|