Home
last modified time | relevance | path

Searched +full:exact +full:- +full:len (Results 1 – 25 of 425) sorted by relevance

12345678910>>...17

/linux-6.12.1/tools/testing/selftests/exec/
Dbinfmt_script.py2 # SPDX-License-Identifier: GPL-2.0
4 # Test that truncation of bprm->buf doesn't cause unexpected execs paths, along
33 # test - produce a binfmt_script hashbang line for testing
35 # @size: bytes for bprm->buf line, including hashbang but not newline
54 remaining = size - len(hashbang) - len(leading) - len(root) - len(target) - len(arg)
57 middle += fill * (NAME_MAX - 1)
59 remaining -= NAME_MAX
64 if len(target):
70 if len(newline) > 0:
73 script = "binfmt_script-%s" % (name)
[all …]
/linux-6.12.1/crypto/asymmetric_keys/
Dasymmetric_type.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Asymmetric public-key cryptography key type
4 * See Documentation/crypto/asymmetric-keys.rst
9 #include <keys/asymmetric-subtype.h>
10 #include <keys/asymmetric-parser.h>
17 #include <keys/user-type.h>
35 * find_asymmetric_key - Find a key by ID.
42 * @partial: Use partial match for @id_0 and @id_1 if true, exact if false.
61 int len; in find_asymmetric_key() local
64 lookup = id_0->data; in find_asymmetric_key()
[all …]
/linux-6.12.1/fs/xfs/
Dxfs_extent_busy.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2000-2002,2005 Silicon Graphics, Inc.
26 xfs_extlen_t len, in xfs_extent_busy_insert_list() argument
37 new->agno = pag->pag_agno; in xfs_extent_busy_insert_list()
38 new->bno = bno; in xfs_extent_busy_insert_list()
39 new->length = len; in xfs_extent_busy_insert_list()
40 INIT_LIST_HEAD(&new->list); in xfs_extent_busy_insert_list()
41 new->flags = flags; in xfs_extent_busy_insert_list()
44 trace_xfs_extent_busy(pag->pag_mount, pag->pag_agno, bno, len); in xfs_extent_busy_insert_list()
46 spin_lock(&pag->pagb_lock); in xfs_extent_busy_insert_list()
[all …]
/linux-6.12.1/drivers/soc/qcom/
Dqcom-geni-se.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
10 #include <linux/dma-mapping.h>
17 #include <linux/soc/qcom/geni-se.h>
31 * GENI based QUP is a highly-flexible and programmable module for supporting
41 * +-----------------------------------------+
43 * | +----------------------------+ |
44 * --QUP & SE Clocks--> | Serial Engine N | +-IO------>
46 * <---Clock Perf.----+ +----+-----------------------+ | |
50 * <--------AHB-------> | | | |
[all …]
/linux-6.12.1/drivers/net/ethernet/netronome/nfp/flower/
Daction.c1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 /* Copyright (C) 2017-2018 Netronome Systems, Inc. */
39 push_mpls->head.jump_id = NFP_FL_ACTION_OPCODE_PUSH_MPLS; in nfp_fl_push_mpls()
40 push_mpls->head.len_lw = act_size >> NFP_FL_LW_SIZ; in nfp_fl_push_mpls()
43 if (act->mpls_push.bos != ACT_MPLS_BOS_NOT_SET) { in nfp_fl_push_mpls()
44 mpls_lse |= act->mpls_push.bos << MPLS_LS_S_SHIFT; in nfp_fl_push_mpls()
47 return -EOPNOTSUPP; in nfp_fl_push_mpls()
51 if (act->mpls_push.tc != ACT_MPLS_TC_NOT_SET) in nfp_fl_push_mpls()
52 mpls_lse |= act->mpls_push.tc << MPLS_LS_TC_SHIFT; in nfp_fl_push_mpls()
55 mpls_lse |= act->mpls_push.label << MPLS_LS_LABEL_SHIFT; in nfp_fl_push_mpls()
[all …]
/linux-6.12.1/drivers/net/wireguard/
Dallowedips.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved.
26 node->cidr = cidr; in copy_and_assign_cidr()
27 node->bit_at_a = cidr / 8U; in copy_and_assign_cidr()
29 node->bit_at_a ^= (bits / 8U - 1U) % 8U; in copy_and_assign_cidr()
31 node->bit_at_b = 7U - (cidr % 8U); in copy_and_assign_cidr()
32 node->bitlen = bits; in copy_and_assign_cidr()
33 memcpy(node->bits, src, bits / 8U); in copy_and_assign_cidr()
38 return (key[node->bit_at_a] >> node->bit_at_b) & 1; in choose()
42 struct allowedips_node __rcu *p, unsigned int *len) in push_rcu() argument
[all …]
/linux-6.12.1/Documentation/netlink/
Dgenetlink.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dgenetlink-c.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-c.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dgenetlink-legacy.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/genetlink-legacy.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
16 len-or-limit:
17 # literal int or limit based on fixed-width type e.g. u8-min, u16-max, etc.
19 pattern: ^[su](8|16|32|64)-(min|max)$
26 required: [ name, doc, attribute-sets, operations ]
[all …]
Dnetlink-raw.yaml1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
3 ---
4 $id: http://kernel.org/schemas/netlink/netlink-raw.yaml#
5 $schema: https://json-schema.org/draft-07/schema
12 len-or-define:
14 pattern: ^[0-9A-Za-z_-]+( - 1)?$
21 required: [ name, doc, attribute-sets, operations ]
31 enum: [ netlink-raw ] # Trim
32 # Start netlink-raw
34 description: Protocol number to use for netlink-raw
[all …]
/linux-6.12.1/arch/arm64/kernel/
Dhw_breakpoint.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility,
10 #define pr_fmt(fmt) "hw-breakpoint: " fmt
23 #include <asm/debug-monitors.h>
36 /* Currently stepping a per-CPU kernel breakpoint. */
150 return -EINVAL; in debug_exception_level()
163 struct task_struct *tsk = bp->hw.target; in is_compat_bp()
166 * tsk can be NULL for per-cpu (non-ptrace) breakpoints. in is_compat_bp()
176 * hw_breakpoint_slot_setup - Find and setup a perf slot according to
186 * -ENOSPC if no slot is available/matches
[all …]
/linux-6.12.1/crypto/
Dapi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
45 return try_module_get(alg->cra_module) ? crypto_alg_get(alg) : NULL; in crypto_mod_get()
51 struct module *module = alg->cra_module; in crypto_mod_put()
62 int best = -2; in __crypto_alg_lookup()
65 int exact, fuzzy; in __crypto_alg_lookup() local
70 if ((q->cra_flags ^ type) & mask) in __crypto_alg_lookup()
73 exact = !strcmp(q->cra_driver_name, name); in __crypto_alg_lookup()
74 fuzzy = !strcmp(q->cra_name, name); in __crypto_alg_lookup()
75 if (!exact && !(fuzzy && q->cra_priority > best)) in __crypto_alg_lookup()
81 best = q->cra_priority; in __crypto_alg_lookup()
[all …]
Dcrypto_user.c1 // SPDX-License-Identifier: GPL-2.0-only
35 static struct crypto_alg *crypto_alg_match(struct crypto_user_alg *p, int exact) in crypto_alg_match() argument
47 if ((q->cra_flags ^ p->cru_type) & p->cru_mask) in crypto_alg_match()
50 if (strlen(p->cru_driver_name)) in crypto_alg_match()
51 match = !strcmp(q->cra_driver_name, in crypto_alg_match()
52 p->cru_driver_name); in crypto_alg_match()
53 else if (!exact) in crypto_alg_match()
54 match = !strcmp(q->cra_name, p->cru_name); in crypto_alg_match()
79 rcipher.blocksize = alg->cra_blocksize; in crypto_report_cipher()
80 rcipher.min_keysize = alg->cra_cipher.cia_min_keysize; in crypto_report_cipher()
[all …]
/linux-6.12.1/fs/ubifs/
Dtnc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2006-2008 Nokia Corporation.
13 * the UBIFS B-tree.
53 p = &c->old_idx.rb_node; in do_insert_old_idx()
57 if (old_idx->lnum < o->lnum) in do_insert_old_idx()
58 p = &(*p)->rb_left; in do_insert_old_idx()
59 else if (old_idx->lnum > o->lnum) in do_insert_old_idx()
60 p = &(*p)->rb_right; in do_insert_old_idx()
61 else if (old_idx->offs < o->offs) in do_insert_old_idx()
62 p = &(*p)->rb_left; in do_insert_old_idx()
[all …]
Dtnc_misc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2006-2008 Nokia Corporation.
12 * This file contains miscelanious TNC-related functions shared betweend
14 * sub-system. The file was created because there is a lot of TNC code and
21 * ubifs_tnc_levelorder_next - next TNC tree element in levelorder traversal.
22 * @c: UBIFS file-system description object
42 if (znode->level == 0) in ubifs_tnc_levelorder_next()
47 level = znode->level; in ubifs_tnc_levelorder_next()
49 iip = znode->iip; in ubifs_tnc_levelorder_next()
51 ubifs_assert(c, znode->level <= zr->level); in ubifs_tnc_levelorder_next()
[all …]
/linux-6.12.1/arch/x86/lib/
Dcsum-partial_64.c1 // SPDX-License-Identifier: GPL-2.0
3 * arch/x86_64/lib/csum-partial.c
6 * in an architecture-specific manner due to speed.
12 #include <asm/word-at-a-time.h>
42 * it's best to have buff aligned on a 64-bit boundary
44 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument
48 /* Do two 40-byte chunks in parallel to get better ILP */ in csum_partial()
49 if (likely(len >= 80)) { in csum_partial()
55 len -= 80; in csum_partial()
56 } while (len >= 80); in csum_partial()
[all …]
/linux-6.12.1/include/linux/
Dbch.h1 /* SPDX-License-Identifier: GPL-2.0-only */
12 * Bose-Chaudhuri-Hocquenghem (BCH) codes.
20 * struct bch_control - BCH control structure
22 * @n: maximum codeword size in bits (= 2^m-1)
24 * @ecc_bits: ecc exact size in bits, i.e. generator polynomial degree (<=m*t)
33 * @cache: log-based polynomial representation buffer
64 unsigned int len, uint8_t *ecc);
66 int bch_decode(struct bch_control *bch, const uint8_t *data, unsigned int len,
/linux-6.12.1/fs/xfs/libxfs/
Dxfs_rmap.c1 // SPDX-License-Identifier: GPL-2.0
32 * Lookup the first record less than or equal to [bno, len, owner, offset]
48 cur->bc_rec.r.rm_startblock = bno; in xfs_rmap_lookup_le()
49 cur->bc_rec.r.rm_blockcount = 0; in xfs_rmap_lookup_le()
50 cur->bc_rec.r.rm_owner = owner; in xfs_rmap_lookup_le()
51 cur->bc_rec.r.rm_offset = offset; in xfs_rmap_lookup_le()
52 cur->bc_rec.r.rm_flags = flags; in xfs_rmap_lookup_le()
63 return -EFSCORRUPTED; in xfs_rmap_lookup_le()
70 * Lookup the record exactly matching [bno, len, owner, offset]
77 xfs_extlen_t len, in xfs_rmap_lookup_eq() argument
[all …]
/linux-6.12.1/drivers/media/rc/img-ir/
Dimg-ir-sony.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2012-2014 Imagination Technologies Ltd.
8 #include "img-ir-hw.h"
11 static int img_ir_sony_scancode(int len, u64 raw, u64 enabled_protocols, in img_ir_sony_scancode() argument
16 switch (len) { in img_ir_sony_scancode()
19 return -EINVAL; in img_ir_sony_scancode()
24 request->protocol = RC_PROTO_SONY12; in img_ir_sony_scancode()
28 return -EINVAL; in img_ir_sony_scancode()
33 request->protocol = RC_PROTO_SONY15; in img_ir_sony_scancode()
37 return -EINVAL; in img_ir_sony_scancode()
[all …]
Dimg-ir-nec.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright 2010-2014 Imagination Technologies Ltd.
8 #include "img-ir-hw.h"
13 static int img_ir_nec_scancode(int len, u64 raw, u64 enabled_protocols, in img_ir_nec_scancode() argument
18 if (!len) in img_ir_nec_scancode()
20 if (len != 32) in img_ir_nec_scancode()
21 return -EINVAL; in img_ir_nec_scancode()
28 /* 32-bit NEC (used by Apple and TiVo remotes) */ in img_ir_nec_scancode()
30 request->scancode = bitrev8(addr) << 24 | in img_ir_nec_scancode()
34 request->protocol = RC_PROTO_NEC32; in img_ir_nec_scancode()
[all …]
/linux-6.12.1/arch/loongarch/include/asm/
Dhw_breakpoint.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * Copyright (C) 2022-2023 Loongson Technology Corporation Limited
21 len : 2, member
73 /* Exact number */
89 return (ctrl.len << 10) | (ctrl.type << 8); in encode_ctrl_reg()
95 ctrl->type = reg & MWPnCFG3_Type_mask; in decode_ctrl_reg()
97 ctrl->len = reg & MWPnCFG3_Size_mask; in decode_ctrl_reg()
/linux-6.12.1/arch/s390/include/uapi/asm/
Dpkey.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
96 __u32 len; /* bytes actually stored in protkey[] */ member
112 __u16 len; /* total length in bytes (including this header) */ member
115 __u16 bitlen; /* clear key bit len, 0 for unknown */
235 * All apqns in the list need to be exact apqns, 0xFFFF as ANY card or domain
240 * (return -1 with errno ENODEV). You may use the PKEY_APQNS4KT ioctl to
268 * All apqns in the list need to be exact apqns, 0xFFFF as ANY card or domain
273 * (return -1 with errno ENODEV). You may use the PKEY_APQNS4KT ioctl to
320 * apqn does not match or there is no such apqn found, -1 with errno
337 * All apqns in the list need to be exact apqns, 0xFFFF as ANY card or domain
[all …]
/linux-6.12.1/arch/arm/kernel/
Dhw_breakpoint.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * HW_breakpoint: a unified kernel/user-space hardware breakpoint facility,
13 #define pr_fmt(fmt) "hw-breakpoint: " fmt
151 /* We don't support the memory-mapped interface. */ in debug_arch_supported()
216 return core_has_mismatch_brps() ? brps - 1 : brps; in get_num_brps()
257 return -ENODEV; in enable_monitor_mode()
265 return -EPERM; in enable_monitor_mode()
293 * Check if 8-bit byte-address select is available.
306 ctrl.len = ARM_BREAKPOINT_LEN_8; in get_max_wp_len()
333 addr = info->address; in arch_install_hw_breakpoint()
[all …]
/linux-6.12.1/drivers/macintosh/
Dwindfarm_mpu.h1 /* SPDX-License-Identifier: GPL-2.0-only */
22 u8 signature; /* 0x00 - EEPROM sig. */
23 u8 bytes_used; /* 0x01 - Bytes used in eeprom (160 ?) */
24 u8 size; /* 0x02 - EEPROM size (256 ?) */
25 u8 version; /* 0x03 - EEPROM version */
26 u32 data_revision; /* 0x04 - Dataset revision */
27 u8 processor_bin_code[3]; /* 0x08 - Processor BIN code */
28 u8 bin_code_expansion; /* 0x0b - ??? (padding ?) */
29 u8 processor_num; /* 0x0c - Number of CPUs on this MPU */
30 u8 input_mul_bus_div; /* 0x0d - Clock input multiplier/bus divider */
[all …]
/linux-6.12.1/Documentation/trace/
Dftrace-uses.rst48 .. code-block:: c
71 register_ftrace_function() is called and before it returns. The exact time
74 must begin at an exact moment.
87 .. code-block:: c
119 .. code-block:: c
129 .. code-block:: c
152 .. code-block:: c
202 kernel patches uses. Without this flag the pt_regs->ip can not be
234 .. code-block:: c
237 int len, int reset);
[all …]

12345678910>>...17