Lines Matching defs:dvlp
212 static void vhci_lun_free(struct scsi_vhci_lun *dvlp, struct scsi_device *sd);
1065 struct scsi_vhci_lun *dvlp;
1067 dvlp = (struct scsi_vhci_lun *)scsi_device_hba_private_get(sd);
1068 ASSERT(dvlp != NULL);
1070 vhci_lun_free(dvlp, sd);
7319 vhci_lun_free(struct scsi_vhci_lun *dvlp, struct scsi_device *sd)
7323 guid = dvlp->svl_lun_wwn;
7327 mutex_enter(&dvlp->svl_mutex);
7328 if (dvlp->svl_active_pclass != NULL) {
7329 kmem_free(dvlp->svl_active_pclass,
7330 strlen(dvlp->svl_active_pclass)+1);
7332 dvlp->svl_active_pclass = NULL;
7333 mutex_exit(&dvlp->svl_mutex);
7335 if (dvlp->svl_lun_wwn != NULL) {
7336 kmem_free(dvlp->svl_lun_wwn, strlen(dvlp->svl_lun_wwn)+1);
7338 dvlp->svl_lun_wwn = NULL;
7340 if (dvlp->svl_fops_name) {
7341 kmem_free(dvlp->svl_fops_name, strlen(dvlp->svl_fops_name)+1);
7343 dvlp->svl_fops_name = NULL;
7345 if (dvlp->svl_fops_ctpriv != NULL &&
7346 dvlp->svl_fops != NULL) {
7347 dvlp->svl_fops->sfo_device_unprobe(sd, dvlp->svl_fops_ctpriv);
7350 if (dvlp->svl_flags & VLUN_TASK_D_ALIVE_FLG)
7351 taskq_destroy(dvlp->svl_taskq);
7353 mutex_destroy(&dvlp->svl_mutex);
7354 cv_destroy(&dvlp->svl_cv);
7355 sema_destroy(&dvlp->svl_pgr_sema);
7356 kmem_free(dvlp, sizeof (*dvlp));