Lines Matching refs:qcom_socinfo
166 struct qcom_socinfo { struct
486 qcom_socinfo->dbg_root, \
591 static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, in socinfo_debugfs_init() argument
601 qcom_socinfo->dbg_root = debugfs_create_dir("qcom_socinfo", NULL); in socinfo_debugfs_init()
603 qcom_socinfo->info.fmt = __le32_to_cpu(info->fmt); in socinfo_debugfs_init()
605 debugfs_create_x32("info_fmt", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
606 &qcom_socinfo->info.fmt); in socinfo_debugfs_init()
608 switch (qcom_socinfo->info.fmt) { in socinfo_debugfs_init()
610 qcom_socinfo->info.num_func_clusters = __le32_to_cpu(info->num_func_clusters); in socinfo_debugfs_init()
611 qcom_socinfo->info.boot_cluster = __le32_to_cpu(info->boot_cluster); in socinfo_debugfs_init()
612 qcom_socinfo->info.boot_core = __le32_to_cpu(info->boot_core); in socinfo_debugfs_init()
614 debugfs_create_u32("num_func_clusters", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
615 &qcom_socinfo->info.num_func_clusters); in socinfo_debugfs_init()
616 debugfs_create_u32("boot_cluster", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
617 &qcom_socinfo->info.boot_cluster); in socinfo_debugfs_init()
618 debugfs_create_u32("boot_core", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
619 &qcom_socinfo->info.boot_core); in socinfo_debugfs_init()
623 qcom_socinfo->info.oem_variant = __le32_to_cpu(info->oem_variant); in socinfo_debugfs_init()
624 debugfs_create_u32("oem_variant", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
625 &qcom_socinfo->info.oem_variant); in socinfo_debugfs_init()
628 qcom_socinfo->info.feature_code = __le32_to_cpu(info->feature_code); in socinfo_debugfs_init()
629 qcom_socinfo->info.pcode = __le32_to_cpu(info->pcode); in socinfo_debugfs_init()
631 debugfs_create_u32("feature_code", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
632 &qcom_socinfo->info.feature_code); in socinfo_debugfs_init()
633 debugfs_create_u32("pcode", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
634 &qcom_socinfo->info.pcode); in socinfo_debugfs_init()
637 qcom_socinfo->info.nmodem_supported = __le32_to_cpu(info->nmodem_supported); in socinfo_debugfs_init()
639 debugfs_create_u32("nmodem_supported", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
640 &qcom_socinfo->info.nmodem_supported); in socinfo_debugfs_init()
643 qcom_socinfo->info.num_clusters = __le32_to_cpu(info->num_clusters); in socinfo_debugfs_init()
644 qcom_socinfo->info.ncluster_array_offset = __le32_to_cpu(info->ncluster_array_offset); in socinfo_debugfs_init()
645 qcom_socinfo->info.num_subset_parts = __le32_to_cpu(info->num_subset_parts); in socinfo_debugfs_init()
646 qcom_socinfo->info.nsubset_parts_array_offset = in socinfo_debugfs_init()
649 debugfs_create_u32("num_clusters", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
650 &qcom_socinfo->info.num_clusters); in socinfo_debugfs_init()
651 debugfs_create_u32("ncluster_array_offset", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
652 &qcom_socinfo->info.ncluster_array_offset); in socinfo_debugfs_init()
653 debugfs_create_u32("num_subset_parts", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
654 &qcom_socinfo->info.num_subset_parts); in socinfo_debugfs_init()
655 debugfs_create_u32("nsubset_parts_array_offset", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
656 &qcom_socinfo->info.nsubset_parts_array_offset); in socinfo_debugfs_init()
659 qcom_socinfo->info.nproduct_id = __le32_to_cpu(info->nproduct_id); in socinfo_debugfs_init()
661 debugfs_create_u32("nproduct_id", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
662 &qcom_socinfo->info.nproduct_id); in socinfo_debugfs_init()
666 qcom_socinfo->info.chip_family = in socinfo_debugfs_init()
668 qcom_socinfo->info.raw_device_family = in socinfo_debugfs_init()
670 qcom_socinfo->info.raw_device_num = in socinfo_debugfs_init()
673 debugfs_create_x32("chip_family", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
674 &qcom_socinfo->info.chip_family); in socinfo_debugfs_init()
676 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
677 &qcom_socinfo->info.raw_device_family); in socinfo_debugfs_init()
679 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
680 &qcom_socinfo->info.raw_device_num); in socinfo_debugfs_init()
690 qcom_socinfo->info.foundry_id = __le32_to_cpu(info->foundry_id); in socinfo_debugfs_init()
692 debugfs_create_u32("foundry_id", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
693 &qcom_socinfo->info.foundry_id); in socinfo_debugfs_init()
701 qcom_socinfo->info.hw_plat_subtype = in socinfo_debugfs_init()
705 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
706 &qcom_socinfo->info.hw_plat_subtype); in socinfo_debugfs_init()
709 qcom_socinfo->info.accessory_chip = in socinfo_debugfs_init()
713 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
714 &qcom_socinfo->info.accessory_chip); in socinfo_debugfs_init()
717 qcom_socinfo->info.plat_ver = __le32_to_cpu(info->plat_ver); in socinfo_debugfs_init()
720 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
721 &qcom_socinfo->info.plat_ver); in socinfo_debugfs_init()
724 qcom_socinfo->info.hw_plat = __le32_to_cpu(info->hw_plat); in socinfo_debugfs_init()
727 qcom_socinfo->dbg_root, in socinfo_debugfs_init()
728 &qcom_socinfo->info.hw_plat); in socinfo_debugfs_init()
731 qcom_socinfo->info.raw_ver = __le32_to_cpu(info->raw_ver); in socinfo_debugfs_init()
733 debugfs_create_u32("raw_version", 0444, qcom_socinfo->dbg_root, in socinfo_debugfs_init()
734 &qcom_socinfo->info.raw_ver); in socinfo_debugfs_init()
749 qcom_socinfo->dbg_root); in socinfo_debugfs_init()
759 static void socinfo_debugfs_exit(struct qcom_socinfo *qcom_socinfo) in socinfo_debugfs_exit() argument
761 debugfs_remove_recursive(qcom_socinfo->dbg_root); in socinfo_debugfs_exit()
764 static void socinfo_debugfs_init(struct qcom_socinfo *qcom_socinfo, in socinfo_debugfs_init() argument
768 static void socinfo_debugfs_exit(struct qcom_socinfo *qcom_socinfo) { } in socinfo_debugfs_exit() argument
773 struct qcom_socinfo *qs; in qcom_socinfo_probe()
823 struct qcom_socinfo *qs = platform_get_drvdata(pdev); in qcom_socinfo_remove()