Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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.c576 unit, (int)d->scsi_channel, (int)d->scsi_id, d->scsi_lun, in adpt_show_info()
1129 if(d->scsi_lun == lun){ in adpt_find_device()
1135 if(d->scsi_lun == lun){ in adpt_find_device()
1410 u64 scsi_lun; in adpt_i2o_parse_lct() local
1444 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct()
1459 if(scsi_lun > pHba->top_scsi_lun){ in adpt_i2o_parse_lct()
1460 pHba->top_scsi_lun = scsi_lun; in adpt_i2o_parse_lct()
1519 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct()
1545 pDev->scsi_lun = scsi_lun; in adpt_i2o_parse_lct()
1553 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()
/kernel/linux/linux-5.10/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.h38 extern void int_to_scsilun(u64, struct scsi_lun *);
39 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]; argument
/kernel/linux/linux-5.10/include/linux/usb/
Duas.h54 struct scsi_lun lun;
65 struct scsi_lun lun;
/kernel/linux/linux-5.10/include/scsi/fc/
Dfc_fcp.h38 struct scsi_lun fc_lun; /* logical unit number */
50 struct scsi_lun fc_lun; /* logical unit number */
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
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 …]
/kernel/linux/linux-5.10/drivers/s390/scsi/
Dzfcp_fc.h233 int_to_scsilun(scsi->device->lun, (struct scsi_lun *) &fcp->fc_lun); in zfcp_fc_scsi_to_fcp()
262 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.h306 int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun); in zfcp_scsi_dev_lun()
Dzfcp_dbf.h256 u32 scsi_lun; member
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/scsi/qedi/
Dqedi_fw.c446 memcpy(&hdr->lun, lun, sizeof(struct scsi_lun)); in qedi_process_nopin_mesg()
504 memcpy(&resp_hdr->lun, lun, sizeof(struct scsi_lun)); in qedi_process_async_mesg()
1467 u32 scsi_lun[2]; in qedi_send_iscsi_tmf() local
1497 memcpy(scsi_lun, &tmf_hdr->lun, sizeof(struct scsi_lun)); in qedi_send_iscsi_tmf()
1498 tmf_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); in qedi_send_iscsi_tmf()
1499 tmf_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); in qedi_send_iscsi_tmf()
1705 u32 scsi_lun[2]; in qedi_send_iscsi_nopout() local
1736 memcpy(scsi_lun, &nopout_hdr->lun, sizeof(struct scsi_lun)); in qedi_send_iscsi_nopout()
1737 nop_out_pdu_header.lun.lo = be32_to_cpu(scsi_lun[0]); in qedi_send_iscsi_nopout()
1738 nop_out_pdu_header.lun.hi = be32_to_cpu(scsi_lun[1]); in qedi_send_iscsi_nopout()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/fnic/
Dfnic_scsi.c332 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()
1571 struct scsi_lun fc_lun; in fnic_rport_exch_reset()
1653 fc_lun.scsi_lun, io_req)) { in fnic_rport_exch_reset()
1689 struct scsi_lun fc_lun; in fnic_terminate_rport_io()
1802 fc_lun.scsi_lun, io_req)) { in fnic_terminate_rport_io()
1845 struct scsi_lun fc_lun; in fnic_abort_cmd()
1952 fc_lun.scsi_lun, io_req)) { in fnic_abort_cmd()
2074 struct scsi_lun fc_lun; in fnic_queue_dr_io_req()
2105 fc_lun.scsi_lun, io_req->port_id, in fnic_queue_dr_io_req()
[all …]
/kernel/linux/linux-5.10/drivers/scsi/lpfc/
Dlpfc_scsi.h103 struct scsi_lun fcp_lun;
/kernel/linux/linux-5.10/drivers/scsi/ufs/
Dufshcd.h1229 static inline u8 ufshcd_scsi_to_upiu_lun(unsigned int scsi_lun) in ufshcd_scsi_to_upiu_lun() argument
1231 if (scsi_is_wlun(scsi_lun)) in ufshcd_scsi_to_upiu_lun()
1232 return (scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID) in ufshcd_scsi_to_upiu_lun()
1235 return scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID; in ufshcd_scsi_to_upiu_lun()
/kernel/linux/linux-5.10/drivers/scsi/qla2xxx/
Dqla_mr.h37 struct scsi_lun lun; /* LUN (LE). */
108 struct scsi_lun lun; /* LUN (LE). */
Dqla_fw.h452 struct scsi_lun lun; /* FCP LUN (BE). */
489 struct scsi_lun lun; /* FCP LUN (BE). */
527 struct scsi_lun lun; /* FCP LUN (BE). */
574 struct scsi_lun lun; /* FCP LUN (BE). */
958 struct scsi_lun lun; /* FCP LUN (BE). */
/kernel/linux/linux-5.10/drivers/scsi/pm8001/
Dpm8001_sas.c1137 struct scsi_lun lun; in pm8001_query_task()
1159 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_query_task()
1185 struct scsi_lun lun; in pm8001_abort_task()
1218 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_abort_task()
/kernel/linux/linux-5.10/drivers/scsi/cxlflash/
Dcommon.h303 int_to_scsilun(lun, (struct scsi_lun *)&lun_id); in lun_to_lunid()

123