Lines Matching defs:mdp

48 mdesc_init_n1(topo_mod_t *mod, md_t *mdp, mde_cookie_t *listp,
65 mdesc_dimm_count = md_scan_dag(mdp,
66 MDE_INVAL_ELEM_COOKIE, md_find_name(mdp, "dimm_data"),
67 md_find_name(mdp, "fwd"), listp);
71 if (md_get_prop_str(mdp, listp[idx], "nac", &unum) < 0)
73 if (md_get_prop_str(mdp, listp[idx], "serial#",
76 if (md_get_prop_str(mdp, listp[idx], "part#",
108 mdesc_dimm_count = md_scan_dag(mdp,
110 md_find_name(mdp, "mblock"),
111 md_find_name(mdp, "fwd"),
116 if (md_get_prop_val(mdp, listp[idx], "size", &size) == 0)
255 mdesc_init_n2(topo_mod_t *mod, md_t *mdp, mde_cookie_t *listp,
274 if (md_get_prop_str(mdp, listp[idx], "type", &type) < 0)
280 if (md_get_prop_str(mdp, listp[idx], "nac",
283 if (md_get_prop_str(mdp, listp[idx], "label",
286 if (md_get_prop_str(mdp, listp[idx],
289 if (md_get_prop_str(mdp, listp[idx],
292 if (md_get_prop_str(mdp, listp[idx],
334 mdesc_bank_count = md_scan_dag(mdp, MDE_INVAL_ELEM_COOKIE,
335 md_find_name(mdp, "memory-bank"),
336 md_find_name(mdp, "fwd"),
353 if (md_get_prop_val(mdp, listp[idx], "mask", &mask) < 0)
355 if (md_get_prop_val(mdp, listp[idx], "match", &match) < 0)
364 n = md_scan_dag(mdp, listp[idx],
365 md_find_name(mdp, "component"),
366 md_find_name(mdp, "fwd"),
374 if (md_get_prop_str(mdp, dl[i],
388 n = md_scan_dag(mdp, MDE_INVAL_ELEM_COOKIE,
389 md_find_name(mdp, "memory-segment"),
390 md_find_name(mdp, "fwd"),
393 if (md_get_prop_val(mdp, listp[idx], "base", &base) < 0)
395 if (md_get_prop_val(mdp, listp[idx], "size", &size) < 0)
397 bc = md_scan_dag(mdp, listp[idx],
398 md_find_name(mdp, "memory-bank"),
399 md_find_name(mdp, "fwd"),
423 md_t *mdp;
448 if ((mdp = md_init_intern(bufp, mem_alloc, mem_free)) == NULL ||
449 md_node_count(mdp) <= 0) {
455 num_nodes = md_node_count(mdp);
458 num_comps = md_scan_dag(mdp,
460 md_find_name(mdp, "component"),
461 md_find_name(mdp, "fwd"),
464 mdesc_init_n1(mod, mdp, listp, mem);
466 mdesc_init_n2(mod, mdp, listp, mem, num_comps);
471 (void) md_fini(mdp);