Lines Matching refs:lun_id
1136 uint8_t target_id, lun_id; in megasas_dcmd_pd_get_info() local
1147 lun_id = pd_id & 0xFF; in megasas_dcmd_pd_get_info()
1148 sdev = scsi_device_find(&s->bus, 0, target_id, lun_id); in megasas_dcmd_pd_get_info()
1703 int target_id, lun_id, cdb_len; in megasas_handle_scsi() local
1710 lun_id = cmd->frame->header.lun_id; in megasas_handle_scsi()
1714 if (target_id >= MFI_MAX_LD || lun_id != 0) { in megasas_handle_scsi()
1716 mfi_frame_desc(frame_cmd), is_logical, target_id, lun_id); in megasas_handle_scsi()
1720 sdev = scsi_device_find(&s->bus, 0, target_id, lun_id); in megasas_handle_scsi()
1724 target_id, lun_id, sdev, cmd->iov_size); in megasas_handle_scsi()
1728 mfi_frame_desc(frame_cmd), is_logical, target_id, lun_id); in megasas_handle_scsi()
1735 target_id, lun_id, cdb_len); in megasas_handle_scsi()
1749 cmd->req = scsi_req_new(sdev, cmd->index, lun_id, cdb, cdb_len, cmd); in megasas_handle_scsi()
1752 mfi_frame_desc(frame_cmd), target_id, lun_id); in megasas_handle_scsi()
1781 int target_id, lun_id; in megasas_handle_io() local
1789 lun_id = cmd->frame->header.lun_id; in megasas_handle_io()
1791 if (target_id < MFI_MAX_LD && lun_id == 0) { in megasas_handle_io()
1792 sdev = scsi_device_find(&s->bus, 0, target_id, lun_id); in megasas_handle_io()
1796 mfi_frame_desc(frame_cmd), target_id, lun_id, in megasas_handle_io()
1800 mfi_frame_desc(frame_cmd), target_id, lun_id); in megasas_handle_io()
1814 lun_id, cdb, sizeof(cdb), cmd); in megasas_handle_io()
1817 mfi_frame_desc(frame_cmd), target_id, lun_id); in megasas_handle_io()