Lines Matching refs:mdesc_handle
65 struct mdesc_handle *(*alloc)(unsigned int mdesc_size);
66 void (*free)(struct mdesc_handle *handle);
69 struct mdesc_handle { struct
78 static void mdesc_handle_init(struct mdesc_handle *hp, in mdesc_handle_init() argument
91 static struct mdesc_handle * __init mdesc_memblock_alloc(unsigned int mdesc_size) in mdesc_memblock_alloc()
94 struct mdesc_handle *hp; in mdesc_memblock_alloc()
97 handle_size = (sizeof(struct mdesc_handle) - in mdesc_memblock_alloc()
112 static void __init mdesc_memblock_free(struct mdesc_handle *hp) in mdesc_memblock_free()
130 static struct mdesc_handle *mdesc_kmalloc(unsigned int mdesc_size) in mdesc_kmalloc()
133 struct mdesc_handle *hp; in mdesc_kmalloc()
137 handle_size = (sizeof(struct mdesc_handle) - in mdesc_kmalloc()
148 hp = (struct mdesc_handle *) addr; in mdesc_kmalloc()
155 static void mdesc_kfree(struct mdesc_handle *hp) in mdesc_kfree()
168 static struct mdesc_handle *mdesc_alloc(unsigned int mdesc_size, in mdesc_alloc()
171 struct mdesc_handle *hp = mops->alloc(mdesc_size); in mdesc_alloc()
179 static void mdesc_free(struct mdesc_handle *hp) in mdesc_free()
184 static struct mdesc_handle *cur_mdesc;
188 struct mdesc_handle *mdesc_grab(void) in mdesc_grab()
190 struct mdesc_handle *hp; in mdesc_grab()
203 void mdesc_release(struct mdesc_handle *hp) in mdesc_release()
233 static const u64 *parent_cfg_handle(struct mdesc_handle *hp, u64 node) in parent_cfg_handle()
254 struct mdesc_handle *a, in invoke_on_missing()
255 struct mdesc_handle *b, in invoke_on_missing()
256 void (*func)(struct mdesc_handle *, u64)) in invoke_on_missing() argument
309 struct mdesc_handle *old_hp, in notify_one()
310 struct mdesc_handle *new_hp) in notify_one()
316 static void mdesc_notify_clients(struct mdesc_handle *old_hp, in mdesc_notify_clients()
317 struct mdesc_handle *new_hp) in mdesc_notify_clients()
330 struct mdesc_handle *hp, *orig_hp; in mdesc_update()
385 u64 mdesc_node_by_name(struct mdesc_handle *hp, in mdesc_node_by_name()
414 const void *mdesc_get_property(struct mdesc_handle *hp, u64 node, in mdesc_get_property()
460 u64 mdesc_next_arc(struct mdesc_handle *hp, u64 from, const char *arc_type) in mdesc_next_arc()
486 u64 mdesc_arc_target(struct mdesc_handle *hp, u64 arc) in mdesc_arc_target()
496 const char *mdesc_node_name(struct mdesc_handle *hp, u64 node) in mdesc_node_name()
517 struct mdesc_handle *hp = mdesc_grab(); in report_platform_properties()
574 static void fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp) in fill_in_one_cache()
617 static void find_back_node_value(struct mdesc_handle *hp, u64 node, in find_back_node_value()
619 void (*func)(struct mdesc_handle *, u64, int), in find_back_node_value() argument
639 static void __mark_core_id(struct mdesc_handle *hp, u64 node, in __mark_core_id()
648 static void __mark_sock_id(struct mdesc_handle *hp, u64 node, in __mark_sock_id()
657 static void mark_core_ids(struct mdesc_handle *hp, u64 mp, in mark_core_ids()
663 static void mark_sock_ids(struct mdesc_handle *hp, u64 mp, in mark_sock_ids()
669 static void set_core_ids(struct mdesc_handle *hp) in set_core_ids()
697 static int set_sock_ids_by_cache(struct mdesc_handle *hp, int level) in set_sock_ids_by_cache()
720 static void set_sock_ids_by_socket(struct mdesc_handle *hp, u64 mp) in set_sock_ids_by_socket()
744 static void set_sock_ids(struct mdesc_handle *hp) in set_sock_ids()
759 static void mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id) in mark_proc_ids()
778 static void __set_proc_ids(struct mdesc_handle *hp, const char *exec_unit_name) in __set_proc_ids()
798 static void set_proc_ids(struct mdesc_handle *hp) in set_proc_ids()
826 static void get_mondo_data(struct mdesc_handle *hp, u64 mp, in get_mondo_data()
853 static void *mdesc_iterate_over_cpus(void *(*func)(struct mdesc_handle *, u64, int, void *), void *… in mdesc_iterate_over_cpus() argument
855 struct mdesc_handle *hp = mdesc_grab(); in mdesc_iterate_over_cpus()
883 static void *record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in record_one_cpu()
902 static void * __init check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) in check_one_pgsz()
926 static void *fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in fill_in_one_cpu()
978 struct mdesc_handle *hp; in mdesc_fill_in_cpu_data()
1000 struct mdesc_handle *hp = mdesc_grab(); in mdesc_open()
1013 struct mdesc_handle *hp = file->private_data; in mdesc_read()
1036 struct mdesc_handle *hp; in mdesc_llseek()
1089 struct mdesc_handle *hp; in sun4v_mdesc_init()