Lines Matching refs:bhp

233 	struct brand_handle *bhp;
256 if ((bhp = malloc(sizeof (struct brand_handle))) == NULL)
258 bzero(bhp, sizeof (struct brand_handle));
260 (void) strcpy(bhp->bh_name, name);
267 if ((bhp->bh_config = open_xml_file(path)) == NULL) {
268 brand_close((brand_handle_t)bhp);
276 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL) {
277 brand_close((brand_handle_t)bhp);
282 brand_close((brand_handle_t)bhp);
287 brand_close((brand_handle_t)bhp);
293 brand_close((brand_handle_t)bhp);
303 if ((bhp->bh_platform = open_xml_file(path)) == NULL) {
304 brand_close((brand_handle_t)bhp);
308 return ((brand_handle_t)bhp);
317 struct brand_handle *bhp = (struct brand_handle *)bh;
318 if (bhp->bh_platform != NULL)
319 xmlFreeDoc(bhp->bh_platform);
320 if (bhp->bh_config != NULL)
321 xmlFreeDoc(bhp->bh_config);
322 free(bhp);
439 brand_get_value(struct brand_handle *bhp, const char *zonename,
451 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL)
507 struct brand_handle *bhp = (struct brand_handle *)bh;
508 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
516 struct brand_handle *bhp = (struct brand_handle *)bh;
517 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
524 struct brand_handle *bhp = (struct brand_handle *)bh;
525 if (len <= strlen(bhp->bh_name))
528 (void) strcpy(buf, bhp->bh_name);
537 struct brand_handle *bhp = (struct brand_handle *)bh;
538 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
546 struct brand_handle *bhp = (struct brand_handle *)bh;
547 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
555 struct brand_handle *bhp = (struct brand_handle *)bh;
556 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
563 struct brand_handle *bhp = (struct brand_handle *)bh;
564 return (brand_get_value(bhp, NULL, NULL, NULL, NULL,
572 struct brand_handle *bhp = (struct brand_handle *)bh;
574 return (brand_get_value(bhp, NULL, NULL, username, curr_zone,
582 struct brand_handle *bhp = (struct brand_handle *)bh;
584 return (brand_get_value(bhp, NULL, NULL, username, curr_zone,
592 struct brand_handle *bhp = (struct brand_handle *)bh;
594 return (brand_get_value(bhp, NULL, NULL, username, NULL,
602 struct brand_handle *bhp = (struct brand_handle *)bh;
603 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
610 struct brand_handle *bhp = (struct brand_handle *)bh;
611 return (brand_get_value(bhp, NULL, NULL, NULL, NULL,
618 struct brand_handle *bhp = (struct brand_handle *)bh;
619 return (brand_get_value(bhp, NULL, NULL, NULL, NULL,
627 struct brand_handle *bhp = (struct brand_handle *)bh;
628 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
636 struct brand_handle *bhp = (struct brand_handle *)bh;
637 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
645 struct brand_handle *bhp = (struct brand_handle *)bh;
646 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
654 struct brand_handle *bhp = (struct brand_handle *)bh;
655 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
663 struct brand_handle *bhp = (struct brand_handle *)bh;
664 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
672 struct brand_handle *bhp = (struct brand_handle *)bh;
673 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
681 struct brand_handle *bhp = (struct brand_handle *)bh;
682 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
690 struct brand_handle *bhp = (struct brand_handle *)bh;
691 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
699 struct brand_handle *bhp = (struct brand_handle *)bh;
700 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
708 struct brand_handle *bhp = (struct brand_handle *)bh;
709 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
717 struct brand_handle *bhp = (struct brand_handle *)bh;
718 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
726 struct brand_handle *bhp = (struct brand_handle *)bh;
727 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
734 struct brand_handle *bhp = (struct brand_handle *)bh;
735 return (brand_get_value(bhp, NULL, NULL, NULL, NULL,
743 struct brand_handle *bhp = (struct brand_handle *)bh;
744 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
752 struct brand_handle *bhp = (struct brand_handle *)bh;
753 return (brand_get_value(bhp, zonename, zonepath, NULL, NULL,
766 struct brand_handle *bhp = (struct brand_handle *)bh;
775 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL)
848 struct brand_handle *bhp = (struct brand_handle *)bh;
853 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL)
923 struct brand_handle *bhp = (struct brand_handle *)bh;
929 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL)
969 i_brand_platform_iter_mounts(struct brand_handle *bhp, const char *zonepath,
979 if ((node = xmlDocGetRootElement(bhp->bh_platform)) == NULL)
1049 struct brand_handle *bhp = (struct brand_handle *)bh;
1050 return (i_brand_platform_iter_mounts(bhp, zonepath, zonename,
1073 struct brand_handle *bhp = (struct brand_handle *)bh;
1075 if ((node = xmlDocGetRootElement(bhp->bh_platform)) == NULL)
1129 struct brand_handle *bhp = (struct brand_handle *)bh;
1130 return (i_brand_platform_iter_mounts(bhp, NULL, NULL, func, data,
1144 struct brand_handle *bhp = (struct brand_handle *)bh;
1149 if ((node = xmlDocGetRootElement(bhp->bh_platform)) == NULL)
1191 struct brand_handle *bhp = (struct brand_handle *)bh;
1200 assert(bhp != NULL);
1205 if ((node = xmlDocGetRootElement(bhp->bh_platform)) == NULL)
1275 struct brand_handle *bhp = (struct brand_handle *)bh;
1277 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL)