Lines Matching defs:cipher_bits
601 u32 cipher_bits = 0;
683 /* Format sctx word 1 (cipher_bits) */
685 cipher_bits |= CIPHER_INBOUND;
687 cipher_bits |= CIPHER_ORDER;
690 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
691 cipher_bits |= cipher_parms->mode << CIPHER_MODE_SHIFT;
692 cipher_bits |= cipher_parms->type << CIPHER_TYPE_SHIFT;
695 cipher_bits |= hash_parms->alg << HASH_ALG_SHIFT;
696 cipher_bits |= hash_parms->mode << HASH_MODE_SHIFT;
697 cipher_bits |= hash_parms->type << HASH_TYPE_SHIFT;
728 cipher_bits |= ICV_IS_512;
782 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
838 u32 cipher_bits = 0;
884 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
885 cipher_bits |= cipher_parms->mode << CIPHER_MODE_SHIFT;
886 cipher_bits |= cipher_parms->type << CIPHER_TYPE_SHIFT;
899 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
936 u32 cipher_bits;
961 /* cipher_bits was initialized at setkey time */
962 cipher_bits = be32_to_cpu(spuh->sa.cipher_flags);
964 /* Format sctx word 1 (cipher_bits) */
966 cipher_bits |= CIPHER_INBOUND;
968 cipher_bits &= ~CIPHER_INBOUND;
975 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);