Lines Matching defs:uReg

791  * @param   uReg    The register number.
794 static int smcRegData_r(PDEVSMC pThis, uint8_t uReg, uint8_t *pbValue)
880 * @param uReg The register number.
883 static int smcRegData_w(PDEVSMC pThis, uint8_t uReg, uint8_t bValue)
994 * @param uReg The register number.
997 static int smcRegCmd_w(PDEVSMC pThis, uint8_t uReg, uint8_t bValue)
999 LogFlow(("smcRegCmd_w: New command: %#x (old=%#x)\n", bValue, pThis->bCmd)); NOREF(uReg);
1035 * @param uReg The register number.
1038 static int smcRegGen_w(PDEVSMC pThis, uint8_t uReg, uint8_t bValue)
1040 Log(("smcRegGen_w: %#04x: %#x -> %#x (write)\n", uReg, pThis->u.abRegsRW[uReg], bValue));
1041 pThis->u.abRegsRW[uReg] = bValue;
1050 * @param uReg The register number.
1053 static int smcRegGen_r(PDEVSMC pThis, uint8_t uReg, uint8_t *pbValue)
1055 Log(("smcRegGen_r: %#04x: %#x (read)\n", uReg, pThis->u.abRegsRW[uReg]));
1056 *pbValue = pThis->u.abRegsRW[uReg];
1065 * @param uReg The register number.
1068 static int smcRegFF_w(PDEVSMC pThis, uint8_t uReg, uint8_t bValue)
1070 Log(("SMC: %#04x: Writing %#x to unknown register!\n", uReg, bValue));
1079 * @param uReg The register number.
1082 static int smcRegFF_r(PDEVSMC pThis, uint8_t uReg, uint8_t *pbValue)
1084 Log(("SMC: %#04x: Reading from unknown register!\n", uReg));
1145 int (*pfnWrite)(PDEVSMC pThis, uint8_t uReg, uint8_t bValue);
1146 int (*pfnRead)(PDEVSMC pThis, uint8_t uReg, uint8_t *pbValue);
1196 uint32_t uReg = Port - SMC_PORT_FIRST;
1197 int rc = g_aSmcRegs[uReg].pfnWrite(pThis, uReg, u32);
1204 while (cb > 1 && uReg < SMC_REG_COUNT - 1)
1207 uReg++;
1209 int rc2 = g_aSmcRegs[uReg].pfnWrite(pThis, uReg, u32);
1220 LogFlow(("smcIoPortWrite: %#04x write access: %#x (LB %u) rc=%Rrc\n", uReg, u32, cb, rc));
1238 uint32_t uReg = Port - SMC_PORT_FIRST;
1239 Log2(("smcIoPortRead: %#04x read access: LB %u\n", uReg, cb));
1241 int rc = g_aSmcRegs[uReg].pfnRead(pThis, uReg, &bValue);
1252 uReg++;
1254 if (uReg < SMC_REG_COUNT)
1256 int rc2 = g_aSmcRegs[uReg].pfnRead(pThis, uReg, &bValue);
1268 LogFlow(("smcIoPortRead: %#04x read access: %#x (LB %u) rc=%Rrc\n", uReg, *pu32, cb, rc));