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