Lines Matching defs:phcis
78 phci_t *phcis;
482 if (bsearch(&phci, group->phcis, group->nphcis, sizeof (phci_t),
545 if (strcmp(group->phcis[i].path, rsrc) == 0)
554 if ((group->phcis[i].state == DI_PATH_STATE_ONLINE) ||
555 (group->phcis[i].state == DI_PATH_STATE_STANDBY)) {
556 if (rcm_get_rsrcstate(hdl, group->phcis[i].path, &state)
563 group->phcis[i].path, state);
677 if ((reg = lookup_phci(group->phcis[i].path)) != NULL) {
680 reg->phci.state = group->phcis[i].state;
694 reg->phci.path = strdup(group->phcis[i].path);
702 reg->phci.state = group->phcis[i].state;
765 phci_t *phcis;
785 if ((phcis = (phci_t *)calloc(nphcis, sizeof (phci_t))) == NULL) {
795 free_phcis(i, phcis); /* free preceeding PHCIs */
800 if ((phcis[i].path = get_rsrcname(phcinode)) == NULL) {
801 free_phcis(i, phcis);
804 phcis[i].state = di_path_state(dipath);
807 qsort(phcis, nphcis, sizeof (phci_t), compare_phci);
822 if (strcmp(phcis[i].path, group->phcis[i].path) != 0)
831 free_phcis(nphcis, phcis);
845 free_phcis(nphcis, phcis);
851 free_phcis(nphcis, phcis);
855 group->phcis = phcis;
914 free_phcis(group->nphcis, group->phcis);
942 free_phcis(int nphcis, phci_t *phcis)
946 if ((phcis != NULL) && (nphcis > 0)) {
948 if (phcis[i].path)
949 free(phcis[i].path);
950 free(phcis);