Lines Matching refs:pPab

273 static void ProcessOutboundI2OMsg (PPAB pPab, U32 phyMsgAddr);
275 static int GetI2OStatus (PPAB pPab);
276 static int SendI2OOutboundQInitMsg (PPAB pPab);
277 static int SendEnableSysMsg (PPAB pPab);
301 PPAB pPab; in RCInitI2OMsgLayer() local
314 if (pDpa->pPab != NULL) { in RCInitI2OMsgLayer()
319 pDpa->pPab = NULL; in RCInitI2OMsgLayer()
325 pPab = kmalloc (sizeof (*pPab), GFP_KERNEL); in RCInitI2OMsgLayer()
326 if (!pPab) { in RCInitI2OMsgLayer()
333 memset (pPab, 0, sizeof (*pPab)); in RCInitI2OMsgLayer()
334 pDpa->pPab = pPab; in RCInitI2OMsgLayer()
335 pPab->p_atu = (PATU) pciBaseAddr; in RCInitI2OMsgLayer()
336 pPab->pPci45LinBaseAddr = (PU8) pciBaseAddr; in RCInitI2OMsgLayer()
339 pPab->outMsgBlockPhyAddr = (U32) p_phymsgbuf; in RCInitI2OMsgLayer()
340 pPab->pLinOutMsgBlock = (PU8) p_msgbuf; in RCInitI2OMsgLayer()
343 pPab->pTransCallbackFunc = TransmitCallbackFunction; in RCInitI2OMsgLayer()
344 pPab->pRecvCallbackFunc = ReceiveCallbackFunction; in RCInitI2OMsgLayer()
345 pPab->pRebootCallbackFunc = RebootCallbackFunction; in RCInitI2OMsgLayer()
346 pPab->pCallbackFunc = (PFNCALLBACK) NULL; in RCInitI2OMsgLayer()
351 result = GetI2OStatus (pPab); in RCInitI2OMsgLayer()
356 if (pPab->IOPState == I2O_IOP_STATE_OPERATIONAL) { in RCInitI2OMsgLayer()
361 result = SendI2OOutboundQInitMsg (pPab); in RCInitI2OMsgLayer()
366 result = SendEnableSysMsg (pPab); in RCInitI2OMsgLayer()
374 kfree (pPab); in RCInitI2OMsgLayer()
394 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCDisableI2OInterrupts() local
396 if (pPab == NULL) in RCDisableI2OInterrupts()
399 pPab->p_atu->OutIntMask |= i960_OUT_POST_Q_INT_BIT; in RCDisableI2OInterrupts()
407 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCEnableI2OInterrupts() local
409 if (pPab == NULL) in RCEnableI2OInterrupts()
412 pPab->p_atu->OutIntMask &= ~i960_OUT_POST_Q_INT_BIT; in RCEnableI2OInterrupts()
430 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCI2OSendPacket() local
434 if (pPab == NULL) in RCI2OSendPacket()
440 msgOffset = pPab->p_atu->InQueue; in RCI2OSendPacket()
448 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCI2OSendPacket()
467 pPab->p_atu->InQueue = msgOffset; in RCI2OSendPacket()
487 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCPostRecvBuffers() local
493 if (pPab == NULL) in RCPostRecvBuffers()
498 msgOffset = pPab->p_atu->InQueue; in RCPostRecvBuffers()
505 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCPostRecvBuffers()
517 pPab->p_atu->InQueue = msgOffset; in RCPostRecvBuffers()
528 pPab->p_atu->InQueue = msgOffset; in RCPostRecvBuffers()
547 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCProcI2OMsgQ() local
550 if (pPab == NULL) in RCProcI2OMsgQ()
553 phyAddrMsg = pPab->p_atu->OutQueue; in RCProcI2OMsgQ()
557 pPab->pLinOutMsgBlock + (phyAddrMsg - in RCProcI2OMsgQ()
558 pPab->outMsgBlockPhyAddr); in RCProcI2OMsgQ()
568 (*pPab->pTransCallbackFunc) (p8Msg[19], count, p32 + 5, in RCProcI2OMsgQ()
573 (u32) pPab, (u32) p8Msg, (u32) p32); in RCProcI2OMsgQ()
581 (*pPab->pRecvCallbackFunc) (p8Msg[19], p8Msg[12], in RCProcI2OMsgQ()
585 if (pPab->pCallbackFunc) in RCProcI2OMsgQ()
586 (*pPab->pCallbackFunc) (p8Msg[19], 0, 0, dev); in RCProcI2OMsgQ()
588 pPab->pCallbackFunc = (PFNCALLBACK) 1; in RCProcI2OMsgQ()
620 if (pPab->pRebootCallbackFunc) in RCProcI2OMsgQ()
621 (*pPab->pRebootCallbackFunc) (0, 0, 0, in RCProcI2OMsgQ()
636 ProcessOutboundI2OMsg (pPab, phyAddrMsg); in RCProcI2OMsgQ()
639 pPab->p_atu->OutQueue = phyAddrMsg; in RCProcI2OMsgQ()
642 phyAddrMsg = pPab->p_atu->OutQueue; in RCProcI2OMsgQ()
664 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetLinkStatistics() local
668 if (pPab == NULL) in RCGetLinkStatistics()
671 msgOffset = pPab->p_atu->InQueue; in RCGetLinkStatistics()
679 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCGetLinkStatistics()
689 pMsg[5] = pPab->outMsgBlockPhyAddr; in RCGetLinkStatistics()
692 p32 = (PU32)pPab->pLinOutMsgBlock; in RCGetLinkStatistics()
693 pStats = (P_NICSTAT) pPab->pLinOutMsgBlock; in RCGetLinkStatistics()
697 pPab->p_atu->InQueue = msgOffset; in RCGetLinkStatistics()
729 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetLinkStatus() local
734 if (pPab == NULL) in RCGetLinkStatus()
737 msgOffset = pPab->p_atu->InQueue; in RCGetLinkStatus()
745 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCGetLinkStatus()
754 pMsg[5] = pPab->outMsgBlockPhyAddr; in RCGetLinkStatus()
756 p32 = (PU32) pPab->pLinOutMsgBlock; in RCGetLinkStatus()
760 pPab->p_atu->InQueue = msgOffset; in RCGetLinkStatus()
792 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetMAC() local
795 if (pPab == NULL) in RCGetMAC()
798 p_atu = pPab->p_atu; in RCGetMAC()
808 p = (PU32) (pPab->pPci45LinBaseAddr + off); in RCGetMAC()
856 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCSetMAC() local
858 if (pPab == NULL) in RCSetMAC()
861 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCSetMAC()
866 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCSetMAC()
877 pPab->p_atu->InQueue = off; /* send it to the I2O device */ in RCSetMAC()
901 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCSetLinkSpeed() local
903 if (pPab == NULL) in RCSetLinkSpeed()
906 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCSetLinkSpeed()
911 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCSetLinkSpeed()
921 pPab->p_atu->InQueue = off; /* send it to the I2O device */ in RCSetLinkSpeed()
941 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCSetPromiscuousMode() local
943 if (pPab == NULL) in RCSetPromiscuousMode()
946 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCSetPromiscuousMode()
951 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCSetPromiscuousMode()
961 pPab->p_atu->InQueue = off; /* send it to the device */ in RCSetPromiscuousMode()
985 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetPromiscuousMode() local
987 msgOffset = pPab->p_atu->InQueue; in RCGetPromiscuousMode()
996 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCGetPromiscuousMode()
999 p32 = (volatile PU32) pPab->pLinOutMsgBlock; in RCGetPromiscuousMode()
1009 pMsg[5] = pPab->outMsgBlockPhyAddr; in RCGetPromiscuousMode()
1013 pPab->p_atu->InQueue = msgOffset; in RCGetPromiscuousMode()
1047 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCSetBroadcastMode() local
1049 if (pPab == NULL) in RCSetBroadcastMode()
1052 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCSetBroadcastMode()
1057 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCSetBroadcastMode()
1067 pPab->p_atu->InQueue = off; /* send it to the device */ in RCSetBroadcastMode()
1091 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetBroadcastMode() local
1093 msgOffset = pPab->p_atu->InQueue; in RCGetBroadcastMode()
1102 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCGetBroadcastMode()
1105 p32 = (volatile PU32) pPab->pLinOutMsgBlock; in RCGetBroadcastMode()
1115 pMsg[5] = pPab->outMsgBlockPhyAddr; in RCGetBroadcastMode()
1119 pPab->p_atu->InQueue = msgOffset; in RCGetBroadcastMode()
1156 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetLinkSpeed() local
1158 msgOffset = pPab->p_atu->InQueue; in RCGetLinkSpeed()
1167 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCGetLinkSpeed()
1170 p32 = (volatile PU32) pPab->pLinOutMsgBlock; in RCGetLinkSpeed()
1180 pMsg[5] = pPab->outMsgBlockPhyAddr; in RCGetLinkSpeed()
1184 pPab->p_atu->InQueue = msgOffset; in RCGetLinkSpeed()
1216 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCReportDriverCapability() local
1218 if (pPab == NULL) in RCReportDriverCapability()
1221 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCReportDriverCapability()
1226 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCReportDriverCapability()
1237 pPab->p_atu->InQueue = off; /* send it to the I2O device */ in RCReportDriverCapability()
1257 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetFirmwareVer() local
1259 msgOffset = pPab->p_atu->InQueue; in RCGetFirmwareVer()
1266 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCGetFirmwareVer()
1269 p32 = (volatile PU32) pPab->pLinOutMsgBlock; in RCGetFirmwareVer()
1279 pMsg[5] = pPab->outMsgBlockPhyAddr; in RCGetFirmwareVer()
1283 pPab->p_atu->InQueue = msgOffset; in RCGetFirmwareVer()
1317 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCResetLANCard() local
1320 if (pPab == NULL) in RCResetLANCard()
1323 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCResetLANCard()
1328 pPab->pCallbackFunc = CallbackFunction; in RCResetLANCard()
1330 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCResetLANCard()
1338 pPab->p_atu->InQueue = off; /* send it to the I2O device */ in RCResetLANCard()
1343 while (pPab->pCallbackFunc == (PFNCALLBACK) NULL) { in RCResetLANCard()
1352 *ReturnAddr = (U32) pPab->pCallbackFunc; in RCResetLANCard()
1371 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCResetIOP() local
1374 msgOffset = pPab->p_atu->InQueue; in RCResetIOP()
1381 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in RCResetIOP()
1390 pMsg[6] = pPab->outMsgBlockPhyAddr; in RCResetIOP()
1395 p32 = (volatile PU32) pPab->pLinOutMsgBlock; in RCResetIOP()
1401 pPab->p_atu->InQueue = msgOffset; in RCResetIOP()
1434 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCShutdownLANCard() local
1437 if (pPab == NULL) in RCShutdownLANCard()
1440 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCShutdownLANCard()
1445 pPab->pCallbackFunc = CallbackFunction; in RCShutdownLANCard()
1447 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCShutdownLANCard()
1456 pPab->p_atu->InQueue = off; /* send it to the I2O device */ in RCShutdownLANCard()
1461 while (pPab->pCallbackFunc == (PFNCALLBACK) NULL) { in RCShutdownLANCard()
1472 *ReturnAddr = (U32) pPab->pCallbackFunc; in RCShutdownLANCard()
1494 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCSetRavlinIPandMask() local
1496 if (pPab == NULL) in RCSetRavlinIPandMask()
1499 off = pPab->p_atu->InQueue; /* get addresss of message */ in RCSetRavlinIPandMask()
1504 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCSetRavlinIPandMask()
1515 pPab->p_atu->InQueue = off; /* send it to the I2O device */ in RCSetRavlinIPandMask()
1534 PPAB pPab = ((PDPA) dev->priv)->pPab; in RCGetRavlinIPandMask() local
1541 if (pPab == NULL) in RCGetRavlinIPandMask()
1544 p_atu = pPab->p_atu; in RCGetRavlinIPandMask()
1550 p32 = (volatile PU32) pPab->pLinOutMsgBlock; in RCGetRavlinIPandMask()
1553 pMsg = (PU32) (pPab->pPci45LinBaseAddr + off); in RCGetRavlinIPandMask()
1564 pMsg[5] = pPab->outMsgBlockPhyAddr; in RCGetRavlinIPandMask()
1613 SendI2OOutboundQInitMsg (PPAB pPab) in SendI2OOutboundQInitMsg() argument
1619 msgOffset = pPab->p_atu->InQueue; in SendI2OOutboundQInitMsg()
1627 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in SendI2OOutboundQInitMsg()
1642 pMsg[7] = pPab->outMsgBlockPhyAddr; in SendI2OOutboundQInitMsg()
1645 p32 = (PU32) pPab->pLinOutMsgBlock; in SendI2OOutboundQInitMsg()
1649 pPab->p_atu->InQueue = msgOffset; in SendI2OOutboundQInitMsg()
1666 phyOutQFrames = pPab->outMsgBlockPhyAddr; in SendI2OOutboundQInitMsg()
1669 pPab->p_atu->OutQueue = phyOutQFrames; in SendI2OOutboundQInitMsg()
1684 GetI2OStatus (PPAB pPab) in GetI2OStatus() argument
1690 msgOffset = pPab->p_atu->InQueue; in GetI2OStatus()
1698 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in GetI2OStatus()
1707 pMsg[6] = pPab->outMsgBlockPhyAddr; in GetI2OStatus()
1712 p32 = (volatile PU32) pPab->pLinOutMsgBlock; in GetI2OStatus()
1721 pPab->p_atu->InQueue = msgOffset; in GetI2OStatus()
1742 pPab->IOPState = ((volatile PU8) p32)[10]; in GetI2OStatus()
1743 pPab->InboundMFrameSize = ((volatile PU16) p32)[6]; in GetI2OStatus()
1746 pPab->IOPState, pPab->InboundMFrameSize); in GetI2OStatus()
1758 SendEnableSysMsg (PPAB pPab) in SendEnableSysMsg() argument
1763 msgOffset = pPab->p_atu->InQueue; in SendEnableSysMsg()
1771 pMsg = (PU32) (pPab->pPci45LinBaseAddr + msgOffset); in SendEnableSysMsg()
1784 pPab->p_atu->InQueue = msgOffset; in SendEnableSysMsg()
1885 ProcessOutboundI2OMsg (PPAB pPab, U32 phyAddrMsg) in ProcessOutboundI2OMsg() argument
1891 p8Msg = pPab->pLinOutMsgBlock + (phyAddrMsg - pPab->outMsgBlockPhyAddr); in ProcessOutboundI2OMsg()
1896 (u32) pPab, phyAddrMsg, (u32) p8Msg); in ProcessOutboundI2OMsg()