diff options
Diffstat (limited to 'drivers/crypto/amcc/crypto4xx_alg.c')
-rw-r--r-- | drivers/crypto/amcc/crypto4xx_alg.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/drivers/crypto/amcc/crypto4xx_alg.c b/drivers/crypto/amcc/crypto4xx_alg.c index a33243c17b00..4afca3968773 100644 --- a/drivers/crypto/amcc/crypto4xx_alg.c +++ b/drivers/crypto/amcc/crypto4xx_alg.c | |||
@@ -32,10 +32,10 @@ | |||
32 | #include "crypto4xx_sa.h" | 32 | #include "crypto4xx_sa.h" |
33 | #include "crypto4xx_core.h" | 33 | #include "crypto4xx_core.h" |
34 | 34 | ||
35 | void set_dynamic_sa_command_0(struct dynamic_sa_ctl *sa, u32 save_h, | 35 | static void set_dynamic_sa_command_0(struct dynamic_sa_ctl *sa, u32 save_h, |
36 | u32 save_iv, u32 ld_h, u32 ld_iv, u32 hdr_proc, | 36 | u32 save_iv, u32 ld_h, u32 ld_iv, |
37 | u32 h, u32 c, u32 pad_type, u32 op_grp, u32 op, | 37 | u32 hdr_proc, u32 h, u32 c, u32 pad_type, |
38 | u32 dir) | 38 | u32 op_grp, u32 op, u32 dir) |
39 | { | 39 | { |
40 | sa->sa_command_0.w = 0; | 40 | sa->sa_command_0.w = 0; |
41 | sa->sa_command_0.bf.save_hash_state = save_h; | 41 | sa->sa_command_0.bf.save_hash_state = save_h; |
@@ -52,9 +52,10 @@ void set_dynamic_sa_command_0(struct dynamic_sa_ctl *sa, u32 save_h, | |||
52 | sa->sa_command_0.bf.dir = dir; | 52 | sa->sa_command_0.bf.dir = dir; |
53 | } | 53 | } |
54 | 54 | ||
55 | void set_dynamic_sa_command_1(struct dynamic_sa_ctl *sa, u32 cm, u32 hmac_mc, | 55 | static void set_dynamic_sa_command_1(struct dynamic_sa_ctl *sa, u32 cm, |
56 | u32 cfb, u32 esn, u32 sn_mask, u32 mute, | 56 | u32 hmac_mc, u32 cfb, u32 esn, |
57 | u32 cp_pad, u32 cp_pay, u32 cp_hdr) | 57 | u32 sn_mask, u32 mute, u32 cp_pad, |
58 | u32 cp_pay, u32 cp_hdr) | ||
58 | { | 59 | { |
59 | sa->sa_command_1.w = 0; | 60 | sa->sa_command_1.w = 0; |
60 | sa->sa_command_1.bf.crypto_mode31 = (cm & 4) >> 2; | 61 | sa->sa_command_1.bf.crypto_mode31 = (cm & 4) >> 2; |