/third_party/mesa3d/src/freedreno/fdl/ |
H A D | freedreno_layout.c | 33 fdl_layout_buffer(struct fdl_layout *layout, uint32_t size) in fdl_layout_buffer() argument 35 layout->width0 = size; in fdl_layout_buffer() 40 layout->size = size; in fdl_layout_buffer() 67 "%s: %ux%ux%u@%ux%u:\t%2u: stride=%4u, size=%6u,%6u, " in fdl_dump_layout()
|
/third_party/mesa3d/src/gallium/drivers/r600/sfn/ |
H A D | sfn_memorypool.h | 44 void * operator new(size_t size); 45 void operator delete (void *p, size_t size); 56 void *allocate(size_t size); 57 void *allocate(size_t size, size_t align);
|
/third_party/mesa3d/src/imagination/vulkan/winsys/ |
H A D | pvr_winsys_helper.h | 40 uint64_t size, 44 uint64_t size, 51 uint64_t size, 60 uint64_t size,
|
/third_party/node/src/ |
H A D | node_main.cc | 55 // Compute the size of the required buffer in wmain() 56 DWORD size = WideCharToMultiByte(CP_UTF8, in wmain() local 64 if (size == 0) { in wmain() 70 argv[i] = new char[size]; in wmain() 76 size, in wmain()
|
/third_party/musl/porting/uniproton/kernel/src/stdio/ |
H A D | fwrite.c | 28 size_t fwrite(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f) in fwrite() argument 30 size_t k, l = size*nmemb; in fwrite() 31 if (!size) nmemb = 0; in fwrite() 35 return k==l ? nmemb : k/size; in fwrite()
|
/third_party/musl/porting/liteos_a/kernel/src/stdio/ |
H A D | fwrite.c | 28 size_t fwrite(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f) in fwrite() argument 30 size_t k, l = size*nmemb; in fwrite() 31 if (!size) nmemb = 0; in fwrite() 35 return k==l ? nmemb : k/size; in fwrite()
|
/third_party/musl/porting/liteos_m/kernel/src/stdio/ |
H A D | fwrite.c | 28 size_t fwrite(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f) in fwrite() argument 30 size_t k, l = size*nmemb; in fwrite() 31 if (!size) nmemb = 0; in fwrite() 35 return k==l ? nmemb : k/size; in fwrite()
|
/third_party/musl/src/stdio/ |
H A D | fwrite.c | 31 size_t fwrite(const void *restrict src, size_t size, size_t nmemb, FILE *restrict f) in fwrite() argument 36 size_t k, l = size*nmemb; in fwrite() 37 if (!size) nmemb = 0; in fwrite() 41 return k==l ? nmemb : k/size; in fwrite()
|
/third_party/node/benchmark/buffers/ |
H A D | buffer-iterate.js | 7 size: [512, 4096, 16386], 19 function main({ size, type, method, n }) { 21 Buffer.alloc(size) : 22 SlowBuffer(size).fill(0);
|
/third_party/mesa3d/src/mapi/ |
H A D | u_execmem.c | 64 * Dispatch stubs are of fixed size and never freed. Thus, we do not need to 121 u_execmem_alloc(unsigned int size) in u_execmem_alloc() argument 124 (void)size; in u_execmem_alloc() 135 if (head + size > EXEC_MAP_SIZE) in u_execmem_alloc() 138 /* allocation, assumes proper addr and size alignement */ in u_execmem_alloc() 140 head += size; in u_execmem_alloc()
|
/third_party/mesa3d/src/intel/vulkan/tests/ |
H A D | state_pool_padding.c | 41 /* Get the size of the underlying block_pool */ in main() 43 uint64_t pool_size = bp->size; in main() 48 /* Grab a state that is the size of the initial allocation */ in main() 52 ASSERT(bp->size > pool_size); in main() 54 /* And the state must have been allocated at the end of the original size */ in main() 58 * offset within the original pool size in main() 72 pool_size = bp->size; in main() 74 ASSERT(bp->size > pool_size); in main()
|
/third_party/mesa3d/src/util/tests/ |
H A D | u_debug_stack_test.cpp | 89 size_t size; in TEST() local 99 fp = open_memstream(&bt1, &size); in TEST() 103 fp = open_memstream(&bt2, &size); in TEST() 107 if (size > 0) { in TEST()
|
/third_party/icu/icu4c/source/io/ |
H A D | uscanf.cpp | 74 int32_t size = (int32_t)uprv_strlen(patternSpecification) + 1; in u_vfscanf() local 77 if (size >= MAX_UCHAR_BUFFER_SIZE(patBuffer)) { in u_vfscanf() 78 pattern = (UChar *)uprv_malloc(size * sizeof(UChar)); in u_vfscanf() 86 u_charsToUChars(patternSpecification, pattern, size); in u_vfscanf()
|
/third_party/ltp/testcases/network/nfs/nfslock01/ |
H A D | nfslock01.sh | 26 local size 30 size="$(wc -c $file | awk '{print $1}')" 31 if [ $size -ne $exp_size ]; then 32 tst_brk TBROK "could not create '$file' (size: $size, expected: $exp_size)"
|
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mmap/ |
H A D | 11-1.c | 14 * was specified) or off is not a multiple of the page size as returned by 18 * 1. Set 'off' a value which is not a multiple of page size; 45 size_t size; in main() local 51 size = page_size; in main() 72 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, off); in main() 77 munmap(pa, size); in main() 80 printf("Got EINVAL when 'off' is not multiple of page size\n"); in main() 86 " when 'off' is not a multiple of page size, get: %s\n", in main()
|
H A D | 6-5.c | 40 size_t size = 1024; in main() local 51 if (ftruncate(fd, size) == -1) { in main() 65 pa = mmap(NULL, size, PROT_WRITE, MAP_PRIVATE, fd, 0); in main() 71 munmap(pa, size); in main()
|
H A D | 10-1.c | 44 size_t size; in main() local 48 size = total_size; in main() 64 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, in main() 78 rc = munmap(pa, size); in main()
|
H A D | 1-2.c | 29 size_t size = 1024 * 4 * 1024; in main() local 42 if (ftruncate(fd, size) == -1) { in main() 52 pa = mmap(NULL, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in main() 64 munmap(pa, size); in main()
|
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | virtual-memory.cc | 13 VirtualMemory::VirtualMemory(PageAllocator* page_allocator, size_t size, in VirtualMemory() argument 17 DCHECK(IsAligned(size, page_allocator->CommitPageSize())); in VirtualMemory() 20 start_ = page_allocator->AllocatePages(hint, RoundUp(size, page_size), in VirtualMemory() 24 size_ = RoundUp(size, page_size); in VirtualMemory()
|
/third_party/node/deps/v8/src/init/ |
H A D | icu_util.cc | 78 size_t size = ftell(inf); in InitializeICU() 81 g_icu_data_ptr = new char[size]; in InitializeICU() 82 if (fread(g_icu_data_ptr, 1, size, inf) != size) { in InitializeICU()
|
/third_party/node/deps/v8/src/snapshot/ |
H A D | snapshot-source-sink.cc | 39 int size = GetInt(); in GetBlob() local 40 CHECK(position_ + size <= length_); in GetBlob() 42 Advance(size); in GetBlob() 43 return size; in GetBlob()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a4xx/ |
H A D | fd4_resource.c | 35 uint32_t level, size = 0; in fd4_setup_slices() local 62 slice->offset = size; in fd4_setup_slices() 66 * does), so as soon as the layer size range gets into range, we stop in fd4_setup_slices() 75 size += slice->size0 * depth * layers_in_level; in fd4_setup_slices() 82 return size; in fd4_setup_slices()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a5xx/ |
H A D | fd5_resource.c | 45 unsigned size = lrz_pitch * lrz_height * 2; in setup_lrz() local 47 size += 0x1000; /* for GRAS_LRZ_FAST_CLEAR_BUFFER */ in setup_lrz() 52 rsc->lrz = fd_bo_new(screen->dev, size, FD_BO_NOMAP, "lrz"); in setup_lrz() 67 return rsc->layout.size; in fd5_setup_slices()
|
/third_party/mesa3d/src/util/ |
H A D | disk_cache_os.h | 63 /* Pointer to total size of all objects in cache (within index_mmap) */ 64 uint64_t *size; member 69 /* Maximum size of all cached objects (in bytes). */ 91 size_t size; member 108 size_t *size); 111 disk_cache_load_item(struct disk_cache *cache, char *filename, size_t *size);
|
H A D | os_memory_aligned.h | 54 os_malloc_aligned(size_t size, size_t alignment) in os_malloc_aligned() argument 58 if(posix_memalign(&ptr, alignment, size) != 0) in os_malloc_aligned() 71 os_malloc_aligned(size_t size, size_t alignment) in os_malloc_aligned() argument 79 * alloc_size = size + alignment + sizeof(void *) in os_malloc_aligned() 83 if (add_overflow_size_t(size, alignment, &alloc_size) || in os_malloc_aligned()
|