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