Lines Matching refs:mdesc
78 struct mdesc_hdr mdesc; member
153 BUG_ON(((unsigned long)&hp->mdesc) & (16UL - 1)); in mdesc_handle_init()
515 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in mdesc_update()
612 static struct mdesc_elem *node_block(struct mdesc_hdr *mdesc) in node_block() argument
614 return (struct mdesc_elem *) (mdesc + 1); in node_block()
617 static void *name_block(struct mdesc_hdr *mdesc) in name_block() argument
619 return ((void *) node_block(mdesc)) + mdesc->node_sz; in name_block()
622 static void *data_block(struct mdesc_hdr *mdesc) in data_block() argument
624 return ((void *) name_block(mdesc)) + mdesc->name_sz; in data_block()
630 struct mdesc_elem *ep = node_block(&hp->mdesc); in mdesc_node_by_name()
631 const char *names = name_block(&hp->mdesc); in mdesc_node_by_name()
632 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_by_name()
659 const char *names = name_block(&hp->mdesc); in mdesc_get_property()
660 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_get_property()
661 void *data = data_block(&hp->mdesc); in mdesc_get_property()
667 ep = node_block(&hp->mdesc) + node; in mdesc_get_property()
704 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_next_arc()
705 const char *names = name_block(&hp->mdesc); in mdesc_next_arc()
706 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_next_arc()
730 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_arc_target()
740 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_node_name()
741 const char *names = name_block(&hp->mdesc); in mdesc_node_name()
742 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_name()
1266 unsigned char *mdesc; in mdesc_read() local
1276 mdesc = (unsigned char *)&hp->mdesc; in mdesc_read()
1277 mdesc += *offp; in mdesc_read()
1278 if (!copy_to_user(buf, mdesc, count)) { in mdesc_read()
1338 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in sun4v_mdesc_init()