Lines Matching refs:mdesc_handle
67 struct mdesc_handle *(*alloc)(unsigned int mdesc_size);
68 void (*free)(struct mdesc_handle *handle);
71 struct mdesc_handle { struct
80 typedef int (*mdesc_node_info_get_f)(struct mdesc_handle *, u64, argument
92 static int get_vdev_port_node_info(struct mdesc_handle *md, u64 node,
98 static int get_ds_port_node_info(struct mdesc_handle *md, u64 node,
148 static void mdesc_handle_init(struct mdesc_handle *hp, in mdesc_handle_init()
161 static struct mdesc_handle * __init mdesc_memblock_alloc(unsigned int mdesc_size) in mdesc_memblock_alloc()
164 struct mdesc_handle *hp; in mdesc_memblock_alloc()
167 handle_size = (sizeof(struct mdesc_handle) - in mdesc_memblock_alloc()
182 static void __init mdesc_memblock_free(struct mdesc_handle *hp) in mdesc_memblock_free()
200 static struct mdesc_handle *mdesc_kmalloc(unsigned int mdesc_size) in mdesc_kmalloc()
203 struct mdesc_handle *hp; in mdesc_kmalloc()
207 handle_size = (sizeof(struct mdesc_handle) - in mdesc_kmalloc()
216 hp = (struct mdesc_handle *) addr; in mdesc_kmalloc()
223 static void mdesc_kfree(struct mdesc_handle *hp) in mdesc_kfree()
236 static struct mdesc_handle *mdesc_alloc(unsigned int mdesc_size, in mdesc_alloc()
239 struct mdesc_handle *hp = mops->alloc(mdesc_size); in mdesc_alloc()
247 static void mdesc_free(struct mdesc_handle *hp) in mdesc_free()
252 static struct mdesc_handle *cur_mdesc;
256 struct mdesc_handle *mdesc_grab(void) in mdesc_grab()
258 struct mdesc_handle *hp; in mdesc_grab()
271 void mdesc_release(struct mdesc_handle *hp) in mdesc_release()
318 static const u64 *parent_cfg_handle(struct mdesc_handle *hp, u64 node) in parent_cfg_handle()
337 static int get_vdev_port_node_info(struct mdesc_handle *md, u64 node, in get_vdev_port_node_info()
391 static int get_ds_port_node_info(struct mdesc_handle *md, u64 node, in get_ds_port_node_info()
421 struct mdesc_handle *a, in invoke_on_missing()
422 struct mdesc_handle *b, in invoke_on_missing()
423 void (*func)(struct mdesc_handle *, u64, in invoke_on_missing() argument
482 struct mdesc_handle *old_hp, in notify_one()
483 struct mdesc_handle *new_hp) in notify_one()
489 static void mdesc_notify_clients(struct mdesc_handle *old_hp, in mdesc_notify_clients()
490 struct mdesc_handle *new_hp) in mdesc_notify_clients()
503 struct mdesc_handle *hp, *orig_hp; in mdesc_update()
543 u64 mdesc_get_node(struct mdesc_handle *hp, const char *node_name, in mdesc_get_node()
583 int mdesc_get_node_info(struct mdesc_handle *hp, u64 node, in mdesc_get_node_info()
628 u64 mdesc_node_by_name(struct mdesc_handle *hp, in mdesc_node_by_name()
657 const void *mdesc_get_property(struct mdesc_handle *hp, u64 node, in mdesc_get_property()
703 u64 mdesc_next_arc(struct mdesc_handle *hp, u64 from, const char *arc_type) in mdesc_next_arc()
729 u64 mdesc_arc_target(struct mdesc_handle *hp, u64 arc) in mdesc_arc_target()
739 const char *mdesc_node_name(struct mdesc_handle *hp, u64 node) in mdesc_node_name()
760 struct mdesc_handle *hp = mdesc_grab(); in report_platform_properties()
817 static void fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp) in fill_in_one_cache()
860 static void find_back_node_value(struct mdesc_handle *hp, u64 node, in find_back_node_value()
862 void (*func)(struct mdesc_handle *, u64, int), in find_back_node_value() argument
882 static void __mark_core_id(struct mdesc_handle *hp, u64 node, in __mark_core_id()
891 static void __mark_max_cache_id(struct mdesc_handle *hp, u64 node, in __mark_max_cache_id()
907 static void mark_core_ids(struct mdesc_handle *hp, u64 mp, in mark_core_ids()
913 static void mark_max_cache_ids(struct mdesc_handle *hp, u64 mp, in mark_max_cache_ids()
920 static void set_core_ids(struct mdesc_handle *hp) in set_core_ids()
948 static int set_max_cache_ids_by_cache(struct mdesc_handle *hp, int level) in set_max_cache_ids_by_cache()
971 static void set_sock_ids_by_socket(struct mdesc_handle *hp, u64 mp) in set_sock_ids_by_socket()
995 static void set_sock_ids(struct mdesc_handle *hp) in set_sock_ids()
1012 static void mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id) in mark_proc_ids()
1031 static void __set_proc_ids(struct mdesc_handle *hp, const char *exec_unit_name) in __set_proc_ids()
1051 static void set_proc_ids(struct mdesc_handle *hp) in set_proc_ids()
1079 static void get_mondo_data(struct mdesc_handle *hp, u64 mp, in get_mondo_data()
1106 static void *mdesc_iterate_over_cpus(void *(*func)(struct mdesc_handle *, u64, int, void *), void *… in mdesc_iterate_over_cpus() argument
1108 struct mdesc_handle *hp = mdesc_grab(); in mdesc_iterate_over_cpus()
1136 static void *record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in record_one_cpu()
1155 static void * __init check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) in check_one_pgsz()
1179 static void *fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in fill_in_one_cpu()
1231 struct mdesc_handle *hp; in mdesc_fill_in_cpu_data()
1253 struct mdesc_handle *hp = mdesc_grab(); in mdesc_open()
1266 struct mdesc_handle *hp = file->private_data; in mdesc_read()
1289 struct mdesc_handle *hp = file->private_data; in mdesc_llseek()
1326 struct mdesc_handle *hp; in sun4v_mdesc_init()