Lines Matching refs:ctrl0
308 static void spu2_dump_fmd_ctrl0(u64 ctrl0) in spu2_dump_fmd_ctrl0() argument
321 packet_log(" FMD CTRL0 %#16llx\n", ctrl0); in spu2_dump_fmd_ctrl0()
322 if (ctrl0 & SPU2_CIPH_ENCRYPT_EN) in spu2_dump_fmd_ctrl0()
327 ciph_type = (ctrl0 & SPU2_CIPH_TYPE) >> SPU2_CIPH_TYPE_SHIFT; in spu2_dump_fmd_ctrl0()
332 ciph_mode = (ctrl0 & SPU2_CIPH_MODE) >> SPU2_CIPH_MODE_SHIFT; in spu2_dump_fmd_ctrl0()
337 cfb = (ctrl0 & SPU2_CFB_MASK) >> SPU2_CFB_MASK_SHIFT; in spu2_dump_fmd_ctrl0()
340 proto = (ctrl0 & SPU2_PROTO_SEL) >> SPU2_PROTO_SEL_SHIFT; in spu2_dump_fmd_ctrl0()
343 if (ctrl0 & SPU2_HASH_FIRST) in spu2_dump_fmd_ctrl0()
348 if (ctrl0 & SPU2_CHK_TAG) in spu2_dump_fmd_ctrl0()
351 hash_type = (ctrl0 & SPU2_HASH_TYPE) >> SPU2_HASH_TYPE_SHIFT; in spu2_dump_fmd_ctrl0()
356 hash_mode = (ctrl0 & SPU2_HASH_MODE) >> SPU2_HASH_MODE_SHIFT; in spu2_dump_fmd_ctrl0()
361 if (ctrl0 & SPU2_CIPH_PAD_EN) { in spu2_dump_fmd_ctrl0()
363 (ctrl0 & SPU2_CIPH_PAD) >> SPU2_CIPH_PAD_SHIFT); in spu2_dump_fmd_ctrl0()
470 spu2_dump_fmd_ctrl0(le64_to_cpu(fmd->ctrl0)); in spu2_dump_fmd()
559 u64 ctrl0; in spu2_fmd_init() local
568 ctrl0 = (spu2_type << SPU2_CIPH_TYPE_SHIFT) | in spu2_fmd_init()
589 fmd->ctrl0 = cpu_to_le64(ctrl0); in spu2_fmd_init()
617 u64 ctrl0 = 0; in spu2_fmd_ctrl0_write() local
620 ctrl0 |= SPU2_CIPH_ENCRYPT_EN; in spu2_fmd_ctrl0_write()
622 ctrl0 |= ((u64)cipher_type << SPU2_CIPH_TYPE_SHIFT) | in spu2_fmd_ctrl0_write()
626 ctrl0 |= (u64)protocol << SPU2_PROTO_SEL_SHIFT; in spu2_fmd_ctrl0_write()
629 ctrl0 |= SPU2_HASH_FIRST; in spu2_fmd_ctrl0_write()
632 ctrl0 |= SPU2_CHK_TAG; in spu2_fmd_ctrl0_write()
634 ctrl0 |= (((u64)auth_type << SPU2_HASH_TYPE_SHIFT) | in spu2_fmd_ctrl0_write()
637 fmd->ctrl0 = cpu_to_le64(ctrl0); in spu2_fmd_ctrl0_write()
1190 u64 ctrl0; in spu2_cipher_req_finish() local
1208 ctrl0 = le64_to_cpu(fmd->ctrl0); in spu2_cipher_req_finish()
1210 ctrl0 &= ~SPU2_CIPH_ENCRYPT_EN; /* decrypt */ in spu2_cipher_req_finish()
1212 ctrl0 |= SPU2_CIPH_ENCRYPT_EN; /* encrypt */ in spu2_cipher_req_finish()
1213 fmd->ctrl0 = cpu_to_le64(ctrl0); in spu2_cipher_req_finish()