taglinefilesource code
sh312drivers/scsi/eata.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh316drivers/scsi/eata.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh473drivers/scsi/eata.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh475drivers/scsi/eata.cif (sh[j] == NULL) {
sh485drivers/scsi/eata.csh[j]->io_port = *port_base;
sh486drivers/scsi/eata.csh[j]->n_io_port = REGION_SIZE;
sh487drivers/scsi/eata.csh[j]->dma_channel = dma_channel;
sh488drivers/scsi/eata.csh[j]->irq = irq;
sh489drivers/scsi/eata.csh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size);
sh490drivers/scsi/eata.csh[j]->this_id = (ushort) info.host_addr[3];
sh491drivers/scsi/eata.csh[j]->can_queue = (ushort) ntohs(info.queue_size);
sh492drivers/scsi/eata.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh495drivers/scsi/eata.crequest_region(sh[j]->io_port, REGION_SIZE, driver_name);
sh504drivers/scsi/eata.csh[j]->unchecked_isa_dma = FALSE;
sh506drivers/scsi/eata.csh[j]->wish_block = TRUE;
sh507drivers/scsi/eata.csh[j]->unchecked_isa_dma = TRUE;
sh518drivers/scsi/eata.csh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel,
sh519drivers/scsi/eata.csh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun);
sh522drivers/scsi/eata.cif (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) {
sh524drivers/scsi/eata.csh[j]->sg_tablesize = MAX_SGLIST;
sh528drivers/scsi/eata.cif (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue  < 2) {
sh530drivers/scsi/eata.csh[j]->can_queue = MAX_MAILBOXES;
sh566drivers/scsi/eata.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh619drivers/scsi/eata.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh621drivers/scsi/eata.cif (i >= sh[j]->can_queue) i = 0;
sh629drivers/scsi/eata.cif (k == sh[j]->can_queue) {
sh693drivers/scsi/eata.cif (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) {
sh725drivers/scsi/eata.cif (i >= sh[j]->can_queue)
sh728drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh786drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh796drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh826drivers/scsi/eata.cif (do_dma(sh[j]->io_port, 0, RESET_PIO)) {
sh845drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh897drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++) {
sh899drivers/scsi/eata.cif (sh[j]->irq != irq) continue;
sh904drivers/scsi/eata.cwhile (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) {
sh912drivers/scsi/eata.cinb(sh[j]->io_port + REG_STATUS);
sh915drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh1077drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++)
sh1079drivers/scsi/eata.ccalls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount);
sh119drivers/scsi/eata_dma.cint eata_release(struct Scsi_Host *sh)
sh122drivers/scsi/eata_dma.cif (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq);
sh123drivers/scsi/eata_dma.celse reg_IRQ[sh->irq]--;
sh127drivers/scsi/eata_dma.cfor (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */
sh128drivers/scsi/eata_dma.cif(SD(sh)->ccb[i].sg_list != NULL)
sh129drivers/scsi/eata_dma.cscsi_init_free((void *) SD(sh)->ccb[i].sg_list, 
sh130drivers/scsi/eata_dma.csh->sg_tablesize * sizeof(struct eata_sg_list));
sh133drivers/scsi/eata_dma.cif (SD(sh)->channel == 0) {
sh134drivers/scsi/eata_dma.cif (sh->dma_channel != 0xff) free_dma(sh->dma_channel);
sh135drivers/scsi/eata_dma.cif (sh->io_port && sh->n_io_port)
sh136drivers/scsi/eata_dma.crelease_region(sh->io_port, sh->n_io_port);
sh158drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh163drivers/scsi/eata_dma.cfor (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) {
sh164drivers/scsi/eata_dma.cif (sh->irq != irq)
sh166drivers/scsi/eata_dma.cif (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ))
sh171drivers/scsi/eata_dma.csp=&SD(sh)->sp;
sh327drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh344drivers/scsi/eata_dma.csh = cmd->host;
sh347drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
sh348drivers/scsi/eata_dma.cif (y >= sh->can_queue)
sh356drivers/scsi/eata_dma.cif (x == sh->can_queue) { 
sh359drivers/scsi/eata_dma.csh->can_queue, x, y));
sh399drivers/scsi/eata_dma.c|| cmd->target == sh->this_id) 
sh441drivers/scsi/eata_dma.cif(eata_send_command((u32) cp, (u32) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) {
sh450drivers/scsi/eata_dma.c"slot %d irq %d\n", (s32)sh->base, cmd->pid, 
sh451drivers/scsi/eata_dma.ccmd->target, cmd->lun, y, sh->irq));
sh780drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh872drivers/scsi/eata_dma.csh = scsi_register(tpnt, size);
sh874drivers/scsi/eata_dma.cif(sh == NULL) {
sh886drivers/scsi/eata_dma.chd = SD(sh);                   
sh894drivers/scsi/eata_dma.cstrcpy(SD(sh)->vendor, "DPT");
sh895drivers/scsi/eata_dma.cstrcpy(SD(sh)->name, "??????????");
sh896drivers/scsi/eata_dma.cstrcpy(SD(sh)->revision, "???.?");
sh898drivers/scsi/eata_dma.cstrncpy(SD(sh)->vendor, &buff[8], 8);
sh899drivers/scsi/eata_dma.cSD(sh)->vendor[8] = 0;
sh900drivers/scsi/eata_dma.cstrncpy(SD(sh)->name, &buff[16], 17);
sh901drivers/scsi/eata_dma.cSD(sh)->name[17] = 0;
sh902drivers/scsi/eata_dma.cSD(sh)->revision[0] = buff[32];
sh903drivers/scsi/eata_dma.cSD(sh)->revision[1] = buff[33];
sh904drivers/scsi/eata_dma.cSD(sh)->revision[2] = buff[34];
sh905drivers/scsi/eata_dma.cSD(sh)->revision[3] = '.';
sh906drivers/scsi/eata_dma.cSD(sh)->revision[4] = buff[35];
sh907drivers/scsi/eata_dma.cSD(sh)->revision[5] = 0;
sh912drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'a';
sh915drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'b';
sh918drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'c';
sh921drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'z';            
sh923drivers/scsi/eata_dma.cSD(sh)->EATA_revision = '?';
sh944drivers/scsi/eata_dma.csh->max_id = gc->MAX_ID;
sh945drivers/scsi/eata_dma.csh->max_lun = gc->MAX_LUN;
sh947drivers/scsi/eata_dma.csh->max_id = 8;
sh948drivers/scsi/eata_dma.csh->max_lun = 8;
sh952drivers/scsi/eata_dma.csh->max_channel = gc->MAX_CHAN; 
sh953drivers/scsi/eata_dma.csh->base = (char *) base;
sh954drivers/scsi/eata_dma.csh->io_port = (u16) base;
sh955drivers/scsi/eata_dma.csh->n_io_port = 9;
sh956drivers/scsi/eata_dma.csh->irq = gc->IRQ;
sh957drivers/scsi/eata_dma.csh->dma_channel = dma_channel;
sh962drivers/scsi/eata_dma.csh->this_id = gc->scsi_id[3];
sh963drivers/scsi/eata_dma.csh->can_queue = ntohs(gc->queuesiz);
sh967drivers/scsi/eata_dma.csh->cmd_per_lun = sh->can_queue/C_P_L_DIV; 
sh969drivers/scsi/eata_dma.csh->cmd_per_lun = 8;
sh971drivers/scsi/eata_dma.csh->cmd_per_lun = 1;
sh982drivers/scsi/eata_dma.csh->sg_tablesize = SG_SIZE_BIG;
sh983drivers/scsi/eata_dma.csh->use_clustering = FALSE;
sh985drivers/scsi/eata_dma.csh->sg_tablesize = ntohs(gc->SGsiz);
sh986drivers/scsi/eata_dma.csh->use_clustering = TRUE;
sh987drivers/scsi/eata_dma.cif (sh->sg_tablesize > SG_SIZE || sh->sg_tablesize == 0) {
sh988drivers/scsi/eata_dma.csh->sg_tablesize = SG_SIZE;
sh1000drivers/scsi/eata_dma.csh->wish_block = FALSE;        
sh1003drivers/scsi/eata_dma.csh->unchecked_isa_dma = FALSE;
sh1005drivers/scsi/eata_dma.csh->unchecked_isa_dma = TRUE;   /* We're doing ISA DMA */
sh1011drivers/scsi/eata_dma.cSD(hd->prev)->next = sh;
sh1012drivers/scsi/eata_dma.clast_HBA = sh;
sh1014drivers/scsi/eata_dma.cfirst_HBA = sh;
sh101drivers/scsi/eata_pio.cint eata_pio_release(struct Scsi_Host *sh)
sh103drivers/scsi/eata_pio.cif (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq);
sh104drivers/scsi/eata_pio.celse reg_IRQ[sh->irq]--;
sh105drivers/scsi/eata_pio.cif (SD(sh)->channel == 0) {
sh106drivers/scsi/eata_pio.cif (sh->io_port && sh->n_io_port)
sh107drivers/scsi/eata_pio.crelease_region(sh->io_port, sh->n_io_port);
sh137drivers/scsi/eata_pio.cstruct Scsi_Host *sh;
sh144drivers/scsi/eata_pio.cfor (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) {
sh145drivers/scsi/eata_pio.cif (sh->irq != irq)
sh147drivers/scsi/eata_pio.cif (inb((uint)sh->base + HA_RSTATUS) & HA_SBUSY)
sh152drivers/scsi/eata_pio.chd=SD(sh);
sh288drivers/scsi/eata_pio.cstruct Scsi_Host *sh;
sh304drivers/scsi/eata_pio.csh = cmd->host;
sh305drivers/scsi/eata_pio.cbase = (uint) sh->base;
sh313drivers/scsi/eata_pio.cDBG(DBG_QUEUE, printk("can_queue %d, x %d, y %d\n",sh->can_queue,x,y));
sh404drivers/scsi/eata_pio.c"slot %d irq %d\n", (long)sh->base, cmd->pid, 
sh405drivers/scsi/eata_pio.ccmd->target, cmd->lun, y, sh->irq));
sh689drivers/scsi/eata_pio.cstruct Scsi_Host *sh;
sh738drivers/scsi/eata_pio.csh = scsi_register(tpnt, size);
sh739drivers/scsi/eata_pio.chd = SD(sh);                   
sh744drivers/scsi/eata_pio.cstrncpy(SD(sh)->vendor, &buff[8], 8);
sh745drivers/scsi/eata_pio.cSD(sh)->vendor[8] = 0;
sh746drivers/scsi/eata_pio.cstrncpy(SD(sh)->name, &buff[16], 17);
sh747drivers/scsi/eata_pio.cSD(sh)->name[17] = 0;
sh748drivers/scsi/eata_pio.cSD(sh)->revision[0] = buff[32];
sh749drivers/scsi/eata_pio.cSD(sh)->revision[1] = buff[33];
sh750drivers/scsi/eata_pio.cSD(sh)->revision[2] = buff[34];
sh751drivers/scsi/eata_pio.cSD(sh)->revision[3] = '.';
sh752drivers/scsi/eata_pio.cSD(sh)->revision[4] = buff[35];
sh753drivers/scsi/eata_pio.cSD(sh)->revision[5] = 0;
sh756drivers/scsi/eata_pio.cSD(sh)->EATA_revision = 'a';
sh759drivers/scsi/eata_pio.cSD(sh)->EATA_revision = 'b';
sh762drivers/scsi/eata_pio.cSD(sh)->EATA_revision = 'c';
sh765drivers/scsi/eata_pio.cSD(sh)->EATA_revision = '?';
sh767drivers/scsi/eata_pio.cSD(sh)->cplen=cplen;
sh768drivers/scsi/eata_pio.cSD(sh)->cppadlen=cppadlen;
sh769drivers/scsi/eata_pio.cSD(sh)->hostid=gc->scsi_id[3];
sh770drivers/scsi/eata_pio.cSD(sh)->devflags=1<<gc->scsi_id[3];
sh771drivers/scsi/eata_pio.cSD(sh)->moresupport=gc->MORE_support;
sh772drivers/scsi/eata_pio.csh->base = (char *) base;
sh773drivers/scsi/eata_pio.csh->io_port = (ushort) base;
sh774drivers/scsi/eata_pio.csh->n_io_port = 8;
sh775drivers/scsi/eata_pio.csh->irq = gc->IRQ;
sh776drivers/scsi/eata_pio.csh->dma_channel = 0xfe;  /* PIO */
sh777drivers/scsi/eata_pio.csh->this_id = gc->scsi_id[3];
sh778drivers/scsi/eata_pio.csh->can_queue = 1;
sh779drivers/scsi/eata_pio.csh->cmd_per_lun = 1;
sh780drivers/scsi/eata_pio.csh->sg_tablesize = SG_ALL;
sh800drivers/scsi/eata_pio.csh->max_id = 8;
sh801drivers/scsi/eata_pio.csh->max_lun = 8;
sh808drivers/scsi/eata_pio.csh->unchecked_isa_dma = FALSE; /* We can only do PIO */
sh813drivers/scsi/eata_pio.cSD(hd->prev)->next = sh;
sh814drivers/scsi/eata_pio.clast_HBA = sh;
sh816drivers/scsi/eata_pio.cfirst_HBA = sh;
sh241drivers/scsi/hosts.cscsi_unregister(struct Scsi_Host * sh){
sh244drivers/scsi/hosts.cif(scsi_hostlist == sh)
sh245drivers/scsi/hosts.cscsi_hostlist = sh->next;
sh248drivers/scsi/hosts.cwhile(shpnt->next != sh) shpnt = shpnt->next;
sh259drivers/scsi/hosts.cscsi_init_free((char *) sh, sizeof(struct Scsi_Host) + sh->extra_bytes);
sh271drivers/scsi/scsi.cstruct Scsi_Host * sh[128], * shpnt;
sh306drivers/scsi/scsi.cif (shpnt->wish_block) sh[block_count++] = shpnt;
sh309drivers/scsi/scsi.cif (block_count == 1) sh[0]->block = NULL;
sh314drivers/scsi/scsi.csh[index]->block = sh[index + 1];
sh316drivers/scsi/scsi.csh[index]->host_no);
sh319drivers/scsi/scsi.csh[block_count - 1]->block = sh[0];
sh321drivers/scsi/scsi.csh[index]->host_no);
sh277drivers/scsi/u14-34f.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh281drivers/scsi/u14-34f.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh309drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh317drivers/scsi/u14-34f.coutb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR);
sh320drivers/scsi/u14-34f.coutl((unsigned int)cpp, sh[j]->io_port + REG_OGM);
sh323drivers/scsi/u14-34f.coutb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR);
sh416drivers/scsi/u14-34f.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh418drivers/scsi/u14-34f.cif (sh[j] == NULL) {
sh428drivers/scsi/u14-34f.csh[j]->io_port = *port_base;
sh429drivers/scsi/u14-34f.csh[j]->n_io_port = REGION_SIZE;
sh430drivers/scsi/u14-34f.csh[j]->base = bios_segment_table[config_1.bios_segment];
sh431drivers/scsi/u14-34f.csh[j]->irq = irq;
sh432drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SGLIST;
sh433drivers/scsi/u14-34f.csh[j]->this_id = config_2.ha_scsi_id;
sh434drivers/scsi/u14-34f.csh[j]->can_queue = MAX_MAILBOXES;
sh435drivers/scsi/u14-34f.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh441drivers/scsi/u14-34f.csys_mask = inb(sh[j]->io_port + REG_SYS_MASK);
sh442drivers/scsi/u14-34f.clcl_mask = inb(sh[j]->io_port + REG_LCL_MASK);
sh448drivers/scsi/u14-34f.cif (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK);
sh451drivers/scsi/u14-34f.crequest_region(sh[j]->io_port, REGION_SIZE, driver_name);
sh463drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh466drivers/scsi/u14-34f.csh[j]->dma_channel = NO_DMA;
sh467drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = FALSE;
sh471drivers/scsi/u14-34f.csh[j]->wish_block = TRUE;
sh474drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh475drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh478drivers/scsi/u14-34f.csh[j]->dma_channel = dma_channel;
sh479drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = TRUE;
sh494drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh495drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh500drivers/scsi/u14-34f.c"Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, 
sh501drivers/scsi/u14-34f.c(int)sh[j]->base, sh[j]->irq, 
sh502drivers/scsi/u14-34f.csh[j]->dma_channel, sh[j]->sg_tablesize, 
sh503drivers/scsi/u14-34f.csh[j]->can_queue, sh[j]->cmd_per_lun,
sh504drivers/scsi/u14-34f.csh[j]->hostt->use_clustering);
sh525drivers/scsi/u14-34f.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh573drivers/scsi/u14-34f.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh575drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue) i = 0;
sh583drivers/scsi/u14-34f.cif (k == sh[j]->can_queue) {
sh630drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh641drivers/scsi/u14-34f.coutl((unsigned int)cpp, sh[j]->io_port + REG_OGM);
sh644drivers/scsi/u14-34f.coutb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR);
sh668drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh671drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh729drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh739drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh769drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh775drivers/scsi/u14-34f.coutb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR);
sh789drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh850drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++) {
sh852drivers/scsi/u14-34f.cif (sh[j]->irq != irq) continue;
sh857drivers/scsi/u14-34f.cwhile (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) {
sh864drivers/scsi/u14-34f.cspp = (struct mscp *)inl(sh[j]->io_port + REG_ICM);
sh867drivers/scsi/u14-34f.coutb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR);
sh871drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh1022drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++)
sh1024drivers/scsi/u14-34f.ccalls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount);
sh163drivers/scsi/wd7000.cstruct Scsi_Host *sh;             /* Pointer to Scsi_Host structure */
sh1105drivers/scsi/wd7000.cstruct Scsi_Host *sh;
sh1136drivers/scsi/wd7000.csh = scsi_register(tpnt, sizeof(Adapter) );
sh1137drivers/scsi/wd7000.chost = (Adapter *) sh->hostdata;
sh1143drivers/scsi/wd7000.chost->sh = sh;
sh1150drivers/scsi/wd7000.cscsi_unregister (sh);
sh1168drivers/scsi/wd7000.cif (host->rev1 < 6)  sh->sg_tablesize = SG_NONE;