Lines Matching refs:mdesc
78 struct mdesc_hdr mdesc; member
153 BUG_ON(((unsigned long)&hp->mdesc) & (16UL - 1)); in mdesc_handle_init()
517 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in mdesc_update()
614 static struct mdesc_elem *node_block(struct mdesc_hdr *mdesc) in node_block() argument
616 return (struct mdesc_elem *) mdesc->data; in node_block()
619 static void *name_block(struct mdesc_hdr *mdesc) in name_block() argument
621 return ((void *) node_block(mdesc)) + mdesc->node_sz; in name_block()
624 static void *data_block(struct mdesc_hdr *mdesc) in data_block() argument
626 return ((void *) name_block(mdesc)) + mdesc->name_sz; in data_block()
632 struct mdesc_elem *ep = node_block(&hp->mdesc); in mdesc_node_by_name()
633 const char *names = name_block(&hp->mdesc); in mdesc_node_by_name()
634 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_by_name()
661 const char *names = name_block(&hp->mdesc); in mdesc_get_property()
662 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_get_property()
663 void *data = data_block(&hp->mdesc); in mdesc_get_property()
669 ep = node_block(&hp->mdesc) + node; in mdesc_get_property()
706 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_next_arc()
707 const char *names = name_block(&hp->mdesc); in mdesc_next_arc()
708 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_next_arc()
732 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_arc_target()
742 struct mdesc_elem *ep, *base = node_block(&hp->mdesc); in mdesc_node_name()
743 const char *names = name_block(&hp->mdesc); in mdesc_node_name()
744 u64 last_node = hp->mdesc.node_sz / 16; in mdesc_node_name()
1268 unsigned char *mdesc; in mdesc_read() local
1278 mdesc = (unsigned char *)&hp->mdesc; in mdesc_read()
1279 mdesc += *offp; in mdesc_read()
1280 if (!copy_to_user(buf, mdesc, count)) { in mdesc_read()
1340 status = sun4v_mach_desc(__pa(&hp->mdesc), len, &real_len); in sun4v_mdesc_init()