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