Lines Matching refs:cphci

7560 	mdi_vhcache_phci_t *cphci, *cphci_next;  in destroy_vhci_cache()  local
7572 for (cphci = vhcache->vhcache_phci_head; cphci != NULL; in destroy_vhci_cache()
7573 cphci = cphci_next) { in destroy_vhci_cache()
7574 cphci_next = cphci->cphci_next; in destroy_vhci_cache()
7575 free_vhcache_phci(cphci); in destroy_vhci_cache()
7674 enqueue_vhcache_phci(mdi_vhci_cache_t *vhcache, mdi_vhcache_phci_t *cphci) in enqueue_vhcache_phci() argument
7676 cphci->cphci_next = NULL; in enqueue_vhcache_phci()
7678 vhcache->vhcache_phci_head = cphci; in enqueue_vhcache_phci()
7680 vhcache->vhcache_phci_tail->cphci_next = cphci; in enqueue_vhcache_phci()
7681 vhcache->vhcache_phci_tail = cphci; in enqueue_vhcache_phci()
7762 free_vhcache_phci(mdi_vhcache_phci_t *cphci) in free_vhcache_phci() argument
7764 kmem_free(cphci->cphci_path, strlen(cphci->cphci_path) + 1); in free_vhcache_phci()
7765 kmem_free(cphci, sizeof (*cphci)); in free_vhcache_phci()
7893 mdi_vhcache_phci_t *cphci, **cphci_list; in mainnvl_to_vhcache() local
7914 cphci = kmem_zalloc(sizeof (mdi_vhcache_phci_t), KM_SLEEP); in mainnvl_to_vhcache()
7915 cphci->cphci_path = i_ddi_strdup(*phci_namep, KM_SLEEP); in mainnvl_to_vhcache()
7916 enqueue_vhcache_phci(vhcache, cphci); in mainnvl_to_vhcache()
7917 cphci_list[i] = cphci; in mainnvl_to_vhcache()
7999 mdi_vhcache_phci_t *cphci; in vhcache_to_mainnvl() local
8021 for (cphci = vhcache->vhcache_phci_head; cphci != NULL; in vhcache_to_mainnvl()
8022 cphci = cphci->cphci_next) in vhcache_to_mainnvl()
8023 cphci->cphci_id = phci_count++; in vhcache_to_mainnvl()
8027 for (cphci = vhcache->vhcache_phci_head, i = 0; cphci != NULL; in vhcache_to_mainnvl()
8028 cphci = cphci->cphci_next, i++) in vhcache_to_mainnvl()
8029 phcis[i] = i_ddi_strdup(cphci->cphci_path, KM_SLEEP); in vhcache_to_mainnvl()
8053 mdi_vhcache_phci_t *cphci; in lookup_vhcache_phci_by_name() local
8057 for (cphci = vhcache->vhcache_phci_head; cphci != NULL; in lookup_vhcache_phci_by_name()
8058 cphci = cphci->cphci_next) { in lookup_vhcache_phci_by_name()
8059 if (strcmp(cphci->cphci_path, phci_path) == 0) in lookup_vhcache_phci_by_name()
8060 return (cphci); in lookup_vhcache_phci_by_name()
8072 mdi_vhcache_phci_t *cphci; in lookup_vhcache_phci_by_addr() local
8076 for (cphci = vhcache->vhcache_phci_head; cphci != NULL; in lookup_vhcache_phci_by_addr()
8077 cphci = cphci->cphci_next) { in lookup_vhcache_phci_by_addr()
8078 if (cphci->cphci_phci == ph) in lookup_vhcache_phci_by_addr()
8079 return (cphci); in lookup_vhcache_phci_by_addr()
8092 mdi_vhcache_phci_t *cphci; in vhcache_phci_add() local
8100 if ((cphci = lookup_vhcache_phci_by_name(vhcache, pathname)) in vhcache_phci_add()
8102 cphci->cphci_phci = ph; in vhcache_phci_add()
8105 cphci = kmem_zalloc(sizeof (*cphci), KM_SLEEP); in vhcache_phci_add()
8106 cphci->cphci_path = i_ddi_strdup(pathname, KM_SLEEP); in vhcache_phci_add()
8107 cphci->cphci_phci = ph; in vhcache_phci_add()
8108 enqueue_vhcache_phci(vhcache, cphci); in vhcache_phci_add()
8135 mdi_vhcache_phci_t *cphci; in vhcache_phci_remove() local
8138 if ((cphci = lookup_vhcache_phci_by_addr(vhcache, ph)) != NULL) { in vhcache_phci_remove()
8140 cphci->cphci_phci = NULL; in vhcache_phci_remove()
8501 mdi_vhcache_phci_t *cphci; in bus_config_all_phcis() local
8511 for (cphci = vhcache->vhcache_phci_head; cphci != NULL; in bus_config_all_phcis()
8512 cphci = cphci->cphci_next) { in bus_config_all_phcis()
8514 if (!modrootloaded && (cphci->cphci_phci == NULL)) in bus_config_all_phcis()
8517 phbc->phbc_phci_path = i_ddi_strdup(cphci->cphci_path, in bus_config_all_phcis()