tag | line | file | source code |
ecbno | 244 | kernel/blk_drv/scsi/aha1740.c | int ecbno; |
ecbno | 276 | kernel/blk_drv/scsi/aha1740.c | ecbno = aha1740_last_ecb_used + 1; /* An optimization */ |
ecbno | 277 | kernel/blk_drv/scsi/aha1740.c | if (ecbno >= AHA1740_ECBS) ecbno = 0; |
ecbno | 280 | kernel/blk_drv/scsi/aha1740.c | if( ! ecb[ecbno].cmdw ) |
ecbno | 282 | kernel/blk_drv/scsi/aha1740.c | ecbno++; |
ecbno | 283 | kernel/blk_drv/scsi/aha1740.c | if (ecbno >= AHA1740_ECBS ) ecbno = 0; |
ecbno | 284 | kernel/blk_drv/scsi/aha1740.c | } while (ecbno != aha1740_last_ecb_used); |
ecbno | 286 | kernel/blk_drv/scsi/aha1740.c | if( ecb[ecbno].cmdw ) |
ecbno | 289 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].cmdw = AHA1740CMD_INIT; /* SCSI Initiator Command doubles as reserved flag */ |
ecbno | 291 | kernel/blk_drv/scsi/aha1740.c | aha1740_last_ecb_used = ecbno; |
ecbno | 295 | kernel/blk_drv/scsi/aha1740.c | printk("Sending command (%d %x)...",ecbno, done); |
ecbno | 298 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
ecbno | 306 | kernel/blk_drv/scsi/aha1740.c | memcpy(ecb[ecbno].cdb, cmd, ecb[ecbno].cdblen); |
ecbno | 316 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].sg = 1; /* SCSI Initiator Command w/scatter-gather*/ |
ecbno | 326 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].datalen = SCpnt->use_sg * sizeof(struct aha1740_chain); |
ecbno | 327 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].dataptr = (long) cptr; |
ecbno | 337 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].datalen = bufflen; |
ecbno | 338 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].dataptr = (long) buff; |
ecbno | 340 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].lun = SCpnt->lun; |
ecbno | 341 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].ses = 1; /* Suppress underrun errors */ |
ecbno | 342 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].dir= direction; |
ecbno | 343 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].ars=1; /* Yes, get the sense on an error */ |
ecbno | 344 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].senselen = 12; |
ecbno | 345 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].senseptr = (long) ecb[ecbno].sense; |
ecbno | 346 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].statusptr = (long) ecb[ecbno].status; |
ecbno | 347 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].done = done; |
ecbno | 348 | kernel/blk_drv/scsi/aha1740.c | ecb[ecbno].SCpnt = SCpnt; |
ecbno | 353 | kernel/blk_drv/scsi/aha1740.c | for (i = 0; i < sizeof(ecb[ecbno])-10; i++) |
ecbno | 354 | kernel/blk_drv/scsi/aha1740.c | printk("%02x ", ((unchar *)&ecb[ecbno])[i]); |
ecbno | 370 | kernel/blk_drv/scsi/aha1740.c | DEB(printk("aha1740[%d] critical section\n",ecbno)); |
ecbno | 374 | kernel/blk_drv/scsi/aha1740.c | printk("aha1740[%d]_mbxout wait!\n",ecbno); |
ecbno | 378 | kernel/blk_drv/scsi/aha1740.c | adrs = (ulong) &(ecb[ecbno]); /* Spit the command */ |
ecbno | 385 | kernel/blk_drv/scsi/aha1740.c | printk("aha1740[%d]_attn wait!\n",ecbno); |
ecbno | 391 | kernel/blk_drv/scsi/aha1740.c | DEB(printk("aha1740[%d] request queued.\n",ecbno)); |