taglinefilesource code
sh301drivers/scsi/eata.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh305drivers/scsi/eata.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh462drivers/scsi/eata.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh463drivers/scsi/eata.csh[j]->io_port = *port_base;
sh464drivers/scsi/eata.csh[j]->n_io_port = REGION_SIZE;
sh465drivers/scsi/eata.csh[j]->dma_channel = dma_channel;
sh466drivers/scsi/eata.csh[j]->irq = irq;
sh467drivers/scsi/eata.csh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size);
sh468drivers/scsi/eata.csh[j]->this_id = (ushort) info.host_addr[3];
sh469drivers/scsi/eata.csh[j]->can_queue = (ushort) ntohs(info.queue_size);
sh470drivers/scsi/eata.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh473drivers/scsi/eata.crequest_region(sh[j]->io_port, REGION_SIZE, driver_name);
sh482drivers/scsi/eata.csh[j]->unchecked_isa_dma = FALSE;
sh484drivers/scsi/eata.csh[j]->wish_block = TRUE;
sh485drivers/scsi/eata.csh[j]->unchecked_isa_dma = TRUE;
sh496drivers/scsi/eata.csh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel,
sh497drivers/scsi/eata.csh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun);
sh500drivers/scsi/eata.cif (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) {
sh502drivers/scsi/eata.csh[j]->sg_tablesize = MAX_SGLIST;
sh506drivers/scsi/eata.cif (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue  < 2) {
sh508drivers/scsi/eata.csh[j]->can_queue = MAX_MAILBOXES;
sh544drivers/scsi/eata.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh597drivers/scsi/eata.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh599drivers/scsi/eata.cif (i >= sh[j]->can_queue) i = 0;
sh607drivers/scsi/eata.cif (k == sh[j]->can_queue) {
sh671drivers/scsi/eata.cif (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) {
sh703drivers/scsi/eata.cif (i >= sh[j]->can_queue)
sh706drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh764drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh774drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh804drivers/scsi/eata.cif (do_dma(sh[j]->io_port, 0, RESET_PIO)) {
sh823drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh875drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++) {
sh877drivers/scsi/eata.cif (sh[j]->irq != irq) continue;
sh882drivers/scsi/eata.cwhile (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) {
sh890drivers/scsi/eata.cinb(sh[j]->io_port + REG_STATUS);
sh893drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh1060drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++)
sh1062drivers/scsi/eata.ccalls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount);
sh108drivers/scsi/eata_dma.cint eata_release(struct Scsi_Host *sh)
sh110drivers/scsi/eata_dma.cif (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq);
sh111drivers/scsi/eata_dma.celse reg_IRQ[sh->irq]--;
sh112drivers/scsi/eata_dma.cif (SD(sh)->channel == 0) {
sh113drivers/scsi/eata_dma.cif (sh->dma_channel != 0xff) free_dma(sh->dma_channel);
sh114drivers/scsi/eata_dma.cif (sh->io_port && sh->n_io_port)
sh115drivers/scsi/eata_dma.crelease_region(sh->io_port, sh->n_io_port);
sh136drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh141drivers/scsi/eata_dma.cfor (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) {
sh142drivers/scsi/eata_dma.cif (sh->irq != irq)
sh144drivers/scsi/eata_dma.cif (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ))
sh149drivers/scsi/eata_dma.csp=&SD(sh)->sp;
sh281drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh298drivers/scsi/eata_dma.csh = cmd->host;
sh301drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
sh302drivers/scsi/eata_dma.cif (y >= sh->can_queue)
sh310drivers/scsi/eata_dma.cif (x == sh->can_queue) { 
sh312drivers/scsi/eata_dma.cDBG(DBG_QUEUE, printk("can_queue %d, x %d, y %d\n",sh->can_queue,x,y));
sh387drivers/scsi/eata_dma.cif(eata_send_command((ulong) cp, (uint) sh->base, EATA_CMD_DMA_SEND_CP)) {
sh396drivers/scsi/eata_dma.c(long)sh->base, cmd->pid, cmd->target, cmd->lun, y, sh->irq));
sh699drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh771drivers/scsi/eata_dma.csh = scsi_register(tpnt, size);
sh772drivers/scsi/eata_dma.chd = SD(sh);                   
sh778drivers/scsi/eata_dma.cstrncpy(SD(sh)->vendor, &buff[8], 8);
sh779drivers/scsi/eata_dma.cSD(sh)->vendor[8] = 0;
sh780drivers/scsi/eata_dma.cstrncpy(SD(sh)->name, &buff[16], 17);
sh781drivers/scsi/eata_dma.cSD(sh)->name[17] = 0;
sh782drivers/scsi/eata_dma.cSD(sh)->revision[0] = buff[32];
sh783drivers/scsi/eata_dma.cSD(sh)->revision[1] = buff[33];
sh784drivers/scsi/eata_dma.cSD(sh)->revision[2] = buff[34];
sh785drivers/scsi/eata_dma.cSD(sh)->revision[3] = '.';
sh786drivers/scsi/eata_dma.cSD(sh)->revision[4] = buff[35];
sh787drivers/scsi/eata_dma.cSD(sh)->revision[5] = 0;
sh790drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'a';
sh793drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'b';
sh796drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'c';
sh799drivers/scsi/eata_dma.cSD(sh)->EATA_revision = '?';
sh801drivers/scsi/eata_dma.csh->base = (char *) base;
sh802drivers/scsi/eata_dma.csh->io_port = (ushort) base;
sh803drivers/scsi/eata_dma.csh->n_io_port = 9;
sh804drivers/scsi/eata_dma.csh->irq = gc->IRQ;
sh805drivers/scsi/eata_dma.csh->dma_channel = dma_channel;
sh806drivers/scsi/eata_dma.csh->this_id = gc->scsi_id[3 - i];
sh807drivers/scsi/eata_dma.csh->can_queue = ntohs(gc->queuesiz) / (gc->MAX_CHAN + 1);
sh810drivers/scsi/eata_dma.csh->cmd_per_lun = sh->can_queue/C_P_L_DIV; 
sh811drivers/scsi/eata_dma.cif (sh->cmd_per_lun > C_P_L_CURRENT_MAX)
sh812drivers/scsi/eata_dma.csh->cmd_per_lun = C_P_L_CURRENT_MAX;
sh814drivers/scsi/eata_dma.csh->cmd_per_lun = 1;
sh816drivers/scsi/eata_dma.csh->sg_tablesize = ntohs(gc->SGsiz);
sh817drivers/scsi/eata_dma.cif (sh->sg_tablesize > SG_SIZE || sh->sg_tablesize == 0) {
sh818drivers/scsi/eata_dma.csh->sg_tablesize = SG_SIZE;
sh839drivers/scsi/eata_dma.csh->unchecked_isa_dma = FALSE;
sh840drivers/scsi/eata_dma.csh->wish_block = FALSE;        
sh843drivers/scsi/eata_dma.csh->unchecked_isa_dma = TRUE;   /* We're doing ISA DMA */
sh844drivers/scsi/eata_dma.csh->wish_block = TRUE;          /* This will reduce performance */
sh865drivers/scsi/eata_dma.cSD(hd->prev)->next = sh;
sh866drivers/scsi/eata_dma.clast_HBA = sh;
sh868drivers/scsi/eata_dma.cfirst_HBA = sh;
sh217drivers/scsi/hosts.cscsi_unregister(struct Scsi_Host * sh){
sh220drivers/scsi/hosts.cif(scsi_hostlist == sh)
sh221drivers/scsi/hosts.cscsi_hostlist = sh->next;
sh224drivers/scsi/hosts.cwhile(shpnt->next != sh) shpnt = shpnt->next;
sh234drivers/scsi/hosts.cscsi_init_free((char *) sh, sizeof(struct Scsi_Host) + sh->extra_bytes);
sh214drivers/scsi/scsi.cstruct Scsi_Host * sh[128], * shpnt;
sh249drivers/scsi/scsi.cif (shpnt->wish_block) sh[block_count++] = shpnt;
sh252drivers/scsi/scsi.cif (block_count == 1) sh[0]->block = NULL;
sh257drivers/scsi/scsi.csh[index]->block = sh[index + 1];
sh259drivers/scsi/scsi.csh[index]->host_no);
sh262drivers/scsi/scsi.csh[block_count - 1]->block = sh[0];
sh264drivers/scsi/scsi.csh[index]->host_no);
sh261drivers/scsi/u14-34f.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh265drivers/scsi/u14-34f.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh293drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh301drivers/scsi/u14-34f.coutb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR);
sh304drivers/scsi/u14-34f.coutl((unsigned int)cpp, sh[j]->io_port + REG_OGM);
sh307drivers/scsi/u14-34f.coutb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR);
sh400drivers/scsi/u14-34f.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh401drivers/scsi/u14-34f.csh[j]->io_port = *port_base;
sh402drivers/scsi/u14-34f.csh[j]->n_io_port = REGION_SIZE;
sh403drivers/scsi/u14-34f.csh[j]->base = bios_segment_table[config_1.bios_segment];
sh404drivers/scsi/u14-34f.csh[j]->irq = irq;
sh405drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SGLIST;
sh406drivers/scsi/u14-34f.csh[j]->this_id = config_2.ha_scsi_id;
sh407drivers/scsi/u14-34f.csh[j]->can_queue = MAX_MAILBOXES;
sh408drivers/scsi/u14-34f.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh414drivers/scsi/u14-34f.csys_mask = inb(sh[j]->io_port + REG_SYS_MASK);
sh415drivers/scsi/u14-34f.clcl_mask = inb(sh[j]->io_port + REG_LCL_MASK);
sh421drivers/scsi/u14-34f.cif (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK);
sh424drivers/scsi/u14-34f.crequest_region(sh[j]->io_port, REGION_SIZE, driver_name);
sh434drivers/scsi/u14-34f.csh[j]->dma_channel = NO_DMA;
sh435drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = FALSE;
sh439drivers/scsi/u14-34f.csh[j]->wish_block = TRUE;
sh442drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh443drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh446drivers/scsi/u14-34f.csh[j]->dma_channel = dma_channel;
sh447drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = TRUE;
sh462drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh463drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh468drivers/scsi/u14-34f.c"Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, 
sh469drivers/scsi/u14-34f.c(int)sh[j]->base, sh[j]->irq, 
sh470drivers/scsi/u14-34f.csh[j]->dma_channel, sh[j]->sg_tablesize, 
sh471drivers/scsi/u14-34f.csh[j]->can_queue, sh[j]->cmd_per_lun,
sh472drivers/scsi/u14-34f.csh[j]->hostt->use_clustering);
sh493drivers/scsi/u14-34f.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh541drivers/scsi/u14-34f.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh543drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue) i = 0;
sh551drivers/scsi/u14-34f.cif (k == sh[j]->can_queue) {
sh598drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh609drivers/scsi/u14-34f.coutl((unsigned int)cpp, sh[j]->io_port + REG_OGM);
sh612drivers/scsi/u14-34f.coutb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR);
sh636drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh639drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh697drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh707drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh737drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh743drivers/scsi/u14-34f.coutb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR);
sh757drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh818drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++) {
sh820drivers/scsi/u14-34f.cif (sh[j]->irq != irq) continue;
sh825drivers/scsi/u14-34f.cwhile (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) {
sh832drivers/scsi/u14-34f.cspp = (struct mscp *)inl(sh[j]->io_port + REG_ICM);
sh835drivers/scsi/u14-34f.coutb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR);
sh839drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh995drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++)
sh997drivers/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;