tag | line | file | source code |
ccb | 102 | drivers/scsi/aha1542.c | struct ccb ccb[AHA1542_MAILBOXES]; |
ccb | 363 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 369 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shost)->ccb; |
ccb | 426 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
ccb | 434 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat|ccb[mbo].hastat) |
ccb | 436 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
ccb | 450 | drivers/scsi/aha1542.c | printk("tarstat=%x, hastat=%x idlun=%x ccb#=%d \n", ccb[mbo].tarstat, |
ccb | 451 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].idlun, mbo); |
ccb | 461 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) |
ccb | 462 | drivers/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 471 | drivers/scsi/aha1542.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 477 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 480 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) { |
ccb | 487 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
ccb | 518 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 523 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
ccb | 586 | drivers/scsi/aha1542.c | any2scsi(mb[mbo].ccbptr, &ccb[mbo]); /* This gets trashed for some reason*/ |
ccb | 588 | drivers/scsi/aha1542.c | memset(&ccb[mbo], 0, sizeof(struct ccb)); |
ccb | 590 | drivers/scsi/aha1542.c | ccb[mbo].cdblen = SCpnt->cmd_len; |
ccb | 598 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 607 | drivers/scsi/aha1542.c | ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather*/ |
ccb | 630 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain)); |
ccb | 631 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, cptr); |
ccb | 638 | drivers/scsi/aha1542.c | ccb[mbo].op = 0; /* SCSI Initiator Command */ |
ccb | 640 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, bufflen); |
ccb | 642 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
ccb | 644 | drivers/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
ccb | 645 | drivers/scsi/aha1542.c | ccb[mbo].rsalen = 12; |
ccb | 646 | drivers/scsi/aha1542.c | ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; |
ccb | 647 | drivers/scsi/aha1542.c | ccb[mbo].commlinkid = 0; |
ccb | 652 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
ccb | 653 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
ccb | 694 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 699 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
ccb | 703 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
ccb | 1186 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
ccb | 178 | drivers/scsi/buslogic.c | struct ccb ccbs[BUSLOGIC_MAILBOXES]; |
ccb | 452 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 459 | drivers/scsi/buslogic.c | ccb = HOSTDATA(shpnt)->ccbs; |
ccb | 503 | drivers/scsi/buslogic.c | int mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
ccb | 519 | drivers/scsi/buslogic.c | result = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 581 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 665 | drivers/scsi/buslogic.c | ccb = &HOSTDATA(shpnt)->ccbs[mbo]; |
ccb | 668 | drivers/scsi/buslogic.c | mb[mbo].ccbptr = ccb; |
ccb | 670 | drivers/scsi/buslogic.c | memset(ccb, 0, sizeof (struct ccb)); |
ccb | 672 | drivers/scsi/buslogic.c | ccb->cdblen = scpnt->cmd_len; /* SCSI Command Descriptor |
ccb | 681 | drivers/scsi/buslogic.c | memcpy(ccb->cdb, cmd, ccb->cdblen); |
ccb | 688 | drivers/scsi/buslogic.c | ccb->op = CCB_OP_INIT_SG; /* SCSI Initiator Command |
ccb | 709 | drivers/scsi/buslogic.c | ccb->datalen = scpnt->use_sg * sizeof (struct chain); |
ccb | 710 | drivers/scsi/buslogic.c | ccb->dataptr = cptr; |
ccb | 723 | drivers/scsi/buslogic.c | ccb->op = CCB_OP_INIT; /* SCSI Initiator Command */ |
ccb | 726 | drivers/scsi/buslogic.c | ccb->datalen = bufflen; |
ccb | 727 | drivers/scsi/buslogic.c | ccb->dataptr = buff; |
ccb | 729 | drivers/scsi/buslogic.c | ccb->id = target; |
ccb | 730 | drivers/scsi/buslogic.c | ccb->lun = lun; |
ccb | 731 | drivers/scsi/buslogic.c | ccb->dir = direction; |
ccb | 732 | drivers/scsi/buslogic.c | ccb->rsalen = sizeof scpnt->sense_buffer; |
ccb | 733 | drivers/scsi/buslogic.c | ccb->senseptr = scpnt->sense_buffer; |
ccb | 741 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof(struct ccb) - 10; i++) |
ccb | 742 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)ccb)[i]); |
ccb | 802 | drivers/scsi/buslogic.c | struct ccb *ccb = HOSTDATA(shpnt)->ccbs; |
ccb | 810 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |
ccb | 135 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
ccb | 136 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
ccb | 175 | drivers/scsi/eata_dma.c | cp = sp->ccb; /* Has been passed thru, no conversion needed */ |
ccb | 358 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
ccb | 372 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
ccb | 481 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
ccb | 586 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
ccb | 589 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
ccb | 590 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
ccb | 595 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 596 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
ccb | 631 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
ccb | 634 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 638 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
ccb | 940 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
ccb | 311 | drivers/scsi/eata_generic.h | struct eata_ccb *ccb; /* Address set in COMMAND PACKET */ |
ccb | 344 | drivers/scsi/eata_generic.h | struct eata_ccb ccb[0]; /* ccb array begins here */ |
ccb | 148 | drivers/scsi/eata_pio.c | cp = &hd->ccb[0]; |
ccb | 297 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
ccb | 308 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
ccb | 356 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
ccb | 472 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status == FREE) |
ccb | 475 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 476 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = RESET; |
ccb | 500 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status != RESET) |
ccb | 503 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 508 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = FREE; |
ccb | 727 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |