HomeSort by relevance Sort by last modified time
    Searched refs:SlabAllocator (Results 1 - 25 of 36) sorted by null

1 2

  /device/google/contexthub/firmware/os/inc/
slab.h 22 struct SlabAllocator;
28 struct SlabAllocator* slabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems);
29 void slabAllocatorDestroy(struct SlabAllocator *allocator);
30 void* slabAllocatorAlloc(struct SlabAllocator *allocator);
31 void slabAllocatorFree(struct SlabAllocator *allocator, void *ptr);
33 void* slabAllocatorGetNth(struct SlabAllocator *allocator, uint32_t idx); // -> pointer or NULL if that slot is empty may be not int-safe. YMMV
34 uint32_t slabAllocatorGetIndex(struct SlabAllocator *allocator, void *ptr); // -> index or -1 if invalid pointer
35 uint32_t slabAllocatorGetNumItems(struct SlabAllocator *allocator); // simply say hwo many items it can hold max (numItems passed to constructor)
osApi.h 110 #define SYSCALL_OS_MAIN_SLAB_NEW 0 // (uint32_t itemSz, uint32_t itemAlign, uint32_t numItems) -> struct SlabAllocator *slab
111 #define SYSCALL_OS_MAIN_SLAB_DESTROY 1 // (struct SlabAllocator *slab) -> void
112 #define SYSCALL_OS_MAIN_SLAB_ALLOC 2 // (struct SlabAllocator *slab) -> void *mem
113 #define SYSCALL_OS_MAIN_SLAB_FREE 3 // (struct SlabAllocator *slab, void *mem) -> void
125 void osApiExport(struct SlabAllocator *mainSlubAllocator);
syscallDo.h 200 static inline struct SlabAllocator* eOsSlabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems)
202 return (struct SlabAllocator*)syscallDo3P(SYSCALL_NO(SYSCALL_DOMAIN_OS, SYSCALL_OS_MAIN, SYSCALL_OS_MAIN_SLAB, SYSCALL_OS_MAIN_SLAB_NEW), itemSz, itemAlign, numItems);
205 static inline void eOsSlabAllocatorDestroy(struct SlabAllocator* allocator)
210 static inline void* eOsSlabAllocatorAlloc(struct SlabAllocator* allocator)
215 static inline void eOsSlabAllocatorFree(struct SlabAllocator* allocator, void* ptrP)
  /device/google/contexthub/firmware/os/core/
slab.c 22 struct SlabAllocator {
29 struct SlabAllocator* slabAllocatorNew(uint32_t itemSz, uint32_t itemAlign, uint32_t numItems)
31 struct SlabAllocator *allocator;
42 allocator = (struct SlabAllocator*)heapAlloc(sizeof(struct SlabAllocator) + bitsetSz + dataSz);
52 void slabAllocatorDestroy(struct SlabAllocator *allocator)
57 void* slabAllocatorAlloc(struct SlabAllocator *allocator)
67 void slabAllocatorFree(struct SlabAllocator *allocator, void* ptrP)
80 void* slabAllocatorGetNth(struct SlabAllocator *allocator, uint32_t idx)
88 uint32_t slabAllocatorGetIndex(struct SlabAllocator *allocator, void* ptrP
    [all...]
eventQ.c 47 struct SlabAllocator *evtsSlab;
66 struct SlabAllocator *slab = slabAllocatorNew(sizeof(struct EvtRecord),
osApi.c 33 static struct SlabAllocator *mSlabAllocator;
254 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *);
261 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *);
268 struct SlabAllocator *allocator = va_arg(args, struct SlabAllocator *);
488 void osApiExport(struct SlabAllocator *mainSlubAllocator)
timer.c 56 static struct SlabAllocator *mInternalEvents;
  /external/swiftshader/third_party/LLVM/include/llvm/Support/
Allocator.h 59 /// SlabAllocator - This class can be used to parameterize the underlying
64 class SlabAllocator {
66 virtual ~SlabAllocator();
74 class MallocSlabAllocator : public SlabAllocator {
105 SlabAllocator &Allocator;
141 SlabAllocator &allocator = DefaultSlabAllocator);
193 SlabAllocator &allocator = BumpPtrAllocator::DefaultSlabAllocator)
  /external/swiftshader/third_party/LLVM/lib/Support/
Allocator.cpp 24 SlabAllocator &allocator)
165 SlabAllocator::~SlabAllocator() { }
  /device/google/contexthub/firmware/os/drivers/vsync/
vsync.c 74 struct SlabAllocator *evtSlab;
  /external/swiftshader/third_party/LLVM/unittests/Support/
AllocatorTest.cpp 98 class MockSlabAllocator : public SlabAllocator {
  /prebuilts/clang/host/darwin-x86/clang-4053586/prebuilt_include/clang/include/clang/Sema/
Overload.h 745 llvm::BumpPtrAllocator SlabAllocator;
772 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4393122/include/clang/Sema/
Overload.h 742 llvm::BumpPtrAllocator SlabAllocator;
769 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4479392/include/clang/Sema/
Overload.h 742 llvm::BumpPtrAllocator SlabAllocator;
769 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4579689/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4630689/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4639204/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/darwin-x86/clang-4691093/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4053586/prebuilt_include/clang/include/clang/Sema/
Overload.h 745 llvm::BumpPtrAllocator SlabAllocator;
772 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4393122/include/clang/Sema/
Overload.h 742 llvm::BumpPtrAllocator SlabAllocator;
769 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4479392/include/clang/Sema/
Overload.h 742 llvm::BumpPtrAllocator SlabAllocator;
769 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4579689/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4630689/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4639204/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]
  /prebuilts/clang/host/linux-x86/clang-4691093/include/clang/Sema/
Overload.h 751 llvm::BumpPtrAllocator SlabAllocator;
778 return SlabAllocator.Allocate<T>(N);
    [all...]

Completed in 720 milliseconds

1 2