Lines Matching defs:pLeaf
998 PVCITREENODELEAF pLeaf = (PVCITREENODELEAF)RTMemAllocZ(sizeof(VCITREENODELEAF));
1000 if (pLeaf)
1004 pLeaf->Core.u8Type = VCI_TREE_NODE_TYPE_LEAF;
1006 for (unsigned idx = 0; idx < RT_ELEMENTS(pLeaf->aExtents); idx++)
1008 pLeaf->aExtents[idx].u64BlockOffset = RT_LE2H_U64(pExtent->u64BlockOffset);
1009 pLeaf->aExtents[idx].u32Blocks = RT_LE2H_U32(pExtent->u32Blocks);
1010 pLeaf->aExtents[idx].u64BlockAddr = RT_LE2H_U64(pExtent->u64BlockAddr);
1013 if ( pLeaf->aExtents[idx].u32Blocks
1014 && pLeaf->aExtents[idx].u64BlockAddr)
1015 pLeaf->cUsedNodes++;
1018 pNode = &pLeaf->Core;
1139 PVCITREENODELEAF pLeaf = (PVCITREENODELEAF)pNodeCur;
1144 unsigned idxMax = pLeaf->cUsedNodes;
1145 unsigned idxCur = pLeaf->cUsedNodes / 2;
1149 PVCICACHEEXTENT pExtentCur = &pLeaf->aExtents[idxCur];
1175 if (idxCur < pLeaf->cUsedNodes - 1)
1176 *ppNextBestFit = &pLeaf->aExtents[idxCur + 1];
1183 PVCITREENODEINT pInt = (PVCITREENODEINT)pLeaf->Core.pParent;