Lines Matching refs:lun
134 struct scsi_lun lun; in sas_create_task() local
145 int_to_scsilun(cmd->device->lun, &lun); in sas_create_task()
146 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); in sas_create_task()
236 cmd->device->lun == my_cmd->device->lun) in sas_scsi_clear_queue_lu()
327 struct scsi_lun lun; in sas_recover_lu() local
331 int_to_scsilun(cmd->device->lun, &lun); in sas_recover_lu()
335 cmd->device->lun); in sas_recover_lu()
338 res = i->dft->lldd_abort_task_set(dev, lun.scsi_lun); in sas_recover_lu()
342 res = i->dft->lldd_clear_task_set(dev, lun.scsi_lun); in sas_recover_lu()
347 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_recover_lu()
389 static int sas_queue_reset(struct domain_device *dev, int reset_type, u64 lun) in sas_queue_reset() argument
409 int_to_scsilun(lun, &dev->ssp_dev.reset_lun); in sas_queue_reset()
460 struct scsi_lun lun; in sas_eh_device_reset_handler() local
466 return sas_queue_reset(dev, SAS_DEV_LU_RESET, cmd->device->lun); in sas_eh_device_reset_handler()
468 int_to_scsilun(cmd->device->lun, &lun); in sas_eh_device_reset_handler()
473 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_eh_device_reset_handler()
587 cmd->device->lun); in sas_eh_handle_sas_errors()
638 cmd->device->lun); in sas_eh_handle_sas_errors()
825 SAS_ADDR(dev->sas_addr), scsi_dev->lun); in sas_device_configure()
1095 static int sas_execute_ssp_tmf(struct domain_device *device, u8 *lun, in sas_execute_ssp_tmf() argument
1103 memcpy(ssp_task.LUN, lun, 8); in sas_execute_ssp_tmf()
1108 int sas_abort_task_set(struct domain_device *dev, u8 *lun) in sas_abort_task_set() argument
1114 return sas_execute_ssp_tmf(dev, lun, &tmf_task); in sas_abort_task_set()
1118 int sas_clear_task_set(struct domain_device *dev, u8 *lun) in sas_clear_task_set() argument
1124 return sas_execute_ssp_tmf(dev, lun, &tmf_task); in sas_clear_task_set()
1128 int sas_lu_reset(struct domain_device *dev, u8 *lun) in sas_lu_reset() argument
1134 return sas_execute_ssp_tmf(dev, lun, &tmf_task); in sas_lu_reset()
1146 struct scsi_lun lun; in sas_query_task() local
1148 int_to_scsilun(cmnd->device->lun, &lun); in sas_query_task()
1150 return sas_execute_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in sas_query_task()
1162 struct scsi_lun lun; in sas_abort_task() local
1164 int_to_scsilun(cmnd->device->lun, &lun); in sas_abort_task()
1166 return sas_execute_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in sas_abort_task()
1199 if (dev_is_sata(sdev_to_domain_dev(sdev)) && sdev->lun) in sas_slave_alloc()