• Home
  • Raw
  • Download

Lines Matching refs:mp

575 static void fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp)  in fill_in_one_cache()  argument
577 const u64 *level = mdesc_get_property(hp, mp, "level", NULL); in fill_in_one_cache()
578 const u64 *size = mdesc_get_property(hp, mp, "size", NULL); in fill_in_one_cache()
579 const u64 *line_size = mdesc_get_property(hp, mp, "line-size", NULL); in fill_in_one_cache()
583 type = mdesc_get_property(hp, mp, "type", &type_len); in fill_in_one_cache()
608 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in fill_in_one_cache()
658 static void mark_core_ids(struct mdesc_handle *hp, u64 mp, in mark_core_ids() argument
661 find_back_node_value(hp, mp, "cpu", __mark_core_id, core_id, 10); in mark_core_ids()
664 static void mark_sock_ids(struct mdesc_handle *hp, u64 mp, in mark_sock_ids() argument
667 find_back_node_value(hp, mp, "cpu", __mark_sock_id, sock_id, 10); in mark_sock_ids()
673 u64 mp; in set_core_ids() local
680 mdesc_for_each_node_by_name(hp, mp, "cache") { in set_core_ids()
685 level = mdesc_get_property(hp, mp, "level", NULL); in set_core_ids()
689 type = mdesc_get_property(hp, mp, "type", &len); in set_core_ids()
693 mark_core_ids(hp, mp, idx); in set_core_ids()
700 u64 mp; in set_sock_ids_by_cache() local
707 mdesc_for_each_node_by_name(hp, mp, "cache") { in set_sock_ids_by_cache()
710 cur_lvl = mdesc_get_property(hp, mp, "level", NULL); in set_sock_ids_by_cache()
714 mark_sock_ids(hp, mp, idx); in set_sock_ids_by_cache()
721 static void set_sock_ids_by_socket(struct mdesc_handle *hp, u64 mp) in set_sock_ids_by_socket() argument
725 mdesc_for_each_node_by_name(hp, mp, "socket") { in set_sock_ids_by_socket()
728 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in set_sock_ids_by_socket()
747 u64 mp; in set_sock_ids() local
752 mp = mdesc_node_by_name(hp, MDESC_NODE_NULL, "sockets"); in set_sock_ids()
753 if (mp != MDESC_NODE_NULL) in set_sock_ids()
754 return set_sock_ids_by_socket(hp, mp); in set_sock_ids()
760 static void mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id) in mark_proc_ids() argument
764 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_BACK) { in mark_proc_ids()
782 u64 mp; in __set_proc_ids() local
785 mdesc_for_each_node_by_name(hp, mp, exec_unit_name) { in __set_proc_ids()
789 type = mdesc_get_property(hp, mp, "type", &len); in __set_proc_ids()
794 mark_proc_ids(hp, mp, idx); in __set_proc_ids()
827 static void get_mondo_data(struct mdesc_handle *hp, u64 mp, in get_mondo_data() argument
833 val = mdesc_get_property(hp, mp, "q-cpu-mondo-#bits", NULL); in get_mondo_data()
836 val = mdesc_get_property(hp, mp, "q-dev-mondo-#bits", NULL); in get_mondo_data()
839 val = mdesc_get_property(hp, mp, "q-resumable-#bits", NULL); in get_mondo_data()
842 val = mdesc_get_property(hp, mp, "q-nonresumable-#bits", NULL); in get_mondo_data()
858 u64 mp; in mdesc_iterate_over_cpus() local
860 mdesc_for_each_node_by_name(hp, mp, "cpu") { in mdesc_iterate_over_cpus()
861 const u64 *id = mdesc_get_property(hp, mp, "id", NULL); in mdesc_iterate_over_cpus()
875 ret = func(hp, mp, cpuid, arg); in mdesc_iterate_over_cpus()
884 static void *record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in record_one_cpu() argument
903 static void * __init check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) in check_one_pgsz() argument
905 const u64 *pgsz_prop = mdesc_get_property(hp, mp, "mmu-page-size-list", NULL); in check_one_pgsz()
927 static void *fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in fill_in_one_cpu() argument
930 const u64 *cfreq = mdesc_get_property(hp, mp, "clock-frequency", NULL); in fill_in_one_cpu()
949 get_mondo_data(hp, mp, tb); in fill_in_one_cpu()
951 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in fill_in_one_cpu()