Home
last modified time | relevance | path

Searched +full:loc +full:- +full:code (Results 1 – 25 of 132) sorted by relevance

123456

/linux-6.15/drivers/char/tpm/
Dtpm_tis_i2c_cr50.c1 // SPDX-License-Identifier: GPL-2.0
10 * - Use an interrupt for transaction status instead of hardcoded delays.
11 * - Must use write+wait+read read protocol.
12 * - All 4 bytes of status register must be read/written at once.
13 * - Burst count max is 63 bytes, and burst count behaves slightly differently
15 * - When reading from FIFO the full burstcnt must be read instead of just
48 * struct tpm_i2c_cr50_priv_data - Driver private data.
63 * tpm_cr50_i2c_int_handler() - cr50 interrupt handler.
77 struct tpm_i2c_cr50_priv_data *priv = dev_get_drvdata(&chip->dev); in tpm_cr50_i2c_int_handler()
79 complete(&priv->tpm_ready); in tpm_cr50_i2c_int_handler()
[all …]
/linux-6.15/arch/arm/kernel/
Dmodule.c1 // 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
58 * different places in the code.
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 …]
Dmodule-plts.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014-2017 Linaro Ltd. <ard.biesheuvel@linaro.org>
18 (PLT_ENT_STRIDE - 4))
21 (PLT_ENT_STRIDE - 8))
35 if (!ARRAY_SIZE(fixed_plts) || pltsec->plt_count) in prealloc_fixed()
37 pltsec->plt_count = ARRAY_SIZE(fixed_plts); in prealloc_fixed()
39 for (i = 0; i < ARRAY_SIZE(plt->ldr); ++i) in prealloc_fixed()
40 plt->ldr[i] = PLT_ENT_LDR; in prealloc_fixed()
42 BUILD_BUG_ON(sizeof(fixed_plts) > sizeof(plt->lit)); in prealloc_fixed()
43 memcpy(plt->lit, fixed_plts, sizeof(fixed_plts)); in prealloc_fixed()
[all …]
/linux-6.15/arch/arm64/kernel/pi/
Dpatch-scs.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2022 - Google LLC
19 // This minimal DWARF CFI parser is partially based on the code in
21 // https://refspecs.linuxbase.org/LSB_4.0.0/LSB-Core-generic/LSB-Core-generic/ehframechpt.html
64 static void __always_inline scs_patch_loc(u64 loc) in scs_patch_loc() argument
66 u32 insn = le32_to_cpup((void *)loc); in scs_patch_loc()
70 *(u32 *)loc = cpu_to_le32(SCS_PUSH); in scs_patch_loc()
73 *(u32 *)loc = cpu_to_le32(SCS_POP); in scs_patch_loc()
88 asm("dc civac, %0" :: "r"(loc)); in scs_patch_loc()
91 :: "r"(loc)); in scs_patch_loc()
[all …]
/linux-6.15/kernel/trace/
Dtrace_probe_tmpl.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 fetch_store_raw(unsigned long val, struct fetch_insn *code, void *buf) in fetch_store_raw() argument
9 switch (code->size) { in fetch_store_raw()
29 fetch_apply_bitfield(struct fetch_insn *code, void *buf) in fetch_apply_bitfield() argument
31 switch (code->basesize) { in fetch_apply_bitfield()
33 *(u8 *)buf <<= code->lshift; in fetch_apply_bitfield()
34 *(u8 *)buf >>= code->rshift; in fetch_apply_bitfield()
37 *(u16 *)buf <<= code->lshift; in fetch_apply_bitfield()
38 *(u16 *)buf >>= code->rshift; in fetch_apply_bitfield()
41 *(u32 *)buf <<= code->lshift; in fetch_apply_bitfield()
[all …]
/linux-6.15/Documentation/devicetree/bindings/tpm/
Dibm,vtpm.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Nayna Jain <nayna@linux.ibm.com>
23 - IBM,vtpm
24 - IBM,vtpm20
30 - IBM,vtpm
31 - IBM,vtpm20
36 ibm,#dma-address-cells:
39 dma-window properties
[all …]
/linux-6.15/drivers/infiniband/hw/qib/
Dqib_sd7220.c3 * Copyright (c) 2006 - 2012 QLogic Corporation. All rights reserved.
16 * - Redistributions of source code must retain the above
20 * - Redistributions in binary form must reproduce the above
35 * This file contains all of the code that is specific to the SerDes
98 static int qib_sd7220_reg_mod(struct qib_devdata *dd, int sdnum, u32 loc,
100 static int ibsd_mod_allchnls(struct qib_devdata *dd, int loc, int val,
117 * Below keeps track of whether the "once per power-on" initialization has
118 * been done, because uC code Version 1.32.17 or higher allows the uC to
121 * actual uC code having been loaded.
126 struct qib_devdata *dd = ppd->dd; in qib_ibsd_ucode_loaded()
[all …]
/linux-6.15/arch/parisc/kernel/
Dmodule.c1 // SPDX-License-Identifier: GPL-2.0-or-later
4 * The best reference for this stuff is probably the Processor-
5 * Specific ELF Supplement for PA-RISC:
6 * https://parisc.wiki.kernel.org/index.php/File:Elf-pa-hp.pdf
8 * Linux/PA-RISC Project
13 * - PLT stub handling
19 * of the code sections where the stubs are actually called.
26 * - SEGREL32 handling
30 * val -= (uint32_t)me->mem[MOD_INIT_TEXT].base;
32 * val -= (uint32_t)me->mem[MOD_TEXT].base;
[all …]
/linux-6.15/fs/exfat/
Dfatent.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2012-2013 Samsung Electronics Co., Ltd.
22 if (sbi->FAT2_start_sector != sbi->FAT1_start_sector) { in exfat_mirror_bh()
23 sec2 = sec - sbi->FAT1_start_sector + sbi->FAT2_start_sector; in exfat_mirror_bh()
26 return -ENOMEM; in exfat_mirror_bh()
27 memcpy(c_bh->b_data, bh->b_data, sb->s_blocksize); in exfat_mirror_bh()
30 if (sb->s_flags & SB_SYNCHRONOUS) in exfat_mirror_bh()
38 static int __exfat_ent_get(struct super_block *sb, unsigned int loc, in __exfat_ent_get() argument
45 sec = FAT_ENT_OFFSET_SECTOR(sb, loc); in __exfat_ent_get()
46 off = FAT_ENT_OFFSET_BYTE_IN_SECTOR(sb, loc); in __exfat_ent_get()
[all …]
/linux-6.15/drivers/gpu/drm/vmwgfx/
Dvmwgfx_binding.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL
29 * The sole reason for having to use this code is that vmware guest
33 * It's this outside-of-drawcall validation (that can happen at any time),
34 * that makes this code necessary.
46 * (unless we use deadlock-safe WW mutexes). So we use a global binding_mutex
51 * needs to be tracked by this code.
70 * struct vmw_ctx_binding_state - per context binding state
76 * @ds_view: Depth-stencil view binding.
80 * @per_shader: Per shader-type bindings.
[all …]
/linux-6.15/lib/
Dubsan.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #include <kunit/test-bug.h>
25 * The mappings of struct SanitizerKind (the -fsanitize=xxx args) to
62 return "UBSAN: unreachable code"; in report_ubsan_failure()
96 return "UBSAN: unrecognized failure code"; in report_ubsan_failure()
126 return test_and_set_bit(REPORTED_BIT, &location->reported); in was_reported()
129 static bool suppress_report(struct source_location *loc) in suppress_report() argument
131 return current->in_ubsan || was_reported(loc); in suppress_report()
136 return type->type_kind == type_kind_int; in type_is_int()
142 return type->type_info & 1; in type_is_signed()
[all …]
/linux-6.15/Documentation/networking/device_drivers/ethernet/aquantia/
Datlantic.rst1 .. SPDX-License-Identifier: GPL-2.0
8 For the aQuantia Multi-Gigabit PCI Express Family of Ethernet Adapters
12 - Identifying Your Adapter
13 - Configuration
14 - Supported ethtool options
15 - Command Line Parameters
16 - Config file parameters
17 - Support
18 - License
23 The driver in this release is compatible with AQC-100, AQC-107, AQC-108
[all …]
/linux-6.15/drivers/macintosh/
Dwindfarm_ad7417_sensor.c1 // SPDX-License-Identifier: GPL-2.0-only
38 struct wf_ad7417_priv *pv = sr->priv; in wf_ad7417_temp_get()
44 mutex_lock(&pv->lock); in wf_ad7417_temp_get()
48 rc = i2c_master_send(pv->i2c, buf, 1); in wf_ad7417_temp_get()
51 rc = i2c_master_recv(pv->i2c, buf, 2); in wf_ad7417_temp_get()
55 /* Read a a 16-bit signed value */ in wf_ad7417_temp_get()
58 /* Convert 8.8-bit to 16.16 fixed point */ in wf_ad7417_temp_get()
61 mutex_unlock(&pv->lock); in wf_ad7417_temp_get()
65 mutex_unlock(&pv->lock); in wf_ad7417_temp_get()
66 return -1; in wf_ad7417_temp_get()
[all …]
/linux-6.15/lib/reed_solomon/
Ddecode_rs.c1 // SPDX-License-Identifier: GPL-2.0
10 * Generic data width independent code which is included by the wrappers.
13 struct rs_codec *rs = rsc->codec;
16 int nn = rs->nn;
17 int nroots = rs->nroots;
18 int fcr = rs->fcr;
19 int prim = rs->prim;
20 int iprim = rs->iprim;
21 uint16_t *alpha_to = rs->alpha_to;
22 uint16_t *index_of = rs->index_of;
[all …]
/linux-6.15/arch/arc/kernel/
Dunwind.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2007-2010, 2011-2012 Synopsys, Inc. (www.synopsys.com)
4 * Copyright (C) 2002-2006 Novell, Inc.
9 * full-blown stack unwinding with all the bells and whistles, so there
140 uleb128_t loc, org; member
160 for (table = &root_table; table; table = table->link) in find_table()
161 if ((pc >= table->core.pc in find_table()
162 && pc < table->core.pc + table->core.range) in find_table()
163 || (pc >= table->init.pc in find_table()
164 && pc < table->init.pc + table->init.range)) in find_table()
[all …]
/linux-6.15/arch/s390/kernel/
Dmachine_kexec_file.c1 // SPDX-License-Identifier: GPL-2.0
3 * s390 code for kexec_file_load system call
31 const unsigned long marker_len = sizeof(MODULE_SIG_STRING) - 1; in s390_verify_sig()
41 return -EKEYREJECTED; in s390_verify_sig()
43 if (memcmp(kernel + kernel_len - marker_len, MODULE_SIG_STRING, in s390_verify_sig()
45 return -EKEYREJECTED; in s390_verify_sig()
46 kernel_len -= marker_len; in s390_verify_sig()
48 ms = (void *)kernel + kernel_len - sizeof(*ms); in s390_verify_sig()
49 kernel_len -= sizeof(*ms); in s390_verify_sig()
51 sig_len = be32_to_cpu(ms->sig_len); in s390_verify_sig()
[all …]
/linux-6.15/drivers/infiniband/hw/mthca/
Dmthca_mcg.c14 * - Redistributions of source code must retain the above
18 * - Redistributions in binary form must reproduce the above
54 * If GID is found in MGM or MGM is empty, *index = *hash, *prev = -1
60 * If no AMGM exists for given gid, *index = -1, *prev = index of last
68 struct mthca_mgm *mgm = mgm_mailbox->buf; in find_mgm()
74 return -ENOMEM; in find_mgm()
75 mgid = mailbox->buf; in find_mgm()
89 *prev = -1; in find_mgm()
98 if (!memcmp(mgm->gid, zero_gid, 16)) { in find_mgm()
101 err = -EINVAL; in find_mgm()
[all …]
/linux-6.15/fs/ocfs2/
Dxattr.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Lots of code in this file is copy from linux/fs/ext3/xattr.c.
9 * Copyright (C) 2001-2003 Andreas Gruenbacher, <agruen@suse.de>
79 - sizeof(struct ocfs2_xattr_header) \
80 - OCFS2_XATTR_HEADER_GAP)
81 #define OCFS2_XATTR_FREE_IN_BLOCK(ptr) ((ptr)->i_sb->s_blocksize \
82 - sizeof(struct ocfs2_xattr_block) \
83 - sizeof(struct ocfs2_xattr_header) \
84 - OCFS2_XATTR_HEADER_GAP)
134 int (*xlo_journal_access)(handle_t *handle, struct ocfs2_xa_loc *loc,
[all …]
/linux-6.15/arch/arm64/kernel/
Dmodule-plts.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2014-2017 Linaro Ltd. <ard.biesheuvel@linaro.org>
52 if (a->add != b->add || a->br != b->br) in plt_entries_equal()
62 if (a->adrp == b->adrp && p == q) in plt_entries_equal()
65 return (p + aarch64_insn_adrp_get_offset(le32_to_cpu(a->adrp))) == in plt_entries_equal()
66 (q + aarch64_insn_adrp_get_offset(le32_to_cpu(b->adrp))); in plt_entries_equal()
70 void *loc, const Elf64_Rela *rela, in module_emit_plt_entry() argument
73 struct mod_plt_sec *pltsec = !within_module_init((unsigned long)loc, mod) ? in module_emit_plt_entry()
74 &mod->arch.core : &mod->arch.init; in module_emit_plt_entry()
75 struct plt_entry *plt = (struct plt_entry *)sechdrs[pltsec->plt_shndx].sh_addr; in module_emit_plt_entry()
[all …]
/linux-6.15/arch/powerpc/kernel/
Deeh_pe.c1 // SPDX-License-Identifier: GPL-2.0-or-later
20 #include <asm/pci-bridge.h>
21 #include <asm/ppc-pci.h>
27 * eeh_set_pe_aux_size - Set PE auxiliary data size
41 * eeh_pe_alloc - Allocate PE
63 pe->type = type; in eeh_pe_alloc()
64 pe->phb = phb; in eeh_pe_alloc()
65 INIT_LIST_HEAD(&pe->child_list); in eeh_pe_alloc()
66 INIT_LIST_HEAD(&pe->edevs); in eeh_pe_alloc()
68 pe->data = (void *)pe + ALIGN(sizeof(struct eeh_pe), in eeh_pe_alloc()
[all …]
/linux-6.15/scripts/
Dsorttable.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 1999-2019 Alibaba Group Holding Limited. by:
9 * Copyright 2011 - 2012 Cavium, Inc.
11 * Based on code taken from recortmcount.c which is:
20 * Strategy: alter the vmlinux file in-place.
120 return r8(&ehdr->e64.e_shoff); in ehdr64_shoff()
125 return r(&ehdr->e32.e_shoff); in ehdr32_shoff()
136 return r2(&ehdr->e64.e_##fn_name); \
141 return r2(&ehdr->e32.e_##fn_name); \
156 return r(&shdr->e64.sh_##fn_name); \ in EHDR_HALF()
[all …]
/linux-6.15/drivers/staging/vme_user/
Dvme_fake.c1 // SPDX-License-Identifier: GPL-2.0-or-later
99 bridge = fake_bridge->driver_priv; in fake_VIRQ_tasklet()
101 vme_irq_handler(fake_bridge, bridge->int_level, bridge->int_statid); in fake_VIRQ_tasklet()
132 bridge = fake_bridge->driver_priv; in fake_irq_generate()
134 mutex_lock(&bridge->vme_int); in fake_irq_generate()
136 bridge->int_level = level; in fake_irq_generate()
138 bridge->int_statid = statid; in fake_irq_generate()
144 tasklet_schedule(&bridge->int_tasklet); in fake_irq_generate()
146 mutex_unlock(&bridge->vme_int); in fake_irq_generate()
163 fake_bridge = image->parent; in fake_slave_set()
[all …]
/linux-6.15/drivers/mmc/host/
Ddw_mmc-exynos.c1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include "dw_mmc-pltfm.h"
19 #include "dw_mmc-exynos.h"
21 /* Variations in Exynos specific dw-mshc controller */
54 .compatible = "samsung,exynos4210-dw-mshc",
57 .compatible = "samsung,exynos4412-dw-mshc",
60 .compatible = "samsung,exynos5250-dw-mshc",
63 .compatible = "samsung,exynos5420-dw-mshc",
66 .compatible = "samsung,exynos5420-dw-mshc-smu",
69 .compatible = "samsung,exynos7-dw-mshc",
[all …]
/linux-6.15/drivers/char/
Dapplicom.c1 // SPDX-License-Identifier: GPL-2.0-only
8 /* J PAGET 18/02/94 passage V2.4.2 ioctl avec code 2 reset to les interrupt */
16 /* au nombre de cartes presentes sur le bus. IOCL code 6 affichait V2.4.3 */
20 /* de code autre que le texte V2.6.1 en V2.8.0 */
46 the board doesn't correctly handle word accesses - only
127 static int ac_register_board(unsigned long physloc, void __iomem *loc, in ac_register_board() argument
132 if((readb(loc + CONF_END_TEST) != 0x00) || in ac_register_board()
133 (readb(loc + CONF_END_TEST + 1) != 0x55) || in ac_register_board()
134 (readb(loc + CONF_END_TEST + 2) != 0xAA) || in ac_register_board()
135 (readb(loc + CONF_END_TEST + 3) != 0xFF)) in ac_register_board()
[all …]
/linux-6.15/include/linux/
Dvbox_utils.h1 /* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */
2 /* Copyright (C) 2006-2016 Oracle Corporation */
21 /* Only use backdoor logging for non-dynamic debug builds */
29 struct vmmdev_hgcm_service_location *loc,
41 * Convert a VirtualBox status code to a standard Linux kernel return value.
43 * @rc: VirtualBox status code to convert.

123456