Lines Matching +full:- +full:t
5 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
29 static int flags = -1; in mbedtls_padlock_has_support()
32 if (flags == -1) { in mbedtls_padlock_has_support()
33 asm ("movl %%ebx, %0 \n\t" in mbedtls_padlock_has_support()
34 "movl $0xC0000000, %%eax \n\t" in mbedtls_padlock_has_support()
35 "cpuid \n\t" in mbedtls_padlock_has_support()
36 "cmpl $0xC0000001, %%eax \n\t" in mbedtls_padlock_has_support()
37 "movl $0, %%edx \n\t" in mbedtls_padlock_has_support()
38 "jb 1f \n\t" in mbedtls_padlock_has_support()
39 "movl $0xC0000001, %%eax \n\t" in mbedtls_padlock_has_support()
40 "cpuid \n\t" in mbedtls_padlock_has_support()
41 "1: \n\t" in mbedtls_padlock_has_support()
42 "movl %%edx, %1 \n\t" in mbedtls_padlock_has_support()
43 "movl %2, %%ebx \n\t" in mbedtls_padlock_has_support()
55 * PadLock AES-ECB block en(de)cryption
68 rk = ctx->buf + ctx->rk_offset; in mbedtls_padlock_xcryptecb()
78 *ctrl = 0x80 | ctx->nr | ((ctx->nr + (mode^1) - 10) << 9); in mbedtls_padlock_xcryptecb()
80 asm ("pushfl \n\t" in mbedtls_padlock_xcryptecb()
81 "popfl \n\t" in mbedtls_padlock_xcryptecb()
82 "movl %%ebx, %0 \n\t" in mbedtls_padlock_xcryptecb()
83 "movl $1, %%ecx \n\t" in mbedtls_padlock_xcryptecb()
84 "movl %2, %%edx \n\t" in mbedtls_padlock_xcryptecb()
85 "movl %3, %%ebx \n\t" in mbedtls_padlock_xcryptecb()
86 "movl %4, %%esi \n\t" in mbedtls_padlock_xcryptecb()
87 "movl %4, %%edi \n\t" in mbedtls_padlock_xcryptecb()
88 ".byte 0xf3,0x0f,0xa7,0xc8 \n\t" in mbedtls_padlock_xcryptecb()
89 "movl %1, %%ebx \n\t" in mbedtls_padlock_xcryptecb()
101 * PadLock AES-CBC buffer en(de)cryption
117 rk = ctx->buf + ctx->rk_offset; in mbedtls_padlock_xcryptcbc()
129 *ctrl = 0x80 | ctx->nr | ((ctx->nr + (mode ^ 1) - 10) << 9); in mbedtls_padlock_xcryptcbc()
133 asm ("pushfl \n\t" in mbedtls_padlock_xcryptcbc()
134 "popfl \n\t" in mbedtls_padlock_xcryptcbc()
135 "movl %%ebx, %0 \n\t" in mbedtls_padlock_xcryptcbc()
136 "movl %2, %%ecx \n\t" in mbedtls_padlock_xcryptcbc()
137 "movl %3, %%edx \n\t" in mbedtls_padlock_xcryptcbc()
138 "movl %4, %%ebx \n\t" in mbedtls_padlock_xcryptcbc()
139 "movl %5, %%esi \n\t" in mbedtls_padlock_xcryptcbc()
140 "movl %6, %%edi \n\t" in mbedtls_padlock_xcryptcbc()
141 "movl %7, %%eax \n\t" in mbedtls_padlock_xcryptcbc()
142 ".byte 0xf3,0x0f,0xa7,0xd0 \n\t" in mbedtls_padlock_xcryptcbc()
143 "movl %1, %%ebx \n\t" in mbedtls_padlock_xcryptcbc()