tag | line | file | source code |
ccb | 57 | kernel/blk_drv/scsi/aha1542.c | static struct ccb ccb[AHA1542_MAILBOXES]; |
ccb | 280 | kernel/blk_drv/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
ccb | 288 | kernel/blk_drv/scsi/aha1542.c | if (ccb[mbo].tarstat|ccb[mbo].hastat) |
ccb | 290 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
ccb | 313 | kernel/blk_drv/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) |
ccb | 314 | kernel/blk_drv/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 323 | kernel/blk_drv/scsi/aha1542.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 329 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 332 | kernel/blk_drv/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) { |
ccb | 339 | kernel/blk_drv/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
ccb | 432 | kernel/blk_drv/scsi/aha1542.c | memset(&ccb[mbo], 0, sizeof(struct ccb)); |
ccb | 434 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
ccb | 442 | kernel/blk_drv/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 451 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather*/ |
ccb | 473 | kernel/blk_drv/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain)); |
ccb | 474 | kernel/blk_drv/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, cptr); |
ccb | 481 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].op = 0; /* SCSI Initiator Command */ |
ccb | 483 | kernel/blk_drv/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, bufflen); |
ccb | 484 | kernel/blk_drv/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
ccb | 486 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
ccb | 487 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].rsalen = 12; |
ccb | 488 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; |
ccb | 489 | kernel/blk_drv/scsi/aha1542.c | ccb[mbo].commlinkid = 0; |
ccb | 494 | kernel/blk_drv/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
ccb | 495 | kernel/blk_drv/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
ccb | 539 | kernel/blk_drv/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |