Lines Matching refs:mp

818 static void fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp)  in fill_in_one_cache()  argument
820 const u64 *level = mdesc_get_property(hp, mp, "level", NULL); in fill_in_one_cache()
821 const u64 *size = mdesc_get_property(hp, mp, "size", NULL); in fill_in_one_cache()
822 const u64 *line_size = mdesc_get_property(hp, mp, "line-size", NULL); in fill_in_one_cache()
826 type = mdesc_get_property(hp, mp, "type", &type_len); in fill_in_one_cache()
851 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in fill_in_one_cache()
908 static void mark_core_ids(struct mdesc_handle *hp, u64 mp, in mark_core_ids() argument
911 find_back_node_value(hp, mp, "cpu", __mark_core_id, core_id, 10); in mark_core_ids()
914 static void mark_max_cache_ids(struct mdesc_handle *hp, u64 mp, in mark_max_cache_ids() argument
917 find_back_node_value(hp, mp, "cpu", __mark_max_cache_id, in mark_max_cache_ids()
924 u64 mp; in set_core_ids() local
931 mdesc_for_each_node_by_name(hp, mp, "cache") { in set_core_ids()
936 level = mdesc_get_property(hp, mp, "level", NULL); in set_core_ids()
940 type = mdesc_get_property(hp, mp, "type", &len); in set_core_ids()
944 mark_core_ids(hp, mp, idx); in set_core_ids()
951 u64 mp; in set_max_cache_ids_by_cache() local
959 mdesc_for_each_node_by_name(hp, mp, "cache") { in set_max_cache_ids_by_cache()
962 cur_lvl = mdesc_get_property(hp, mp, "level", NULL); in set_max_cache_ids_by_cache()
965 mark_max_cache_ids(hp, mp, idx); in set_max_cache_ids_by_cache()
972 static void set_sock_ids_by_socket(struct mdesc_handle *hp, u64 mp) in set_sock_ids_by_socket() argument
976 mdesc_for_each_node_by_name(hp, mp, "socket") { in set_sock_ids_by_socket()
979 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in set_sock_ids_by_socket()
998 u64 mp; in set_sock_ids() local
1008 mp = mdesc_node_by_name(hp, MDESC_NODE_NULL, "sockets"); in set_sock_ids()
1009 if (mp != MDESC_NODE_NULL) in set_sock_ids()
1010 set_sock_ids_by_socket(hp, mp); in set_sock_ids()
1013 static void mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id) in mark_proc_ids() argument
1017 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_BACK) { in mark_proc_ids()
1035 u64 mp; in __set_proc_ids() local
1038 mdesc_for_each_node_by_name(hp, mp, exec_unit_name) { in __set_proc_ids()
1042 type = mdesc_get_property(hp, mp, "type", &len); in __set_proc_ids()
1047 mark_proc_ids(hp, mp, idx); in __set_proc_ids()
1080 static void get_mondo_data(struct mdesc_handle *hp, u64 mp, in get_mondo_data() argument
1086 val = mdesc_get_property(hp, mp, "q-cpu-mondo-#bits", NULL); in get_mondo_data()
1089 val = mdesc_get_property(hp, mp, "q-dev-mondo-#bits", NULL); in get_mondo_data()
1092 val = mdesc_get_property(hp, mp, "q-resumable-#bits", NULL); in get_mondo_data()
1095 val = mdesc_get_property(hp, mp, "q-nonresumable-#bits", NULL); in get_mondo_data()
1111 u64 mp; in mdesc_iterate_over_cpus() local
1113 mdesc_for_each_node_by_name(hp, mp, "cpu") { in mdesc_iterate_over_cpus()
1114 const u64 *id = mdesc_get_property(hp, mp, "id", NULL); in mdesc_iterate_over_cpus()
1128 ret = func(hp, mp, cpuid, arg); in mdesc_iterate_over_cpus()
1137 static void *record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in record_one_cpu() argument
1156 static void * __init check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) in check_one_pgsz() argument
1158 const u64 *pgsz_prop = mdesc_get_property(hp, mp, "mmu-page-size-list", NULL); in check_one_pgsz()
1180 static void *fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in fill_in_one_cpu() argument
1183 const u64 *cfreq = mdesc_get_property(hp, mp, "clock-frequency", NULL); in fill_in_one_cpu()
1202 get_mondo_data(hp, mp, tb); in fill_in_one_cpu()
1204 mdesc_for_each_arc(a, hp, mp, MDESC_ARC_TYPE_FWD) { in fill_in_one_cpu()