Home
last modified time | relevance | path

Searched +full:num +full:- +full:rxq (Results 1 – 25 of 25) sorted by relevance

/freebsd/sys/dev/netmap/
H A Dif_vtnet_netmap.h2 * 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 Dmana_en.c1 /*-
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 Dbrcm,systemport.txt4 - 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 Dbrcm,systemport.yaml1 # 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 Dixl_pf_iov.c3 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/xen/netfront/
H A Dnetfront.c1 /*-
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 Dqlnx_os.c2 * Copyright (c) 2017-2018 Cavium, Inc.
133 static int qlnx_alloc_rx_buffer(qlnx_host_t *ha, struct qlnx_rx_queue *rxq);
134 static void qlnx_reuse_rx_data(struct qlnx_rx_queue *rxq);
136 struct qlnx_rx_queue *rxq);
278 &qlnxe_queue_count, 0, "Multi-Queue queue count");
309 device_id = ha->device_id; in qlnx_vf_device()
314 return -1; in qlnx_vf_device()
322 device_id = ha->device_id; in qlnx_valid_device()
336 return -1; in qlnx_valid_device()
345 device_id = pci_get_device(ha->pci_dev); in qlnx_rdma_supported()
[all …]
H A Decore_sriov.c2 * Copyright (c) 2018-2019 Cavium, Inc.
92 if (p_vf->acquire.vfdev_info.eth_fp_hsi_minor == in ecore_vf_calculate_legacy()
96 if (!(p_vf->acquire.vfdev_info.capabilities & in ecore_vf_calculate_legacy()
116 init_data.opaque_fid = p_vf->opaque_fid; in ecore_sp_vf_start()
125 p_ramrod = &p_ent->ramrod.vf_start; in ecore_sp_vf_start()
127 p_ramrod->vf_id = GET_FIELD(p_vf->concrete_fid, PXP_CONCRETE_FID_VFID); in ecore_sp_vf_start()
128 p_ramrod->opaque_fid = OSAL_CPU_TO_LE16(p_vf->opaque_fid); in ecore_sp_vf_start()
130 switch (p_hwfn->hw_info.personality) { in ecore_sp_vf_start()
132 p_ramrod->personality = PERSONALITY_ETH; in ecore_sp_vf_start()
136 p_ramrod->personality = PERSONALITY_RDMA_AND_ETH; in ecore_sp_vf_start()
[all …]
/freebsd/sys/contrib/dev/iwlwifi/fw/
H A Derror-dump.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
3 * Copyright (C) 2014, 2018-2024 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 - fro
450 __le32 rxq; global() member
[all...]
/freebsd/sys/dev/ice/
H A Dif_ice_iflib.c1 /* SPDX-License-Identifier: BSD-3-Clause */
252 * scctx->isc_tx_tso_size_max + the VLAN header is a valid size.
256 * DMA tag. However, scctx->isc_tx_tso_segsize_max is used to set the
285 * IFLIB_SKIP_MSIX allows the driver to handle allocating MSI-X
308 /* Static driver-wide sysctls */
312 * ice_pci_mapping - Map PCI BAR memory
323 rc = ice_map_bar(sc->dev, &sc->bar0, 0); in ice_pci_mapping()
331 * ice_free_pci_mapping - Release PCI BAR memory
340 ice_free_bar(sc->dev, &sc->bar0); in ice_free_pci_mapping()
348 * ice_register - register device method callback
[all …]
H A Dice_common.c1 /* SPDX-License-Identifier: BSD-3-Clause */
127 * ice_dump_phy_type - helper function to dump phy_type in ice_dump_phy_type()
158 * ice_set_mac_type - Sets MAC type in ice_set_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_typ in ice_set_mac_type()
2118 ice_alloc_hw_res(struct ice_hw * hw,u16 type,u16 num,bool btm,u16 * res) ice_alloc_hw_res() argument
2156 ice_free_hw_res(struct ice_hw * hw,u16 type,u16 num,u16 * res) ice_free_hw_res() argument
[all...]
H A Dice_lib.c1 /* SPDX-License-Identifier: BSD-3-Clause */
71 static int ice_setup_rx_ctx(struct ice_rx_queue *rxq);
267 * ice_map_bar - Map PCIe BAR memory in ice_map_bar()
278 if (bar->res != NULL) { in ice_map_bar()
283 bar->rid = PCIR_BAR(bar_num);
284 bar->res = bus_alloc_resource_any(dev, SYS_RES_MEMORY, &bar->ri
1346 struct ice_rx_queue *rxq = &vsi->rx_queues[i]; ice_configure_all_rxq_interrupts() local
1421 struct ice_rx_queue *rxq = &vsi->rx_queues[i]; ice_flush_rxq_interrupts() local
1492 struct ice_rx_queue *rxq = &vsi->rx_queues[i]; ice_configure_rx_itr() local
1651 ice_setup_rx_ctx(struct ice_rx_queue * rxq) ice_setup_rx_ctx() argument
1802 struct ice_rx_queue *rxq = &vsi->rx_queues[qidx]; ice_control_rx_queue() local
7111 ice_add_rxq_sysctls(struct ice_rx_queue * rxq) ice_add_rxq_sysctls() argument
[all...]
/freebsd/sys/dev/iwm/
H A Dif_iwm.c20 /*-
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 …]
H A Dif_iwmreg.h10 * Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved.
31 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
35 * Copyright(c) 2005 - 2014 Intel Corporation. All rights reserved.
73 * BEGIN iwl-csr.h
81 * low power states due to driver-invoked device resets
82 * (e.g. IWM_CSR_RESET_REG_FLAG_SW_RESET) or uCode-driven power-saving modes.
95 #define IWM_CSR_INT_COALESCING (0x004) /* accum ints, 32-usec units */
109 * 31-16: Reserved
110 * 15-
[all...]
/freebsd/sys/contrib/dev/iwlwifi/fw/api/
H A Drx.h1 /* 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-900
[all...]
/freebsd/sys/dev/iwn/
H A Dif_iwn.c1 /*-
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/dev/bnxt/bnxt_en/
H A Dbnxt_sysctl.c1 /*-
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 Dcxgbetool.c1 /*-
87 unsigned char islog2; /* Field contains the base-2 log of the value */
116 "\tloadboot-cfg <bc.bin> install boot config\n" in usage()
117 "\tloadboot-cfg clear remove boot config\n" in usage()
118 "\tloadcfg <fw-config.txt> install configuration file\n" in usage()
120 "\tloadfw <fw-image.bin> install firmware\n" in usage()
128 "\tsched-class params <param> <val> .. configure TX scheduler class\n" in usage()
129 "\tsched-queue <port> <queue> <class> bind NIC queues to TX Scheduling class\n" in usage()
263 return (val >> shift) & ((1 << len) - 1); in xtract()
271 for ( ; reg_array->name; ++reg_array) in dump_block_regs()
[all …]
/freebsd/sys/contrib/dev/rtw89/
H A Dpci.h1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
1237 u32 num;
1380 #define TXADDR_INFO_LENTHG_V1_MAX ALIGN_DOWN(BIT(11) - 1, 4)
1486 /* protect TRX resources (exclude RXQ) */
1509 sizeof(info->status.status_driver_data));
1511 return (struct rtw89_pci_rx_info *)skb->c
742 u32 num; global() member
[all...]
H A Dpci.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
32 struct rtw89_pci *rtwpci = (struct rtw89_pci *)rtwdev->priv; in rtw89_pci_rst_bdram_pcie()
33 struct pci_dev *pdev = rtwpci->pdev; in rtw89_pci_rst_bdram_pcie()
48 return -EFAULT; in rtw89_pci_dma_recalc()
72 const struct rtw89_pci_info *info = rtwdev->pci_info; in rtw89_pci_txbd_recalc()
75 rp = bd_ring->r in rtw89_pci_txbd_recalc()
[all...]
/freebsd/sys/dev/sfxge/common/
H A Defx_regs_mcdi.h1 /*-
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 Dif_mgb.c1 /*-
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 Dif_mvneta.c191 #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 …]
/freebsd/sys/dev/vnic/
H A Dnicvf_queues.c119 #define GET_RBUF_INFO(x) ((struct rbuf_info *)((x) - NICVF_RCV_BUF_ALIGN_BYTES))
129 bit_mask = (1UL << bits) - 1; in nicvf_poll_reg()
138 timeout--; in nicvf_poll_reg()
140 device_printf(nic->dev, "Poll on reg 0x%lx failed\n", reg); in nicvf_poll_reg()
152 *paddr = segs->ds_addr; in nicvf_dmamap_q_cb()
164 bus_get_dma_tag(nic->dev), /* parent tag */ in nicvf_alloc_q_desc_mem()
175 &dmem->dmat); /* dmat */ in nicvf_alloc_q_desc_mem()
178 device_printf(nic->dev, in nicvf_alloc_q_desc_mem()
185 dmem->dmat, /* DMA tag */ in nicvf_alloc_q_desc_mem()
186 &dmem->base, /* virtual address */ in nicvf_alloc_q_desc_mem()
[all …]
/freebsd/sys/dev/bxe/
H A Dbxe.c1 /*-
2 * SPDX-License-Identifier: BSD-2-Clause
4 * Copyright (c) 2007-2014 QLogic Corporation. All rights reserved.
64 * FLR Support - bxe_pf_flr_clnup() is called during nic_load in the per
241 static int load_count[2][3] = { {0} }; /* per-path: 0-common, 1-port0, 2-port1 */
253 /* Interrupt Mode: 0 (IRQ), 1 (MSI/IRQ), and 2 (MSI-X/MSI/IRQ) */
256 &bxe_interrupt_mode, 0, "Interrupt (MSI-X/MSI/INTx) mode");
261 &bxe_queue_count, 0, "Multi-Queue queue count");
288 /* PCI MRRS: -1 (Auto), 0 (128B), 1 (256B), 2 (512B), 3 (1KB) */
289 static int bxe_mrrs = -1;
[all …]