tag | line | file | source code |
ccb | 107 | drivers/scsi/aha1542.c | struct ccb ccb[AHA1542_MAILBOXES]; |
ccb | 367 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 373 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shost)->ccb; |
ccb | 430 | drivers/scsi/aha1542.c | mbo = (scsi2int(mb[mbi].ccbptr) - ((unsigned int) &ccb[0])) / sizeof(struct ccb); |
ccb | 438 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat|ccb[mbo].hastat) |
ccb | 440 | drivers/scsi/aha1542.c | ccb[mbo].tarstat + ((int) ccb[mbo].hastat << 16), mb[mbi].status); |
ccb | 454 | drivers/scsi/aha1542.c | printk("tarstat=%x, hastat=%x idlun=%x ccb#=%d \n", ccb[mbo].tarstat, |
ccb | 455 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].idlun, mbo); |
ccb | 465 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) |
ccb | 466 | drivers/scsi/aha1542.c | memcpy(SCtmp->sense_buffer, &ccb[mbo].cdb[ccb[mbo].cdblen], |
ccb | 475 | drivers/scsi/aha1542.c | errstatus = makecode(ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 481 | drivers/scsi/aha1542.c | ccb[mbo].hastat, ccb[mbo].tarstat); |
ccb | 484 | drivers/scsi/aha1542.c | if (ccb[mbo].tarstat == 2) { |
ccb | 491 | drivers/scsi/aha1542.c | printk("%02x ", ccb[mbo].cdb[ccb[mbo].cdblen+i]); |
ccb | 522 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 527 | drivers/scsi/aha1542.c | ccb = HOSTDATA(SCpnt->host)->ccb; |
ccb | 590 | drivers/scsi/aha1542.c | any2scsi(mb[mbo].ccbptr, &ccb[mbo]); /* This gets trashed for some reason*/ |
ccb | 592 | drivers/scsi/aha1542.c | memset(&ccb[mbo], 0, sizeof(struct ccb)); |
ccb | 594 | drivers/scsi/aha1542.c | ccb[mbo].cdblen = SCpnt->cmd_len; |
ccb | 602 | drivers/scsi/aha1542.c | memcpy(ccb[mbo].cdb, cmd, ccb[mbo].cdblen); |
ccb | 611 | drivers/scsi/aha1542.c | ccb[mbo].op = 2; /* SCSI Initiator Command w/scatter-gather*/ |
ccb | 634 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, SCpnt->use_sg * sizeof(struct chain)); |
ccb | 635 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, cptr); |
ccb | 642 | drivers/scsi/aha1542.c | ccb[mbo].op = 0; /* SCSI Initiator Command */ |
ccb | 644 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].datalen, bufflen); |
ccb | 646 | drivers/scsi/aha1542.c | any2scsi(ccb[mbo].dataptr, buff); |
ccb | 648 | drivers/scsi/aha1542.c | ccb[mbo].idlun = (target&7)<<5 | direction | (lun & 7); /*SCSI Target Id*/ |
ccb | 649 | drivers/scsi/aha1542.c | ccb[mbo].rsalen = 16; |
ccb | 650 | drivers/scsi/aha1542.c | ccb[mbo].linkptr[0] = ccb[mbo].linkptr[1] = ccb[mbo].linkptr[2] = 0; |
ccb | 651 | drivers/scsi/aha1542.c | ccb[mbo].commlinkid = 0; |
ccb | 656 | drivers/scsi/aha1542.c | for (i = 0; i < sizeof(ccb[mbo])-10; i++) |
ccb | 657 | drivers/scsi/aha1542.c | printk("%02x ", ((unchar *)&ccb[mbo])[i]); |
ccb | 698 | drivers/scsi/aha1542.c | struct ccb *ccb; |
ccb | 703 | drivers/scsi/aha1542.c | ccb = HOSTDATA(shpnt)->ccb; |
ccb | 707 | drivers/scsi/aha1542.c | any2scsi(mb[i].ccbptr, &ccb[i]); |
ccb | 1257 | drivers/scsi/aha1542.c | HOSTDATA(SCpnt->host)->ccb[i].op = 0x81; /* BUS DEVICE RESET */ |
ccb | 147 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
ccb | 148 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
ccb | 244 | drivers/scsi/eata_dma.c | struct eata_ccb *ccb; |
ccb | 263 | drivers/scsi/eata_dma.c | ccb = sp->ccb; |
ccb | 265 | drivers/scsi/eata_dma.c | if(ccb == NULL) { |
ccb | 272 | drivers/scsi/eata_dma.c | cmd = ccb->cmd; |
ccb | 283 | drivers/scsi/eata_dma.c | "irq%d\n", base, (long)ccb, eata_stat, hba_stat, |
ccb | 286 | drivers/scsi/eata_dma.c | ccb->status = FREE; |
ccb | 291 | drivers/scsi/eata_dma.c | if (ccb->status == LOCKED) { |
ccb | 292 | drivers/scsi/eata_dma.c | ccb->status = FREE; |
ccb | 309 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[ccb->cp_channel][ccb->cp_id] = OK; |
ccb | 310 | drivers/scsi/eata_dma.c | if(HD(cmd)->do_latency == TRUE && ccb->timestamp) |
ccb | 311 | drivers/scsi/eata_dma.c | eata_latency_in(ccb, HD(cmd)); |
ccb | 313 | drivers/scsi/eata_dma.c | HD(cmd)->t_timeout[ccb->cp_channel][ccb->cp_id] = OK; |
ccb | 332 | drivers/scsi/eata_dma.c | HD(cmd)->t_state[ccb->cp_channel][i] = RESET; |
ccb | 384 | drivers/scsi/eata_dma.c | ccb->status = FREE; /* now we can release the slot */ |
ccb | 450 | drivers/scsi/eata_dma.c | struct eata_ccb *ccb; |
ccb | 474 | drivers/scsi/eata_dma.c | if (hd->ccb[y].status == FREE) |
ccb | 489 | drivers/scsi/eata_dma.c | ccb = &hd->ccb[y]; |
ccb | 491 | drivers/scsi/eata_dma.c | memset(ccb, 0, sizeof(struct eata_ccb) - sizeof(struct eata_sg_list *)); |
ccb | 493 | drivers/scsi/eata_dma.c | ccb->status = USED; /* claim free slot */ |
ccb | 500 | drivers/scsi/eata_dma.c | eata_latency_out(ccb, cmd); |
ccb | 516 | drivers/scsi/eata_dma.c | ccb->DataOut = TRUE; /* Output mode */ |
ccb | 520 | drivers/scsi/eata_dma.c | ccb->DataIn = TRUE; /* Input mode */ |
ccb | 527 | drivers/scsi/eata_dma.c | ccb->Interpret = TRUE; /* Interpret command */ |
ccb | 530 | drivers/scsi/eata_dma.c | ccb->scatter = TRUE; /* SG mode */ |
ccb | 531 | drivers/scsi/eata_dma.c | if (ccb->sg_list == NULL) { |
ccb | 532 | drivers/scsi/eata_dma.c | ccb->sg_list = kmalloc(sh->sg_tablesize * sizeof(struct eata_sg_list), |
ccb | 535 | drivers/scsi/eata_dma.c | if (ccb->sg_list == NULL) |
ccb | 537 | drivers/scsi/eata_dma.c | ccb->cp_dataDMA = htonl(virt_to_bus(ccb->sg_list)); |
ccb | 539 | drivers/scsi/eata_dma.c | ccb->cp_datalen = htonl(cmd->use_sg * sizeof(struct eata_sg_list)); |
ccb | 542 | drivers/scsi/eata_dma.c | ccb->sg_list[i].data = htonl(virt_to_bus(sl->address)); |
ccb | 543 | drivers/scsi/eata_dma.c | ccb->sg_list[i].len = htonl((u32) sl->length); |
ccb | 546 | drivers/scsi/eata_dma.c | ccb->scatter = FALSE; |
ccb | 547 | drivers/scsi/eata_dma.c | ccb->cp_datalen = htonl(cmd->request_bufflen); |
ccb | 548 | drivers/scsi/eata_dma.c | ccb->cp_dataDMA = htonl(virt_to_bus(cmd->request_buffer)); |
ccb | 551 | drivers/scsi/eata_dma.c | ccb->Auto_Req_Sen = TRUE; |
ccb | 552 | drivers/scsi/eata_dma.c | ccb->cp_reqDMA = htonl(virt_to_bus(cmd->sense_buffer)); |
ccb | 553 | drivers/scsi/eata_dma.c | ccb->reqlen = sizeof(cmd->sense_buffer); |
ccb | 555 | drivers/scsi/eata_dma.c | ccb->cp_id = cmd->target; |
ccb | 556 | drivers/scsi/eata_dma.c | ccb->cp_channel = cmd->channel; |
ccb | 557 | drivers/scsi/eata_dma.c | ccb->cp_lun = cmd->lun; |
ccb | 558 | drivers/scsi/eata_dma.c | ccb->cp_dispri = TRUE; |
ccb | 559 | drivers/scsi/eata_dma.c | ccb->cp_identify = TRUE; |
ccb | 560 | drivers/scsi/eata_dma.c | memcpy(ccb->cp_cdb, cmd->cmnd, cmd->cmd_len); |
ccb | 562 | drivers/scsi/eata_dma.c | ccb->cp_statDMA = htonl(virt_to_bus(&(hd->sp))); |
ccb | 564 | drivers/scsi/eata_dma.c | ccb->cp_viraddr = ccb; /* This will be passed thru, so we don't need to |
ccb | 566 | drivers/scsi/eata_dma.c | ccb->cmd = cmd; |
ccb | 567 | drivers/scsi/eata_dma.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
ccb | 569 | drivers/scsi/eata_dma.c | if(eata_send_command((u32) ccb, (u32) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) { |
ccb | 575 | drivers/scsi/eata_dma.c | ccb->status = FREE; |
ccb | 674 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == FREE) |
ccb | 677 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status == LOCKED) { |
ccb | 678 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = FREE; |
ccb | 683 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 684 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = RESET; |
ccb | 712 | drivers/scsi/eata_dma.c | if (HD(cmd)->ccb[x].status != RESET) |
ccb | 715 | drivers/scsi/eata_dma.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 719 | drivers/scsi/eata_dma.c | HD(cmd)->ccb[x].status = LOCKED; |
ccb | 328 | drivers/scsi/eata_generic.h | struct eata_ccb *ccb; /* Address set in COMMAND PACKET */ |
ccb | 369 | 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 | 304 | drivers/scsi/eata_pio.c | if (hd->ccb[y].status!=FREE) { |
ccb | 316 | drivers/scsi/eata_pio.c | cp = &hd->ccb[y]; |
ccb | 364 | drivers/scsi/eata_pio.c | cmd->host_scribble = (char *)&hd->ccb[y]; |
ccb | 483 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status == FREE) |
ccb | 486 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 487 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = RESET; |
ccb | 513 | drivers/scsi/eata_pio.c | if (HD(cmd)->ccb[x].status != RESET) |
ccb | 516 | drivers/scsi/eata_pio.c | sp = HD(cmd)->ccb[x].cmd; |
ccb | 521 | drivers/scsi/eata_pio.c | HD(cmd)->ccb[x].status = FREE; |
ccb | 740 | drivers/scsi/eata_pio.c | memset(hd->ccb, 0, (sizeof(struct eata_ccb) * ntohs(gc->queuesiz))); |