Lines Matching refs:fcp
104 struct fcp_resp_with_ext *fcp;
115 len = sizeof(*fcp) + se_cmd->scsi_sense_length;
122 fcp = fc_frame_payload_get(fp, len);
123 memset(fcp, 0, len);
124 fcp->resp.fr_status = se_cmd->scsi_status;
128 fcp->resp.fr_flags |= FCP_SNS_LEN_VAL;
129 fcp->ext.fr_sns_len = htonl(len);
130 memcpy((fcp + 1), se_cmd->sense_buffer, len);
139 fcp->resp.fr_flags |= FCP_RESID_OVER;
141 fcp->resp.fr_flags |= FCP_RESID_UNDER;
142 fcp->ext.fr_resid = cpu_to_be32(se_cmd->residual_count);
273 struct fcp_resp_with_ext *fcp;
279 len = sizeof(*fcp);
285 fcp = fc_frame_payload_get(fp, len);
286 memset(fcp, 0, len);
287 fcp->resp.fr_status = status;
289 fcp->ext.fr_rsp_len = htonl(sizeof(*info));
290 fcp->resp.fr_flags |= FCP_RSP_LEN_VAL;
291 info = (struct fcp_resp_rsp_info *)(fcp + 1);
332 struct fcp_cmnd *fcp;
336 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp));
338 switch (fcp->fc_tm_flags) {
359 pr_debug("invalid FCP tm_flags %x\n", fcp->fc_tm_flags);
366 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
399 pr_debug("tmr fn %d resp %d fcp code %d\n",
489 struct fcp_cmnd *fcp;
493 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp));
494 if (!fcp)
497 if (fcp->fc_flags & FCP_CFL_LEN_MASK)
503 if (fcp->fc_tm_flags) {
508 switch (fcp->fc_flags & (FCP_CFL_RDDATA | FCP_CFL_WRDATA)) {
524 switch (fcp->fc_pri_ta & FCP_PTA_MASK) {
548 scsilun_to_int(&fcp->fc_lun), ntohl(fcp->fc_dl),
552 if (target_submit_prep(&cmd->se_cmd, fcp->fc_cdb, NULL, 0, NULL, 0,