Lines Matching refs:dpr
39 tErgDpram *dpr; in ergo_interrupt() local
56 dpr = card->dpram; in ergo_interrupt()
57 b = dpr->ToPcInt; /* clear for ergo */ in ergo_interrupt()
58 b |= dpr->ToPcIntMetro; /* same for metro */ in ergo_interrupt()
59 b |= dpr->ToHyInt; /* and for champ */ in ergo_interrupt()
78 tErgDpram *dpr; in ergo_irq_bh() local
85 dpr = card->dpram; /* point to DPRAM */ in ergo_irq_bh()
99 if (!dpr->ToHyFlag) { in ergo_irq_bh()
102 if (hysdn_sched_tx(card, dpr->ToHyBuf, &dpr->ToHySize, &dpr->ToHyChannel, in ergo_irq_bh()
104 dpr->ToHyFlag = 1; /* enable tx */ in ergo_irq_bh()
108 if (dpr->ToPcFlag) { in ergo_irq_bh()
111 if (hysdn_sched_rx(card, dpr->ToPcBuf, dpr->ToPcSize, dpr->ToPcChannel)) { in ergo_irq_bh()
112 dpr->ToPcFlag = 0; /* we worked the data */ in ergo_irq_bh()
118 dpr->ToHyInt = 1; in ergo_irq_bh()
119 dpr->ToPcInt = 1; /* interrupt to E1 for all cards */ in ergo_irq_bh()
192 tErgDpram *dpr = card->dpram; in ergo_testram() local
194 memset(dpr->TrapTable, 0, sizeof(dpr->TrapTable)); /* clear all Traps */ in ergo_testram()
195 dpr->ToHyInt = 1; /* E1 INTR state forced */ in ergo_testram()
197 memcpy(&dpr->ToHyBuf[ERG_TO_HY_BUF_SIZE - sizeof(TestText)], TestText, in ergo_testram()
199 if (memcmp(&dpr->ToHyBuf[ERG_TO_HY_BUF_SIZE - sizeof(TestText)], TestText, in ergo_testram()
203 memcpy(&dpr->ToPcBuf[ERG_TO_PC_BUF_SIZE - sizeof(TestText)], TestText, in ergo_testram()
205 if (memcmp(&dpr->ToPcBuf[ERG_TO_PC_BUF_SIZE - sizeof(TestText)], TestText, in ergo_testram()
333 tErgDpram *dpr = card->dpram; /* pointer to DPRAM structure */ in ergo_waitpofready() local
344 if (dpr->ToPcFlag) { in ergo_waitpofready()
347 if ((dpr->ToPcChannel != CHAN_SYSTEM) || in ergo_waitpofready()
348 (dpr->ToPcSize < MIN_RDY_MSG_SIZE) || in ergo_waitpofready()
349 (dpr->ToPcSize > MAX_RDY_MSG_SIZE) || in ergo_waitpofready()
350 ((*(ulong *) dpr->ToPcBuf) != RDY_MAGIC)) in ergo_waitpofready()
354 msg_size = dpr->ToPcSize - RDY_MAGIC_SIZE; in ergo_waitpofready()
356 if (EvalSysrTokData(card, dpr->ToPcBuf + RDY_MAGIC_SIZE, msg_size)) in ergo_waitpofready()
371 dpr->ToPcFlag = 0; /* reset data indicator */ in ergo_waitpofready()
372 dpr->ToHyInt = 1; in ergo_waitpofready()
373 dpr->ToPcInt = 1; /* interrupt to E1 for all cards */ in ergo_waitpofready()