Lines Matching defs:fcp
127 struct fcp_resp_with_ext *fcp;
138 len = sizeof(*fcp) + se_cmd->scsi_sense_length;
145 fcp = fc_frame_payload_get(fp, len);
146 memset(fcp, 0, len);
147 fcp->resp.fr_status = se_cmd->scsi_status;
151 fcp->resp.fr_flags |= FCP_SNS_LEN_VAL;
152 fcp->ext.fr_sns_len = htonl(len);
153 memcpy((fcp + 1), se_cmd->sense_buffer, len);
162 fcp->resp.fr_flags |= FCP_RESID_OVER;
164 fcp->resp.fr_flags |= FCP_RESID_UNDER;
165 fcp->ext.fr_resid = cpu_to_be32(se_cmd->residual_count);
311 struct fcp_resp_with_ext *fcp;
317 len = sizeof(*fcp);
323 fcp = fc_frame_payload_get(fp, len);
324 memset(fcp, 0, len);
325 fcp->resp.fr_status = status;
327 fcp->ext.fr_rsp_len = htonl(sizeof(*info));
328 fcp->resp.fr_flags |= FCP_RSP_LEN_VAL;
329 info = (struct fcp_resp_rsp_info *)(fcp + 1);
370 struct fcp_cmnd *fcp;
374 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp));
376 switch (fcp->fc_tm_flags) {
397 pr_debug("invalid FCP tm_flags %x\n", fcp->fc_tm_flags);
404 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
437 pr_debug("tmr fn %d resp %d fcp code %d\n",
520 struct fcp_cmnd *fcp;
524 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp));
525 if (!fcp)
528 if (fcp->fc_flags & FCP_CFL_LEN_MASK)
534 if (fcp->fc_tm_flags) {
539 switch (fcp->fc_flags & (FCP_CFL_RDDATA | FCP_CFL_WRDATA)) {
555 switch (fcp->fc_pri_ta & FCP_PTA_MASK) {
575 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb,
576 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun),
577 ntohl(fcp->fc_dl), task_attr, data_dir, 0))