Lines Matching defs:pArea
138 DECLINLINE(HGSMIOFFSET) HGSMIPointerToOffset(const HGSMIAREA *pArea,
141 return pArea->offBase + (HGSMIOFFSET)((uint8_t *)pv - pArea->pu8Base);
144 DECLINLINE(void *) HGSMIOffsetToPointer(const HGSMIAREA *pArea,
147 return pArea->pu8Base + (offBuffer - pArea->offBase);
150 DECLINLINE(uint8_t *) HGSMIBufferDataFromOffset(const HGSMIAREA *pArea,
153 void *pvBuffer = HGSMIOffsetToPointer(pArea, offBuffer);
157 DECLINLINE(HGSMIOFFSET) HGSMIBufferOffsetFromData(const HGSMIAREA *pArea,
161 return HGSMIPointerToOffset(pArea, pHeader);
164 DECLINLINE(uint8_t *) HGSMIBufferDataAndChInfoFromOffset(const HGSMIAREA *pArea,
168 HGSMIBUFFERHEADER *pHeader = (HGSMIBUFFERHEADER *)HGSMIOffsetToPointer(pArea, offBuffer);
177 int HGSMIAreaInitialize(HGSMIAREA *pArea,
182 void HGSMIAreaClear(HGSMIAREA *pArea);
184 DECLINLINE(bool) HGSMIAreaContainsOffset(const HGSMIAREA *pArea, HGSMIOFFSET off)
186 return off >= pArea->offBase && off - pArea->offBase < pArea->cbArea;
189 DECLINLINE(bool) HGSMIAreaContainsPointer(const HGSMIAREA *pArea, const void *pv)
191 return (uintptr_t)pv >= (uintptr_t)pArea->pu8Base && (uintptr_t)pv - (uintptr_t)pArea->pu8Base < pArea->cbArea;
194 HGSMIOFFSET HGSMIBufferInitializeSingle(const HGSMIAREA *pArea,
252 int HGSMIBufferProcess(const HGSMIAREA *pArea,