Home
last modified time | relevance | path

Searched +full:bit +full:- +full:manipulation (Results 1 – 25 of 378) sorted by relevance

12345678910>>...16

/kernel/linux/linux-6.6/include/linux/
Dsysv_fs.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 /* inode numbers are 16 bit */
16 /* Block numbers are 24 bit, sometimes stored in 32 bit.
17 On Coherent FS, they are always stored in PDP-11 manner: the least
21 /* 0 is non-existent */
26 /* Xenix super-block data on disk */
39 char s_flock; /* lock during free block list manipulation */
40 char s_ilock; /* lock during inode cache manipulation */
41 char s_fmod; /* super-block modified flag */
42 char s_ronly; /* flag whether fs is mounted read-only */
[all …]
Dassoc_array.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * See Documentation/core-api/assoc_array.rst for information.
28 * Operations on objects and index keys for use by array manipulation routines.
31 /* Method to get a chunk of an index key from caller-supplied data */
40 /* How different is an object from an index key, to a bit position in
41 * their keys? (or -1 if they're the same)
50 * Access and manipulation functions.
56 array->root = NULL; in assoc_array_init()
57 array->nr_leaves_on_tree = 0; in assoc_array_init()
/kernel/linux/linux-5.10/include/linux/
Dsysv_fs.h1 /* SPDX-License-Identifier: GPL-2.0 */
13 /* inode numbers are 16 bit */
16 /* Block numbers are 24 bit, sometimes stored in 32 bit.
17 On Coherent FS, they are always stored in PDP-11 manner: the least
21 /* 0 is non-existent */
26 /* Xenix super-block data on disk */
39 char s_flock; /* lock during free block list manipulation */
40 char s_ilock; /* lock during inode cache manipulation */
41 char s_fmod; /* super-block modified flag */
42 char s_ronly; /* flag whether fs is mounted read-only */
[all …]
Dassoc_array.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
4 * See Documentation/core-api/assoc_array.rst for information.
28 * Operations on objects and index keys for use by array manipulation routines.
31 /* Method to get a chunk of an index key from caller-supplied data */
40 /* How different is an object from an index key, to a bit position in
41 * their keys? (or -1 if they're the same)
50 * Access and manipulation functions.
56 array->root = NULL; in assoc_array_init()
57 array->nr_leaves_on_tree = 0; in assoc_array_init()
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/riscv/
Dextensions.yaml1 # SPDX-License-Identifier: (GPL-2.0 OR MIT)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: RISC-V ISA extensions
10 - Paul Walmsley <paul.walmsley@sifive.com>
11 - Palmer Dabbelt <palmer@sifive.com>
12 - Conor Dooley <conor@kernel.org>
15 RISC-V has a large number of extensions, some of which are "standard"
16 extensions, meaning they are ratified by RISC-V International, and others
36 Identifies the specific RISC-V instruction set architecture
[all …]
/kernel/linux/linux-6.6/Documentation/riscv/
Dhwprobe.rst1 .. SPDX-License-Identifier: GPL-2.0
3 RISC-V Hardware Probing Interface
4 ---------------------------------
6 The RISC-V hardware probing interface is based around a single syscall, which
18 The arguments are split into three groups: an array of key-value pairs, a CPU
19 set, and some flags. The key-value pairs are supplied with a count. Userspace
22 will be cleared to -1, and its value set to 0. The CPU set is defined by
23 CPU_SET(3). For value-like keys (eg. vendor/arch/impl), the returned value will
24 be only be valid if all CPUs in the given set have the same value. Otherwise -1
25 will be returned. For boolean-like keys, the value returned will be a logical
[all …]
/kernel/linux/linux-6.6/arch/nios2/platform/
DKconfig.platform1 # SPDX-License-Identifier: GPL-2.0-only
23 Normally this address is passed by a bootloader such as u-boot but
67 instruction. This will enable the -mhw-mul compiler flag.
73 instruction. Enables the -mhw-mulx compiler flag.
79 instruction. Enables the -mhw-div compiler flag.
86 the BMX Bit Manipulation Extension instructions. Enables
87 the -mbmx compiler flag.
94 the CDX Bit Manipulation Extension instructions. Enables
95 the -mcdx compiler flag.
100 Enables the -mcustom-fpu-cfg=60-1 compiler flag.
[all …]
/kernel/linux/linux-5.10/arch/nios2/platform/
DKconfig.platform1 # SPDX-License-Identifier: GPL-2.0-only
23 Normally this address is passed by a bootloader such as u-boot but
67 instruction. This will enable the -mhw-mul compiler flag.
73 instruction. Enables the -mhw-mulx compiler flag.
79 instruction. Enables the -mhw-div compiler flag.
86 the BMX Bit Manipulation Extension instructions. Enables
87 the -mbmx compiler flag.
94 the CDX Bit Manipulation Extension instructions. Enables
95 the -mcdx compiler flag.
100 Enables the -mcustom-fpu-cfg=60-1 compiler flag.
[all …]
/kernel/linux/linux-6.6/fs/xfs/libxfs/
Dxfs_bit.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * XFS bit manipulation routines.
14 * masks with n high/low bits set, 64-bit values
18 return (uint64_t)-1 << (64 - (n)); in xfs_mask64hi()
22 return ((uint32_t)1 << (n)) - 1; in xfs_mask32lo()
26 return ((uint64_t)1 << (n)) - 1; in xfs_mask64lo()
29 /* Get high bit set out of 32-bit argument, -1 if none set */
32 return fls(v) - 1; in xfs_highbit32()
35 /* Get high bit set out of 64-bit argument, -1 if none set */
38 return fls64(v) - 1; in xfs_highbit64()
[all …]
Dxfs_bit.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
11 * XFS bit manipulation routines, used in non-realtime code.
17 * Returns 1 for empty, 0 for non-empty.
33 * Count the number of contiguous bits set in the bitmap starting with bit
46 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits()
47 start_bit &= (NBWORD - 1); in xfs_contig_bits()
51 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits()
55 size -= NBWORD; in xfs_contig_bits()
61 size -= NBWORD; in xfs_contig_bits()
[all …]
/kernel/linux/linux-5.10/fs/xfs/libxfs/
Dxfs_bit.h1 /* SPDX-License-Identifier: GPL-2.0 */
10 * XFS bit manipulation routines.
14 * masks with n high/low bits set, 64-bit values
18 return (uint64_t)-1 << (64 - (n)); in xfs_mask64hi()
22 return ((uint32_t)1 << (n)) - 1; in xfs_mask32lo()
26 return ((uint64_t)1 << (n)) - 1; in xfs_mask64lo()
29 /* Get high bit set out of 32-bit argument, -1 if none set */
32 return fls(v) - 1; in xfs_highbit32()
35 /* Get high bit set out of 64-bit argument, -1 if none set */
38 return fls64(v) - 1; in xfs_highbit64()
[all …]
Dxfs_bit.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
11 * XFS bit manipulation routines, used in non-realtime code.
17 * Returns 1 for empty, 0 for non-empty.
33 * Count the number of contiguous bits set in the bitmap starting with bit
46 size -= start_bit & ~(NBWORD - 1); in xfs_contig_bits()
47 start_bit &= (NBWORD - 1); in xfs_contig_bits()
51 tmp |= (~0U >> (NBWORD-start_bit)); in xfs_contig_bits()
55 size -= NBWORD; in xfs_contig_bits()
61 size -= NBWORD; in xfs_contig_bits()
[all …]
/kernel/linux/linux-6.6/arch/arm64/kvm/hyp/include/hyp/
Dadjust_pc.h1 // SPDX-License-Identifier: GPL-2.0-only
3 * Guest PC manipulation helpers
5 * Copyright (C) 2012,2013 - ARM Ltd
6 * Copyright (C) 2020 - Google LLC
36 vcpu_gp_regs(vcpu)->pstate = read_sysreg_el2(SYS_SPSR); in __kvm_skip_instr()
40 write_sysreg_el2(vcpu_gp_regs(vcpu)->pstate, SYS_SPSR); in __kvm_skip_instr()
46 * Assumes host is always 64-bit.
/kernel/linux/linux-6.6/include/uapi/linux/
Dcapability.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
11 * ftp://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
19 /* User-level do most of the mapping between kernel and user
33 #define _LINUX_CAPABILITY_VERSION_2 0x20071026 /* deprecated - use v3 */
96 * Backwardly compatible definition for source code - trapped in a
97 * 32-bit world. If you find you need this, please consider using
107 ** POSIX-draft defined capabilities.
138 the S_ISGID bit on that file; that the S_ISUID and S_ISGID bits are
149 /* Allows setgid(2) manipulation */
155 /* Allows set*uid(2) manipulation (including fsuid). */
[all …]
/kernel/linux/linux-5.10/include/uapi/linux/
Dcapability.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
11 * ftp://www.kernel.org/pub/linux/libs/security/linux-privs/kernel-2.6/
19 /* User-level do most of the mapping between kernel and user
33 #define _LINUX_CAPABILITY_VERSION_2 0x20071026 /* deprecated - use v3 */
95 * Backwardly compatible definition for source code - trapped in a
96 * 32-bit world. If you find you need this, please consider using
106 ** POSIX-draft defined capabilities.
137 the S_ISGID bit on that file; that the S_ISUID and S_ISGID bits are
148 /* Allows setgid(2) manipulation */
154 /* Allows set*uid(2) manipulation (including fsuid). */
[all …]
/kernel/linux/linux-5.10/tools/arch/x86/include/asm/
Dcpufeatures.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <asm/required-features.h>
10 #include <asm/disabled-features.h>
16 #define NCAPINTS 20 /* N 32-bit words worth of info */
17 #define NBUGINTS 2 /* N 32-bit bug flags */
22 * this feature bit is not displayed in /proc/cpuinfo at all.
25 * please update the table in kernel/cpu/cpuid-deps.c as well.
28 /* Intel-defined CPU features, CPUID level 0x00000001 (EDX), word 0 */
34 #define X86_FEATURE_MSR ( 0*32+ 5) /* Model-Specific Registers */
45 #define X86_FEATURE_PSE36 ( 0*32+17) /* 36-bit PSEs */
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/
Dcpufeatures.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <asm/required-features.h>
10 #include <asm/disabled-features.h>
16 #define NCAPINTS 22 /* N 32-bit words worth of info */
17 #define NBUGINTS 2 /* N 32-bit bug flags */
22 * this feature bit is not displayed in /proc/cpuinfo at all.
25 * please update the table in kernel/cpu/cpuid-deps.c as well.
28 /* Intel-defined CPU features, CPUID level 0x00000001 (EDX), word 0 */
34 #define X86_FEATURE_MSR ( 0*32+ 5) /* Model-Specific Registers */
45 #define X86_FEATURE_PSE36 ( 0*32+17) /* 36-bit PSEs */
[all …]
/kernel/linux/linux-6.6/drivers/net/dsa/mv88e6xxx/
Dserdes.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * Marvell 88E6xxx SERDES manipulation, via SMI bus
21 #define MV88E6352_SERDES_INT_SPEED_CHANGE BIT(14)
22 #define MV88E6352_SERDES_INT_DUPLEX_CHANGE BIT(13)
23 #define MV88E6352_SERDES_INT_PAGE_RX BIT(12)
24 #define MV88E6352_SERDES_INT_AN_COMPLETE BIT(11)
25 #define MV88E6352_SERDES_INT_LINK_CHANGE BIT(10)
26 #define MV88E6352_SERDES_INT_SYMBOL_ERROR BIT(9)
27 #define MV88E6352_SERDES_INT_FALSE_CARRIER BIT(8)
28 #define MV88E6352_SERDES_INT_FIFO_OVER_UNDER BIT(7)
[all …]
/kernel/linux/linux-6.6/fs/xfs/
Dxfs_bmap_util.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
29 return -EFSCORRUPTED; in xfs_bmap_rtalloc()
38 __s64 bmv_block; /* starting block (64-bit daddr_t) */
65 /* EOF block manipulation functions */
/kernel/linux/linux-6.6/drivers/gpio/
Dgpio-xtensa.c1 // SPDX-License-Identifier: GPL-2.0
12 * GPIO32 option is implemented as 32bit Tensilica Instruction Extension (TIE)
13 * output state called EXPSTATE, and 32bit input wire called IMPWIRE. This
18 * disables access to all coprocessors. This driver sets the CPENABLE bit
25 * would need to have a per core workqueue to do the actual GPIO manipulation.
48 xtensa_set_sr(*cpenable | BIT(XCHAL_CP_ID_XTIOP), cpenable); in enable_cp()
86 return !!(impwire & BIT(offset)); in xtensa_impwire_get_value()
109 return !!(expstate & BIT(offset)); in xtensa_expstate_get_value()
116 u32 mask = BIT(offset); in xtensa_expstate_set_value()
117 u32 val = value ? BIT(offset) : 0; in xtensa_expstate_set_value()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-xtensa.c1 // SPDX-License-Identifier: GPL-2.0
12 * GPIO32 option is implemented as 32bit Tensilica Instruction Extension (TIE)
13 * output state called EXPSTATE, and 32bit input wire called IMPWIRE. This
18 * disables access to all coprocessors. This driver sets the CPENABLE bit
25 * would need to have a per core workqueue to do the actual GPIO manipulation.
48 xtensa_set_sr(*cpenable | BIT(XCHAL_CP_ID_XTIOP), cpenable); in enable_cp()
86 return !!(impwire & BIT(offset)); in xtensa_impwire_get_value()
109 return !!(expstate & BIT(offset)); in xtensa_expstate_get_value()
116 u32 mask = BIT(offset); in xtensa_expstate_set_value()
117 u32 val = value ? BIT(offset) : 0; in xtensa_expstate_set_value()
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_bmap_util.h1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2006 Silicon Graphics, Inc.
29 return -EFSCORRUPTED; in xfs_bmap_rtalloc()
38 __s64 bmv_block; /* starting block (64-bit daddr_t) */
65 /* EOF block manipulation functions */
/kernel/linux/linux-6.6/tools/arch/x86/include/asm/
Dcpufeatures.h1 /* SPDX-License-Identifier: GPL-2.0 */
6 #include <asm/required-features.h>
10 #include <asm/disabled-features.h>
16 #define NCAPINTS 21 /* N 32-bit words worth of info */
17 #define NBUGINTS 2 /* N 32-bit bug flags */
22 * this feature bit is not displayed in /proc/cpuinfo at all.
25 * please update the table in kernel/cpu/cpuid-deps.c as well.
28 /* Intel-defined CPU features, CPUID level 0x00000001 (EDX), word 0 */
34 #define X86_FEATURE_MSR ( 0*32+ 5) /* Model-Specific Registers */
45 #define X86_FEATURE_PSE36 ( 0*32+17) /* 36-bit PSEs */
[all …]
/kernel/linux/linux-5.10/fs/ocfs2/
Dalloc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* -*- mode: c; c-basic-offset: 8; -*-
23 * the b-tree operations in ocfs2. Now all the b-tree operations are not
25 * to store can use b-tree. And it only needs to implement its ocfs2_extent_tree
28 * ocfs2_extent_tree becomes the first-class object for extent tree
29 * manipulation. Callers of the alloc.c code need to fill it via one of
32 * ocfs2_extent_tree contains info for the root of the b-tree, it must have a
33 * root ocfs2_extent_list and a root_bh so that they can be used in the b-tree
39 * the root of extent b-tree.
140 * of extent tree. So for an inode, it should be &fe->id2.i_list. Otherwise
[all …]
/kernel/linux/linux-6.6/fs/ocfs2/
Dalloc.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
21 * the b-tree operations in ocfs2. Now all the b-tree operations are not
23 * to store can use b-tree. And it only needs to implement its ocfs2_extent_tree
26 * ocfs2_extent_tree becomes the first-class object for extent tree
27 * manipulation. Callers of the alloc.c code need to fill it via one of
30 * ocfs2_extent_tree contains info for the root of the b-tree, it must have a
31 * root ocfs2_extent_list and a root_bh so that they can be used in the b-tree
37 * the root of extent b-tree.
138 * of extent tree. So for an inode, it should be &fe->id2.i_list. Otherwise
149 * top-of-the tree. in ocfs2_extend_meta_needed()
[all …]

12345678910>>...16