lun_info         5678 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_device_data *lun_info;
lun_info         5691 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info = mempool_alloc(phba->device_data_mem_pool, memory_flags);
lun_info         5692 drivers/scsi/lpfc/lpfc_scsi.c 	if (!lun_info)
lun_info         5694 drivers/scsi/lpfc/lpfc_scsi.c 	INIT_LIST_HEAD(&lun_info->listentry);
lun_info         5695 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info->rport_data  = NULL;
lun_info         5696 drivers/scsi/lpfc/lpfc_scsi.c 	memcpy(&lun_info->device_id.vport_wwpn, vport_wwpn,
lun_info         5698 drivers/scsi/lpfc/lpfc_scsi.c 	memcpy(&lun_info->device_id.target_wwpn, target_wwpn,
lun_info         5700 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info->device_id.lun = lun;
lun_info         5701 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info->oas_enabled = false;
lun_info         5702 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info->priority = pri;
lun_info         5703 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info->available = false;
lun_info         5704 drivers/scsi/lpfc/lpfc_scsi.c 	return lun_info;
lun_info         5717 drivers/scsi/lpfc/lpfc_scsi.c 			struct lpfc_device_data *lun_info)
lun_info         5720 drivers/scsi/lpfc/lpfc_scsi.c 	if (unlikely(!phba) || !lun_info  ||
lun_info         5724 drivers/scsi/lpfc/lpfc_scsi.c 	if (!list_empty(&lun_info->listentry))
lun_info         5725 drivers/scsi/lpfc/lpfc_scsi.c 		list_del(&lun_info->listentry);
lun_info         5726 drivers/scsi/lpfc/lpfc_scsi.c 	mempool_free(lun_info, phba->device_data_mem_pool);
lun_info         5752 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_device_data *lun_info;
lun_info         5760 drivers/scsi/lpfc/lpfc_scsi.c 	list_for_each_entry(lun_info, list, listentry) {
lun_info         5761 drivers/scsi/lpfc/lpfc_scsi.c 		if ((memcmp(&lun_info->device_id.vport_wwpn, vport_wwpn,
lun_info         5763 drivers/scsi/lpfc/lpfc_scsi.c 		    (memcmp(&lun_info->device_id.target_wwpn, target_wwpn,
lun_info         5765 drivers/scsi/lpfc/lpfc_scsi.c 		    (lun_info->device_id.lun == lun))
lun_info         5766 drivers/scsi/lpfc/lpfc_scsi.c 			return lun_info;
lun_info         5809 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_device_data *lun_info;
lun_info         5828 drivers/scsi/lpfc/lpfc_scsi.c 	list_for_each_entry(lun_info, &phba->luns, listentry) {
lun_info         5830 drivers/scsi/lpfc/lpfc_scsi.c 		     (memcmp(&lun_info->device_id.vport_wwpn, vport_wwpn,
lun_info         5833 drivers/scsi/lpfc/lpfc_scsi.c 		     (memcmp(&lun_info->device_id.target_wwpn, target_wwpn,
lun_info         5835 drivers/scsi/lpfc/lpfc_scsi.c 		    (lun_info->oas_enabled)) {
lun_info         5836 drivers/scsi/lpfc/lpfc_scsi.c 			device_id = &lun_info->device_id;
lun_info         5847 drivers/scsi/lpfc/lpfc_scsi.c 				if (lun_info->available)
lun_info         5852 drivers/scsi/lpfc/lpfc_scsi.c 				*found_lun_pri = lun_info->priority;
lun_info         5899 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_device_data *lun_info;
lun_info         5909 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info = __lpfc_get_device_data(phba, &phba->luns, vport_wwpn,
lun_info         5911 drivers/scsi/lpfc/lpfc_scsi.c 	if (lun_info) {
lun_info         5912 drivers/scsi/lpfc/lpfc_scsi.c 		if (!lun_info->oas_enabled)
lun_info         5913 drivers/scsi/lpfc/lpfc_scsi.c 			lun_info->oas_enabled = true;
lun_info         5914 drivers/scsi/lpfc/lpfc_scsi.c 		lun_info->priority = pri;
lun_info         5920 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info = lpfc_create_device_data(phba, vport_wwpn, target_wwpn, lun,
lun_info         5922 drivers/scsi/lpfc/lpfc_scsi.c 	if (lun_info) {
lun_info         5923 drivers/scsi/lpfc/lpfc_scsi.c 		lun_info->oas_enabled = true;
lun_info         5924 drivers/scsi/lpfc/lpfc_scsi.c 		lun_info->priority = pri;
lun_info         5925 drivers/scsi/lpfc/lpfc_scsi.c 		lun_info->available = false;
lun_info         5926 drivers/scsi/lpfc/lpfc_scsi.c 		list_add_tail(&lun_info->listentry, &phba->luns);
lun_info         5958 drivers/scsi/lpfc/lpfc_scsi.c 	struct lpfc_device_data *lun_info;
lun_info         5968 drivers/scsi/lpfc/lpfc_scsi.c 	lun_info = __lpfc_get_device_data(phba,
lun_info         5971 drivers/scsi/lpfc/lpfc_scsi.c 	if (lun_info) {
lun_info         5972 drivers/scsi/lpfc/lpfc_scsi.c 		lun_info->oas_enabled = false;
lun_info         5973 drivers/scsi/lpfc/lpfc_scsi.c 		lun_info->priority = pri;
lun_info         5974 drivers/scsi/lpfc/lpfc_scsi.c 		if (!lun_info->available)
lun_info         5975 drivers/scsi/lpfc/lpfc_scsi.c 			lpfc_delete_device_data(phba, lun_info);