Lines Matching refs:scb

76 sizeof(scp)=12; sizeof(scb)=16; sizeof(iscp)=8;
77 sizeof(scp)+sizeof(iscp)+sizeof(scb) = 36 = INIT
103 if(!p->scb->cmd_cuc) break; \
106 printk("%s: scb_cmd timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb->cus); \
111 if(!p->scb->cmd_ruc) break; \
114 printk("%s: scb_cmd (ruc) timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \
154 volatile struct scb_struct *scb; /* volatile is important */
257 p->scb = (struct scb_struct *) ((char *)p->iscp + sizeof(struct iscp_struct));
264 p->iscp->scb_offset = make16(p->scb);
278 memset((char *)p->scb,0,sizeof(struct scb_struct));
413 ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct));
440 p->scb->cbl_offset = make16(cfg_cmd);
441 p->scb->cmd_ruc = 0;
443 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */
466 p->scb->cbl_offset = make16(ias_cmd);
468 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */
489 p->scb->cbl_offset = make16(tdr_cmd);
490 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */
504 p->scb->cmd_cuc = p->scb->cus & STAT_MASK;
538 p->scb->cbl_offset = make16(mc_cmd);
539 p->scb->cmd_cuc = CUC_START;
609 p->scb->cbl_offset = make16(p->nop_cmds[0]);
610 p->scb->cmd_cuc = CUC_START;
621 p->scb->cmd_cuc = p->scb->cus & STAT_MASK;
671 p->scb->rfa_offset = make16(p->rfd_first);
700 while((stat=p->scb->cus & STAT_MASK))
702 p->scb->cmd_cuc = stat;
711 if(p->scb->rus & RU_SUSPEND) /* special case: RU_SUSPEND */
714 p->scb->cmd_ruc = RUC_RESUME;
720 printk("%s: Receiver-Unit went 'NOT READY': %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->rus);
732 printk("%s: oops! CU has left active state. stat: %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->cus);
740 if(p->scb->cmd_cuc) /* timed out? */
824 p->scb->rfa_offset = make16(p->rfd_top);
833 p->scb->cmd_ruc = RUC_RESUME;
865 printk("\nerrs: %04x %04x stat: %04x\n",(int)p->scb->rsc_errs,(int)p->scb->ovrn_errs,(int)p->scb->status);
866 printk("\nerrs: %04x %04x rus: %02x, cus: %02x\n",(int)p->scb->rsc_errs,(int)p->scb->ovrn_errs,(int)p->scb->rus,(int)p->scb->cus);
886 p->scb->cmd_ruc = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */
894 printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->rus);
959 p->scb->rfa_offset = make16(p->rfd_first);
960 p->scb->cmd_ruc = RUC_START;
969 if(p->scb->cus & CU_ACTIVE) /* COMMAND-UNIT active? */
976 p->scb->cmd_cuc = CUC_ABORT;
979 p->scb->cbl_offset = make16(p->nop_cmds[p->nop_point]);
980 p->scb->cmd_cuc = CUC_START;
989 printk("%s: xmitter timed out, try to restart! stat: %02x\n",dev->name,p->scb->cus);
1040 if(p->scb->cus & CU_ACTIVE)
1043 printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status));
1052 if( (p->scb->cus & CU_STATUS) == CU_SUSPEND)
1053 p->scb->cmd_cuc = CUC_RESUME;
1056 p->scb->cbl_offset = make16(p->xmit_cmds[0]);
1057 p->scb->cmd_cuc = CUC_START;
1064 if( (p->scb->cus & CU_ACTIVE)) /* test it, because CU sometimes doesn't start immediately */
1119 crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */
1120 p->scb->crc_errs = 0;
1121 aln = swab16(p->scb->aln_errs);
1122 p->scb->aln_errs = 0;
1123 rsc = swab16(p->scb->rsc_errs);
1124 p->scb->rsc_errs = 0;
1125 ovrn = swab16(p->scb->ovrn_errs);
1126 p->scb->ovrn_errs = 0;
1161 p->scb->cmd_cuc = CUC_ABORT;
1171 p->scb->cbl_offset = make16(dump_cmd);
1172 p->scb->cmd_cuc = CUC_START;