Lines Matching refs:fmd
468 static void spu2_dump_fmd(struct SPU2_FMD *fmd) in spu2_dump_fmd() argument
470 spu2_dump_fmd_ctrl0(le64_to_cpu(fmd->ctrl0)); in spu2_dump_fmd()
471 spu2_dump_fmd_ctrl1(le64_to_cpu(fmd->ctrl1)); in spu2_dump_fmd()
472 spu2_dump_fmd_ctrl2(le64_to_cpu(fmd->ctrl2)); in spu2_dump_fmd()
473 spu2_dump_fmd_ctrl3(le64_to_cpu(fmd->ctrl3)); in spu2_dump_fmd()
510 struct SPU2_FMD *fmd = (struct SPU2_FMD *)buf; in spu2_dump_msg_hdr() local
522 spu2_dump_fmd(fmd); in spu2_dump_msg_hdr()
523 omd = (u8 *)(fmd + 1); in spu2_dump_msg_hdr()
525 ctrl1 = le64_to_cpu(fmd->ctrl1); in spu2_dump_msg_hdr()
553 static int spu2_fmd_init(struct SPU2_FMD *fmd, in spu2_fmd_init() argument
588 fmd->ctrl0 = cpu_to_le64(ctrl0); in spu2_fmd_init()
589 fmd->ctrl1 = cpu_to_le64(ctrl1); in spu2_fmd_init()
590 fmd->ctrl2 = cpu_to_le64(ctrl2); in spu2_fmd_init()
591 fmd->ctrl3 = cpu_to_le64(ctrl3); in spu2_fmd_init()
608 static void spu2_fmd_ctrl0_write(struct SPU2_FMD *fmd, in spu2_fmd_ctrl0_write() argument
636 fmd->ctrl0 = cpu_to_le64(ctrl0); in spu2_fmd_ctrl0_write()
659 static void spu2_fmd_ctrl1_write(struct SPU2_FMD *fmd, bool is_inbound, in spu2_fmd_ctrl1_write() argument
716 fmd->ctrl1 = cpu_to_le64(ctrl1); in spu2_fmd_ctrl1_write()
730 static void spu2_fmd_ctrl2_write(struct SPU2_FMD *fmd, u64 cipher_offset, in spu2_fmd_ctrl2_write() argument
750 fmd->ctrl2 = cpu_to_le64(ctrl2); in spu2_fmd_ctrl2_write()
758 static void spu2_fmd_ctrl3_write(struct SPU2_FMD *fmd, u64 payload_len) in spu2_fmd_ctrl3_write() argument
764 fmd->ctrl3 = cpu_to_le64(ctrl3); in spu2_fmd_ctrl3_write()
804 struct SPU2_FMD *fmd = (struct SPU2_FMD *)spu_hdr; in spu2_payload_length() local
808 ctrl3 = le64_to_cpu(fmd->ctrl3); in spu2_payload_length()
946 struct SPU2_FMD *fmd; in spu2_create_request() local
1065 fmd = (struct SPU2_FMD *)spu_hdr; in spu2_create_request()
1067 spu2_fmd_ctrl0_write(fmd, req_opts->is_inbound, req_opts->auth_first, in spu2_create_request()
1071 spu2_fmd_ctrl1_write(fmd, req_opts->is_inbound, assoc_size, in spu2_create_request()
1079 spu2_fmd_ctrl2_write(fmd, cipher_offset, hash_parms->key_len, 0, in spu2_create_request()
1082 spu2_fmd_ctrl3_write(fmd, payload_len); in spu2_create_request()
1084 ptr = (u8 *)(fmd + 1); in spu2_create_request()
1125 struct SPU2_FMD *fmd; in spu2_cipher_req_init() local
1149 fmd = (struct SPU2_FMD *)spu_hdr; in spu2_cipher_req_init()
1150 err = spu2_fmd_init(fmd, spu2_type, spu2_mode, cipher_parms->key_len, in spu2_cipher_req_init()
1156 omd = (u8 *)(fmd + 1); in spu2_cipher_req_init()
1185 struct SPU2_FMD *fmd; in spu2_cipher_req_finish() local
1198 fmd = (struct SPU2_FMD *)spu_hdr; in spu2_cipher_req_finish()
1199 omd = (u8 *)(fmd + 1); in spu2_cipher_req_finish()
1205 ctrl0 = le64_to_cpu(fmd->ctrl0); in spu2_cipher_req_finish()
1210 fmd->ctrl0 = cpu_to_le64(ctrl0); in spu2_cipher_req_finish()
1218 ctrl3 = le64_to_cpu(fmd->ctrl3); in spu2_cipher_req_finish()
1221 fmd->ctrl3 = cpu_to_le64(ctrl3); in spu2_cipher_req_finish()