tag | line | file | source code |
ccb | 67 | drivers/scsi/aha1542.c | struct ccb ccb[AHA1542_MAILBOXES]; |
ccb | 324 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 334 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shost)->ccb; |
ccb | 390 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
ccb | 398 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat|ccb[mbo].hastat) |
ccb | 400 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
ccb | 414 | drivers/scsi/aha1542.c | printk("tarstat=%x, hastat=%x idlun=%x ccb#=%d \n", ccb[mbo].tarstat, |
ccb | 415 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].idlun, mbo); |
ccb | 425 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) |
ccb | 426 | drivers/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 435 | drivers/scsi/aha1542.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 441 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 444 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) { |
ccb | 451 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
ccb | 481 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 486 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
ccb | 548 | drivers/scsi/aha1542.c | any2scsi(mb[mbo].ccbptr, &ccb[mbo]); /* This gets trashed for some reason*/ |
ccb | 550 | drivers/scsi/aha1542.c | memset(&ccb[mbo], 0, sizeof(struct ccb)); |
ccb | 552 | drivers/scsi/aha1542.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
ccb | 560 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 569 | drivers/scsi/aha1542.c | ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather*/ |
ccb | 592 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain)); |
ccb | 594 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, cptr); |
ccb | 601 | drivers/scsi/aha1542.c | ccb[mbo].op = 0; /* SCSI Initiator Command */ |
ccb | 603 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, bufflen); |
ccb | 604 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
ccb | 606 | drivers/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
ccb | 607 | drivers/scsi/aha1542.c | ccb[mbo].rsalen = 12; |
ccb | 608 | drivers/scsi/aha1542.c | ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; |
ccb | 609 | drivers/scsi/aha1542.c | ccb[mbo].commlinkid = 0; |
ccb | 614 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
ccb | 615 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
ccb | 655 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 660 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
ccb | 664 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
ccb | 1060 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
ccb | 138 | drivers/scsi/buslogic.c | struct ccb ccbs[BUSLOGIC_MAILBOXES]; |
ccb | 432 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 442 | drivers/scsi/buslogic.c | ccb = HOSTDATA(shpnt)->ccbs; |
ccb | 506 | drivers/scsi/buslogic.c | mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
ccb | 526 | drivers/scsi/buslogic.c | if (ccb[mbo].tarstat || ccb[mbo].hastat) |
ccb | 528 | drivers/scsi/buslogic.c | ((int)ccb[mbo].hastat << 16) | ccb[mbo].tarstat, |
ccb | 544 | drivers/scsi/buslogic.c | ccb[mbo].tarstat, ccb[mbo].hastat, |
ccb | 545 | drivers/scsi/buslogic.c | ccb[mbo].id, ccb[mbo].lun, mbo); |
ccb | 557 | drivers/scsi/buslogic.c | if (ccb[mbo].tarstat == 2) /* ??? */ |
ccb | 558 | drivers/scsi/buslogic.c | memcpy(sctmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 565 | drivers/scsi/buslogic.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 572 | drivers/scsi/buslogic.c | errstatus, ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 574 | drivers/scsi/buslogic.c | if (status_byte(ccb[mbo].tarstat) == CHECK_CONDITION) { |
ccb | 608 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 654 | drivers/scsi/buslogic.c | ccb = HOSTDATA(scpnt->host)->ccbs; |
ccb | 694 | drivers/scsi/buslogic.c | mb[mbo].ccbptr = &ccb[mbo]; |
ccb | 696 | drivers/scsi/buslogic.c | memset(&ccb[mbo], 0, sizeof (struct ccb)); |
ccb | 698 | drivers/scsi/buslogic.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor |
ccb | 707 | drivers/scsi/buslogic.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 714 | drivers/scsi/buslogic.c | ccb[mbo].op = CCB_OP_INIT_SG; /* SCSI Initiator Command |
ccb | 732 | drivers/scsi/buslogic.c | ccb[mbo].datalen = scpnt->use_sg * sizeof (struct chain); |
ccb | 733 | drivers/scsi/buslogic.c | ccb[mbo].dataptr = cptr; |
ccb | 746 | drivers/scsi/buslogic.c | ccb[mbo].op = CCB_OP_INIT; /* SCSI Initiator Command */ |
ccb | 748 | drivers/scsi/buslogic.c | ccb[mbo].datalen = bufflen; |
ccb | 749 | drivers/scsi/buslogic.c | ccb[mbo].dataptr = buff; |
ccb | 751 | drivers/scsi/buslogic.c | ccb[mbo].id = target; |
ccb | 752 | drivers/scsi/buslogic.c | ccb[mbo].lun = lun; |
ccb | 753 | drivers/scsi/buslogic.c | ccb[mbo].dir = direction; |
ccb | 754 | drivers/scsi/buslogic.c | ccb[mbo].rsalen = sizeof scpnt->sense_buffer; |
ccb | 755 | drivers/scsi/buslogic.c | ccb[mbo].senseptr = scpnt->sense_buffer; |
ccb | 756 | drivers/scsi/buslogic.c | ccb[mbo].linkptr = NULL; |
ccb | 757 | drivers/scsi/buslogic.c | ccb[mbo].commlinkid = 0; |
ccb | 764 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof ccb[mbo] - 10; i++) |
ccb | 765 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)&ccb[mbo])[i]); |
ccb | 815 | drivers/scsi/buslogic.c | struct ccb *ccb = HOSTDATA(shpnt)->ccbs; |
ccb | 823 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |