/linux/drivers/scsi/ |
A D | scsi_common.c | 86 u64 scsilun_to_int(struct scsi_lun *scsilun) in scsilun_to_int() 93 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int() 94 ((u64)scsilun->scsi_lun[i + 1] << (i * 8))); in scsilun_to_int() 114 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun() 118 memset(scsilun->scsi_lun, 0, sizeof(scsilun->scsi_lun)); in int_to_scsilun() 121 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun() 122 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun()
|
A D | dpt_i2o.c | 1128 if(d->scsi_lun == lun){ in adpt_find_device() 1134 if(d->scsi_lun == lun){ in adpt_find_device() 1409 u64 scsi_lun; in adpt_i2o_parse_lct() local 1443 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct() 1518 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct() 1544 pDev->scsi_lun = scsi_lun; in adpt_i2o_parse_lct() 2484 u64 scsi_lun; in adpt_i2o_reparse_lct() local 2531 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_reparse_lct() 2535 if(pDev->scsi_lun == scsi_lun) { in adpt_i2o_reparse_lct() 2581 pDev->scsi_lun = scsi_lun; in adpt_i2o_reparse_lct() [all …]
|
A D | scsi_scan.c | 1341 struct scsi_lun *lunp, *lun_data; in scsi_report_lun_scan() 1381 length = (511 + 1) * sizeof(struct scsi_lun); in scsi_report_lun_scan() 1447 if (get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan() 1448 sizeof(struct scsi_lun) > length) { in scsi_report_lun_scan() 1449 length = get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan() 1450 sizeof(struct scsi_lun); in scsi_report_lun_scan() 1454 length = get_unaligned_be32(lun_data->scsi_lun); in scsi_report_lun_scan() 1456 num_luns = (length / sizeof(struct scsi_lun)); in scsi_report_lun_scan()
|
/linux/include/scsi/ |
A D | iscsi_proto.h | 82 struct scsi_lun lun; 144 struct scsi_lun lun; 220 struct scsi_lun lun; 248 struct scsi_lun lun; 263 struct scsi_lun lun; 279 struct scsi_lun lun; 337 struct scsi_lun lun; 355 struct scsi_lun lun; 375 struct scsi_lun lun;
|
A D | srp.h | 216 struct scsi_lun lun; 233 struct scsi_lun lun; 298 struct scsi_lun lun;
|
A D | scsi_common.h | 38 extern void int_to_scsilun(u64, struct scsi_lun *); 39 extern u64 scsilun_to_int(struct scsi_lun *);
|
A D | scsi_proto.h | 269 struct scsi_lun { struct 270 __u8 scsi_lun[8]; member
|
/linux/drivers/scsi/libsas/ |
A D | sas_scsi_host.c | 136 struct scsi_lun lun; in sas_create_task() 149 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); in sas_create_task() 328 struct scsi_lun lun; in sas_recover_lu() 339 res = i->dft->lldd_abort_task_set(dev, lun.scsi_lun); in sas_recover_lu() 343 res = i->dft->lldd_clear_task_set(dev, lun.scsi_lun); in sas_recover_lu() 348 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_recover_lu() 496 struct scsi_lun lun; in sas_eh_device_reset_handler() 509 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_eh_device_reset_handler() 712 i->dft->lldd_lu_reset(dev, ssp->reset_lun.scsi_lun); in sas_eh_handle_resets()
|
/linux/include/linux/usb/ |
A D | uas.h | 54 struct scsi_lun lun; 65 struct scsi_lun lun;
|
/linux/include/scsi/fc/ |
A D | fc_fcp.h | 38 struct scsi_lun fc_lun; /* logical unit number */ 50 struct scsi_lun fc_lun; /* logical unit number */
|
/linux/drivers/scsi/bfa/ |
A D | bfa_fcpim.h | 200 struct scsi_lun lun; /* lun if applicable */ 402 struct bfa_itnim_s *itnim, struct scsi_lun lun, 412 wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun); 414 wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun);
|
A D | bfa_fcpim.c | 255 struct scsi_lun lun); 2273 wwn_t rpwwn, struct scsi_lun lun) in bfa_fcpim_lunmask_add() 2301 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_add() 2302 scsilun_to_int((struct scsi_lun *)&lun))) in bfa_fcpim_lunmask_add() 2335 wwn_t rpwwn, struct scsi_lun lun) in bfa_fcpim_lunmask_delete() 2348 bfa_trc(bfa, scsilun_to_int((struct scsi_lun *)&lun)); in bfa_fcpim_lunmask_delete() 2362 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_delete() 2363 scsilun_to_int((struct scsi_lun *)&lun))) { in bfa_fcpim_lunmask_delete() 3280 bfa_tskim_match_scope(struct bfa_tskim_s *tskim, struct scsi_lun lun) in bfa_tskim_match_scope() 3309 struct scsi_lun scsilun; in bfa_tskim_gather_ios() [all …]
|
/linux/drivers/scsi/esas2r/ |
A D | esas2r_ioctl.c | 374 static bool check_lun(struct scsi_lun lun) in check_lun() 378 result = ((lun.scsi_lun[7] == 0) && in check_lun() 379 (lun.scsi_lun[6] == 0) && in check_lun() 380 (lun.scsi_lun[5] == 0) && in check_lun() 381 (lun.scsi_lun[4] == 0) && in check_lun() 382 (lun.scsi_lun[3] == 0) && in check_lun() 383 (lun.scsi_lun[2] == 0) && in check_lun() 385 (lun.scsi_lun[0] == 0)); in check_lun() 527 struct scsi_lun lun; in csmi_ioctl_callback() 983 struct scsi_lun lun; in hba_ioctl_callback() [all …]
|
/linux/drivers/s390/scsi/ |
A D | zfcp_unit.c | 27 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan() 201 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_sdev()
|
A D | zfcp_fc.h | 231 int_to_scsilun(scsi->device->lun, (struct scsi_lun *) &fcp->fc_lun); in zfcp_fc_scsi_to_fcp() 260 int_to_scsilun(dev->lun, (struct scsi_lun *) &fcp->fc_lun); in zfcp_fc_fcp_tm()
|
A D | zfcp_def.h | 306 int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun); in zfcp_scsi_dev_lun()
|
A D | zfcp_dbf.c | 650 rec->scsi_lun = (u32)sc->device->lun; in zfcp_dbf_scsi_common() 661 rec->scsi_lun = (u32)sdev->lun; in zfcp_dbf_scsi_common() 732 rec->scsi_lun = (u32)ZFCP_DBF_INVALID_LUN; in zfcp_dbf_scsi_eh()
|
A D | zfcp_dbf.h | 256 u32 scsi_lun; member
|
/linux/drivers/scsi/qedi/ |
A D | qedi_fw.c | 457 memcpy(&hdr->lun, lun, sizeof(struct scsi_lun)); in qedi_process_nopin_mesg() 1435 u32 scsi_lun[2]; in send_iscsi_tmf() local 1464 memcpy(scsi_lun, &tmf_hdr->lun, sizeof(struct scsi_lun)); in send_iscsi_tmf() 1465 tmf_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); in send_iscsi_tmf() 1466 tmf_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); in send_iscsi_tmf() 1650 u32 scsi_lun[2]; in qedi_send_iscsi_nopout() local 1681 memcpy(scsi_lun, &nopout_hdr->lun, sizeof(struct scsi_lun)); in qedi_send_iscsi_nopout() 1992 u32 scsi_lun[2]; in qedi_iscsi_send_ioreq() local 2003 int_to_scsilun(sc->device->lun, (struct scsi_lun *)scsi_lun); in qedi_iscsi_send_ioreq() 2039 cmd_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); in qedi_iscsi_send_ioreq() [all …]
|
/linux/drivers/scsi/fnic/ |
A D | fnic_scsi.c | 332 struct scsi_lun fc_lun; in fnic_queue_wq_copy_desc() 404 fc_lun.scsi_lun, io_req->port_id, in fnic_queue_wq_copy_desc() 1568 struct scsi_lun fc_lun; in fnic_rport_abort_io_iter() 1633 fc_lun.scsi_lun, io_req)) { in fnic_rport_abort_io_iter() 1733 struct scsi_lun fc_lun; in fnic_abort_cmd() 1958 struct scsi_lun fc_lun; in fnic_queue_dr_io_req() 1989 fc_lun.scsi_lun, io_req->port_id, in fnic_queue_dr_io_req() 2022 struct scsi_lun fc_lun; in fnic_pending_aborts_iter() 2091 fc_lun.scsi_lun, io_req)) { in fnic_pending_aborts_iter() 2241 struct scsi_lun fc_lun; in fnic_device_reset() [all …]
|
/linux/drivers/scsi/lpfc/ |
A D | lpfc_scsi.h | 103 struct scsi_lun fcp_lun;
|
/linux/drivers/scsi/ufs/ |
A D | ufshcd.h | 1382 static inline u8 ufshcd_scsi_to_upiu_lun(unsigned int scsi_lun) in ufshcd_scsi_to_upiu_lun() argument 1384 if (scsi_is_wlun(scsi_lun)) in ufshcd_scsi_to_upiu_lun() 1385 return (scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID) in ufshcd_scsi_to_upiu_lun() 1388 return scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID; in ufshcd_scsi_to_upiu_lun()
|
/linux/drivers/scsi/qla2xxx/ |
A D | qla_mr.h | 37 struct scsi_lun lun; /* LUN (LE). */ 108 struct scsi_lun lun; /* LUN (LE). */
|
A D | qla_fw.h | 453 struct scsi_lun lun; /* FCP LUN (BE). */ 490 struct scsi_lun lun; /* FCP LUN (BE). */ 531 struct scsi_lun lun; /* FCP LUN (BE). */ 578 struct scsi_lun lun; /* FCP LUN (BE). */ 967 struct scsi_lun lun; /* FCP LUN (BE). */
|
/linux/drivers/scsi/pm8001/ |
A D | pm8001_sas.c | 1134 struct scsi_lun lun; in pm8001_query_task() 1156 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_query_task() 1182 struct scsi_lun lun; in pm8001_abort_task() 1224 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_abort_task()
|