Searched refs:SharedMemory (Results 1 - 5 of 5) sorted by relevance

/fuchsia/zircon/system/dev/tee/optee/
H A Dshared-memory.h37 // The SharedMemory object is essentially just a wrapper around the region object that was allocated
46 class SharedMemory : public fbl::DoublyLinkedListable<fbl::unique_ptr<SharedMemory>> { class in namespace:optee
50 explicit SharedMemory(zx_vaddr_t base_vaddr, zx_paddr_t base_paddr, RegionPtr region);
53 SharedMemory(SharedMemory&&) = default;
54 SharedMemory& operator=(SharedMemory&&) = default;
63 // Upon destruction of the SharedMemory object, the RegionPtr will be recycled back to the
79 zx_status_t Allocate(size_t size, fbl::unique_ptr<SharedMemory>* out_shared_memor
[all...]
H A Doptee-message.h131 static_assert(fbl::is_same<PtrType, SharedMemory*>::value ||
132 fbl::is_same<PtrType, fbl::unique_ptr<SharedMemory>>::value,
133 "Template type of MessageBase must be a pointer (raw or smart) to SharedMemory!");
188 class Message : public MessageBase<fbl::unique_ptr<SharedMemory>> {
238 class RpcMessage : public MessageBase<SharedMemory*> {
269 // Constructs an instance of an RpcMessage from a backing SharedMemory object.
272 // * memory: A pointer to the SharedMemory object backing the RpcMessage. This pointer must
274 explicit RpcMessage(SharedMemory* memory)
H A Dshared-memory.cpp14 SharedMemory::SharedMemory(zx_vaddr_t base_vaddr, zx_paddr_t base_paddr, RegionPtr region) function in class:optee::SharedMemory
H A Doptee-client.h52 using SharedMemoryList = fbl::DoublyLinkedList<fbl::unique_ptr<SharedMemory>>;
58 // Attempts to allocate a block of SharedMemory from a designated memory pool.
75 // Frees a block of SharedMemory that was previously allocated by the driver.
88 // * If the block was found, an iterator object pointing to the SharedMemory block.
H A Doptee-client.cpp249 fbl::unique_ptr<SharedMemory> sh_mem;
257 // Track the new piece of allocated SharedMemory in the list
262 // Make the memory identifier the address of the SharedMemory object
283 // Destructor of SharedMemory will automatically free block back into pool
387 SharedMemory& msg_mem = *mem_iter;
456 // Try to find the SharedMemory based on the memory id

Completed in 38 milliseconds