Home
last modified time | relevance | path

Searched +full:carry +full:- +full:less (Results 1 – 25 of 218) sorted by relevance

123456789

/openbmc/qemu/include/crypto/
H A Dclmul.h2 * Carry-less multiply operations.
3 * SPDX-License-Identifier: GPL-2.0-or-later
17 * Perform eight 8x8->8 carry-less multiplies.
24 * Perform four 8x8->16 carry-less multiplies.
32 * Perform four 8x8->16 carry-less multiplies.
40 * Perform four 8x8->16 carry-less multiplies.
47 * Perform two 16x16->32 carry-less multiplies.
55 * Perform two 16x16->32 carry-less multiplies.
63 * Perform a 32x32->64 carry-less multiply.
70 * Perform a 64x64->128 carry-less multiply.
/openbmc/linux/arch/alpha/lib/
H A Dcsum_partial_copy.c1 // SPDX-License-Identifier: GPL-2.0
3 * csum_partial_copy - do IP checksumming and copy
7 * Rick Gorton <rick.gorton@alpha-processor.com>
9 * Don't look at this too closely - you'll go mad. The things
88 unsigned long carry = 0; in csum_partial_cfu_aligned() local
94 checksum += carry; in csum_partial_cfu_aligned()
97 len -= 8; in csum_partial_cfu_aligned()
98 carry = checksum < word; in csum_partial_cfu_aligned()
103 checksum += carry; in csum_partial_cfu_aligned()
112 carry = checksum < word; in csum_partial_cfu_aligned()
[all …]
H A Dchecksum.c1 // SPDX-License-Identifier: GPL-2.0
6 * in an architecture-specific manner due to speed..
10 * Rick Gorton <rick.gorton@alpha-processor.com>
42 * computes the checksum of the TCP/UDP pseudo-header
43 * returns a 16-bit checksum, already complemented.
62 /* Fold down to 32-bits so we don't lose in the typedef-less in csum_tcpudp_nofold()
73 * Do a 64-bit checksum on an arbitrary memory area..
77 * ways to do the carry, but this is reasonable.
89 len--; in do_csum()
92 count = len >> 1; /* nr of 16-bit words.. */ in do_csum()
[all …]
/openbmc/linux/arch/x86/crypto/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
14 - ADX (large integer arithmetic)
17 tristate "Ciphers: AES, modes: ECB, CBC, CTS, CTR, XTR, XTS, GCM (AES-NI)"
27 Length-preserving ciphers: AES with ECB, CBC, CTS, CTR, XTR, XTS
29 Architecture: x86 (32-bit and 64-bit) using:
30 - AES-NI (AES new instructions)
40 Length-preserving ciphers: Blowfish with ECB and CBC modes
51 Length-preserving ciphers: Camellia with ECB and CBC modes
56 tristate "Ciphers: Camellia with modes: ECB, CBC (AES-NI/AVX)"
63 Length-preserving ciphers: Camellia with ECB and CBC modes
[all …]
H A Dghash-clmulni-intel_asm.S1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * Accelerated GHASH implementation with Intel PCLMULQDQ-NI
7 …* https://www.intel.com/content/dam/develop/external/us/en/documents/clmul-wp-rev-2-02-2014-04-20.…
64 # carry-less multiplication
H A Dcurve25519-x86_64.c1 // SPDX-License-Identifier: GPL-2.0 OR MIT
4 * Copyright (c) 2016-2020 INRIA, CMU and Microsoft Corporation
25 return xnx - (u64)1U; in eq_mask()
33 u64 x_sub_y = x - y; in gte_mask()
38 return x_xor_q_ - (u64)1U; in gte_mask()
41 /* Computes the addition of four-element f1 with value in f2
42 * and returns the carry (if any) */
48 /* Clear registers to propagate the carry bit */ in add_scalar()
65 /* Return the carry bit in a register */ in add_scalar()
90 /* Step 1: Compute carry*38 */ in fadd()
[all …]
/openbmc/linux/lib/crypto/mpi/
H A Dmpi-inline.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /* mpi-inline.h - Internal to the Multi Precision Integers
32 if (s2_limb < x) { /* sum is less than the left operand: handle carry */ in mpihelp_add_1()
33 while (--s1_size) { in mpihelp_add_1()
34 x = *s1_ptr++ + 1; /* add carry */ in mpihelp_add_1()
39 return 1; /* return carry (size of s1 to small) */ in mpihelp_add_1()
45 for (i = 0; i < s1_size - 1; i++) in mpihelp_add_1()
48 return 0; /* no carry */ in mpihelp_add_1()
60 if (s1_size - s2_size) in mpihelp_add()
62 s1_size - s2_size, cy); in mpihelp_add()
[all …]
H A Dmpih-div.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* mpihelp-div.c - MPI helper functions
17 #include "mpi-internal.h"
41 * dividend is large, pre-invert the divisor, and use in mpihelp_mod_1()
49 && (UDIV_TIME - (2 * UMUL_TIME + 6)) * dividend_size > UDIV_TIME) { in mpihelp_mod_1()
58 /* Compute (2**2N - 2**N * DIVISOR_LIMB) / DIVISOR_LIMB. The in mpihelp_mod_1()
59 * result is a (N+1)-bit approximation to 1/DIVISOR_LIMB, with the in mpihelp_mod_1()
68 -divisor_limb, 0, divisor_limb); in mpihelp_mod_1()
70 n1 = dividend_ptr[dividend_size - 1]; in mpihelp_mod_1()
71 r = n1 >> (BITS_PER_MPI_LIMB - normalization_steps); in mpihelp_mod_1()
[all …]
/openbmc/qemu/host/include/generic/host/crypto/
H A Dclmul.h2 * No host specific carry-less multiply acceleration.
3 * SPDX-License-Identifier: GPL-2.0-or-later
/openbmc/linux/arch/hexagon/lib/
H A Dchecksum.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (c) 2010-2011, The Linux Foundation. All rights reserved.
22 #define CARRY(x, y) ((0x0002ULL*x)<<y) macro
27 #define VR_CARRY(a, b, c, d) (CARRY(a, 48) + CARRY(b, 32) + CARRY(c, 16) \
28 + CARRY(d, 0))
47 * computes the checksum of the TCP/UDP pseudo-header
48 * returns a 16-bit checksum, already complemented.
66 /* Fold down to 32-bits so we don't lose in the typedef-less in csum_tcpudp_nofold()
77 * Do a 64-bit checksum on an arbitrary memory area..
81 * ways to do the carry, but this is reasonable.
[all …]
/openbmc/linux/arch/ia64/lib/
H A Dchecksum.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 1999, 2003 Hewlett-Packard Co
11 * in an architecture-specific manner due to speed..
22 /* add up 32-bit words for 33 bits */ in from64to16()
24 /* add up 16-bit and 17-bit words for 17+c bits */ in from64to16()
26 /* add up 16-bit and 2-bit for 16+c bit */ in from64to16()
28 /* add up carry.. */ in from64to16()
34 * computes the checksum of the TCP/UDP pseudo-header
35 * returns a 16-bit checksum, already complemented.
57 /* Fold down to 32-bits so we don't lose in the typedef-less network stack. */ in csum_tcpudp_nofold()
[all …]
/openbmc/linux/arch/powerpc/lib/
H A Dchecksum_64.S1 /* SPDX-License-Identifier: GPL-2.0-or-later */
3 * This file contains assembly-language implementations
4 * of IP-style 1's complement checksum routines.
6 * Copyright (C) 1995-1996 Gary Thomas (gdt@linuxppc.org)
19 * and adds in "sum" (32-bit).
24 addic r0,r5,0 /* clear carry */
26 srdi. r6,r4,3 /* less than 8 bytes? */
35 rldicl. r6,r3,64-1,64-2 /* r6 = (r3 >> 1) & 0x3 */
62 stdu r1,-STACKFRAMESIZE(r1)
175 addze r0,r0 /* add in final carry */
[all …]
/openbmc/u-boot/arch/nios2/lib/
H A Dlonglong.h1 /* SPDX-License-Identifier: GPL-2.0+ */
2 /* longlong.h -- definitions for mixed size 32/64 bit arithmetic.
9 UWtype -- An unsigned type, default type for operations (typically a "word")
10 UHWtype -- An unsigned type, at least half the size of UWtype.
11 UDWtype -- An unsigned type, at least twice as large a UWtype
12 W_TYPE_SIZE -- size in bits of UWtype
14 UQItype -- Unsigned 8 bit type.
15 SItype, USItype -- Signed and unsigned 32 bit types.
16 DItype, UDItype -- Signed and unsigned 64 bit types.
23 #define __ll_lowpart(t) ((UWtype) (t) & (__ll_B - 1))
[all …]
/openbmc/linux/drivers/media/common/videobuf2/
H A Dframe_vector.c1 // SPDX-License-Identifier: GPL-2.0
14 * get_vaddr_frames() - map virtual addresses to pfns
29 * The function returns number of pages mapped which may be less than
35 * to be able to do that, but that could (racily) return non-refcounted
49 if (WARN_ON_ONCE(nr_frames > vec->nr_allocated)) in get_vaddr_frames()
50 nr_frames = vec->nr_allocated; in get_vaddr_frames()
58 (struct page **)(vec->ptrs)); in get_vaddr_frames()
59 vec->got_ref = true; in get_vaddr_frames()
60 vec->is_pfns = false; in get_vaddr_frames()
61 vec->nr_frames = ret; in get_vaddr_frames()
[all …]
/openbmc/qemu/crypto/
H A Dclmul.c2 * Carry-less multiply operations.
3 * SPDX-License-Identifier: GPL-2.0-or-later
100 /* Bit 0 can only influence the low 64-bit result. */ in clmul_64_gen()
106 uint64_t mask = -((n >> i) & 1); in clmul_64_gen()
108 rh ^= (m >> (64 - i)) & mask; in clmul_64_gen()
/openbmc/linux/arch/sparc/lib/
H A Dchecksum_32.S1 /* 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; \
50 addx %g0, %o2, %o2 ! add in final carry
57 addx %g0, %o2, %o2 ! add in final carry
60 addcc %o1, -1, %g0 ! only one byte remains?
74 addx %g0, %o2, %o0 ! add final carry into retval
79 bl cpte - 0x4
[all …]
/openbmc/linux/drivers/net/ethernet/netronome/nfp/nfdk/
H A Dnfdk.h1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) */
43 #define D_BLOCK_CPL(idx) (NFDK_TX_DESC_BLOCK_CNT - \
74 * due to alignment constraints. The driver can make use of those bits to carry
80 * - NFDK_TX_BUF_INFO_SOP - Start of a packet
85 #define NFDK_TX_BUF_PTR(val) ((val) & ~(sizeof(void *) - 1))
86 #define NFDK_TX_BUF_INFO(val) ((val) & (sizeof(void *) - 1))
113 /* First descriptor fits less data, so adjust for that */ in nfp_nfdk_headlen_to_segs()
115 NFDK_TX_MAX_DATA_PER_DESC - in nfp_nfdk_headlen_to_segs()
/openbmc/qemu/docs/about/
H A Dbuild-platforms.rst1 .. _Supported-build-platforms:
25 support for those backports, unless the feature is auto-detectable in a
33 ----------------------------
37 .. list-table::
38 :header-rows: 1
40 * - CPU Architecture
41 - Accelerators
42 * - Arm
43 - hvf (64 bit only), kvm (64 bit only), tcg, xen
44 * - MIPS (64 bit little endian only)
[all …]
/openbmc/linux/arch/m68k/fpsp040/
H A Dbindec.S12 | value in memory; d0 contains the k-factor sign-extended
13 | to 32-bits. The input may be either normalized,
18 | Saves and Modifies: D2-D7,A2,FP2
23 | The k-factor is saved for use in d7. Clear the
45 | k-factor can dictate either the total number of digits,
67 | A9. Scale X -> Y.
74 | compensated for by 'or-ing' in the INEX2 flag to
87 | or less than LEN -1 digits, adjust ILOG and repeat from
114 | d2: upper 32-bits of mantissa for binstr
115 | d3: scratch;lower 32-bits of mantissa for binstr
[all …]
/openbmc/linux/drivers/tty/serial/8250/
H A D8250_fsl.c1 // SPDX-License-Identifier: GPL-2.0
15 * We re-use the already existing "bug handling" lsr_saved_flags
16 * field to carry the "what we just did" information from the one
33 spin_lock_irqsave(&up->port.lock, flags); in fsl8250_handle_irq()
35 iir = port->serial_in(port, UART_IIR); in fsl8250_handle_irq()
37 spin_unlock_irqrestore(&up->port.lock, flags); in fsl8250_handle_irq()
46 * In practise it's less (around 500) because of hardware in fsl8250_handle_irq()
54 if (unlikely(up->lsr_saved_flags & UART_LSR_BI)) { in fsl8250_handle_irq()
55 up->lsr_saved_flags &= ~UART_LSR_BI; in fsl8250_handle_irq()
56 port->serial_in(port, UART_RX); in fsl8250_handle_irq()
[all …]
/openbmc/linux/net/ipv4/
H A Dtcp_rate.c1 // SPDX-License-Identifier: GPL-2.0-only
21 * send_rate = #pkts_delivered/(last_snd_time - first_snd_time)
22 * ack_rate = #pkts_delivered/(last_ack_time - first_ack_time)
28 * deliberately avoids using the inter-packet spacing approach because that
31 * TCP flows can often be application-limited in request/response workloads.
32 * The estimator marks a bandwidth sample as application-limited if there
46 * the full time the network needs to deliver all in-flight in tcp_rate_skb_sent()
53 * because the latter is a guess based on RTO and loss-marking in tcp_rate_skb_sent()
58 if (!tp->packets_out) { in tcp_rate_skb_sent()
61 tp->first_tx_mstamp = tstamp_us; in tcp_rate_skb_sent()
[all …]
/openbmc/linux/arch/arm64/crypto/
H A Daes-modes.S1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * linux/arch/arm64/crypto/aes-modes.S - chaining mode wrappers for AES
5 * Copyright (C) 2013 - 2017 Linaro Ltd <ard.biesheuvel@linaro.org>
8 /* included by aes-ce.S and aes-neon.S */
62 ld1 {v0.16b-v3.16b}, [x1], #64 /* get 4 pt blocks */
66 st1 {v0.16b-v3.16b}, [x0], #64
92 ld1 {v0.16b-v3.16b}, [x1], #64 /* get 4 ct blocks */
96 st1 {v0.16b-v3.16b}, [x0], #64
130 mov w8, #14 /* AES-256: 14 rounds */
143 ld1 {v0.16b-v3.16b}, [x1], #64 /* get 4 pt blocks */
[all …]
/openbmc/qemu/target/s390x/
H A Ds390x-internal.h7 * See the COPYING file in the top-level directory.
21 uint8_t pad1[0x80 - 0x18]; /* 0x018 */
37 uint8_t pad2[0xA8 - 0xA4]; /* 0x0a4 */
44 uint8_t pad3[0xc8 - 0xc4]; /* 0x0c4 */
46 uint8_t pad4[0xe8 - 0xcc]; /* 0x0cc */
48 uint8_t pad5[0xf4 - 0xf0]; /* 0x0f0 */
51 uint8_t pad6[0x110 - 0x100]; /* 0x100 */
53 uint8_t pad7[0x120 - 0x118]; /* 0x118 */
60 uint8_t pad8[0x1a0 - 0x180]; /* 0x180 */
67 uint8_t pad13[0x11b0 - 0x200]; /* 0x200 */
[all …]
/openbmc/linux/arch/powerpc/include/asm/
H A Dsfp-machine.h1 /* Machine-dependent software floating-point definitions. PPC version.
18 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 denominator, which also happens to be the hardware I have :->
37 #define __ll_lowpart(t) ((UWtype) (t) & (__ll_B - 1))
43 * in op-2.h] or a call to add_ssaaaa (see below).
57 * _FP_DIV_HELP_ldiv (see op-1.h).
63 * -- PMM
89 * a comma-separated set of 32bit unsigned ints that encode NaN.
91 #define _FP_NANFRAC_S ((_FP_QNANBIT_S << 1) - 1)
92 #define _FP_NANFRAC_D ((_FP_QNANBIT_D << 1) - 1), -1
[all …]
/openbmc/linux/arch/um/drivers/
H A DKconfig1 # SPDX-License-Identifier: GPL-2.0
14 The User-Mode Linux environment allows you to create virtual serial
18 See <http://user-mode-linux.sourceforge.net/old/input.html> for more
44 lines to host pseudo-terminals. Access to both traditional
45 pseudo-terminals (/dev/pty*) and pts pseudo-terminals are controlled
55 (/dev/tty*) and the slave side of pseudo-terminals (/dev/ttyp* and
107 traditional pseudo-terminals.
131 While the User-Mode port cannot directly talk to any physical
139 <http://user-mode-linux.sourceforge.net/old/networking.html>.
141 If you'd like to be able to enable networking in the User-Mode
[all …]

123456789