Lines Matching refs:cct

7550 	mdi_vhcache_client_t *cct, *cct_next;
7567 for (cct = vhcache->vhcache_client_head; cct != NULL; cct = cct_next) {
7568 cct_next = cct->cct_next;
7569 for (cpi = cct->cct_cpi_head; cpi != NULL; cpi = cpi_next) {
7573 free_vhcache_client(cct);
7677 enqueue_tail_vhcache_pathinfo(mdi_vhcache_client_t *cct,
7681 if (cct->cct_cpi_head == NULL)
7682 cct->cct_cpi_head = cpi;
7684 cct->cct_cpi_tail->cpi_next = cpi;
7685 cct->cct_cpi_tail = cpi;
7695 enqueue_vhcache_pathinfo(mdi_vhcache_client_t *cct,
7700 if (cct->cct_cpi_head == NULL ||
7702 enqueue_tail_vhcache_pathinfo(cct, newcpi);
7704 for (cpi = cct->cct_cpi_head, prev_cpi = NULL; cpi != NULL &&
7710 cct->cct_cpi_head = newcpi;
7717 cct->cct_cpi_tail = newcpi;
7722 * Enqueue the vhcache client (cct) at the tail of the list
7726 mdi_vhcache_client_t *cct)
7728 cct->cct_next = NULL;
7730 vhcache->vhcache_client_head = cct;
7732 vhcache->vhcache_client_tail->cct_next = cct;
7733 vhcache->vhcache_client_tail = cct;
7765 free_vhcache_client(mdi_vhcache_client_t *cct)
7767 kmem_free(cct->cct_name_addr, strlen(cct->cct_name_addr) + 1);
7768 kmem_free(cct, sizeof (*cct));
7793 mdi_vhcache_client_t *cct)
7808 enqueue_tail_vhcache_pathinfo(cct, cpi);
7824 mdi_vhcache_client_t *cct;
7828 cct = kmem_zalloc(sizeof (*cct), KM_SLEEP);
7829 cct->cct_name_addr = i_ddi_strdup(nvpair_name(nvp), KM_SLEEP);
7831 paddrnvl_to_vhcache(paddrnvl, cphci_list, cct);
7833 ASSERT(cct->cct_cpi_head != NULL);
7835 enqueue_vhcache_client(vhcache, cct);
7837 (mod_hash_key_t)cct->cct_name_addr, (mod_hash_val_t)cct);
7924 vhcache_to_paddrnvl(mdi_vhci_cache_t *vhcache, mdi_vhcache_client_t *cct,
7937 for (cpi = cct->cct_cpi_head; cpi != NULL; cpi = cpi->cpi_next) {
7945 err = nvlist_add_nvlist(caddrmapnvl, cct->cct_name_addr, nvl);
7959 mdi_vhcache_client_t *cct;
7968 for (cct = vhcache->vhcache_client_head; cct != NULL;
7969 cct = cct->cct_next) {
7970 if ((err = vhcache_to_paddrnvl(vhcache, cct, nvl)) != 0)
8162 * simply return the cct from the last lookup operation.
8197 mdi_vhcache_client_t *cct;
8206 if ((cct = lookup_vhcache_client(vhcache, ct->ct_drvname, ct->ct_guid,
8208 cct = kmem_zalloc(sizeof (*cct), KM_SLEEP);
8209 cct->cct_name_addr = vhcache_mknameaddr(ct->ct_drvname,
8211 enqueue_vhcache_client(vhcache, cct);
8213 (mod_hash_key_t)cct->cct_name_addr, (mod_hash_val_t)cct);
8217 for (cpi = cct->cct_cpi_head; cpi != NULL; cpi = cpi->cpi_next) {
8224 sort_vhcache_paths(cct);
8237 enqueue_vhcache_pathinfo(cct, cpi);
8255 mdi_vhcache_client_t *cct;
8259 if ((cct = lookup_vhcache_client(vhcache, ct->ct_drvname, ct->ct_guid,
8261 for (cpi = cct->cct_cpi_head; cpi != NULL;
8600 build_phclient_path_list(mdi_vhcache_client_t *cct, char *ct_name)
8606 for (cpi = cct->cct_cpi_head; cpi != NULL; cpi = cpi->cpi_next) {
8694 sort_vhcache_paths(mdi_vhcache_client_t *cct)
8698 cpi_head = cct->cct_cpi_head;
8699 cct->cct_cpi_head = cct->cct_cpi_tail = NULL;
8702 enqueue_vhcache_pathinfo(cct, cpi);
8720 mdi_vhcache_client_t *cct;
8724 if ((cct = lookup_vhcache_client(vhcache, ct_name, ct_addr, tok))
8734 for (cpi = cct->cct_cpi_head; cpi != NULL; cpi = cpi->cpi_next) {
8750 if ((cct = lookup_vhcache_client(vhcache, ct_name, ct_addr,
8757 for (cpi = cct->cct_cpi_head; cpi != NULL; cpi = cpi->cpi_next) {
8763 sort_vhcache_paths(cct);
8893 nonline_paths(mdi_vhcache_client_t *cct)
8898 for (cpi = cct->cct_cpi_head; cpi != NULL; cpi = cpi->cpi_next) {
8922 mdi_vhcache_client_t *cct;
8930 (cct = lookup_vhcache_client(vhcache, ct_name, ct_addr, &tok))
8932 (pp_head = build_phclient_path_list(cct, ct_name)) == NULL) {
8938 if (nonline_paths(cct) > 0) {
8950 if ((cct = lookup_vhcache_client(vhcache, ct_name,
8956 if (nonline_paths(cct) > 0 &&