/openbmc/linux/tools/build/tests/ |
H A D | run.sh | 2 # SPDX-License-Identifier: GPL-2.0 5 make -C ex V=1 clean > ex.out 2>&1 6 make -C ex V=1 >> ex.out 2>&1 8 if [ ! -x ./ex/ex ]; then 10 exit -1 13 make -C ex V=1 clean > /dev/null 2>&1 14 rm -f ex.out 18 make -C ex V=1 clean > ex.out 2>&1 20 # use -rR to disable make's builtin rules 21 make -rR -C ex V=1 ex.o >> ex.out 2>&1 [all …]
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | fpu.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 12 #include <asm/asm-extable.h> 13 #include <asm/asm-offsets.h> 23 .macro EX insn, reg, src, offs macro 24 .ex\@: \insn \reg, \src, \offs 25 _asm_extable .ex\@, .L_fpu_fault 29 EX fst.d $f0, \base, (0 * FPU_REG_WIDTH) 30 EX fst.d $f1, \base, (1 * FPU_REG_WIDTH) 31 EX fst.d $f2, \base, (2 * FPU_REG_WIDTH) [all …]
|
H A D | lbt.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Copyright (C) 2020-2023 Loongson Technology Corporation Limited 10 #include <asm/asm-extable.h> 11 #include <asm/asm-offsets.h> 17 .macro EX insn, reg, src, offs macro 18 .ex\@: \insn \reg, \src, \offs 19 _asm_extable .ex\@, .L_lbt_fault 79 EX st.d t1, a0, (0 * SCR_REG_WIDTH) 81 EX st.d t1, a0, (1 * SCR_REG_WIDTH) 83 EX st.d t1, a0, (2 * SCR_REG_WIDTH) [all …]
|
/openbmc/linux/arch/sh/lib/ |
H A D | copy_page.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 * r0, r1, r2, r3, r4, r5, r6, r7 --- scratch 22 * r8 --- from + PAGE_SIZE 23 * r9 --- not used 24 * r10 --- to 25 * r11 --- from 28 mov.l r8,@-r15 29 mov.l r10,@-r15 30 mov.l r11,@-r15 53 mov.l r7,@-r10 [all …]
|
H A D | memcpy-sh4.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 7 * Modified from memcpy.S and micro-optimised for SH4 21 ! GHIJ KLMN OPQR --> ...G HIJK LMNO PQR. 30 add #-1,r5 ! 79 EX 34 add #-4,r5 ! 50 EX 36 add #7,r2 ! 79 EX 44 shll16 r3 ! 103 EX 47 shll8 r3 ! 102 EX ! Oxxx 49 shlr8 r6 ! 106 EX ! xNML 52 or r6,r3 ! 82 EX ! ONML [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | r4k_fpu.S | 8 * Multi-arch abstraction and asm macros for easier reading: 21 #include <asm/asm-offsets.h> 27 .macro EX insn, reg, src macro 31 .ex\@: \insn \reg, \src 34 PTR_WD .ex\@, fault 92 * _save_fp_context() - save FP context from the FPU 93 * @a0 - pointer to fpregs field of sigcontext 94 * @a1 - pointer to fpc_csr field of sigcontext 118 EX sdc1 $f1, 8(a0) 119 EX sdc1 $f3, 24(a0) [all …]
|
/openbmc/linux/arch/s390/mm/ |
H A D | extable.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <asm/asm-extable.h> 19 num = __stop_amode31_ex_table - __start_amode31_ex_table; in s390_search_extables() 23 static bool ex_handler_fixup(const struct exception_table_entry *ex, struct pt_regs *regs) in ex_handler_fixup() argument 25 regs->psw.addr = extable_fixup(ex); in ex_handler_fixup() 29 static bool ex_handler_ua_store(const struct exception_table_entry *ex, struct pt_regs *regs) in ex_handler_ua_store() argument 31 unsigned int reg_err = FIELD_GET(EX_DATA_REG_ERR, ex->data); in ex_handler_ua_store() 33 regs->gprs[reg_err] = -EFAULT; in ex_handler_ua_store() 34 regs->psw.addr = extable_fixup(ex); in ex_handler_ua_store() 38 static bool ex_handler_ua_load_mem(const struct exception_table_entry *ex, struct pt_regs *regs) in ex_handler_ua_load_mem() argument [all …]
|
/openbmc/linux/arch/xtensa/lib/ |
H A D | usercopy.S | 8 * of the Xtensa link-time HAL, and those files may differ per 11 * could lose the special functionality for accessing user-space 37 * This code tries to use fall-through braches for the common 93 EX(10f) l8ui a6, a3, 0 95 EX(10f) s8i a6, a5, 0 97 addi a4, a4, -1 100 .Ldst2mod4: # dst 16-bit aligned 103 EX(10f) l8ui a6, a3, 0 104 EX(10f) l8ui a7, a3, 1 106 EX(10f) s8i a6, a5, 0 [all …]
|
H A D | checksum.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 29 * This function assumes 2- or 4-byte alignment. Other alignments will fail! 32 /* ONES_ADD converts twos-complement math to ones-complement. */ 44 * is aligned on either a 2-byte or 4-byte boundary. 48 bnez a5, 8f /* branch if 2-byte aligned */ 49 /* Fall-through on common case, 4-byte alignment */ 51 srli a5, a3, 5 /* 32-byte chunks */ 57 add a5, a5, a2 /* a5 = end of last 32-byte chunk */ 81 extui a5, a3, 2, 3 /* remaining 4-byte chunks */ 87 add a5, a5, a2 /* a5 = end of last 4-byte chunk */ [all …]
|
H A D | strncpy_user.S | 8 * Returns: -EFAULT if exception before terminator, N if the entire 60 bbsi.l a3, 0, .Lsrc1mod2 # if only 8-bit aligned 61 bbsi.l a3, 1, .Lsrc2mod4 # if only 16-bit aligned 62 .Lsrcaligned: # return here when src is word-aligned 69 EX(11f) l8ui a9, a3, 0 # get byte 0 71 EX(10f) s8i a9, a11, 0 # store byte 0 74 addi a4, a4, -1 # decrement len 76 bbci.l a3, 1, .Lsrcaligned # if src is now word-aligned 79 EX(11f) l8ui a9, a3, 0 # get byte 0 80 /* 1-cycle interlock */ [all …]
|
/openbmc/linux/security/ |
H A D | device_cgroup.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * device_cgroup.c - device cgroup subsystem 8 #include <linux/bpf-cgroup.h> 64 struct dev_exception_item *ex, *tmp, *new; in dev_exceptions_copy() local 68 list_for_each_entry(ex, orig, list) { in dev_exceptions_copy() 69 new = kmemdup(ex, sizeof(*ex), GFP_KERNEL); in dev_exceptions_copy() 72 list_add_tail(&new->list, dest); in dev_exceptions_copy() 78 list_for_each_entry_safe(ex, tmp, dest, list) { in dev_exceptions_copy() 79 list_del(&ex->list); in dev_exceptions_copy() 80 kfree(ex); in dev_exceptions_copy() [all …]
|
/openbmc/linux/arch/arm64/mm/ |
H A D | extable.c | 1 // SPDX-License-Identifier: GPL-2.0 10 #include <asm/asm-extable.h> 14 get_ex_fixup(const struct exception_table_entry *ex) in get_ex_fixup() argument 16 return ((unsigned long)&ex->fixup + ex->fixup); in get_ex_fixup() 19 static bool ex_handler_uaccess_err_zero(const struct exception_table_entry *ex, in ex_handler_uaccess_err_zero() argument 22 int reg_err = FIELD_GET(EX_DATA_REG_ERR, ex->data); in ex_handler_uaccess_err_zero() 23 int reg_zero = FIELD_GET(EX_DATA_REG_ZERO, ex->data); in ex_handler_uaccess_err_zero() 25 pt_regs_write_reg(regs, reg_err, -EFAULT); in ex_handler_uaccess_err_zero() 28 regs->pc = get_ex_fixup(ex); in ex_handler_uaccess_err_zero() 33 ex_handler_load_unaligned_zeropad(const struct exception_table_entry *ex, in ex_handler_load_unaligned_zeropad() argument [all …]
|
/openbmc/linux/net/ceph/ |
H A D | striper.c | 1 /* SPDX-License-Identifier: GPL-2.0 */ 14 * number of bytes mapped, less than or equal to @l->stripe_unit). 28 u32 stripes_per_object = l->object_size / l->stripe_unit; in ceph_calc_file_object_mapping() 37 blockno = div_u64_rem(off, l->stripe_unit, &blockoff); in ceph_calc_file_object_mapping() 38 stripeno = div_u64_rem(blockno, l->stripe_count, &stripepos); in ceph_calc_file_object_mapping() 41 *objno = objsetno * l->stripe_count + stripepos; in ceph_calc_file_object_mapping() 42 *objoff = objsetpos * l->stripe_unit + blockoff; in ceph_calc_file_object_mapping() 43 *xlen = min_t(u64, len, l->stripe_unit - blockoff); in ceph_calc_file_object_mapping() 59 struct ceph_object_extent *ex = in lookup_last() local 60 list_entry(pos, typeof(*ex), oe_item); in lookup_last() [all …]
|
/openbmc/linux/arch/loongarch/mm/ |
H A D | extable.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 8 #include <asm/asm-extable.h> 12 get_ex_fixup(const struct exception_table_entry *ex) in get_ex_fixup() argument 14 return ((unsigned long)&ex->fixup + ex->fixup); in get_ex_fixup() 24 static bool ex_handler_fixup(const struct exception_table_entry *ex, in ex_handler_fixup() argument 27 regs->csr_era = get_ex_fixup(ex); in ex_handler_fixup() 32 static bool ex_handler_uaccess_err_zero(const struct exception_table_entry *ex, in ex_handler_uaccess_err_zero() argument 35 int reg_err = FIELD_GET(EX_DATA_REG_ERR, ex->data); in ex_handler_uaccess_err_zero() 36 int reg_zero = FIELD_GET(EX_DATA_REG_ZERO, ex->data); in ex_handler_uaccess_err_zero() [all …]
|
/openbmc/linux/arch/riscv/mm/ |
H A D | extable.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <asm/asm-extable.h> 18 get_ex_fixup(const struct exception_table_entry *ex) in get_ex_fixup() argument 20 return ((unsigned long)&ex->fixup + ex->fixup); in get_ex_fixup() 23 static bool ex_handler_fixup(const struct exception_table_entry *ex, in ex_handler_fixup() argument 26 regs->epc = get_ex_fixup(ex); in ex_handler_fixup() 40 static bool ex_handler_uaccess_err_zero(const struct exception_table_entry *ex, in ex_handler_uaccess_err_zero() argument 43 int reg_err = FIELD_GET(EX_DATA_REG_ERR, ex->data); in ex_handler_uaccess_err_zero() 44 int reg_zero = FIELD_GET(EX_DATA_REG_ZERO, ex->data); in ex_handler_uaccess_err_zero() 46 regs_set_gpr(regs, reg_err * sizeof(unsigned long), -EFAULT); in ex_handler_uaccess_err_zero() [all …]
|
/openbmc/linux/Documentation/devicetree/bindings/interrupt-controller/ |
H A D | renesas,irqc.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/interrupt-controller/renesas,irqc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: R-Mobile/R-Car/RZ/G interrupt controller 10 - Geert Uytterhoeven <geert+renesas@glider.be> 15 - enum: 16 - renesas,irqc-r8a73a4 # R-Mobile APE6 17 - renesas,irqc-r8a7742 # RZ/G1H 18 - renesas,irqc-r8a7743 # RZ/G1M [all …]
|
/openbmc/linux/arch/sparc/lib/ |
H A D | checksum_32.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 10 * Linux/Alpha checksum c-code 13 * David Mosberger-Tang for optimized reference c-code 35 ldd [buf - offset - 0x08], t0; \ 36 ldd [buf - offset - 0x00], t2; \ 60 addcc %o1, -1, %g0 ! only one byte remains? 79 bl cpte - 0x4 113 sethi %hi(cpte - 8), %g7 ! prepare table jmp ptr 131 jmp %g7 + %lo(cpte - 8) ! enter the table 147 /* Work around cpp -rob */ [all …]
|
/openbmc/linux/arch/mips/lib/ |
H A D | memset.S | 13 #include <asm/asm-offsets.h> 26 #define STORMASK (STORSIZE - 1) 48 #define EX(insn,reg,addr,handler) \ macro 59 EX(LONG_S, \val, (\offset + 0 * STORSIZE)(\dst), \fixup) 60 EX(LONG_S, \val, (\offset + 1 * STORSIZE)(\dst), \fixup) 61 EX(LONG_S, \val, (\offset + 2 * STORSIZE)(\dst), \fixup) 62 EX(LONG_S, \val, (\offset + 3 * STORSIZE)(\dst), \fixup) 64 EX(LONG_S, \val, (\offset + 4 * STORSIZE)(\dst), \fixup) 65 EX(LONG_S, \val, (\offset + 5 * STORSIZE)(\dst), \fixup) 66 EX(LONG_S, \val, (\offset + 6 * STORSIZE)(\dst), \fixup) [all …]
|
/openbmc/linux/tools/build/Documentation/ |
H A D | Build.txt | 10 Unlike the kernel we don't have a single build object 'obj-y' list that where 16 ------------------------- 27 $ make -f tools/build/Makefile.build srctree=$(KSRC) dir=$(DIR) obj=$(OBJECT) 31 KSRC - is the path to kernel sources 32 DIR - is the path to the project to be built 33 OBJECT - is the name of the build object 36 called $(OBJECT)-in.o: 38 $ ls $(DIR)/$(OBJECT)-in.o 44 --------------- 51 ex/a.c [all …]
|
/openbmc/linux/tools/build/tests/ex/ |
H A D | Makefile | 1 # SPDX-License-Identifier: GPL-2.0 7 ex: target 11 ex: ex-in.o libex-in.o target 12 $(CC) -o $@ $^ 14 ex.%: fixdep FORCE 15 make -f $(srctree)/tools/build/Makefile.build dir=. $@ 17 ex-in.o: fixdep FORCE 18 make $(build)=ex 20 libex-in.o: fixdep FORCE 24 find . -name '*.o' -delete -o -name '\.*.cmd' -delete -o -name '\.*.d' -delete [all …]
|
H A D | Build | 1 ex-y += ex.o 2 ex-y += a.o 3 ex-y += b.o 4 ex-y += b.o 5 ex-y += empty/ 6 ex-y += empty2/ 7 ex-y += inc.o 9 libex-y += c.o 10 libex-y += d.o 11 libex-y += arch/
|
/openbmc/bmcweb/test/http/ |
H A D | mutual_tls.cpp | 1 // SPDX-License-Identifier: Apache-2.0 2 // SPDX-FileCopyrightText: Copyright OpenBMC Authors 50 X509_NAME_add_entry_by_txt(name, "CN", MBSTRING_ASC, user.data(), -1, in setSubjectName() 51 -1, 0); in setSubjectName() 108 X509_EXTENSION* ex = X509V3_EXT_conf_nid(nullptr, nullptr, NID_key_usage, in TEST() local 110 ASSERT_THAT(ex, NotNull()); in TEST() 111 ASSERT_EQ(X509_add_ext(x509.get(), ex, -1), 1); in TEST() 112 X509_EXTENSION_free(ex); in TEST() 113 ex = X509V3_EXT_conf_nid(nullptr, nullptr, NID_ext_key_usage, "clientAuth"); in TEST() 114 ASSERT_THAT(ex, NotNull()); in TEST() [all …]
|
/openbmc/linux/arch/ia64/lib/ |
H A D | memcpy_mck.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Itanium 2-optimized version of memcpy and copy_user function 21 #define EK(y...) EX(y) 39 /* r19-r30 are temp for each code section */ 110 // both dest and src are aligned on 8-byte boundary 113 alloc saved_pfs=ar.pfs,3,Nrot-3,0,Nrot 124 add cnt=-1,cnt 141 shr.u r29=in2,5 // number of 32-byte iteration 144 add cnt=-1,r29 // ctop iteration adjustment 157 EX(.ex_handler, (p16) ld8 r34=[src0],16) [all …]
|
/openbmc/linux/fs/ext4/ |
H A D | extents.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (c) 2003-2006, Cluster File Systems, Inc, info@clusterfs.com 15 * - ext4*_error() should be used in some situations 16 * - analyze all BUG()/BUG_ON(), use -EIO where appropriate 17 * - smart tree reduction 53 struct ext4_sb_info *sbi = EXT4_SB(inode->i_sb); in ext4_extent_block_csum() 56 csum = ext4_chksum(sbi, ei->i_csum_seed, (__u8 *)eh, in ext4_extent_block_csum() 66 if (!ext4_has_metadata_csum(inode->i_sb)) in ext4_extent_block_csum_verify() 70 if (et->et_checksum != ext4_extent_block_csum(inode, eh)) in ext4_extent_block_csum_verify() 80 if (!ext4_has_metadata_csum(inode->i_sb)) in ext4_extent_block_csum_set() [all …]
|
/openbmc/linux/Documentation/ABI/testing/ |
H A D | sysfs-driver-hid-logitech-lg4ff | 4 Contact: Michal Malý <madcatxster@devoid-pointer.net> 12 Contact: Michal Malý <madcatxster@devoid-pointer.net> 23 If a wheel cannot be switched into the desired mode, -EINVAL 32 DF-EX --> DFP 36 DF-EX --> DFP --> G25 40 DF-EX <*> DFP <-> G25 <-> G27 41 DF-EX <*--------> G25 <-> G27 42 DF-EX <*----------------> G27 46 DF-EX <*> DFP <-> G25 <-> G27 <-> G29 47 DF-EX <*--------> G25 <-> G27 <-> G29 [all …]
|