• Home
  • Raw
  • Download

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()
279 if (spuh->mh.flags & MH_BDESC_PRES) { in spum_dump_msg_hdr()
303 if (spuh->mh.flags & MH_BD_PRES) { in spum_dump_msg_hdr()
599 struct SPUHEADER *spuh; in spum_create_request() local
677 spuh = (struct SPUHEADER *)ptr; in spum_create_request()
681 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC; in spum_create_request()
682 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES); in spum_create_request()
785 spuh->sa.proto_flags = cpu_to_be32(protocol_bits); in spum_create_request()
786 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits); in spum_create_request()
787 spuh->sa.ecf = cpu_to_be32(ecf_bits); in spum_create_request()
840 struct SPUHEADER *spuh; in spum_cipher_req_init() local
860 spuh = (struct SPUHEADER *)spu_hdr; in spum_cipher_req_init()
862 spuh->mh.op_code = SPU_CRYPTO_OPERATION_GENERIC; in spum_cipher_req_init()
863 spuh->mh.flags |= (MH_SCTX_PRES | MH_BDESC_PRES | MH_BD_PRES); in spum_cipher_req_init()
894 memcpy(spuh + 1, cipher_parms->key_buf, cipher_parms->key_len); in spum_cipher_req_init()
900 spuh->sa.proto_flags = cpu_to_be32(protocol_bits); in spum_cipher_req_init()
903 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits); in spum_cipher_req_init()
904 spuh->sa.ecf = cpu_to_be32(ecf_bits); in spum_cipher_req_init()
939 struct SPUHEADER *spuh; in spum_cipher_req_finish() local
973 spuh = (struct SPUHEADER *)spu_hdr; in spum_cipher_req_finish()
976 cipher_bits = be32_to_cpu(spuh->sa.cipher_flags); in spum_cipher_req_finish()
986 spuh->sa.cipher_flags |= in spum_cipher_req_finish()
988 memcpy(spuh + 1, cipher_parms->key_buf, cipher_parms->key_len); in spum_cipher_req_finish()
996 spuh->sa.cipher_flags = cpu_to_be32(cipher_bits); in spum_cipher_req_finish()