/freebsd/sys/dev/mlx4/mlx4_en/ |
H A D | mlx4_en_tx.c | 14 * - Redistributions of source code must retain the above 18 * - Redistributions in binary form must reproduce the above 59 struct mlx4_en_dev *mdev = priv->mdev; in mlx4_en_create_tx_ring() 60 struct mlx4_en_tx_ring *ring; in mlx4_en_create_tx_ring() local 65 ring = kzalloc_node(sizeof(struct mlx4_en_tx_ring), GFP_KERNEL, node); in mlx4_en_create_tx_ring() 66 if (!ring) { in mlx4_en_create_tx_ring() 67 ring = kzalloc(sizeof(struct mlx4_en_tx_ring), GFP_KERNEL); in mlx4_en_create_tx_ring() 68 if (!ring) { in mlx4_en_create_tx_ring() 69 en_err(priv, "Failed allocating TX ring\n"); in mlx4_en_create_tx_ring() 70 return -ENOMEM; in mlx4_en_create_tx_ring() [all …]
|
/freebsd/share/man/man4/ |
H A D | netmap.4 | 1 .\" Copyright (c) 2011-2014 Matteo Landi, Luigi Rizzo, Universita` di Pisa 25 .\" This document is derived in part from the enet man page (enet.4) 45 .Bl -tag -width XXXX 51 implementing a very fast and modular in-kernel software switch/dataplane; 56 .Xr bpf 4 72 35-40 Mpps on 40 Gbit/s NICs (limited by the hardware); 79 which uses unmodified device drivers and is 3-5 times faster than 80 .Xr bpf 4 98 supports both non-blocking I/O through 138 There is one ring for each transmit/receive queue of a [all …]
|
H A D | bnxt.4 | 27 .Dt BNXT 4 31 .Nd "Broadcom NetXtreme-C/NetXtreme-E Family Ethernet driver" 36 .Bd -ragged -offset indent 44 .Bd -literal -offset indent 50 driver provides support for various NICs based on the Broadcom BCM57301/2/4, 51 BCM57402/4/6, and BCM57502/4/ [all...] |
/freebsd/sys/contrib/device-tree/Bindings/crypto/ |
H A D | fsl,sec-v4.0.yaml | 1 # SPDX-License-Identifier: GPL-2.0 2 # Copyright (C) 2008-2011 Freescale Semiconductor Inc. 4 --- 5 $id: http://devicetree.org/schemas/crypto/fsl,sec-v4.0.yaml# 6 $schema: http://devicetree.org/meta-schemas/core.yaml# 8 title: Freescale SEC 4 11 - '"Horia Geantă" <horia.geanta@nxp.com>' 12 - Pankaj Gupta <pankaj.gupta@nxp.com> 13 - Gaurav Jain <gaurav.jain@nxp.com> 16 NOTE: the SEC 4 is also known as Freescale's Cryptographic Accelerator [all …]
|
H A D | fsl-sec6.txt | 4 -SEC 6 Node 5 -Job Ring Node 6 -Full Example 20 - compatible 23 Definition: Must include "fsl,sec-v6.0". 25 - fsl,sec-era 31 - #address-cells 37 - #size-cells 44 - reg 46 Value type: <prop-encoded-array> [all …]
|
/freebsd/sys/contrib/xen/ |
H A D | argo.h | 2 * Argo : Hypervisor-Mediated data eXchange 7 * Copyright (c) 2018-2019, BAE Systems 36 /* The maximum size of an Argo ring is defined to be: 16MB (0x1000000 bytes). */ 39 /* Fixed-width type for "argo port" number. Nothing to do with evtchns. */ 42 /* gfn type: 64-bit fixed-width on all architectures */ 81 * Header space reserved for later use. Align the start of the ring to a 85 uint8_t ring[XEN_FLEX_ARRAY_DIM]; member 103 /* Messages on the ring are padded to a multiple of this size. */ 109 /* Ring exists */ 111 /* Ring is shared, not unicast */ [all …]
|
/freebsd/sys/contrib/device-tree/src/powerpc/fsl/ |
H A D | pq3-sec4.4-0.dtsi | 36 compatible = "fsl,sec-v4.4", "fsl,sec-v4.0"; 37 fsl,sec-era = <3>; 38 #address-cells = <1>; 39 #size-cells = <1>; 45 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring"; 51 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring"; 57 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring"; 63 compatible = "fsl,sec-v4.4-job-ring", "fsl,sec-v4.0-job-ring";
|
H A D | qoriq-sec6.0-0.dtsi | 35 compatible = "fsl,sec-v6.0", "fsl,sec-v5.0", 36 "fsl,sec-v4.0"; 37 fsl,sec-era = <6>; 38 #address-cells = <1>; 39 #size-cells = <1>; 42 compatible = "fsl,sec-v6.0-job-ring", 43 "fsl,sec-v5.2-job-ring", 44 "fsl,sec-v5.0-job-ring", 45 "fsl,sec-v4.4-job-ring", 46 "fsl,sec-v4.0-job-ring"; [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | lb.c | 60 u_int8_t ihl:4, version:4; 73 u_int8_t priority:4, version:4; 123 return q->n >= q->size; in oq_full() 129 return q->n <= 0; in oq_empty() 136 D("%s: queue full!", q->name); in oq_enq() 139 q->slots[q->tail] = *s; in oq_enq() 140 q->n++; in oq_enq() 141 q->tail++; in oq_enq() 142 if (q->tail >= q->size) in oq_enq() 143 q->tail = 0; in oq_enq() [all …]
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | hal.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. 28 #define HAL_WBM_IDLE_SCATTER_BUF_SIZE (HAL_WBM_IDLE_SCATTER_BUF_SIZE_MAX - \ 39 #define HAL_OFFSET_FROM_HP_TO_TP 4 41 #define HAL_SHADOW_REG(x) (HAL_SHADOW_BASE_ADDR + (4 * (x))) 57 /* SW2TCL(x) R0 ring configuration address */ 62 #define HAL_TCL1_RING_ID(ab) ((ab)->hw_params->regs->hal_tcl1_ring_id) 64 ((ab)->hw_params->regs->hal_tcl1_ring_misc) 66 ((ab)->hw_params->regs->hal_tcl1_ring_tp_addr_lsb) [all …]
|
H A D | hal_desc.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. 65 * Sw_buffer_cookie[19:16] = 4'b0000: pattern 0 only 66 * Sw_buffer_cookie[19:16] = 4'b0001: pattern 1 only 67 * Sw_buffer_cookie[19:16] = 4'b0010: pattern 2 only 68 * Sw_buffer_cookie[19:16] = 4'b0011: pattern 3 only 69 * Sw_buffer_cookie[19:16] = 4'b0100: pattern 4 only 70 * Sw_buffer_cookie[19:16] = 4'b0101: pattern 5 only 71 * Sw_buffer_cookie[19:16] = 4'b0110: pattern 6 only [all …]
|
H A D | hw.c | 1 // SPDX-License-Identifier: BSD-3-Clause-Clear 3 * Copyright (c) 2018-2021 The Linux Foundation. All rights reserved. 4 * Copyright (c) 2021-2022 Qualcomm Innovation Center, Inc. All rights reserved. 42 if (ring_num < 3 || ring_num == 4) in ath12k_dp_srng_is_comp_ring_qcn9274() 67 if (ring_num == 0 || ring_num == 2 || ring_num == 4) in ath12k_dp_srng_is_comp_ring_wcn7850() 119 /* CE0: host->target HTC control and raw streams */ 129 /* CE1: target->host HTT + HTC control */ 139 /* CE2: target->host WMI */ 149 /* CE3: host->target WMI (mac0) */ 159 /* CE4: host->target HTT */ [all …]
|
/freebsd/sys/contrib/xen/io/ |
H A D | ring.h | 2 * ring.h 4 * Shared producer-consumer ring macros. 33 * - standard integers types (uint8_t, uint16_t, etc) 38 * - size_t 39 * - memcpy 40 * - grant_ref_t 45 #include "../xen-compat.h" 55 /* Round a 32-bit unsigned constant down to the nearest power of two. */ 58 #define __RD8(_x) (((_x) & 0x000000f0) ? __RD4((_x)>>4)<<4 : __RD4(_x)) 63 * Calculate size of a shared ring, given the total available space for the [all …]
|
H A D | blkif.h | 4 * Unified block-device I/O interface for Xen guest OSes. 24 * Copyright (c) 2003-2004, Keir Fraser 31 #include "ring.h" 35 * Front->back notifications: When enqueuing a new request, sending a 37 * hold-off mechanism provided by the ring macros). Backends must set 40 * Back->front notifications: When enqueuing a new response, sending a 42 * hold-off mechanism provided by the ring macros). Frontends must set 80 *------------------ Backend Device Identification (PRIVATE) ------------------ 95 * physical-device 102 * physical-device-path [all …]
|
/freebsd/sys/dev/qlxgb/ |
H A D | qla_hw.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2011-2013 Qlogic Corporation 44 * Command Response Interface - Commands 77 * Command Response Interface - Response 103 * Transmit Context - Q8_CMD_CREATE_TX_CNTXT Command Configuration Data 111 uint32_t caps[4]; /* capabilities - bit vector*/ 123 uint64_t phys_addr; /* physical address of transmit ring 125 uint32_t num_entries; /* number of entries in transmit ring */ 130 * Transmit Context - Response from Firmware to Q8_CMD_CREATE_TX_CNTXT [all …]
|
/freebsd/sys/dev/hifn/ |
H A D | hifn7751reg.h | 3 /*- 4 * SPDX-License-Identifier: BSD-3-Clause 9 * Copyright (c) 2000-2001 Network Security Technologies, Inc. 12 * Please send any comments, feedback, bug-fixes, or feature requests to 41 * Materiel Command, USAF, under agreement number F30602-01-2-0537. 77 * The values below should multiple of 4 -- and be large enough to handle 81 * mac-key + rc4-key 87 #define HIFN_MAX_RESULT (8 + 4 + 20 + 4) 152 #define HIFN_PUCNFG_DSZ_4M 0x8000 /* 4m dram */ 212 #define HIFN_1_DMA_CRAR 0x0c /* DMA Command Ring Address */ [all …]
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | hal.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 28 #define HAL_WBM_IDLE_SCATTER_BUF_SIZE (HAL_WBM_IDLE_SCATTER_BUF_SIZE_MAX - \ 35 #define HAL_SHADOW_BASE_ADDR(ab) ab->hw_params.regs->hal_shadow_base_addr 38 #define HAL_OFFSET_FROM_HP_TO_TP 4 40 #define HAL_SHADOW_REG(ab, x) (HAL_SHADOW_BASE_ADDR(ab) + (4 * (x))) 47 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_src_reg) 49 (ab->hw_params.regs->hal_seq_wcss_umac_ce0_dst_reg) 51 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_src_reg) 53 (ab->hw_params.regs->hal_seq_wcss_umac_ce1_dst_reg) [all …]
|
H A D | hal_desc.h | 1 /* SPDX-License-Identifier: BSD-3-Clause-Clear */ 3 * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. 55 HAL_PHYRX_USER_ABORT_NOTIFICATION = 4 /* 0x4 */, 479 #define HAL_TLV_ALIGN 4 522 * fragment MPDU to the REO destination ring without any reorder 530 * Indicates the MPDU was received as part of an A-MPDU. 616 * field is still valid for MPDU frames without A-MSDU. It still 622 * The id of the reo exit ring where the msdu frame shall push 628 * any other ring. 685 #define HAL_REO_DEST_RING_INFO1_REORDER_OPCODE GENMASK(4, 1) [all …]
|
/freebsd/sys/dev/qat/include/common/ |
H A D | adf_gen4_hw_data.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 25 /* Ring reset */ 31 #define ADF_WQM_CSR_RPRESETSTS(bank) (ADF_WQM_CSR_RPRESETCTL(bank) + 4) 35 #define ADF_WQM_CSR_RPRESETCTL_MASK (BIT(3) - 1) 39 #define ADF_WQM_CSR_RPRESETSTS(bank) (ADF_WQM_CSR_RPRESETCTL(bank) + 4) 43 #define READ_CSR_RING_HEAD(csr_base_addr, bank, ring) \ argument 46 ADF_RING_CSR_RING_HEAD + ((ring) << 2)) 47 #define READ_CSR_RING_TAIL(csr_base_addr, bank, ring) \ argument 50 ADF_RING_CSR_RING_TAIL + ((ring) << 2)) 55 #define WRITE_CSR_RING_CONFIG(csr_base_addr, bank, ring, value) \ argument [all …]
|
/freebsd/sys/contrib/dev/iwlwifi/ |
H A D | iwl-context-info-gen3.h | 1 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */ 3 * Copyright (C) 2018, 2020-2024 Intel Corporation 8 #include "iwl-context-info.h" 24 * enum iwl_prph_scratch_mtr_format - tfd size configuration 38 * enum iwl_prph_scratch_flags - PRP [all...] |
/freebsd/sys/dev/ral/ |
H A D | rt2661.c | 2 /*- 20 /*- 70 if (sc->sc_debug > 0) \ 74 if (sc->sc_debug >= (n)) \ 204 struct ieee80211com *ic = &sc->sc_ic; in rt2661_attach() 208 sc->sc_id = id; in rt2661_attach() 209 sc->sc_dev = dev; in rt2661_attach() 211 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, in rt2661_attach() 214 callout_init_mtx(&sc->watchdog_ch, &sc->sc_mtx, 0); in rt2661_attach() 215 mbufq_init(&sc->sc_snd, ifqmaxlen); in rt2661_attach() [all …]
|
H A D | rt2860.c | 1 /*- 2 * Copyright (c) 2007-2010 Damien Bergamini <damien.bergamini@free.fr> 21 /*- 70 #define DPRINTF(x) do { if (sc->sc_debug > 0) printf x; } while (0) 71 #define DPRINTFN(n, x) do { if (sc->sc_debug >= (n)) printf x; } while (0) 238 struct ieee80211com *ic = &sc->sc_ic; in rt2860_attach() 242 sc->sc_dev = dev; in rt2860_attach() 243 sc->sc_debug = 0; in rt2860_attach() 245 mtx_init(&sc->sc_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK, in rt2860_attach() 248 callout_init_mtx(&sc->watchdog_ch, &sc->sc_mtx, 0); in rt2860_attach() [all …]
|
/freebsd/sys/contrib/alpine-hal/ |
H A D | al_hal_udma_regs_s2m.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 86 * 00 - No pending tasks 100 * 0 - Log is enable 101 * 1 - Log is masked. 190 * [0x8] Counting the net length of the data buffers [64-bit] 195 * [0xc] Counting the net length of the data buffers [64-bit] 202 /* [0x14] Number of packets written into the completion ring */ 204 /* [0x18] Number of descriptors written into the completion ring */ 242 /* [0x20] S2M Descriptor ring configuration */ [all …]
|
H A D | al_hal_udma_regs.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 68 uint32_t rsrvd0[(0x10000 - sizeof(struct udma_m2s_regs)) >> 2]; 70 uint32_t rsrvd1[((0x1C000 - 0x10000) - sizeof(struct udma_s2m_regs)) >> 2]; 77 uint32_t cfg; /* Descriptor ring configuration */ 78 uint32_t status; /* Descriptor ring status and information */ 79 uint32_t drbp_low; /* Descriptor Ring Base Pointer [31:4] */ 80 uint32_t drbp_high; /* Descriptor Ring Base Pointer [63:32] */ 81 uint32_t drl; /* Descriptor Ring Length[23:2] */ 82 uint32_t drhp; /* Descriptor Ring Head Pointer */ [all …]
|
/freebsd/sys/dev/cas/ |
H A D | if_casreg.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 30 * from: FreeBSD: if_gemreg.h 174987 2007-12-30 01:32:03Z marius 67 #define CAS_INTMASK4 0x1058 /* interrupt mask 4 for INTD */ 68 #define CAS_STATUS4 0x105c /* interrupt status 4 for INTD */ 69 #define CAS_CLEAR_ALIAS4 0x1060 /* clear mask alias 4 for INTD */ 70 #define CAS_STATUS_ALIAS4 0x1064 /* interrupt status alias 4 for INTD */ 84 * Bits 0-9 of CAS_STATUS auto-clear when read. CAS_CLEAR_ALIAS specifies 85 * which of bits 0-9 auto-clear when reading CAS_STATUS_ALIAS. 94 #define CAS_INTR_RX_COMP_FULL 0x00000080 /* RX completion ring full */ [all …]
|