Lines Matching defs:spuh
23 struct SPUHEADER *spuh = (struct SPUHEADER *)buf;
45 if (spuh->mh.flags & MH_SCTX_PRES)
47 if (spuh->mh.flags & MH_BDESC_PRES)
49 if (spuh->mh.flags & MH_MFM_PRES)
51 if (spuh->mh.flags & MH_BD_PRES)
53 if (spuh->mh.flags & MH_HASH_PRES)
55 if (spuh->mh.flags & MH_SUPDT_PRES)
57 packet_log(" Opcode 0x%02x\n", spuh->mh.op_code);
59 ptr += sizeof(spuh->mh) + sizeof(spuh->emh); /* skip emh. unused */
62 if (spuh->mh.flags & MH_SCTX_PRES) {
63 pflags = be32_to_cpu(spuh->sa.proto_flags);
68 cflags = be32_to_cpu(spuh->sa.cipher_flags);
88 ecf = be32_to_cpu(spuh->sa.ecf);
275 if (spuh->mh.flags & MH_BDESC_PRES) {
299 if (spuh->mh.flags & MH_BD_PRES) {
595 struct SPUHEADER *spuh;
673 spuh = (struct SPUHEADER *)ptr;
677 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC;
678 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES);
781 spuh->sa.proto_flags = cpu_to_be32(protocol_bits);
782 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
783 spuh->sa.ecf = cpu_to_be32(ecf_bits);
836 struct SPUHEADER *spuh;
856 spuh = (struct SPUHEADER *)spu_hdr;
858 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC;
859 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES);
890 memcpy(spuh + 1, cipher_parms->key_buf, cipher_parms->key_len);
896 spuh->sa.proto_flags = cpu_to_be32(protocol_bits);
899 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
900 spuh->sa.ecf = cpu_to_be32(ecf_bits);
930 struct SPUHEADER *spuh;
959 spuh = (struct SPUHEADER *)spu_hdr;
962 cipher_bits = be32_to_cpu(spuh->sa.cipher_flags);
975 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);