| /linux/drivers/iio/multiplexer/ |
| H A D | iio-mux.c | 1 // SPDX-License-Identifier: GPL-2.0 42 struct mux_child *child = &mux->child[idx]; in iio_mux_select() 43 struct iio_chan_spec const *chan = &mux->chan[idx]; in iio_mux_select() 47 ret = mux_control_select_delay(mux->control, chan->channel, in iio_mux_select() 48 mux->delay_us); in iio_mux_select() 50 mux->cached_state = -1; in iio_mux_select() 54 if (mux->cached_state == chan->channel) in iio_mux_select() 57 if (chan->ext_info) { in iio_mux_select() 58 for (i = 0; chan->ext_info[i].name; ++i) { in iio_mux_select() 59 const char *attr = chan->ext_info[i].name; in iio_mux_select() [all …]
|
| /linux/net/openvswitch/ |
| H A D | conntrack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 72 struct md_labels labels; member 87 /* Elements in ovs_ct_limit_info->limits hash table */ 105 static bool labels_nonzero(const struct ovs_key_ct_labels *labels); 111 switch (ntohs(key->eth.type)) { in key_to_nfproto() 121 /* Map SKB connection state into the values used by flow definition. */ 157 return ct ? READ_ONCE(ct->mark) : 0; in ovs_ct_get_mark() 163 /* Guard against conntrack labels max size shrinking below 128 bits. */ 169 struct ovs_key_ct_labels *labels) in ovs_ct_get_labels() argument 174 if (ct->master && !nf_ct_is_confirmed(ct)) in ovs_ct_get_labels() [all …]
|
| /linux/security/apparmor/ |
| H A D | label.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 * Labels maintain a reference count to the set of pointers they reference 25 * Labels are ref counted by 27 * code - will take a ref count on a label if it needs the label 29 * profiles - each profile is a label 30 * secids - a pinned secid will keep a refcount of the label it is 32 * objects - inode, files, sockets, ... 34 * Labels are not ref counted by the label set, so they maybe removed and 45 /* p->label will not updated any more as p is dead */ in free_proxy() 46 aa_put_label(rcu_dereference_protected(proxy->label, true)); in free_proxy() [all …]
|
| /linux/arch/mips/kvm/ |
| H A D | entry.c | 58 * kvm_mips_entry_setup() - Perform global setup for entry code. 63 * -errno on failure. 73 if (pgd_reg != -1) in kvm_mips_entry_setup() 79 scratch_vcpu[1] = ffs(kscratch_mask) - 1; in kvm_mips_entry_setup() 83 /* Pick a scratch register to use as a temp for saving state */ in kvm_mips_entry_setup() 86 scratch_tmp[1] = ffs(kscratch_mask) - 1; in kvm_mips_entry_setup() 124 * build_set_exc_base() - Assemble code to write exception base address. 143 * kvm_mips_build_vcpu_run() - Assemble function to start running a guest VCPU. 166 UASM_i_ADDIU(&p, GPR_K1, GPR_SP, -(int)sizeof(struct pt_regs)); in kvm_mips_build_vcpu_run() 183 /* Offset into vcpu->arch */ in kvm_mips_build_vcpu_run() [all …]
|
| /linux/Documentation/netlink/specs/ |
| H A D | conntrack.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 2 --- 4 protocol: netlink-raw 7 doc: >- 11 - 15 - 16 name: nfgen-family 18 - 21 - 22 name: res-id [all …]
|
| /linux/tools/verification/rvgen/rvgen/ |
| H A D | ltl2k.py | 2 # SPDX-License-Identifier: GPL-2.0-only 10 def line_len(line: str) -> int: 14 def break_long_line(line: str, indent='') -> list[str]: 17 i = line[:COLUMN_LIMIT - line_len(line)].rfind(' ') 25 if not node.labels: 31 for label in sorted(node.labels): 41 def abbreviate_atoms(atoms: list[str]) -> list[str]: 42 def shorten(s: str) -> str: 48 for i in range(len(atom), -1, -1): 70 def _fill_states(self) -> str: [all …]
|
| /linux/drivers/nvdimm/ |
| H A D | label.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 19 NSLABEL_FLAG_ROLABEL = 0x1, /* read-only label */ 20 NSLABEL_FLAG_LOCAL = 0x2, /* DIMM-local namespace */ 26 BTTINFO_FLAG_ERROR = 0x1, /* error state (read-only) */ 34 * struct nd_namespace_index - label set superblock 37 * @labelsize: log2 size (v1 labels 128 bytes v2 labels 256 bytes) 70 * struct cxl_region_label - CXL 2.0 Table 211 74 * @nlabel: 1 per interleave-way in the region 76 * @dpa: start address in device-local capacity for this label [all …]
|
| H A D | dimm_devs.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 14 #include "nd-core.h" 29 if (!nvdimm->cmd_mask || in nvdimm_check_config_data() 30 !test_bit(ND_CMD_GET_CONFIG_DATA, &nvdimm->cmd_mask)) { in nvdimm_check_config_data() 31 if (test_bit(NDD_LABELING, &nvdimm->flags)) in nvdimm_check_config_data() 32 return -ENXIO; in nvdimm_check_config_data() 34 return -ENOTTY; in nvdimm_check_config_data() 45 return -EINVAL; in validate_dimm() 47 rc = nvdimm_check_config_data(ndd->dev); in validate_dimm() [all …]
|
| H A D | nd.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * Copyright(c) 2013-2015 Intel Corporation. All rights reserved. 20 * support and is an input to the geometry/on-disk-format of a 42 if (ndd->cxl) in nsl_ref_name() 43 return nd_label->cxl.name; in nsl_ref_name() 44 return nd_label->efi.name; in nsl_ref_name() 50 if (ndd->cxl) in nsl_get_name() 51 return memcpy(name, nd_label->cxl.name, NSLABEL_NAME_LEN); in nsl_get_name() 52 return memcpy(name, nd_label->efi.name, NSLABEL_NAME_LEN); in nsl_get_name() 60 if (ndd->cxl) in nsl_set_name() [all …]
|
| /linux/security/apparmor/include/ |
| H A D | label.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 38 (V) ? 0 : -ENOMEM; \ 52 #define vec_last(VEC, SIZE) ((VEC)[(SIZE) - 1]) 53 #define vec_ns(VEC, SIZE) (vec_last((VEC), (SIZE))->ns) 54 #define vec_labelset(VEC, SIZE) (&vec_ns((VEC), (SIZE))->labels) 55 #define cleanup_domain_vec(V, L) cleanup_label_vec((V), (L)->size) 66 /* struct aa_labelset - set of labels for a namespace 68 * Labels are reference counted; aa_labelset does not contribute to label 79 for ((N) = rb_first(&(LS)->root); (N); (N) = rb_next(N)) 87 FLAG_USER_DEFINED = 0x20, /* user based profile - lower privs */ [all …]
|
| /linux/Documentation/admin-guide/LSM/ |
| H A D | Smack.rst | 7 - The Elevator, from Dark Star 21 - The kernel 22 - Basic utilities, which are helpful but not required 23 - Configuration data 41 git://github.com/smack-team/smack.git 77 Smack uses extended attributes (xattrs) to store labels on filesystem 120 # attr -S -s SMACK64 -V "value" path 121 # chsmack -a value path 128 in the smackfs filesystem. This pseudo-filesystem is mounted 153 change-rule [all …]
|
| /linux/arch/s390/include/uapi/asm/ |
| H A D | tape390.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 20 * - 1 format control byte, and 21 * - two 8-byte messages 24 * 0-2: New Message Overlay 74 * The TAPE390_CRYPT_QUERY ioctl is used to query the encryption state. 94 * The TAPE390_KEKL_SET ioctl is used to set Key Encrypting Key labels. 99 * The TAPE390_KEKL_QUERY ioctl is used to query Key Encrypting Key labels.
|
| /linux/net/sched/ |
| H A D | act_ct.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 2 /* - 70 int i = flow_action->num_entries++; in tcf_ct_flow_table_flow_action_get_next() 72 return &flow_action->entries[i]; in tcf_ct_flow_table_flow_action_get_next() 84 entry->id = FLOW_ACTION_MANGLE; in tcf_ct_add_mangle_action() 85 entry->mangle.htype = htype; in tcf_ct_add_mangle_action() 86 entry->mangle.mask = ~mask; in tcf_ct_add_mangle_action() 87 entry->mangle.offset = offset; in tcf_ct_add_mangle_action() 88 entry->mangle.val = val; in tcf_ct_add_mangle_action() 92 * (target) is different then the current dir tuple - meaning nat for ports [all …]
|
| /linux/arch/mips/kernel/ |
| H A D | smp-cps.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 #include <asm/mips-cps.h> 22 #include <asm/pm-cps.h> 26 #include <asm/smp-cps.h> 78 timeout--; in power_up_other_cluster() 99 struct uasm_label labels[2]; in mips_cps_build_core_entry() local 101 struct uasm_label *l = labels; in mips_cps_build_core_entry() 104 memset(labels, 0, sizeof(labels)); in mips_cps_build_core_entry() 136 uasm_resolve_relocs(relocs, labels); in mips_cps_build_core_entry() 159 0x0, CSEGX_SIZE - 1); in allocate_cps_vecs() [all …]
|
| /linux/block/partitions/ |
| H A D | sgi.c | 1 // SPDX-License-Identifier: GPL-2.0 36 int sgi_partition(struct parsed_partitions *state) in sgi_partition() argument 47 label = read_part_sector(state, 0, §); in sgi_partition() 49 return -1; in sgi_partition() 50 p = &label->partitions[0]; in sgi_partition() 51 magic = label->magic_mushroom; in sgi_partition() 56 ui = ((__be32 *) (label + 1)) - 1; in sgi_partition() 58 cs = *ui--; in sgi_partition() 63 state->disk->disk_name); in sgi_partition() 67 /* All SGI disk labels have 16 partitions, disks under Linux only in sgi_partition() [all …]
|
| /linux/fs/nfsd/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 22 You may choose to use a user-space NFS server instead, in which 26 user space programs which can be found in the Linux nfs-utils 27 package, available from http://linux-nfs.org/. More detail about 43 NFSv2 (RFC 1094) was the first publicly-released version of NFS. 70 To store ACLs on your NFS server, you also need to enable ACL- 89 space programs which can be found in the Linux nfs-utils package, 90 available from http://linux-nfs.org/. 119 the server and the clients. See draft-ietf-nfsv4-scsi-layout for 133 draft-ietf-nfsv4-flex-files for more details. [all …]
|
| /linux/include/sound/ |
| H A D | ak4xxx-adda.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 35 /* ADC labels and channels */ 72 void snd_akm4xxx_reset(struct snd_akm4xxx *ak, int state); 77 (ak)->images[(chip) * 16 + (reg)] 79 ((ak)->images[(chip) * 16 + (reg)] = (val)) 81 (ak)->volumes[(chip) * 16 + (reg)] 83 ((ak)->volumes[(chip) * 16 + (reg)] = (val))
|
| /linux/arch/arm64/boot/dts/qcom/ |
| H A D | sc7280-qcard.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 14 #include <dt-bindings/iio/qcom,spmi-adc7-pmk8350.h> 15 #include <dt-bindings/iio/qcom,spmi-adc7-pmr735a.h> 16 #include <dt-bindings/pinctrl/qcom,pmic-gpio.h> 17 #include <dt-bindings/regulator/qcom,rpmh-regulator.h> 34 wcd9385: audio-codec-1 { 35 compatible = "qcom,wcd9385-codec"; 36 pinctrl-names = "default", "sleep"; 37 pinctrl-0 = <&wcd_reset_n>, <&us_euro_hs_sel>; 38 pinctrl-1 = <&wcd_reset_n_sleep>, <&us_euro_hs_sel>; [all …]
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_ddp.c | 1 // SPDX-License-Identifier: GPL-2.0 10 * boost tcam entries. The metadata labels names that match the following 27 * ice_verify_pkg - verify package 42 if (pkg->pkg_format_ver.major != ICE_PKG_FMT_VER_MAJ || in ice_verify_pkg() 43 pkg->pkg_format_ver.minor != ICE_PKG_FMT_VER_MNR || in ice_verify_pkg() 44 pkg->pkg_format_ver.update != ICE_PKG_FMT_VER_UPD || in ice_verify_pkg() 45 pkg->pkg_format_ver.draft != ICE_PKG_FMT_VER_DFT) in ice_verify_pkg() 49 seg_count = le32_to_cpu(pkg->seg_count); in ice_verify_pkg() 59 u32 off = le32_to_cpu(pkg->seg_offset[i]); in ice_verify_pkg() 69 if (len < off + le32_to_cpu(seg->seg_size)) in ice_verify_pkg() [all …]
|
| /linux/tools/testing/selftests/kvm/x86/ |
| H A D | userspace_msr_exit_test.c | 1 // SPDX-License-Identifier: GPL-2.0 82 u32 idx = msr & (KVM_MSR_FILTER_MAX_BITMAP_SIZE - 1); in deny_msr() 142 * Note: Force test_rdmsr() to not be inlined to prevent the labels, 158 * Note: Force test_wrmsr() to not be inlined to prevent the labels, 176 * Note: Force test_em_rdmsr() to not be inlined to prevent the labels, 192 * Note: Force test_em_wrmsr() to not be inlined to prevent the labels, 291 /* This goes into the in-kernel emulation */ in guest_msr_calls() 306 /* This goes into the in-kernel emulation */ in guest_msr_calls() 359 if (regs->rip == (uintptr_t)r_start) { in __guest_gp_handler() 360 regs->rip = (uintptr_t)r_end; in __guest_gp_handler() [all …]
|
| /linux/arch/arc/ |
| H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 3 # Copyright (C) 2004, 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com) 90 source "arch/arc/plat-tb10x/Kconfig" 91 source "arch/arc/plat-axs10x/Kconfig" 92 source "arch/arc/plat-hsdk/Kconfig" 110 ISA for the Next Generation ARC-HS cores 128 -MMU-v3: Variable Page Sz (4k, 8k, 16k), bigger J-TLB (128x4) 130 -Caches: New Prog Model, Region Flush 131 -Insns: endian swap, load-locked/store-conditional, time-stamp-ctr 134 bool "ARC-HS" [all …]
|
| /linux/net/netlabel/ |
| H A D | netlabel_kapi.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Author: Paul Moore <paul@paul-moore.com> 13 * (c) Copyright Hewlett-Packard Development Company, L.P., 2006, 2008 43 * netlbl_cfg_map_del - Remove a NetLabel/LSM domain mapping 75 return -EPFNOSUPPORT; in netlbl_cfg_map_del() 78 return -EINVAL; in netlbl_cfg_map_del() 82 * netlbl_cfg_unlbl_map_add - Add a new unlabeled mapping 101 int ret_val = -ENOMEM; in netlbl_cfg_unlbl_map_add() 109 return -ENOMEM; in netlbl_cfg_unlbl_map_add() 111 entry->domain = kstrdup(domain, GFP_ATOMIC); in netlbl_cfg_unlbl_map_add() [all …]
|
| /linux/arch/sh/lib/ |
| H A D | mcount.S | 1 /* SPDX-License-Identifier: GPL-2.0 10 #include <asm/asm-offsets.h> 13 mov.l r4, @-r15; \ 14 mov.l r5, @-r15; \ 15 mov.l r6, @-r15; \ 16 mov.l r7, @-r15; \ 17 sts.l pr, @-r15; \ 32 * Perform diagnostic checks on the state of the kernel stack. 46 /* r1 = sp & (THREAD_SIZE - 1) */ \ 47 mov #-1, r1; \ [all …]
|
| /linux/Documentation/security/ |
| H A D | ipe.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 Integrity Policy Enforcement (IPE) - Kernel Documentation 10 :doc:`IPE admin guide </admin-guide/LSM/ipe>`. 13 --------------------- 16 of a locked-down system. This system would be born-secure, and have 27 2. DM-Verity 29 Both options were carefully considered, however the choice to use DM-Verity 43 At the time, this was done with mandatory access control labels. An IMA 44 policy would indicate what labels required integrity verification, which 46 modify filesystem offline, the attacker could wipe all the xattrs - [all …]
|
| /linux/Documentation/staging/ |
| H A D | static-keys.rst | 30 performance-sensitive fast-path kernel code, via a GCC feature and a code 74 https://gcc.gnu.org/ml/gcc-patches/2009-07/msg01556.html 77 by default, without the need to check memory. Then, at run-time, we can patch 86 consist of a single atomic 'no-op' instruction (5 bytes on x86), in the 87 straight-line code path. When the branch is 'flipped', we will patch the 88 'no-op' in the straight-line codepath with a 'jump' instruction to the 89 out-of-line true branch. Thus, changing branch direction is expensive but 110 allocated at run-time. 152 The state and the reference count can be retrieved with 'static_key_enabled()' 180 4) Architecture level code patching interface, 'jump labels' [all …]
|