tag | line | file | source code |
scb | 138 | drivers/net/apricot.c | struct i596_scb *scb; |
scb | 150 | drivers/net/apricot.c | struct i596_scb scb; |
scb | 211 | drivers/net/apricot.c | lp->scb.rfd = &lp->rx[0]; |
scb | 230 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
scb | 234 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
scb | 238 | drivers/net/apricot.c | lp->scb.command = RX_START; |
scb | 263 | drivers/net/apricot.c | lp->iscp.scb = &(lp->scb); |
scb | 267 | drivers/net/apricot.c | lp->cmd_head = lp->scb.cmd = (struct i596_cmd *) -1; |
scb | 279 | drivers/net/apricot.c | dev->name, lp->scb.status, lp->scb.command); |
scb | 297 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
scb | 301 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
scb | 316 | drivers/net/apricot.c | while ((lp->scb.rfd->stat) & STAT_C) |
scb | 318 | drivers/net/apricot.c | if (i596_debug >2) print_eth(lp->scb.rfd->data); |
scb | 320 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & STAT_OK) |
scb | 323 | drivers/net/apricot.c | int pkt_len = lp->scb.rfd->count & 0x3fff; |
scb | 337 | drivers/net/apricot.c | memcpy(skb->data, lp->scb.rfd->data, pkt_len); |
scb | 347 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0001) lp->stats.collisions++; |
scb | 348 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0080) lp->stats.rx_length_errors++; |
scb | 349 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0100) lp->stats.rx_over_errors++; |
scb | 350 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0200) lp->stats.rx_fifo_errors++; |
scb | 351 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0400) lp->stats.rx_frame_errors++; |
scb | 352 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x0800) lp->stats.rx_crc_errors++; |
scb | 353 | drivers/net/apricot.c | if ((lp->scb.rfd->stat) & 0x1000) lp->stats.rx_length_errors++; |
scb | 356 | drivers/net/apricot.c | lp->scb.rfd->stat=0; |
scb | 358 | drivers/net/apricot.c | lp->rx_tail=lp->scb.rfd; |
scb | 359 | drivers/net/apricot.c | lp->scb.rfd=lp->scb.rfd->next; |
scb | 414 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
scb | 418 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
scb | 422 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
scb | 432 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
scb | 436 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
scb | 443 | drivers/net/apricot.c | lp->scb.command=CUC_ABORT|RX_ABORT; |
scb | 449 | drivers/net/apricot.c | while ((lp->scb.status, lp->scb.command) || lp->scb.command) |
scb | 453 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
scb | 486 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
scb | 490 | drivers/net/apricot.c | lp->scb.status, lp->scb.command); |
scb | 494 | drivers/net/apricot.c | lp->scb.cmd = cmd; |
scb | 495 | drivers/net/apricot.c | lp->scb.command = CUC_START; |
scb | 501 | drivers/net/apricot.c | lp->cmd_head=lp->scb.cmd; |
scb | 566 | drivers/net/apricot.c | lp->scb.command=CUC_START|RX_START; |
scb | 728 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
scb | 731 | drivers/net/apricot.c | printk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command); |
scb | 734 | drivers/net/apricot.c | status = lp->scb.status; |
scb | 829 | drivers/net/apricot.c | lp->scb.cmd = lp->cmd_head; |
scb | 850 | drivers/net/apricot.c | while (lp->scb.status, lp->scb.command) |
scb | 853 | drivers/net/apricot.c | printk("%s: i596 interrupt, timeout status %4.4x command %4.4x.\n", dev->name, lp->scb.status, lp->scb.command); |
scb | 856 | drivers/net/apricot.c | lp->scb.command = ack_cmd; |
scb | 880 | drivers/net/apricot.c | dev->name, lp->scb.status); |
scb | 882 | drivers/net/apricot.c | lp->scb.command = CUC_ABORT|RX_ABORT; |
scb | 220 | drivers/net/ni52.c | volatile struct scb_struct *scb; /* volatile is important */ |
scb | 321 | drivers/net/ni52.c | p->scb = (struct scb_struct *) (dev->mem_start); |
scb | 329 | drivers/net/ni52.c | p->iscp->scb_offset = make16(p->scb); |
scb | 342 | drivers/net/ni52.c | memset((char *)p->scb,0,sizeof(struct scb_struct)); |
scb | 483 | drivers/net/ni52.c | ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct)); |
scb | 495 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
scb | 497 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
scb | 521 | drivers/net/ni52.c | p->scb->cbl_offset = make16(ias_cmd); |
scb | 523 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
scb | 545 | drivers/net/ni52.c | p->scb->cbl_offset = make16(tdr_cmd); |
scb | 547 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
scb | 562 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
scb | 582 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
scb | 646 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->nop_cmds[0]); |
scb | 647 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
scb | 649 | drivers/net/ni52.c | while(p->scb->cmd); |
scb | 706 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
scb | 742 | drivers/net/ni52.c | while((stat=p->scb->status & STAT_MASK)) |
scb | 744 | drivers/net/ni52.c | p->scb->cmd = stat; |
scb | 748 | drivers/net/ni52.c | printk("ni52-%04x/%04x-",(int) stat,(int) p->scb->status); /* debug */ |
scb | 761 | drivers/net/ni52.c | printk("%s: oops! CU has left active state. stat: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
scb | 765 | drivers/net/ni52.c | printk("%s: rnr: %04x/%04x.\n",dev->name,(int) stat,(int) p->scb->status); |
scb | 774 | drivers/net/ni52.c | while(p->scb->cmd) |
scb | 785 | drivers/net/ni52.c | if((l = p->scb->ovrn_errs - old_ovr)) |
scb | 917 | drivers/net/ni52.c | while(p->scb->cmd); /* wait for the last cmd */ |
scb | 918 | drivers/net/ni52.c | p->scb->cmd = RUC_ABORT; |
scb | 920 | drivers/net/ni52.c | while(p->scb->cmd); /* wait for accept cmd. */ |
scb | 984 | drivers/net/ni52.c | p->scb->rfa_offset = make16(p->rfd_first); |
scb | 985 | drivers/net/ni52.c | p->scb->cmd = RUC_START; |
scb | 987 | drivers/net/ni52.c | while(p->scb->cmd); /* wait for accept cmd. (no timeout!!) */ |
scb | 991 | drivers/net/ni52.c | p->scb->cmd = p->scb->status & STAT_MASK; |
scb | 1015 | drivers/net/ni52.c | printk("%s: xmitter timed out, try to restart! stat: %04x\n",dev->name,p->scb->status); |
scb | 1044 | drivers/net/ni52.c | p->scb->cbl_offset = make16(p->xmit_cmds[0]); |
scb | 1045 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
scb | 1049 | drivers/net/ni52.c | while(p->scb->cmd) |
scb | 1098 | drivers/net/ni52.c | printk("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); |
scb | 1114 | drivers/net/ni52.c | p->scb->cmd = CUC_SUSPEND; |
scb | 1116 | drivers/net/ni52.c | while(p->scb->cmd); |
scb | 1117 | drivers/net/ni52.c | p->scb->cmd = RUC_SUSPEND; |
scb | 1119 | drivers/net/ni52.c | while(p->scb->cmd); |
scb | 1138 | drivers/net/ni52.c | p->scb->cbl_offset = make16(cfg_cmd); |
scb | 1140 | drivers/net/ni52.c | p->scb->cmd = CUC_START; /* cmd.-unit start */ |
scb | 1142 | drivers/net/ni52.c | while(p->scb->cmd); |
scb | 1144 | drivers/net/ni52.c | p->scb->cbl_offset = p->nop_cmds[0]->cmd_link = make16(p->nop_cmds[0]); |
scb | 1145 | drivers/net/ni52.c | p->scb->cmd = CUC_START; |
scb | 1147 | drivers/net/ni52.c | while(p->scb->cmd); |
scb | 1148 | drivers/net/ni52.c | p->scb->cmd = RUC_RESUME; |
scb | 1150 | drivers/net/ni52.c | while(p->scb->cmd); |
scb | 343 | drivers/scsi/wd7000.c | struct scb *next; /* for lists of scbs */ |
scb | 597 | drivers/scsi/wd7000.c | register Scb *scb, *p; |
scb | 633 | drivers/scsi/wd7000.c | scb = scbfree; freescbs -= needed; |
scb | 641 | drivers/scsi/wd7000.c | return scb; |
scb | 645 | drivers/scsi/wd7000.c | static inline void free_scb( Scb *scb ) |
scb | 652 | drivers/scsi/wd7000.c | memset(scb, 0, sizeof(Scb)); |
scb | 653 | drivers/scsi/wd7000.c | scb->next = scbfree; scbfree = scb; |
scb | 811 | drivers/scsi/wd7000.c | register Scb *scb; /* for SCSI commands */ |
scb | 867 | drivers/scsi/wd7000.c | scb = (struct scb *) scsi2int((unchar *)icmbs[icmb].scbptr); |
scb | 869 | drivers/scsi/wd7000.c | if (!(scb->op & ICB_OP_MASK)) { /* an SCB is done */ |
scb | 870 | drivers/scsi/wd7000.c | SCpnt = scb->SCpnt; |
scb | 872 | drivers/scsi/wd7000.c | host_error = scb->vue | (icmb_status << 8); |
scb | 873 | drivers/scsi/wd7000.c | scsi_error = scb->status; |
scb | 877 | drivers/scsi/wd7000.c | free_scb(scb); |
scb | 882 | drivers/scsi/wd7000.c | icb = (IcbAny *) scb; |
scb | 896 | drivers/scsi/wd7000.c | register Scb *scb; |
scb | 907 | drivers/scsi/wd7000.c | scb = alloc_scbs(1); |
scb | 908 | drivers/scsi/wd7000.c | scb->idlun = idlun; |
scb | 909 | drivers/scsi/wd7000.c | memcpy(scb->cdb, cdb, cdblen); |
scb | 910 | drivers/scsi/wd7000.c | scb->direc = 0x40; /* Disable direction check */ |
scb | 912 | drivers/scsi/wd7000.c | scb->SCpnt = SCpnt; /* so we can find stuff later */ |
scb | 913 | drivers/scsi/wd7000.c | SCpnt->host_scribble = (unchar *) scb; |
scb | 914 | drivers/scsi/wd7000.c | scb->host = host; |
scb | 927 | drivers/scsi/wd7000.c | sgb = scb->sgb; |
scb | 928 | drivers/scsi/wd7000.c | scb->op = 1; |
scb | 929 | drivers/scsi/wd7000.c | any2scsi(scb->dataptr, (int) sgb); |
scb | 930 | drivers/scsi/wd7000.c | any2scsi(scb->maxlen, SCpnt->use_sg * sizeof (Sgb) ); |
scb | 937 | drivers/scsi/wd7000.c | scb->op = 0; |
scb | 938 | drivers/scsi/wd7000.c | any2scsi(scb->dataptr, (int) SCpnt->request_buffer); |
scb | 939 | drivers/scsi/wd7000.c | any2scsi(scb->maxlen, SCpnt->request_bufflen); |
scb | 941 | drivers/scsi/wd7000.c | while (!mail_out(host, scb)) /* keep trying */; |
scb | 972 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |
scb | 1083 | drivers/scsi/wd7000.c | mail_out(host, (struct scb *) &icb); |