Lines Matching refs:scsiio_req

2942 	struct scsi_cmnd *scmd, struct mpi3_scsi_io_request *scsiio_req)  in mpi3mr_setup_eedp()  argument
2958 scsiio_req->msg_flags |= MPI3_SCSIIO_MSGFLAGS_METASGL_VALID; in mpi3mr_setup_eedp()
2962 scsiio_req->msg_flags |= MPI3_SCSIIO_MSGFLAGS_METASGL_VALID; in mpi3mr_setup_eedp()
2966 scsiio_req->msg_flags |= MPI3_SCSIIO_MSGFLAGS_METASGL_VALID; in mpi3mr_setup_eedp()
2971 scsiio_req->sgl[0].eedp.application_tag_translation_mask = in mpi3mr_setup_eedp()
2976 scsiio_req->msg_flags |= MPI3_SCSIIO_MSGFLAGS_METASGL_VALID; in mpi3mr_setup_eedp()
2991 scsiio_req->cdb.eedp32.primary_reference_tag = in mpi3mr_setup_eedp()
3002 scsiio_req->sgl[0].eedp.user_data_size = MPI3_EEDP_UDS_512; in mpi3mr_setup_eedp()
3005 scsiio_req->sgl[0].eedp.user_data_size = MPI3_EEDP_UDS_520; in mpi3mr_setup_eedp()
3008 scsiio_req->sgl[0].eedp.user_data_size = MPI3_EEDP_UDS_4080; in mpi3mr_setup_eedp()
3011 scsiio_req->sgl[0].eedp.user_data_size = MPI3_EEDP_UDS_4088; in mpi3mr_setup_eedp()
3014 scsiio_req->sgl[0].eedp.user_data_size = MPI3_EEDP_UDS_4096; in mpi3mr_setup_eedp()
3017 scsiio_req->sgl[0].eedp.user_data_size = MPI3_EEDP_UDS_4104; in mpi3mr_setup_eedp()
3020 scsiio_req->sgl[0].eedp.user_data_size = MPI3_EEDP_UDS_4160; in mpi3mr_setup_eedp()
3026 scsiio_req->sgl[0].eedp.eedp_flags = cpu_to_le16(eedp_flags); in mpi3mr_setup_eedp()
3027 scsiio_req->sgl[0].eedp.flags = MPI3_SGE_FLAGS_ELEMENT_TYPE_EXTENDED; in mpi3mr_setup_eedp()
3396 struct scsi_cmnd *scmd, struct mpi3_scsi_io_request *scsiio_req) in mpi3mr_prepare_sg_scmd() argument
3409 u32 meta_sg = le32_to_cpu(scsiio_req->flags) & in mpi3mr_prepare_sg_scmd()
3422 sg_local = &scsiio_req->sgl[MPI3_SCSIIO_METASGL_INDEX]; in mpi3mr_prepare_sg_scmd()
3424 sg_local = &scsiio_req->sgl; in mpi3mr_prepare_sg_scmd()
3426 if (!scsiio_req->data_length && !meta_sg) { in mpi3mr_prepare_sg_scmd()
3459 if (scsiio_req->sgl[0].eedp.flags == in mpi3mr_prepare_sg_scmd()
3466 if (scsiio_req->msg_flags == in mpi3mr_prepare_sg_scmd()
3537 struct scsi_cmnd *scmd, struct mpi3_scsi_io_request *scsiio_req) in mpi3mr_build_sg_scmd() argument
3541 ret = mpi3mr_prepare_sg_scmd(mrioc, scmd, scsiio_req); in mpi3mr_build_sg_scmd()
3545 if (scsiio_req->msg_flags == MPI3_SCSIIO_MSGFLAGS_METASGL_VALID) { in mpi3mr_build_sg_scmd()
3547 scsiio_req->flags |= in mpi3mr_build_sg_scmd()
3549 ret = mpi3mr_prepare_sg_scmd(mrioc, scmd, scsiio_req); in mpi3mr_build_sg_scmd()
3984 struct scsi_cmnd *scmd, struct mpi3_scsi_io_request *scsiio_req, in mpi3mr_setup_divert_ws() argument
4004 scsiio_req->msg_flags |= in mpi3mr_setup_divert_ws()
4708 struct mpi3_scsi_io_request *scsiio_req = NULL; in mpi3mr_qcmd() local
4814 scsiio_req = (struct mpi3_scsi_io_request *)scmd_priv_data->mpi3mr_scsiio_req; in mpi3mr_qcmd()
4815 scsiio_req->function = MPI3_FUNCTION_SCSI_IO; in mpi3mr_qcmd()
4816 scsiio_req->host_tag = cpu_to_le16(host_tag); in mpi3mr_qcmd()
4818 mpi3mr_setup_eedp(mrioc, scmd, scsiio_req); in mpi3mr_qcmd()
4821 mpi3mr_setup_divert_ws(mrioc, scmd, scsiio_req, &scsiio_flags, in mpi3mr_qcmd()
4824 memcpy(scsiio_req->cdb.cdb32, scmd->cmnd, scmd->cmd_len); in mpi3mr_qcmd()
4825 scsiio_req->data_length = cpu_to_le32(scsi_bufflen(scmd)); in mpi3mr_qcmd()
4826 scsiio_req->dev_handle = cpu_to_le16(dev_handle); in mpi3mr_qcmd()
4827 scsiio_req->flags = cpu_to_le32(scsiio_flags); in mpi3mr_qcmd()
4829 (struct scsi_lun *)scsiio_req->lun); in mpi3mr_qcmd()
4831 if (mpi3mr_build_sg_scmd(mrioc, scmd, scsiio_req)) { in mpi3mr_qcmd()
4865 scsiio_req->msg_flags |= in mpi3mr_qcmd()
4869 scsiio_req->flags = cpu_to_le32(scsiio_flags); in mpi3mr_qcmd()