/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/api/ |
H A D | vktApiBufferViewCreateTests.cpp | 83 virtual tcu::TestStatus createTestBuffer (VkDeviceSize size, 93 virtual tcu::TestStatus createTestBuffer (VkDeviceSize size, 103 virtual tcu::TestStatus createTestBuffer (VkDeviceSize size, 143 tcu::TestStatus BufferSuballocation::createTestBuffer (VkDeviceSize size, in createTestBuffer() argument 158 size, // VkDeviceSize size; in createTestBuffer() 180 if (size > memReqs.size) in createTestBuffer() 183 errorMsg << "Required memory size (" << memReqs.size << " byte in createTestBuffer() 211 createTestBuffer(VkDeviceSize size, VkBufferUsageFlags usage, Context& context, Move<VkBuffer>& testBuffer, Move<VkDeviceMemory>& memory) const createTestBuffer() argument 338 const VkDeviceSize size = 3 * 5 * 7 * 64; iterate() local [all...] |
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
H A D | parser_test.cc | 98 ASSERT_EQ(1U, feats.size()); in TEST_F() 116 ASSERT_EQ(2U, device_exts.size()); in TEST_F() 121 ASSERT_EQ(1U, inst_exts.size()); in TEST_F() 135 ASSERT_EQ(1U, bufs.size()); in TEST_F() 150 ASSERT_EQ(2U, bufs.size()); in TEST_F() 165 ASSERT_EQ(1U, pipelines.size()); in TEST_F() 233 ASSERT_EQ(2U, bufs.size()); in TEST_F() 255 ASSERT_EQ(2U, bufs.size()); in TEST_F() 283 ASSERT_EQ(2U, bufs.size()); in TEST_F() 287 ASSERT_EQ(results.size(), buf in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/ |
H A D | MachineFrameInfo.h | 113 SSPLK_LargeArray, ///< Array or nested array >= SSP-buffer-size. Closest 115 SSPLK_SmallArray, ///< Array or nested array < SSP-buffer-size. 2nd closest 128 // The size of this object on the stack. 0 means a variable sized object, 240 /// offsets for all of the fixed size objects, updating the Objects list 279 /// This contains the size of the largest call frame if the target uses frame 390 int getObjectIndexEnd() const { return (int)Objects.size()-NumFixedObjects; } in getObjectIndexEnd() 396 unsigned getNumObjects() const { return Objects.size(); } in getNumObjects() 406 assert (i >= 0 && (unsigned)i < LocalFrameObjects.size() && in getLocalFrameObjectMap() 412 int64_t getLocalFrameObjectCount() const { return LocalFrameObjects.size(); } in getLocalFrameObjectCount() 414 /// Set the size o [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | arena.cc | 111 size_t size; in NewBlock() local 113 // Double the current block size, up to a limit. in NewBlock() 114 size = std::min(2 * last_block->size(), options_.max_block_size); in NewBlock() 116 size = options_.start_block_size; in NewBlock() 120 size = std::max(size, kBlockHeaderSize + min_bytes); in NewBlock() 122 void* mem = options_.block_alloc(size); in NewBlock() 123 Block* b = new (mem) Block(size, last_block); in NewBlock() 124 space_allocated_.fetch_add(size, st in NewBlock() 128 Block(size_t size, Block* next) Block() argument 134 size_t size = cleanup_ ? cleanup_->size * 2 : kMinCleanupListElements; AddCleanupFallback() local [all...] |
H A D | repeated_field_unittest.cc | 73 EXPECT_EQ(field.size(), 0); in TEST() 78 EXPECT_EQ(field.size(), 1); in TEST() 85 EXPECT_EQ(field.size(), 2); in TEST() 94 EXPECT_EQ(field.size(), 2); in TEST() 103 EXPECT_EQ(field.size(), 2); in TEST() 112 EXPECT_EQ(field.size(), 1); in TEST() 119 EXPECT_EQ(field.size(), 0); in TEST() 136 EXPECT_EQ(field.size(), 16); in TEST() 155 EXPECT_EQ(field1.size(), 2); in TEST() 160 EXPECT_EQ(field2.size(), in TEST() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_debugfs.c | 164 * @size: Number of bytes to write/read 183 * the returned size reflect that. 186 char __user *buf, size_t size, loff_t *pos) in amdgpu_debugfs_process_reg_op() 197 if (size & 0x3 || *pos & 0x3 || in amdgpu_debugfs_process_reg_op() 261 while (size) { in amdgpu_debugfs_process_reg_op() 280 size -= 4; in amdgpu_debugfs_process_reg_op() 306 size_t size, loff_t *pos) in amdgpu_debugfs_regs_read() 308 return amdgpu_debugfs_process_reg_op(true, f, buf, size, pos); in amdgpu_debugfs_regs_read() 315 size_t size, loff_t *pos) in amdgpu_debugfs_regs_write() 317 return amdgpu_debugfs_process_reg_op(false, f, (char __user *)buf, size, po in amdgpu_debugfs_regs_write() 185 amdgpu_debugfs_process_reg_op(bool read, struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_process_reg_op() argument 305 amdgpu_debugfs_regs_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_read() argument 314 amdgpu_debugfs_regs_write(struct file *f, const char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_write() argument 333 amdgpu_debugfs_regs_pcie_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_pcie_read() argument 392 amdgpu_debugfs_regs_pcie_write(struct file *f, const char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_pcie_write() argument 452 amdgpu_debugfs_regs_didt_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_didt_read() argument 514 amdgpu_debugfs_regs_didt_write(struct file *f, const char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_didt_write() argument 577 amdgpu_debugfs_regs_smc_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_smc_read() argument 639 amdgpu_debugfs_regs_smc_write(struct file *f, const char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_regs_smc_write() argument 704 amdgpu_debugfs_gca_config_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_gca_config_read() argument 793 amdgpu_debugfs_sensor_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_sensor_read() argument 874 amdgpu_debugfs_wave_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_wave_read() argument 966 amdgpu_debugfs_gpr_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_gpr_read() argument 1052 amdgpu_debugfs_gfxoff_write(struct file *f, const char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_gfxoff_write() argument 1101 amdgpu_debugfs_gfxoff_read(struct file *f, char __user *buf, size_t size, loff_t *pos) amdgpu_debugfs_gfxoff_read() argument [all...] |
/third_party/node/deps/v8/src/compiler/ |
H A D | types.cc | 692 int size; in Intersect() local 693 if (base::bits::SignedAddOverflow32(size1, size2, &size)) return Any(); in Intersect() 694 if (base::bits::SignedAddOverflow32(size, 2, &size)) return Any(); in Intersect() 695 UnionType* result = UnionType::New(size, zone); in Intersect() 696 size = 0; in Intersect() 699 result->Set(size++, NewBitset(bits)); in Intersect() 702 size = IntersectAux(type1, type2, result, size, &lims, zone); in Intersect() 707 size in Intersect() 717 UpdateRange(Type range, UnionType* result, int size, Zone* zone) UpdateRange() argument 755 IntersectAux(Type lhs, Type rhs, UnionType* result, int size, RangeType::Limits* lims, Zone* zone) IntersectAux() argument 899 int size; Union() local 934 AddToUnion(Type type, UnionType* result, int size, Zone* zone) AddToUnion() argument 949 NormalizeUnion(UnionType* unioned, int size, Zone* zone) NormalizeUnion() argument [all...] |
/kernel/linux/linux-5.10/arch/m68k/mm/ |
H A D | sun3kmap.c | 63 void __iomem *sun3_ioremap(unsigned long phys, unsigned long size, in sun3_ioremap() argument 70 if(!size) in sun3_ioremap() 77 size += offset; in sun3_ioremap() 78 size = PAGE_ALIGN(size); in sun3_ioremap() 79 if((area = get_vm_area(size, VM_IOREMAP)) == NULL) in sun3_ioremap() 83 pr_info("ioremap: got virt %p size %lx(%lx)\n", area->addr, size, in sun3_ioremap() 84 area->size); in sun3_ioremap() 87 pages = size / PAGE_SIZ in sun3_ioremap() 111 __ioremap(unsigned long phys, unsigned long size, int cache) __ioremap() argument [all...] |
/kernel/linux/linux-5.10/arch/arm/include/asm/ |
H A D | cmpxchg.h | 28 static inline unsigned long __xchg(unsigned long x, volatile void *ptr, int size) in __xchg() argument 41 switch (size) { in __xchg() 109 /* Cause a link-time error, the xchg() size is not supported */ in __xchg() 110 __bad_xchg(ptr, size), ret = 0; in __xchg() 150 extern void __bad_cmpxchg(volatile void *ptr, int size); 157 unsigned long new, int size) in __cmpxchg() 163 switch (size) { in __cmpxchg() 203 __bad_cmpxchg(ptr, size); in __cmpxchg() 219 unsigned long new, int size) in __cmpxchg_local() 223 switch (size) { in __cmpxchg_local() 156 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument 217 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument [all...] |
/kernel/linux/linux-5.10/arch/m68k/include/asm/ |
H A D | floppy.h | 102 #define fd_dma_mem_alloc(size) vdma_mem_alloc(size) 103 #define fd_dma_setup(addr, size, mode, io) vdma_dma_setup(addr, size, mode, io) 144 static unsigned long vdma_mem_alloc(unsigned long size) in vdma_mem_alloc() argument 146 return (unsigned long) vmalloc(size); in vdma_mem_alloc() 150 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument 154 #define fd_dma_mem_free(addr,size) _fd_dma_mem_free(addr, size) 159 static int vdma_dma_setup(char *addr, unsigned long size, in argument [all...] |
/kernel/linux/linux-5.10/arch/mips/pci/ |
H A D | ops-bonito64.c | 90 int where, int size, u32 * val) in bonito64_pcibios_read() 94 if ((size == 2) && (where & 1)) in bonito64_pcibios_read() 96 else if ((size == 4) && (where & 3)) in bonito64_pcibios_read() 103 if (size == 1) in bonito64_pcibios_read() 105 else if (size == 2) in bonito64_pcibios_read() 114 int where, int size, u32 val) in bonito64_pcibios_write() 118 if ((size == 2) && (where & 1)) in bonito64_pcibios_write() 120 else if ((size == 4) && (where & 3)) in bonito64_pcibios_write() 123 if (size == 4) in bonito64_pcibios_write() 130 if (size in bonito64_pcibios_write() 89 bonito64_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) bonito64_pcibios_read() argument 113 bonito64_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bonito64_pcibios_write() argument [all...] |
/kernel/linux/linux-6.6/arch/m68k/mm/ |
H A D | sun3kmap.c | 63 void __iomem *sun3_ioremap(unsigned long phys, unsigned long size, in sun3_ioremap() argument 70 if(!size) in sun3_ioremap() 77 size += offset; in sun3_ioremap() 78 size = PAGE_ALIGN(size); in sun3_ioremap() 79 if((area = get_vm_area(size, VM_IOREMAP)) == NULL) in sun3_ioremap() 83 pr_info("ioremap: got virt %p size %lx(%lx)\n", area->addr, size, in sun3_ioremap() 84 area->size); in sun3_ioremap() 87 pages = size / PAGE_SIZ in sun3_ioremap() 111 __ioremap(unsigned long phys, unsigned long size, int cache) __ioremap() argument [all...] |
/kernel/linux/linux-6.6/arch/m68k/include/asm/ |
H A D | floppy.h | 102 #define fd_dma_mem_alloc(size) vdma_mem_alloc(size) 103 #define fd_dma_setup(addr, size, mode, io) vdma_dma_setup(addr, size, mode, io) 144 static unsigned long vdma_mem_alloc(unsigned long size) in vdma_mem_alloc() argument 146 return (unsigned long) vmalloc(size); in vdma_mem_alloc() 150 static void _fd_dma_mem_free(unsigned long addr, unsigned long size) in _fd_dma_mem_free() argument 154 #define fd_dma_mem_free(addr,size) _fd_dma_mem_free(addr, size) 159 static int vdma_dma_setup(char *addr, unsigned long size, in argument [all...] |
/kernel/linux/linux-5.10/tools/virtio/ringtest/ |
H A D | ptr_ring.c | 27 static void *kmalloc(unsigned size, gfp_t gfp) in kmalloc() argument 29 void *p = memalign(64, size); in kmalloc() 34 memset(p, 0, size); in kmalloc() 38 static inline void *kzalloc(unsigned size, gfp_t flags) in kzalloc() argument 40 return kmalloc(size, flags | __GFP_ZERO); in kzalloc() 43 static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) in kmalloc_array() argument 45 if (size != 0 && n > SIZE_MAX / size) in kmalloc_array() 47 return kmalloc(n * size, flags); in kmalloc_array() 50 static inline void *kcalloc(size_t n, size_t size, gfp_ argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/powerpc/signal/ |
H A D | sigreturn_vdso.c | 74 unsigned long low, high, size; in test_sigreturn_vdso() local 86 size = high - low + 1; in test_sigreturn_vdso() 87 printf("VDSO is at 0x%lx-0x%lx (%lu bytes)\n", low, high, size); in test_sigreturn_vdso() 94 p = mmap(NULL, size, PROT_READ|PROT_WRITE, MAP_ANONYMOUS|MAP_PRIVATE, -1, 0); in test_sigreturn_vdso() 96 assert(mremap((void *)low, size, size, MREMAP_MAYMOVE|MREMAP_FIXED, p) != MAP_FAILED); in test_sigreturn_vdso() 98 size = high - low + 1; in test_sigreturn_vdso() 99 printf("VDSO moved to 0x%lx-0x%lx (%lu bytes)\n", low, high, size); in test_sigreturn_vdso() 105 assert(munmap((void *)low, size) == 0); in test_sigreturn_vdso() 113 size in test_sigreturn_vdso() [all...] |
/kernel/linux/linux-6.6/arch/arm/include/asm/ |
H A D | cmpxchg.h | 29 __arch_xchg(unsigned long x, volatile void *ptr, int size) in __arch_xchg() argument 42 switch (size) { in __arch_xchg() 110 /* Cause a link-time error, the xchg() size is not supported */ in __arch_xchg() 111 __bad_xchg(ptr, size), ret = 0; in __arch_xchg() 151 extern void __bad_cmpxchg(volatile void *ptr, int size); 158 unsigned long new, int size) in __cmpxchg() 164 switch (size) { in __cmpxchg() 204 __bad_cmpxchg(ptr, size); in __cmpxchg() 220 unsigned long new, int size) in __cmpxchg_local() 224 switch (size) { in __cmpxchg_local() 157 __cmpxchg(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg() argument 218 __cmpxchg_local(volatile void *ptr, unsigned long old, unsigned long new, int size) __cmpxchg_local() argument [all...] |
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/spectrum/ |
H A D | devlink_lib_spectrum.sh | 19 local size 23 size=$(devlink_resource_get kvd "$i" | jq '.["size_min"]') 24 devlink_resource_size_set "$size" kvd "$i" 28 size=$(devlink_resource_get kvd linear "$i" | \ 30 devlink_resource_size_set "$size" kvd linear "$i" 40 local size=$(echo "${KVD_DEFAULTS[kvd_$i]}" | jq '.["size"]') 43 if [ "$size" -ne "$current_size" ]; then 44 devlink_resource_size_set "$size" kvd "$i" 50 local size [all...] |
/kernel/linux/linux-6.6/arch/mips/pci/ |
H A D | ops-bonito64.c | 90 int where, int size, u32 * val) in bonito64_pcibios_read() 94 if ((size == 2) && (where & 1)) in bonito64_pcibios_read() 96 else if ((size == 4) && (where & 3)) in bonito64_pcibios_read() 103 if (size == 1) in bonito64_pcibios_read() 105 else if (size == 2) in bonito64_pcibios_read() 114 int where, int size, u32 val) in bonito64_pcibios_write() 118 if ((size == 2) && (where & 1)) in bonito64_pcibios_write() 120 else if ((size == 4) && (where & 3)) in bonito64_pcibios_write() 123 if (size == 4) in bonito64_pcibios_write() 130 if (size in bonito64_pcibios_write() 89 bonito64_pcibios_read(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 * val) bonito64_pcibios_read() argument 113 bonito64_pcibios_write(struct pci_bus *bus, unsigned int devfn, int where, int size, u32 val) bonito64_pcibios_write() argument [all...] |
/kernel/linux/linux-6.6/arch/sh/include/asm/ |
H A D | uaccess.h | 10 * They automatically use the right size if we just have the right 34 #define __get_user_nocheck(x,ptr,size) \ 40 __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ 45 #define __get_user_check(x,ptr,size) \ 50 if (likely(access_ok(__gu_addr, (size)))) \ 51 __get_user_size(__gu_val, __gu_addr, (size), __gu_err); \ 56 #define __put_user_nocheck(x,ptr,size) \ 62 __put_user_size(__pu_val, __pu_addr, (size), __pu_err); \ 66 #define __put_user_check(x,ptr,size) \ 71 if (likely(access_ok(__pu_addr, size))) \ [all...] |
/kernel/linux/linux-6.6/arch/s390/hypfs/ |
H A D | hypfs_vm.c | 27 static int diag2fc(int size, char* query, void *addr) in diag2fc() argument 38 parm_list.size = size; in diag2fc() 61 int size; in diag2fc_store() local 64 size = diag2fc(0, query, NULL); in diag2fc_store() 65 if (size < 0) in diag2fc_store() 67 data = vmalloc(size + offset); in diag2fc_store() 70 if (diag2fc(size, query, data + offset) == 0) in diag2fc_store() 74 *count = (size / sizeof(struct diag2fc_data)); in diag2fc_store() 97 static int dbfs_diag2fc_create(void **data, void **data_free_ptr, size_t *size) in dbfs_diag2fc_create() argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
H A D | drm_memory.c | 60 static void *agp_remap(unsigned long offset, unsigned long size, in agp_remap() argument 64 PAGE_ALIGN(size) / PAGE_SIZE; in agp_remap() 70 size = PAGE_ALIGN(size); in agp_remap() 79 (offset + size)) in agp_remap() 122 static inline void *agp_remap(unsigned long offset, unsigned long size, in agp_remap() argument 133 map->handle = agp_remap(map->offset, map->size, dev); in drm_legacy_ioremap() 135 map->handle = ioremap(map->offset, map->size); in drm_legacy_ioremap() 142 map->handle = agp_remap(map->offset, map->size, dev); in drm_legacy_ioremap_wc() 144 map->handle = ioremap_wc(map->offset, map->size); in drm_legacy_ioremap_wc() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/mtk-vcodec/ |
H A D | mtk_vcodec_util.c | 39 unsigned long size = mem->size; in mtk_vcodec_mem_alloc() local 43 mem->va = dma_alloc_coherent(dev, size, &mem->dma_addr, GFP_KERNEL); in mtk_vcodec_mem_alloc() 45 mtk_v4l2_err("%s dma_alloc size=%ld failed!", dev_name(dev), in mtk_vcodec_mem_alloc() 46 size); in mtk_vcodec_mem_alloc() 53 mtk_v4l2_debug(3, "[%d] size = 0x%lx", ctx->id, size); in mtk_vcodec_mem_alloc() 62 unsigned long size = mem->size; in mtk_vcodec_mem_free() local 67 mtk_v4l2_err("%s dma_free size in mtk_vcodec_mem_free() [all...] |
/kernel/linux/linux-5.10/tools/perf/pmu-events/ |
H A D | json.c | 44 static char *mapfile(const char *fn, size_t *size) in mapfile() argument 62 *size = st.st_size; in mapfile() 73 static void unmapfile(char *map, size_t size) in unmapfile() argument 76 munmap(map, roundup(size, ps)); in unmapfile() 83 jsmntok_t *parse_json(const char *fn, char **map, size_t *size, int *len) in parse_json() argument 90 *map = mapfile(fn, size); in parse_json() 94 sz = *size * 16; in parse_json() 99 res = jsmn_parse(&parser, *map, *size, tokens, in parse_json() 111 unmapfile(*map, *size); in parse_json() 115 void free_json(char *map, size_t size, jsmntok_ argument [all...] |
/kernel/linux/linux-5.10/tools/perf/util/ |
H A D | branch.c | 5 static bool cross_area(u64 addr1, u64 addr2, int size) in cross_area() argument 9 align1 = addr1 & ~(size - 1); in cross_area() 10 align2 = addr2 & ~(size - 1); in cross_area() 109 static int count_str_scnprintf(int idx, const char *str, char *bf, int size) in count_str_scnprintf() argument 111 return scnprintf(bf, size, "%s%s", (idx) ? " " : " (", str); in count_str_scnprintf() 114 int branch_type_str(struct branch_type_stat *st, char *bf, int size) in branch_type_str() argument 126 printed += count_str_scnprintf(j++, "COND_FWD", bf + printed, size - printed); in branch_type_str() 129 printed += count_str_scnprintf(j++, "COND_BWD", bf + printed, size - printed); in branch_type_str() 136 printed += count_str_scnprintf(j++, branch_type_name(i), bf + printed, size - printed); in branch_type_str() 140 printed += count_str_scnprintf(j++, "CROSS_4K", bf + printed, size in branch_type_str() [all...] |
/kernel/linux/linux-5.10/tools/testing/radix-tree/ |
H A D | linux.c | 22 unsigned int size; member 47 posix_memalign(&p, cachep->align, cachep->size); in kmem_cache_alloc() 49 p = malloc(cachep->size); in kmem_cache_alloc() 53 memset(p, 0, cachep->size); in kmem_cache_alloc() 70 memset(objp, POISON_FREE, cachep->size); in kmem_cache_free() 81 void *kmalloc(size_t size, gfp_t gfp) in kmalloc() argument 88 ret = malloc(size); in kmalloc() 93 memset(ret, 0, size); in kmalloc() 108 kmem_cache_create(const char *name, unsigned int size, unsigned int align, in kmem_cache_create() argument 114 ret->size in kmem_cache_create() [all...] |