aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/mpi.h
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-11-23 03:04:05 -0500
commit92907cbbef8625bb3998d1eb385fc88f23c97a3f (patch)
tree15626ff9287e37c3cb81c7286d6db5a7fd77c854 /include/linux/mpi.h
parent15fbfccfe92c62ae8d1ecc647c44157ed01ac02e (diff)
parent1ec218373b8ebda821aec00bb156a9c94fad9cd4 (diff)
Merge tag 'v4.4-rc2' into drm-intel-next-queued
Linux 4.4-rc2 Backmerge to get at commit 1b0e3a049efe471c399674fd954500ce97438d30 Author: Imre Deak <imre.deak@intel.com> Date: Thu Nov 5 23:04:11 2015 +0200 drm/i915/skl: disable display side power well support for now so that we can proplery re-eanble skl power wells in -next. Conflicts are just adjacent lines changed, except for intel_fbdev.c where we need to interleave the changs. Nothing nefarious. Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'include/linux/mpi.h')
-rw-r--r--include/linux/mpi.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/include/linux/mpi.h b/include/linux/mpi.h
index 641b7d6fd096..3a5abe95affd 100644
--- a/include/linux/mpi.h
+++ b/include/linux/mpi.h
@@ -31,12 +31,7 @@
31#define G10_MPI_H 31#define G10_MPI_H
32 32
33#include <linux/types.h> 33#include <linux/types.h>
34 34#include <linux/scatterlist.h>
35/* DSI defines */
36
37#define SHA1_DIGEST_LENGTH 20
38
39/*end of DSI defines */
40 35
41#define BYTES_PER_MPI_LIMB (BITS_PER_LONG / 8) 36#define BYTES_PER_MPI_LIMB (BITS_PER_LONG / 8)
42#define BITS_PER_MPI_LIMB BITS_PER_LONG 37#define BITS_PER_MPI_LIMB BITS_PER_LONG
@@ -78,6 +73,7 @@ void mpi_swap(MPI a, MPI b);
78MPI do_encode_md(const void *sha_buffer, unsigned nbits); 73MPI do_encode_md(const void *sha_buffer, unsigned nbits);
79MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes); 74MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes);
80MPI mpi_read_from_buffer(const void *buffer, unsigned *ret_nread); 75MPI mpi_read_from_buffer(const void *buffer, unsigned *ret_nread);
76MPI mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int len);
81int mpi_fromstr(MPI val, const char *str); 77int mpi_fromstr(MPI val, const char *str);
82u32 mpi_get_keyid(MPI a, u32 *keyid); 78u32 mpi_get_keyid(MPI a, u32 *keyid);
83void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign); 79void *mpi_get_buffer(MPI a, unsigned *nbytes, int *sign);
@@ -85,6 +81,8 @@ int mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes,
85 int *sign); 81 int *sign);
86void *mpi_get_secure_buffer(MPI a, unsigned *nbytes, int *sign); 82void *mpi_get_secure_buffer(MPI a, unsigned *nbytes, int *sign);
87int mpi_set_buffer(MPI a, const void *buffer, unsigned nbytes, int sign); 83int mpi_set_buffer(MPI a, const void *buffer, unsigned nbytes, int sign);
84int mpi_write_to_sgl(MPI a, struct scatterlist *sg, unsigned *nbytes,
85 int *sign);
88 86
89#define log_mpidump g10_log_mpidump 87#define log_mpidump g10_log_mpidump
90 88