Home
last modified time | relevance | path

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

123

/drivers/scsi/
Dscsi_common.c76 u64 scsilun_to_int(struct scsi_lun *scsilun) in scsilun_to_int()
83 lun = lun | (((u64)scsilun->scsi_lun[i] << ((i + 1) * 8)) | in scsilun_to_int()
84 ((u64)scsilun->scsi_lun[i + 1] << (i * 8))); in scsilun_to_int()
104 void int_to_scsilun(u64 lun, struct scsi_lun *scsilun) in int_to_scsilun()
108 memset(scsilun->scsi_lun, 0, sizeof(scsilun->scsi_lun)); in int_to_scsilun()
111 scsilun->scsi_lun[i] = (lun >> 8) & 0xFF; in int_to_scsilun()
112 scsilun->scsi_lun[i+1] = lun & 0xFF; in int_to_scsilun()
Ddpt_i2o.c584 unit, (int)d->scsi_channel, (int)d->scsi_id, d->scsi_lun, in adpt_show_info()
1184 if(d->scsi_lun == lun){ in adpt_find_device()
1190 if(d->scsi_lun == lun){ in adpt_find_device()
1466 u64 scsi_lun; in adpt_i2o_parse_lct() local
1500 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct()
1515 if(scsi_lun > pHba->top_scsi_lun){ in adpt_i2o_parse_lct()
1516 pHba->top_scsi_lun = scsi_lun; in adpt_i2o_parse_lct()
1575 scsi_lun = scsilun_to_int((struct scsi_lun *)&buf[2]); in adpt_i2o_parse_lct()
1601 pDev->scsi_lun = scsi_lun; in adpt_i2o_parse_lct()
1609 if(scsi_lun > pHba->top_scsi_lun){ in adpt_i2o_parse_lct()
[all …]
Dscsi_scan.c1308 struct scsi_lun *lunp, *lun_data; in scsi_report_lun_scan()
1351 length = (511 + 1) * sizeof(struct scsi_lun); in scsi_report_lun_scan()
1418 if (get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan()
1419 sizeof(struct scsi_lun) > length) { in scsi_report_lun_scan()
1420 length = get_unaligned_be32(lun_data->scsi_lun) + in scsi_report_lun_scan()
1421 sizeof(struct scsi_lun); in scsi_report_lun_scan()
1425 length = get_unaligned_be32(lun_data->scsi_lun); in scsi_report_lun_scan()
1427 num_luns = (length / sizeof(struct scsi_lun)); in scsi_report_lun_scan()
Ddpti.h187 u64 scsi_lun; member
Dscsi_debug.c3329 struct scsi_lun *one_lun; in resp_report_luns()
3349 arr[2] = ((sizeof(struct scsi_lun) * num) >> 8) & 0xff; in resp_report_luns()
3350 arr[3] = (sizeof(struct scsi_lun) * num) & 0xff; in resp_report_luns()
3352 sizeof(struct scsi_lun)), num); in resp_report_luns()
3357 one_lun = (struct scsi_lun *) &arr[8]; in resp_report_luns()
3364 one_lun[i].scsi_lun[0] = in resp_report_luns()
3366 one_lun[i].scsi_lun[1] = lun & 0xff; in resp_report_luns()
3369 one_lun[i].scsi_lun[0] = (SCSI_W_LUN_REPORT_LUNS >> 8) & 0xff; in resp_report_luns()
3370 one_lun[i].scsi_lun[1] = SCSI_W_LUN_REPORT_LUNS & 0xff; in resp_report_luns()
/drivers/scsi/libsas/
Dsas_scsi_host.c153 struct scsi_lun lun; in sas_create_task()
166 memcpy(task->ssp_task.LUN, &lun.scsi_lun, 8); in sas_create_task()
346 struct scsi_lun lun; in sas_recover_lu()
357 res = i->dft->lldd_abort_task_set(dev, lun.scsi_lun); in sas_recover_lu()
361 res = i->dft->lldd_clear_task_set(dev, lun.scsi_lun); in sas_recover_lu()
366 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_recover_lu()
505 struct scsi_lun lun; in sas_eh_device_reset_handler()
518 res = i->dft->lldd_lu_reset(dev, lun.scsi_lun); in sas_eh_device_reset_handler()
724 i->dft->lldd_lu_reset(dev, ssp->reset_lun.scsi_lun); in sas_eh_handle_resets()
/drivers/scsi/bfa/
Dbfa_fcpim.h207 struct scsi_lun lun; /* lun if applicable */
409 struct bfa_itnim_s *itnim, struct scsi_lun lun,
419 wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun);
421 wwn_t *pwwn, wwn_t rpwwn, struct scsi_lun lun);
Dbfa_fcpim.c263 struct scsi_lun lun);
2280 wwn_t rpwwn, struct scsi_lun lun) in bfa_fcpim_lunmask_add()
2308 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_add()
2309 scsilun_to_int((struct scsi_lun *)&lun))) in bfa_fcpim_lunmask_add()
2342 wwn_t rpwwn, struct scsi_lun lun) in bfa_fcpim_lunmask_delete()
2357 bfa_trc(bfa, scsilun_to_int((struct scsi_lun *)&lun)); in bfa_fcpim_lunmask_delete()
2375 (scsilun_to_int((struct scsi_lun *)&lunm_list[i].lun) == in bfa_fcpim_lunmask_delete()
2376 scsilun_to_int((struct scsi_lun *)&lun))) { in bfa_fcpim_lunmask_delete()
3293 bfa_tskim_match_scope(struct bfa_tskim_s *tskim, struct scsi_lun lun) in bfa_tskim_match_scope()
3322 struct scsi_lun scsilun; in bfa_tskim_gather_ios()
[all …]
/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 …]
/drivers/s390/scsi/
Dzfcp_unit.c26 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_scsi_scan()
199 lun = scsilun_to_int((struct scsi_lun *) &unit->fcp_lun); in zfcp_unit_sdev()
Dzfcp_fc.h215 int_to_scsilun(scsi->device->lun, (struct scsi_lun *) &fcp->fc_lun); in zfcp_fc_scsi_to_fcp()
Dzfcp_def.h277 int_to_scsilun(sdev->lun, (struct scsi_lun *)&fcp_lun); in zfcp_scsi_dev_lun()
Dzfcp_dbf.h223 u32 scsi_lun; member
Dzfcp_dbf.c585 rec->scsi_lun = (u32)sc->device->lun; in zfcp_dbf_scsi()
657 rec->scsi_lun = (u32)ZFCP_DBF_INVALID_LUN; in zfcp_dbf_scsi_eh()
/drivers/scsi/fnic/
Dfnic_scsi.c332 struct scsi_lun fc_lun; in fnic_queue_wq_copy_desc()
410 fc_lun.scsi_lun, io_req->port_id, in fnic_queue_wq_copy_desc()
1499 struct scsi_lun fc_lun; in fnic_rport_exch_reset()
1581 fc_lun.scsi_lun, io_req)) { in fnic_rport_exch_reset()
1617 struct scsi_lun fc_lun; in fnic_terminate_rport_io()
1730 fc_lun.scsi_lun, io_req)) { in fnic_terminate_rport_io()
1773 struct scsi_lun fc_lun; in fnic_abort_cmd()
1860 fc_lun.scsi_lun, io_req)) { in fnic_abort_cmd()
1971 struct scsi_lun fc_lun; in fnic_queue_dr_io_req()
2002 fc_lun.scsi_lun, io_req->port_id, in fnic_queue_dr_io_req()
[all …]
/drivers/scsi/qla2xxx/
Dqla_fw.h404 struct scsi_lun lun; /* FCP LUN (BE). */
442 struct scsi_lun lun; /* FCP LUN (BE). */
480 struct scsi_lun lun; /* FCP LUN (BE). */
528 struct scsi_lun lun; /* FCP LUN (BE). */
848 struct scsi_lun lun; /* FCP LUN (BE). */
Dqla_mr.h36 struct scsi_lun lun; /* LUN (LE). */
108 struct scsi_lun lun; /* LUN (LE). */
/drivers/scsi/cxlflash/
Dcommon.h194 int_to_scsilun(lun, (struct scsi_lun *)&lun_id); in lun_to_lunid()
/drivers/scsi/lpfc/
Dlpfc_scsi.h100 struct scsi_lun fcp_lun;
/drivers/scsi/pm8001/
Dpm8001_sas.c1117 struct scsi_lun lun; in pm8001_query_task()
1142 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_query_task()
1171 struct scsi_lun lun; in pm8001_abort_task()
1202 rc = pm8001_issue_ssp_tmf(dev, lun.scsi_lun, &tmf_task); in pm8001_abort_task()
/drivers/scsi/ibmvscsi/
Dibmvfc.h347 struct scsi_lun lun;
424 struct scsi_lun lun;
/drivers/scsi/bnx2i/
Dbnx2i_iscsi.c1137 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()
/drivers/block/
Dida_cmd.h217 __u8 scsi_lun; member
/drivers/firewire/
Dsbp2.c771 struct scsi_lun eight_bytes_lun; in sbp2_lun2int()
774 eight_bytes_lun.scsi_lun[0] = (lun >> 8) & 0xff; in sbp2_lun2int()
775 eight_bytes_lun.scsi_lun[1] = lun & 0xff; in sbp2_lun2int()
/drivers/scsi/qla4xxx/
Dql4_mbx.c1229 uint32_t scsi_lun[2]; in qla4xxx_reset_lun() local
1241 int_to_scsilun(lun, (struct scsi_lun *) scsi_lun); in qla4xxx_reset_lun()
1247 mbox_cmd[2] = cpu_to_le32(scsi_lun[0]); in qla4xxx_reset_lun()
1250 mbox_cmd[3] = cpu_to_le32(scsi_lun[1]); in qla4xxx_reset_lun()

123