/fuchsia/zircon/system/utest/thread-initial-state/ |
H A D | asm.h | 24 #define END(x) .size x, .- x
|
/fuchsia/zircon/third_party/ulib/jemalloc/include/jemalloc/internal/ |
H A D | extent_dss_externs.h | 11 size_t size, size_t alignment, bool *zero, bool *commit);
|
H A D | tsd_externs.h | 6 void *malloc_tsd_malloc(size_t size);
|
/fuchsia/zircon/third_party/ulib/ngunwind/include/ngunwind/private/ |
H A D | elfxx.h | 60 if (ei->size <= EI_VERSION) 85 ei->size = stat.st_size; 86 ei->image = mmap (NULL, ei->size, PROT_READ, MAP_PRIVATE, fd, 0); 93 munmap(ei->image, ei->size);
|
H A D | mempool.h | 29 /* Memory pools provide simple memory management of fixed-size 58 size_t obj_size; /* object size (rounded up for alignment) */ 60 unsigned int reserve; /* minimum (desired) size of the free-list */ 72 extern void *sos_alloc (size_t size); 74 /* Initialize POOL for an object size of OBJECT_SIZE bytes. RESERVE
|
/fuchsia/zircon/kernel/dev/iommu/dummy/include/dev/iommu/ |
H A D | dummy.h | 22 uint64_t offset, size_t size, uint32_t perms, 25 uint64_t offset, size_t size, uint32_t perms, 27 zx_status_t Unmap(uint64_t bus_txn_id, dev_vaddr_t vaddr, size_t size) final;
|
/fuchsia/zircon/kernel/include/dev/ |
H A D | iommu.h | 35 // pages given by [offset, offset + size) in |vmo|. The base of the 39 // |mapped_len| may be more than |size|, in the event that |size| is 49 // If |size| is no more than |minimum_contiguity()|, this will never return 53 // |size| is zero. 55 // Returns ZX_ERR_OUT_OF_RANGE if [offset, offset + size) is not a valid range in |vmo|. 60 uint64_t offset, size_t size, uint32_t perms, 67 uint64_t offset, size_t size, uint32_t perms, 70 // Revoke access to the range of addresses [vaddr, vaddr + size) for the 74 // |size| i [all...] |
/fuchsia/zircon/system/utest/fbl/include/fbl/tests/intrusive_containers/ |
H A D | test_environment_utils.h | 50 static size_t size(const ContainerType& container) { return container.size(); } function in struct:fbl::tests::intrusive_containers::SizeUtils 57 static size_t size(const ContainerType& container) { return container.size_slow(); } function in struct:fbl::tests::intrusive_containers::SizeUtils
|
/fuchsia/zircon/system/utest/fidl-compiler/ |
H A D | dup_attributes_tests.cpp | 31 ASSERT_EQ(errors.size(), 1); 53 ASSERT_EQ(errors.size(), 1); 76 ASSERT_EQ(errors.size(), 1);
|
/fuchsia/zircon/system/utest/region-alloc/ |
H A D | region-alloc-c-api.c | 29 const ralloc_region_t tmp = { .base = 0u, .size = 1u }; 64 .size = GOOD_MERGE_REGION_SIZE }; 67 tmp.base += tmp.size; 83 .size = BAD_MERGE_REGION_SIZE }; 93 tmp.base += tmp.size + 1; 139 // Run the alloc by size tests. Hold onto the regions it allocates so they 147 TEST->size, 209 // Run the alloc by size tests. Hold onto the regions it allocates so they 226 EXPECT_EQ(TEST->req.size, regions[i]->size, ""); [all...] |
/fuchsia/zircon/kernel/syscalls/ |
H A D | vmo.cpp | 40 zx_status_t sys_vmo_create(uint64_t size, uint32_t options, argument 42 LTRACEF("size %#" PRIx64 "\n", size); 57 res = VmObjectPaged::Create(PMM_ALLOC_FLAG_ANY, options, size, &vmo); 155 // no rights check, anyone should be able to get the size 158 uint64_t size = 0; 159 status = vmo->GetSize(&size); 161 // copy the size back, even if it failed 162 status = _size.copy_to_user(size); 169 zx_status_t sys_vmo_set_size(zx_handle_t handle, uint64_t size) { argument 184 sys_vmo_op_range(zx_handle_t handle, uint32_t op, uint64_t offset, uint64_t size, user_inout_ptr<void> _buffer, size_t buffer_size) argument 223 sys_vmo_clone(zx_handle_t handle, uint32_t options, uint64_t offset, uint64_t size, user_out_handle* out_handle) argument [all...] |
/fuchsia/zircon/system/ulib/fvm/ |
H A D | fvm-lz4.cpp | 115 zx_status_t SparseReader::InitializeBuffer(size_t size, buffer_t* out_buf) { argument 116 if (size < LZ4_MAX_BLOCK_SIZE) { 117 fprintf(stderr, "Buffer size must be >= %d\n", LZ4_MAX_BLOCK_SIZE); 121 out_buf->max_size = size; 122 out_buf->size = 0; 125 out_buf->data.reset(new (&ac) uint8_t[size]); 175 if ((status = ReadRaw(in_buf_.data.get(), to_read_, &in_buf_.size)) != ZX_OK) { 179 size_t src_sz = in_buf_.size; 184 size_t dst_sz = out_buf_.max_size - out_buf_.size; 185 next = LZ4F_decompress(dctx_, out_buf_.data.get() + out_buf_.size, [all...] |
/fuchsia/zircon/kernel/platform/pc/ |
H A D | memory.cpp | 37 uint64_t size; member in struct:addr_range 79 /* the size of the current address range */ 80 uint64_t size; member in struct:boot_addr_range 97 range->size = 0; 124 range->base, range->size, range->is_mem ? "" : "not "); 132 uint64_t size = ROUNDDOWN(range->base + range->size, PAGE_SIZE) - local 138 if (adjust >= size) 142 size -= adjust; 145 mark_mmio_region_to_reserve(base, static_cast<size_t>(size)); [all...] |
/fuchsia/zircon/kernel/dev/iommu/intel/ |
H A D | device_context.h | 47 // range on |vmo| to the guest's address |*virt_paddr|. |size| is in bytes. 48 // |mapped_len| may be larger than |size|, if |size| was not page-aligned. 54 // mapping, and |mapped_len| should be equal to |size|. 56 uint64_t offset, size_t size, uint32_t perms, 58 zx_status_t SecondLevelUnmap(paddr_t virt_paddr, size_t size); 62 zx_status_t SecondLevelMapIdentity(paddr_t base, size_t size, uint32_t perms); 80 uint64_t offset, size_t size, uint flags, 88 uint64_t offset, size_t size, uint flags,
|
/fuchsia/zircon/kernel/object/ |
H A D | bus_transaction_initiator_dispatcher.cpp | 43 uint64_t size, uint32_t perms, 48 DEBUG_ASSERT(IS_PAGE_ALIGNED(size)); 50 if (size == 0) { 61 offset, size, perms, pmt, pmt_rights); 120 leaked_pages += pmt.size() / PAGE_SIZE; 42 Pin(fbl::RefPtr<VmObject> vmo, uint64_t offset, uint64_t size, uint32_t perms, fbl::RefPtr<Dispatcher>* pmt, zx_rights_t* pmt_rights) argument
|
/fuchsia/zircon/system/dev/lib/usb-request/ |
H A D | usb-request.c | 18 size_t remaining = req->size - req->offset - offset; 20 if (remaining > req->size) { 39 zx_vmar_unmap(zx_vmar_root_self(), (uintptr_t)req->virt, req->size); 86 req->size = data_size; 111 uint64_t size; local 112 status = zx_vmo_get_size(dup_handle, &size); 121 0, dup_handle, 0, size, &mapped_addr); 123 zxlogf(ERROR, "usb_request_alloc_vmo: zx_vmar_map failed %d size: %zu\n", status, size); 132 req->size 156 uint64_t size; local [all...] |
/fuchsia/zircon/system/ulib/fzl/ |
H A D | vmo-pool.cpp | 19 return Init(vmos.begin(), vmos.size()); 47 for (size_t i = 0; i < buffers_.size(); ++i) { 64 ZX_DEBUG_ASSERT(buffer_offset < buffers_.size()); 84 if (buffer_index >= buffers_.size()) { 101 return buffers_[current_buffer_].buffer.size();
|
/fuchsia/zircon/system/dev/usb/xhci/ |
H A D | xhci-trb.c | 20 ring->size = count - 1; // subtract 1 for LINK TRB at the end 43 int size = ring->size; local 46 current += size; 50 return size - busy_count; 63 XHCI_WRITE32(&erst_array[0].size, count); 146 // ring->size does not include the LINK TRB at the end of the ring. 147 zx_paddr_t last_trb_phys = first_trb_phys + (ring->size * sizeof(xhci_trb_t));
|
/fuchsia/zircon/system/ulib/hid-parser/ |
H A D | item.cpp | 63 Item::Type get_type_and_size(uint8_t data, uint8_t* size) { argument 68 // Payload size is 0,1,2,4 bytes. 70 *size = ( b_size != 3) ? b_size : 4; 95 uint8_t size = 0; local 97 auto type = impl::get_type_and_size(data[0], &size); 100 // Amount to parse is 1-byte for the header and |size| for the payload 102 *actual = (type != Item::Type::kLongItem) ? 1 + size : 0; 106 for (uint8_t ix = 0; ix < size; ++ix) { 111 return Item(type, tag, size, item_data);
|
/fuchsia/zircon/kernel/tests/ |
H A D | string_tests.cpp | 195 size_t srcalign, dstalign, size; local 208 for (size = 0; size < maxsize; size++) { 210 //printf("srcalign %zu, dstalign %zu, size %zu\n", srcalign, dstalign, size); 217 c_memmove(dst + dstalign, src + srcalign, size); 218 memcpy(dst2 + dstalign, src2 + srcalign, size); 222 printf("error! srcalign %zu, dstalign %zu, size %zu\n", srcalign, dstalign, size); 265 size_t dstalign, size; local [all...] |
/fuchsia/zircon/system/dev/display/intel-i915/ |
H A D | igd.cpp | 118 template<typename T> T* IgdOpRegion::GetSection(uint16_t* size) { argument 119 return reinterpret_cast<T*>(GetSection(T::kBlockType, size)); 122 uint8_t* IgdOpRegion::GetSection(uint8_t type, uint16_t* size) { argument 134 *size = block_size; 144 uint16_t size; local 145 general_definitions_t* defs = GetSection<general_definitions_t>(&size); 150 if (size < sizeof(general_definitions_t)) { 151 LOG_ERROR("Bad size in vbt general definitions\n"); 155 (size - sizeof(general_definitions_t)) / defs->ddi_config_size); 288 uint16_t size; local 308 uint16_t size; local 328 uint16_t size; local [all...] |
/fuchsia/zircon/system/host/fidl/include/fidl/ |
H A D | coded_ast.h | 35 // types, or fixed size aggregates thereof. 78 Type(Kind kind, std::string coded_name, uint32_t size, CodingNeeded coding_needed) argument 79 : kind(kind), coded_name(std::move(coded_name)), size(size), coding_needed(coding_needed) {} 83 uint32_t size; member in struct:fidl::coded::Type 88 PrimitiveType(std::string name, types::PrimitiveSubtype subtype, uint32_t size) argument 89 : Type(Kind::kPrimitive, std::move(name), size, CodingNeeded::kNotNeeded), 121 StructType(std::string name, std::vector<StructField> fields, uint32_t size, std::string pointer_name, argument 123 : Type(Kind::kStruct, std::move(name), size, CodingNeeded::kNeeded), 142 TableType(std::string name, std::vector<TableField> fields, uint32_t size, st argument 163 UnionType(std::string name, std::vector<const Type*> types, uint32_t data_offset, uint32_t size, std::string pointer_name, std::string qname) argument 185 MessageType(std::string name, std::vector<StructField> fields, uint32_t size, std::string qname) argument [all...] |
/fuchsia/zircon/third_party/ulib/ngunwind/src/ |
H A D | elfxx.c | 43 if (soff + ehdr->e_shnum * ehdr->e_shentsize > ei->size) 47 (unsigned long) ei->size); 65 if (str_soff + ehdr->e_shentsize > ei->size) 69 (unsigned long) ei->size); 74 if (str_shdr->sh_offset + str_shdr->sh_size > ei->size) 78 (unsigned long) ei->size); 240 if (shdr->sh_offset + shdr->sh_size > ei->size) 244 (unsigned long) ei->size); 269 mdi->size = uncompressed_len; 280 mdi->image, &out_pos, mdi->size); [all...] |
/fuchsia/zircon/system/ulib/tftp/ |
H A D | tftp-file-test.cpp | 83 size_t size, 141 size_t size = FAKE_SOCK_BUF_SZ; member in struct:__anon1217 172 void write_to_buf(fake_socket_t* sock, void* data, size_t size) { argument 175 size_t curr_offset = sock->write_ndx.load() % sock->size; 176 if (curr_offset + size <= sock->size) { 177 memcpy(&out_buf[curr_offset], in_buf, size); 179 size_t first_size = sock->size - curr_offset; 180 size_t second_size = size - first_size; 184 sock->write_ndx.fetch_add(size); 82 file_open_write(const char* filename, size_t size, void* file_cookie) argument 204 read_from_buf(fake_socket_t* sock, void* data, size_t size, bool move_ptr) argument [all...] |
/fuchsia/zircon/system/utest/blobfs-bench/ |
H A D | blobfs-bench.cpp | 92 size_t size; local 99 size = (size_in_bytes >> (10 * current_unit)); 100 return fbl::StringPrintf("%lu%s", size, kUnits[current_unit]); 150 digest.ToString(path.data() + path.size(), path.capacity() - path.size()); 175 // Measure how much time each of the operations in the Fs takes, for a known size. 255 ASSERT_EQ(info_.path_index.size(), info_.paths.size()); 256 ASSERT_GT(info_.path_index.size(), 0); 267 size_t path_index = info_.path_index[current % info_.paths.size()]; 350 fbl::String size = GetNameForSize(blob_size); local [all...] |