Lines Matching refs:scb
102 if(!p->scb->cmd_cuc) break; \
105 …%s: scb_cmd timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_cuc,p->scb->cus); \
110 if(!p->scb->cmd_ruc) break; \
113 …b_cmd (ruc) timed out: %04x,%04x .. disabling i82586!!\n",dev->name,p->scb->cmd_ruc,p->scb->rus); \
153 volatile struct scb_struct *scb; /* volatile is important */ member
256 p->scb = (struct scb_struct *) ((char *)p->iscp + sizeof(struct iscp_struct)); in alloc586()
263 p->iscp->scb_offset = make16(p->scb); in alloc586()
277 memset((char *)p->scb,0,sizeof(struct scb_struct)); in alloc586()
412 ptr = (void *) ((char *)p->scb + sizeof(struct scb_struct)); in init586()
439 p->scb->cbl_offset = make16(cfg_cmd); in init586()
440 p->scb->cmd_ruc = 0; in init586()
442 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */ in init586()
465 p->scb->cbl_offset = make16(ias_cmd); in init586()
467 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */ in init586()
488 p->scb->cbl_offset = make16(tdr_cmd); in init586()
489 p->scb->cmd_cuc = CUC_START; /* cmd.-unit start */ in init586()
503 p->scb->cmd_cuc = p->scb->cus & STAT_MASK; in init586()
537 p->scb->cbl_offset = make16(mc_cmd); in init586()
538 p->scb->cmd_cuc = CUC_START; in init586()
608 p->scb->cbl_offset = make16(p->nop_cmds[0]); in init586()
609 p->scb->cmd_cuc = CUC_START; in init586()
620 p->scb->cmd_cuc = p->scb->cus & STAT_MASK; in init586()
670 p->scb->rfa_offset = make16(p->rfd_first); in alloc_rfa()
699 while((stat=p->scb->cus & STAT_MASK)) in sun3_82586_interrupt()
701 p->scb->cmd_cuc = stat; in sun3_82586_interrupt()
710 if(p->scb->rus & RU_SUSPEND) /* special case: RU_SUSPEND */ in sun3_82586_interrupt()
713 p->scb->cmd_ruc = RUC_RESUME; in sun3_82586_interrupt()
719 … printk("%s: Receiver-Unit went 'NOT READY': %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->rus); in sun3_82586_interrupt()
731 …k("%s: oops! CU has left active state. stat: %04x/%02x.\n",dev->name,(int) stat,(int) p->scb->cus); in sun3_82586_interrupt()
739 if(p->scb->cmd_cuc) /* timed out? */ in sun3_82586_interrupt()
823 p->scb->rfa_offset = make16(p->rfd_top); in sun3_82586_rcv_int()
832 p->scb->cmd_ruc = RUC_RESUME; in sun3_82586_rcv_int()
864 …printk("\nerrs: %04x %04x stat: %04x\n",(int)p->scb->rsc_errs,(int)p->scb->ovrn_errs,(int)p->scb->… in sun3_82586_rcv_int()
865 …: %04x %04x rus: %02x, cus: %02x\n",(int)p->scb->rsc_errs,(int)p->scb->ovrn_errs,(int)p->scb->rus,… in sun3_82586_rcv_int()
885 p->scb->cmd_ruc = RUC_ABORT; /* usually the RU is in the 'no resource'-state .. abort it now. */ in sun3_82586_rnr_int()
893 printk("%s: Receive-Unit restarted. Status: %04x\n",dev->name,p->scb->rus); in sun3_82586_rnr_int()
958 p->scb->rfa_offset = make16(p->rfd_first); in startrecv586()
959 p->scb->cmd_ruc = RUC_START; in startrecv586()
968 if(p->scb->cus & CU_ACTIVE) /* COMMAND-UNIT active? */ in sun3_82586_timeout()
975 p->scb->cmd_cuc = CUC_ABORT; in sun3_82586_timeout()
978 p->scb->cbl_offset = make16(p->nop_cmds[p->nop_point]); in sun3_82586_timeout()
979 p->scb->cmd_cuc = CUC_START; in sun3_82586_timeout()
988 printk("%s: xmitter timed out, try to restart! stat: %02x\n",dev->name,p->scb->cus); in sun3_82586_timeout()
1039 if(p->scb->cus & CU_ACTIVE) in sun3_82586_send_packet()
1042 printk("%s: stat: %04x %04x\n",dev->name,p->scb->cus,swab16(p->xmit_cmds[0]->cmd_status)); in sun3_82586_send_packet()
1051 if( (p->scb->cus & CU_STATUS) == CU_SUSPEND) in sun3_82586_send_packet()
1052 p->scb->cmd_cuc = CUC_RESUME; in sun3_82586_send_packet()
1055 p->scb->cbl_offset = make16(p->xmit_cmds[0]); in sun3_82586_send_packet()
1056 p->scb->cmd_cuc = CUC_START; in sun3_82586_send_packet()
1063 if( (p->scb->cus & CU_ACTIVE)) /* test it, because CU sometimes doesn't start immediately */ in sun3_82586_send_packet()
1118 crc = swab16(p->scb->crc_errs); /* get error-statistic from the ni82586 */ in sun3_82586_get_stats()
1119 p->scb->crc_errs = 0; in sun3_82586_get_stats()
1120 aln = swab16(p->scb->aln_errs); in sun3_82586_get_stats()
1121 p->scb->aln_errs = 0; in sun3_82586_get_stats()
1122 rsc = swab16(p->scb->rsc_errs); in sun3_82586_get_stats()
1123 p->scb->rsc_errs = 0; in sun3_82586_get_stats()
1124 ovrn = swab16(p->scb->ovrn_errs); in sun3_82586_get_stats()
1125 p->scb->ovrn_errs = 0; in sun3_82586_get_stats()
1160 p->scb->cmd_cuc = CUC_ABORT;
1170 p->scb->cbl_offset = make16(dump_cmd);
1171 p->scb->cmd_cuc = CUC_START;