Lines Matching refs:mdesc
75 struct mdesc_hdr mdesc; member
82 BUG_ON(((unsigned long)&hp->mdesc) & (16UL - 1)); in mdesc_handle_init()
343 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in mdesc_update()
370 static struct mdesc_elem *node_block(struct mdesc_hdr *mdesc) in node_block() argument
372 return (struct mdesc_elem *) (mdesc + 1); in node_block()
375 static void *name_block(struct mdesc_hdr *mdesc) in name_block() argument
377 return ((void *) node_block(mdesc)) + mdesc->node_sz; in name_block()
380 static void *data_block(struct mdesc_hdr *mdesc) in data_block() argument
382 return ((void *) name_block(mdesc)) + mdesc->name_sz; in data_block()
388 struct mdesc_elem *ep = node_block(&hp->mdesc); in mdesc_node_by_name()
389 const char *names = name_block(&hp->mdesc); in mdesc_node_by_name()
390 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_by_name()
417 const char *names = name_block(&hp->mdesc); in mdesc_get_property()
418 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_get_property()
419 void *data = data_block(&hp->mdesc); in mdesc_get_property()
425 ep = node_block(&hp->mdesc) + node; in mdesc_get_property()
462 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_next_arc()
463 const char *names = name_block(&hp->mdesc); in mdesc_next_arc()
464 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_next_arc()
488 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_arc_target()
498 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_node_name()
499 const char *names = name_block(&hp->mdesc); in mdesc_node_name()
500 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_name()
1014 unsigned char *mdesc; in mdesc_read() local
1024 mdesc = (unsigned char *)&hp->mdesc; in mdesc_read()
1025 mdesc += *offp; in mdesc_read()
1026 if (!copy_to_user(buf, mdesc, count)) { in mdesc_read()
1102 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in sun4v_mdesc_init()