Lines Matching defs:Size
24 uptr Size) {
27 Size >> 10, _zx_status_get_string(Status));
105 bool MemMapFuchsia::mapImpl(UNUSED uptr Addr, uptr Size, const char *Name,
112 zx_status_t Status = _zx_vmo_create(Size, 0, &Vmo);
116 dieOnError(Status, "zx_vmo_create", Size);
127 _zx_vmar_map(_zx_vmar_root_self(), MapFlags, 0, Vmo, 0, Size, &MapAddr);
137 dieOnError(Status, "zx_vmar_map", Size);
142 Size, nullptr, 0);
147 WindowSize = Size;
151 void MemMapFuchsia::unmapImpl(uptr Addr, uptr Size) {
154 if (Size == WindowSize) {
159 Status = _zx_vmar_unmap(_zx_vmar_root_self(), Addr, Size);
166 Status = _zx_vmar_unmap(_zx_vmar_root_self(), Addr, Size);
170 Status = _zx_vmo_op_range(Vmo, ZX_VMO_OP_DECOMMIT, Addr - MapAddr, Size,
175 WindowBase += Size;
176 WindowSize -= Size;
180 bool MemMapFuchsia::remapImpl(uptr Addr, uptr Size, const char *Name,
198 Vmo, Addr - MapAddr, Size, &MappedAddr);
202 dieOnError(Status, "zx_vmar_map", Size);
208 Size, nullptr, 0);
215 void MemMapFuchsia::releaseAndZeroPagesToOSImpl(uptr From, uptr Size) {
217 Size, nullptr, 0);
221 void MemMapFuchsia::setMemoryPermissionImpl(uptr Addr, uptr Size, uptr Flags) {
228 _zx_vmar_protect(_zx_vmar_root_self(), MapFlags, Addr, Size);
232 bool ReservedMemoryFuchsia::createImpl(UNUSED uptr Addr, uptr Size,
238 getPlaceholderVmo(), 0, Size, &Base);
242 dieOnError(Status, "zx_vmar_map", Size);
245 Capacity = Size;
255 uptr Size) {
256 return ReservedMemoryFuchsia::MemMapT(Addr, Size);