@@ -747,59 +747,38 @@ static int caam_probe(struct platform_device *pdev)
747
747
caam_dpaa2 ? "yes" : "no" );
748
748
749
749
#ifdef CONFIG_DEBUG_FS
750
-
751
- ctrlpriv -> ctl_rq_dequeued =
752
- debugfs_create_file ("rq_dequeued" ,
753
- S_IRUSR | S_IRGRP | S_IROTH ,
754
- ctrlpriv -> ctl , & perfmon -> req_dequeued ,
755
- & caam_fops_u64_ro );
756
- ctrlpriv -> ctl_ob_enc_req =
757
- debugfs_create_file ("ob_rq_encrypted" ,
758
- S_IRUSR | S_IRGRP | S_IROTH ,
759
- ctrlpriv -> ctl , & perfmon -> ob_enc_req ,
760
- & caam_fops_u64_ro );
761
- ctrlpriv -> ctl_ib_dec_req =
762
- debugfs_create_file ("ib_rq_decrypted" ,
763
- S_IRUSR | S_IRGRP | S_IROTH ,
764
- ctrlpriv -> ctl , & perfmon -> ib_dec_req ,
765
- & caam_fops_u64_ro );
766
- ctrlpriv -> ctl_ob_enc_bytes =
767
- debugfs_create_file ("ob_bytes_encrypted" ,
768
- S_IRUSR | S_IRGRP | S_IROTH ,
769
- ctrlpriv -> ctl , & perfmon -> ob_enc_bytes ,
770
- & caam_fops_u64_ro );
771
- ctrlpriv -> ctl_ob_prot_bytes =
772
- debugfs_create_file ("ob_bytes_protected" ,
773
- S_IRUSR | S_IRGRP | S_IROTH ,
774
- ctrlpriv -> ctl , & perfmon -> ob_prot_bytes ,
775
- & caam_fops_u64_ro );
776
- ctrlpriv -> ctl_ib_dec_bytes =
777
- debugfs_create_file ("ib_bytes_decrypted" ,
778
- S_IRUSR | S_IRGRP | S_IROTH ,
779
- ctrlpriv -> ctl , & perfmon -> ib_dec_bytes ,
780
- & caam_fops_u64_ro );
781
- ctrlpriv -> ctl_ib_valid_bytes =
782
- debugfs_create_file ("ib_bytes_validated" ,
783
- S_IRUSR | S_IRGRP | S_IROTH ,
784
- ctrlpriv -> ctl , & perfmon -> ib_valid_bytes ,
785
- & caam_fops_u64_ro );
750
+ debugfs_create_file ("rq_dequeued" , S_IRUSR | S_IRGRP | S_IROTH ,
751
+ ctrlpriv -> ctl , & perfmon -> req_dequeued ,
752
+ & caam_fops_u64_ro );
753
+ debugfs_create_file ("ob_rq_encrypted" , S_IRUSR | S_IRGRP | S_IROTH ,
754
+ ctrlpriv -> ctl , & perfmon -> ob_enc_req ,
755
+ & caam_fops_u64_ro );
756
+ debugfs_create_file ("ib_rq_decrypted" , S_IRUSR | S_IRGRP | S_IROTH ,
757
+ ctrlpriv -> ctl , & perfmon -> ib_dec_req ,
758
+ & caam_fops_u64_ro );
759
+ debugfs_create_file ("ob_bytes_encrypted" , S_IRUSR | S_IRGRP | S_IROTH ,
760
+ ctrlpriv -> ctl , & perfmon -> ob_enc_bytes ,
761
+ & caam_fops_u64_ro );
762
+ debugfs_create_file ("ob_bytes_protected" , S_IRUSR | S_IRGRP | S_IROTH ,
763
+ ctrlpriv -> ctl , & perfmon -> ob_prot_bytes ,
764
+ & caam_fops_u64_ro );
765
+ debugfs_create_file ("ib_bytes_decrypted" , S_IRUSR | S_IRGRP | S_IROTH ,
766
+ ctrlpriv -> ctl , & perfmon -> ib_dec_bytes ,
767
+ & caam_fops_u64_ro );
768
+ debugfs_create_file ("ib_bytes_validated" , S_IRUSR | S_IRGRP | S_IROTH ,
769
+ ctrlpriv -> ctl , & perfmon -> ib_valid_bytes ,
770
+ & caam_fops_u64_ro );
786
771
787
772
/* Controller level - global status values */
788
- ctrlpriv -> ctl_faultaddr =
789
- debugfs_create_file ("fault_addr" ,
790
- S_IRUSR | S_IRGRP | S_IROTH ,
791
- ctrlpriv -> ctl , & perfmon -> faultaddr ,
792
- & caam_fops_u32_ro );
793
- ctrlpriv -> ctl_faultdetail =
794
- debugfs_create_file ("fault_detail" ,
795
- S_IRUSR | S_IRGRP | S_IROTH ,
796
- ctrlpriv -> ctl , & perfmon -> faultdetail ,
797
- & caam_fops_u32_ro );
798
- ctrlpriv -> ctl_faultstatus =
799
- debugfs_create_file ("fault_status" ,
800
- S_IRUSR | S_IRGRP | S_IROTH ,
801
- ctrlpriv -> ctl , & perfmon -> status ,
802
- & caam_fops_u32_ro );
773
+ debugfs_create_file ("fault_addr" , S_IRUSR | S_IRGRP | S_IROTH ,
774
+ ctrlpriv -> ctl , & perfmon -> faultaddr ,
775
+ & caam_fops_u32_ro );
776
+ debugfs_create_file ("fault_detail" , S_IRUSR | S_IRGRP | S_IROTH ,
777
+ ctrlpriv -> ctl , & perfmon -> faultdetail ,
778
+ & caam_fops_u32_ro );
779
+ debugfs_create_file ("fault_status" , S_IRUSR | S_IRGRP | S_IROTH ,
780
+ ctrlpriv -> ctl , & perfmon -> status ,
781
+ & caam_fops_u32_ro );
803
782
804
783
/* Internal covering keys (useful in non-secure mode only) */
805
784
ctrlpriv -> ctl_kek_wrap .data = (__force void * )& ctrlpriv -> ctrl -> kek [0 ];
0 commit comments