Lines Matching defs:cipher_bits
599 u32 cipher_bits = 0;
681 /* Format sctx word 1 (cipher_bits) */
683 cipher_bits |= CIPHER_INBOUND;
685 cipher_bits |= CIPHER_ORDER;
688 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
689 cipher_bits |= cipher_parms->mode << CIPHER_MODE_SHIFT;
690 cipher_bits |= cipher_parms->type << CIPHER_TYPE_SHIFT;
693 cipher_bits |= hash_parms->alg << HASH_ALG_SHIFT;
694 cipher_bits |= hash_parms->mode << HASH_MODE_SHIFT;
695 cipher_bits |= hash_parms->type << HASH_TYPE_SHIFT;
726 cipher_bits |= ICV_IS_512;
780 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
836 u32 cipher_bits = 0;
882 cipher_bits |= cipher_parms->alg << CIPHER_ALG_SHIFT;
883 cipher_bits |= cipher_parms->mode << CIPHER_MODE_SHIFT;
884 cipher_bits |= cipher_parms->type << CIPHER_TYPE_SHIFT;
897 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
934 u32 cipher_bits;
959 /* cipher_bits was initialized at setkey time */
960 cipher_bits = be32_to_cpu(spuh->sa.cipher_flags);
962 /* Format sctx word 1 (cipher_bits) */
964 cipher_bits |= CIPHER_INBOUND;
966 cipher_bits &= ~CIPHER_INBOUND;
973 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);