tag | line | file | source code |
ccb | 65 | drivers/scsi/aha1542.c | struct ccb ccb[AHA1542_MAILBOXES]; |
ccb | 263 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 271 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shost)->ccb; |
ccb | 310 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
ccb | 318 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat|ccb[mbo].hastat) |
ccb | 320 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
ccb | 343 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) |
ccb | 344 | drivers/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 353 | drivers/scsi/aha1542.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 359 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 362 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) { |
ccb | 369 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
ccb | 399 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 404 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
ccb | 467 | drivers/scsi/aha1542.c | any2scsi(mb[mbo].ccbptr, &ccb[mbo]); /* This gets trashed for some reason*/ |
ccb | 469 | drivers/scsi/aha1542.c | memset(&ccb[mbo], 0, sizeof(struct ccb)); |
ccb | 471 | drivers/scsi/aha1542.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
ccb | 479 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 488 | drivers/scsi/aha1542.c | ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather*/ |
ccb | 511 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain)); |
ccb | 513 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, cptr); |
ccb | 520 | drivers/scsi/aha1542.c | ccb[mbo].op = 0; /* SCSI Initiator Command */ |
ccb | 522 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, bufflen); |
ccb | 523 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
ccb | 525 | drivers/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
ccb | 526 | drivers/scsi/aha1542.c | ccb[mbo].rsalen = 12; |
ccb | 527 | drivers/scsi/aha1542.c | ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; |
ccb | 528 | drivers/scsi/aha1542.c | ccb[mbo].commlinkid = 0; |
ccb | 533 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
ccb | 534 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
ccb | 574 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 579 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
ccb | 583 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |