Lines Matching refs:spuh
37 struct SPUHEADER *spuh = (struct SPUHEADER *)buf; in spum_dump_msg_hdr() local
59 if (spuh->mh.flags & MH_SCTX_PRES) in spum_dump_msg_hdr()
61 if (spuh->mh.flags & MH_BDESC_PRES) in spum_dump_msg_hdr()
63 if (spuh->mh.flags & MH_MFM_PRES) in spum_dump_msg_hdr()
65 if (spuh->mh.flags & MH_BD_PRES) in spum_dump_msg_hdr()
67 if (spuh->mh.flags & MH_HASH_PRES) in spum_dump_msg_hdr()
69 if (spuh->mh.flags & MH_SUPDT_PRES) in spum_dump_msg_hdr()
71 packet_log(" Opcode 0x%02x\n", spuh->mh.op_code); in spum_dump_msg_hdr()
73 ptr += sizeof(spuh->mh) + sizeof(spuh->emh); /* skip emh. unused */ in spum_dump_msg_hdr()
76 if (spuh->mh.flags & MH_SCTX_PRES) { in spum_dump_msg_hdr()
77 pflags = be32_to_cpu(spuh->sa.proto_flags); in spum_dump_msg_hdr()
82 cflags = be32_to_cpu(spuh->sa.cipher_flags); in spum_dump_msg_hdr()
102 ecf = be32_to_cpu(spuh->sa.ecf); in spum_dump_msg_hdr()
293 if (spuh->mh.flags & MH_BDESC_PRES) { in spum_dump_msg_hdr()
317 if (spuh->mh.flags & MH_BD_PRES) { in spum_dump_msg_hdr()
613 struct SPUHEADER *spuh; in spum_create_request() local
691 spuh = (struct SPUHEADER *)ptr; in spum_create_request()
695 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC; in spum_create_request()
696 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES); in spum_create_request()
799 spuh->sa.proto_flags = cpu_to_be32(protocol_bits); in spum_create_request()
800 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits); in spum_create_request()
801 spuh->sa.ecf = cpu_to_be32(ecf_bits); in spum_create_request()
854 struct SPUHEADER *spuh; in spum_cipher_req_init() local
874 spuh = (struct SPUHEADER *)spu_hdr; in spum_cipher_req_init()
876 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC; in spum_cipher_req_init()
877 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES); in spum_cipher_req_init()
908 memcpy(spuh + 1, cipher_parms->key_buf, cipher_parms->key_len); in spum_cipher_req_init()
914 spuh->sa.proto_flags = cpu_to_be32(protocol_bits); in spum_cipher_req_init()
917 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits); in spum_cipher_req_init()
918 spuh->sa.ecf = cpu_to_be32(ecf_bits); in spum_cipher_req_init()
953 struct SPUHEADER *spuh; in spum_cipher_req_finish() local
987 spuh = (struct SPUHEADER *)spu_hdr; in spum_cipher_req_finish()
990 cipher_bits = be32_to_cpu(spuh->sa.cipher_flags); in spum_cipher_req_finish()
1000 spuh->sa.cipher_flags |= in spum_cipher_req_finish()
1002 memcpy(spuh + 1, cipher_parms->key_buf, cipher_parms->key_len); in spum_cipher_req_finish()
1010 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits); in spum_cipher_req_finish()