Lines Matching refs:fcp
225 * @fcp: fcp_cmnd to setup
229 void zfcp_fc_scsi_to_fcp(struct fcp_cmnd *fcp, struct scsi_cmnd *scsi)
233 int_to_scsilun(scsi->device->lun, (struct scsi_lun *) &fcp->fc_lun);
235 fcp->fc_pri_ta = FCP_PTA_SIMPLE;
238 fcp->fc_flags |= FCP_CFL_RDDATA;
240 fcp->fc_flags |= FCP_CFL_WRDATA;
242 memcpy(fcp->fc_cdb, scsi->cmnd, scsi->cmd_len);
245 fcp->fc_dl = cpu_to_be32(datalen);
249 fcp->fc_dl = cpu_to_be32(datalen);
255 * @fcp: Pointer to FCP_CMND IU to set up.
260 void zfcp_fc_fcp_tm(struct fcp_cmnd *fcp, struct scsi_device *dev, u8 tm_flags)
262 int_to_scsilun(dev->lun, (struct scsi_lun *) &fcp->fc_lun);
263 fcp->fc_tm_flags = tm_flags;