taglinefilesource code
scb138drivers/net/apricot.cstruct i596_scb *scb;
scb150drivers/net/apricot.cstruct i596_scb scb;
scb211drivers/net/apricot.clp->scb.rfd = &lp->rx[0];
scb230drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
scb234drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
scb238drivers/net/apricot.clp->scb.command = RX_START;
scb263drivers/net/apricot.clp->iscp.scb = &(lp->scb);
scb267drivers/net/apricot.clp->cmd_head = lp->scb.cmd = (struct i596_cmd *) -1;
scb279drivers/net/apricot.cdev->name, lp->scb.status, lp->scb.command);
scb297drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
scb301drivers/net/apricot.clp->scb.status, lp->scb.command);
scb316drivers/net/apricot.cwhile ((lp->scb.rfd->stat) & STAT_C)
scb318drivers/net/apricot.cif (i596_debug >2) print_eth(lp->scb.rfd->data);
scb320drivers/net/apricot.cif ((lp->scb.rfd->stat) & STAT_OK)
scb323drivers/net/apricot.cint pkt_len = lp->scb.rfd->count & 0x3fff;
scb337drivers/net/apricot.cmemcpy(skb->data, lp->scb.rfd->data, pkt_len);
scb347drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0001) lp->stats.collisions++;
scb348drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0080) lp->stats.rx_length_errors++;
scb349drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0100) lp->stats.rx_over_errors++;
scb350drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0200) lp->stats.rx_fifo_errors++;
scb351drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0400) lp->stats.rx_frame_errors++;
scb352drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x0800) lp->stats.rx_crc_errors++;
scb353drivers/net/apricot.cif ((lp->scb.rfd->stat) & 0x1000) lp->stats.rx_length_errors++;
scb356drivers/net/apricot.clp->scb.rfd->stat=0;
scb358drivers/net/apricot.clp->rx_tail=lp->scb.rfd;
scb359drivers/net/apricot.clp->scb.rfd=lp->scb.rfd->next;
scb414drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
scb418drivers/net/apricot.clp->scb.status, lp->scb.command);
scb422drivers/net/apricot.clp->scb.cmd = lp->cmd_head;
scb432drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
scb436drivers/net/apricot.clp->scb.status, lp->scb.command);
scb443drivers/net/apricot.clp->scb.command=CUC_ABORT|RX_ABORT;
scb449drivers/net/apricot.cwhile ((lp->scb.status, lp->scb.command) || lp->scb.command)
scb453drivers/net/apricot.clp->scb.status, lp->scb.command);
scb486drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
scb490drivers/net/apricot.clp->scb.status, lp->scb.command);
scb494drivers/net/apricot.clp->scb.cmd = cmd;
scb495drivers/net/apricot.clp->scb.command = CUC_START;
scb501drivers/net/apricot.clp->cmd_head=lp->scb.cmd;
scb566drivers/net/apricot.clp->scb.command=CUC_START|RX_START;
scb728drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
scb731drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
scb734drivers/net/apricot.cstatus = lp->scb.status;
scb829drivers/net/apricot.clp->scb.cmd = lp->cmd_head;
scb850drivers/net/apricot.cwhile (lp->scb.status, lp->scb.command)
scb853drivers/net/apricot.cprintk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command);
scb856drivers/net/apricot.clp->scb.command = ack_cmd;
scb880drivers/net/apricot.cdev->name, lp->scb.status);
scb882drivers/net/apricot.clp->scb.command = CUC_ABORT|RX_ABORT;
scb220drivers/net/ni52.cvolatile struct scb_struct  *scb;  /* volatile is important */
scb321drivers/net/ni52.cp->scb  = (struct scb_struct *)  (dev->mem_start);
scb329drivers/net/ni52.cp->iscp->scb_offset = make16(p->scb);
scb342drivers/net/ni52.cmemset((char *)p->scb,0,sizeof(struct scb_struct));
scb483drivers/net/ni52.cptr = (void *) ((char *)p->scb + sizeof(struct scb_struct));
scb495drivers/net/ni52.cp->scb->cbl_offset = make16(cfg_cmd);
scb497drivers/net/ni52.cp->scb->cmd = CUC_START; /* cmd.-unit start */
scb521drivers/net/ni52.cp->scb->cbl_offset = make16(ias_cmd);
scb523drivers/net/ni52.cp->scb->cmd = CUC_START; /* cmd.-unit start */
scb545drivers/net/ni52.cp->scb->cbl_offset = make16(tdr_cmd);
scb547drivers/net/ni52.cp->scb->cmd = CUC_START; /* cmd.-unit start */
scb562drivers/net/ni52.cp->scb->cmd = p->scb->status & STAT_MASK;
scb582drivers/net/ni52.cp->scb->cmd = p->scb->status & STAT_MASK;
scb646drivers/net/ni52.cp->scb->cbl_offset = make16(p->nop_cmds[0]);
scb647drivers/net/ni52.cp->scb->cmd = CUC_START;
scb649drivers/net/ni52.cwhile(p->scb->cmd);
scb706drivers/net/ni52.cp->scb->rfa_offset    = make16(p->rfd_first);
scb742drivers/net/ni52.cwhile((stat=p->scb->status & STAT_MASK))
scb744drivers/net/ni52.cp->scb->cmd = stat;
scb748drivers/net/ni52.cprintk("ni52-%04x/%04x-",(int) stat,(int) p->scb->status); /* debug */
scb761drivers/net/ni52.cprintk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
scb765drivers/net/ni52.cprintk("%s: rnr: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status);
scb774drivers/net/ni52.cwhile(p->scb->cmd)
scb785drivers/net/ni52.cif((l = p->scb->ovrn_errs - old_ovr))
scb917drivers/net/ni52.cwhile(p->scb->cmd);    /* wait for the last cmd */
scb918drivers/net/ni52.cp->scb->cmd = RUC_ABORT;
scb920drivers/net/ni52.cwhile(p->scb->cmd);    /* wait for accept cmd. */
scb984drivers/net/ni52.cp->scb->rfa_offset = make16(p->rfd_first);
scb985drivers/net/ni52.cp->scb->cmd = RUC_START;
scb987drivers/net/ni52.cwhile(p->scb->cmd); /* wait for accept cmd. (no timeout!!) */
scb991drivers/net/ni52.cp->scb->cmd = p->scb->status & STAT_MASK;
scb1015drivers/net/ni52.cprintk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status);
scb1044drivers/net/ni52.cp->scb->cbl_offset = make16(p->xmit_cmds[0]);
scb1045drivers/net/ni52.cp->scb->cmd = CUC_START;
scb1049drivers/net/ni52.cwhile(p->scb->cmd)
scb1098drivers/net/ni52.cprintk("ni52: errs, crc %d, align %d, resource %d, ovrn %d.\n",(int) p->scb->crc_errs,(int) p->scb->aln_errs,(int) p->scb->rsc_errs,(int) p->scb->ovrn_errs); 
scb1114drivers/net/ni52.cp->scb->cmd = CUC_SUSPEND;
scb1116drivers/net/ni52.cwhile(p->scb->cmd);
scb1117drivers/net/ni52.cp->scb->cmd = RUC_SUSPEND; 
scb1119drivers/net/ni52.cwhile(p->scb->cmd);
scb1138drivers/net/ni52.cp->scb->cbl_offset = make16(cfg_cmd);
scb1140drivers/net/ni52.cp->scb->cmd = CUC_START; /* cmd.-unit start */
scb1142drivers/net/ni52.cwhile(p->scb->cmd);
scb1144drivers/net/ni52.cp->scb->cbl_offset = p->nop_cmds[0]->cmd_link = make16(p->nop_cmds[0]);
scb1145drivers/net/ni52.cp->scb->cmd = CUC_START;
scb1147drivers/net/ni52.cwhile(p->scb->cmd);
scb1148drivers/net/ni52.cp->scb->cmd = RUC_RESUME;
scb1150drivers/net/ni52.cwhile(p->scb->cmd);
scb343drivers/scsi/wd7000.cstruct scb *next;             /* for lists of scbs */
scb597drivers/scsi/wd7000.cregister Scb *scb, *p;
scb633drivers/scsi/wd7000.cscb = scbfree;  freescbs -= needed;
scb641drivers/scsi/wd7000.creturn scb;
scb645drivers/scsi/wd7000.cstatic inline void free_scb( Scb *scb )
scb652drivers/scsi/wd7000.cmemset(scb, 0, sizeof(Scb));
scb653drivers/scsi/wd7000.cscb->next = scbfree;  scbfree = scb;
scb811drivers/scsi/wd7000.cregister Scb *scb;             /* for SCSI commands */
scb867drivers/scsi/wd7000.cscb = (struct scb *) scsi2int((unchar *)icmbs[icmb].scbptr);
scb869drivers/scsi/wd7000.cif (!(scb->op & ICB_OP_MASK))  {   /* an SCB is done */
scb870drivers/scsi/wd7000.cSCpnt = scb->SCpnt;
scb872drivers/scsi/wd7000.chost_error = scb->vue | (icmb_status << 8);
scb873drivers/scsi/wd7000.cscsi_error = scb->status;
scb877drivers/scsi/wd7000.cfree_scb(scb);
scb882drivers/scsi/wd7000.cicb = (IcbAny *) scb;
scb896drivers/scsi/wd7000.cregister Scb *scb;
scb907drivers/scsi/wd7000.cscb = alloc_scbs(1);
scb908drivers/scsi/wd7000.cscb->idlun = idlun;
scb909drivers/scsi/wd7000.cmemcpy(scb->cdb, cdb, cdblen);
scb910drivers/scsi/wd7000.cscb->direc = 0x40;    /* Disable direction check */
scb912drivers/scsi/wd7000.cscb->SCpnt = SCpnt;         /* so we can find stuff later */
scb913drivers/scsi/wd7000.cSCpnt->host_scribble = (unchar *) scb;
scb914drivers/scsi/wd7000.cscb->host = host;
scb927drivers/scsi/wd7000.csgb = scb->sgb;
scb928drivers/scsi/wd7000.cscb->op = 1;
scb929drivers/scsi/wd7000.cany2scsi(scb->dataptr, (int) sgb);
scb930drivers/scsi/wd7000.cany2scsi(scb->maxlen, SCpnt->use_sg * sizeof (Sgb) );
scb937drivers/scsi/wd7000.cscb->op = 0;
scb938drivers/scsi/wd7000.cany2scsi(scb->dataptr, (int) SCpnt->request_buffer);
scb939drivers/scsi/wd7000.cany2scsi(scb->maxlen, SCpnt->request_bufflen);
scb941drivers/scsi/wd7000.cwhile (!mail_out(host, scb)) /* keep trying */;
scb972drivers/scsi/wd7000.cmail_out(host, (struct scb *) &icb);
scb1083drivers/scsi/wd7000.cmail_out(host, (struct scb *) &icb);