tag | line | file | source code |
sh | 312 | drivers/scsi/eata.c | static struct Scsi_Host * sh[MAX_BOARDS + 1]; |
sh | 316 | drivers/scsi/eata.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
sh | 473 | drivers/scsi/eata.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
sh | 475 | drivers/scsi/eata.c | if (sh[j] == NULL) { |
sh | 485 | drivers/scsi/eata.c | sh[j]->io_port = *port_base; |
sh | 486 | drivers/scsi/eata.c | sh[j]->n_io_port = REGION_SIZE; |
sh | 487 | drivers/scsi/eata.c | sh[j]->dma_channel = dma_channel; |
sh | 488 | drivers/scsi/eata.c | sh[j]->irq = irq; |
sh | 489 | drivers/scsi/eata.c | sh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size); |
sh | 490 | drivers/scsi/eata.c | sh[j]->this_id = (ushort) info.host_addr[3]; |
sh | 491 | drivers/scsi/eata.c | sh[j]->can_queue = (ushort) ntohs(info.queue_size); |
sh | 492 | drivers/scsi/eata.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
sh | 495 | drivers/scsi/eata.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
sh | 504 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = FALSE; |
sh | 506 | drivers/scsi/eata.c | sh[j]->wish_block = TRUE; |
sh | 507 | drivers/scsi/eata.c | sh[j]->unchecked_isa_dma = TRUE; |
sh | 518 | drivers/scsi/eata.c | sh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel, |
sh | 519 | drivers/scsi/eata.c | sh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun); |
sh | 522 | drivers/scsi/eata.c | if (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) { |
sh | 524 | drivers/scsi/eata.c | sh[j]->sg_tablesize = MAX_SGLIST; |
sh | 528 | drivers/scsi/eata.c | if (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue < 2) { |
sh | 530 | drivers/scsi/eata.c | sh[j]->can_queue = MAX_MAILBOXES; |
sh | 566 | drivers/scsi/eata.c | for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL; |
sh | 619 | drivers/scsi/eata.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
sh | 621 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) i = 0; |
sh | 629 | drivers/scsi/eata.c | if (k == sh[j]->can_queue) { |
sh | 693 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) { |
sh | 726 | drivers/scsi/eata.c | if (i >= sh[j]->can_queue) |
sh | 729 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 787 | drivers/scsi/eata.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 797 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 827 | drivers/scsi/eata.c | if (do_dma(sh[j]->io_port, 0, RESET_PIO)) { |
sh | 846 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 898 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) { |
sh | 900 | drivers/scsi/eata.c | if (sh[j]->irq != irq) continue; |
sh | 905 | drivers/scsi/eata.c | while (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) { |
sh | 913 | drivers/scsi/eata.c | inb(sh[j]->io_port + REG_STATUS); |
sh | 916 | drivers/scsi/eata.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 1078 | drivers/scsi/eata.c | for (j = 0; sh[j] != NULL; j++) |
sh | 1080 | drivers/scsi/eata.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
sh | 126 | drivers/scsi/eata_dma.c | int eata_release(struct Scsi_Host *sh) |
sh | 129 | drivers/scsi/eata_dma.c | if (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq); |
sh | 130 | drivers/scsi/eata_dma.c | else reg_IRQ[sh->irq]--; |
sh | 134 | drivers/scsi/eata_dma.c | for (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */ |
sh | 135 | drivers/scsi/eata_dma.c | if(SD(sh)->ccb[i].sg_list != NULL) |
sh | 136 | drivers/scsi/eata_dma.c | scsi_init_free((void *) SD(sh)->ccb[i].sg_list, |
sh | 137 | drivers/scsi/eata_dma.c | sh->sg_tablesize * sizeof(struct eata_sg_list)); |
sh | 140 | drivers/scsi/eata_dma.c | if (SD(sh)->channel == 0) { |
sh | 141 | drivers/scsi/eata_dma.c | if (sh->dma_channel != 0xff) free_dma(sh->dma_channel); |
sh | 142 | drivers/scsi/eata_dma.c | if (sh->io_port && sh->n_io_port) |
sh | 143 | drivers/scsi/eata_dma.c | release_region(sh->io_port, sh->n_io_port); |
sh | 160 | drivers/scsi/eata_dma.c | struct Scsi_Host *sh; |
sh | 165 | drivers/scsi/eata_dma.c | for (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) { |
sh | 166 | drivers/scsi/eata_dma.c | if (sh->irq != irq) |
sh | 168 | drivers/scsi/eata_dma.c | if (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ)) |
sh | 173 | drivers/scsi/eata_dma.c | sp=&SD(sh)->sp; |
sh | 342 | drivers/scsi/eata_dma.c | struct Scsi_Host *sh; |
sh | 352 | drivers/scsi/eata_dma.c | sh = cmd->host; |
sh | 355 | drivers/scsi/eata_dma.c | for (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { |
sh | 356 | drivers/scsi/eata_dma.c | if (y >= sh->can_queue) |
sh | 364 | drivers/scsi/eata_dma.c | if (x == sh->can_queue) { |
sh | 366 | drivers/scsi/eata_dma.c | sh->can_queue, x, y)); |
sh | 441 | drivers/scsi/eata_dma.c | if (cmd->target == sh->this_id) |
sh | 483 | drivers/scsi/eata_dma.c | if(eata_send_command((u32) cp, (u32) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) { |
sh | 493 | drivers/scsi/eata_dma.c | "slot %d irq %d\n", (s32)sh->base, cmd->pid, |
sh | 494 | drivers/scsi/eata_dma.c | cmd->target, cmd->lun, y, sh->irq)); |
sh | 826 | drivers/scsi/eata_dma.c | struct Scsi_Host *sh; |
sh | 925 | drivers/scsi/eata_dma.c | sh = scsi_register(tpnt, size); |
sh | 927 | drivers/scsi/eata_dma.c | if(sh == NULL) { |
sh | 939 | drivers/scsi/eata_dma.c | hd = SD(sh); |
sh | 947 | drivers/scsi/eata_dma.c | strcpy(SD(sh)->vendor, "DPT"); |
sh | 948 | drivers/scsi/eata_dma.c | strcpy(SD(sh)->name, "??????????"); |
sh | 949 | drivers/scsi/eata_dma.c | strcpy(SD(sh)->revision, "???.?"); |
sh | 951 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->vendor, &buff[8], 8); |
sh | 952 | drivers/scsi/eata_dma.c | SD(sh)->vendor[8] = 0; |
sh | 953 | drivers/scsi/eata_dma.c | strncpy(SD(sh)->name, &buff[16], 17); |
sh | 954 | drivers/scsi/eata_dma.c | SD(sh)->name[17] = 0; |
sh | 955 | drivers/scsi/eata_dma.c | SD(sh)->revision[0] = buff[32]; |
sh | 956 | drivers/scsi/eata_dma.c | SD(sh)->revision[1] = buff[33]; |
sh | 957 | drivers/scsi/eata_dma.c | SD(sh)->revision[2] = buff[34]; |
sh | 958 | drivers/scsi/eata_dma.c | SD(sh)->revision[3] = '.'; |
sh | 959 | drivers/scsi/eata_dma.c | SD(sh)->revision[4] = buff[35]; |
sh | 960 | drivers/scsi/eata_dma.c | SD(sh)->revision[5] = 0; |
sh | 965 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'a'; |
sh | 968 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'b'; |
sh | 971 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'c'; |
sh | 974 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = 'z'; |
sh | 976 | drivers/scsi/eata_dma.c | SD(sh)->EATA_revision = '?'; |
sh | 997 | drivers/scsi/eata_dma.c | sh->max_id = gc->MAX_ID + 1; |
sh | 998 | drivers/scsi/eata_dma.c | sh->max_lun = gc->MAX_LUN + 1; |
sh | 1000 | drivers/scsi/eata_dma.c | sh->max_id = 8; |
sh | 1001 | drivers/scsi/eata_dma.c | sh->max_lun = 8; |
sh | 1005 | drivers/scsi/eata_dma.c | sh->max_channel = gc->MAX_CHAN; |
sh | 1006 | drivers/scsi/eata_dma.c | sh->base = (char *) base; |
sh | 1007 | drivers/scsi/eata_dma.c | sh->io_port = (u16) base; |
sh | 1008 | drivers/scsi/eata_dma.c | sh->n_io_port = 9; |
sh | 1009 | drivers/scsi/eata_dma.c | sh->irq = gc->IRQ; |
sh | 1010 | drivers/scsi/eata_dma.c | sh->dma_channel = dma_channel; |
sh | 1015 | drivers/scsi/eata_dma.c | sh->this_id = gc->scsi_id[3]; |
sh | 1016 | drivers/scsi/eata_dma.c | sh->can_queue = ntohs(gc->queuesiz); |
sh | 1020 | drivers/scsi/eata_dma.c | sh->cmd_per_lun = sh->can_queue/C_P_L_DIV; |
sh | 1022 | drivers/scsi/eata_dma.c | sh->cmd_per_lun = 8; /* We artificially limit this to conserve memory, |
sh | 1025 | drivers/scsi/eata_dma.c | sh->cmd_per_lun = 1; |
sh | 1036 | drivers/scsi/eata_dma.c | sh->sg_tablesize = SG_SIZE_BIG; |
sh | 1037 | drivers/scsi/eata_dma.c | sh->use_clustering = FALSE; |
sh | 1039 | drivers/scsi/eata_dma.c | sh->sg_tablesize = ntohs(gc->SGsiz); |
sh | 1040 | drivers/scsi/eata_dma.c | sh->use_clustering = TRUE; |
sh | 1041 | drivers/scsi/eata_dma.c | if (sh->sg_tablesize > SG_SIZE || sh->sg_tablesize == 0) { |
sh | 1042 | drivers/scsi/eata_dma.c | sh->sg_tablesize = SG_SIZE; |
sh | 1054 | drivers/scsi/eata_dma.c | sh->wish_block = FALSE; |
sh | 1057 | drivers/scsi/eata_dma.c | sh->unchecked_isa_dma = FALSE; |
sh | 1059 | drivers/scsi/eata_dma.c | sh->unchecked_isa_dma = TRUE; /* We're doing ISA DMA */ |
sh | 1070 | drivers/scsi/eata_dma.c | SD(hd->prev)->next = sh; |
sh | 1071 | drivers/scsi/eata_dma.c | last_HBA = sh; |
sh | 1073 | drivers/scsi/eata_dma.c | first_HBA = sh; |
sh | 95 | drivers/scsi/eata_pio.c | int eata_pio_release(struct Scsi_Host *sh) |
sh | 97 | drivers/scsi/eata_pio.c | if (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq); |
sh | 98 | drivers/scsi/eata_pio.c | else reg_IRQ[sh->irq]--; |
sh | 99 | drivers/scsi/eata_pio.c | if (SD(sh)->channel == 0) { |
sh | 100 | drivers/scsi/eata_pio.c | if (sh->io_port && sh->n_io_port) |
sh | 101 | drivers/scsi/eata_pio.c | release_region(sh->io_port, sh->n_io_port); |
sh | 131 | drivers/scsi/eata_pio.c | struct Scsi_Host *sh; |
sh | 138 | drivers/scsi/eata_pio.c | for (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) { |
sh | 139 | drivers/scsi/eata_pio.c | if (sh->irq != irq) |
sh | 141 | drivers/scsi/eata_pio.c | if (inb((uint)sh->base + HA_RSTATUS) & HA_SBUSY) |
sh | 146 | drivers/scsi/eata_pio.c | hd=SD(sh); |
sh | 281 | drivers/scsi/eata_pio.c | struct Scsi_Host *sh; |
sh | 290 | drivers/scsi/eata_pio.c | sh = cmd->host; |
sh | 291 | drivers/scsi/eata_pio.c | base = (uint) sh->base; |
sh | 299 | drivers/scsi/eata_pio.c | DBG(DBG_QUEUE, printk("can_queue %d, x %d, y %d\n",sh->can_queue,x,y)); |
sh | 388 | drivers/scsi/eata_pio.c | "slot %d irq %d\n", (long)sh->base, cmd->pid, |
sh | 389 | drivers/scsi/eata_pio.c | cmd->target, cmd->lun, y, sh->irq)); |
sh | 676 | drivers/scsi/eata_pio.c | struct Scsi_Host *sh; |
sh | 725 | drivers/scsi/eata_pio.c | sh = scsi_register(tpnt, size); |
sh | 726 | drivers/scsi/eata_pio.c | hd = SD(sh); |
sh | 731 | drivers/scsi/eata_pio.c | strncpy(SD(sh)->vendor, &buff[8], 8); |
sh | 732 | drivers/scsi/eata_pio.c | SD(sh)->vendor[8] = 0; |
sh | 733 | drivers/scsi/eata_pio.c | strncpy(SD(sh)->name, &buff[16], 17); |
sh | 734 | drivers/scsi/eata_pio.c | SD(sh)->name[17] = 0; |
sh | 735 | drivers/scsi/eata_pio.c | SD(sh)->revision[0] = buff[32]; |
sh | 736 | drivers/scsi/eata_pio.c | SD(sh)->revision[1] = buff[33]; |
sh | 737 | drivers/scsi/eata_pio.c | SD(sh)->revision[2] = buff[34]; |
sh | 738 | drivers/scsi/eata_pio.c | SD(sh)->revision[3] = '.'; |
sh | 739 | drivers/scsi/eata_pio.c | SD(sh)->revision[4] = buff[35]; |
sh | 740 | drivers/scsi/eata_pio.c | SD(sh)->revision[5] = 0; |
sh | 744 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'a'; |
sh | 747 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'b'; |
sh | 750 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'c'; |
sh | 753 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = 'z'; |
sh | 755 | drivers/scsi/eata_pio.c | SD(sh)->EATA_revision = '?'; |
sh | 774 | drivers/scsi/eata_pio.c | SD(sh)->cplen=cplen; |
sh | 775 | drivers/scsi/eata_pio.c | SD(sh)->cppadlen=cppadlen; |
sh | 776 | drivers/scsi/eata_pio.c | SD(sh)->hostid=gc->scsi_id[3]; |
sh | 777 | drivers/scsi/eata_pio.c | SD(sh)->devflags=1<<gc->scsi_id[3]; |
sh | 778 | drivers/scsi/eata_pio.c | SD(sh)->moresupport=gc->MORE_support; |
sh | 779 | drivers/scsi/eata_pio.c | sh->base = (char *) base; |
sh | 780 | drivers/scsi/eata_pio.c | sh->io_port = (ushort) base; |
sh | 781 | drivers/scsi/eata_pio.c | sh->n_io_port = 8; |
sh | 782 | drivers/scsi/eata_pio.c | sh->irq = gc->IRQ; |
sh | 783 | drivers/scsi/eata_pio.c | sh->dma_channel = 0xfe; /* PIO */ |
sh | 784 | drivers/scsi/eata_pio.c | sh->this_id = gc->scsi_id[3]; |
sh | 785 | drivers/scsi/eata_pio.c | sh->can_queue = 1; |
sh | 786 | drivers/scsi/eata_pio.c | sh->cmd_per_lun = 1; |
sh | 787 | drivers/scsi/eata_pio.c | sh->sg_tablesize = SG_ALL; |
sh | 791 | drivers/scsi/eata_pio.c | sh->max_id = 8; |
sh | 792 | drivers/scsi/eata_pio.c | sh->max_lun = 8; |
sh | 799 | drivers/scsi/eata_pio.c | sh->unchecked_isa_dma = FALSE; /* We can only do PIO */ |
sh | 804 | drivers/scsi/eata_pio.c | SD(hd->prev)->next = sh; |
sh | 805 | drivers/scsi/eata_pio.c | last_HBA = sh; |
sh | 807 | drivers/scsi/eata_pio.c | first_HBA = sh; |
sh | 241 | drivers/scsi/hosts.c | scsi_unregister(struct Scsi_Host * sh){ |
sh | 244 | drivers/scsi/hosts.c | if(scsi_hostlist == sh) |
sh | 245 | drivers/scsi/hosts.c | scsi_hostlist = sh->next; |
sh | 248 | drivers/scsi/hosts.c | while(shpnt->next != sh) shpnt = shpnt->next; |
sh | 259 | drivers/scsi/hosts.c | scsi_init_free((char *) sh, sizeof(struct Scsi_Host) + sh->extra_bytes); |
sh | 274 | drivers/scsi/scsi.c | struct Scsi_Host * sh[128], * shpnt; |
sh | 309 | drivers/scsi/scsi.c | if (shpnt->wish_block) sh[block_count++] = shpnt; |
sh | 312 | drivers/scsi/scsi.c | if (block_count == 1) sh[0]->block = NULL; |
sh | 317 | drivers/scsi/scsi.c | sh[index]->block = sh[index + 1]; |
sh | 319 | drivers/scsi/scsi.c | sh[index]->host_no); |
sh | 322 | drivers/scsi/scsi.c | sh[block_count - 1]->block = sh[0]; |
sh | 324 | drivers/scsi/scsi.c | sh[index]->host_no); |
sh | 277 | drivers/scsi/u14-34f.c | static struct Scsi_Host * sh[MAX_BOARDS + 1]; |
sh | 281 | drivers/scsi/u14-34f.c | #define HD(board) ((struct hostdata *) &sh[board]->hostdata) |
sh | 309 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 317 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
sh | 320 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
sh | 323 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
sh | 416 | drivers/scsi/u14-34f.c | sh[j] = scsi_register(tpnt, sizeof(struct hostdata)); |
sh | 418 | drivers/scsi/u14-34f.c | if (sh[j] == NULL) { |
sh | 428 | drivers/scsi/u14-34f.c | sh[j]->io_port = *port_base; |
sh | 429 | drivers/scsi/u14-34f.c | sh[j]->n_io_port = REGION_SIZE; |
sh | 430 | drivers/scsi/u14-34f.c | sh[j]->base = bios_segment_table[config_1.bios_segment]; |
sh | 431 | drivers/scsi/u14-34f.c | sh[j]->irq = irq; |
sh | 432 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SGLIST; |
sh | 433 | drivers/scsi/u14-34f.c | sh[j]->this_id = config_2.ha_scsi_id; |
sh | 434 | drivers/scsi/u14-34f.c | sh[j]->can_queue = MAX_MAILBOXES; |
sh | 435 | drivers/scsi/u14-34f.c | sh[j]->cmd_per_lun = MAX_CMD_PER_LUN; |
sh | 441 | drivers/scsi/u14-34f.c | sys_mask = inb(sh[j]->io_port + REG_SYS_MASK); |
sh | 442 | drivers/scsi/u14-34f.c | lcl_mask = inb(sh[j]->io_port + REG_LCL_MASK); |
sh | 448 | drivers/scsi/u14-34f.c | if (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK); |
sh | 451 | drivers/scsi/u14-34f.c | request_region(sh[j]->io_port, REGION_SIZE, driver_name); |
sh | 463 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 466 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = NO_DMA; |
sh | 467 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = FALSE; |
sh | 471 | drivers/scsi/u14-34f.c | sh[j]->wish_block = TRUE; |
sh | 474 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
sh | 475 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 478 | drivers/scsi/u14-34f.c | sh[j]->dma_channel = dma_channel; |
sh | 479 | drivers/scsi/u14-34f.c | sh[j]->unchecked_isa_dma = TRUE; |
sh | 494 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering = DISABLE_CLUSTERING; |
sh | 495 | drivers/scsi/u14-34f.c | sh[j]->sg_tablesize = MAX_SAFE_SGLIST; |
sh | 500 | drivers/scsi/u14-34f.c | "Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, |
sh | 501 | drivers/scsi/u14-34f.c | (int)sh[j]->base, sh[j]->irq, |
sh | 502 | drivers/scsi/u14-34f.c | sh[j]->dma_channel, sh[j]->sg_tablesize, |
sh | 503 | drivers/scsi/u14-34f.c | sh[j]->can_queue, sh[j]->cmd_per_lun, |
sh | 504 | drivers/scsi/u14-34f.c | sh[j]->hostt->use_clustering); |
sh | 525 | drivers/scsi/u14-34f.c | for (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL; |
sh | 573 | drivers/scsi/u14-34f.c | for (k = 0; k < sh[j]->can_queue; k++, i++) { |
sh | 575 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) i = 0; |
sh | 583 | drivers/scsi/u14-34f.c | if (k == sh[j]->can_queue) { |
sh | 630 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 641 | drivers/scsi/u14-34f.c | outl((unsigned int)cpp, sh[j]->io_port + REG_OGM); |
sh | 644 | drivers/scsi/u14-34f.c | outb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR); |
sh | 669 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
sh | 672 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 730 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 740 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 770 | drivers/scsi/u14-34f.c | if (wait_on_busy(sh[j]->io_port)) { |
sh | 776 | drivers/scsi/u14-34f.c | outb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR); |
sh | 790 | drivers/scsi/u14-34f.c | for (i = 0; i < sh[j]->can_queue; i++) { |
sh | 851 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) { |
sh | 853 | drivers/scsi/u14-34f.c | if (sh[j]->irq != irq) continue; |
sh | 858 | drivers/scsi/u14-34f.c | while (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) { |
sh | 865 | drivers/scsi/u14-34f.c | spp = (struct mscp *)inl(sh[j]->io_port + REG_ICM); |
sh | 868 | drivers/scsi/u14-34f.c | outb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR); |
sh | 872 | drivers/scsi/u14-34f.c | if (i >= sh[j]->can_queue) |
sh | 1023 | drivers/scsi/u14-34f.c | for (j = 0; sh[j] != NULL; j++) |
sh | 1025 | drivers/scsi/u14-34f.c | calls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount); |
sh | 163 | drivers/scsi/wd7000.c | struct Scsi_Host *sh; /* Pointer to Scsi_Host structure */ |
sh | 1105 | drivers/scsi/wd7000.c | struct Scsi_Host *sh; |
sh | 1136 | drivers/scsi/wd7000.c | sh = scsi_register(tpnt, sizeof(Adapter) ); |
sh | 1137 | drivers/scsi/wd7000.c | host = (Adapter *) sh->hostdata; |
sh | 1143 | drivers/scsi/wd7000.c | host->sh = sh; |
sh | 1150 | drivers/scsi/wd7000.c | scsi_unregister (sh); |
sh | 1168 | drivers/scsi/wd7000.c | if (host->rev1 < 6) sh->sg_tablesize = SG_NONE; |