taglinefilesource code
sh318drivers/scsi/eata.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh322drivers/scsi/eata.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh479drivers/scsi/eata.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh481drivers/scsi/eata.cif (sh[j] == NULL) {
sh491drivers/scsi/eata.csh[j]->io_port = *port_base;
sh492drivers/scsi/eata.csh[j]->n_io_port = REGION_SIZE;
sh493drivers/scsi/eata.csh[j]->dma_channel = dma_channel;
sh494drivers/scsi/eata.csh[j]->irq = irq;
sh495drivers/scsi/eata.csh[j]->sg_tablesize = (ushort) ntohs(info.scatt_size);
sh496drivers/scsi/eata.csh[j]->this_id = (ushort) info.host_addr[3];
sh497drivers/scsi/eata.csh[j]->can_queue = (ushort) ntohs(info.queue_size);
sh498drivers/scsi/eata.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh501drivers/scsi/eata.crequest_region(sh[j]->io_port, REGION_SIZE, driver_name);
sh510drivers/scsi/eata.csh[j]->unchecked_isa_dma = FALSE;
sh512drivers/scsi/eata.csh[j]->wish_block = TRUE;
sh513drivers/scsi/eata.csh[j]->unchecked_isa_dma = TRUE;
sh524drivers/scsi/eata.csh[j]->this_id, sh[j]->io_port, sh[j]->irq, sh[j]->dma_channel,
sh525drivers/scsi/eata.csh[j]->sg_tablesize, sh[j]->can_queue, sh[j]->cmd_per_lun);
sh528drivers/scsi/eata.cif (sh[j]->sg_tablesize > MAX_SGLIST || sh[j]->sg_tablesize < 2) {
sh530drivers/scsi/eata.csh[j]->sg_tablesize = MAX_SGLIST;
sh534drivers/scsi/eata.cif (sh[j]->can_queue > MAX_MAILBOXES || sh[j]->can_queue  < 2) {
sh536drivers/scsi/eata.csh[j]->can_queue = MAX_MAILBOXES;
sh574drivers/scsi/eata.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh627drivers/scsi/eata.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh629drivers/scsi/eata.cif (i >= sh[j]->can_queue) i = 0;
sh637drivers/scsi/eata.cif (k == sh[j]->can_queue) {
sh701drivers/scsi/eata.cif (do_dma(sh[j]->io_port, (unsigned int) cpp, SEND_CP_DMA)) {
sh734drivers/scsi/eata.cif (i >= sh[j]->can_queue)
sh737drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh795drivers/scsi/eata.cif (wait_on_busy(sh[j]->io_port)) {
sh805drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh835drivers/scsi/eata.cif (do_dma(sh[j]->io_port, 0, RESET_PIO)) {
sh854drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh906drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++) {
sh908drivers/scsi/eata.cif (sh[j]->irq != irq) continue;
sh913drivers/scsi/eata.cwhile (inb(sh[j]->io_port + REG_AUX_STATUS) & IRQ_ASSERTED) {
sh921drivers/scsi/eata.cinb(sh[j]->io_port + REG_STATUS);
sh924drivers/scsi/eata.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh1086drivers/scsi/eata.cfor (j = 0; sh[j] != NULL; j++)
sh1088drivers/scsi/eata.ccalls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount);
sh132drivers/scsi/eata_dma.cint eata_release(struct Scsi_Host *sh)
sh135drivers/scsi/eata_dma.cif (sh->irq && reg_IRQ[sh->irq] == 1) free_irq(sh->irq);
sh136drivers/scsi/eata_dma.celse reg_IRQ[sh->irq]--;
sh140drivers/scsi/eata_dma.cfor (i = 0; i < sh->can_queue; i++){ /* Free all SG arrays */
sh141drivers/scsi/eata_dma.cif(SD(sh)->ccb[i].sg_list != NULL)
sh142drivers/scsi/eata_dma.cscsi_init_free((void *) SD(sh)->ccb[i].sg_list, 
sh143drivers/scsi/eata_dma.csh->sg_tablesize * sizeof(struct eata_sg_list));
sh146drivers/scsi/eata_dma.cif (SD(sh)->channel == 0) {
sh147drivers/scsi/eata_dma.cif (sh->dma_channel != 0xff) free_dma(sh->dma_channel);
sh148drivers/scsi/eata_dma.cif (sh->io_port && sh->n_io_port)
sh149drivers/scsi/eata_dma.crelease_region(sh->io_port, sh->n_io_port);
sh166drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh171drivers/scsi/eata_dma.cfor (x = 1, sh = first_HBA; x <= registered_HBAs; x++, sh = SD(sh)->prev) {
sh172drivers/scsi/eata_dma.cif (sh->irq != irq)
sh174drivers/scsi/eata_dma.cif (!(inb((uint)sh->base + HA_RAUXSTAT) & HA_AIRQ))
sh179drivers/scsi/eata_dma.csp=&SD(sh)->sp;
sh348drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh358drivers/scsi/eata_dma.csh = cmd->host;
sh361drivers/scsi/eata_dma.cfor (y = hd->last_ccb + 1, x = 0; x < sh->can_queue; x++, y++) { 
sh362drivers/scsi/eata_dma.cif (y >= sh->can_queue)
sh370drivers/scsi/eata_dma.cif (x >= sh->can_queue) { 
sh375drivers/scsi/eata_dma.cqueue_counter, int_counter, sh->can_queue, x, y);
sh377drivers/scsi/eata_dma.cfor(z = 0; z < sh->can_queue; z +=2) {
sh464drivers/scsi/eata_dma.cif (cmd->target == sh->this_id) 
sh506drivers/scsi/eata_dma.cif(eata_send_command((u32) cp, (u32) sh->base, EATA_CMD_DMA_SEND_CP) == FALSE) {
sh516drivers/scsi/eata_dma.c"slot %d irq %d\n", (s32)sh->base, cmd->pid, 
sh517drivers/scsi/eata_dma.ccmd->target, cmd->lun, y, sh->irq));
sh849drivers/scsi/eata_dma.cstruct Scsi_Host *sh;
sh947drivers/scsi/eata_dma.csh = scsi_register(tpnt, size);
sh949drivers/scsi/eata_dma.cif(sh == NULL) {
sh961drivers/scsi/eata_dma.chd = SD(sh);       
sh969drivers/scsi/eata_dma.cstrcpy(SD(sh)->vendor, "DPT");
sh970drivers/scsi/eata_dma.cstrcpy(SD(sh)->name, "??????????");
sh971drivers/scsi/eata_dma.cstrcpy(SD(sh)->revision, "???.?");
sh973drivers/scsi/eata_dma.cstrncpy(SD(sh)->vendor, &buff[8], 8);
sh974drivers/scsi/eata_dma.cSD(sh)->vendor[8] = 0;
sh975drivers/scsi/eata_dma.cstrncpy(SD(sh)->name, &buff[16], 17);
sh976drivers/scsi/eata_dma.cSD(sh)->name[17] = 0;
sh977drivers/scsi/eata_dma.cSD(sh)->revision[0] = buff[32];
sh978drivers/scsi/eata_dma.cSD(sh)->revision[1] = buff[33];
sh979drivers/scsi/eata_dma.cSD(sh)->revision[2] = buff[34];
sh980drivers/scsi/eata_dma.cSD(sh)->revision[3] = '.';
sh981drivers/scsi/eata_dma.cSD(sh)->revision[4] = buff[35];
sh982drivers/scsi/eata_dma.cSD(sh)->revision[5] = 0;
sh987drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'a';
sh990drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'b';
sh993drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'c';
sh996drivers/scsi/eata_dma.cSD(sh)->EATA_revision = 'z';    
sh998drivers/scsi/eata_dma.cSD(sh)->EATA_revision = '?';
sh1019drivers/scsi/eata_dma.csh->max_id = gc->MAX_ID + 1;
sh1020drivers/scsi/eata_dma.csh->max_lun = gc->MAX_LUN + 1;
sh1022drivers/scsi/eata_dma.csh->max_id = 8;
sh1023drivers/scsi/eata_dma.csh->max_lun = 8;
sh1027drivers/scsi/eata_dma.csh->max_channel = gc->MAX_CHAN; 
sh1028drivers/scsi/eata_dma.csh->unique_id = base;
sh1029drivers/scsi/eata_dma.csh->base = (char *) base;
sh1030drivers/scsi/eata_dma.csh->io_port = base;
sh1031drivers/scsi/eata_dma.csh->n_io_port = 9;
sh1032drivers/scsi/eata_dma.csh->irq = gc->IRQ;
sh1033drivers/scsi/eata_dma.csh->dma_channel = dma_channel;
sh1038drivers/scsi/eata_dma.csh->this_id = gc->scsi_id[3];
sh1039drivers/scsi/eata_dma.csh->can_queue = ntohs(gc->queuesiz);
sh1043drivers/scsi/eata_dma.csh->cmd_per_lun = sh->can_queue/C_P_L_DIV; 
sh1045drivers/scsi/eata_dma.csh->cmd_per_lun = 8; /* We artificially limit this to conserve memory, 
sh1048drivers/scsi/eata_dma.csh->cmd_per_lun = 1;
sh1059drivers/scsi/eata_dma.csh->sg_tablesize = SG_SIZE_BIG;
sh1060drivers/scsi/eata_dma.csh->use_clustering = FALSE;
sh1062drivers/scsi/eata_dma.csh->sg_tablesize = ntohs(gc->SGsiz);
sh1063drivers/scsi/eata_dma.csh->use_clustering = TRUE;
sh1064drivers/scsi/eata_dma.cif (sh->sg_tablesize > SG_SIZE || sh->sg_tablesize == 0) {
sh1065drivers/scsi/eata_dma.csh->sg_tablesize = SG_SIZE;
sh1077drivers/scsi/eata_dma.csh->wish_block = FALSE;     
sh1080drivers/scsi/eata_dma.csh->unchecked_isa_dma = FALSE;
sh1082drivers/scsi/eata_dma.csh->unchecked_isa_dma = TRUE;  /* We're doing ISA DMA */
sh1093drivers/scsi/eata_dma.cSD(hd->prev)->next = sh;
sh1094drivers/scsi/eata_dma.clast_HBA = sh;
sh1096drivers/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);
sh287drivers/scsi/eata_pio.cstruct Scsi_Host *sh;
sh296drivers/scsi/eata_pio.csh = cmd->host;
sh297drivers/scsi/eata_pio.cbase = (uint) sh->base;
sh305drivers/scsi/eata_pio.cDBG(DBG_QUEUE, printk("can_queue %d, x %d, y %d\n",sh->can_queue,x,y));
sh395drivers/scsi/eata_pio.c"slot %d irq %d\n", (long)sh->base, cmd->pid, 
sh396drivers/scsi/eata_pio.ccmd->target, cmd->lun, y, sh->irq));
sh683drivers/scsi/eata_pio.cstruct Scsi_Host *sh;
sh732drivers/scsi/eata_pio.csh = scsi_register(tpnt, size);
sh733drivers/scsi/eata_pio.chd = SD(sh);                   
sh738drivers/scsi/eata_pio.cstrncpy(SD(sh)->vendor, &buff[8], 8);
sh739drivers/scsi/eata_pio.cSD(sh)->vendor[8] = 0;
sh740drivers/scsi/eata_pio.cstrncpy(SD(sh)->name, &buff[16], 17);
sh741drivers/scsi/eata_pio.cSD(sh)->name[17] = 0;
sh742drivers/scsi/eata_pio.cSD(sh)->revision[0] = buff[32];
sh743drivers/scsi/eata_pio.cSD(sh)->revision[1] = buff[33];
sh744drivers/scsi/eata_pio.cSD(sh)->revision[2] = buff[34];
sh745drivers/scsi/eata_pio.cSD(sh)->revision[3] = '.';
sh746drivers/scsi/eata_pio.cSD(sh)->revision[4] = buff[35];
sh747drivers/scsi/eata_pio.cSD(sh)->revision[5] = 0;
sh751drivers/scsi/eata_pio.cSD(sh)->EATA_revision = 'a';
sh754drivers/scsi/eata_pio.cSD(sh)->EATA_revision = 'b';
sh757drivers/scsi/eata_pio.cSD(sh)->EATA_revision = 'c';
sh760drivers/scsi/eata_pio.cSD(sh)->EATA_revision = 'z';    
sh762drivers/scsi/eata_pio.cSD(sh)->EATA_revision = '?';
sh781drivers/scsi/eata_pio.cSD(sh)->cplen=cplen;
sh782drivers/scsi/eata_pio.cSD(sh)->cppadlen=cppadlen;
sh783drivers/scsi/eata_pio.cSD(sh)->hostid=gc->scsi_id[3];
sh784drivers/scsi/eata_pio.cSD(sh)->devflags=1<<gc->scsi_id[3];
sh785drivers/scsi/eata_pio.cSD(sh)->moresupport=gc->MORE_support;
sh786drivers/scsi/eata_pio.csh->unique_id = base;
sh787drivers/scsi/eata_pio.csh->base = (char *) base;
sh788drivers/scsi/eata_pio.csh->io_port = base;
sh789drivers/scsi/eata_pio.csh->n_io_port = 8;
sh790drivers/scsi/eata_pio.csh->irq = gc->IRQ;
sh791drivers/scsi/eata_pio.csh->dma_channel = PIO;
sh792drivers/scsi/eata_pio.csh->this_id = gc->scsi_id[3];
sh793drivers/scsi/eata_pio.csh->can_queue = 1;
sh794drivers/scsi/eata_pio.csh->cmd_per_lun = 1;
sh795drivers/scsi/eata_pio.csh->sg_tablesize = SG_ALL;
sh799drivers/scsi/eata_pio.csh->max_id = 8;
sh800drivers/scsi/eata_pio.csh->max_lun = 8;
sh807drivers/scsi/eata_pio.csh->unchecked_isa_dma = FALSE; /* We can only do PIO */
sh812drivers/scsi/eata_pio.cSD(hd->prev)->next = sh;
sh813drivers/scsi/eata_pio.clast_HBA = sh;
sh815drivers/scsi/eata_pio.cfirst_HBA = sh;
sh248drivers/scsi/hosts.cscsi_unregister(struct Scsi_Host * sh){
sh251drivers/scsi/hosts.cif(scsi_hostlist == sh)
sh252drivers/scsi/hosts.cscsi_hostlist = sh->next;
sh255drivers/scsi/hosts.cwhile(shpnt->next != sh) shpnt = shpnt->next;
sh266drivers/scsi/hosts.cscsi_init_free((char *) sh, sizeof(struct Scsi_Host) + sh->extra_bytes);
sh291drivers/scsi/scsi.cstruct Scsi_Host * sh[128], * shpnt;
sh326drivers/scsi/scsi.cif (shpnt->wish_block) sh[block_count++] = shpnt;
sh329drivers/scsi/scsi.cif (block_count == 1) sh[0]->block = NULL;
sh334drivers/scsi/scsi.csh[index]->block = sh[index + 1];
sh336drivers/scsi/scsi.csh[index]->host_no);
sh339drivers/scsi/scsi.csh[block_count - 1]->block = sh[0];
sh341drivers/scsi/scsi.csh[index]->host_no);
sh283drivers/scsi/u14-34f.cstatic struct Scsi_Host * sh[MAX_BOARDS + 1];
sh287drivers/scsi/u14-34f.c#define HD(board) ((struct hostdata *) &sh[board]->hostdata)
sh315drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh323drivers/scsi/u14-34f.coutb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR);
sh326drivers/scsi/u14-34f.coutl((unsigned int)cpp, sh[j]->io_port + REG_OGM);
sh329drivers/scsi/u14-34f.coutb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR);
sh422drivers/scsi/u14-34f.csh[j] = scsi_register(tpnt, sizeof(struct hostdata));
sh424drivers/scsi/u14-34f.cif (sh[j] == NULL) {
sh434drivers/scsi/u14-34f.csh[j]->io_port = *port_base;
sh435drivers/scsi/u14-34f.csh[j]->n_io_port = REGION_SIZE;
sh436drivers/scsi/u14-34f.csh[j]->base = bios_segment_table[config_1.bios_segment];
sh437drivers/scsi/u14-34f.csh[j]->irq = irq;
sh438drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SGLIST;
sh439drivers/scsi/u14-34f.csh[j]->this_id = config_2.ha_scsi_id;
sh440drivers/scsi/u14-34f.csh[j]->can_queue = MAX_MAILBOXES;
sh441drivers/scsi/u14-34f.csh[j]->cmd_per_lun = MAX_CMD_PER_LUN;
sh447drivers/scsi/u14-34f.csys_mask = inb(sh[j]->io_port + REG_SYS_MASK);
sh448drivers/scsi/u14-34f.clcl_mask = inb(sh[j]->io_port + REG_LCL_MASK);
sh454drivers/scsi/u14-34f.cif (sh[j]->base == 0) outb(CMD_ENA_INTR, sh[j]->io_port + REG_SYS_MASK);
sh457drivers/scsi/u14-34f.crequest_region(sh[j]->io_port, REGION_SIZE, driver_name);
sh469drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh472drivers/scsi/u14-34f.csh[j]->dma_channel = NO_DMA;
sh473drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = FALSE;
sh477drivers/scsi/u14-34f.csh[j]->wish_block = TRUE;
sh480drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh481drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh484drivers/scsi/u14-34f.csh[j]->dma_channel = dma_channel;
sh485drivers/scsi/u14-34f.csh[j]->unchecked_isa_dma = TRUE;
sh500drivers/scsi/u14-34f.csh[j]->hostt->use_clustering = DISABLE_CLUSTERING;
sh501drivers/scsi/u14-34f.csh[j]->sg_tablesize = MAX_SAFE_SGLIST;
sh506drivers/scsi/u14-34f.c"Mbox %d, CmdLun %d, C%d.\n", BN(j), sh[j]->io_port, 
sh507drivers/scsi/u14-34f.c(int)sh[j]->base, sh[j]->irq, 
sh508drivers/scsi/u14-34f.csh[j]->dma_channel, sh[j]->sg_tablesize, 
sh509drivers/scsi/u14-34f.csh[j]->can_queue, sh[j]->cmd_per_lun,
sh510drivers/scsi/u14-34f.csh[j]->hostt->use_clustering);
sh533drivers/scsi/u14-34f.cfor (k = 0; k < MAX_BOARDS + 1; k++) sh[k] = NULL;
sh581drivers/scsi/u14-34f.cfor (k = 0; k < sh[j]->can_queue; k++, i++) {
sh583drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue) i = 0;
sh591drivers/scsi/u14-34f.cif (k == sh[j]->can_queue) {
sh638drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh649drivers/scsi/u14-34f.coutl((unsigned int)cpp, sh[j]->io_port + REG_OGM);
sh652drivers/scsi/u14-34f.coutb(CMD_OGM_INTR, sh[j]->io_port + REG_LCL_INTR);
sh677drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh680drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh738drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh748drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh778drivers/scsi/u14-34f.cif (wait_on_busy(sh[j]->io_port)) {
sh784drivers/scsi/u14-34f.coutb(CMD_RESET, sh[j]->io_port + REG_LCL_INTR);
sh798drivers/scsi/u14-34f.cfor (i = 0; i < sh[j]->can_queue; i++) {
sh859drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++) {
sh861drivers/scsi/u14-34f.cif (sh[j]->irq != irq) continue;
sh866drivers/scsi/u14-34f.cwhile (inb(sh[j]->io_port + REG_SYS_INTR) & IRQ_ASSERTED) {
sh873drivers/scsi/u14-34f.cspp = (struct mscp *)inl(sh[j]->io_port + REG_ICM);
sh876drivers/scsi/u14-34f.coutb(CMD_CLR_INTR, sh[j]->io_port + REG_SYS_INTR);
sh880drivers/scsi/u14-34f.cif (i >= sh[j]->can_queue)
sh1031drivers/scsi/u14-34f.cfor (j = 0; sh[j] != NULL; j++)
sh1033drivers/scsi/u14-34f.ccalls[(sh[j]->irq)], HD(j)->iocount, HD(j)->multicount);
sh170drivers/scsi/wd7000.cstruct Scsi_Host *sh;             /* Pointer to Scsi_Host structure */
sh1112drivers/scsi/wd7000.cstruct Scsi_Host *sh;
sh1145drivers/scsi/wd7000.csh = scsi_register(tpnt, sizeof(Adapter) );
sh1146drivers/scsi/wd7000.chost = (Adapter *) sh->hostdata;
sh1152drivers/scsi/wd7000.chost->sh = sh;
sh1159drivers/scsi/wd7000.cscsi_unregister (sh);
sh1177drivers/scsi/wd7000.cif (host->rev1 < 6)  sh->sg_tablesize = SG_NONE;