| /linux/lib/crypto/ |
| H A D | chacha-block-generic.c | 25 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 16); in chacha_permute() 26 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 16); in chacha_permute() 27 x[2] += x[6]; x[14] = rol32(x[14] ^ x[2], 16); in chacha_permute() 28 x[3] += x[7]; x[15] = rol32(x[15] ^ x[3], 16); in chacha_permute() 30 x[8] += x[12]; x[4] = rol32(x[4] ^ x[8], 12); in chacha_permute() 31 x[9] += x[13]; x[5] = rol32(x[5] ^ x[9], 12); in chacha_permute() 32 x[10] += x[14]; x[6] = rol32(x[6] ^ x[10], 12); in chacha_permute() 33 x[11] += x[15]; x[7] = rol32(x[7] ^ x[11], 12); in chacha_permute() 35 x[0] += x[4]; x[12] = rol32(x[12] ^ x[0], 8); in chacha_permute() 36 x[1] += x[5]; x[13] = rol32(x[13] ^ x[1], 8); in chacha_permute() [all …]
|
| H A D | des.c | 24 #define ROL(x, r) ((x) = rol32((x), (r)))
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | test_jhash.h | 7 static __always_inline u32 rol32(u32 word, unsigned int shift) in rol32() function 14 a -= c; a ^= rol32(c, 4); c += b; \ 15 b -= a; b ^= rol32(a, 6); a += c; \ 16 c -= b; c ^= rol32(b, 8); b += a; \ 17 a -= c; a ^= rol32(c, 16); c += b; \ 18 b -= a; b ^= rol32(a, 19); a += c; \ 19 c -= b; c ^= rol32(b, 4); b += a; \ 24 c ^= b; c -= rol32(b, 14); \ 25 a ^= c; a -= rol32(c, 11); \ 26 b ^= a; b -= rol32(a, 25); \ [all …]
|
| H A D | test_l4lb_noinline.c | 20 static __always_inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function 30 a -= c; a ^= rol32(c, 4); c += b; \ 31 b -= a; b ^= rol32(a, 6); a += c; \ 32 c -= b; c ^= rol32(b, 8); b += a; \ 33 a -= c; a ^= rol32(c, 16); c += b; \ 34 b -= a; b ^= rol32(a, 19); a += c; \ 35 c -= b; c ^= rol32(b, 4); b += a; \ 40 c ^= b; c -= rol32(b, 14); \ 41 a ^= c; a -= rol32(c, 11); \ 42 b ^= a; b -= rol32(a, 25); \ [all …]
|
| H A D | test_l4lb.c | 24 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function 34 a -= c; a ^= rol32(c, 4); c += b; \ 35 b -= a; b ^= rol32(a, 6); a += c; \ 36 c -= b; c ^= rol32(b, 8); b += a; \ 37 a -= c; a ^= rol32(c, 16); c += b; \ 38 b -= a; b ^= rol32(a, 19); a += c; \ 39 c -= b; c ^= rol32(b, 4); b += a; \ 44 c ^= b; c -= rol32(b, 14); \ 45 a ^= c; a -= rol32(c, 11); \ 46 b ^= a; b -= rol32(a, 25); \ [all …]
|
| H A D | test_l4lb_noinline_dynptr.c | 22 static __always_inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function 32 a -= c; a ^= rol32(c, 4); c += b; \ 33 b -= a; b ^= rol32(a, 6); a += c; \ 34 c -= b; c ^= rol32(b, 8); b += a; \ 35 a -= c; a ^= rol32(c, 16); c += b; \ 36 b -= a; b ^= rol32(a, 19); a += c; \ 37 c -= b; c ^= rol32(b, 4); b += a; \ 42 c ^= b; c -= rol32(b, 14); \ 43 a ^= c; a -= rol32(c, 11); \ 44 b ^= a; b -= rol32(a, 25); \ [all …]
|
| H A D | test_xdp_noinline.c | 20 static __always_inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function 30 a -= c; a ^= rol32(c, 4); c += b; \ 31 b -= a; b ^= rol32(a, 6); a += c; \ 32 c -= b; c ^= rol32(b, 8); b += a; \ 33 a -= c; a ^= rol32(c, 16); c += b; \ 34 b -= a; b ^= rol32(a, 19); a += c; \ 35 c -= b; c ^= rol32(b, 4); b += a; \ 40 c ^= b; c -= rol32(b, 14); \ 41 a ^= c; a -= rol32(c, 11); \ 42 b ^= a; b -= rol32(a, 25); \ [all …]
|
| /linux/tools/include/linux/ |
| H A D | jhash.h | 37 a -= c; a ^= rol32(c, 4); c += b; \ 38 b -= a; b ^= rol32(a, 6); a += c; \ 39 c -= b; c ^= rol32(b, 8); b += a; \ 40 a -= c; a ^= rol32(c, 16); c += b; \ 41 b -= a; b ^= rol32(a, 19); a += c; \ 42 c -= b; c ^= rol32(b, 4); b += a; \ 48 c ^= b; c -= rol32(b, 14); \ 49 a ^= c; a -= rol32(c, 11); \ 50 b ^= a; b -= rol32(a, 25); \ 51 c ^= b; c -= rol32(b, 16); \ [all …]
|
| H A D | bitops.h | 83 * rol32 - rotate a 32-bit value left 87 static inline __u32 rol32(__u32 word, unsigned int shift) in rol32() function
|
| /linux/include/linux/ |
| H A D | jhash.h | 37 a -= c; a ^= rol32(c, 4); c += b; \ 38 b -= a; b ^= rol32(a, 6); a += c; \ 39 c -= b; c ^= rol32(b, 8); b += a; \ 40 a -= c; a ^= rol32(c, 16); c += b; \ 41 b -= a; b ^= rol32(a, 19); a += c; \ 42 c -= b; c ^= rol32(b, 4); b += a; \ 48 c ^= b; c -= rol32(b, 14); \ 49 a ^= c; a -= rol32(c, 11); \ 50 b ^= a; b -= rol32(a, 25); \ 51 c ^= b; c -= rol32(b, 16); \ [all …]
|
| H A D | siphash.h | 158 (a) += (b), (b) = rol32((b), 5), (b) ^= (a), (a) = rol32((a), 16), \ 159 (c) += (d), (d) = rol32((d), 8), (d) ^= (c), \ 160 (a) += (d), (d) = rol32((d), 7), (d) ^= (a), \ 161 (c) += (b), (b) = rol32((b), 13), (b) ^= (c), (c) = rol32((c), 16))
|
| /linux/crypto/ |
| H A D | sm4.c | 86 return x ^ rol32(x, 13) ^ rol32(x, 23); in sm4_key_lin_sub() 91 return x ^ rol32(x, 2) ^ rol32(x, 10) ^ rol32(x, 18) ^ rol32(x, 24); in sm4_enc_lin_sub()
|
| H A D | twofish_common.c | 538 y = rol32(y, 8); \ 540 ctx->a[(j) + 1] = rol32(y, 9) 551 y = rol32(y, 8); \ 553 ctx->a[(j) + 1] = rol32(y, 9) 564 y = rol32(y, 8); \ 566 ctx->a[(j) + 1] = rol32(y, 9)
|
| /linux/tools/testing/selftests/vDSO/ |
| H A D | vdso_test_chacha.c | 32 static uint32_t rol32(uint32_t word, unsigned int shift) in rol32() function 51 x[d] = rol32(x[d] ^ x[a], 16), \ in reference_chacha20_blocks() 53 x[b] = rol32(x[b] ^ x[c], 12), \ in reference_chacha20_blocks() 55 x[d] = rol32(x[d] ^ x[a], 8), \ in reference_chacha20_blocks() 57 x[b] = rol32(x[b] ^ x[c], 7)) in reference_chacha20_blocks()
|
| /linux/fs/netfs/ |
| H A D | fscache_main.c | 34 y ^= x, x = rol32(x, 7),\ 35 x += y, y = rol32(y,20),\
|
| /linux/arch/loongarch/include/asm/ |
| H A D | checksum.h | 33 return (__force __sum16)(~(tmp + rol32(tmp, 16)) >> 16); in csum_fold()
|
| /linux/drivers/platform/mellanox/ |
| H A D | mlxreg-io.c | 87 in_val = rol32(in_val, data->bit - 1) & data->mask; in mlxreg_io_get_reg() 102 *regval |= rol32(val, regsize * i * 8); in mlxreg_io_get_reg()
|
| /linux/arch/powerpc/mm/book3s32/ |
| H A D | mmu_context.c | 129 mtspr(SPRN_SDR1, rol32(__pa(next->pgd), 4) & 0xffff01ff); in switch_mmu_context()
|
| /linux/arch/x86/include/asm/ |
| H A D | efi.h | 349 return ror64(rol32(status, 1), 1); in __efi64_widen_efi_status()
|
| /linux/drivers/hwmon/ |
| H A D | mlxreg-fan.c | 150 if (BIT(rol32(channel, tacho->shift) / fan->tachos_per_drwr) & in mlxreg_fan_read()
|
| /linux/fs/xfs/libxfs/ |
| H A D | xfs_da_btree.c | 2294 (name[3] << 0) ^ rol32(hash, 7 * 4); in xfs_da_hashname() 2302 rol32(hash, 7 * 3); in xfs_da_hashname() 2304 return (name[0] << 7) ^ (name[1] << 0) ^ rol32(hash, 7 * 2); in xfs_da_hashname() 2306 return (name[0] << 0) ^ rol32(hash, 7 * 1); in xfs_da_hashname()
|
| H A D | xfs_dir2.c | 79 hash = xfs_ascii_ci_xfrm(name->name[i]) ^ rol32(hash, 7); in xfs_ascii_ci_hashname()
|
| /linux/net/ipv6/ |
| H A D | seg6_iptunnel.c | 131 hash = rol32(hash, 16); in seg6_make_flowlabel()
|
| /linux/include/net/ |
| H A D | ipv6.h | 903 hash = rol32(hash, 16); in ip6_make_flowlabel()
|
| /linux/fs/ |
| H A D | namei.c | 2374 y ^= x, x = rol32(x, 7),\ 2375 x += y, y = rol32(y,20),\
|