tag | line | file | source code |
sh | 767 | drivers/scsi/atari_scsi.c | int atari_scsi_release (struct Scsi_Host *sh) |
sh | 321 | drivers/scsi/eata.c | static struct Scsi_Host * sh[MAX_BOARDS + 1]; |
sh | 325 | drivers/scsi/eata.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
sh | 482 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
sh | 484 | drivers/scsi/eata.c | if (sh[j] == NULL) { |
sh | 494 | drivers/scsi/eata.c | sh[j]->io_port = *port_base; |
sh | 495 | drivers/scsi/eata.c | sh[j]->n_io_port = REGION_SIZE; |
sh | 496 | drivers/scsi/eata.c | sh[j]->dma_channel = dma_channel; |
sh | 497 | drivers/scsi/eata.c | sh[j]->irq = irq; |
sh | 498 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
sh | 499 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
sh | 500 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
sh | 501 | drivers/scsi/eata.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
sh | 504 | drivers/scsi/eata.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
sh | 513 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = FALSE; |
sh | 515 | drivers/scsi/eata.c | sh[j]->wish_block = TRUE; |
sh | 516 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = TRUE; |
sh | 527 | drivers/scsi/eata.c | sh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel, |
sh | 528 | drivers/scsi/eata.c | sh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun); |
sh | 531 | drivers/scsi/eata.c | if (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) { |
sh | 533 | drivers/scsi/eata.c | sh[j]->sg_tablesize = MAX_SGLIST; |
sh | 537 | drivers/scsi/eata.c | if (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue < 2) { |
sh | 539 | drivers/scsi/eata.c | sh[j]->can_queue = MAX_MAILBOXES; |
sh | 577 | drivers/scsi/eata.c | for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL; |
sh | 630 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
sh | 632 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
sh | 640 | drivers/scsi/eata.c | if (k == sh[j]->can_queue) { |
sh | 705 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) { |
sh | 738 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
sh | 741 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 799 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 809 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 839 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, 0, RESET_PIO)) { |
sh | 858 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 910 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) { |
sh | 912 | drivers/scsi/eata.c | if (sh[j]->irq != irq) continue; |
sh | 917 | drivers/scsi/eata.c | while (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) { |
sh | 925 | drivers/scsi/eata.c | inb(sh[j]->io_port + REG_STATUS); |
sh | 928 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 1090 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) |
sh | 1092 | 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, NULL); |
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, NULL); |
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 | 312 | drivers/scsi/hosts.c | scsi_unregister(struct Scsi_Host * sh){ |
sh | 315 | drivers/scsi/hosts.c | if(scsi_hostlist == sh) |
sh | 316 | drivers/scsi/hosts.c | scsi_hostlist = sh->next; |
sh | 319 | drivers/scsi/hosts.c | while(shpnt->next != sh) shpnt = shpnt->next; |
sh | 330 | drivers/scsi/hosts.c | scsi_init_free((char *) sh, sizeof(struct Scsi_Host) + sh->extra_bytes); |
sh | 319 | drivers/scsi/scsi.c | struct Scsi_Host * sh[128], * shpnt; |
sh | 354 | drivers/scsi/scsi.c | if (shpnt->wish_block) sh[block_count++] = shpnt; |
sh | 357 | drivers/scsi/scsi.c | if (block_count == 1) sh[0]->block = NULL; |
sh | 362 | drivers/scsi/scsi.c | sh[index]->block = sh[index + 1]; |
sh | 364 | drivers/scsi/scsi.c | sh[index]->host_no); |
sh | 367 | drivers/scsi/scsi.c | sh[block_count - 1]->block = sh[0]; |
sh | 369 | drivers/scsi/scsi.c | sh[index]->host_no); |
sh | 291 | drivers/scsi/u14-34f.c | static struct Scsi_Host * sh[MAX_BOARDS + 1]; |
sh | 295 | drivers/scsi/u14-34f.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
sh | 323 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 331 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
sh | 334 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
sh | 337 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
sh | 430 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
sh | 432 | drivers/scsi/u14-34f.c | if (sh[j] == NULL) { |
sh | 442 | drivers/scsi/u14-34f.c | sh[j]->io_port = *port_base; |
sh | 443 | drivers/scsi/u14-34f.c | sh[j]->n_io_port = REGION_SIZE; |
sh | 444 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
sh | 445 | drivers/scsi/u14-34f.c | sh[j]->irq = irq; |
sh | 446 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SGLIST; |
sh | 447 | drivers/scsi/u14-34f.c | sh[j]->this_id = config_2.ha_scsi_id; |
sh | 448 | drivers/scsi/u14-34f.c | sh[j]->can_queue = MAX_MAILBOXES; |
sh | 449 | drivers/scsi/u14-34f.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
sh | 455 | drivers/scsi/u14-34f.c | sys_mask = inb(sh[j]->io_port + REG_SYS_MASK); |
sh | 456 | drivers/scsi/u14-34f.c | lcl_mask = inb(sh[j]->io_port + REG_LCL_MASK); |
sh | 462 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
sh | 465 | drivers/scsi/u14-34f.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
sh | 477 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 480 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = NO_DMA; |
sh | 481 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = FALSE; |
sh | 485 | drivers/scsi/u14-34f.c | sh[j]->wish_block = TRUE; |
sh | 488 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
sh | 489 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 492 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = dma_channel; |
sh | 493 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = TRUE; |
sh | 508 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
sh | 509 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 514 | drivers/scsi/u14-34f.c | "Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, |
sh | 515 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
sh | 516 | drivers/scsi/u14-34f.c | sh[j]->dma_channel, sh[j]->sg_tablesize, |
sh | 517 | drivers/scsi/u14-34f.c | sh[j]->can_queue, sh[j]->cmd_per_lun, |
sh | 518 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering); |
sh | 541 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL; |
sh | 595 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
sh | 597 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
sh | 605 | drivers/scsi/u14-34f.c | if (k == sh[j]->can_queue) { |
sh | 660 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 671 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
sh | 674 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
sh | 699 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
sh | 702 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 760 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 770 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 800 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 806 | drivers/scsi/u14-34f.c | outb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR); |
sh | 820 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 881 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) { |
sh | 883 | drivers/scsi/u14-34f.c | if (sh[j]->irq != irq) continue; |
sh | 888 | drivers/scsi/u14-34f.c | while (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) { |
sh | 895 | drivers/scsi/u14-34f.c | spp = (struct mscp *)inl(sh[j]->io_port + REG_ICM); |
sh | 898 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
sh | 902 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
sh | 1053 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) |
sh | 1055 | 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; |