Lines Matching defs:xn

133     xmlNodePtr xn, const char *propname, nvlist_t **rnvl)
139 if ((str = xmlGetProp(xn, (xmlChar *)propname)) == NULL)
150 xmlattr_to_type(topo_mod_t *mp, xmlNodePtr xn, xmlChar *attr)
154 if ((str = xmlGetProp(xn, (xmlChar *)attr)) == NULL) {
196 xlate_common(topo_mod_t *mp, xmlNodePtr xn, topo_type_t ptype, nvlist_t *nvl,
212 if (xmlattr_to_int(mp, xn, Value, &ui) < 0)
217 if (xmlattr_to_int(mp, xn, Value, &ui) < 0)
222 if (xmlattr_to_int(mp, xn, Value, &ui) < 0)
227 if (xmlattr_to_int(mp, xn, Value, &ui) < 0)
232 if (xmlattr_to_fmri(mp, xn, Value, &fmri) < 0)
238 if ((str = xmlGetProp(xn, (xmlChar *)Value)) == NULL)
247 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next)
262 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next)
277 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next)
299 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next) {
303 if ((str = xmlGetProp(xn, (xmlChar *)Value))
318 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next) {
322 if ((str = xmlGetProp(xn, (xmlChar *)Value))
337 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next) {
341 if ((str = xmlGetProp(xn, (xmlChar *)Value))
356 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next) {
360 if ((str = xmlGetProp(xn, (xmlChar *)Value))
375 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next) {
393 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next) {
397 if ((str = xmlGetProp(xn, (xmlChar *)Value))
425 xmlprop_xlate(topo_mod_t *mp, xmlNodePtr xn, nvlist_t *nvl)
431 if ((str = xmlGetProp(xn, (xmlChar *)Immutable)) != NULL) {
443 if ((ptype = xmlattr_to_type(mp, xn, (xmlChar *)Type))
450 return (xlate_common(mp, xn, ptype, nvl, INV_PVAL));
779 pval_record(topo_mod_t *mp, xmlNodePtr xn)
785 if ((pname = xmlGetProp(xn, (xmlChar *)Name)) == NULL) {
803 if (xmlprop_xlate(mp, xn, pnvl) < 0) {
845 pmeth_record(topo_mod_t *mp, const char *pg_name, xmlNodePtr xn, tnode_t *tn,
865 if ((meth_name = xmlGetProp(xn, (xmlChar *)Name)) == NULL) {
870 if (xmlattr_to_int(mp, xn, Version, &meth_ver) < 0) {
880 (void) xmlattr_to_int(mp, xn, Mutable, &is_mutable);
881 (void) xmlattr_to_int(mp, xn, Nonvolatile, &is_nonvolatile);
883 if ((prop_name = xmlGetProp(xn, (xmlChar *)Propname)) == NULL) {
889 if ((prop_type = xmlattr_to_type(mp, xn, (xmlChar *)Proptype))
908 for (cn = xn->xmlChildrenNode; cn != NULL; cn = cn->next) {