• Home
  • Raw
  • Download

Lines Matching full:scp

683 					  struct scsi_cmnd *SCp)  in remove_SC()  argument
688 ptr && SCp!=ptr; in remove_SC()
878 CURRENT_SC->SCp.phase |= 1 << 16; in setup_expected_interrupts()
880 if(CURRENT_SC->SCp.phase & selecting) { in setup_expected_interrupts()
885 SETPORT(SIMODE0, (CURRENT_SC->SCp.phase & spiordy) ? ENSPIORDY : 0); in setup_expected_interrupts()
914 SCpnt->SCp.phase = not_issued | phase; in aha152x_internal_queue()
915 SCpnt->SCp.Status = 0x1; /* Ilegal status by SCSI standard */ in aha152x_internal_queue()
916 SCpnt->SCp.Message = 0; in aha152x_internal_queue()
917 SCpnt->SCp.have_data_in = 0; in aha152x_internal_queue()
918 SCpnt->SCp.sent_command = 0; in aha152x_internal_queue()
920 if(SCpnt->SCp.phase & (resetting|check_condition)) { in aha152x_internal_queue()
937 SCp.ptr : buffer pointer in aha152x_internal_queue()
938 SCp.this_residual : buffer length in aha152x_internal_queue()
939 SCp.buffer : next buffer in aha152x_internal_queue()
940 SCp.phase : current state of the command */ in aha152x_internal_queue()
943 SCpnt->SCp.ptr = NULL; in aha152x_internal_queue()
944 SCpnt->SCp.this_residual = 0; in aha152x_internal_queue()
946 SCpnt->SCp.buffer = NULL; in aha152x_internal_queue()
949 SCpnt->SCp.buffer = scsi_sglist(SCpnt); in aha152x_internal_queue()
950 SCpnt->SCp.ptr = SG_ADDRESS(SCpnt->SCp.buffer); in aha152x_internal_queue()
951 SCpnt->SCp.this_residual = SCpnt->SCp.buffer->length; in aha152x_internal_queue()
1080 if(SCpnt->SCp.phase & resetted) { in aha152x_device_reset()
1375 CURRENT_SC->SCp.phase &= ~syncneg; in busfree_run()
1377 if(CURRENT_SC->SCp.phase & completed) { in busfree_run()
1379 …done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_OK <<… in busfree_run()
1381 } else if(CURRENT_SC->SCp.phase & aborted) { in busfree_run()
1382 …done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_ABORT… in busfree_run()
1384 } else if(CURRENT_SC->SCp.phase & resetted) { in busfree_run()
1385 …done(shpnt, (CURRENT_SC->SCp.Status & 0xff) | ((CURRENT_SC->SCp.Message & 0xff) << 8) | (DID_RESET… in busfree_run()
1387 } else if(CURRENT_SC->SCp.phase & disconnected) { in busfree_run()
1393 CURRENT_SC->SCp.phase |= 1 << 16; in busfree_run()
1412 if(DONE_SC->SCp.phase & check_condition) { in busfree_run()
1418 cmd->SCp.Status = SAM_STAT_CHECK_CONDITION; in busfree_run()
1423 } else if(DONE_SC->SCp.Status==SAM_STAT_CHECK_CONDITION) { in busfree_run()
1428 if(!(DONE_SC->SCp.phase & not_issued)) { in busfree_run()
1479 CURRENT_SC->SCp.phase |= selecting; in busfree_run()
1511 CURRENT_SC->SCp.phase &= ~(selecting|not_issued); in seldo_run()
1526 if (CURRENT_SC->SCp.phase & aborting) { in seldo_run()
1528 } else if (CURRENT_SC->SCp.phase & resetting) { in seldo_run()
1531 CURRENT_SC->SCp.phase |= syncneg; in seldo_run()
1552 CURRENT_SC->SCp.phase &= ~selecting; in selto_run()
1554 if (CURRENT_SC->SCp.phase & aborted) in selto_run()
1582 if(!(CURRENT_SC->SCp.phase & not_issued)) in seldi_run()
1676 CURRENT_SC->SCp.Message = MSGI(0); in msgi_run()
1677 CURRENT_SC->SCp.phase &= ~disconnected; in msgi_run()
1685 CURRENT_SC->SCp.Message = MSGI(0); in msgi_run()
1693 CURRENT_SC->SCp.phase |= disconnected; in msgi_run()
1697 CURRENT_SC->SCp.phase |= completed; in msgi_run()
1828 if((CURRENT_SC->SCp.phase & syncneg) && SYNCNEG==2 && SYNCRATE==0) { in msgo_init()
1856 CURRENT_SC->SCp.phase |= identified; in msgo_run()
1859 CURRENT_SC->SCp.phase |= aborted; in msgo_run()
1862 CURRENT_SC->SCp.phase |= resetted; in msgo_run()
1891 if (CURRENT_SC->SCp.sent_command) { in cmd_init()
1922 CURRENT_SC->SCp.sent_command++; in cmd_end()
1934 CURRENT_SC->SCp.Status = GETPORT(SCSIDAT); in status_run()
1995 if(CURRENT_SC->SCp.this_residual>0) { in datai_run()
1996 while(fifodata>0 && CURRENT_SC->SCp.this_residual>0) { in datai_run()
1997 data_count = fifodata > CURRENT_SC->SCp.this_residual ? in datai_run()
1998 CURRENT_SC->SCp.this_residual : in datai_run()
2004 *CURRENT_SC->SCp.ptr++ = GETPORT(DATAPORT); in datai_run()
2005 CURRENT_SC->SCp.this_residual--; in datai_run()
2012 insw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); in datai_run()
2013 CURRENT_SC->SCp.ptr += 2 * data_count; in datai_run()
2014 CURRENT_SC->SCp.this_residual -= 2 * data_count; in datai_run()
2018 if (CURRENT_SC->SCp.this_residual == 0 && in datai_run()
2019 !sg_is_last(CURRENT_SC->SCp.buffer)) { in datai_run()
2021 CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); in datai_run()
2022 CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); in datai_run()
2023 CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; in datai_run()
2095 while(TESTLO(DMASTAT, INTSTAT) && CURRENT_SC->SCp.this_residual>0) { in datao_run()
2097 if(data_count > CURRENT_SC->SCp.this_residual) in datao_run()
2098 data_count=CURRENT_SC->SCp.this_residual; in datao_run()
2109 SETPORT(DATAPORT, *CURRENT_SC->SCp.ptr++); in datao_run()
2110 CURRENT_SC->SCp.this_residual--; in datao_run()
2117 outsw(DATAPORT, CURRENT_SC->SCp.ptr, data_count); in datao_run()
2118 CURRENT_SC->SCp.ptr += 2 * data_count; in datao_run()
2119 CURRENT_SC->SCp.this_residual -= 2 * data_count; in datao_run()
2123 if (CURRENT_SC->SCp.this_residual == 0 && in datao_run()
2124 !sg_is_last(CURRENT_SC->SCp.buffer)) { in datao_run()
2126 CURRENT_SC->SCp.buffer = sg_next(CURRENT_SC->SCp.buffer); in datao_run()
2127 CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer); in datao_run()
2128 CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length; in datao_run()
2161 CURRENT_SC->SCp.buffer = sg; in datao_end()
2162 CURRENT_SC->SCp.ptr = SG_ADDRESS(CURRENT_SC->SCp.buffer) + done; in datao_end()
2163 CURRENT_SC->SCp.this_residual = CURRENT_SC->SCp.buffer->length - in datao_end()
2192 } else if(stat0 & SELDO && CURRENT_SC && (CURRENT_SC->SCp.phase & selecting)) { in update_state()
2324 CURRENT_SC->SCp.phase &= ~spiordy; in is_complete()
2346 CURRENT_SC->SCp.phase |= spiordy; in is_complete()
2441 (ptr->SCp.phase & not_issued) ? "not issued|" : "", in show_command()
2442 (ptr->SCp.phase & selecting) ? "selecting|" : "", in show_command()
2443 (ptr->SCp.phase & identified) ? "identified|" : "", in show_command()
2444 (ptr->SCp.phase & disconnected) ? "disconnected|" : "", in show_command()
2445 (ptr->SCp.phase & completed) ? "completed|" : "", in show_command()
2446 (ptr->SCp.phase & spiordy) ? "spiordy|" : "", in show_command()
2447 (ptr->SCp.phase & syncneg) ? "syncneg|" : "", in show_command()
2448 (ptr->SCp.phase & aborted) ? "aborted|" : "", in show_command()
2449 (ptr->SCp.phase & resetted) ? "resetted|" : "", in show_command()
2491 scsi_get_resid(ptr), ptr->SCp.this_residual, in get_command()
2492 sg_nents(ptr->SCp.buffer) - 1); in get_command()
2494 if (ptr->SCp.phase & not_issued) in get_command()
2496 if (ptr->SCp.phase & selecting) in get_command()
2498 if (ptr->SCp.phase & disconnected) in get_command()
2500 if (ptr->SCp.phase & aborted) in get_command()
2502 if (ptr->SCp.phase & identified) in get_command()
2504 if (ptr->SCp.phase & completed) in get_command()
2506 if (ptr->SCp.phase & spiordy) in get_command()
2508 if (ptr->SCp.phase & syncneg) in get_command()