/linux/drivers/char/tpm/ |
H A D | tpm_tis_i2c_cr50.c | 1 // 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/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 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 …]
|
/linux/kernel/trace/ |
H A D | trace_probe_tmpl.h | 1 /* 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/drivers/infiniband/hw/qib/ |
H A D | qib_sd7220.c | 3 * 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/Documentation/devicetree/bindings/tpm/ |
H A D | ibm,vtpm.yaml | 1 # 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/arch/parisc/kernel/ |
H A D | module.c | 1 // 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/fs/exfat/ |
H A D | fatent.c | 1 // 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/lib/ |
H A D | ubsan.c | 1 // 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() 128 return test_and_set_bit(REPORTED_BIT, &location->reported); in was_reported() 131 static bool suppress_report(struct source_location *loc) in suppress_report() argument 133 return current->in_ubsan || was_reported(loc); in suppress_report() 138 return type->type_kind == type_kind_int; in type_is_int() 144 return type->type_info & 1; in type_is_signed() [all …]
|
/linux/Documentation/networking/device_drivers/ethernet/aquantia/ |
H A D | atlantic.rst | 1 .. 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/drivers/macintosh/ |
H A D | windfarm_ad7417_sensor.c | 1 // 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 …]
|
H A D | windfarm_fcu_controls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 44 * what Darwin -apparently- does based on observed behaviour. 80 struct wf_fcu_fan *fan = ct->priv; in wf_fcu_fan_release() 82 kref_put(&fan->fcu_priv->ref, wf_fcu_release); in wf_fcu_fan_release() 91 mutex_lock(&pv->lock); in wf_fcu_read_reg() 96 nw = i2c_master_send(pv->i2c, buf, 1); in wf_fcu_read_reg() 97 if (nw > 0 || (nw < 0 && nw != -EIO) || tries >= 100) in wf_fcu_read_reg() 109 nr = i2c_master_recv(pv->i2c, buf, nb); in wf_fcu_read_reg() 110 if (nr > 0 || (nr < 0 && nr != -ENODEV) || tries >= 100) in wf_fcu_read_reg() 118 mutex_unlock(&pv->lock); in wf_fcu_read_reg() [all …]
|
/linux/lib/reed_solomon/ |
H A D | decode_rs.c | 1 // 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/arch/arc/kernel/ |
H A D | unwind.c | 1 // 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/arch/s390/kernel/ |
H A D | machine_kexec_file.c | 1 // 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/drivers/infiniband/hw/mthca/ |
H A D | mthca_mcg.c | 14 * - 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/arch/powerpc/kernel/ |
H A D | eeh_pe.c | 1 // 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/arch/arm64/kernel/ |
H A D | module-plts.c | 1 // 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/scripts/ |
H A D | sorttable.c | 1 // 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/drivers/staging/vme_user/ |
H A D | vme_fake.c | 1 // 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/drivers/char/ |
H A D | applicom.c | 1 // 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/scripts/mod/ |
H A D | modpost.c | 4 * Copyright 2002-2004 Rusty Russell, IBM Corporation 5 * Copyright 2006-2008 Sam Ravnborg 6 * Based in part on module-init-tools/depmod.c,file2alias 49 /* Trim EXPORT_SYMBOLs that are unused by in-tree modules */ 72 * here we use Elf_Addr instead of long for covering cross-compile 75 #define MODULE_NAME_LEN (64 - sizeof(Elf_Addr)) 100 return strcmp(str + strlen(str) - strlen(postfix), postfix) == 0; in strends() 104 * get_basename - return the last part of a pathname. 146 nbytes -= bytes_read; in read_text_file() 181 if (!strcmp(mod->dump_file, filename) && in find_module() [all …]
|
/linux/arch/arm/mm/ |
H A D | cache-v7m.S | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * linux/arch/arm/mm/cache-v7m.S 5 * Based on linux/arch/arm/mm/cache-v7.S 20 #include "proc-macros.S" 22 .arch armv7-m 132 and r3, r1, r0, lsr #3 @ NumWays - 1 140 1: sub r2, r2, #1 @ NumSets-- 142 2: subs r3, r3, #1 @ Temp-- 158 * Flush the whole I-cache. 161 * r0 - set to 0 [all …]
|
/linux/include/linux/ |
H A D | vbox_utils.h | 1 /* 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.
|
/linux/tools/memory-model/Documentation/ |
H A D | explanation.txt | 1 Explanation of the Linux-Kernel Memory Consistency Model 15 7. THE PROGRAM ORDER RELATION: po AND po-loc 18 10. THE READS-FROM RELATION: rf, rfi, and rfe 20 12. THE FROM-READS RELATION: fr, fri, and fre 22 14. PROPAGATION ORDER RELATION: cumul-fence 28 20. THE HAPPENS-BEFORE RELATION: hb 29 21. THE PROPAGATES-BEFORE RELATION: pb 30 22. RCU RELATIONS: rcu-link, rcu-gp, rcu-rscsi, rcu-order, rcu-fence, and rb 31 23. SRCU READ-SIDE CRITICAL SECTIONS 39 ------------ [all …]
|
/linux/drivers/virt/vboxguest/ |
H A D | vboxguest_utils.c | 1 /* SPDX-License-Identifier: (GPL-2.0 OR CDDL-1.0) */ 3 * vboxguest vmm-req and hgcm-call code, VBoxGuestR0LibHGCMInternal.cpp, 6 * Copyright (C) 2006-2016 Oracle Corporation 79 req->size = len; in vbg_req_alloc() 80 req->version = VMMDEV_REQUEST_HEADER_VERSION; in vbg_req_alloc() 81 req->request_type = req_type; in vbg_req_alloc() 82 req->rc = VERR_GENERAL_FAILURE; in vbg_req_alloc() 83 req->reserved1 = 0; in vbg_req_alloc() 84 req->requestor = requestor; in vbg_req_alloc() 97 /* Note this function returns a VBox status code, not a negative errno!! */ [all …]
|