Lines Matching refs:C2MemoryUsage
106 virtual c2_status_t map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence,
171 c2_status_t C2DmaBufAllocation::map(size_t offset, size_t size, C2MemoryUsage usage, C2Fence* fence, in map()
189 if (usage.expected & C2MemoryUsage::CPU_READ) { in map()
192 if (usage.expected & C2MemoryUsage::CPU_WRITE) { in map()
298 C2MemoryUsage minUsage = {0, 0}; in C2DmaBufAllocator()
299 C2MemoryUsage maxUsage = {C2MemoryUsage::CPU_READ, C2MemoryUsage::CPU_WRITE}; in C2DmaBufAllocator()
325 Traits traits = {mTraits->name, mTraits->id, LINEAR, C2MemoryUsage(minUsage), in setUsageMapper()
326 C2MemoryUsage(maxUsage)}; in setUsageMapper()
335 c2_status_t C2DmaBufAllocator::mapUsage(C2MemoryUsage usage, size_t capacity, C2String* heap_name, in mapUsage()
348 !(usage.expected & (C2MemoryUsage::CPU_READ | C2MemoryUsage::CPU_WRITE))) in mapUsage()
375 uint32_t capacity, C2MemoryUsage usage, std::shared_ptr<C2LinearAllocation>* allocation) { in newLinearAllocation()