Lines Matching defs:cphci

7549 	mdi_vhcache_phci_t *cphci, *cphci_next;
7561 for (cphci = vhcache->vhcache_phci_head; cphci != NULL;
7562 cphci = cphci_next) {
7563 cphci_next = cphci->cphci_next;
7564 free_vhcache_phci(cphci);
7660 * Enqueue the vhcache phci (cphci) at the tail of the list
7663 enqueue_vhcache_phci(mdi_vhci_cache_t *vhcache, mdi_vhcache_phci_t *cphci)
7665 cphci->cphci_next = NULL;
7667 vhcache->vhcache_phci_head = cphci;
7669 vhcache->vhcache_phci_tail->cphci_next = cphci;
7670 vhcache->vhcache_phci_tail = cphci;
7751 free_vhcache_phci(mdi_vhcache_phci_t *cphci)
7753 kmem_free(cphci->cphci_path, strlen(cphci->cphci_path) + 1);
7754 kmem_free(cphci, sizeof (*cphci));
7882 mdi_vhcache_phci_t *cphci, **cphci_list;
7903 cphci = kmem_zalloc(sizeof (mdi_vhcache_phci_t), KM_SLEEP);
7904 cphci->cphci_path = i_ddi_strdup(*phci_namep, KM_SLEEP);
7905 enqueue_vhcache_phci(vhcache, cphci);
7906 cphci_list[i] = cphci;
7988 mdi_vhcache_phci_t *cphci;
8010 for (cphci = vhcache->vhcache_phci_head; cphci != NULL;
8011 cphci = cphci->cphci_next)
8012 cphci->cphci_id = phci_count++;
8016 for (cphci = vhcache->vhcache_phci_head, i = 0; cphci != NULL;
8017 cphci = cphci->cphci_next, i++)
8018 phcis[i] = i_ddi_strdup(cphci->cphci_path, KM_SLEEP);
8042 mdi_vhcache_phci_t *cphci;
8046 for (cphci = vhcache->vhcache_phci_head; cphci != NULL;
8047 cphci = cphci->cphci_next) {
8048 if (strcmp(cphci->cphci_path, phci_path) == 0)
8049 return (cphci);
8061 mdi_vhcache_phci_t *cphci;
8065 for (cphci = vhcache->vhcache_phci_head; cphci != NULL;
8066 cphci = cphci->cphci_next) {
8067 if (cphci->cphci_phci == ph)
8068 return (cphci);
8081 mdi_vhcache_phci_t *cphci;
8089 if ((cphci = lookup_vhcache_phci_by_name(vhcache, pathname))
8091 cphci->cphci_phci = ph;
8094 cphci = kmem_zalloc(sizeof (*cphci), KM_SLEEP);
8095 cphci->cphci_path = i_ddi_strdup(pathname, KM_SLEEP);
8096 cphci->cphci_phci = ph;
8097 enqueue_vhcache_phci(vhcache, cphci);
8124 mdi_vhcache_phci_t *cphci;
8127 if ((cphci = lookup_vhcache_phci_by_addr(vhcache, ph)) != NULL) {
8129 cphci->cphci_phci = NULL;
8490 mdi_vhcache_phci_t *cphci;
8500 for (cphci = vhcache->vhcache_phci_head; cphci != NULL;
8501 cphci = cphci->cphci_next) {
8503 if (!modrootloaded && (cphci->cphci_phci == NULL))
8506 phbc->phbc_phci_path = i_ddi_strdup(cphci->cphci_path,