Lines Matching refs:fcp
105 struct fcp_resp_with_ext *fcp;
116 len = sizeof(*fcp) + se_cmd->scsi_sense_length;
123 fcp = fc_frame_payload_get(fp, len);
124 memset(fcp, 0, len);
125 fcp->resp.fr_status = se_cmd->scsi_status;
129 fcp->resp.fr_flags |= FCP_SNS_LEN_VAL;
130 fcp->ext.fr_sns_len = htonl(len);
131 memcpy((fcp + 1), se_cmd->sense_buffer, len);
140 fcp->resp.fr_flags |= FCP_RESID_OVER;
142 fcp->resp.fr_flags |= FCP_RESID_UNDER;
143 fcp->ext.fr_resid = cpu_to_be32(se_cmd->residual_count);
279 struct fcp_resp_with_ext *fcp;
285 len = sizeof(*fcp);
291 fcp = fc_frame_payload_get(fp, len);
292 memset(fcp, 0, len);
293 fcp->resp.fr_status = status;
295 fcp->ext.fr_rsp_len = htonl(sizeof(*info));
296 fcp->resp.fr_flags |= FCP_RSP_LEN_VAL;
297 info = (struct fcp_resp_rsp_info *)(fcp + 1);
338 struct fcp_cmnd *fcp;
342 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp));
344 switch (fcp->fc_tm_flags) {
365 pr_debug("invalid FCP tm_flags %x\n", fcp->fc_tm_flags);
372 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
405 pr_debug("tmr fn %d resp %d fcp code %d\n",
495 struct fcp_cmnd *fcp;
499 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp));
500 if (!fcp)
503 if (fcp->fc_flags & FCP_CFL_LEN_MASK)
509 if (fcp->fc_tm_flags) {
514 switch (fcp->fc_flags & (FCP_CFL_RDDATA | FCP_CFL_WRDATA)) {
530 switch (fcp->fc_pri_ta & FCP_PTA_MASK) {
551 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb,
552 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
553 ntohl(fcp->fc_dl), task_attr, data_dir,