tag | line | file | source code |
ccb | 110 | drivers/scsi/aha1542.c | struct ccb ccb[AHA1542_MAILBOXES]; |
ccb | 370 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 376 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shost)->ccb; |
ccb | 433 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
ccb | 441 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat|ccb[mbo].hastat) |
ccb | 443 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
ccb | 457 | drivers/scsi/aha1542.c | printk("tarstat=%x, hastat=%x idlun=%x ccb#=%d \n", ccb[mbo].tarstat, |
ccb | 458 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].idlun, mbo); |
ccb | 468 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) |
ccb | 469 | drivers/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 478 | drivers/scsi/aha1542.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 484 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 487 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) { |
ccb | 494 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
ccb | 525 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 530 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
ccb | 593 | drivers/scsi/aha1542.c | any2scsi(mb[mbo].ccbptr, &ccb[mbo]); /* This gets trashed for some reason*/ |
ccb | 595 | drivers/scsi/aha1542.c | memset(&ccb[mbo], 0, sizeof(struct ccb)); |
ccb | 597 | drivers/scsi/aha1542.c | ccb[mbo].cdblen = SCpnt->cmd_len; |
ccb | 605 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 614 | drivers/scsi/aha1542.c | ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather*/ |
ccb | 637 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain)); |
ccb | 638 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, cptr); |
ccb | 645 | drivers/scsi/aha1542.c | ccb[mbo].op = 0; /* SCSI Initiator Command */ |
ccb | 647 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, bufflen); |
ccb | 649 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
ccb | 651 | drivers/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
ccb | 652 | drivers/scsi/aha1542.c | ccb[mbo].rsalen = 12; |
ccb | 653 | drivers/scsi/aha1542.c | ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; |
ccb | 654 | drivers/scsi/aha1542.c | ccb[mbo].commlinkid = 0; |
ccb | 659 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
ccb | 660 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
ccb | 701 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 706 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
ccb | 710 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
ccb | 1260 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
ccb | 185 | drivers/scsi/buslogic.c | struct ccb ccbs[BUSLOGIC_MAILBOXES]; |
ccb | 459 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 466 | drivers/scsi/buslogic.c | ccb = HOSTDATA(shpnt)->ccbs; |
ccb | 510 | drivers/scsi/buslogic.c | int mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
ccb | 526 | drivers/scsi/buslogic.c | result = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 588 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 672 | drivers/scsi/buslogic.c | ccb = &HOSTDATA(shpnt)->ccbs[mbo]; |
ccb | 675 | drivers/scsi/buslogic.c | mb[mbo].ccbptr = ccb; |
ccb | 677 | drivers/scsi/buslogic.c | memset(ccb, 0, sizeof (struct ccb)); |
ccb | 679 | drivers/scsi/buslogic.c | ccb->cdblen = scpnt->cmd_len; /* SCSI Command Descriptor |
ccb | 688 | drivers/scsi/buslogic.c | memcpy(ccb->cdb, cmd, ccb->cdblen); |
ccb | 695 | drivers/scsi/buslogic.c | ccb->op = CCB_OP_INIT_SG; /* SCSI Initiator Command |
ccb | 716 | drivers/scsi/buslogic.c | ccb->datalen = scpnt->use_sg * sizeof (struct chain); |
ccb | 717 | drivers/scsi/buslogic.c | ccb->dataptr = cptr; |
ccb | 730 | drivers/scsi/buslogic.c | ccb->op = CCB_OP_INIT; /* SCSI Initiator Command */ |
ccb | 733 | drivers/scsi/buslogic.c | ccb->datalen = bufflen; |
ccb | 734 | drivers/scsi/buslogic.c | ccb->dataptr = buff; |
ccb | 736 | drivers/scsi/buslogic.c | ccb->id = target; |
ccb | 737 | drivers/scsi/buslogic.c | ccb->lun = lun; |
ccb | 738 | drivers/scsi/buslogic.c | ccb->dir = direction; |
ccb | 739 | drivers/scsi/buslogic.c | ccb->rsalen = sizeof scpnt->sense_buffer; |
ccb | 740 | drivers/scsi/buslogic.c | ccb->senseptr = scpnt->sense_buffer; |
ccb | 748 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof(struct ccb) - 10; i++) |
ccb | 749 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)ccb)[i]); |
ccb | 809 | drivers/scsi/buslogic.c | struct ccb *ccb = HOSTDATA(shpnt)->ccbs; |
ccb | 817 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |
ccb | 139 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
ccb | 140 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
ccb | 179 | drivers/scsi/eata_dma.c | if((cp = sp->ccb) == NULL) { |
ccb | 368 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
ccb | 382 | drivers/scsi/eata_dma.c | switch(hd->ccb[z].status) { |
ccb | 398 | drivers/scsi/eata_dma.c | cp = &hd->ccb[y]; |
ccb | 509 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
ccb | 616 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
ccb | 619 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
ccb | 620 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
ccb | 625 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 626 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
ccb | 661 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
ccb | 664 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 668 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
ccb | 969 | drivers/scsi/eata_dma.c | memset(hd->ccb, 0, sizeof(struct eata_ccb) * ntohs(gc->queuesiz)); |
ccb | 326 | drivers/scsi/eata_generic.h | struct eata_ccb *ccb; /* Address set in COMMAND PACKET */ |
ccb | 359 | drivers/scsi/eata_generic.h | struct eata_ccb ccb[0]; /* ccb array begins here */ |
ccb | 153 | drivers/scsi/eata_pio.c | cp = &hd->ccb[0]; |
ccb | 302 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
ccb | 313 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
ccb | 361 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
ccb | 479 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status == FREE) |
ccb | 482 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 483 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = RESET; |
ccb | 507 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status != RESET) |
ccb | 510 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 515 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = FREE; |
ccb | 734 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |