/drivers/scsi/ |
D | scsi_common.c | 77 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()
|
D | dpt_i2o.c | 579 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 …]
|
D | scsi_scan.c | 1298 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()
|
D | dpti.h | 183 u64 scsi_lun; member
|
/drivers/scsi/libsas/ |
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() 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()
|
/drivers/scsi/bfa/ |
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);
|
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() 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 …]
|
/drivers/scsi/esas2r/ |
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() 529 memcpy(&lun, gsa->sas_lun, sizeof(struct scsi_lun)); in csmi_ioctl_callback() [all …]
|
/drivers/s390/scsi/ |
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()
|
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()
|
D | zfcp_def.h | 300 int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun); in zfcp_scsi_dev_lun()
|
D | zfcp_dbf.c | 633 rec->scsi_lun = (u32)sc->device->lun; in zfcp_dbf_scsi_common() 644 rec->scsi_lun = (u32)sdev->lun; in zfcp_dbf_scsi_common() 715 rec->scsi_lun = (u32)ZFCP_DBF_INVALID_LUN; in zfcp_dbf_scsi_eh()
|
D | zfcp_dbf.h | 232 u32 scsi_lun; member
|
/drivers/scsi/qedi/ |
D | qedi_fw.c | 451 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 …]
|
/drivers/scsi/fnic/ |
D | fnic_scsi.c | 331 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 …]
|
/drivers/scsi/ufs/ |
D | ufshcd.h | 1150 static inline u8 ufshcd_scsi_to_upiu_lun(unsigned int scsi_lun) in ufshcd_scsi_to_upiu_lun() argument 1152 if (scsi_is_wlun(scsi_lun)) in ufshcd_scsi_to_upiu_lun() 1153 return (scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID) in ufshcd_scsi_to_upiu_lun() 1156 return scsi_lun & UFS_UPIU_MAX_UNIT_NUM_ID; in ufshcd_scsi_to_upiu_lun()
|
/drivers/scsi/lpfc/ |
D | lpfc_scsi.h | 103 struct scsi_lun fcp_lun;
|
/drivers/scsi/qla2xxx/ |
D | qla_mr.h | 38 struct scsi_lun lun; /* LUN (LE). */ 109 struct scsi_lun lun; /* LUN (LE). */
|
D | qla_fw.h | 450 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). */
|
/drivers/scsi/pm8001/ |
D | pm8001_sas.c | 1141 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()
|
/drivers/scsi/ibmvscsi/ |
D | ibmvfc.h | 339 struct scsi_lun lun; 416 struct scsi_lun lun;
|
/drivers/scsi/cxlflash/ |
D | common.h | 303 int_to_scsilun(lun, (struct scsi_lun *)&lun_id); in lun_to_lunid()
|
/drivers/scsi/bnx2i/ |
D | bnx2i_iscsi.c | 1137 u32 scsi_lun[2]; in bnx2i_cpy_scsi_cdb() local 1139 int_to_scsilun(sc->device->lun, (struct scsi_lun *) scsi_lun); in bnx2i_cpy_scsi_cdb() 1140 cmd->req.lun[0] = be32_to_cpu(scsi_lun[0]); in bnx2i_cpy_scsi_cdb() 1141 cmd->req.lun[1] = be32_to_cpu(scsi_lun[1]); in bnx2i_cpy_scsi_cdb()
|
D | bnx2i_hwi.c | 391 u32 scsi_lun[2]; in bnx2i_send_iscsi_tmf() local 432 memcpy(scsi_lun, &tmfabort_hdr->lun, sizeof(struct scsi_lun)); in bnx2i_send_iscsi_tmf() 433 tmfabort_wqe->lun[0] = be32_to_cpu(scsi_lun[0]); in bnx2i_send_iscsi_tmf() 434 tmfabort_wqe->lun[1] = be32_to_cpu(scsi_lun[1]); in bnx2i_send_iscsi_tmf()
|
/drivers/firewire/ |
D | sbp2.c | 758 struct scsi_lun eight_bytes_lun; in sbp2_lun2int() 761 eight_bytes_lun.scsi_lun[0] = (lun >> 8) & 0xff; in sbp2_lun2int() 762 eight_bytes_lun.scsi_lun[1] = lun & 0xff; in sbp2_lun2int()
|