/linux/arch/arm/kernel/ |
H A D | module.c | 1 // SPDX-License-Identifier: GPL-2.0-only 42 * A single PC-relative symbol reference is divided in up to 3 add or subtract 52 * -/+ 256 MiB, (2x8 + 12 == 28 bits), which means it has sufficient range for 53 * any in-kernel symbol reference (unless module PLTs are being used). 56 * load is that literal loads may miss in the D-cache, and generally lead to 57 * lower cache efficiency for variables that are referenced often from many 65 shift = val ? (31 - __fls(val)) & ~1 : 32; in get_group_rem() 70 } while (group--); in get_group_rem() 81 Elf32_Shdr *dstsec = sechdrs + relsec->sh_info; in apply_relocate() 82 Elf32_Rel *rel = (void *)relsec->sh_addr; in apply_relocate() [all …]
|
/linux/fs/overlayfs/ |
H A D | params.c | 1 // SPDX-License-Identifier: GPL-2.0-only 80 return ovl_parameter_uuid[config->uuid].name; in ovl_uuid_mode() 97 return ovl_parameter_xino[config->xino].name; in ovl_xino_mode() 115 return ovl_parameter_redirect_dir[config->redirect_mode].name; in ovl_redirect_mode() 134 return ovl_parameter_verity[config->verity_mode].name; in ovl_verity_mode() 204 return -EINVAL; in ovl_parse_param_split_lowerdirs() 219 return -EINVAL; in ovl_parse_param_split_lowerdirs() 231 int err = -EINVAL; in ovl_mount_dir_noesc() 263 int err = -ENOMEM; in ovl_mount_dir() 277 struct ovl_fs_context *ctx = fc->fs_private; in ovl_mount_dir_check() [all …]
|
H A D | export.c | 1 // SPDX-License-Identifier: GPL-2.0-only 7 * Copyright (C) 2017-2018 CTERA Networks. All Rights Reserved. 36 * Before encoding a non-upper directory file handle from real layer N, we need 38 * lower decoded dentry. This is done by following the overlay ancestry up to a 48 * copied up and renamed, upper dir /a will be indexed by lower dir /a from 51 * dentry from the connected lower dentry /a/b/c. 56 * and when the time comes to decode the file handle from lower dentry /a/b/c, 61 * entry /a in the lower layers above layer N and find the indexed dir /a from 63 * will need to verify there are no redirects in lower layers above N. In the 77 if (dentry == dentry->d_sb->s_root) in ovl_connectable_layer() [all …]
|
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 7 An overlay filesystem combines two filesystems - an 'upper' filesystem 8 and a 'lower' filesystem. When a name exists in both filesystems, the 10 'lower' filesystem is either hidden or, in the case of directories, 20 redirects when renaming directories by default. In this case it is 51 the index directory to map lower inodes to upper inodes by default. 52 In this case it is still possible to turn off index globally with the 56 The inodes index feature prevents breaking of lower hardlinks on copy 73 In this case, it is still possible to turn off NFS export support 80 the same lower dir. The full index may incur some overhead on mount [all …]
|
H A D | namei.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 struct ovl_fs *ofs = OVL_FS(d->sb); in ovl_check_redirect() 39 d->absolute_redirect = false; in ovl_check_redirect() 45 d->absolute_redirect = true; in ovl_check_redirect() 49 * that will stop further lookup in lower layers (d->stop=true) in ovl_check_redirect() 51 * element and that should force continue lookup in lower in ovl_check_redirect() 52 * layers (reset d->stop). in ovl_check_redirect() 54 d->stop = false; in ovl_check_redirect() 58 memcpy(buf, d->name.name, prelen); in ovl_check_redirect() 62 kfree(d->redirect); in ovl_check_redirect() [all …]
|
H A D | super.c | 1 // SPDX-License-Identifier: GPL-2.0-only 33 struct dentry *upper, *lower; in ovl_d_real() local 37 case D_REAL_DATA: in ovl_d_real() 38 case D_REAL_METADATA: in ovl_d_real() 55 lower = ovl_dentry_lower(dentry); in ovl_d_real() 60 * Best effort lazy lookup of lowerdata for D_REAL_DATA case to return in ovl_d_real() 70 lower = ovl_dentry_lowerdata(dentry); in ovl_d_real() 71 if (!lower) in ovl_d_real() 75 /* Handle recursion into stacked lower fs */ in ovl_d_real() 76 return d_real(lower, type); in ovl_d_real() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/rep/ |
H A D | bridge.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 26 return esw == priv->mdev->priv.eswitch; in mlx5_esw_bridge_dev_same_esw() 35 mdev = priv->mdev; in mlx5_esw_bridge_dev_same_hw() 36 esw_mdev = esw->dev; in mlx5_esw_bridge_dev_same_hw() 47 struct net_device *lower; in mlx5_esw_bridge_lag_rep_get() local 50 netdev_for_each_lower_dev(dev, lower, iter) { in mlx5_esw_bridge_lag_rep_get() 51 if (!mlx5e_eswitch_rep(lower)) in mlx5_esw_bridge_lag_rep_get() 54 if (mlx5_esw_bridge_dev_same_esw(lower, esw)) in mlx5_esw_bridge_lag_rep_get() 55 return lower; in mlx5_esw_bridge_lag_rep_get() 76 if (!priv->mdev->priv.eswitch->br_offloads) in mlx5_esw_bridge_rep_vport_num_vhca_id_get() [all …]
|
/linux/tools/testing/selftests/powerpc/pmu/ebb/ |
H A D | ebb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 37 /* 2) clear MMCR0[PMAO] - docs say BESCR[PMEO] should do this */ in reset_ebb_with_clear_mask() 38 /* 3) set MMCR0[PMAE] - docs say BESCR[PME] should do this */ in reset_ebb_with_clear_mask() 48 /* 6) rfebb 1 - done in our caller */ in reset_ebb_with_clear_mask() 73 u64 count, upper, lower; in ebb_check_count() local 77 lower = ebb_state.stats.ebb_count * (sample_period - fudge); in ebb_check_count() 79 if (count < lower) { in ebb_check_count() 80 printf("PMC%d count (0x%llx) below lower limit 0x%llx (-0x%llx)\n", in ebb_check_count() 81 pmc, count, lower, lower - count); in ebb_check_count() 89 pmc, count, upper, count - upper); in ebb_check_count() [all …]
|
/linux/fs/ecryptfs/ |
H A D | file.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Copyright (C) 1997-2004 Erez Zadok 6 * Copyright (C) 2001-2004 Stony Brook University 7 * Copyright (C) 2004-2007 International Business Machines Corp. 26 * doesn't give us a chance to update the atime of the lower layer 28 * updates the atime of the lower level inode if generic_file_read 37 struct file *file = iocb->ki_filp; in ecryptfs_read_update_atime() 41 path = ecryptfs_dentry_to_lower_path(file->f_path.dentry); in ecryptfs_read_update_atime() 51 * doesn't give us a chance to update the atime of the lower layer inode. This 53 * lower level inode if generic_file_read returns without any errors. This is [all …]
|
/linux/fs/smb/server/ |
H A D | unicode.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 4 * cifs_unicode: Unicode kernel case support 7 * Convert a unicode character to upper or lower case using 17 * The upper/lower functions are based on a table created by mkupr. 18 * This is a compressed table of upper and lower case conversion.
|
/linux/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_lag.c | 1 // SPDX-License-Identifier: GPL-2.0+ 9 u32 visited = GENMASK(lan966x->num_phys_ports - 1, 0); in lan966x_lag_set_aggr_pgids() 13 for (p = 0; p < lan966x->num_phys_ports; ++p) in lan966x_lag_set_aggr_pgids() 29 for (p = 0; p < lan966x->num_phys_ports; ++p) { in lan966x_lag_set_aggr_pgids() 30 struct lan966x_port *port = lan966x->ports[p]; in lan966x_lag_set_aggr_pgids() 32 if (!port || !port->bond) in lan966x_lag_set_aggr_pgids() 39 for (lag = 0; lag < lan966x->num_phys_ports; ++lag) { in lan966x_lag_set_aggr_pgids() 40 struct lan966x_port *port = lan966x->ports[lag]; in lan966x_lag_set_aggr_pgids() 46 if (!port || !port->bond || (visited & BIT(lag))) in lan966x_lag_set_aggr_pgids() 49 bond = port->bond; in lan966x_lag_set_aggr_pgids() [all …]
|
/linux/tools/net/sunrpc/xdrgen/generators/ |
H A D | program.py | 14 ) -> None: 35 ) -> None: 60 ) -> None: 74 ) -> None: 88 ) -> None: 102 ) -> None: 122 def emit_definition(self, node: _RpcProgram) -> None: 125 program = raw_name.lower().removesuffix("_program").removesuffix("_prog") 130 def emit_declaration(self, node: _RpcProgram) -> None: 133 program = raw_name.lower().removesuffix("_program").removesuffix("_prog") [all …]
|
/linux/fs/btrfs/ |
H A D | backref.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 17 #include "disk-io.h" 30 * The value must be non-negative and must not be 0, 1 (which is a common return 39 * continue. Can return BTRFS_ITERATE_EXTENT_INODES_STOP or any other non-zero 90 * Time sequence acquired from btrfs_get_tree_mod_seq(), in case the 94 * commit roots when searching b+trees - this is a special case for 105 * extent is accessible. Can be NULL in case the caller does not care 199 * case we don't have multiple file extent items that point to the same 287 * For metadata with EXTENT_ITEM key (non-skinny) case, the first inline data 290 * This helper determines if that's the case. [all …]
|
H A D | backref.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include "disk-io.h" 14 #include "delayed-ref.h" 17 #include "tree-mod-log.h" 20 #include "extent-tree.h" 22 #include "tree-checker.h" 42 u64 offset = key->offset; in check_extent_in_eb() 48 if (!ctx->ignore_extent_item_pos && in check_extent_in_eb() 56 if (ctx->extent_item_pos < data_offset || in check_extent_in_eb() 57 ctx->extent_item_pos >= data_offset + data_len) in check_extent_in_eb() [all …]
|
/linux/fs/smb/client/ |
H A D | cifs_unicode.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * cifs_unicode: Unicode kernel case support 6 * Convert a unicode character to upper or lower case using 15 * The upper/lower functions are based on a table created by mkupr. 16 * This is a compressed table of upper and lower case conversion.
|
/linux/security/apparmor/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 4 obj-$(CONFIG_SECURITY_APPARMOR) += apparmor.o 6 apparmor-y := apparmorfs.o audit.o capability.o task.o ipc.o lib.o match.o \ 10 apparmor-$(CONFIG_SECURITY_APPARMOR_HASH) += crypto.o 12 obj-$(CONFIG_SECURITY_APPARMOR_KUNIT_TEST) += apparmor_policy_unpack_test.o 13 apparmor_policy_unpack_test-objs += policy_unpack_test.o 15 clean-files := capability_names.h rlim_names.h net_names.h 17 # Build a lower case string table of address family names 30 quiet_cmd_make-af = GEN $@ 31 cmd_make-af = echo "static const char *address_family_names[] = {" > $@ ;\ [all …]
|
/linux/Documentation/filesystems/ext4/ |
H A D | group_descr.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 ----------------------- 22 grouped together into a meta group. Note that in the meta_bg case, 38 checksum is the lower 16 bits of the checksum of the FS UUID, the group 45 .. list-table:: 47 :header-rows: 1 49 * - Offset 50 - Size 51 - Name 52 - Description [all …]
|
/linux/drivers/video/fbdev/ |
H A D | i740fb.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * i740fb - framebuffer driver for Intel740 6 * Based on old i740fb driver (c) 2001-2002 Andrey Ulanov <drey@rt.mipt.ru> 8 * VGA 16-color framebuffer driver (c) 1999 Ben Pfaff <pfaffben@debian.org> 10 * i740 driver from XFree86 (c) 1998-1999 Precision Insight, Inc., Cedar Park, 28 #include <linux/i2c-algo-bit.h> 98 vga_mm_w(par->regs, port, val); in i740outb() 102 return vga_mm_r(par->regs, port); in i740inb() 106 vga_mm_w_fast(par->regs, port, reg, val); in i740outreg() 110 vga_mm_w(par->regs, port, reg); in i740inreg() [all …]
|
/linux/drivers/net/ethernet/freescale/enetc/ |
H A D | enetc4_pf.c | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 16 struct enetc_hw *hw = &pf->si->hw; in enetc4_get_port_caps() 20 pf->caps.num_vsi = (val & ECAPR1_NUM_VSI) >> 24; in enetc4_get_port_caps() 21 pf->caps.num_msix = ((val & ECAPR1_NUM_MSIX) >> 12) + 1; in enetc4_get_port_caps() 24 pf->caps.num_rx_bdr = (val & ECAPR2_NUM_RX_BDR) >> 16; in enetc4_get_port_caps() 25 pf->caps.num_tx_bdr = val & ECAPR2_NUM_TX_BDR; in enetc4_get_port_caps() 28 pf->caps.half_duplex = (val & PMCAPR_HD) ? 1 : 0; in enetc4_get_port_caps() 34 u16 lower = get_unaligned_le16(addr + 4); in enetc4_pf_set_si_primary_mac() local 38 __raw_writel(upper, hw->port + ENETC4_PSIPMAR0(si)); in enetc4_pf_set_si_primary_mac() 39 __raw_writew(lower, hw->port + ENETC4_PSIPMAR1(si)); in enetc4_pf_set_si_primary_mac() [all …]
|
/linux/tools/testing/selftests/net/netfilter/ |
H A D | conntrack_vrf.sh | 7 # For ingress, this means first iteration has iifname of lower/real 12 # second iteration is done with the lower/real/veth0 device. 22 # on the VRF master interface (in case such a rule exists). 29 # that any fix to test case 1 won't break masquerade again. 47 checktool "nft --version" "run test without nft" 48 checktool "conntrack --version" "run test without conntrack" 49 checktool "socat -h" "run test without socat" 55 ip netns exec "$ns0" sysctl -q -w net.ipv4.conf.default.rp_filter=0 56 ip netns exec "$ns0" sysctl -q -w net.ipv4.conf.all.rp_filter=0 57 ip netns exec "$ns0" sysctl -q -w net.ipv4.conf.all.rp_filter=0 [all …]
|
/linux/net/core/ |
H A D | dev.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 11 * Florian la Roche <rzsfl@rz.uni-sb.de> 19 * D.J. Barrow : Fixed bug where dev->refcnt gets set 64 * Pekka Riikonen : Netdev boot-time settings code 66 * indefinitely on dev->refcnt 67 * J Hadi Salim : - Backlog queue sampling 68 * - netif_rx() feedback 167 #include "net-sysfs.h" 187 unsigned int val = net->dev_base_seq + 1; in dev_base_seq_inc() 189 WRITE_ONCE(net->dev_base_seq, val ?: 1); in dev_base_seq_inc() [all …]
|
/linux/drivers/nvmem/ |
H A D | stm32-romem.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * STM32 Factory-programmed memory read access driver 5 * Copyright (C) 2017, STMicroelectronics - All Rights Reserved 9 #include <linux/arm-smccc.h> 12 #include <linux/nvmem-provider.h> 18 #include "stm32-bsec-optee-ta.h" 20 /* BSEC secure service access from non-secure */ 32 u8 lower; member 39 u8 lower; member 51 *buf8++ = readb_relaxed(priv->base + i); in stm32_romem_read() [all …]
|
/linux/Documentation/mm/ |
H A D | balance.rst | 13 overhead of page reclaim. This may happen for opportunistic high-order 14 allocation requests that have order-0 fallback options. In such cases, 41 zone size (and possibly of the size of lower class zones), we can decide 44 of lower class zones, the bad part is, we might do too frequent balancing 45 due to ignoring possibly lower usage in the lower class zones. Also, 50 of a zone _and_ all its lower class zones falls below 1/64th of the 51 total memory in the zone and its lower class zones. This fixes the 2.2 65 for non-sleepable allocations. Second, the HIGHMEM zone is also balanced, 85 are per-zone fields, used to determine when a zone needs to be balanced. When 92 pages is below watermark[WMARK_LOW]; in which case zone_wake_kswapd is also set. [all …]
|
/linux/arch/riscv/net/ |
H A D | bpf_jit_comp64.c | 1 // SPDX-License-Identifier: GPL-2.0 13 #include <asm/text-patching.h> 75 case RV_CTX_F_SEEN_S1: in bpf_to_rv_reg() 76 case RV_CTX_F_SEEN_S2: in bpf_to_rv_reg() 77 case RV_CTX_F_SEEN_S3: in bpf_to_rv_reg() 78 case RV_CTX_F_SEEN_S4: in bpf_to_rv_reg() 79 case RV_CTX_F_SEEN_S5: in bpf_to_rv_reg() 80 case RV_CTX_F_SEEN_S6: in bpf_to_rv_reg() 81 __set_bit(reg, &ctx->flags); in bpf_to_rv_reg() 89 case RV_CTX_F_SEEN_CALL: in seen_reg() [all …]
|
H A D | bpf_jit_comp32.c | 1 // SPDX-License-Identifier: GPL-2.0 9 * the BPF JIT compiler for 32-bit ARM by Shubham Bansal and Mircea Gherzan. 20 * RV32 fp => +----------+ 22 * | saved fp | RV32 callee-saved registers 24 * +----------+ <= (fp - 4 * NR_SAVED_REGISTERS) 30 * BPF_REG_FP => +----------+ <= (fp - 4 * NR_SAVED_REGISTERS 31 * | | - 4 * BPF_JIT_SCRATCH_REGS) 35 * RV32 sp => +----------+ 39 * +----------+ 44 /* Stack layout - these are offsets from top of JIT scratch space. */ [all …]
|