Lines Matching refs:SCp

282 	s->SCp.sent_command = s->SCp.phase;  in esp_advance_phase()
283 s->SCp.phase = newphase; in esp_advance_phase()
287 (__s)->SCp.sent_command = (__s)->SCp.phase; \
288 (__s)->SCp.phase = (__newphase);
914 sp->SCp.this_residual = sp->request_bufflen; in esp_get_dmabufs()
915 sp->SCp.buffer = (struct scatterlist *) sp->request_buffer; in esp_get_dmabufs()
916 sp->SCp.buffers_residual = 0; in esp_get_dmabufs()
920 sp->SCp.ptr = in esp_get_dmabufs()
923 sp->SCp.buffer = (struct scatterlist *) sp->buffer; in esp_get_dmabufs()
924 sp->SCp.buffers_residual = sp->use_sg - 1; in esp_get_dmabufs()
925 sp->SCp.this_residual = sp->SCp.buffer->length; in esp_get_dmabufs()
929 sp->SCp.ptr = in esp_get_dmabufs()
930 (char *) virt_to_phys(sp->SCp.buffer->address); in esp_get_dmabufs()
949 sp->SCp.ptr = ep->saved_ptr; in esp_restore_pointers()
950 sp->SCp.buffer = ep->saved_buffer; in esp_restore_pointers()
951 sp->SCp.this_residual = ep->saved_this_residual; in esp_restore_pointers()
952 sp->SCp.buffers_residual = ep->saved_buffers_residual; in esp_restore_pointers()
959 ep->saved_ptr = sp->SCp.ptr; in esp_save_pointers()
960 ep->saved_buffer = sp->SCp.buffer; in esp_save_pointers()
961 ep->saved_this_residual = sp->SCp.this_residual; in esp_save_pointers()
962 ep->saved_buffers_residual = sp->SCp.buffers_residual; in esp_save_pointers()
1246 SCpnt->SCp.phase = not_issued; in esp_queue()
1260 SCpnt->SCp.Status = CHECK_CONDITION; in esp_queue()
1261 SCpnt->SCp.Message = 0xff; in esp_queue()
1262 SCpnt->SCp.sent_command = 0; in esp_queue()
1297 phase_string(SCptr->SCp.sent_command), in esp_dump_cmd()
1298 phase_string(SCptr->SCp.phase))); in esp_dump_cmd()
1534 if(scp->SCp.sent_command != prev_phase) in skipahead1()
1547 scp->SCp.sent_command = new_phase; /* so we don't recurse... */ in skipahead1()
1556 if(scp->SCp.sent_command != prev_phase1 && in skipahead2()
1557 scp->SCp.sent_command != prev_phase2) in skipahead2()
1569 scp->SCp.sent_command = new_phase; /* so we don't recurse... */ in skipahead2()
1614 if(sp->SCp.phase == in_dataout) in esp100_sync_hwbug()
1727 sp->SCp.phase = not_issued; in esp_reconnect()
1745 ++sp->SCp.buffer; in advance_sg()
1746 --sp->SCp.buffers_residual; in advance_sg()
1747 sp->SCp.this_residual = sp->SCp.buffer->length; in advance_sg()
1751 sp->SCp.ptr = (char *)virt_to_phys(sp->SCp.buffer->address); in advance_sg()
1795 esp->dma_setup(esp, (__u32)((unsigned long)SCptr->SCp.ptr), in esp_do_data()
1822 hmuch = SCptr->SCp.this_residual; in esp_do_data()
1868 SCptr->SCp.ptr[i++] = esp_read(eregs->esp_fdata); in esp_do_data()
1890 esp_write(eregs->esp_fdata, SCptr->SCp.ptr[i++]); in esp_do_data()
1990 if(SCptr->SCp.phase == in_datain) { in esp_do_data_finale()
2026 if(SCptr->SCp.phase == in_dataout) in esp_do_data_finale()
2100 SCptr->use_sg, SCptr->SCp.ptr, SCptr->SCp.this_residual)); in esp_do_data_finale()
2109 SCptr->SCp.ptr += bytes_sent; in esp_do_data_finale()
2110 SCptr->SCp.this_residual -= bytes_sent; in esp_do_data_finale()
2111 if(SCptr->SCp.this_residual < 0) { in esp_do_data_finale()
2114 SCptr->SCp.this_residual = 0; in esp_do_data_finale()
2129 if(!SCptr->SCp.this_residual && SCptr->SCp.buffers_residual) in esp_do_data_finale()
2207 if(SCptr->SCp.Status != GOOD && in esp_do_freebus()
2208 SCptr->SCp.Status != CONDITION_GOOD && in esp_do_freebus()
2220 SCptr->SCp.Status, SCptr->target, SCptr->lun)); in esp_do_freebus()
2232 esp_done(esp, ((SCptr->SCp.Status & 0xff) | in esp_do_freebus()
2233 ((SCptr->SCp.Message & 0xff)<<8) | in esp_do_freebus()
2378 SCptr->SCp.Status = esp->esp_command[0]; in esp_do_status()
2379 SCptr->SCp.Message = esp->esp_command[1]; in esp_do_status()
2380 esp->prevmsgin = SCptr->SCp.Message; in esp_do_status()
2381 esp->cur_msgin[0] = SCptr->SCp.Message; in esp_do_status()
2393 SCptr->SCp.Status = esp->esp_command[0]; in esp_do_status()
2394 SCptr->SCp.Message = 0xff; in esp_do_status()
2411 ESPSTAT(("status=%2x msg=%2x, ", SCptr->SCp.Status, in esp_do_status()
2412 SCptr->SCp.Message)); in esp_do_status()
2413 if(SCptr->SCp.Message == COMMAND_COMPLETE) { in esp_do_status()
2486 phase_string(sp->SCp.phase), in esp_disconnect_amidst_phases()
2487 phase_string(sp->SCp.sent_command))); in esp_disconnect_amidst_phases()
2685 if(SCptr->SCp.phase == in_slct_norm) in esp_select_complete()
2750 (SCptr->SCp.phase == in_slct_msg || in esp_select_complete()
2751 SCptr->SCp.phase == in_slct_stop)) { in esp_select_complete()
2900 esp->current_SC->SCp.phase = in_freeing; in check_singlebyte_msg()
3129 if(SCptr->SCp.sent_command != in_status) { in esp_do_msgindone()
3189 if((SCptr->SCp.sent_command == in_msgindone) && in esp_do_msgindone()
3190 (SCptr->SCp.phase == in_freeing)) in esp_do_msgindone()
3344 esp->esp_id, esp->current_SC->SCp.phase)); in esp_bus_unexpected()
3378 phase = SCptr->SCp.phase; in esp_work_bus()
3487 phase = SCptr->SCp.phase; in esp_handle()
3513 } else if(SCptr->SCp.phase & in_slct_mask) { in esp_handle()