taglinefilesource code
sh252drivers/scsi/eata.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh256drivers/scsi/eata.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh387drivers/scsi/eata.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh388drivers/scsi/eata.csh[j]->io_port = *port_base;
sh389drivers/scsi/eata.csh[j]->dma_channel = dma_channel;
sh390drivers/scsi/eata.csh[j]->irq = irq;
sh391drivers/scsi/eata.csh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size);
sh392drivers/scsi/eata.csh[j]->this_id = (ushort) ntohl(info.host_addr);
sh393drivers/scsi/eata.csh[j]->can_queue = (ushort) ntohs(info.queue_size);
sh394drivers/scsi/eata.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh397drivers/scsi/eata.crequest_region(sh[j]->io_port, REG_REGION, driver_name);
sh405drivers/scsi/eata.csh[j]->unchecked_isa_dma = FALSE;
sh407drivers/scsi/eata.csh[j]->block = sh[j];
sh408drivers/scsi/eata.csh[j]->unchecked_isa_dma = TRUE;
sh418drivers/scsi/eata.c"Mbox %d, CmdLun %d.\n", BN(j), board_status, sh[j]->this_id, 
sh419drivers/scsi/eata.csh[j]->io_port, sh[j]->irq, 
sh420drivers/scsi/eata.csh[j]->dma_channel, sh[j]->sg_tablesize, 
sh421drivers/scsi/eata.csh[j]->can_queue, sh[j]->cmd_per_lun);
sh424drivers/scsi/eata.cif (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) {
sh426drivers/scsi/eata.csh[j]->sg_tablesize = MAX_SGLIST;
sh430drivers/scsi/eata.cif (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue  < 2) {
sh432drivers/scsi/eata.csh[j]->can_queue = MAX_MAILBOXES;
sh463drivers/scsi/eata.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh507drivers/scsi/eata.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh509drivers/scsi/eata.cif (i >= sh[j]->can_queue) i = 0;
sh517drivers/scsi/eata.cif (k == sh[j]->can_queue) {
sh579drivers/scsi/eata.cif (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) {
sh611drivers/scsi/eata.cif (i >= sh[j]->can_queue)
sh614drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh672drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh680drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh710drivers/scsi/eata.cif (do_dma(sh[j]->io_port, 0, RESET_PIO)) {
sh725drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh777drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++) {
sh779drivers/scsi/eata.cif (sh[j]->irq != irq) continue;
sh784drivers/scsi/eata.cwhile (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) {
sh792drivers/scsi/eata.cinb(sh[j]->io_port + REG_STATUS);
sh795drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh939drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++)
sh941drivers/scsi/eata.ccalls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount);
sh100drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh105drivers/scsi/eata_dma.cfor (x = 1, sh = last_HBA; x <= registered_HBAs; x++, sh = SD(sh)->next) {
sh106drivers/scsi/eata_dma.cif (sh->irq != irq)
sh108drivers/scsi/eata_dma.cif (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ))
sh113drivers/scsi/eata_dma.csp=&SD(sh)->sp;
sh243drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh253drivers/scsi/eata_dma.csh = cmd->host;
sh256drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
sh257drivers/scsi/eata_dma.cif (y >= sh->can_queue)
sh265drivers/scsi/eata_dma.cif (x == sh->can_queue) { 
sh267drivers/scsi/eata_dma.cDBG(DBG_QUEUE, printk("can_queue %d, x %d, y %d\n",sh->can_queue,x,y));
sh325drivers/scsi/eata_dma.cif(eata_send_command((ulong) cp, (uint) sh->base, EATA_CMD_DMA_SEND_CP)) {
sh334drivers/scsi/eata_dma.c(long)sh->base, cmd->pid, cmd->target, cmd->lun, y, sh->irq));
sh638drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh710drivers/scsi/eata_dma.csh = scsi_register(tpnt, size);
sh711drivers/scsi/eata_dma.chd = SD(sh);                   
sh716drivers/scsi/eata_dma.cstrncpy(SD(sh)->vendor, &buff[8], 8);
sh717drivers/scsi/eata_dma.cSD(sh)->vendor[8] = 0;
sh718drivers/scsi/eata_dma.cstrncpy(SD(sh)->name, &buff[16], 17);
sh719drivers/scsi/eata_dma.cSD(sh)->name[17] = 0;
sh720drivers/scsi/eata_dma.cSD(sh)->revision[0] = buff[32];
sh721drivers/scsi/eata_dma.cSD(sh)->revision[1] = buff[33];
sh722drivers/scsi/eata_dma.cSD(sh)->revision[2] = buff[34];
sh723drivers/scsi/eata_dma.cSD(sh)->revision[3] = '.';
sh724drivers/scsi/eata_dma.cSD(sh)->revision[4] = buff[35];
sh725drivers/scsi/eata_dma.cSD(sh)->revision[5] = 0;
sh728drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'a';
sh731drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'b';
sh734drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'c';
sh737drivers/scsi/eata_dma.cSD(sh)->EATA_revision = '?';
sh739drivers/scsi/eata_dma.csh->base = (char *) base;
sh740drivers/scsi/eata_dma.csh->irq = gc->IRQ;
sh742drivers/scsi/eata_dma.csh->dma_channel = dma_channel;
sh744drivers/scsi/eata_dma.csh->dma_channel = 0;
sh746drivers/scsi/eata_dma.csh->this_id = gc->scsi_id[3 - i];
sh748drivers/scsi/eata_dma.csh->can_queue = ntohs(gc->queuesiz) / (gc->MAX_CHAN + 1);
sh751drivers/scsi/eata_dma.csh->cmd_per_lun = sh->can_queue/C_P_L_DIV; 
sh752drivers/scsi/eata_dma.cif (sh->cmd_per_lun > C_P_L_CURRENT_MAX)
sh753drivers/scsi/eata_dma.csh->cmd_per_lun = C_P_L_CURRENT_MAX;
sh755drivers/scsi/eata_dma.csh->cmd_per_lun = 1;
sh757drivers/scsi/eata_dma.csh->sg_tablesize = ntohs(gc->SGsiz);
sh758drivers/scsi/eata_dma.cif (sh->sg_tablesize > SG_SIZE || sh->sg_tablesize == 0) {
sh759drivers/scsi/eata_dma.csh->sg_tablesize = SG_SIZE;
sh764drivers/scsi/eata_dma.csh->loaded_as_module = 0;  /* Not yet supported */
sh781drivers/scsi/eata_dma.csh->unchecked_isa_dma = FALSE;
sh783drivers/scsi/eata_dma.csh->unchecked_isa_dma = TRUE;   /* We're doing ISA DMA */
sh804drivers/scsi/eata_dma.cSD(hd->prev)->next = sh;
sh805drivers/scsi/eata_dma.clast_HBA = sh;
sh217drivers/scsi/hosts.cscsi_unregister(struct Scsi_Host * sh){
sh221drivers/scsi/hosts.cj = sh->extra_bytes;
sh223drivers/scsi/hosts.cif(scsi_hostlist == sh)
sh227drivers/scsi/hosts.cwhile(shpnt->next != sh) shpnt = shpnt->next;
sh231drivers/scsi/hosts.cscsi_init_free((char *) sh, sizeof(struct Scsi_Host) + j);
sh342drivers/scsi/hosts.cstruct Scsi_Host * sh[128], * shpnt;
sh345drivers/scsi/hosts.cif (shpnt->block) sh[block_count++] = shpnt;
sh347drivers/scsi/hosts.cif (block_count == 1) sh[0]->block = NULL;
sh352drivers/scsi/hosts.csh[index]->block = sh[index + 1];
sh354drivers/scsi/hosts.csh[index]->host_no);
sh357drivers/scsi/hosts.csh[block_count - 1]->block = sh[0];
sh359drivers/scsi/hosts.csh[index]->host_no);
sh245drivers/scsi/u14-34f.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh249drivers/scsi/u14-34f.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh341drivers/scsi/u14-34f.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh342drivers/scsi/u14-34f.csh[j]->io_port = *port_base;
sh343drivers/scsi/u14-34f.csh[j]->base = bios_segment_table[config_1.bios_segment];
sh344drivers/scsi/u14-34f.csh[j]->irq = irq;
sh345drivers/scsi/u14-34f.csh[j]->this_id = config_2.ha_scsi_id;
sh346drivers/scsi/u14-34f.csh[j]->can_queue = MAX_MAILBOXES;
sh347drivers/scsi/u14-34f.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh353drivers/scsi/u14-34f.csys_mask = inb(sh[j]->io_port + REG_SYS_MASK);
sh354drivers/scsi/u14-34f.clcl_mask = inb(sh[j]->io_port + REG_LCL_MASK);
sh360drivers/scsi/u14-34f.cif (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK);
sh363drivers/scsi/u14-34f.crequest_region(sh[j]->io_port, REG_REGION, driver_name);
sh374drivers/scsi/u14-34f.csh[j]->dma_channel = 0;
sh375drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = FALSE;
sh376drivers/scsi/u14-34f.csh[j]->sg_tablesize = U34F_MAX_SGLIST;
sh377drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = U34F_CLUSTERING;
sh381drivers/scsi/u14-34f.csh[j]->dma_channel = dma_channel;
sh382drivers/scsi/u14-34f.csh[j]->block = sh[j];
sh383drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = TRUE;
sh384drivers/scsi/u14-34f.csh[j]->sg_tablesize = U14F_MAX_SGLIST;
sh385drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = U14F_CLUSTERING;
sh394drivers/scsi/u14-34f.c"Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, 
sh395drivers/scsi/u14-34f.c(int)sh[j]->base, sh[j]->irq, 
sh396drivers/scsi/u14-34f.csh[j]->dma_channel, sh[j]->sg_tablesize, 
sh397drivers/scsi/u14-34f.csh[j]->can_queue, sh[j]->cmd_per_lun,
sh398drivers/scsi/u14-34f.csh[j]->hostt->use_clustering);
sh419drivers/scsi/u14-34f.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh464drivers/scsi/u14-34f.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh466drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue) i = 0;
sh474drivers/scsi/u14-34f.cif (k == sh[j]->can_queue) {
sh521drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh532drivers/scsi/u14-34f.coutl((unsigned int)cpp, sh[j]->io_port + REG_OGM);
sh535drivers/scsi/u14-34f.coutb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR);
sh559drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh562drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh620drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh628drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh658drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh664drivers/scsi/u14-34f.coutb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR);
sh674drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh735drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++) {
sh737drivers/scsi/u14-34f.cif (sh[j]->irq != irq) continue;
sh742drivers/scsi/u14-34f.cwhile (inb(sh[j]->io_port + REG_SYS_INTR) & INTR_ASSERTED) {
sh749drivers/scsi/u14-34f.cspp = (struct mscp *)inl(sh[j]->io_port + REG_ICM);
sh752drivers/scsi/u14-34f.coutb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR);
sh756drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh889drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++)
sh891drivers/scsi/u14-34f.ccalls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount);
sh159drivers/scsi/wd7000.cstruct Scsi_Host *sh;             /* Pointer to Scsi_Host structure */
sh1099drivers/scsi/wd7000.cstruct Scsi_Host *sh;
sh1130drivers/scsi/wd7000.csh = scsi_register(tpnt, sizeof(Adapter) );
sh1131drivers/scsi/wd7000.chost = (Adapter *) sh->hostdata;
sh1137drivers/scsi/wd7000.chost->sh = sh;
sh1144drivers/scsi/wd7000.cscsi_unregister (sh);
sh1162drivers/scsi/wd7000.cif (host->rev1 < 6)  sh->sg_tablesize = SG_NONE;