• Home
  • Raw
  • Download

Lines Matching refs:fcp

121 	struct fcp_resp_with_ext *fcp;  in ft_queue_status()  local
132 len = sizeof(*fcp) + se_cmd->scsi_sense_length; in ft_queue_status()
139 fcp = fc_frame_payload_get(fp, len); in ft_queue_status()
140 memset(fcp, 0, len); in ft_queue_status()
141 fcp->resp.fr_status = se_cmd->scsi_status; in ft_queue_status()
145 fcp->resp.fr_flags |= FCP_SNS_LEN_VAL; in ft_queue_status()
146 fcp->ext.fr_sns_len = htonl(len); in ft_queue_status()
147 memcpy((fcp + 1), se_cmd->sense_buffer, len); in ft_queue_status()
156 fcp->resp.fr_flags |= FCP_RESID_OVER; in ft_queue_status()
158 fcp->resp.fr_flags |= FCP_RESID_UNDER; in ft_queue_status()
159 fcp->ext.fr_resid = cpu_to_be32(se_cmd->residual_count); in ft_queue_status()
296 struct fcp_resp_with_ext *fcp; in ft_send_resp_status() local
302 len = sizeof(*fcp); in ft_send_resp_status()
308 fcp = fc_frame_payload_get(fp, len); in ft_send_resp_status()
309 memset(fcp, 0, len); in ft_send_resp_status()
310 fcp->resp.fr_status = status; in ft_send_resp_status()
312 fcp->ext.fr_rsp_len = htonl(sizeof(*info)); in ft_send_resp_status()
313 fcp->resp.fr_flags |= FCP_RSP_LEN_VAL; in ft_send_resp_status()
314 info = (struct fcp_resp_rsp_info *)(fcp + 1); in ft_send_resp_status()
355 struct fcp_cmnd *fcp; in ft_send_tm() local
359 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp)); in ft_send_tm()
361 switch (fcp->fc_tm_flags) { in ft_send_tm()
382 pr_debug("invalid FCP tm_flags %x\n", fcp->fc_tm_flags); in ft_send_tm()
389 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun), in ft_send_tm()
505 struct fcp_cmnd *fcp; in ft_send_work() local
509 fcp = fc_frame_payload_get(cmd->req_frame, sizeof(*fcp)); in ft_send_work()
510 if (!fcp) in ft_send_work()
513 if (fcp->fc_flags & FCP_CFL_LEN_MASK) in ft_send_work()
519 if (fcp->fc_tm_flags) { in ft_send_work()
524 switch (fcp->fc_flags & (FCP_CFL_RDDATA | FCP_CFL_WRDATA)) { in ft_send_work()
540 switch (fcp->fc_pri_ta & FCP_PTA_MASK) { in ft_send_work()
561 if (target_submit_cmd(&cmd->se_cmd, cmd->sess->se_sess, fcp->fc_cdb, in ft_send_work()
562 &cmd->ft_sense_buffer[0], scsilun_to_int(&fcp->fc_lun), in ft_send_work()
563 ntohl(fcp->fc_dl), task_attr, data_dir, 0)) in ft_send_work()