Lines Matching refs:mdesc
77 struct mdesc_hdr mdesc; member
152 BUG_ON(((unsigned long)&hp->mdesc) & (16UL - 1)); in mdesc_handle_init()
516 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in mdesc_update()
613 static struct mdesc_elem *node_block(struct mdesc_hdr *mdesc) in node_block() argument
615 return (struct mdesc_elem *) (mdesc + 1); in node_block()
618 static void *name_block(struct mdesc_hdr *mdesc) in name_block() argument
620 return ((void *) node_block(mdesc)) + mdesc->node_sz; in name_block()
623 static void *data_block(struct mdesc_hdr *mdesc) in data_block() argument
625 return ((void *) name_block(mdesc)) + mdesc->name_sz; in data_block()
631 struct mdesc_elem *ep = node_block(&hp->mdesc); in mdesc_node_by_name()
632 const char *names = name_block(&hp->mdesc); in mdesc_node_by_name()
633 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_by_name()
660 const char *names = name_block(&hp->mdesc); in mdesc_get_property()
661 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_get_property()
662 void *data = data_block(&hp->mdesc); in mdesc_get_property()
668 ep = node_block(&hp->mdesc) + node; in mdesc_get_property()
705 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_next_arc()
706 const char *names = name_block(&hp->mdesc); in mdesc_next_arc()
707 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_next_arc()
731 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_arc_target()
741 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_node_name()
742 const char *names = name_block(&hp->mdesc); in mdesc_node_name()
743 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_name()
1267 unsigned char *mdesc; in mdesc_read() local
1277 mdesc = (unsigned char *)&hp->mdesc; in mdesc_read()
1278 mdesc += *offp; in mdesc_read()
1279 if (!copy_to_user(buf, mdesc, count)) { in mdesc_read()
1339 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in sun4v_mdesc_init()