tag | line | file | source code |
ccb | 66 | drivers/scsi/aha1542.c | struct ccb ccb[AHA1542_MAILBOXES]; |
ccb | 291 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 299 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shost)->ccb; |
ccb | 357 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
ccb | 365 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat|ccb[mbo].hastat) |
ccb | 367 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
ccb | 381 | drivers/scsi/aha1542.c | printk("tarstat=%x, hastat=%x idlun=%x ccb#=%d \n", ccb[mbo].tarstat, |
ccb | 382 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].idlun, mbo); |
ccb | 392 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) |
ccb | 393 | drivers/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 402 | drivers/scsi/aha1542.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 408 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 411 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) { |
ccb | 418 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
ccb | 448 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 453 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
ccb | 516 | drivers/scsi/aha1542.c | any2scsi(mb[mbo].ccbptr, &ccb[mbo]); /* This gets trashed for some reason*/ |
ccb | 518 | drivers/scsi/aha1542.c | memset(&ccb[mbo], 0, sizeof(struct ccb)); |
ccb | 520 | drivers/scsi/aha1542.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor Block Length */ |
ccb | 528 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 537 | drivers/scsi/aha1542.c | ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather*/ |
ccb | 560 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain)); |
ccb | 562 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, cptr); |
ccb | 569 | drivers/scsi/aha1542.c | ccb[mbo].op = 0; /* SCSI Initiator Command */ |
ccb | 571 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, bufflen); |
ccb | 572 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
ccb | 574 | drivers/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
ccb | 575 | drivers/scsi/aha1542.c | ccb[mbo].rsalen = 12; |
ccb | 576 | drivers/scsi/aha1542.c | ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; |
ccb | 577 | drivers/scsi/aha1542.c | ccb[mbo].commlinkid = 0; |
ccb | 582 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
ccb | 583 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
ccb | 623 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 628 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
ccb | 632 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
ccb | 1027 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
ccb | 147 | drivers/scsi/buslogic.c | struct ccb ccbs[BUSLOGIC_MAILBOXES]; |
ccb | 406 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 416 | drivers/scsi/buslogic.c | ccb = HOSTDATA(SHpnt)->ccbs; |
ccb | 464 | drivers/scsi/buslogic.c | mbo = (struct ccb *)mb[mbi].ccbptr - ccb; |
ccb | 481 | drivers/scsi/buslogic.c | if (ccb[mbo].tarstat || ccb[mbo].hastat) |
ccb | 483 | drivers/scsi/buslogic.c | ((int)ccb[mbo].hastat << 16) | ccb[mbo].tarstat, |
ccb | 508 | drivers/scsi/buslogic.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 515 | drivers/scsi/buslogic.c | errstatus, ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 517 | drivers/scsi/buslogic.c | if (status_byte(ccb[mbo].tarstat) == CHECK_CONDITION) { |
ccb | 550 | drivers/scsi/buslogic.c | struct ccb *ccb; |
ccb | 595 | drivers/scsi/buslogic.c | ccb = HOSTDATA(SCpnt->host)->ccbs; |
ccb | 634 | drivers/scsi/buslogic.c | mb[mbo].ccbptr = &ccb[mbo]; |
ccb | 636 | drivers/scsi/buslogic.c | memset(&ccb[mbo], 0, sizeof (struct ccb)); |
ccb | 638 | drivers/scsi/buslogic.c | ccb[mbo].cdblen = COMMAND_SIZE(*cmd); /* SCSI Command Descriptor |
ccb | 647 | drivers/scsi/buslogic.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 654 | drivers/scsi/buslogic.c | ccb[mbo].op = CCB_OP_INIT_SG; /* SCSI Initiator Command w/scatter-gather */ |
ccb | 669 | drivers/scsi/buslogic.c | ccb[mbo].datalen = SCpnt->use_sg * sizeof (struct chain); |
ccb | 670 | drivers/scsi/buslogic.c | ccb[mbo].dataptr = cptr; |
ccb | 683 | drivers/scsi/buslogic.c | ccb[mbo].op = CCB_OP_INIT; /* SCSI Initiator Command */ |
ccb | 685 | drivers/scsi/buslogic.c | ccb[mbo].datalen = bufflen; |
ccb | 686 | drivers/scsi/buslogic.c | ccb[mbo].dataptr = buff; |
ccb | 688 | drivers/scsi/buslogic.c | ccb[mbo].id = target; |
ccb | 689 | drivers/scsi/buslogic.c | ccb[mbo].lun = lun; |
ccb | 690 | drivers/scsi/buslogic.c | ccb[mbo].dir = direction; |
ccb | 691 | drivers/scsi/buslogic.c | ccb[mbo].rsalen = sizeof SCpnt->sense_buffer; |
ccb | 692 | drivers/scsi/buslogic.c | ccb[mbo].senseptr = SCpnt->sense_buffer; |
ccb | 693 | drivers/scsi/buslogic.c | ccb[mbo].linkptr = NULL; |
ccb | 694 | drivers/scsi/buslogic.c | ccb[mbo].commlinkid = 0; |
ccb | 701 | drivers/scsi/buslogic.c | for (i = 0; i < sizeof ccb[mbo]; i++) |
ccb | 702 | drivers/scsi/buslogic.c | printk(" %02X", ((unsigned char *)&ccb[mbo])[i]); |
ccb | 754 | drivers/scsi/buslogic.c | struct ccb *ccb = HOSTDATA(SHpnt)->ccbs; |
ccb | 762 | drivers/scsi/buslogic.c | mb[i].ccbptr = &ccb[i]; |