/linux/fs/smb/common/ |
H A D | cifs_md4.c | 1 // SPDX-License-Identifier: GPL-2.0 12 * Copyright (c) Andrew Tridgell 1997-1998. 32 x &= 0xFFFFFFFF; in lshift() 33 return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s)); in lshift() 51 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 52 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 53 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 57 u32 a, b, c, d; in md4_transform() local 59 a = hash[0]; in md4_transform() 60 b = hash[1]; in md4_transform() [all …]
|
/linux/arch/powerpc/crypto/ |
H A D | aes-tab-4k.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 10 * crypto/aes_generic.c and are designed to be simply accessed by a combination 11 * of rlwimi/lwz instructions with a minimum of table registers (usually only 16 * For the safety-conscious it has to be noted that they might be vulnerable 19 * This is a quite good tradeoff for low power devices (e.g. routers) without 25 #define R(a, b, c, d) \ argument 26 0x##a##b##c##d, 0x##d##a##b##c, 0x##c##d##a##b, 0x##b##c##d##a 32 /* encryption table, same as crypto_ft_tab in crypto/aes-generic.c */ 34 .long R(ee, 77, 77, 99), R(f6, 7b, 7b, 8d) 35 .long R(ff, f2, f2, 0d), R(d6, 6b, 6b, bd) [all …]
|
/linux/crypto/ |
H A D | md4.c | 11 * Copyright (c) Andrew Tridgell 1997-1998. 44 x &= 0xFFFFFFFF; in lshift() 45 return ((x << s) & 0xFFFFFFFF) | (x >> (32 - s)); in lshift() 63 #define ROUND1(a,b,c,d,k,s) (a = lshift(a + F(b,c,d) + k, s)) argument 64 #define ROUND2(a,b,c,d,k,s) (a = lshift(a + G(b,c,d) + k + (u32)0x5A827999,s)) argument 65 #define ROUND3(a,b,c,d,k,s) (a = lshift(a + H(b,c,d) + k + (u32)0x6ED9EBA1,s)) argument 69 u32 a, b, c, d; in md4_transform() local 71 a = hash[0]; in md4_transform() 72 b = hash[1]; in md4_transform() 76 ROUND1(a, b, c, d, in[0], 3); in md4_transform() [all …]
|
H A D | md5.c | 25 0xd4, 0x1d, 0x8c, 0xd9, 0x8f, 0x00, 0xb2, 0x04, 26 0xe9, 0x80, 0x09, 0x98, 0xec, 0xf8, 0x42, 0x7e, 36 (w += f(x, y, z) + in, w = (w<<s | w>>(32-s)) + x) 40 u32 a, b, c, d; in md5_transform() local 42 a = hash[0]; in md5_transform() 43 b = hash[1]; in md5_transform() 47 MD5STEP(F1, a, b, c, d, in[0] + 0xd76aa478, 7); in md5_transform() 48 MD5STEP(F1, d, a, b, c, in[1] + 0xe8c7b756, 12); in md5_transform() 49 MD5STEP(F1, c, d, a, b, in[2] + 0x242070db, 17); in md5_transform() 50 MD5STEP(F1, b, c, d, a, in[3] + 0xc1bdceee, 22); in md5_transform() [all …]
|
/linux/arch/csky/lib/ |
H A D | usercopy.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (C) 2018 Hangzhou C-SKY Microsystems co.,ltd. 13 "0: cmpnei %1, 0 \n" in raw_copy_from_user() 18 " cmpnei %3, 0 \n" in raw_copy_from_user() 21 "1: cmplti %0, 16 \n" in raw_copy_from_user() 23 "2: ldw %3, (%2, 0) \n" in raw_copy_from_user() 25 " stw %3, (%1, 0) \n" in raw_copy_from_user() 33 " subi %0, 16 \n" in raw_copy_from_user() 34 " br 1b \n" in raw_copy_from_user() 35 "3: cmplti %0, 4 \n" in raw_copy_from_user() [all …]
|
/linux/arch/mips/kernel/ |
H A D | mips-r2-to-r6-emul.c | 28 #include <asm/mips-r2-to-r6-emul.h> 59 int mipsr2_emulation = 0; 65 pr_info("MIPS R2-to-R6 Emulator Enabled!"); in mipsr2emu_enable() 72 * mipsr6_emul - Emulate some frequent R2/R5/R6 instructions in delay slot 73 * for performance instead of the traditional way of using a stack trampoline 83 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul() 84 (s32)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul() 86 return 0; in mipsr6_emul() 92 regs->regs[MIPSInst_RT(ir)] = in mipsr6_emul() 93 (s64)regs->regs[MIPSInst_RS(ir)] + in mipsr6_emul() [all …]
|
/linux/Documentation/userspace-api/media/v4l/ |
H A D | subdev-formats.rst | 1 .. SPDX-License-Identifier: GFDL-1.1-no-invariants-or-later 3 .. _v4l2-mbus-format: 14 .. flat-table:: struct v4l2_mbus_framefmt 15 :header-rows: 0 16 :stub-columns: 0 19 * - __u32 20 - ``width`` 21 - Image width in pixels. 22 * - __u32 23 - ``height`` [all …]
|
/linux/drivers/ata/pata_parport/ |
H A D | ktti.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * ktti.c is a low-level protocol driver for the KT Technology 7 * portable hard-drives. As far as I can tell, this device 8 * supports 4-bit mode _only_. 20 #define j44(a, b) (((a >> 4) & 0x0f) | (b & 0xf0)) argument 23 * cont = 0 - access the IDE register file 24 * cont = 1 - access the IDE command set 26 static int cont_map[2] = { 0x10, 0x08 }; 32 w0(r); w2(0xb); w2(0xa); w2(3); w2(6); in ktti_write_regr() 33 w0(val); w2(3); w0(0); w2(6); w2(0xb); in ktti_write_regr() [all …]
|
/linux/arch/m68k/math-emu/ |
H A D | fp_util.S | 22 * necessary due to a potential bad interaction between the GPL and 23 * the restrictions contained in a BSD-style copyright.) 27 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 63 tst.l (TASK_MM-8,%a2) 65 tst.l (TASK_MM-4,%a2) 69 1: printf ,"oops:%p,%p,%p\n",3,%a2@(TASK_MM-8),%a2@(TASK_MM-4),%a2@(TASK_MM) 85 * First several conversion functions from a source operand 94 | args: %d0 = source (32-bit long) 98 printf PCONV,"l2e: %p -> %p(",2,%d0,%a0 106 move.w #0x3fff+31,%d1 [all …]
|
/linux/arch/arm/mach-omap1/ |
H A D | mux.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * linux/arch/arm/mach-omap1/mux.c 7 * Copyright (C) 2003 - 2008 Nokia Corporation 15 #include <linux/soc/ti/omap1-io.h> 30 MUX_CFG("UART1_TX", 9, 21, 1, 2, 3, 0, NA, 0, 0) 31 MUX_CFG("UART1_RTS", 9, 12, 1, 2, 0, 0, NA, 0, 0) 34 MUX_CFG("UART2_TX", C, 27, 1, 3, 3, 0, NA, 0, 0) 35 MUX_CFG("UART2_RX", C, 18, 0, 3, 1, 1, NA, 0, 0) 36 MUX_CFG("UART2_CTS", C, 21, 0, 3, 1, 1, NA, 0, 0) 37 MUX_CFG("UART2_RTS", C, 24, 1, 3, 2, 0, NA, 0, 0) [all …]
|
/linux/lib/crypto/arm/ |
H A D | blake2s-core.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 15 // load the words on-demand. 21 .word 0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A 22 .word 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19 24 .macro __ldrd a, b, src, offset 26 ldrd \a, \b, [\src, #\offset] 28 ldr \a, [\src, #\offset] 29 ldr \b, [\src, #\offset + 4] 33 .macro __strd a, b, dst, offset 35 strd \a, \b, [\dst, #\offset] [all …]
|
/linux/arch/arm/boot/dts/st/ |
H A D | stm32h7-pinctrl.dtsi | 2 * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com> 4 * This file is dual-licensed: you can use it either under the terms 6 * licensing only applies to this file, and not this project as a 9 * a) This file is free software; you can redistribute it and/or 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * b) Permission is hereby granted, free of charge, to any person 22 * obtaining a copy of this software and associated documentation 35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 43 #include <dt-bindings/pinctrl/stm32-pinfunc.h> 47 i2c1_pins_a: i2c1-0 { [all …]
|
H A D | stm32f7-pinctrl.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 7 #include <dt-bindings/pinctrl/stm32-pinfunc.h> 8 #include <dt-bindings/mfd/stm32f7-rcc.h> 13 #address-cells = <1>; 14 #size-cells = <1>; 15 ranges = <0 0x40020000 0x3000>; 16 interrupt-parent = <&exti>; 17 st,syscfg = <&syscfg 0x8>; 20 gpio-controller; [all …]
|
H A D | stm32mp15-pinctrl.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR BSD-3-Clause) 3 * Copyright (C) STMicroelectronics 2017 - All Rights Reserved 6 #include <dt-bindings/pinctrl/stm32-pinfunc.h> 9 /omit-if-no-ref/ 10 adc1_ain_pins_a: adc1-ain-0 { 13 <STM32_PINMUX('B', 1, ANALOG)>, /* ADC1_INP5 */ 14 <STM32_PINMUX('B', 0, ANALOG)>, /* ADC1_INP9 */ 15 <STM32_PINMUX('C', 0, ANALOG)>, /* ADC1_INP10 */ 17 <STM32_PINMUX('A', 3, ANALOG)>; /* ADC1_INP15 */ 21 /omit-if-no-ref/ [all …]
|
H A D | stm32f4-pinctrl.dtsi | 2 * Copyright 2017 - Alexandre Torgue <alexandre.torgue@st.com> 4 * This file is dual-licensed: you can use it either under the terms 6 * licensing only applies to this file, and not this project as a 9 * a) This file is free software; you can redistribute it and/or 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * b) Permission is hereby granted, free of charge, to any person 22 * obtaining a copy of this software and associated documentation 35 * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 43 #include <dt-bindings/pinctrl/stm32-pinfunc.h> 44 #include <dt-bindings/mfd/stm32f4-rcc.h> [all …]
|
/linux/drivers/comedi/drivers/ni_routing/ni_route_values/ |
H A D | ni_mseries.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * COMEDI - Linux Control and Measurement Device Interface 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21 * This file includes a list of all the values of various signals routes 32 * are critical to a complete undertsanding of the register values of this 42 * DAQ-STC. There is some evidence that using CtrGate values is valid (see 43 * comedi.h). Some information and hints exist in the M-Series user manual 44 * (ni-62xx user-manual 371022K-01). 56 [B(NI_PFI(0))] = { 57 [B(TRIGGER_LINE(0))] = I(18), [all …]
|
/linux/lib/crypto/ |
H A D | blake2s-generic.c | 1 // SPDX-License-Identifier: GPL-2.0 OR MIT 3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 21 { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 }, 22 { 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3 }, 23 { 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4 }, 24 { 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8 }, 25 { 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13 }, 26 { 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9 }, 27 { 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11 }, 28 { 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10 }, [all …]
|
/linux/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | rate.c | 25 * Rate info per rate: It tells whether a rate is ofdm or not and its phy_rate 29 /* 0 1 2 3 4 5 6 7 8 9 */ 30 /* 0 */ 0x00, 0x00, 0x0a, 0x00, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 31 /* 10 */ 0x00, 0x37, 0x8b, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8f, 0x00, 32 /* 20 */ 0x00, 0x00, 0x6e, 0x00, 0x8a, 0x00, 0x00, 0x00, 0x00, 0x00, 33 /* 30 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x8e, 0x00, 0x00, 0x00, 34 /* 40 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x89, 0x00, 35 /* 50 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 36 /* 60 */ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 37 /* 70 */ 0x00, 0x00, 0x8d, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, [all …]
|
/linux/arch/s390/include/asm/ |
H A D | timex.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 6 * Derived from "include/asm-i386/timex.h" 20 #define TOD_UNIX_EPOCH 0x7d91048bca000000ULL 28 __uint128_t tod : 64; /* bits 0-63 of tod clock */ 33 __uint128_t eitod : 72; /* epoch index + bits 0-63 tod clock */ 37 __uint128_t us : 60; /* micro-seconds */ 38 __uint128_t sus : 12; /* sub-microseconds */ 72 asm volatile("stcke %0" : "=Q" (*tod) : : "cc"); in store_tod_clock_ext() 77 asm volatile("sckc %0" : : "Q" (time)); in set_clock_comparator() 83 " lgr 0,%[val]\n" in set_tod_programmable_field() [all …]
|
/linux/arch/powerpc/lib/ |
H A D | copy_32.S | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Memory copy functions for 32-bit PowerPC. 5 * Copyright (C) 1996-2005 Paul Mackerras. 12 #include <asm/code-patching-asm.h> 26 8 ## n ## 0: \ 44 9 ## n ## 0: \ 45 addi r5,r5,-(16 * n); \ 46 b 104f; \ 47 9 ## n ## 1: \ 48 addi r5,r5,-(16 * n); \ [all …]
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | xdp_adjust_tail.c | 1 // SPDX-License-Identifier: GPL-2.0 28 expect_sz = sizeof(pkt_v6) - 20; /* Test shrink with 20 bytes */ in test_xdp_adjust_tail_shrink() 54 /* topts.data_size_in as a special signal to bpf prog */ in test_xdp_adjust_tail_grow() 56 topts.data_size_in = sizeof(pkt_v4) - 1; in test_xdp_adjust_tail_grow() 100 .data_size_in = 0, /* Per test */ in test_xdp_adjust_tail_grow2() 101 .data_size_out = 0, /* Per test */ in test_xdp_adjust_tail_grow2() 108 /* Test case-64 */ in test_xdp_adjust_tail_grow2() 115 ASSERT_EQ(errno, ENOSPC, "case-64 errno"); /* Due limit copy_size in bpf_test_finish */ in test_xdp_adjust_tail_grow2() 116 ASSERT_EQ(tattr.retval, XDP_TX, "case-64 retval"); in test_xdp_adjust_tail_grow2() 117 ASSERT_EQ(tattr.data_size_out, 192, "case-64 data_size_out"); /* Expected grow size */ in test_xdp_adjust_tail_grow2() [all …]
|
/linux/net/ceph/ |
H A D | ceph_hash.c | 10 #define mix(a, b, c) \ argument 12 a = a - b; a = a - c; a = a ^ (c >> 13); \ 13 b = b - c; b = b - a; b = b ^ (a << 8); \ 14 c = c - a; c = c - b; c = c ^ (b >> 13); \ 15 a = a - b; a = a - c; a = a ^ (c >> 12); \ 16 b = b - c; b = b - a; b = b ^ (a << 16); \ 17 c = c - a; c = c - b; c = c ^ (b >> 5); \ 18 a = a - b; a = a - c; a = a ^ (c >> 3); \ 19 b = b - c; b = b - a; b = b ^ (a << 10); \ 20 c = c - a; c = c - b; c = c ^ (b >> 15); \ [all …]
|
/linux/arch/sh/lib/ |
H A D | memmove.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 28 bt/s 9f ! if n=0, do nothing 33 bt/s 8f ! if it's too small, copy a byte at once 34 add #-1,r4 40 ! r0+r4--> [ ... ] r0 --> [ ... ] 43 ! r5 --> 62 ! copy a byte at once 63 8: mov.b @r0+,r1 65 bf/s 8b ! while (r0<r5) 66 mov.b r1,@(r0,r4) [all …]
|
/linux/arch/microblaze/include/asm/ |
H A D | hash.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 8 * a supported configuration. 10 * With just a barrel shifter, we can implement an efficient constant 11 * multiply using shifts and adds. GCC can find a 9-step solution, but 12 * this 6-step solution was found by Yevgen Voronenko's implementation 15 * That software is really not designed for a single multiplier this large, 17 * 6-shift, 6-add sequences for computing x * 0x61C88647. They are all 19 * a = (x << 9) + c; 20 * b = (x << 23) + a; 21 * return (a<<11) + (b<<6) + (c<<3) - b; [all …]
|
/linux/arch/sparc/kernel/ |
H A D | una_asm_64.S | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 wr %o3, 0, %asi 31 9: stba %g1, [%o0 + 5] %asi 33 ba,pt %xcc, 0f 40 ba,pt %xcc, 0f 45 0: 46 wr %o4, 0x0, %asi 48 mov 0, %o0 49 .size __do_int_store, .-__do_int_store 51 .section __ex_table,"a" [all …]
|