Lines Matching defs:pRegion
777 PLSILOGICMEMREGN pRegion = NULL;
784 pRegion = pIt;
789 return pRegion;
816 * @param pRegion The region to insert.
818 static void lsilogicR3MemRegionInsert(PLSILOGICSCSI pThis, PLSILOGICMEMREGN pRegion)
826 if (pRegion->u32AddrEnd < pIt->u32AddrStart)
828 RTListNodeInsertBefore(&pIt->NodeList, &pRegion->NodeList);
834 RTListAppend(&pThis->ListMemRegns, &pRegion->NodeList);
865 PLSILOGICMEMREGN pRegion = lsilogicR3MemRegionFindByAddr(pThis, pThis->u32DiagMemAddr);
867 if (pRegion)
869 uint32_t offRegion = pThis->u32DiagMemAddr - pRegion->u32AddrStart;
872 && pThis->u32DiagMemAddr <= pRegion->u32AddrEnd,
876 pRegion->au32Data[offRegion] = u32Data;
882 pRegion = NULL;
889 pRegion = pIt;
894 if (pRegion)
897 RTListNodeRemove(&pRegion->NodeList);
899 uint32_t cRegionSizeOld = (pRegion->u32AddrEnd - pRegion->u32AddrStart) / 4 + 1;
904 PLSILOGICMEMREGN pRegionNew = (PLSILOGICMEMREGN)RTMemRealloc(pRegion, RT_OFFSETOF(LSILOGICMEMREGN, au32Data[cRegionSizeNew]));
908 pRegion = pRegionNew;
909 memset(&pRegion->au32Data[cRegionSizeOld], 0, 512 * sizeof(uint32_t));
910 pRegion->au32Data[cRegionSizeOld] = u32Data;
911 pRegion->u32AddrEnd = pRegion->u32AddrStart + (cRegionSizeNew - 1) * sizeof(uint32_t);
916 lsilogicR3MemRegionInsert(pThis, pRegion);
924 pRegion = (PLSILOGICMEMREGN)RTMemAllocZ(RT_OFFSETOF(LSILOGICMEMREGN, au32Data[512]));
925 if (pRegion)
927 pRegion->u32AddrStart = pThis->u32DiagMemAddr;
928 pRegion->u32AddrEnd = pRegion->u32AddrStart + (512 - 1) * sizeof(uint32_t);
929 pRegion->au32Data[0] = u32Data;
932 lsilogicR3MemRegionInsert(pThis, pRegion);
953 PLSILOGICMEMREGN pRegion = lsilogicR3MemRegionFindByAddr(pThis, pThis->u32DiagMemAddr);
955 if (pRegion)
957 uint32_t offRegion = pThis->u32DiagMemAddr - pRegion->u32AddrStart;
960 && pThis->u32DiagMemAddr <= pRegion->u32AddrEnd,
964 *pu32Data = pRegion->au32Data[offRegion];
1097 PLSILOGICMEMREGN pRegion = lsilogicR3MemRegionFindByAddr(pThis, LSILOGIC_FWIMGHDR_LOAD_ADDRESS);
1099 if (pRegion)
1101 uint32_t offImgHdr = (LSILOGIC_FWIMGHDR_LOAD_ADDRESS - pRegion->u32AddrStart) / 4;
1102 PFwImageHdr pFwImgHdr = (PFwImageHdr)&pRegion->au32Data[offImgHdr];
4713 PLSILOGICMEMREGN pRegion = NULL;
4719 pRegion = (PLSILOGICMEMREGN)RTMemAllocZ(RT_OFFSETOF(LSILOGICMEMREGN, au32Data[cRegion]));
4720 if (pRegion)
4722 pRegion->u32AddrStart = u32AddrStart;
4723 pRegion->u32AddrEnd = u32AddrEnd;
4724 SSMR3GetMem(pSSM, &pRegion->au32Data[0], cRegion * sizeof(uint32_t));
4725 lsilogicR3MemRegionInsert(pThis, pRegion);