Lines Matching defs:cPorts

534  * @param   cPorts              Number of ports to register.
542 VMMR3_INT_DECL(int) IOMR3IOPortRegisterR3(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RTHCPTR pvUser,
546 LogFlow(("IOMR3IOPortRegisterR3: pDevIns=%p PortStart=%#x cPorts=%#x pvUser=%RHv pfnOutCallback=%#x pfnInCallback=%#x pfnOutStrCallback=%#x pfnInStrCallback=%#x pszDesc=%s\n",
547 pDevIns, PortStart, cPorts, pvUser, pfnOutCallback, pfnInCallback, pfnOutStrCallback, pfnInStrCallback, pszDesc));
552 if ( (RTUINT)PortStart + cPorts <= (RTUINT)PortStart
553 || (RTUINT)PortStart + cPorts > 0x10000)
555 AssertMsgFailed(("Invalid port range %#x-%#x (inclusive)! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
560 AssertMsgFailed(("no handlers specfied for %#x-%#x (inclusive)! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
583 pRange->Core.KeyLast = PortStart + (cPorts - 1);
585 pRange->cPorts = cPorts;
601 for (unsigned iPort = 0; iPort < cPorts; iPort++)
611 AssertMsgFailed(("Port range %#x-%#x (%s) conflicts with existing range(s)!\n", PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
632 * @param cPorts Number of ports to register.
640 VMMR3_INT_DECL(int) IOMR3IOPortRegisterRC(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RTRCPTR pvUser,
644 LogFlow(("IOMR3IOPortRegisterRC: pDevIns=%p PortStart=%#x cPorts=%#x pvUser=%RRv pfnOutCallback=%RRv pfnInCallback=%RRv pfnOutStrCallback=%RRv pfnInStrCallback=%RRv pszDesc=%s\n",
645 pDevIns, PortStart, cPorts, pvUser, pfnOutCallback, pfnInCallback, pfnOutStrCallback, pfnInStrCallback, pszDesc));
651 if ( (RTUINT)PortStart + cPorts <= (RTUINT)PortStart
652 || (RTUINT)PortStart + cPorts > 0x10000)
654 AssertMsgFailed(("Invalid port range %#x-%#x! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
657 RTIOPORT PortLast = PortStart + (cPorts - 1);
675 AssertMsgFailed(("No R3! Port=#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
686 AssertMsgFailed(("Not owner! Port=%#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
707 pRange->cPorts = cPorts;
726 AssertMsgFailed(("Port range %#x-%#x (%s) conflicts with existing range(s)!\n", PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
747 * @param cPorts Number of ports to register.
755 VMMR3_INT_DECL(int) IOMR3IOPortRegisterR0(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts, RTR0PTR pvUser,
760 LogFlow(("IOMR3IOPortRegisterR0: pDevIns=%p PortStart=%#x cPorts=%#x pvUser=%RHv pfnOutCallback=%RHv pfnInCallback=%RHv pfnOutStrCallback=%RHv pfnInStrCallback=%RHv pszDesc=%s\n",
761 pDevIns, PortStart, cPorts, pvUser, pfnOutCallback, pfnInCallback, pfnOutStrCallback, pfnInStrCallback, pszDesc));
766 if ( (RTUINT)PortStart + cPorts <= (RTUINT)PortStart
767 || (RTUINT)PortStart + cPorts > 0x10000)
769 AssertMsgFailed(("Invalid port range %#x-%#x! (%s)\n", PortStart, (RTUINT)PortStart + (cPorts - 1), pszDesc));
772 RTIOPORT PortLast = PortStart + (cPorts - 1);
790 AssertMsgFailed(("No R3! Port=#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
801 AssertMsgFailed(("Not owner! Port=%#x %#x-%#x! (%s)\n", Port, PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
822 pRange->cPorts = cPorts;
841 AssertMsgFailed(("Port range %#x-%#x (%s) conflicts with existing range(s)!\n", PortStart, (unsigned)PortStart + cPorts - 1, pszDesc));
864 * @param cPorts Number of ports to remove starting at PortStart.
869 VMMR3_INT_DECL(int) IOMR3IOPortDeregister(PVM pVM, PPDMDEVINS pDevIns, RTIOPORT PortStart, RTUINT cPorts)
871 LogFlow(("IOMR3IOPortDeregister: pDevIns=%p PortStart=%#x cPorts=%#x\n", pDevIns, PortStart, cPorts));
876 if ( (RTUINT)PortStart + cPorts < (RTUINT)PortStart
877 || (RTUINT)PortStart + cPorts > 0x10000)
879 AssertMsgFailed(("Invalid port range %#x-%#x!\n", PortStart, (unsigned)PortStart + cPorts - 1));
891 RTIOPORT PortLast = PortStart + (cPorts - 1);
934 Port += pRange->cPorts;
942 pRange->cPorts -= Port - pRange->Port;
954 pRange->cPorts -= c;
974 pRangeNew->cPorts = pRangeNew->Core.KeyLast - PortLast + 1;
980 pRange->cPorts = Port - pRange->Port;
1017 Port += pRange->cPorts;
1025 pRange->cPorts -= Port - pRange->Port;
1037 pRange->cPorts -= c;
1057 pRangeNew->cPorts = pRangeNew->Core.KeyLast - PortLast + 1;
1063 pRange->cPorts = Port - pRange->Port;
1099 Port += pRange->cPorts;
1107 pRange->cPorts -= Port - pRange->Port;
1119 pRange->cPorts -= c;
1139 pRangeNew->cPorts = pRangeNew->Core.KeyLast - PortLast + 1;
1145 pRange->cPorts = Port - pRange->Port;