Lines Matching refs:sts

1295 static int qlogicpti_return_status(struct Status_Entry *sts, int id)  in qlogicpti_return_status()  argument
1299 switch (sts->completion_status) { in qlogicpti_return_status()
1304 if (!(sts->state_flags & SF_GOT_BUS)) in qlogicpti_return_status()
1306 else if (!(sts->state_flags & SF_GOT_TARGET)) in qlogicpti_return_status()
1308 else if (!(sts->state_flags & SF_SENT_CDB)) in qlogicpti_return_status()
1310 else if (!(sts->state_flags & SF_TRANSFERRED_DATA)) in qlogicpti_return_status()
1312 else if (!(sts->state_flags & SF_GOT_STATUS)) in qlogicpti_return_status()
1314 else if (!(sts->state_flags & SF_GOT_SENSE)) in qlogicpti_return_status()
1351 id, sts->completion_status); in qlogicpti_return_status()
1356 return (sts->scsi_status & STATUS_MASK) | (host_status << 16); in qlogicpti_return_status()
1362 struct Status_Entry *sts; in qlogicpti_intr_handler() local
1390 sts = (struct Status_Entry *) &qpti->res_cpu[out_ptr]; in qlogicpti_intr_handler()
1397 cmd_slot = sts->handle; in qlogicpti_intr_handler()
1401 if (sts->completion_status == CS_RESET_OCCURRED || in qlogicpti_intr_handler()
1402 sts->completion_status == CS_ABORTED || in qlogicpti_intr_handler()
1403 (sts->status_flags & STF_BUS_RESET)) in qlogicpti_intr_handler()
1406 if (sts->state_flags & SF_GOT_SENSE) in qlogicpti_intr_handler()
1407 memcpy(Cmnd->sense_buffer, sts->req_sense_data, in qlogicpti_intr_handler()
1410 if (sts->hdr.entry_type == ENTRY_STATUS) in qlogicpti_intr_handler()
1412 qlogicpti_return_status(sts, qpti->qpti_id); in qlogicpti_intr_handler()