/freebsd/sys/contrib/alpine-hal/ |
H A D | al_hal_pcie_w_reg.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 361 * on clear of the last register in the bind. 368 * on clear of the last register in the bind. 376 * - If MSI-X is enabled and auto_clear control bit =TRUE, automatically 377 * cleared after MSI-X message associated with this specific interrupt 378 * bit is sent (MSI-X acknowledge is received). 379 * - Software can set a bit in this register by writing 1 to the 380 * associated bit in the Interrupt Cause Set register 381 * Write-0 clears a bit. Write-1 has no effect. [all …]
|
H A D | al_hal_reg_utils.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 53 /* *INDENT-OFF* */ 57 /* *INDENT-ON* */ 65 /** get field out of 32 bit register */ 68 /** set field of 32 bit register */ 74 /** set field of 64 bit register */ 80 /** get single bit out of 32 bit register */ 87 /** set single bit field of 32 bit register to a given value */ 91 /** set single bit of 32 bit register to 1 */ [all …]
|
H A D | al_hal_pcie_axi_reg.h | 1 /*- 10 found at http://www.gnu.org/licenses/gpl-2.0.html 148 * [0x28] this register override the Target-ID field in the AXUSER [19:4], 199 * [0x44] this register override the Target-ID field in the AXUSER [19:4], 385 * - If MSI-X is enabled, and auto_clear control bit =TRUE, 386 * automatically cleared after MSI-X message associated with this 387 * specific interrupt bit is sent (MSI-X acknowledge is received). 388 * - Software can set a bit in this register by writing 1 to the 389 * associated bit in the Interrupt Cause Set register. 390 * Write-0 clears a bit. Write-1 has no effect. [all …]
|
/freebsd/sys/dev/ichiic/ |
H A D | ig4_reg.h | 40 * https://www.intel.com/content/dam/www/public/us/en/documents/datasheets/4th-gen-core-family-mobile-i-o-datasheet.pdf 42 * This is a from-scratch driver under the BSD license using the Intel data 61 * Register width is 32-bits 89 #define IG4_REG_CLR_INTR 0x0040 /* RO Clear Interrup [all...] |
/freebsd/contrib/llvm-project/lldb/include/lldb/Utility/ |
H A D | Flags.h | 1 //===-- Flags.h -------------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 24 /// The value type for flags is a 32 bit unsigned integer type. 27 /// Construct with initial flag bit values. 54 /// Clear one or more flags. 61 ValueType Clear(ValueType mask = ~static_cast<ValueType>(0)) { 92 /// Test a single flag bit. 95 /// \b true if \a bit is set, \b false otherwise. 96 bool Test(ValueType bit) const { return (m_flags & bit) != 0; } in Test() argument [all …]
|
/freebsd/tests/sys/sys/ |
H A D | bitset_test.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 18 #include <atf-c.h> 29 int prev = -1; \ in ATF_TC_BODY() 32 ATF_REQUIRE_MSG(prev < i, "incorrect bit ordering"); \ in ATF_TC_BODY() 34 "bit %d is not set", i); \ in ATF_TC_BODY() 38 prev = -1; \ in ATF_TC_BODY() 40 ATF_REQUIRE_MSG(prev < i, "incorrect bit ordering"); \ in ATF_TC_BODY() 42 "bit %d is set", i); \ in ATF_TC_BODY() 50 * of set and clear bits and make sure they match what we expect. in ATF_TC_BODY() [all …]
|
H A D | bitstring_test.c | 1 /*- 37 #include <atf-c.h> 64 _BITSTR_BITS - 1, in bitstring_test_runner() 67 2 * _BITSTR_BITS - 1, in bitstring_test_runner() 127 "bit_set_%d_%s: Failed on bit %d", in BITSTRING_TC_DEFINE() 146 "bit_clear_%d_%s: Failed on bit %d", in BITSTRING_TC_DEFINE() 162 ATF_REQUIRE_MSG(found_set_bit == -1, in BITSTRING_TC_DEFINE() 163 "bit_ffs_%d_%s: Failed all clear bits.", nbits, memloc); in BITSTRING_TC_DEFINE() 168 bit_nclear(bitstr, 0, i - 1); in BITSTRING_TC_DEFINE() 172 "bit_ffs_%d_%s: Failed on bit %d, Result %d", in BITSTRING_TC_DEFINE() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/gpio/ |
H A D | gpio-mmio.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/gpio/gpio-mmio.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Linus Walleij <linus.walleij@linaro.org> 11 - Bartosz Golaszewski <brgl@bgdev.pl> 15 of set/clear-bit registers. Such controllers are common for glue logic in 16 FPGAs or ASICs. Commonly, these controllers are accessed over memory-mapped 17 NAND-style parallel busses. 22 - brcm,bcm6345-gpio [all …]
|
/freebsd/sys/dev/ntb/ |
H A D | ntb.h | 1 /*- 41 * ntb_link_event() - notify driver context of a change in link status 50 * ntb_db_event() - notify driver context of a doorbell event 65 * ntb_port_number() - get the local port number 75 * ntb_port_count() - get the number of peer device ports 85 * ntb_peer_port_number() - get the peer port by given index 97 * ntb_peer_port_idx() - get the peer device port index by given port 110 * ntb_link_is_up() - get the current ntb link state 112 * @speed: OUT - The link speed expressed as PCIe generation number 113 * @width: OUT - The link width expressed as the number of PCIe lanes [all …]
|
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_bitvector.h | 1 //===-- sanitizer_bitvector.h -----------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 20 // Fixed size bit vector based on a single basic integer. 28 void clear() { bits_ = 0; } in clear() function 32 // Returns true if the bit has changed from 0 to 1. 39 // Returns true if the bit has changed from 1 to 0. 93 void clear() { bv_.clear(); } in clear() function 106 // Fixed size bit vector of (kLevel1Size*BV::kSize**2) bits. [all …]
|
/freebsd/sys/dev/msk/ |
H A D | if_mskreg.h | 17 * are provided to you under the BSD-type license terms provided 22 * - Redistributions of source code must retain the above copyright 24 * - Redistributions in binary form must reproduce the above 28 * - Neither the name of Marvell nor the names of its contributors 48 /*- 49 * SPDX-License-Identifier: BSD-4-Clause AND BSD-3-Clause 65 * 4. Neither the name of the author nor the names of any co-contributors 82 /*- 110 * D-Link PCI vendor ID 154 * D-Link gigabit ethernet device ID [all …]
|
/freebsd/bin/chmod/ |
H A D | chmod.1 | 1 .\"- 53 .Bl -tag -width indent 116 Only the owner of a file or the super-user is permitted to change 119 .Ex -std 125 .Bl -tag -width 6n -compact -offset indent 127 (the setuid bit). 128 Executable files with this bit set 130 Directories with this bit set will force all files and 131 sub-directories created in them to be owned by the directory owner 140 (the setgid bit). [all …]
|
/freebsd/contrib/sendmail/include/sm/ |
H A D | bitops.h | 2 * Copyright (c) 1998-2001 Proofpoint, Inc. and its suppliers. 4 * Copyright (c) 1983, 1995-1997 Eric P. Allman. All rights reserved. 13 * $Id: bitops.h,v 1.3 2013-11-22 20:51:31 ca Exp $ 20 ** Data structure for bit maps. 22 ** Each bit in this map can be referenced by an ascii character. 23 ** This is 256 possible bits, or 32 8-bit bytes. 26 # define BITMAPBITS 256 /* number of bits in a bit map */ 28 # define BITMAPBYTES (BITMAPBITS / BYTEBITS) /* number of bytes in bit map */ 29 # define BITMAPMAX ((BITMAPBYTES / sizeof (int)) - 1) 34 # define _BITWORD(bit) (((unsigned char)(bit) / (BYTEBITS * sizeof (int))) & BITMAPMAX) argument [all …]
|
/freebsd/sys/contrib/edk2/Include/Library/ |
H A D | DebugLib.h | 18 Copyright (c) 2006 - 2020, Intel Corporation. All rights reserved.<BR> 19 SPDX-License-Identifier: BSD-2-Clause-Patent 98 Macro that converts a Boolean expression to a Null-terminated ASCII string. 100 The default is to use the C pre-processor stringizing operator '#' to add 121 If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function 145 If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function 170 If any bit in ErrorLevel is also set in DebugPrintErrorLevelLib function 194 to the debug output device. If DEBUG_PROPERTY_ASSERT_BREAKPOINT_ENABLED bit of 196 DEBUG_PROPERTY_ASSERT_DEADLOOP_ENABLED bit of PcdDebugProperyMask is set then 225 If Length is greater than (MAX_ADDRESS - Buffer + 1), then ASSERT(). [all …]
|
/freebsd/sys/dev/pms/RefTisa/sallsdk/spc/ |
H A D | sahwreg.h | 2 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved. 34 /* Message Unit Registers - BAR0(0x10), BAR0(win) */ 36 /* i2o=1 space register offsets - MU_I2O_ENABLE */ 52 /* i2o=0 space register offsets - ~MU_I2O_ENABLE */ 53 #define MSGU_IBDB_SET 0x04 /* RevA - Write only, RevB - Read/Write */ 58 #define MSGU_IBDB_CLEAR 0x20 /* RevB - Host not use */ 85 #define V_Inbound_Doorbell_Set_Register 0x00 /* Host R/W Local INT 0x0 MSGU - Inbound D… 86 #define V_Inbound_Doorbell_Set_RegisterU 0x04 /* Host R/W Local INT 0x4 MSGU - Inbound D… 87 …r_Register 0x08 /* Host No access Local W, R all 0s 0x8 MSGU - Inbound Doorbell Clear */ 88 …r_RegisterU 0x0C /* Host No access Local W, R all 0s 0xC MSGU - Inbound Doorbell Clear */ [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Headers/ |
H A D | tmmintrin.h | 1 /*===---- tmmintrin.h - SSSE3 intrinsics -----------------------------------=== 5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 *===-----------------------------------------------------------------------=== 22 __target__("ssse3,no-evex512"), __min_vector_width__(64))) 25 __target__("mmx,ssse3,no-evex512"), \ 28 /// Computes the absolute value of each of the packed 8-bit signed 29 /// integers in the source operand and stores the 8-bit unsigned integer 37 /// A 64-bit vector of [8 x i8]. 38 /// \returns A 64-bit integer vector containing the absolute values of the 46 /// Computes the absolute value of each of the packed 8-bit signed [all …]
|
/freebsd/sys/dev/ice/ |
H A D | ice_bitops.h | 1 /* SPDX-License-Identifier: BSD-3-Clause */ 50 /* Determine which chunk a bit belongs in */ 53 #define BITS_TO_CHUNKS(sz) (((sz) + BITS_PER_CHUNK - 1) / BITS_PER_CHUNK) 54 /* Which bit inside a chunk this bit corresponds to */ 57 #define LAST_CHUNK_BITS(nr) ((((nr) - 1) % BITS_PER_CHUNK) + 1) 60 (BITS_PER_CHUNK - LAST_CHUNK_BIT 452 u16 bit = 0; ice_bitmap_hweight() local [all...] |
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_common.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 64 * ixgbe_init_ops_generic - Inits function ptrs 71 struct ixgbe_eeprom_info *eeprom = &hw->eeprom; in ixgbe_init_ops_generic() 72 struct ixgbe_mac_info *mac = &hw->mac; in ixgbe_init_ops_generic() 78 eeprom->ops.init_params = ixgbe_init_eeprom_params_generic; in ixgbe_init_ops_generic() 79 /* If EEPROM is valid (bit 8 = 1), use EERD otherwise use bit bang */ in ixgbe_init_ops_generic() 81 eeprom->ops.read = ixgbe_read_eerd_generic; in ixgbe_init_ops_generic() 82 eeprom->ops.read_buffer = ixgbe_read_eerd_buffer_generic; in ixgbe_init_ops_generic() 84 eeprom->ops.read = ixgbe_read_eeprom_bit_bang_generic; in ixgbe_init_ops_generic() [all …]
|
/freebsd/sys/dev/pms/RefTisa/sat/src/ |
H A D | smsat.c | 2 *Copyright (c) 2014 PMC-Sierra, Inc. All rights reserved. 73 oneDeviceData->satDeviceType = DeviceType; in smRegisterDevice() 118 smIntRoot_t *smIntRoot = (smIntRoot_t *)smRoot->smData; in smIOAbort() 119 smIntContext_t *smAllShared = (smIntContext_t *)&smIntRoot->smAllShared; in smIOAbort() 144 agRoot = smAllShared->agRoot; in smIOAbort() 145 smIORequestBody = (smIORequestBody_t *)tasktag->smData; in smIOAbort() 154 satIOContext = &(smIORequestBody->transport.SATA.satIOContext); in smIOAbort() 155 satIntIo = satIOContext->satIntIoContext; in smIOAbort() 159 agIORequest = &(smIORequestBody->agIORequest); in smIOAbort() 164 smIONewRequestBody = (smIORequestBody_t *)satIntIo->satIntRequestBody; in smIOAbort() [all …]
|
/freebsd/contrib/arm-optimized-routines/string/aarch64/ |
H A D | memchr.S | 2 * memchr - find a character in a memory zone 4 * Copyright (c) 2014-2022, Arm Limited. 5 * SPDX-License-Identifier: MIT OR Apache-2.0 WITH LLVM-exception 10 * ARMv8-a, AArch64 41 * For each 32-byte chunk we calculate a 64-bit syndrome value, with two bits 42 * per byte. For each tuple, bit 0 is set if the relevant byte matched the 43 * requested character and bit 1 is not used (faster than using a 32bit 59 /* Work with aligned 32-byte chunks */ 67 * Input string is not 32-byte aligned. We calculate the syndrome 79 addp vend.16b, vhas_chr1.16b, vhas_chr2.16b /* 256->128 */ [all …]
|
/freebsd/sys/sys/ |
H A D | bitstring.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 74 /*---------------------- Private Implementation Details ----------------------*/ 80 (((size_t)(x) + (y) - 1) & ~((size_t)(y) - 1)) 82 /* bitstr_t in bit string containing the bit. */ 89 /* bit number within bitstr_t at _bit_idx(_bit). */ 96 /* Mask for the bit within its long. */ 107 (_BITSTR_MASK >> (_BITSTR_BITS - _bit_offset(_stop) - 1))); in _bit_make_mask() 110 /*----------------------------- Public Interface -----------------------------*/ 111 /* Number of bytes allocated for a bit string of nbits bits */ [all …]
|
/freebsd/stand/i386/pxeldr/ |
H A D | pxeldr.S | 33 * separate PXE-aware client just to load the loader. 51 .set MEM_BIOS_KEYBOARD,0x496 # BDA byte with keyboard bit 66 .set SEL_SCODE,0x18 # PM-32 code 67 .set SEL_SCODE16,0x20 # PM-16 code 73 * Bit in MEM_BIOS_KEYBOARD that is set if an enhanced keyboard is present 93 andl $0xffff, %ecx # clear upper words 98 movw $welcome_msg, %si # %ds:(%si) -> welcome message 103 movw $bootinfo_msg, %si # %ds:(%si) -> boot args message 105 movw $MEM_ARG, %bx # %ds:(%bx) -> boot args 106 movw %bx, %di # %es:(%di) -> boot args [all …]
|
/freebsd/crypto/openssl/crypto/ |
H A D | x86_64cpuid.pl | 2 # Copyright 2005-2021 The OpenSSL Project Authors. All Rights Reserved. 18 ( $xlate="${dir}x86_64-xlate.pl" and -f $xlate ) or 19 ( $xlate="${dir}perlasm/x86_64-xlate.pl" and -f $xlate) or 20 die "can't locate x86_64-xlate.pl"; 41 .type OPENSSL_atomic_add,\@abi-omnipotent 55 .size OPENSSL_atomic_add,.-OPENSSL_atomic_add 58 .type OPENSSL_rdtsc,\@abi-omnipotent 68 .size OPENSSL_rdtsc,.-OPENSSL_rdtsc 80 mov %rax,8(%rdi) # clear extended feature flags 116 and \$0x00000801,%r9d # isolate AMD XOP bit, 1<<11 [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/CodeGen/SelectionDAG/ |
H A D | FunctionLoweringInfo.cpp | 1 //===-- FunctionLoweringInfo.cpp ------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 41 #define DEBUG_TYPE "function-lowering-info" 43 /// isUsedOutsideOfDefiningBlock - Return true if this instruction is used by 47 if (I->use_empty()) return false; in isUsedOutsideOfDefiningBlock() 49 const BasicBlock *BB = I->getParent(); in isUsedOutsideOfDefiningBlock() 50 for (const User *U : I->users()) in isUsedOutsideOfDefiningBlock() 51 if (cast<Instruction>(U)->getParent() != BB || isa<PHINode>(U)) in isUsedOutsideOfDefiningBlock() [all …]
|
/freebsd/contrib/pjdfstest/tests/granular/ |
H A D | 02.t | 3 # $FreeBSD: head/tools/regression/pjdfstest/tests/granular/02.t 211352 2010-08-15 21:24:17Z pjd $ 5 desc="NFSv4 granular permissions checking - ACL_READ_ACL and ACL_WRITE_ACL" 25 expect 0 -u 65534 -g 65534 readacl ${n0} 28 expect EACCES -u 65534 -g 65534 readacl ${n0} 30 expect 0 -u 65534 -g 65534 readacl ${n0} 36 expect EPERM -u 65534 -g 65534 prependacl ${n0} user:65534:read_data::allow 38 expect 0 -u 65534 -g 65534 prependacl ${n0} user:65534:read_data::allow 43 expect EPERM -u 65534 -g 65534 chmod ${n0} 0777 45 expect 0 -u 65534 -g 65534 chmod ${n0} 0777 53 # 3. Modifying ACL does not clear SUID nor SGID bits. [all …]
|