tag | line | file | source code |
sh | 318 | drivers/scsi/eata.c | static struct Scsi_Host * sh[MAX_BOARDS + 1]; |
sh | 322 | drivers/scsi/eata.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
sh | 479 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
sh | 481 | drivers/scsi/eata.c | if (sh[j] == NULL) { |
sh | 491 | drivers/scsi/eata.c | sh[j]->io_port = *port_base; |
sh | 492 | drivers/scsi/eata.c | sh[j]->n_io_port = REGION_SIZE; |
sh | 493 | drivers/scsi/eata.c | sh[j]->dma_channel = dma_channel; |
sh | 494 | drivers/scsi/eata.c | sh[j]->irq = irq; |
sh | 495 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
sh | 496 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
sh | 497 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
sh | 498 | drivers/scsi/eata.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
sh | 501 | drivers/scsi/eata.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
sh | 510 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = FALSE; |
sh | 512 | drivers/scsi/eata.c | sh[j]->wish_block = TRUE; |
sh | 513 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = TRUE; |
sh | 524 | drivers/scsi/eata.c | sh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel, |
sh | 525 | drivers/scsi/eata.c | sh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun); |
sh | 528 | drivers/scsi/eata.c | if (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) { |
sh | 530 | drivers/scsi/eata.c | sh[j]->sg_tablesize = MAX_SGLIST; |
sh | 534 | drivers/scsi/eata.c | if (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue < 2) { |
sh | 536 | drivers/scsi/eata.c | sh[j]->can_queue = MAX_MAILBOXES; |
sh | 574 | drivers/scsi/eata.c | for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL; |
sh | 627 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
sh | 629 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
sh | 637 | drivers/scsi/eata.c | if (k == sh[j]->can_queue) { |
sh | 701 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) { |
sh | 734 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
sh | 737 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 795 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 805 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 835 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, 0, RESET_PIO)) { |
sh | 854 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 906 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) { |
sh | 908 | drivers/scsi/eata.c | if (sh[j]->irq != irq) continue; |
sh | 913 | drivers/scsi/eata.c | while (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) { |
sh | 921 | drivers/scsi/eata.c | inb(sh[j]->io_port + REG_STATUS); |
sh | 924 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 1086 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) |
sh | 1088 | drivers/scsi/eata.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
sh | 129 | drivers/scsi/eata_dma.c | int eata_release(struct Scsi_Host *sh) |
sh | 132 | drivers/scsi/eata_dma.c | if (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq); |
sh | 133 | drivers/scsi/eata_dma.c | else reg_IRQ[sh->irq]--; |
sh | 137 | drivers/scsi/eata_dma.c | for (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */ |
sh | 138 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
sh | 139 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
sh | 140 | drivers/scsi/eata_dma.c | sh->sg_tablesize * sizeof(struct eata_sg_list)); |
sh | 143 | drivers/scsi/eata_dma.c | if (SD(sh)->channel == 0) { |
sh | 144 | drivers/scsi/eata_dma.c | if (sh->dma_channel != BUSMASTER) free_dma(sh->dma_channel); |
sh | 145 | drivers/scsi/eata_dma.c | if (sh->io_port && sh->n_io_port) |
sh | 146 | drivers/scsi/eata_dma.c | release_region(sh->io_port, sh->n_io_port); |
sh | 163 | drivers/scsi/eata_dma.c | struct Scsi_Host *sh; |
sh | 168 | drivers/scsi/eata_dma.c | for (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->next) { |
sh | 169 | drivers/scsi/eata_dma.c | if (sh->irq != irq) |
sh | 172 | drivers/scsi/eata_dma.c | while(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ) { |
sh | 176 | drivers/scsi/eata_dma.c | sp = &SD(sh)->sp; |
sh | 180 | drivers/scsi/eata_dma.c | eata_stat = inb((uint)sh->base + HA_RSTATUS); |
sh | 351 | drivers/scsi/eata_dma.c | struct Scsi_Host *sh; |
sh | 361 | drivers/scsi/eata_dma.c | sh = cmd->host; |
sh | 364 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
sh | 365 | drivers/scsi/eata_dma.c | if (y >= sh->can_queue) |
sh | 373 | drivers/scsi/eata_dma.c | if (x >= sh->can_queue) { |
sh | 378 | drivers/scsi/eata_dma.c | queue_counter, int_counter, sh->can_queue, x, y); |
sh | 380 | drivers/scsi/eata_dma.c | for(z = 0; z < sh->can_queue; z +=2) { |
sh | 467 | drivers/scsi/eata_dma.c | if (cmd->target == sh->this_id) |
sh | 473 | drivers/scsi/eata_dma.c | cp->sg_list = kmalloc(sh->sg_tablesize * sizeof(struct eata_sg_list), |
sh | 510 | drivers/scsi/eata_dma.c | if(eata_send_command((u32) cp, (u32) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) { |
sh | 521 | drivers/scsi/eata_dma.c | "slot %d irq %d\n", (s32)sh->base, cmd->pid, |
sh | 522 | drivers/scsi/eata_dma.c | cmd->target, cmd->lun, y, sh->irq)); |
sh | 853 | drivers/scsi/eata_dma.c | struct Scsi_Host *sh; |
sh | 951 | drivers/scsi/eata_dma.c | sh = scsi_register(tpnt, size); |
sh | 953 | drivers/scsi/eata_dma.c | if(sh == NULL) { |
sh | 965 | drivers/scsi/eata_dma.c | hd = SD(sh); |
sh | 973 | drivers/scsi/eata_dma.c | strcpy(SD(sh)->vendor, "DPT"); |
sh | 974 | drivers/scsi/eata_dma.c | strcpy(SD(sh)->name, "??????????"); |
sh | 975 | drivers/scsi/eata_dma.c | strcpy(SD(sh)->revision, "???.?"); |
sh | 977 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->vendor, &buff[8], 8); |
sh | 978 | drivers/scsi/eata_dma.c | SD(sh)->vendor[8] = 0; |
sh | 979 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->name, &buff[16], 17); |
sh | 980 | drivers/scsi/eata_dma.c | SD(sh)->name[17] = 0; |
sh | 981 | drivers/scsi/eata_dma.c | SD(sh)->revision[0] = buff[32]; |
sh | 982 | drivers/scsi/eata_dma.c | SD(sh)->revision[1] = buff[33]; |
sh | 983 | drivers/scsi/eata_dma.c | SD(sh)->revision[2] = buff[34]; |
sh | 984 | drivers/scsi/eata_dma.c | SD(sh)->revision[3] = '.'; |
sh | 985 | drivers/scsi/eata_dma.c | SD(sh)->revision[4] = buff[35]; |
sh | 986 | drivers/scsi/eata_dma.c | SD(sh)->revision[5] = 0; |
sh | 991 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'a'; |
sh | 994 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'b'; |
sh | 997 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'c'; |
sh | 1000 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'z'; |
sh | 1002 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = '?'; |
sh | 1023 | drivers/scsi/eata_dma.c | sh->max_id = gc->MAX_ID + 1; |
sh | 1024 | drivers/scsi/eata_dma.c | sh->max_lun = gc->MAX_LUN + 1; |
sh | 1026 | drivers/scsi/eata_dma.c | sh->max_id = 8; |
sh | 1027 | drivers/scsi/eata_dma.c | sh->max_lun = 8; |
sh | 1031 | drivers/scsi/eata_dma.c | sh->max_channel = gc->MAX_CHAN; |
sh | 1032 | drivers/scsi/eata_dma.c | sh->unique_id = base; |
sh | 1033 | drivers/scsi/eata_dma.c | sh->base = (char *) base; |
sh | 1034 | drivers/scsi/eata_dma.c | sh->io_port = base; |
sh | 1035 | drivers/scsi/eata_dma.c | sh->n_io_port = 9; |
sh | 1036 | drivers/scsi/eata_dma.c | sh->irq = gc->IRQ; |
sh | 1037 | drivers/scsi/eata_dma.c | sh->dma_channel = dma_channel; |
sh | 1042 | drivers/scsi/eata_dma.c | sh->this_id = gc->scsi_id[3]; |
sh | 1043 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz); |
sh | 1047 | drivers/scsi/eata_dma.c | sh->cmd_per_lun = sh->can_queue/C_P_L_DIV; |
sh | 1049 | drivers/scsi/eata_dma.c | sh->cmd_per_lun = 8; /* We artificially limit this to conserve |
sh | 1053 | drivers/scsi/eata_dma.c | sh->cmd_per_lun = 1; |
sh | 1064 | drivers/scsi/eata_dma.c | sh->sg_tablesize = SG_SIZE_BIG; |
sh | 1065 | drivers/scsi/eata_dma.c | sh->use_clustering = FALSE; |
sh | 1067 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
sh | 1068 | drivers/scsi/eata_dma.c | sh->use_clustering = TRUE; |
sh | 1069 | drivers/scsi/eata_dma.c | if (sh->sg_tablesize > SG_SIZE || sh->sg_tablesize == 0) { |
sh | 1070 | drivers/scsi/eata_dma.c | sh->sg_tablesize = SG_SIZE; |
sh | 1082 | drivers/scsi/eata_dma.c | sh->wish_block = FALSE; |
sh | 1085 | drivers/scsi/eata_dma.c | sh->unchecked_isa_dma = FALSE; |
sh | 1087 | drivers/scsi/eata_dma.c | sh->unchecked_isa_dma = TRUE; /* We're doing ISA DMA */ |
sh | 1098 | drivers/scsi/eata_dma.c | SD(hd->prev)->next = sh; |
sh | 1099 | drivers/scsi/eata_dma.c | last_HBA = sh; |
sh | 1101 | drivers/scsi/eata_dma.c | first_HBA = sh; |
sh | 100 | drivers/scsi/eata_pio.c | int eata_pio_release(struct Scsi_Host *sh) |
sh | 102 | drivers/scsi/eata_pio.c | if (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq); |
sh | 103 | drivers/scsi/eata_pio.c | else reg_IRQ[sh->irq]--; |
sh | 104 | drivers/scsi/eata_pio.c | if (SD(sh)->channel == 0) { |
sh | 105 | drivers/scsi/eata_pio.c | if (sh->io_port && sh->n_io_port) |
sh | 106 | drivers/scsi/eata_pio.c | release_region(sh->io_port, sh->n_io_port); |
sh | 136 | drivers/scsi/eata_pio.c | struct Scsi_Host *sh; |
sh | 143 | drivers/scsi/eata_pio.c | for (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) { |
sh | 144 | drivers/scsi/eata_pio.c | if (sh->irq != irq) |
sh | 146 | drivers/scsi/eata_pio.c | if (inb((uint)sh->base + HA_RSTATUS) & HA_SBUSY) |
sh | 151 | drivers/scsi/eata_pio.c | hd=SD(sh); |
sh | 286 | drivers/scsi/eata_pio.c | struct Scsi_Host *sh; |
sh | 295 | drivers/scsi/eata_pio.c | sh = cmd->host; |
sh | 296 | drivers/scsi/eata_pio.c | base = (uint) sh->base; |
sh | 304 | drivers/scsi/eata_pio.c | DBG(DBG_QUEUE, printk("can_queue %d, x %d, y %d\n",sh->can_queue,x,y)); |
sh | 394 | drivers/scsi/eata_pio.c | "slot %d irq %d\n", (long)sh->base, cmd->pid, |
sh | 395 | drivers/scsi/eata_pio.c | cmd->target, cmd->lun, y, sh->irq)); |
sh | 682 | drivers/scsi/eata_pio.c | struct Scsi_Host *sh; |
sh | 731 | drivers/scsi/eata_pio.c | sh = scsi_register(tpnt, size); |
sh | 732 | drivers/scsi/eata_pio.c | hd = SD(sh); |
sh | 737 | drivers/scsi/eata_pio.c | strncpy(SD(sh)->vendor, &buff[8], 8); |
sh | 738 | drivers/scsi/eata_pio.c | SD(sh)->vendor[8] = 0; |
sh | 739 | drivers/scsi/eata_pio.c | strncpy(SD(sh)->name, &buff[16], 17); |
sh | 740 | drivers/scsi/eata_pio.c | SD(sh)->name[17] = 0; |
sh | 741 | drivers/scsi/eata_pio.c | SD(sh)->revision[0] = buff[32]; |
sh | 742 | drivers/scsi/eata_pio.c | SD(sh)->revision[1] = buff[33]; |
sh | 743 | drivers/scsi/eata_pio.c | SD(sh)->revision[2] = buff[34]; |
sh | 744 | drivers/scsi/eata_pio.c | SD(sh)->revision[3] = '.'; |
sh | 745 | drivers/scsi/eata_pio.c | SD(sh)->revision[4] = buff[35]; |
sh | 746 | drivers/scsi/eata_pio.c | SD(sh)->revision[5] = 0; |
sh | 750 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'a'; |
sh | 753 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'b'; |
sh | 756 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'c'; |
sh | 759 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'z'; |
sh | 761 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = '?'; |
sh | 780 | drivers/scsi/eata_pio.c | SD(sh)->cplen=cplen; |
sh | 781 | drivers/scsi/eata_pio.c | SD(sh)->cppadlen=cppadlen; |
sh | 782 | drivers/scsi/eata_pio.c | SD(sh)->hostid=gc->scsi_id[3]; |
sh | 783 | drivers/scsi/eata_pio.c | SD(sh)->devflags=1<<gc->scsi_id[3]; |
sh | 784 | drivers/scsi/eata_pio.c | SD(sh)->moresupport=gc->MORE_support; |
sh | 785 | drivers/scsi/eata_pio.c | sh->unique_id = base; |
sh | 786 | drivers/scsi/eata_pio.c | sh->base = (char *) base; |
sh | 787 | drivers/scsi/eata_pio.c | sh->io_port = base; |
sh | 788 | drivers/scsi/eata_pio.c | sh->n_io_port = 8; |
sh | 789 | drivers/scsi/eata_pio.c | sh->irq = gc->IRQ; |
sh | 790 | drivers/scsi/eata_pio.c | sh->dma_channel = PIO; |
sh | 791 | drivers/scsi/eata_pio.c | sh->this_id = gc->scsi_id[3]; |
sh | 792 | drivers/scsi/eata_pio.c | sh->can_queue = 1; |
sh | 793 | drivers/scsi/eata_pio.c | sh->cmd_per_lun = 1; |
sh | 794 | drivers/scsi/eata_pio.c | sh->sg_tablesize = SG_ALL; |
sh | 798 | drivers/scsi/eata_pio.c | sh->max_id = 8; |
sh | 799 | drivers/scsi/eata_pio.c | sh->max_lun = 8; |
sh | 806 | drivers/scsi/eata_pio.c | sh->unchecked_isa_dma = FALSE; /* We can only do PIO */ |
sh | 811 | drivers/scsi/eata_pio.c | SD(hd->prev)->next = sh; |
sh | 812 | drivers/scsi/eata_pio.c | last_HBA = sh; |
sh | 814 | drivers/scsi/eata_pio.c | first_HBA = sh; |
sh | 249 | drivers/scsi/hosts.c | scsi_unregister(struct Scsi_Host * sh){ |
sh | 252 | drivers/scsi/hosts.c | if(scsi_hostlist == sh) |
sh | 253 | drivers/scsi/hosts.c | scsi_hostlist = sh->next; |
sh | 256 | drivers/scsi/hosts.c | while(shpnt->next != sh) shpnt = shpnt->next; |
sh | 267 | drivers/scsi/hosts.c | scsi_init_free((char *) sh, sizeof(struct Scsi_Host) + sh->extra_bytes); |
sh | 296 | drivers/scsi/scsi.c | struct Scsi_Host * sh[128], * shpnt; |
sh | 331 | drivers/scsi/scsi.c | if (shpnt->wish_block) sh[block_count++] = shpnt; |
sh | 334 | drivers/scsi/scsi.c | if (block_count == 1) sh[0]->block = NULL; |
sh | 339 | drivers/scsi/scsi.c | sh[index]->block = sh[index + 1]; |
sh | 341 | drivers/scsi/scsi.c | sh[index]->host_no); |
sh | 344 | drivers/scsi/scsi.c | sh[block_count - 1]->block = sh[0]; |
sh | 346 | drivers/scsi/scsi.c | sh[index]->host_no); |
sh | 283 | drivers/scsi/u14-34f.c | static struct Scsi_Host * sh[MAX_BOARDS + 1]; |
sh | 287 | drivers/scsi/u14-34f.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
sh | 315 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 323 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
sh | 326 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
sh | 329 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
sh | 422 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
sh | 424 | drivers/scsi/u14-34f.c | if (sh[j] == NULL) { |
sh | 434 | drivers/scsi/u14-34f.c | sh[j]->io_port = *port_base; |
sh | 435 | drivers/scsi/u14-34f.c | sh[j]->n_io_port = REGION_SIZE; |
sh | 436 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
sh | 437 | drivers/scsi/u14-34f.c | sh[j]->irq = irq; |
sh | 438 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SGLIST; |
sh | 439 | drivers/scsi/u14-34f.c | sh[j]->this_id = config_2.ha_scsi_id; |
sh | 440 | drivers/scsi/u14-34f.c | sh[j]->can_queue = MAX_MAILBOXES; |
sh | 441 | drivers/scsi/u14-34f.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
sh | 447 | drivers/scsi/u14-34f.c | sys_mask = inb(sh[j]->io_port + REG_SYS_MASK); |
sh | 448 | drivers/scsi/u14-34f.c | lcl_mask = inb(sh[j]->io_port + REG_LCL_MASK); |
sh | 454 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
sh | 457 | drivers/scsi/u14-34f.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
sh | 469 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 472 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = NO_DMA; |
sh | 473 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = FALSE; |
sh | 477 | drivers/scsi/u14-34f.c | sh[j]->wish_block = TRUE; |
sh | 480 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
sh | 481 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 484 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = dma_channel; |
sh | 485 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = TRUE; |
sh | 500 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
sh | 501 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 506 | drivers/scsi/u14-34f.c | "Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, |
sh | 507 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
sh | 508 | drivers/scsi/u14-34f.c | sh[j]->dma_channel, sh[j]->sg_tablesize, |
sh | 509 | drivers/scsi/u14-34f.c | sh[j]->can_queue, sh[j]->cmd_per_lun, |
sh | 510 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering); |
sh | 533 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL; |
sh | 581 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
sh | 583 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
sh | 591 | drivers/scsi/u14-34f.c | if (k == sh[j]->can_queue) { |
sh | 638 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 649 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
sh | 652 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
sh | 677 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
sh | 680 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 738 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 748 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 778 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 784 | drivers/scsi/u14-34f.c | outb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR); |
sh | 798 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 859 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) { |
sh | 861 | drivers/scsi/u14-34f.c | if (sh[j]->irq != irq) continue; |
sh | 866 | drivers/scsi/u14-34f.c | while (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) { |
sh | 873 | drivers/scsi/u14-34f.c | spp = (struct mscp *)inl(sh[j]->io_port + REG_ICM); |
sh | 876 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
sh | 880 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
sh | 1031 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) |
sh | 1033 | drivers/scsi/u14-34f.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
sh | 170 | drivers/scsi/wd7000.c | struct Scsi_Host *sh; /* Pointer to Scsi_Host structure */ |
sh | 1112 | drivers/scsi/wd7000.c | struct Scsi_Host *sh; |
sh | 1145 | drivers/scsi/wd7000.c | sh = scsi_register(tpnt, sizeof(Adapter) ); |
sh | 1146 | drivers/scsi/wd7000.c | host = (Adapter *) sh->hostdata; |
sh | 1152 | drivers/scsi/wd7000.c | host->sh = sh; |
sh | 1159 | drivers/scsi/wd7000.c | scsi_unregister (sh); |
sh | 1177 | drivers/scsi/wd7000.c | if (host->rev1 < 6) sh->sg_tablesize = SG_NONE; |