/freebsd/sys/contrib/device-tree/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-schema [all...] |
/freebsd/sys/contrib/dev/athk/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-2023 Qualcomm Innovation Center, Inc. All rights reserved. 51 /* SMBIOS type structure length (excluding strings-set) */ 201 /* set country code by ANSI country name, based on ISO3166-1 alpha2 */ 505 /* the following are protected by ar->data_lock */ 534 /* Protected with ar->data_lock */ 561 #define ATH11K_DEFAULT_NOISE_FLOOR -95 563 #define ATH11K_INVALID_RSSI_FULL -1 565 #define ATH11K_INVALID_RSSI_EMPTY -128 [all …]
|
/freebsd/crypto/openssl/ssl/ |
H A D | t1_enc.c | 2 * Copyright 1995-2022 The OpenSSL Project Authors. All Rights Reserved. 48 kdf = EVP_KDF_fetch(s->ctx->libctx, OSSL_KDF_NAME_TLS1_PRF, s->ctx->propq); in tls1_PRF() 86 static int tls1_generate_key_block(SSL *s, unsigned char *km, size_t num) in tls1_generate_key_block() argument 93 TLS_MD_KEY_EXPANSION_CONST_SIZE, s->s3.server_random, in tls1_generate_key_block() 94 SSL3_RANDOM_SIZE, s->s3.client_random, SSL3_RANDOM_SIZE, in tls1_generate_key_block() 95 NULL, 0, NULL, 0, s->session->master_key, in tls1_generate_key_block() 96 s->session->master_key_length, km, num, 1); in tls1_generate_key_block() 111 int imacsize = -1; in tls_provider_set_tls_params() 115 * We look at s->ext.use_etm instead of SSL_READ_ETM() or in tls_provider_set_tls_params() 119 && !s->ext.use_etm) in tls_provider_set_tls_params() [all …]
|
/freebsd/sys/dev/bxe/ |
H A D | ecore_sp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2007-2017 QLogic Corporation. All rights reserved. 39 * ecore_exe_queue_init - init the Exe Queue object 61 ECORE_LIST_INIT(&o->exe_queue); in ecore_exe_queue_init() 62 ECORE_LIST_INIT(&o->pending_comp); in ecore_exe_queue_init() 64 ECORE_SPIN_LOCK_INIT(&o->lock, sc); in ecore_exe_queue_init() 66 o->exe_chunk_len = exe_len; in ecore_exe_queue_init() 67 o->owner = owner; in ecore_exe_queue_init() 70 o->validate = validate; in ecore_exe_queue_init() [all …]
|
/freebsd/sys/contrib/dev/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 - MA [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-900 [all...] |
/freebsd/crypto/openssl/include/openssl/ |
H A D | core_dispatch.h | 2 * Copyright 2019-2021 The OpenSSL Project Authors. All Rights Reserved. 21 /*- 23 * ---------- 33 * - a macro for the identity with the name OSSL_FUNC_'FOO' or derivatives 35 * - a function signature typedef with the name OSSL_FUNC_'foo'_fn 36 * - a function pointer extractor function with the name OSSL_FUNC_'foo' 41 * |type| is the return-type of the function, |name| is the name of the 52 return (OSSL_FUNC_##name##_fn *)opf->function; \ 62 /* Functions provided by the Core to the provider, reserved numbers 1-1023 */ 110 CRYPTO_malloc, (size_t num, const char *file, int line)) [all …]
|
/freebsd/sys/netgraph/ |
H A D | ng_bridge.c | 1 /*- 20 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. 42 * algorithm is included which disables a link for priv->conf.loopTimeout 44 * another within priv->conf.minStableAge seconds. 49 * expire after priv->conf.maxStaleness seconds. 105 /* Per-link private data */ 109 unsigned int learnMac : 1, /* autolearn macs */ 110 sendUnknown : 1;/* send unknown macs out */ 115 /* Per-node private data */ 120 u_int numHosts; /* num entries in table */ [all …]
|
/freebsd/contrib/wpa/src/wps/ |
H A D | wps_validate.c | 2 * Wi-Fi Protected Setup - Strict protocol validation routines 25 wpa_printf(MSG_INFO, "WPS-STRICT: Version attribute " in wps_validate_version() 27 return -1; in wps_validate_version() 32 wpa_printf(MSG_INFO, "WPS-STRICT: Invalid Version attribute " in wps_validate_version() 34 return -1; in wps_validate_version() 44 wpa_printf(MSG_INFO, "WPS-STRICT: Version2 attribute " in wps_validate_version2() 46 return -1; in wps_validate_version2() 51 wpa_printf(MSG_INFO, "WPS-STRICT: Invalid Version2 attribute " in wps_validate_version2() 53 return -1; in wps_validate_version2() 63 wpa_printf(MSG_INFO, "WPS-STRICT: Request Type " in wps_validate_request_type() [all …]
|
/freebsd/crypto/openssl/providers/implementations/ciphers/ |
H A D | cipher_aes_cbc_hmac_sha1_hw.c | 2 * Copyright 2011-2021 The OpenSSL Project Authors. All Rights Reserved. 52 if (ctx->base.enc) in aesni_cbc_hmac_sha1_init_key() 53 ret = aesni_set_encrypt_key(key, keylen * 8, &ctx->ks); in aesni_cbc_hmac_sha1_init_key() 55 ret = aesni_set_decrypt_key(key, keylen * 8, &ctx->ks); in aesni_cbc_hmac_sha1_init_key() 57 SHA1_Init(&sctx->head); /* handy when benchmarking */ in aesni_cbc_hmac_sha1_init_key() 58 sctx->tail = sctx->head; in aesni_cbc_hmac_sha1_init_key() 59 sctx->md = sctx->head; in aesni_cbc_hmac_sha1_init_key() 61 ctx->payload_length = NO_PAYLOAD_LENGTH; in aesni_cbc_hmac_sha1_init_key() 63 vctx->removetlspad = 1; in aesni_cbc_hmac_sha1_init_key() 64 vctx->removetlsfixed = SHA_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha1_init_key() [all …]
|
H A D | cipher_aes_cbc_hmac_sha256_hw.c | 2 * Copyright 2011-2021 The OpenSSL Project Authors. All Rights Reserved. 54 if (ctx->base.enc) in aesni_cbc_hmac_sha256_init_key() 55 ret = aesni_set_encrypt_key(key, ctx->base.keylen * 8, &ctx->ks); in aesni_cbc_hmac_sha256_init_key() 57 ret = aesni_set_decrypt_key(key, ctx->base.keylen * 8, &ctx->ks); in aesni_cbc_hmac_sha256_init_key() 59 SHA256_Init(&sctx->head); /* handy when benchmarking */ in aesni_cbc_hmac_sha256_init_key() 60 sctx->tail = sctx->head; in aesni_cbc_hmac_sha256_init_key() 61 sctx->md = sctx->head; in aesni_cbc_hmac_sha256_init_key() 63 ctx->payload_length = NO_PAYLOAD_LENGTH; in aesni_cbc_hmac_sha256_init_key() 65 vctx->removetlspad = 1; in aesni_cbc_hmac_sha256_init_key() 66 vctx->removetlsfixed = SHA256_DIGEST_LENGTH + AES_BLOCK_SIZE; in aesni_cbc_hmac_sha256_init_key() [all …]
|
/freebsd/crypto/openssl/crypto/evp/ |
H A D | e_aes_cbc_hmac_sha1.c | 2 * Copyright 2011-2021 The OpenSSL Project Authors. All Rights Reserved. 41 #define NO_PAYLOAD_LENGTH ((size_t)-1) 47 # define AESNI_CAPABLE (1<<(57-32)) 79 &key->ks); in aesni_cbc_hmac_sha1_init_key() 83 &key->ks); in aesni_cbc_hmac_sha1_init_key() 85 SHA1_Init(&key->head); /* handy when benchmarking */ in aesni_cbc_hmac_sha1_init_key() 86 key->tail = key->head; in aesni_cbc_hmac_sha1_init_key() 87 key->md = key->head; in aesni_cbc_hmac_sha1_init_key() 89 key->payload_length = NO_PAYLOAD_LENGTH; in aesni_cbc_hmac_sha1_init_key() 108 if ((res = c->num)) { in sha1_update() [all …]
|
H A D | e_aes_cbc_hmac_sha256.c | 2 * Copyright 2013-2021 The OpenSSL Project Authors. All Rights Reserved. 41 # define NO_PAYLOAD_LENGTH ((size_t)-1) 47 # define AESNI_CAPABLE (1<<(57-32)) 75 &key->ks); in aesni_cbc_hmac_sha256_init_key() 79 &key->ks); in aesni_cbc_hmac_sha256_init_key() 81 SHA256_Init(&key->head); /* handy when benchmarking */ in aesni_cbc_hmac_sha256_init_key() 82 key->tail = key->head; in aesni_cbc_hmac_sha256_init_key() 83 key->md = key->head; in aesni_cbc_hmac_sha256_init_key() 85 key->payload_length = NO_PAYLOAD_LENGTH; in aesni_cbc_hmac_sha256_init_key() 103 if ((res = c->num)) { in sha256_update() [all …]
|
/freebsd/sys/dev/sfxge/common/ |
H A D | efx_regs_mcdi_aoe.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright 2008-2018 Solarflare Communications Inc. All rights reserved. 152 /* enum: PHY read connection from FC - may be not required */ 154 /* enum: PHY read flags from FC - may be not required */ 172 /* enum: MAC Set command - same as MC_CMD_SET_MAC */ 186 /* enum: Internal Siena-facing FPGA ports. */ 291 #define MC_CMD_FC_IN_WRITE32_LEN(num) (12+4*(num)) argument 357 /* Length of copper cable - zero when not relevant (e.g. if cable is fibre) */ 537 #define MC_CMD_FC_IN_IO_REL_WRITE32_LEN(num) (16+4*(num)) argument [all …]
|
/freebsd/crypto/openssh/ |
H A D | servconf.c | 46 # include "openbsd-compat/glob.h" 49 #include "openbsd-compat/sys-queue.h" 92 /* Portable-specific options */ in initialize_server_options() 93 options->use_pam = -1; in initialize_server_options() 96 options->num_ports = 0; in initialize_server_options() 97 options->ports_from_cmdline = 0; in initialize_server_options() 98 options->queued_listen_addrs = NULL; in initialize_server_options() 99 options->num_queued_listens = 0; in initialize_server_options() 100 options->listen_addrs = NULL; in initialize_server_options() 101 options->num_listen_addrs = 0; in initialize_server_options() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/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-controlle [all...] |
H A D | fsl-lx2160a.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 3 // Device Tree Include file for Layerscape-LX2160A family SoC. 5 // Copyright 2018-2020 NXP 7 #include <dt-bindings/clock/fsl,qoriq-clockgen.h> 8 #include <dt-bindings/gpio/gpio.h> 9 #include <dt-bindings/interrupt-controlle [all...] |
/freebsd/sys/dev/liquidio/base/ |
H A D | cn23xx_pf_device.c | 54 /* Initiate chip-wide soft reset */ in lio_cn23xx_pf_soft_reset() 89 lio_dev_err(oct, "PCI-E Fatal error detected;\n" in lio_cn23xx_pf_enable_error_reporting() 99 lio_dev_dbg(oct, "Enabling PCI-E error reporting..\n"); in lio_cn23xx_pf_enable_error_reporting() 111 /* TBD: get the info in Hand-shake */ in lio_cn23xx_pf_coprocessor_clock() 121 oct->pfvf_hsword.coproc_tics_per_us = oqticks_per_us; in lio_cn23xx_pf_get_oq_ticks() 143 uint16_t mac_no = oct->pcie_port; in lio_cn23xx_pf_setup_global_mac_regs() 144 uint16_t pf_num = oct->pf_num; in lio_cn23xx_pf_setup_global_mac_regs() 148 /* By default, mapping all 64 IOQs to a single MACs */ in lio_cn23xx_pf_setup_global_mac_regs() 158 (oct->sriov_info.trs << LIO_CN23XX_PKT_MAC_CTL_RINFO_TRS_BIT_POS); in lio_cn23xx_pf_setup_global_mac_regs() 179 srn = oct->sriov_info.pf_srn; in lio_cn23xx_pf_reset_io_queues() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
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> 86 MLX4_MAX_QP_PER_MGM = 4 * ((1 << MLX4_MAX_MGM_LOG_ENTRY_SIZE) / 16 - 2), 222 &(mdev)->persist->pdev->dev, format, \ 227 dev_err(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 229 dev_info(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 231 dev_warn(&(mdev)->persist->pdev->dev, format, ##__VA_ARGS__) 295 #define MLX4_EQ_TO_CQ_VECTOR(vector) ((vector) - \ 498 #define NO_INDX (-1) [all …]
|
H A D | mlx4_main.c | 17 * - Redistributions of source code must retain the above 21 * - Redistributions in binary form must reproduce the above 42 #include <linux/dma-mapping.h> 44 #include <linux/io-mapping.h> 61 MODULE_DESCRIPTION("Mellanox ConnectX HCA low-level driver"); 78 MODULE_PARM_DESC(msi_x, "attempt to use MSI-X if nonzero"); 101 MODULE_PARM_DESC(log_num_mgm_entry_size, "log mgm size, that defines the num" 106 " flow steering when available, set to -1"); 138 .num_mtt = 1 << 20, /* It is really num mtt segements */ 153 MODULE_PARM_DESC(log_num_mac, "Log2 max number of MACs per ETH port (1-7)"); [all …]
|
/freebsd/sys/dev/iwm/ |
H A D | if_iwmreg.h | 10 * 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-4: Type of device: see IWM_CSR_HW_REV_TYPE_xxx definitions 111 * 3-2: Revision step: 0 = A, 1 = B, 2 = C, 3 = D [all …]
|
/freebsd/sys/dev/vnic/ |
H A D | nic_main.c | 32 * ---------------------- 36 * - PR223573 multicast rx filter 37 * - PR223575 non-promiscuous mode (driver currently forces promisc) 89 /* Structure to be used by the SR-IOV for VF configuration schemas */ 116 /* MSI-X */ 138 /* PCI SR-IOV interface */ 196 nic->dev = dev; in nicpf_attach() 208 nic->node = nic_get_node_id(nic->reg_base); in nicpf_attach() 211 nic->flags &= ~NIC_TNS_ENABLED; in nicpf_attach() 218 nic->rss_ind_tbl_size = NIC_MAX_RSS_IDR_TBL_SIZE; in nicpf_attach() [all …]
|
/freebsd/contrib/nvi/common/ |
H A D | exf.c | 1 /*- 43 * file_add -- 72 gp = sp->gp; in file_add() 74 TAILQ_FOREACH_SAFE(frp, gp->frefq, q, tfrp) { in file_add() 75 if (frp->name == NULL) { in file_add() 76 TAILQ_REMOVE(gp->frefq, frp, q); in file_add() 77 free(frp->name); in file_add() 81 if (!strcmp(frp->name, name)) in file_add() 96 (frp->name = strdup(name)) == NULL) { in file_add() 103 TAILQ_INSERT_TAIL(gp->frefq, frp, q); in file_add() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | ecore_sriov.c | 2 * 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/dev/ath/ath_hal/ar5416/ |
H A D | ar5416_xmit.c | 1 /*- 2 * SPDX-License-Identifier: ISC 4 * Copyright (c) 2002-2009 Sam Leffler, Errno Consulting 5 * Copyright (c) 2002-2008 Atheros Communications, Inc. 40 HALASSERT(q < AH_PRIVATE(ah)->ah_caps.halTotalQueues); in ar5416StopTxDma() 42 HALASSERT(AH5212(ah)->ah_txq[q].tqi_type != HAL_TX_QUEUE_INACTIVE); in ar5416StopTxDma() 45 for (i = STOP_DMA_TIMEOUT/STOP_DMA_ITER; i != 0; i--) { in ar5416StopTxDma() 71 "%s: Num of pending TX Frames %d on Q %d\n", in ar5416StopTxDma() 75 /* TODO - save off and restore current values of Q1/Q2? */ in ar5416StopTxDma() 100 for (i = STOP_DMA_TIMEOUT/STOP_DMA_ITER; i != 0; i--) { in ar5416StopTxDma() [all …]
|