Lines Matching refs:mdesc_handle
68 struct mdesc_handle *(*alloc)(unsigned int mdesc_size);
69 void (*free)(struct mdesc_handle *handle);
72 struct mdesc_handle { struct
81 typedef int (*mdesc_node_info_get_f)(struct mdesc_handle *, u64, argument
93 static int get_vdev_port_node_info(struct mdesc_handle *md, u64 node,
99 static int get_ds_port_node_info(struct mdesc_handle *md, u64 node,
149 static void mdesc_handle_init(struct mdesc_handle *hp, in mdesc_handle_init()
162 static struct mdesc_handle * __init mdesc_memblock_alloc(unsigned int mdesc_size) in mdesc_memblock_alloc()
165 struct mdesc_handle *hp; in mdesc_memblock_alloc()
168 handle_size = (sizeof(struct mdesc_handle) - in mdesc_memblock_alloc()
183 static void __init mdesc_memblock_free(struct mdesc_handle *hp) in mdesc_memblock_free()
201 static struct mdesc_handle *mdesc_kmalloc(unsigned int mdesc_size) in mdesc_kmalloc()
204 struct mdesc_handle *hp; in mdesc_kmalloc()
208 handle_size = (sizeof(struct mdesc_handle) - in mdesc_kmalloc()
217 hp = (struct mdesc_handle *) addr; in mdesc_kmalloc()
224 static void mdesc_kfree(struct mdesc_handle *hp) in mdesc_kfree()
237 static struct mdesc_handle *mdesc_alloc(unsigned int mdesc_size, in mdesc_alloc()
240 struct mdesc_handle *hp = mops->alloc(mdesc_size); in mdesc_alloc()
248 static void mdesc_free(struct mdesc_handle *hp) in mdesc_free()
253 static struct mdesc_handle *cur_mdesc;
257 struct mdesc_handle *mdesc_grab(void) in mdesc_grab()
259 struct mdesc_handle *hp; in mdesc_grab()
272 void mdesc_release(struct mdesc_handle *hp) in mdesc_release()
319 static const u64 *parent_cfg_handle(struct mdesc_handle *hp, u64 node) in parent_cfg_handle()
338 static int get_vdev_port_node_info(struct mdesc_handle *md, u64 node, in get_vdev_port_node_info()
392 static int get_ds_port_node_info(struct mdesc_handle *md, u64 node, in get_ds_port_node_info()
422 struct mdesc_handle *a, in invoke_on_missing()
423 struct mdesc_handle *b, in invoke_on_missing()
424 void (*func)(struct mdesc_handle *, u64, in invoke_on_missing() argument
483 struct mdesc_handle *old_hp, in notify_one()
484 struct mdesc_handle *new_hp) in notify_one()
490 static void mdesc_notify_clients(struct mdesc_handle *old_hp, in mdesc_notify_clients()
491 struct mdesc_handle *new_hp) in mdesc_notify_clients()
504 struct mdesc_handle *hp, *orig_hp; in mdesc_update()
544 u64 mdesc_get_node(struct mdesc_handle *hp, const char *node_name, in mdesc_get_node()
584 int mdesc_get_node_info(struct mdesc_handle *hp, u64 node, in mdesc_get_node_info()
629 u64 mdesc_node_by_name(struct mdesc_handle *hp, in mdesc_node_by_name()
658 const void *mdesc_get_property(struct mdesc_handle *hp, u64 node, in mdesc_get_property()
704 u64 mdesc_next_arc(struct mdesc_handle *hp, u64 from, const char *arc_type) in mdesc_next_arc()
730 u64 mdesc_arc_target(struct mdesc_handle *hp, u64 arc) in mdesc_arc_target()
740 const char *mdesc_node_name(struct mdesc_handle *hp, u64 node) in mdesc_node_name()
761 struct mdesc_handle *hp = mdesc_grab(); in report_platform_properties()
818 static void fill_in_one_cache(cpuinfo_sparc *c, struct mdesc_handle *hp, u64 mp) in fill_in_one_cache()
861 static void find_back_node_value(struct mdesc_handle *hp, u64 node, in find_back_node_value()
863 void (*func)(struct mdesc_handle *, u64, int), in find_back_node_value() argument
883 static void __mark_core_id(struct mdesc_handle *hp, u64 node, in __mark_core_id()
892 static void __mark_max_cache_id(struct mdesc_handle *hp, u64 node, in __mark_max_cache_id()
908 static void mark_core_ids(struct mdesc_handle *hp, u64 mp, in mark_core_ids()
914 static void mark_max_cache_ids(struct mdesc_handle *hp, u64 mp, in mark_max_cache_ids()
921 static void set_core_ids(struct mdesc_handle *hp) in set_core_ids()
949 static int set_max_cache_ids_by_cache(struct mdesc_handle *hp, int level) 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()
996 static void set_sock_ids(struct mdesc_handle *hp) in set_sock_ids()
1013 static void mark_proc_ids(struct mdesc_handle *hp, u64 mp, int proc_id) in mark_proc_ids()
1032 static void __set_proc_ids(struct mdesc_handle *hp, const char *exec_unit_name) in __set_proc_ids()
1052 static void set_proc_ids(struct mdesc_handle *hp) in set_proc_ids()
1080 static void get_mondo_data(struct mdesc_handle *hp, u64 mp, in get_mondo_data()
1107 static void *mdesc_iterate_over_cpus(void *(*func)(struct mdesc_handle *, u64, int, void *), void *… in mdesc_iterate_over_cpus() argument
1109 struct mdesc_handle *hp = mdesc_grab(); in mdesc_iterate_over_cpus()
1137 static void *record_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in record_one_cpu()
1156 static void * __init check_one_pgsz(struct mdesc_handle *hp, u64 mp, int cpuid, void *arg) in check_one_pgsz()
1180 static void *fill_in_one_cpu(struct mdesc_handle *hp, u64 mp, int cpuid, in fill_in_one_cpu()
1232 struct mdesc_handle *hp; in mdesc_fill_in_cpu_data()
1254 struct mdesc_handle *hp = mdesc_grab(); in mdesc_open()
1267 struct mdesc_handle *hp = file->private_data; in mdesc_read()
1290 struct mdesc_handle *hp = file->private_data; in mdesc_llseek()
1327 struct mdesc_handle *hp; in sun4v_mdesc_init()