Lines Matching defs:scb
74 sizeof(scp)=12; sizeof(scb)=16; sizeof(iscp)=8;
75 sizeof(scp)+sizeof(iscp)+sizeof(scb) = 36 = INIT
101 if(!p->scb->cmd_cuc) break; \
104 printk("%s: scb_cmd timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb->cus); \
109 if(!p->scb->cmd_ruc) break; \
112 printk("%s: scb_cmd (ruc) timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \
152 volatile struct scb_struct *scb; /* volatile is important */
255 p->scb = (struct scb_struct *) ((char *)p->iscp + sizeof(struct iscp_struct));
262 p->iscp->scb_offset = make16(p->scb);
276 memset((char *)p->scb,0,sizeof(struct scb_struct));
416 ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct));
443 p->scb->cbl_offset = make16(cfg_cmd);
444 p->scb->cmd_ruc = 0;
446 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */
469 p->scb->cbl_offset = make16(ias_cmd);
471 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */
492 p->scb->cbl_offset = make16(tdr_cmd);
493 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */
507 p->scb->cmd_cuc = p->scb->cus & STAT_MASK;
541 p->scb->cbl_offset = make16(mc_cmd);
542 p->scb->cmd_cuc = CUC_START;
612 p->scb->cbl_offset = make16(p->nop_cmds[0]);
613 p->scb->cmd_cuc = CUC_START;
624 p->scb->cmd_cuc = p->scb->cus & STAT_MASK;
674 p->scb->rfa_offset = make16(p->rfd_first);
703 while((stat=p->scb->cus & STAT_MASK))
705 p->scb->cmd_cuc = stat;
714 if(p->scb->rus & RU_SUSPEND) /* special case: RU_SUSPEND */
717 p->scb->cmd_ruc = RUC_RESUME;
723 printk("%s: Receiver-Unit went 'NOT READY': %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->rus);
735 printk("%s: oops! CU has left active state. stat: %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->cus);
743 if(p->scb->cmd_cuc) /* timed out? */
827 p->scb->rfa_offset = make16(p->rfd_top);
836 p->scb->cmd_ruc = RUC_RESUME;
868 printk("\nerrs: %04x %04x stat: %04x\n",(int)p->scb->rsc_errs,(int)p->scb->ovrn_errs,(int)p->scb->status);
869 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);
889 p->scb->cmd_ruc = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */
897 printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->rus);
962 p->scb->rfa_offset = make16(p->rfd_first);
963 p->scb->cmd_ruc = RUC_START;
972 if(p->scb->cus & CU_ACTIVE) /* COMMAND-UNIT active? */
979 p->scb->cmd_cuc = CUC_ABORT;
982 p->scb->cbl_offset = make16(p->nop_cmds[p->nop_point]);
983 p->scb->cmd_cuc = CUC_START;
992 printk("%s: xmitter timed out, try to restart! stat: %02x\n",dev->name,p->scb->cus);
1043 if(p->scb->cus & CU_ACTIVE)
1046 printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status));
1055 if( (p->scb->cus & CU_STATUS) == CU_SUSPEND)
1056 p->scb->cmd_cuc = CUC_RESUME;
1059 p->scb->cbl_offset = make16(p->xmit_cmds[0]);
1060 p->scb->cmd_cuc = CUC_START;
1067 if( (p->scb->cus & CU_ACTIVE)) /* test it, because CU sometimes doesn't start immediately */
1122 crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */
1123 p->scb->crc_errs = 0;
1124 aln = swab16(p->scb->aln_errs);
1125 p->scb->aln_errs = 0;
1126 rsc = swab16(p->scb->rsc_errs);
1127 p->scb->rsc_errs = 0;
1128 ovrn = swab16(p->scb->ovrn_errs);
1129 p->scb->ovrn_errs = 0;
1164 p->scb->cmd_cuc = CUC_ABORT;
1174 p->scb->cbl_offset = make16(dump_cmd);
1175 p->scb->cmd_cuc = CUC_START;