Lines Matching defs:uPtr
73 static bool TestOhciWrites(RTVPTRUNION uPtr)
97 uPtrReg.pu32 = &uPtr.pu32[iReg];
245 static bool TestOhciReadOnly(RTVPTRUNION uPtr)
268 uPtrReg.pu32 = &uPtr.pu32[iReg];
375 static bool TestOhciReads(RTVPTRUNION uPtr)
384 for (uint32_t iReg = 0; iReg < cMaxReg; iReg++, uPtr.pu32++)
388 uint32_t uInitialValue = *uPtr.pu32;
392 LogRel(("TestOhciReads: %p iReg=%2d %20s = %08RX32\n", uPtr.pv, iReg, g_apszRegNms[iReg], uInitialValue));
401 uInitialValue = *uPtr.pu32;
406 u32A = *uPtr.pu32;
407 u32B = uPtr.pu8[iByte];
408 u32C = *uPtr.pu32;
434 u32A = *uPtr.pu32;
435 u32B = uPtr.pu16[iWord];
436 u32C = *uPtr.pu32;
456 for (int iWord = ((uintptr_t)uPtr.pv & PAGE_OFFSET_MASK) == 0; iWord < 3; iWord++)
458 u32A = *uPtr.pu32;
459 u32B = *(volatile uint16_t *)&uPtr.pu8[iWord * 2 - 1];
460 u32C = *uPtr.pu32;
485 for (int iByte = ((uintptr_t)uPtr.pv & PAGE_OFFSET_MASK) == 0 ? 0 : -3; iByte < 4; iByte++)
487 u32A = *uPtr.pu32;
488 u32B = *(volatile uint32_t *)&uPtr.pu8[iByte];
489 u32C = *uPtr.pu32;
561 RTVPTRUNION uPtr;
562 uPtr.pv = (void volatile *)RTR0MemObjAddress(hMapObj);
563 LogRel(("tstOhciRegisterAccess: mapping address %p\n", uPtr.pv));
564 if (RT_VALID_PTR(uPtr.pv))
566 LogRel(("tstOhciRegisterAccess: HcRevision=%#x\n", *uPtr.pu32));
571 bool fSuccess = TestOhciReads(uPtr);
573 fSuccess = TestOhciReadOnly(uPtr);
575 fSuccess = TestOhciWrites(uPtr);