Lines Matching defs:cEntries
96 uint32_t cEntries;
235 iEntry %= pThis->cEntries; \
276 RTDECL(int) RTTraceBufCreate(PRTTRACEBUF phTraceBuf, uint32_t cEntries, uint32_t cbEntry, uint32_t fFlags)
281 AssertMsgReturn(cEntries <= RTTRACEBUF_MAX_ENTRY_SIZE, ("%#x\n", cEntries), VERR_OUT_OF_RANGE);
291 if (!cEntries)
292 cEntries = RTTRACEBUF_DEF_ENTRIES;
293 else if (cEntries < RTTRACEBUF_MIN_ENTRIES)
294 cEntries = RTTRACEBUF_MIN_ENTRIES;
300 size_t cbBlock = cbEntry * cEntries
313 rc = RTTraceBufCarve(phTraceBuf, cEntries, cbEntry, fFlags, pvBlock, &cbBlock);
323 RTDECL(int) RTTraceBufCarve(PRTTRACEBUF phTraceBuf, uint32_t cEntries, uint32_t cbEntry, uint32_t fFlags,
329 AssertMsgReturn(cEntries <= RTTRACEBUF_MAX_ENTRY_SIZE, ("%#x\n", cEntries), VERR_OUT_OF_RANGE);
348 cEntries = RTTRACEBUF_DEF_ENTRIES;
350 else if (cEntries)
352 size_t cbEntryZ = cbBlock / cEntries;
369 if (!cEntries)
374 cEntries = (uint32_t)cEntriesZ;
376 if (cEntries < RTTRACEBUF_MIN_ENTRIES)
377 cEntries = RTTRACEBUF_MIN_ENTRIES;
384 + cbEntry * cEntries;
399 pThis->cEntries = cEntries;
548 cLeft = pThis->cEntries;
553 iBase %= pThis->cEntries;
583 return pThis->cEntries;
617 cLeft = pThis->cEntries;
622 iBase %= pThis->cEntries;
644 cLeft = pThis->cEntries;
649 iBase %= pThis->cEntries;