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) {
298 if (spuh->mh.flags & MH_BD_PRES) {
593 struct SPUHEADER *spuh;
671 spuh = (struct SPUHEADER *)ptr;
675 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC;
676 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES);
779 spuh->sa.proto_flags = cpu_to_be32(protocol_bits);
780 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
781 spuh->sa.ecf = cpu_to_be32(ecf_bits);
834 struct SPUHEADER *spuh;
854 spuh = (struct SPUHEADER *)spu_hdr;
856 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC;
857 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES);
888 memcpy(spuh + 1, cipher_parms->key_buf, cipher_parms->key_len);
894 spuh->sa.proto_flags = cpu_to_be32(protocol_bits);
897 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);
898 spuh->sa.ecf = cpu_to_be32(ecf_bits);
928 struct SPUHEADER *spuh;
957 spuh = (struct SPUHEADER *)spu_hdr;
960 cipher_bits = be32_to_cpu(spuh->sa.cipher_flags);
973 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits);