/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/queue/src/ |
H A D | queue.c | 129 cb_desc.end = (cb_desc.end + 1) % cb_desc.size; in ia_css_queue_enqueue() 188 cb_desc.start = OP_std_modadd(cb_desc.start, 1, cb_desc.size); in ia_css_queue_dequeue() 239 uint32_t *size) in ia_css_queue_get_free_space() 243 if ((!qhandle) || (!size)) in ia_css_queue_get_free_space() 251 *size = ia_css_circbuf_get_free_elems(&qhandle->desc.cb_local); in ia_css_queue_get_free_space() 264 *size = ia_css_circbuf_desc_get_free_elems(&cb_desc); in ia_css_queue_get_free_space() 273 uint32_t *size) in ia_css_queue_get_used_space() 277 if ((!qhandle) || (!size)) in ia_css_queue_get_used_space() 285 *size = ia_css_circbuf_get_num_elems(&qhandle->desc.cb_local); in ia_css_queue_get_used_space() 298 *size in ia_css_queue_get_used_space() 237 ia_css_queue_get_free_space( ia_css_queue_t *qhandle, uint32_t *size) ia_css_queue_get_free_space() argument 271 ia_css_queue_get_used_space( ia_css_queue_t *qhandle, uint32_t *size) ia_css_queue_get_used_space() argument 391 ia_css_queue_get_size( ia_css_queue_t *qhandle, uint32_t *size) ia_css_queue_get_size() argument [all...] |
/kernel/linux/linux-5.10/drivers/staging/android/ion/ |
H A D | ion_heap.c | 27 int npages = PAGE_ALIGN(buffer->size) / PAGE_SIZE; in ion_heap_map_kernel() 134 heap->free_list_size += buffer->size; in ion_heap_freelist_add() 141 size_t size; in ion_heap_freelist_size() local 144 size = heap->free_list_size; in ion_heap_freelist_size() 147 return size; in ion_heap_freelist_size() 150 static size_t _ion_heap_freelist_drain(struct ion_heap *heap, size_t size, in _ion_heap_freelist_drain() argument 160 if (size == 0) in _ion_heap_freelist_drain() 161 size = heap->free_list_size; in _ion_heap_freelist_drain() 164 if (total_drained >= size) in _ion_heap_freelist_drain() 169 heap->free_list_size -= buffer->size; in _ion_heap_freelist_drain() 182 ion_heap_freelist_drain(struct ion_heap *heap, size_t size) ion_heap_freelist_drain() argument 187 ion_heap_freelist_shrink(struct ion_heap *heap, size_t size) ion_heap_freelist_shrink() argument [all...] |
/kernel/linux/linux-6.6/fs/adfs/ |
H A D | dir_fplus.c | 21 unsigned int size = le32_to_cpu(h->bigdirsize); in adfs_fplus_validate_header() local 27 !size || size & 2047 || size > SZ_4M) in adfs_fplus_validate_header() 30 size -= sizeof(struct adfs_bigdirtail) + in adfs_fplus_validate_header() 35 if (len > size) in adfs_fplus_validate_header() 38 size -= len; in adfs_fplus_validate_header() 42 if (len > size) in adfs_fplus_validate_header() 45 size -= len; in adfs_fplus_validate_header() 53 len * sizeof(struct adfs_bigdirentry) > size) in adfs_fplus_validate_header() 103 adfs_fplus_read(struct super_block *sb, u32 indaddr, unsigned int size, struct adfs_dir *dir) adfs_fplus_read() argument [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/runtime/queue/src/ |
H A D | queue.c | 122 cb_desc.end = (cb_desc.end + 1) % cb_desc.size; in ia_css_queue_enqueue() 179 cb_desc.start = OP_std_modadd(cb_desc.start, 1, cb_desc.size); in ia_css_queue_dequeue() 226 int ia_css_queue_get_free_space(ia_css_queue_t *qhandle, uint32_t *size) in ia_css_queue_get_free_space() argument 230 if ((!qhandle) || (!size)) in ia_css_queue_get_free_space() 238 *size = ia_css_circbuf_get_free_elems(&qhandle->desc.cb_local); in ia_css_queue_get_free_space() 251 *size = ia_css_circbuf_desc_get_free_elems(&cb_desc); in ia_css_queue_get_free_space() 258 int ia_css_queue_get_used_space(ia_css_queue_t *qhandle, uint32_t *size) in ia_css_queue_get_used_space() argument 262 if ((!qhandle) || (!size)) in ia_css_queue_get_used_space() 270 *size = ia_css_circbuf_get_num_elems(&qhandle->desc.cb_local); in ia_css_queue_get_used_space() 283 *size in ia_css_queue_get_used_space() 371 ia_css_queue_get_size(ia_css_queue_t *qhandle, uint32_t *size) ia_css_queue_get_size() argument [all...] |
/kernel/linux/linux-6.6/drivers/soc/qcom/ |
H A D | rmtfs_mem.c | 30 phys_addr_t size; member 42 static DEVICE_ATTR(size, 0444, qcom_rmtfs_mem_show, NULL); 56 return sprintf(buf, "%pa\n", &rmtfs_mem->size); in qcom_rmtfs_mem_show() 87 if (*f_pos >= rmtfs_mem->size) in qcom_rmtfs_mem_read() 90 if (*f_pos + count >= rmtfs_mem->size) in qcom_rmtfs_mem_read() 91 count = rmtfs_mem->size - *f_pos; in qcom_rmtfs_mem_read() 106 if (*f_pos >= rmtfs_mem->size) in qcom_rmtfs_mem_write() 109 if (*f_pos + count >= rmtfs_mem->size) in qcom_rmtfs_mem_write() 110 count = rmtfs_mem->size - *f_pos; in qcom_rmtfs_mem_write() 136 if (vma->vm_end - vma->vm_start > rmtfs_mem->size) { in qcom_rmtfs_mem_mmap() [all...] |
/kernel/linux/linux-6.6/drivers/block/ |
H A D | z2ram.c | 89 unsigned long size = Z2RAM_CHUNKSIZE - addr; in z2_queue_rq() local 92 if (len < size) in z2_queue_rq() 93 size = len; in z2_queue_rq() 96 memcpy(buffer, (char *)addr, size); in z2_queue_rq() 98 memcpy((char *)addr, buffer, size); in z2_queue_rq() 99 start += size; in z2_queue_rq() 100 len -= size; in z2_queue_rq() 166 unsigned long size, paddr, vaddr; in z2_open() local 175 size = m68k_memory[index].size in z2_open() [all...] |
/kernel/linux/linux-6.6/include/xen/interface/io/ |
H A D | ring.h | 40 * Calculate size of a shared ring, given the total available space for the 43 * power of two (so we can mask with (size-1) to loop around). 71 * To initialize a ring in your code you need to know the location and size 148 #define XEN_FRONT_RING_INIT(r, s, size) do { \ 150 FRONT_RING_INIT(r, s, size); \ 316 * Convenience macro to calculate the size of one of the two rings 320 * Function to apply the size mask to an index, to reduce the index 321 * within the range [0-size]. 325 * specified by the "size" argument. 329 * specified by the "size" argumen [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | eprom.c | 14 * partition 1: 4K config file (sector size) 22 /* controller page size, in bytes */ 175 /* segment size - 128 KiB */ 179 u32 oprom_size; /* size of the oprom, in bytes */ 188 u32 size; /* file size, in bytes */ member 193 * buffer of size 'dir_size'. 208 * the returned size if a trailing image magic is found. 211 u32 *size) in read_partition_platform_config() 242 *size in read_partition_platform_config() 210 read_partition_platform_config(struct hfi1_devdata *dd, void **data, u32 *size) read_partition_platform_config() argument 252 read_segment_platform_config(struct hfi1_devdata *dd, void *directory, void **data, u32 *size) read_segment_platform_config() argument 421 eprom_read_platform_config(struct hfi1_devdata *dd, void **data, u32 *size) eprom_read_platform_config() argument [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/gem/ |
H A D | i915_gem_tiling.c | 46 * i915_gem_fence_size - required global GTT size for a fence 48 * @size: object size 52 * Return the required global GTT size for a fence (view of a tiled object), 56 u32 size, unsigned int tiling, unsigned int stride) in i915_gem_fence_size() 60 GEM_BUG_ON(!size); in i915_gem_fence_size() 63 return size; in i915_gem_fence_size() 70 return roundup(size, stride); in i915_gem_fence_size() 79 while (ggtt_size < size) in i915_gem_fence_size() 88 * @size 55 i915_gem_fence_size(struct drm_i915_private *i915, u32 size, unsigned int tiling, unsigned int stride) i915_gem_fence_size() argument 95 i915_gem_fence_alignment(struct drm_i915_private *i915, u32 size, unsigned int tiling, unsigned int stride) i915_gem_fence_alignment() argument 165 u32 size, alignment; i915_vma_fence_prepare() local [all...] |
/kernel/linux/linux-6.6/drivers/infiniband/sw/rdmavt/ |
H A D | srq.c | 54 srq->rq.size = srq_init_attr->attr.max_wr + 1; in rvt_create_srq() 58 if (rvt_alloc_rq(&srq->rq, srq->rq.size * sz, in rvt_create_srq() 69 u32 s = sizeof(struct rvt_rwq) + srq->rq.size * sz; in rvt_create_srq() 137 u32 sz, size, n, head, tail; in rvt_modify_srq() local 146 size = attr->max_wr + 1; in rvt_modify_srq() 147 if (rvt_alloc_rq(&tmp_rq, size * sz, dev->dparms.node, in rvt_modify_srq() 181 if (head >= srq->rq.size || tail >= srq->rq.size) { in rvt_modify_srq() 187 n += srq->rq.size - tail; in rvt_modify_srq() 190 if (size < in rvt_modify_srq() [all...] |
/third_party/ffmpeg/libavcodec/ |
H A D | dpxenc.c | 179 int size, ret, need_align, len; in encode_frame() local 184 size = avctx->height * avctx->width * 4; in encode_frame() 188 size = FFALIGN(len, 4); in encode_frame() 189 need_align = size - len; in encode_frame() 190 size *= avctx->height; in encode_frame() 194 size = FFALIGN(len, 4); in encode_frame() 195 need_align = size - len; in encode_frame() 196 size *= avctx->height; in encode_frame() 198 if ((ret = ff_get_encode_buffer(avctx, pkt, size + HEADER_SIZE, 0)) < 0) in encode_frame() 238 size in encode_frame() [all...] |
H A D | msmpeg4.c | 59 int size, v, l; in init_h263_dc_for_msmpeg4() local 61 size = 0; in init_h263_dc_for_msmpeg4() 65 size++; in init_h263_dc_for_msmpeg4() 69 l = (-level) ^ ((1 << size) - 1); in init_h263_dc_for_msmpeg4() 74 uni_code = ff_mpeg4_DCtab_lum[size][0]; in init_h263_dc_for_msmpeg4() 75 uni_len = ff_mpeg4_DCtab_lum[size][1]; in init_h263_dc_for_msmpeg4() 78 if (size > 0) { in init_h263_dc_for_msmpeg4() 79 uni_code <<= size; uni_code |= l; in init_h263_dc_for_msmpeg4() local 80 uni_len += size; in init_h263_dc_for_msmpeg4() 81 if (size > in init_h263_dc_for_msmpeg4() 95 uni_code <<= size; uni_code |= l; init_h263_dc_for_msmpeg4() local [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | cache.c | 51 int size; member 99 static int add_entry(URLContext *h, const unsigned char *buf, int size) in add_entry() argument 117 ret = write(c->fd, buf, size); in add_entry() 131 entry->logical_pos + entry->size != c->logical_pos || in add_entry() 132 entry->physical_pos + entry->size != pos in add_entry() 142 entry->size = ret; in add_entry() 151 entry->size += ret; in add_entry() 162 static int cache_read(URLContext *h, unsigned char *buf, int size) in cache_read() argument 176 if (in_block_pos < entry->size) { in cache_read() 186 r = read(c->fd, buf, FFMIN(size, entr in cache_read() 268 int size = sizeof(tmp); cache_seek() local [all...] |
/third_party/fsverity-utils/programs/ |
H A D | test_compute_digest.c | 20 size_t size; member 28 ASSERT(count <= f->size - f->offset); in read_fn() 113 }, { /* 1K block size */ 121 }, { /* 512-byte block size */ 129 }, { /* 64K block size */ 150 }, { /* default hash algorithm (SHA-256) and block size (4096) */ 192 struct mem_file f = { .data = (u8 *)"abcd", .size = 4 }; in test_invalid_params() 266 static int handle_merkle_tree_size(void *ctx, u64 size) in handle_merkle_tree_size() argument 273 /* Test that the expected Merkle tree size is reported. */ in handle_merkle_tree_size() 274 ASSERT(size in handle_merkle_tree_size() 278 handle_merkle_tree_block(void *ctx, const void *block, size_t size, u64 offset) handle_merkle_tree_block() argument 329 handle_descriptor(void *ctx, const void *descriptor, size_t size) handle_descriptor() argument [all...] |
/third_party/libdrm/intel/ |
H A D | intel_bufmgr.c | 50 unsigned long size, unsigned int alignment) in drm_intel_bo_alloc() 52 return bufmgr->bo_alloc(bufmgr, name, size, alignment); in drm_intel_bo_alloc() 57 unsigned long size, unsigned int alignment) in drm_intel_bo_alloc_for_render() 59 return bufmgr->bo_alloc_for_render(bufmgr, name, size, alignment); in drm_intel_bo_alloc_for_render() 67 unsigned long size, in drm_intel_bo_alloc_userptr() 72 stride, size, flags); in drm_intel_bo_alloc_userptr() 114 unsigned long size, const void *data) in drm_intel_bo_subdata() 116 return bo->bufmgr->bo_subdata(bo, offset, size, data); in drm_intel_bo_subdata() 121 unsigned long size, void *data) in drm_intel_bo_get_subdata() 125 return bo->bufmgr->bo_get_subdata(bo, offset, size, dat in drm_intel_bo_get_subdata() 49 drm_intel_bo_alloc(drm_intel_bufmgr *bufmgr, const char *name, unsigned long size, unsigned int alignment) drm_intel_bo_alloc() argument 56 drm_intel_bo_alloc_for_render(drm_intel_bufmgr *bufmgr, const char *name, unsigned long size, unsigned int alignment) drm_intel_bo_alloc_for_render() argument 63 drm_intel_bo_alloc_userptr(drm_intel_bufmgr *bufmgr, const char *name, void *addr, uint32_t tiling_mode, uint32_t stride, unsigned long size, unsigned long flags) drm_intel_bo_alloc_userptr() argument 113 drm_intel_bo_subdata(drm_intel_bo *bo, unsigned long offset, unsigned long size, const void *data) drm_intel_bo_subdata() argument 120 drm_intel_bo_get_subdata(drm_intel_bo *bo, unsigned long offset, unsigned long size, void *data) drm_intel_bo_get_subdata() argument 133 memcpy(data, (unsigned char *)bo->virtual + offset, size); drm_intel_bo_get_subdata() local 332 size_t size = 0; drm_intel_probe_agp_aperture_size() local [all...] |
/third_party/node/test/parallel/ |
H A D | test-blob.js | 12 assert.strictEqual(b.size, 0); 31 assert.strictEqual(b.size, 0); 41 assert.strictEqual(c.size, 0); 52 assert.strictEqual(b.size, 3); 60 assert.strictEqual(b.size, 3); 68 assert.strictEqual(b.size, 3); 76 assert.strictEqual(b.size, 3); 84 assert.strictEqual(b.size, 10); 92 assert.strictEqual(b.size, 8); 108 assert.strictEqual(b.size, 1 [all...] |
/third_party/node/deps/v8/src/zone/ |
H A D | zone-handle-set.h | 26 size_t size() const { in size() function in v8::internal::final 29 return list()->size(); in size() 63 for (size_t i = 0; i < old_list->size(); ++i) { in insert() 68 new_list->reserve(old_list->size() + 1); in insert() 70 for (; i < old_list->size(); ++i) { in insert() 75 for (; i < old_list->size(); ++i) { in insert() 78 DCHECK_EQ(old_list->size() + 1, new_list->size()); in insert() 97 for (size_t i = 0; i < other.list()->size(); ++i) { in contains() 120 for (size_t i = 0; i < size(); in remove() [all...] |
/third_party/mesa3d/src/util/ |
H A D | u_debug_memory.c | 73 size_t size; member 117 return (struct debug_memory_footer *)((char *)hdr + sizeof(struct debug_memory_header) + hdr->size); in footer_from_header() 125 size_t size) in debug_malloc() 130 hdr = os_malloc(sizeof(*hdr) + size + sizeof(*ftr)); in debug_malloc() 134 (long unsigned)size); in debug_malloc() 142 hdr->size = size; in debug_malloc() 199 memset(ptr, DEBUG_FREED_BYTE, hdr->size); in debug_free() 213 size_t count, size_t size ) in debug_calloc() 215 void *ptr = debug_malloc( file, line, function, count * size ); in debug_calloc() 124 debug_malloc(const char *file, unsigned line, const char *function, size_t size) debug_malloc() argument [all...] |
/third_party/mesa3d/src/virtio/vulkan/ |
H A D | vn_renderer.h | 152 size_t size); 160 VkDeviceSize size, 167 VkDeviceSize size, 183 VkDeviceSize size); 187 VkDeviceSize size); 282 vn_renderer_shmem_create(struct vn_renderer *renderer, size_t size) in vn_renderer_shmem_create() argument 286 renderer->shmem_ops.create(renderer, size); in vn_renderer_shmem_create() 290 assert(shmem->mmap_size >= size); in vn_renderer_shmem_create() 316 VkDeviceSize size, in vn_renderer_bo_create_from_device_memory() 324 renderer, size, mem_i in vn_renderer_bo_create_from_device_memory() 314 vn_renderer_bo_create_from_device_memory( struct vn_renderer *renderer, VkDeviceSize size, vn_object_id mem_id, VkMemoryPropertyFlags flags, VkExternalMemoryHandleTypeFlags external_handles, struct vn_renderer_bo **out_bo) vn_renderer_bo_create_from_device_memory() argument 337 vn_renderer_bo_create_from_dma_buf(struct vn_renderer *renderer, VkDeviceSize size, int fd, VkMemoryPropertyFlags flags, struct vn_renderer_bo **out_bo) vn_renderer_bo_create_from_dma_buf() argument 395 vn_renderer_bo_invalidate(struct vn_renderer *renderer, struct vn_renderer_bo *bo, VkDeviceSize offset, VkDeviceSize size) vn_renderer_bo_invalidate() argument [all...] |
/third_party/libdrm/tests/ttmtest/src/ |
H A D | ttmtest.c | 158 readBuf(void *buf, unsigned long size) in readBuf() argument 161 unsigned *end = (unsigned *)buf32 + size / sizeof(*buf32); in readBuf() 169 benchmarkBuffer(TinyDRIContext * ctx, unsigned long size, in benchmarkBuffer() argument 181 BM_CKFATAL(drmBOCreate(ctx->drmFD, size, 0, NULL, in benchmarkBuffer() 195 memset(virtual, 0xF0, buf.size); in benchmarkBuffer() 200 memset(virtual, 0x0F, buf.size); in benchmarkBuffer() 205 readBuf(virtual, buf.size); in benchmarkBuffer() 233 memset(virtual, 0xF0, buf.size); in benchmarkBuffer() 238 memset(virtual, 0x0F, buf.size); in benchmarkBuffer() 243 readBuf(virtual, buf.size); in benchmarkBuffer() 308 unsigned long size = 8 * 1024; testAGP() local [all...] |
/third_party/node/deps/v8/src/heap/cppgc/ |
H A D | page-memory.cc | 20 page_memory.writeable_region().size(), in Unprotect() 31 page_memory.overall_region().size() % allocator.CommitPageSize()); in Unprotect() 33 page_memory.overall_region().size(), in Unprotect() 46 page_memory.writeable_region().size(), in Protect() 53 page_memory.overall_region().size() % allocator.CommitPageSize()); in Protect() 55 page_memory.overall_region().size(), in Protect() 80 ASAN_UNPOISON_MEMORY_REGION(reserved_region.base(), reserved_region.size()); in FreeMemoryRegion() 81 allocator.FreePages(reserved_region.base(), reserved_region.size()); in FreeMemoryRegion() 165 auto size = set_.erase(region->reserved_region().base()); in Remove() local 166 USE(size); in Remove() 222 AllocateLargePageMemory(size_t size) AllocateLargePageMemory() argument 237 auto size = large_page_memory_regions_.erase(pmr); FreeLargePageMemory() local [all...] |
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_cache.c | 32 * Fixed size array with linear probing on collision and LRU eviction 75 uint32_t size; member 77 /** Array [size] of entries */ 94 * Create a new cache with 'size' entries. Also provide functions for 101 uint32_t size) in util_cache_create() 115 size *= CACHE_DEFAULT_ALPHA; in util_cache_create() 116 cache->size = size; in util_cache_create() 118 cache->entries = CALLOC(size, sizeof(struct util_cache_entry)); in util_cache_create() 138 uint32_t index = hash % cache->size; in util_cache_entry_get() 98 util_cache_create(uint32_t (hash)const void *key), int (*compare)(const void *key1, const void *key2), void (*destroy)(void *key, void *value), uint32_t size) util_cache_create() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/tests/VulkanUnitTests/ |
H A D | Device.cpp | 111 for(uint32_t i = 0; i < properties.size(); i++) in GetComputeQueueFamilyIndex() 148 VkDeviceMemory memory, VkDeviceSize size, in CreateStorageBuffer() 155 size, // size in CreateStorageBuffer() 191 spirv.size() * 4, // codeSize in CreateShaderModule() 210 (uint32_t)bindings.size(), // bindingCount in CreateDescriptorSetLayout() 277 VkDescriptorPoolSize size = { in CreateStorageBufferDescriptorPool() local 288 &size, // pPoolSizes in CreateStorageBufferDescriptorPool() 319 writes.reserve(bufferInfos.size()); in UpdateStorageBufferDescriptorSets() 320 for(uint32_t i = 0; i < bufferInfos.size(); in UpdateStorageBufferDescriptorSets() 147 CreateStorageBuffer( VkDeviceMemory memory, VkDeviceSize size, VkDeviceSize offset, VkBuffer *out) const CreateStorageBuffer() argument 339 AllocateMemory(size_t size, VkMemoryPropertyFlags flags, VkDeviceMemory *out) const AllocateMemory() argument 374 MapMemory(VkDeviceMemory memory, VkDeviceSize offset, VkDeviceSize size, VkMemoryMapFlags flags, void **ppData) const MapMemory() argument [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testcurl/https/ |
H A D | tls_test_common.c | 83 cbc.size = len; in test_daemon_get() 150 copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) in copyBuffer() argument 154 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer() 156 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer() 157 cbc->pos += size * nmemb; in copyBuffer() 158 return size * nmemb; in copyBuffer() 329 cbc.size = len; in test_https_transfer() 397 key->size = strlen (srv_key_pem) + 1; in setup_session() 398 key->data = malloc (key->size); in setup_session() [all...] |
/third_party/skia/third_party/externals/microhttpd/src/testzzuf/ |
H A D | test_post_form.c | 48 size_t size; member 67 copyBuffer (void *ptr, size_t size, size_t nmemb, void *ctx) in copyBuffer() argument 71 if (cbc->pos + size * nmemb > cbc->size) in copyBuffer() 73 memcpy (&cbc->buf[cbc->pos], ptr, size * nmemb); in copyBuffer() 74 cbc->pos += size * nmemb; in copyBuffer() 75 return size * nmemb; in copyBuffer() 90 const char *value, uint64_t off, size_t size) in post_iterator() 97 fprintf (stderr, "PI sees %s-%.*s\n", key, size, value); in post_iterator() 100 (size in post_iterator() 84 post_iterator(void *cls, enum MHD_ValueKind kind, const char *key, const char *filename, const char *content_type, const char *transfer_encoding, const char *value, uint64_t off, size_t size) post_iterator() argument [all...] |