Lines Matching refs:sts
1437 struct Status_Entry *sts; in isp2x00_intr_handler() local
1543 sts = (struct Status_Entry *) &hostdata->res[out_ptr*QUEUE_ENTRY_LEN]; in isp2x00_intr_handler()
1547 DEBUG_INTR(isp2x00_print_status_entry(sts)); in isp2x00_intr_handler()
1548 le_hand = le32_to_cpu(sts->handle); in isp2x00_intr_handler()
1549 if (sts->hdr.entry_type == ENTRY_STATUS && (Cmnd = hostdata->handle_ptrs[le_hand])) { in isp2x00_intr_handler()
1550 Cmnd->result = isp2x00_return_status(Cmnd, sts); in isp2x00_intr_handler()
1570 || le16_to_cpu(sts->completion_status) == CS_ABORTED){ in isp2x00_intr_handler()
1584 …LOOP_DOWN || sts->completion_status == cpu_to_le16(CS_PORT_UNAVAILABLE) || sts->completion_status … in isp2x00_intr_handler()
1595 if (sts->completion_status == cpu_to_le16(CS_RESET_OCCURRED) in isp2x00_intr_handler()
1596 || (sts->status_flags & cpu_to_le16(STF_BUS_RESET))) in isp2x00_intr_handler()
1599 if (le16_to_cpu(sts->scsi_status) & 0x0200) in isp2x00_intr_handler()
1600 memcpy(Cmnd->sense_buffer, sts->req_sense_data, in isp2x00_intr_handler()
1629 static int isp2x00_return_status(Scsi_Cmnd *Cmnd, struct Status_Entry *sts) in isp2x00_return_status() argument
1651 le16_to_cpu(sts->completion_status))); in isp2x00_return_status()
1653 switch (le16_to_cpu(sts->completion_status)) { in isp2x00_return_status()
1673 if (Cmnd->underflow <= (Cmnd->request_bufflen - le32_to_cpu(sts->residual))) in isp2x00_return_status()
1688 le16_to_cpu(sts->completion_status)); in isp2x00_return_status()
1694 reason[host_status], le16_to_cpu(sts->scsi_status))); in isp2x00_return_status()
1698 return (le16_to_cpu(sts->scsi_status) & STATUS_MASK) | (host_status << 16); in isp2x00_return_status()