• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/scsi/arm/

Lines Matching refs:scsi

2  *  linux/drivers/acorn/scsi/acornscsi.c
19 * state not scsi state. Should be easier to debug.
21 * Updated proc/scsi reporting.
56 * cating (eg) /proc/scsi/acornscsi/0 and see if the SCSI revision is reported
144 #include "../scsi.h"
145 #include <scsi/scsi_dbg.h>
146 #include <scsi/scsi_host.h>
147 #include <scsi/scsi_transport_spi.h>
150 #include "scsi.h"
152 #include <scsi/scsicam.h>
253 printk("scsi%d: %s: DMAC %02x @%06x+%04x msk %02x, ",
259 printk("BH @%p +%04x, ", host->scsi.SCp.ptr,
260 host->scsi.SCp.this_residual);
262 host->scsi.SCp.scsi_xferred);
293 printk("scsi%d: timeout while %s\n", host->host->host_no, msg);
350 printk("scsi%d: timeout while resetting card\n",
371 printk("scsi%d: timeout while resetting card\n",
376 printk(KERN_CRIT "scsi%d: WD33C93A didn't give enhanced reset interrupt\n",
397 host->scsi.phase = PHASE_IDLE;
398 host->scsi.disconnectable = 0;
500 printk("scsi: ");
504 printk("sbic: %02X scsi: %X:%X ph: %02X\n",
727 if (host->scsi.disconnectable && host->SCpnt) {
729 host->scsi.disconnectable = 0;
731 DBG(host->SCpnt, printk("scsi%d.%c: moved command to disconnected queue\n",
750 host->scsi.phase = PHASE_CONNECTING;
752 host->scsi.SCp = SCpnt->SCp;
758 DBG(SCpnt,printk("scsi%d.%c: starting cmd %02X\n",
816 SCpnt->result = result << 16 | host->scsi.SCp.Message << 8 | host->scsi.SCp.Status;
830 if (host->scsi.SCp.ptr &&
834 if (host->scsi.SCp.scsi_xferred < SCpnt->underflow ||
835 host->scsi.SCp.scsi_xferred != host->dma.transferred)
864 printk(KERN_ERR "scsi%d.H: incomplete data transfer detected: result=%08X command=",
876 panic("scsi%d.H: null scsi_done function in acornscsi_done", host->host->host_no);
882 printk("scsi%d: null command in acornscsi_done", host->host->host_no);
884 host->scsi.phase = PHASE_IDLE;
1036 printk(KERN_CRIT "scsi%d.%c: I can't handle DMA_OUT!\n",
1048 length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2);
1058 acornscsi_data_write(host, host->scsi.SCp.ptr, host->dma.start_addr,
1079 * Purpose : ensure that all DMA transfers are up-to-date & host->scsi.SCp is correct
1120 acornscsi_data_read(host, host->scsi.SCp.ptr,
1126 acornscsi_data_updateptr(host, &host->scsi.SCp, transferred);
1167 host->dma.xfer_ptr = host->scsi.SCp.ptr;
1171 acornscsi_data_updateptr(host, &host->scsi.SCp, transferred);
1176 length = min_t(unsigned int, host->scsi.SCp.this_residual, DMAC_BUFFER_SIZE / 2);
1186 acornscsi_data_write(host, host->scsi.SCp.ptr, host->dma.start_addr,
1237 * host->scsi.SCp.scsi_xferred is the number of bytes
1242 * real_dma_addr = host->dma.start_addr + host->scsi.SCp.scsi_xferred
1245 transferred = host->scsi.SCp.scsi_xferred - host->dma.transferred;
1247 printk("scsi%d.%c: Ack! DMA write correction %ld < 0!\n",
1304 sbic_arm_writenext(host, SCpnt->cmd_len - host->scsi.SCp.sent_command);
1309 (int *)&host->scsi.SCp.sent_command, SCpnt->cmd_len, 1000000))
1310 printk("scsi%d: timeout while sending command\n", host->host->host_no);
1312 host->scsi.phase = PHASE_COMMAND;
1318 unsigned int message_length = msgqueue_msglength(&host->scsi.msgs);
1323 printk("scsi%d.%c: sending message ",
1335 host->scsi.last_message = NOP;
1343 msg = msgqueue_getmsg(&host->scsi.msgs, 0);
1349 host->scsi.last_message = msg->msg[0];
1370 while ((msg = msgqueue_getmsg(&host->scsi.msgs, msgnr++)) != NULL) {
1377 printk("scsi%d: timeout while sending message\n", host->host->host_no);
1379 host->scsi.last_message = msg->msg[0];
1381 host->scsi.last_message |= msg->msg[2] << 8;
1403 host->scsi.SCp.Status = sbic_arm_read(host, SBIC_DATA);
1467 printk("scsi%d.%c: message in: ",
1473 if (host->scsi.phase == PHASE_RECONNECTED) {
1481 host->scsi.reconnected.tag = message[1];
1483 host->scsi.phase = PHASE_MSGIN;
1490 if (host->scsi.phase != PHASE_STATUSIN) {
1491 printk(KERN_ERR "scsi%d.%c: command complete following non-status in phase?\n",
1495 host->scsi.phase = PHASE_DONE;
1496 host->scsi.SCp.Message = message[0];
1507 host->SCpnt->SCp = host->scsi.SCp;
1509 host->scsi.phase = PHASE_MSGIN;
1523 host->scsi.SCp = host->SCpnt->SCp;
1524 host->scsi.phase = PHASE_MSGIN;
1538 host->scsi.phase = PHASE_DISCONNECT;
1546 if (msgqueue_msglength(&host->scsi.msgs))
1549 switch (host->scsi.last_message) {
1560 printk(KERN_NOTICE "scsi%d.%c: disabling tagged queueing\n",
1570 printk(KERN_NOTICE "scsi%d.%c: Using asynchronous transfer\n",
1588 printk("scsi%d.%c: reconnect queue tag %02X\n",
1605 printk(KERN_NOTICE "scsi%d.%c: Using synchronous transfer, offset %d, %d ns\n",
1619 msgqueue_addmsg(&host->scsi.msgs, 5, EXTENDED_MESSAGE, 3,
1638 msgqueue_flush(&host->scsi.msgs);
1639 msgqueue_addmsg(&host->scsi.msgs, 1, MESSAGE_REJECT);
1652 printk("scsi%d.%c: lun %d tag %d linked command complete\n",
1660 printk(KERN_WARNING "scsi%d.%c: lun %d tag %d linked command complete, but no next_link\n",
1663 msgqueue_addmsg(&host->scsi.msgs, 1, ABORT);
1671 SCpnt->result = DID_OK | host->scsi.SCp.Message << 8 | host->Scsi.SCp.Status;
1681 printk(KERN_ERR "scsi%d.%c: unrecognised message %02X, rejecting\n",
1685 msgqueue_flush(&host->scsi.msgs);
1686 msgqueue_addmsg(&host->scsi.msgs, 1, MESSAGE_REJECT);
1687 host->scsi.phase = PHASE_MSGIN;
1702 msgqueue_addmsg(&host->scsi.msgs, 1,
1717 msgqueue_addmsg(&host->scsi.msgs, 2, tag_type, host->SCpnt->tag);
1724 msgqueue_addmsg(&host->scsi.msgs, 5,
1742 if (!host->scsi.SCp.ptr /*&& host->scsi.SCp.this_residual*/) {
1743 printk(KERN_ERR "scsi%d.%c: null buffer passed to acornscsi_starttransfer\n",
1748 residual = scsi_bufflen(host->SCpnt) - host->scsi.SCp.scsi_xferred;
1777 printk(KERN_ERR "scsi%d: invalid source id after reselection "
1783 if (host->SCpnt && !host->scsi.disconnectable) {
1784 printk(KERN_ERR "scsi%d.%d: reconnected while command in "
1792 host->scsi.reconnected.target = target;
1793 host->scsi.reconnected.lun = lun;
1794 host->scsi.reconnected.tag = 0;
1796 if (host->scsi.disconnectable && host->SCpnt &&
1803 ADD_STATUS(target, 0x81, host->scsi.phase, 0);
1806 host->scsi.phase = PHASE_RECONNECTED;
1809 printk(KERN_ERR "scsi%d.%c: reselected with no command "
1832 if (host->scsi.disconnectable && host->SCpnt) {
1833 host->scsi.disconnectable = 0;
1834 if (host->SCpnt->device->id == host->scsi.reconnected.target &&
1835 host->SCpnt->device->lun == host->scsi.reconnected.lun &&
1836 host->SCpnt->tag == host->scsi.reconnected.tag) {
1838 DBG(host->SCpnt, printk("scsi%d.%c: reconnected",
1844 DBG(host->SCpnt, printk("scsi%d.%c: had to move command "
1853 host->scsi.reconnected.target,
1854 host->scsi.reconnected.lun,
1855 host->scsi.reconnected.tag);
1857 DBG(host->SCpnt, printk("scsi%d.%c: had to get command",
1863 acornscsi_abortcmd(host, host->scsi.reconnected.tag);
1868 host->scsi.SCp = host->SCpnt->SCp;
1871 host->scsi.SCp.ptr, host->scsi.SCp.this_residual);
1878 host->dma.transferred = host->scsi.SCp.scsi_xferred;
1891 printk(KERN_ERR "scsi%d.%c: unexpected disconnect\n",
1909 host->scsi.phase = PHASE_ABORTED;
1912 msgqueue_flush(&host->scsi.msgs);
1915 msgqueue_addmsg(&host->scsi.msgs, 2, ABORT_TAG, tag);
1918 msgqueue_addmsg(&host->scsi.msgs, 1, ABORT);
1944 print_sbic_status(asr, ssr, host->scsi.phase);
1947 ADD_STATUS(8, ssr, host->scsi.phase, in_irq);
1949 if (host->SCpnt && !host->scsi.disconnectable)
1950 ADD_STATUS(host->SCpnt->device->id, ssr, host->scsi.phase, in_irq);
1954 printk(KERN_ERR "scsi%d: reset in standard mode but wanted advanced mode.\n",
1966 msgqueue_flush(&host->scsi.msgs);
1974 switch (host->scsi.phase) {
1979 host->scsi.phase = PHASE_CONNECTED;
1980 msgqueue_flush(&host->scsi.msgs);
1981 host->dma.transferred = host->scsi.SCp.scsi_xferred;
1987 ADD_STATUS(8, ssr, host->scsi.phase, 1);
1988 ADD_STATUS(host->SCpnt->device->id, ssr, host->scsi.phase, 1);
2000 msgqueue_flush(&host->scsi.msgs);
2005 printk(KERN_ERR "scsi%d.%c: PHASE_CONNECTING, SSR %02X?\n",
2024 host->scsi.phase = PHASE_STATUSIN;
2030 host->scsi.phase = PHASE_MSGOUT;
2041 printk(KERN_ERR "scsi%d.%c: PHASE_CONNECTED, SSR %02X?\n",
2064 host->scsi.phase = PHASE_STATUSIN;
2079 printk(KERN_ERR "scsi%d.%c: PHASE_MSGOUT, SSR %02X?\n",
2089 if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len)
2094 host->scsi.phase = PHASE_DATAOUT;
2099 if (host->scsi.SCp.sent_command != host->SCpnt->cmd_len)
2104 host->scsi.phase = PHASE_DATAIN;
2110 host->scsi.phase = PHASE_STATUSIN;
2124 printk(KERN_ERR "scsi%d.%c: PHASE_COMMAND, SSR %02X?\n",
2132 host->scsi.disconnectable = 1;
2133 host->scsi.reconnected.tag = 0;
2134 host->scsi.phase = PHASE_IDLE;
2137 printk(KERN_ERR "scsi%d.%c: PHASE_DISCONNECT, SSR %02X instead of disconnect?\n",
2147 printk(KERN_ERR "scsi%d.%c: PHASE_IDLE, SSR %02X while idle?\n",
2164 ADD_STATUS(host->SCpnt->device->id, ssr, host->scsi.phase, in_irq);
2172 host->scsi.phase = PHASE_DATAOUT;
2181 host->scsi.phase = PHASE_DATAIN;
2193 host->scsi.phase = PHASE_STATUSIN;
2207 printk(KERN_ERR "scsi%d.%c: PHASE_RECONNECTED, SSR %02X after reconnect?\n",
2228 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) -
2232 host->scsi.phase = PHASE_STATUSIN;
2239 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) -
2249 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) -
2256 printk(KERN_ERR "scsi%d.%c: PHASE_DATAIN, SSR %02X?\n",
2277 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) -
2282 host->scsi.phase = PHASE_STATUSIN;
2289 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) -
2300 host->scsi.SCp.scsi_xferred = scsi_bufflen(host->SCpnt) -
2308 printk(KERN_ERR "scsi%d.%c: PHASE_DATAOUT, SSR %02X?\n",
2329 printk(KERN_ERR "scsi%d.%c: PHASE_STATUSIN, SSR %02X instead of MESSAGE_IN?\n",
2352 printk("scsi%d.%c: strange message in disconnection\n",
2359 printk(KERN_ERR "scsi%d.%c: PHASE_MSGIN, SSR %02X after message in?\n",
2377 printk(KERN_ERR "scsi%d.%c: PHASE_DONE, SSR %02X instead of disconnect?\n",
2389 clear_bit(host->scsi.reconnected.target * 8 + host->scsi.reconnected.lun,
2391 host->scsi.phase = PHASE_IDLE;
2403 printk(KERN_ERR "scsi%d.%c: PHASE_ABORTED, SSR %02X?\n",
2410 printk(KERN_ERR "scsi%d.%c: unknown driver phase %d\n",
2462 * Interfaces between interrupt handler and rest of scsi code
2479 panic("scsi%d: queuecommand called with NULL done function [cmd=%p]",
2486 printk(KERN_CRIT "scsi%d.%c: WRITE attempted with NO_WRITE flag set\n",
2515 if (host->scsi.phase == PHASE_IDLE)
2590 switch (host->scsi.phase) {
2600 if (host->scsi.disconnectable) {
2601 host->scsi.disconnectable = 0;
2661 print_sbic_status(asr, ssr, host->scsi.phase);
2666 printk("scsi%d: ", host->host->host_no);
2742 print_sbic_status(asr, ssr, host->scsi.phase);
2825 host->base + SBIC_REGIDX, host->scsi.irq);
2828 host->base + DMAC_OFFSET, host->scsi.irq);
2951 ashost->scsi.irq = host->irq;
2958 printk(KERN_CRIT "scsi%d: IRQ%d not free: %d\n",
2959 host->host_no, ashost->scsi.irq, ret);
2966 msgqueue_initialise(&ashost->scsi.msgs);
2979 msgqueue_free(&ashost->scsi.msgs);
3007 msgqueue_free(&ashost->scsi.msgs);