Lines Matching refs:icmnd_cmpl
410 struct snic_icmnd_cmpl *icmnd_cmpl, in snic_process_io_failed_state() argument
429 scsi_set_resid(sc, le32_to_cpu(icmnd_cmpl->resid)); in snic_process_io_failed_state()
478 sc->result = (res << 16) | icmnd_cmpl->scsi_status; in snic_process_io_failed_state()
499 struct snic_icmnd_cmpl *icmnd_cmpl, in snic_process_icmnd_cmpl_status() argument
503 u8 scsi_stat = icmnd_cmpl->scsi_status; in snic_process_icmnd_cmpl_status()
516 scsi_set_resid(sc, le32_to_cpu(icmnd_cmpl->resid)); in snic_process_icmnd_cmpl_status()
518 if (icmnd_cmpl->flags & SNIC_ICMND_CMPL_UNDR_RUN) { in snic_process_icmnd_cmpl_status()
519 xfer_len -= le32_to_cpu(icmnd_cmpl->resid); in snic_process_icmnd_cmpl_status()
523 if (icmnd_cmpl->scsi_status == SAM_STAT_TASK_SET_FULL) in snic_process_icmnd_cmpl_status()
528 snic_process_io_failed_state(snic, icmnd_cmpl, sc, cmpl_stat); in snic_process_icmnd_cmpl_status()
551 struct snic_icmnd_cmpl *icmnd_cmpl = NULL; in snic_icmnd_cmpl_handler() local
559 icmnd_cmpl = &fwreq->u.icmnd_cmpl; in snic_icmnd_cmpl_handler()
560 sc_stat = icmnd_cmpl->scsi_status; in snic_icmnd_cmpl_handler()
586 (u64)sc_stat << 8 | (u64)icmnd_cmpl->flags), in snic_icmnd_cmpl_handler()
587 (ulong) fwreq, le32_to_cpu(icmnd_cmpl->resid), ctx); in snic_icmnd_cmpl_handler()
645 sc, sc_stat, le32_to_cpu(icmnd_cmpl->resid), in snic_icmnd_cmpl_handler()
655 if (snic_process_icmnd_cmpl_status(snic, icmnd_cmpl, hdr_stat, sc)) { in snic_icmnd_cmpl_handler()