Home
last modified time | relevance | path

Searched refs:scsi_lun (Results 1 – 25 of 67) sorted by relevance

123

/Linux-v5.4/drivers/scsi/
Dscsi_common.c77 u64 scsilun_to_int(struct scsi_lun *scsilun) in scsilun_to_int()
84 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int()
85 ((u64)scsilun->scsi_lun[i + 1] << (i * 8))); in scsilun_to_int()
105 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun()
109 memset(scsilun->scsi_lun, 0, sizeof(scsilun->scsi_lun)); in int_to_scsilun()
112 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun()
113 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun()
Ddpt_i2o.c579 unit, (int)d->scsi_channel, (int)d->scsi_id, d->scsi_lun, in adpt_show_info()
1132 if(d->scsi_lun == lun){ in adpt_find_device()
1138 if(d->scsi_lun == lun){ in adpt_find_device()
1414 u64 scsi_lun; in adpt_i2o_parse_lct() local
1448 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct()
1463 if(scsi_lun > pHba->top_scsi_lun){ in adpt_i2o_parse_lct()
1464 pHba->top_scsi_lun = scsi_lun; in adpt_i2o_parse_lct()
1523 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct()
1549 pDev->scsi_lun = scsi_lun; in adpt_i2o_parse_lct()
1557 if(scsi_lun > pHba->top_scsi_lun){ in adpt_i2o_parse_lct()
[all …]
Dscsi_scan.c1298 struct scsi_lun *lunp, *lun_data; in scsi_report_lun_scan()
1338 length = (511 + 1) * sizeof(struct scsi_lun); in scsi_report_lun_scan()
1405 if (get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan()
1406 sizeof(struct scsi_lun) > length) { in scsi_report_lun_scan()
1407 length = get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan()
1408 sizeof(struct scsi_lun); in scsi_report_lun_scan()
1412 length = get_unaligned_be32(lun_data->scsi_lun); in scsi_report_lun_scan()
1414 num_luns = (length / sizeof(struct scsi_lun)); in scsi_report_lun_scan()
/Linux-v5.4/include/scsi/
Discsi_proto.h82 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;
Dscsi_common.h31 extern void int_to_scsilun(u64, struct scsi_lun *);
32 extern u64 scsilun_to_int(struct scsi_lun *);
Dsrp.h220 struct scsi_lun lun;
241 struct scsi_lun lun;
306 struct scsi_lun lun;
Dscsi_proto.h287 struct scsi_lun { struct
288 __u8 scsi_lun[8]; member
/Linux-v5.4/include/linux/usb/
Duas.h54 struct scsi_lun lun;
65 struct scsi_lun lun;
/Linux-v5.4/include/scsi/fc/
Dfc_fcp.h38 struct scsi_lun fc_lun; /* logical unit number */
50 struct scsi_lun fc_lun; /* logical unit number */
/Linux-v5.4/drivers/scsi/libsas/
Dsas_scsi_host.c136 struct scsi_lun lun; in sas_create_task()
149 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); in sas_create_task()
327 struct scsi_lun 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()
495 struct scsi_lun lun; in sas_eh_device_reset_handler()
508 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_eh_device_reset_handler()
709 i->dft->lldd_lu_reset(dev, ssp->reset_lun.scsi_lun); in sas_eh_handle_resets()
/Linux-v5.4/drivers/scsi/bfa/
Dbfa_fcpim.h200 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);
Dbfa_fcpim.c255 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()
2350 bfa_trc(bfa, scsilun_to_int((struct scsi_lun *)&lun)); in bfa_fcpim_lunmask_delete()
2368 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_delete()
2369 scsilun_to_int((struct scsi_lun *)&lun))) { in bfa_fcpim_lunmask_delete()
3286 bfa_tskim_match_scope(struct bfa_tskim_s *tskim, struct scsi_lun lun) in bfa_tskim_match_scope()
3315 struct scsi_lun scsilun; in bfa_tskim_gather_ios()
[all …]
/Linux-v5.4/drivers/s390/scsi/
Dzfcp_fc.h231 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()
Dzfcp_unit.c27 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()
Dzfcp_def.h300 int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun); in zfcp_scsi_dev_lun()
Dzfcp_dbf.c635 rec->scsi_lun = (u32)sc->device->lun; in zfcp_dbf_scsi_common()
646 rec->scsi_lun = (u32)sdev->lun; in zfcp_dbf_scsi_common()
717 rec->scsi_lun = (u32)ZFCP_DBF_INVALID_LUN; in zfcp_dbf_scsi_eh()
/Linux-v5.4/drivers/scsi/esas2r/
Desas2r_ioctl.c374 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()
529 memcpy(&lun, gsa->sas_lun, sizeof(struct scsi_lun)); in csmi_ioctl_callback()
[all …]
/Linux-v5.4/drivers/scsi/qedi/
Dqedi_fw.c451 memcpy(&hdr->lun, lun, sizeof(struct scsi_lun)); in qedi_process_nopin_mesg()
510 memcpy(&resp_hdr->lun, lun, sizeof(struct scsi_lun)); in qedi_process_async_mesg()
1470 u32 scsi_lun[2]; in qedi_send_iscsi_tmf() local
1500 memcpy(scsi_lun, &tmf_hdr->lun, sizeof(struct scsi_lun)); in qedi_send_iscsi_tmf()
1501 tmf_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); in qedi_send_iscsi_tmf()
1502 tmf_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); in qedi_send_iscsi_tmf()
1708 u32 scsi_lun[2]; in qedi_send_iscsi_nopout() local
1739 memcpy(scsi_lun, &nopout_hdr->lun, sizeof(struct scsi_lun)); in qedi_send_iscsi_nopout()
1740 nop_out_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); in qedi_send_iscsi_nopout()
1741 nop_out_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); in qedi_send_iscsi_nopout()
[all …]
/Linux-v5.4/drivers/scsi/ufs/
Dufshcd.h1089 static inline u8 ufshcd_scsi_to_upiu_lun(unsigned int scsi_lun) in ufshcd_scsi_to_upiu_lun() argument
1091 if (scsi_is_wlun(scsi_lun)) in ufshcd_scsi_to_upiu_lun()
1092 return (scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID) in ufshcd_scsi_to_upiu_lun()
1095 return scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID; in ufshcd_scsi_to_upiu_lun()
/Linux-v5.4/drivers/scsi/fnic/
Dfnic_scsi.c331 struct scsi_lun fc_lun; in fnic_queue_wq_copy_desc()
403 fc_lun.scsi_lun, io_req->port_id, in fnic_queue_wq_copy_desc()
1567 struct scsi_lun fc_lun; in fnic_rport_exch_reset()
1649 fc_lun.scsi_lun, io_req)) { in fnic_rport_exch_reset()
1685 struct scsi_lun fc_lun; in fnic_terminate_rport_io()
1798 fc_lun.scsi_lun, io_req)) { in fnic_terminate_rport_io()
1841 struct scsi_lun fc_lun; in fnic_abort_cmd()
1948 fc_lun.scsi_lun, io_req)) { in fnic_abort_cmd()
2070 struct scsi_lun fc_lun; in fnic_queue_dr_io_req()
2101 fc_lun.scsi_lun, io_req->port_id, in fnic_queue_dr_io_req()
[all …]
/Linux-v5.4/drivers/scsi/lpfc/
Dlpfc_scsi.h103 struct scsi_lun fcp_lun;
/Linux-v5.4/drivers/scsi/qla2xxx/
Dqla_mr.h38 struct scsi_lun lun; /* LUN (LE). */
109 struct scsi_lun lun; /* LUN (LE). */
Dqla_fw.h450 struct scsi_lun lun; /* FCP LUN (BE). */
487 struct scsi_lun lun; /* FCP LUN (BE). */
525 struct scsi_lun lun; /* FCP LUN (BE). */
572 struct scsi_lun lun; /* FCP LUN (BE). */
901 struct scsi_lun lun; /* FCP LUN (BE). */
/Linux-v5.4/drivers/scsi/pm8001/
Dpm8001_sas.c1141 struct scsi_lun lun; in pm8001_query_task()
1166 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_query_task()
1193 struct scsi_lun lun; in pm8001_abort_task()
1226 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_abort_task()
/Linux-v5.4/drivers/scsi/cxlflash/
Dcommon.h303 int_to_scsilun(lun, (struct scsi_lun *)&lun_id); in lun_to_lunid()

123