Lines Matching refs:mdesc_handle
62 struct mdesc_handle *(*alloc)(unsigned int mdesc_size);
63 void (*free)(struct mdesc_handle *handle);
66 struct mdesc_handle { struct
75 static void mdesc_handle_init(struct mdesc_handle *hp, in mdesc_handle_init() argument
88 static struct mdesc_handle * __init mdesc_lmb_alloc(unsigned int mdesc_size) in mdesc_lmb_alloc()
91 struct mdesc_handle *hp; in mdesc_lmb_alloc()
94 handle_size = (sizeof(struct mdesc_handle) - in mdesc_lmb_alloc()
109 static void mdesc_lmb_free(struct mdesc_handle *hp) in mdesc_lmb_free()
137 static struct mdesc_handle *mdesc_kmalloc(unsigned int mdesc_size) in mdesc_kmalloc()
142 handle_size = (sizeof(struct mdesc_handle) - in mdesc_kmalloc()
148 struct mdesc_handle *hp; in mdesc_kmalloc()
153 hp = (struct mdesc_handle *) addr; in mdesc_kmalloc()
162 static void mdesc_kfree(struct mdesc_handle *hp) in mdesc_kfree()
175 static struct mdesc_handle *mdesc_alloc(unsigned int mdesc_size, in mdesc_alloc()
178 struct mdesc_handle *hp = mops->alloc(mdesc_size); in mdesc_alloc()
186 static void mdesc_free(struct mdesc_handle *hp) in mdesc_free()
191 static struct mdesc_handle *cur_mdesc;
195 struct mdesc_handle *mdesc_grab(void) in mdesc_grab()
197 struct mdesc_handle *hp; in mdesc_grab()
210 void mdesc_release(struct mdesc_handle *hp) in mdesc_release()
240 static const u64 *parent_cfg_handle(struct mdesc_handle *hp, u64 node) in parent_cfg_handle()
261 struct mdesc_handle *a, in invoke_on_missing()
262 struct mdesc_handle *b, in invoke_on_missing()
263 void (*func)(struct mdesc_handle *, u64)) in invoke_on_missing() argument
316 struct mdesc_handle *old_hp, in notify_one()
317 struct mdesc_handle *new_hp) in notify_one()
323 static void mdesc_notify_clients(struct mdesc_handle *old_hp, in mdesc_notify_clients()
324 struct mdesc_handle *new_hp) in mdesc_notify_clients()
337 struct mdesc_handle *hp, *orig_hp; in mdesc_update()
392 u64 mdesc_node_by_name(struct mdesc_handle *hp, in mdesc_node_by_name()
421 const void *mdesc_get_property(struct mdesc_handle *hp, u64 node, in mdesc_get_property()
467 u64 mdesc_next_arc(struct mdesc_handle *hp, u64 from, const char *arc_type) in mdesc_next_arc()
493 u64 mdesc_arc_target(struct mdesc_handle *hp, u64 arc) in mdesc_arc_target()
503 const char *mdesc_node_name(struct mdesc_handle *hp, u64 node) in mdesc_node_name()
522 struct mdesc_handle *hp = mdesc_grab(); in report_platform_properties()
578 struct mdesc_handle *hp, in fill_in_one_cache()
622 static void __devinit mark_core_ids(struct mdesc_handle *hp, u64 mp, in mark_core_ids()
656 static void __devinit set_core_ids(struct mdesc_handle *hp) in set_core_ids()
681 static void __devinit mark_proc_ids(struct mdesc_handle *hp, u64 mp, in mark_proc_ids()
701 static void __devinit __set_proc_ids(struct mdesc_handle *hp, in __set_proc_ids()
723 static void __devinit set_proc_ids(struct mdesc_handle *hp) in set_proc_ids()
748 static void __devinit get_mondo_data(struct mdesc_handle *hp, u64 mp, in get_mondo_data()
768 struct mdesc_handle *hp = mdesc_grab(); in mdesc_fill_in_cpu_data()
852 struct mdesc_handle *hp = mdesc_grab(); in mdesc_read()
888 struct mdesc_handle *hp; in sun4v_mdesc_init()