Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
a163900d
Commit
a163900d
authored
Mar 07, 2003
by
James Morris
Committed by
David S. Miller
Mar 07, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CRYPTO]: Move km_types out of header.
parent
0640fae6
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
crypto/cipher.c
crypto/cipher.c
+7
-0
crypto/internal.h
crypto/internal.h
+2
-8
No files found.
crypto/cipher.c
View file @
a163900d
...
...
@@ -34,6 +34,13 @@ struct scatter_walk {
unsigned
int
offset
;
};
enum
km_type
crypto_km_types
[]
=
{
KM_USER0
,
KM_USER1
,
KM_SOFTIRQ0
,
KM_SOFTIRQ1
,
};
static
inline
void
xor_64
(
u8
*
a
,
const
u8
*
b
)
{
((
u32
*
)
a
)[
0
]
^=
((
u32
*
)
b
)[
0
];
...
...
crypto/internal.h
View file @
a163900d
...
...
@@ -18,19 +18,13 @@
#include <asm/softirq.h>
#include <asm/kmap_types.h>
static
enum
km_type
km_types
[]
=
{
KM_USER0
,
KM_USER1
,
KM_SOFTIRQ0
,
KM_SOFTIRQ1
,
};
extern
enum
km_type
crypto_km_types
[];
static
inline
enum
km_type
crypto_kmap_type
(
int
out
)
{
return
km_types
[(
in_softirq
()
?
2
:
0
)
+
out
];
return
crypto_
km_types
[(
in_softirq
()
?
2
:
0
)
+
out
];
}
static
inline
void
*
crypto_kmap
(
struct
page
*
page
,
int
out
)
{
return
kmap_atomic
(
page
,
crypto_kmap_type
(
out
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment