Home
last modified time | relevance | path

Searched refs:size (Results 476 - 500 of 41759) sorted by relevance

1...<<11121314151617181920>>...1671

/kernel/linux/linux-5.10/drivers/net/ipa/
H A Dipa_data-sc7180.c199 .size = 0x0080,
204 .size = 0x0200,
209 .size = 0,
214 .size = 0x0078,
219 .size = 0,
224 .size = 0x0078,
229 .size = 0,
234 .size = 0x0078,
239 .size = 0,
244 .size
[all...]
/kernel/linux/linux-5.10/mm/kasan/
H A Dtags.c78 bool check_memory_region(unsigned long addr, size_t size, bool write, in check_memory_region() argument
85 if (unlikely(size == 0)) in check_memory_region()
88 if (unlikely(addr + size < addr)) in check_memory_region()
89 return !kasan_report(addr, size, write, ret_ip); in check_memory_region()
116 return !kasan_report(addr, size, write, ret_ip); in check_memory_region()
119 shadow_last = kasan_mem_to_shadow(untagged_addr + size - 1); in check_memory_region()
122 return !kasan_report(addr, size, write, ret_ip); in check_memory_region()
129 #define DEFINE_HWASAN_LOAD_STORE(size) \
130 void __hwasan_load##size##_noabort(unsigned long addr) \
132 check_memory_region(addr, size, fals
147 __hwasan_loadN_noabort(unsigned long addr, unsigned long size) __hwasan_loadN_noabort() argument
153 __hwasan_storeN_noabort(unsigned long addr, unsigned long size) __hwasan_storeN_noabort() argument
159 __hwasan_tag_memory(unsigned long addr, u8 tag, unsigned long size) __hwasan_tag_memory() argument
[all...]
/kernel/linux/linux-6.6/mm/
H A Dmaccess.c11 size_t size) in copy_from_kernel_nofault_allowed()
24 long copy_from_kernel_nofault(void *dst, const void *src, size_t size) in copy_from_kernel_nofault() argument
31 if (!copy_from_kernel_nofault_allowed(src, size)) in copy_from_kernel_nofault()
36 copy_from_kernel_nofault_loop(dst, src, size, u64, Efault); in copy_from_kernel_nofault()
38 copy_from_kernel_nofault_loop(dst, src, size, u32, Efault); in copy_from_kernel_nofault()
40 copy_from_kernel_nofault_loop(dst, src, size, u16, Efault); in copy_from_kernel_nofault()
41 copy_from_kernel_nofault_loop(dst, src, size, u8, Efault); in copy_from_kernel_nofault()
58 long copy_to_kernel_nofault(void *dst, const void *src, size_t size) in copy_to_kernel_nofault() argument
67 copy_to_kernel_nofault_loop(dst, src, size, u64, Efault); in copy_to_kernel_nofault()
69 copy_to_kernel_nofault_loop(dst, src, size, u3 in copy_to_kernel_nofault()
10 copy_from_kernel_nofault_allowed(const void *unsafe_src, size_t size) copy_from_kernel_nofault_allowed() argument
114 copy_from_user_nofault(void *dst, const void __user *src, size_t size) copy_from_user_nofault() argument
143 copy_to_user_nofault(void __user *dst, const void *src, size_t size) copy_to_user_nofault() argument
226 __copy_overflow(int size, unsigned long count) __copy_overflow() argument
[all...]
/third_party/jerryscript/tests/jerry/es2015/
H A Dmap.js17 assert(m.size == 0);
20 assert(m.size == 1);
23 assert(m.size == 2);
28 assert(m.size == 3);
33 assert(m.size == 4);
38 assert(m.size == 5);
43 assert(m.size == 4);
50 assert(m.size == 3);
56 assert(m.size == 1);
59 assert(m.size
[all...]
/third_party/node/deps/v8/src/base/
H A Dvirtual-address-space.h59 Address AllocatePages(Address hint, size_t size, size_t alignment,
62 void FreePages(Address address, size_t size) override;
64 bool SetPagePermissions(Address address, size_t size,
67 bool AllocateGuardRegion(Address address, size_t size) override;
69 void FreeGuardRegion(Address address, size_t size) override;
71 Address AllocateSharedPages(Address hint, size_t size,
76 void FreeSharedPages(Address address, size_t size) override;
81 Address hint, size_t size, size_t alignment,
84 bool DiscardSystemPages(Address address, size_t size) override;
86 bool DecommitPages(Address address, size_t size) overrid
[all...]
/kernel/linux/linux-5.10/arch/mips/cavium-octeon/executive/
H A Dcvmx-bootmem.c71 * @param size Size of the structure member.
76 int size) in __cvmx_bootmem_desc_get()
79 switch (size) { in __cvmx_bootmem_desc_get()
90 * Wrapper functions are provided for reading/writing the size and
98 static void cvmx_bootmem_phy_set_size(uint64_t addr, uint64_t size) in cvmx_bootmem_phy_set_size() argument
100 cvmx_write64_uint64((addr + SIZE_OFFSET) | (1ull << 63), size); in cvmx_bootmem_phy_set_size()
125 * @size: Size in bytes of block to allocate
131 static void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment, in cvmx_bootmem_alloc_range() argument
136 cvmx_bootmem_phy_alloc(size, min_addr, max_addr, alignment, 0); in cvmx_bootmem_alloc_range()
144 void *cvmx_bootmem_alloc_address(uint64_t size, uint64_ argument
75 __cvmx_bootmem_desc_get(uint64_t base, int offset, int size) __cvmx_bootmem_desc_get() argument
151 cvmx_bootmem_alloc_named_range(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t align, char *name) cvmx_bootmem_alloc_named_range() argument
165 cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, char *name) cvmx_bootmem_alloc_named() argument
430 __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags) __cvmx_bootmem_phy_free() argument
618 cvmx_bootmem_alloc_named_range_once(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t align, char *name, void (*init) (void *)) cvmx_bootmem_alloc_named_range_once() argument
718 cvmx_bootmem_phy_named_block_alloc(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t alignment, char *name, uint32_t flags) cvmx_bootmem_phy_named_block_alloc() argument
[all...]
/kernel/linux/linux-6.6/arch/mips/cavium-octeon/executive/
H A Dcvmx-bootmem.c71 * @param size Size of the structure member.
76 int size) in __cvmx_bootmem_desc_get()
79 switch (size) { in __cvmx_bootmem_desc_get()
90 * Wrapper functions are provided for reading/writing the size and
98 static void cvmx_bootmem_phy_set_size(uint64_t addr, uint64_t size) in cvmx_bootmem_phy_set_size() argument
100 cvmx_write64_uint64((addr + SIZE_OFFSET) | (1ull << 63), size); in cvmx_bootmem_phy_set_size()
125 * @size: Size in bytes of block to allocate
131 static void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment, in cvmx_bootmem_alloc_range() argument
136 cvmx_bootmem_phy_alloc(size, min_addr, max_addr, alignment, 0); in cvmx_bootmem_alloc_range()
144 void *cvmx_bootmem_alloc_address(uint64_t size, uint64_ argument
75 __cvmx_bootmem_desc_get(uint64_t base, int offset, int size) __cvmx_bootmem_desc_get() argument
151 cvmx_bootmem_alloc_named_range(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t align, char *name) cvmx_bootmem_alloc_named_range() argument
165 cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, char *name) cvmx_bootmem_alloc_named() argument
430 __cvmx_bootmem_phy_free(uint64_t phy_addr, uint64_t size, uint32_t flags) __cvmx_bootmem_phy_free() argument
618 cvmx_bootmem_alloc_named_range_once(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t align, char *name, void (*init) (void *)) cvmx_bootmem_alloc_named_range_once() argument
718 cvmx_bootmem_phy_named_block_alloc(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t alignment, char *name, uint32_t flags) cvmx_bootmem_phy_named_block_alloc() argument
[all...]
/kernel/linux/linux-5.10/drivers/media/platform/sti/delta/
H A Ddelta-ipc.c47 void *data, u32 size) in is_valid_data()
50 ((data + size) <= (ctx->ipc_buf->vaddr + ctx->ipc_buf->size))); in is_valid_data()
60 * side and are packed (use only of 32 bits size fields in messages
136 if (!param || !param->data || !param->size) { in delta_ipc_open()
145 "%s ipc: failed to open, no size given for ipc buffer\n", in delta_ipc_open()
150 if (param->size > ipc_buf_size) { in delta_ipc_open()
154 param->size, ctx->ipc_buf->size); in delta_ipc_open()
181 msg.param_size = param->size; in delta_ipc_open()
46 is_valid_data(struct delta_ipc_ctx *ctx, void *data, u32 size) is_valid_data() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/platform/st/sti/delta/
H A Ddelta-ipc.c47 void *data, u32 size) in is_valid_data()
50 ((data + size) <= (ctx->ipc_buf->vaddr + ctx->ipc_buf->size))); in is_valid_data()
60 * side and are packed (use only of 32 bits size fields in messages
136 if (!param || !param->data || !param->size) { in delta_ipc_open()
145 "%s ipc: failed to open, no size given for ipc buffer\n", in delta_ipc_open()
150 if (param->size > ipc_buf_size) { in delta_ipc_open()
154 param->size, ctx->ipc_buf->size); in delta_ipc_open()
180 msg.param_size = param->size; in delta_ipc_open()
46 is_valid_data(struct delta_ipc_ctx *ctx, void *data, u32 size) is_valid_data() argument
[all...]
/third_party/node/lib/internal/crypto/
H A Drandom.js82 function assertSize(size, elementSize, offset, length) {
83 validateNumber(size, 'size');
84 size *= elementSize;
86 if (NumberIsNaN(size) || size > kMaxPossibleLength || size < 0) {
87 throw new ERR_OUT_OF_RANGE('size',
88 `>= 0 && <= ${kMaxPossibleLength}`, size);
91 if (size
[all...]
/kernel/linux/linux-5.10/include/linux/
H A Ddma-mapping.h104 size_t offset, size_t size, enum dma_data_direction dir,
106 void dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size,
114 size_t size, enum dma_data_direction dir, unsigned long attrs);
115 void dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size,
117 void dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size,
120 size_t size, enum dma_data_direction dir);
125 void *dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle,
127 void dma_free_attrs(struct device *dev, size_t size, void *cpu_addr,
129 void *dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle,
131 void dmam_free_coherent(struct device *dev, size_t size, voi
148 dma_map_page_attrs(struct device *dev, struct page *page, size_t offset, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_page_attrs() argument
154 dma_unmap_page_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_page_attrs() argument
168 dma_map_resource(struct device *dev, phys_addr_t phys_addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_resource() argument
174 dma_unmap_resource(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_resource() argument
178 dma_sync_single_for_cpu(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_cpu() argument
182 dma_sync_single_for_device(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir) dma_sync_single_for_device() argument
198 dma_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t flag, unsigned long attrs) dma_alloc_attrs() argument
203 dma_free_attrs(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle, unsigned long attrs) dma_free_attrs() argument
207 dmam_alloc_attrs(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp, unsigned long attrs) dmam_alloc_attrs() argument
212 dmam_free_coherent(struct device *dev, size_t size, void *vaddr, dma_addr_t dma_handle) dmam_free_coherent() argument
216 dma_get_sgtable_attrs(struct device *dev, struct sg_table *sgt, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_get_sgtable_attrs() argument
222 dma_mmap_attrs(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size, unsigned long attrs) dma_mmap_attrs() argument
271 dma_map_single_attrs(struct device *dev, void *ptr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_map_single_attrs() argument
283 dma_unmap_single_attrs(struct device *dev, dma_addr_t addr, size_t size, enum dma_data_direction dir, unsigned long attrs) dma_unmap_single_attrs() argument
289 dma_sync_single_range_for_cpu(struct device *dev, dma_addr_t addr, unsigned long offset, size_t size, enum dma_data_direction dir) dma_sync_single_range_for_cpu() argument
296 dma_sync_single_range_for_device(struct device *dev, dma_addr_t addr, unsigned long offset, size_t size, enum dma_data_direction dir) dma_sync_single_range_for_device() argument
392 dma_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) dma_alloc_coherent() argument
400 dma_free_coherent(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_handle) dma_free_coherent() argument
459 dma_set_max_seg_size(struct device *dev, unsigned int size) dma_set_max_seg_size() argument
527 dmam_alloc_coherent(struct device *dev, size_t size, dma_addr_t *dma_handle, gfp_t gfp) dmam_alloc_coherent() argument
534 dma_alloc_wc(struct device *dev, size_t size, dma_addr_t *dma_addr, gfp_t gfp) dma_alloc_wc() argument
545 dma_free_wc(struct device *dev, size_t size, void *cpu_addr, dma_addr_t dma_addr) dma_free_wc() argument
552 dma_mmap_wc(struct device *dev, struct vm_area_struct *vma, void *cpu_addr, dma_addr_t dma_addr, size_t size) dma_mmap_wc() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/subdev/mmu/
H A Duvmm.c53 u64 addr, size; in nvkm_uvmm_mthd_pfnclr() local
57 size = args->v0.size; in nvkm_uvmm_mthd_pfnclr()
61 if (nvkm_vmm_in_managed_range(vmm, addr, size) && vmm->managed.raw) in nvkm_uvmm_mthd_pfnclr()
64 if (size) { in nvkm_uvmm_mthd_pfnclr()
66 ret = nvkm_vmm_pfn_unmap(vmm, addr, size); in nvkm_uvmm_mthd_pfnclr()
81 u64 addr, size, *phys; in nvkm_uvmm_mthd_pfnmap() local
87 size = args->v0.size; in nvkm_uvmm_mthd_pfnmap()
89 if (argc != (size >> pag in nvkm_uvmm_mthd_pfnmap()
157 u64 addr, size, handle, offset; nvkm_uvmm_mthd_map() local
278 u64 size; nvkm_uvmm_mthd_get() local
330 nvkm_uvmm_page_index(struct nvkm_uvmm *uvmm, u64 size, u8 shift, u8 *refd) nvkm_uvmm_page_index() argument
543 u64 addr, size; nvkm_uvmm_new() local
[all...]
/third_party/node/deps/v8/src/heap/
H A Dmemory-allocator.cc190 return chunks_[ChunkQueueType::kRegular].size() + in NumberOfCommittedChunks()
191 chunks_[ChunkQueueType::kNonRegular].size(); in NumberOfCommittedChunks()
198 result += chunks_[i].size(); in NumberOfChunks()
210 sum += chunk->size(); in CommittedBufferedMemory()
213 sum += chunk->size(); in CommittedBufferedMemory()
220 size_t size = reservation->size(); in CommitMemory() local
221 if (!reservation->SetPermissions(base, size, PageAllocator::kReadWrite)) { in CommitMemory()
224 UpdateAllocatedSpaceLimits(base, base + size); in CommitMemory()
229 size_t size in UncommitMemory() local
237 FreeMemoryRegion(v8::PageAllocator* page_allocator, Address base, size_t size) FreeMemoryRegion() argument
427 const size_t size = UnregisterSharedBasicMemoryChunk() local
437 const size_t size = UnregisterBasicMemoryChunk() local
534 size_t size = AllocatePage() local
566 size_t size = MemoryChunkLayout::AllocatableMemoryInMemoryChunk(RO_SPACE); AllocateReadOnlyPage() local
606 const int size = MemoryChunk::kPageSize; AllocateUninitializedPageFromPool() local
614 VirtualMemory reservation(data_page_allocator(), start, size); AllocateUninitializedPageFromPool() local
626 ZapBlock(Address start, size_t size, uintptr_t zap_value) ZapBlock() argument
641 ComputeDiscardMemoryArea(Address addr, size_t size) ComputeDiscardMemoryArea() argument
[all...]
/third_party/mesa3d/src/util/
H A Dralloc.c39 /* Align the header's size so that ralloc() allocations will return with the
105 ralloc_size(const void *ctx, size_t size) in ralloc_size() argument
109 * - Allocations of a size that rounds up to a multiple of 16 bytes in ralloc_size()
111 * - Allocations of a size that rounds up to a multiple of 8 bytes and in ralloc_size()
114 void *block = malloc(align64(size + sizeof(ralloc_header), in ralloc_size()
145 rzalloc_size(const void *ctx, size_t size) in rzalloc_size() argument
147 void *ptr = ralloc_size(ctx, size); in rzalloc_size()
150 memset(ptr, 0, size); in rzalloc_size()
157 resize(void *ptr, size_t size) in resize() argument
162 info = realloc(old, align64(size in resize()
188 reralloc_size(const void *ctx, void *ptr, size_t size) reralloc_size() argument
213 ralloc_array_size(const void *ctx, size_t size, unsigned count) ralloc_array_size() argument
222 rzalloc_array_size(const void *ctx, size_t size, unsigned count) rzalloc_array_size() argument
231 reralloc_array_size(const void *ctx, void *ptr, size_t size, unsigned count) reralloc_array_size() argument
240 rerzalloc_array_size(const void *ctx, void *ptr, size_t size, unsigned old_count, unsigned new_count) rerzalloc_array_size() argument
461 size_t size = u_printf_length(fmt, args) + 1; ralloc_vasprintf() local
564 unsigned size; /* size of the buffer */ global() member
584 unsigned size; /* for realloc */ global() member
622 linear_alloc_child(void *parent, unsigned size) linear_alloc_child() argument
657 linear_alloc_parent(void *ralloc_ctx, unsigned size) linear_alloc_parent() argument
676 linear_zalloc_child(void *parent, unsigned size) linear_zalloc_child() argument
686 linear_zalloc_parent(void *parent, unsigned size) linear_zalloc_parent() argument
796 unsigned size = u_printf_length(fmt, args) + 1; linear_vasprintf() local
[all...]
/kernel/linux/linux-5.10/drivers/of/
H A Dfdt.c64 "#size-cells", NULL); in of_fdt_limit_memory()
95 static void *unflatten_dt_alloc(void **mem, unsigned long size, in unflatten_dt_alloc() argument
102 *mem += size; in unflatten_dt_alloc()
285 * Return: The size of unflattened device tree or error code
369 void *(*dt_alloc)(u64 size, u64 align), in __unflatten_device_tree()
372 int size; in __unflatten_device_tree() local
384 pr_debug("size: %08x\n", fdt_totalsize(blob)); in __unflatten_device_tree()
392 /* First pass, scan for size */ in __unflatten_device_tree()
393 size = unflatten_dt_nodes(blob, NULL, dad, NULL); in __unflatten_device_tree()
394 if (size < in __unflatten_device_tree()
366 __unflatten_device_tree(const void *blob, struct device_node *dad, struct device_node **mynodes, void *(*dt_alloc)(u64 size, u64 align), bool detached) __unflatten_device_tree() argument
426 kernel_tree_alloc(u64 size, u64 align) kernel_tree_alloc() argument
479 phys_addr_t base, size; __reserved_mem_reserve_reg() local
588 u64 base, size; early_init_fdt_scan_reserved_mem() local
705 of_get_flat_dt_prop(unsigned long node, const char *name, int *size) of_get_flat_dt_prop() argument
829 int size; of_flat_dt_match_machine() local
1015 u64 base, size; early_init_dt_scan_memory() local
1101 early_init_dt_add_memory_arch(u64 base, u64 size) early_init_dt_add_memory_arch() argument
1143 early_init_dt_mark_hotplug_memory_arch(u64 base, u64 size) early_init_dt_mark_hotplug_memory_arch() argument
1148 early_init_dt_reserve_memory_arch(phys_addr_t base, phys_addr_t size, bool nomap) early_init_dt_reserve_memory_arch() argument
1164 early_init_dt_alloc_memory_arch(u64 size, u64 align) early_init_dt_alloc_memory_arch() argument
1252 int size; unflatten_and_copy_device_tree() local
[all...]
/kernel/linux/linux-5.10/arch/powerpc/kexec/
H A Dranges.c28 * could hold, given the size allocated for it.
29 * @size: Allocation size of crash_mem structure.
33 static inline unsigned int get_max_nr_ranges(size_t size) in get_max_nr_ranges() argument
35 return ((size - sizeof(struct crash_mem)) / in get_max_nr_ranges()
40 * get_mem_rngs_size - Get the allocated size of mem_rngs based on
41 * max_nr_ranges and chunk size.
44 * Returns the maximum size of @mem_rngs.
48 size_t size; in get_mem_rngs_size() local
53 size in get_mem_rngs_size()
73 __add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size) __add_mem_range() argument
177 size_t size; realloc_mem_ranges() local
208 add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size) add_mem_range() argument
250 u32 size; add_tce_mem_ranges() local
337 u32 base, size; add_rtas_mem_range() local
362 u64 base, size; add_opal_mem_range() local
400 u64 base, size; add_reserved_mem_ranges() local
[all...]
/kernel/linux/linux-5.10/drivers/acpi/acpica/
H A Duttrack.c36 acpi_size size,
80 * PARAMETERS: size - Size of the allocation
91 void *acpi_ut_allocate_and_track(acpi_size size, in acpi_ut_allocate_and_track() argument
97 /* Check for an inadvertent size of zero bytes */ in acpi_ut_allocate_and_track()
99 if (!size) { in acpi_ut_allocate_and_track()
102 size = 1; in acpi_ut_allocate_and_track()
106 acpi_os_allocate(size + sizeof(struct acpi_debug_mem_header)); in acpi_ut_allocate_and_track()
112 "Could not allocate size %u", (u32)size)); in acpi_ut_allocate_and_track()
118 acpi_ut_track_allocation(allocation, size, ACPI_MEM_MALLO in acpi_ut_allocate_and_track()
153 acpi_ut_allocate_zeroed_and_track(acpi_size size, u32 component, const char *module, u32 line) acpi_ut_allocate_zeroed_and_track() argument
331 acpi_ut_track_allocation(struct acpi_debug_mem_block *allocation, acpi_size size, u8 alloc_type, u32 component, const char *module, u32 line) acpi_ut_track_allocation() argument
[all...]
/kernel/linux/linux-6.6/arch/powerpc/kexec/
H A Dranges.c28 * could hold, given the size allocated for it.
29 * @size: Allocation size of crash_mem structure.
33 static inline unsigned int get_max_nr_ranges(size_t size) in get_max_nr_ranges() argument
35 return ((size - sizeof(struct crash_mem)) / in get_max_nr_ranges()
40 * get_mem_rngs_size - Get the allocated size of mem_rngs based on
41 * max_nr_ranges and chunk size.
44 * Returns the maximum size of @mem_rngs.
48 size_t size; in get_mem_rngs_size() local
53 size in get_mem_rngs_size()
73 __add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size) __add_mem_range() argument
177 size_t size; realloc_mem_ranges() local
208 add_mem_range(struct crash_mem **mem_ranges, u64 base, u64 size) add_mem_range() argument
250 u32 size; add_tce_mem_ranges() local
337 u32 base, size; add_rtas_mem_range() local
362 u64 base, size; add_opal_mem_range() local
400 u64 base, size; add_reserved_mem_ranges() local
[all...]
/kernel/linux/linux-5.10/drivers/media/dvb-core/
H A Ddvb_ringbuffer.c42 rbuf->size=len; in dvb_ringbuffer_init()
76 free += rbuf->size; in dvb_ringbuffer_free()
92 avail += rbuf->size; in dvb_ringbuffer_avail()
138 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user()
154 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read_user()
164 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read()
178 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read()
187 split = (rbuf->pwrite + len > rbuf->size) in dvb_ringbuffer_write()
[all...]
/kernel/linux/linux-5.10/tools/perf/bench/
H A Dmem-functions.c38 OPT_STRING('s', "size", &size_str, "1MB",
39 "Specify the size of the memory buffers. "
112 u64 (*do_cycles)(const struct function *r, size_t size, void *src, void *dst);
113 double (*do_gettimeofday)(const struct function *r, size_t size, void *src, void *dst);
118 static void __bench_mem_function(struct bench_mem_info *info, int r_idx, size_t size, double size_total) in __bench_mem_function() argument
123 void *src = NULL, *dst = zalloc(size); in __bench_mem_function()
131 src = zalloc(size); in __bench_mem_function()
140 result_cycles = info->do_cycles(r, size, src, dst); in __bench_mem_function()
142 result_bps = info->do_gettimeofday(r, size, src, dst); in __bench_mem_function()
172 printf("# Memory allocation failed - maybe size ( in __bench_mem_function()
179 size_t size; bench_mem_common() local
226 memcpy_prefault(memcpy_t fn, size_t size, void *src, void *dst) memcpy_prefault() argument
238 do_memcpy_cycles(const struct function *r, size_t size, void *src, void *dst) do_memcpy_cycles() argument
254 do_memcpy_gettimeofday(const struct function *r, size_t size, void *src, void *dst) do_memcpy_gettimeofday() argument
304 do_memset_cycles(const struct function *r, size_t size, void *src __maybe_unused, void *dst) do_memset_cycles() argument
324 do_memset_gettimeofday(const struct function *r, size_t size, void *src __maybe_unused, void *dst) do_memset_gettimeofday() argument
[all...]
/kernel/linux/linux-5.10/kernel/dma/
H A Dcoherent.c17 int size; member
41 dma_addr_t device_addr, size_t size, in dma_init_coherent_memory()
46 int pages = size >> PAGE_SHIFT; in dma_init_coherent_memory()
50 if (!size) { in dma_init_coherent_memory()
55 mem_base = memremap(phys_addr, size, MEMREMAP_WC); in dma_init_coherent_memory()
74 dma_mem->size = pages; in dma_init_coherent_memory()
122 * size is the size of the area (must be a multiple of PAGE_SIZE).
128 dma_addr_t device_addr, size_t size) in dma_declare_coherent_memory()
133 ret = dma_init_coherent_memory(phys_addr, device_addr, size, in dma_declare_coherent_memory()
40 dma_init_coherent_memory(phys_addr_t phys_addr, dma_addr_t device_addr, size_t size, struct dma_coherent_mem **mem) dma_init_coherent_memory() argument
127 dma_declare_coherent_memory(struct device *dev, phys_addr_t phys_addr, dma_addr_t device_addr, size_t size) dma_declare_coherent_memory() argument
151 __dma_alloc_from_coherent(struct device *dev, struct dma_coherent_mem *mem, ssize_t size, dma_addr_t *dma_handle) __dma_alloc_from_coherent() argument
197 dma_alloc_from_dev_coherent(struct device *dev, ssize_t size, dma_addr_t *dma_handle, void **ret) dma_alloc_from_dev_coherent() argument
209 dma_alloc_from_global_coherent(struct device *dev, ssize_t size, dma_addr_t *dma_handle) dma_alloc_from_global_coherent() argument
263 __dma_mmap_from_coherent(struct dma_coherent_mem *mem, struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) __dma_mmap_from_coherent() argument
300 dma_mmap_from_dev_coherent(struct device *dev, struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) dma_mmap_from_dev_coherent() argument
308 dma_mmap_from_global_coherent(struct vm_area_struct *vma, void *vaddr, size_t size, int *ret) dma_mmap_from_global_coherent() argument
[all...]
/kernel/linux/linux-6.6/drivers/acpi/acpica/
H A Duttrack.c36 acpi_size size,
80 * PARAMETERS: size - Size of the allocation
91 void *acpi_ut_allocate_and_track(acpi_size size, in acpi_ut_allocate_and_track() argument
97 /* Check for an inadvertent size of zero bytes */ in acpi_ut_allocate_and_track()
99 if (!size) { in acpi_ut_allocate_and_track()
102 size = 1; in acpi_ut_allocate_and_track()
106 acpi_os_allocate(size + sizeof(struct acpi_debug_mem_header)); in acpi_ut_allocate_and_track()
112 "Could not allocate size %u", (u32)size)); in acpi_ut_allocate_and_track()
118 acpi_ut_track_allocation(allocation, size, ACPI_MEM_MALLO in acpi_ut_allocate_and_track()
153 acpi_ut_allocate_zeroed_and_track(acpi_size size, u32 component, const char *module, u32 line) acpi_ut_allocate_zeroed_and_track() argument
331 acpi_ut_track_allocation(struct acpi_debug_mem_block *allocation, acpi_size size, u8 alloc_type, u32 component, const char *module, u32 line) acpi_ut_track_allocation() argument
[all...]
/kernel/linux/linux-6.6/include/trace/events/
H A Dfsi.h13 uint32_t addr, size_t size),
14 TP_ARGS(master, link, id, addr, size),
20 __field(size_t, size)
27 __entry->size = size;
34 __entry->size
40 uint32_t addr, size_t size, const void *data),
41 TP_ARGS(master, link, id, addr, size, data),
47 __field(size_t, size)
55 __entry->size
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvif/
H A Dvmm.c36 nvif_vmm_map(struct nvif_vmm *vmm, u64 addr, u64 size, void *argv, u32 argc, in nvif_vmm_map() argument
52 args->size = size; in nvif_vmm_map()
67 if (vma->size) { in nvif_vmm_put()
72 vma->size = 0; in nvif_vmm_put()
78 u8 page, u8 align, u64 size, struct nvif_vma *vma) in nvif_vmm_get()
83 args.version = vma->size = 0; in nvif_vmm_get()
87 args.size = size; in nvif_vmm_get()
102 vma->size in nvif_vmm_get()
77 nvif_vmm_get(struct nvif_vmm *vmm, enum nvif_vmm_get type, bool sparse, u8 page, u8 align, u64 size, struct nvif_vma *vma) nvif_vmm_get() argument
108 nvif_vmm_raw_get(struct nvif_vmm *vmm, u64 addr, u64 size, u8 shift) nvif_vmm_raw_get() argument
124 nvif_vmm_raw_put(struct nvif_vmm *vmm, u64 addr, u64 size, u8 shift) nvif_vmm_raw_put() argument
139 nvif_vmm_raw_map(struct nvif_vmm *vmm, u64 addr, u64 size, u8 shift, void *argv, u32 argc, struct nvif_mem *mem, u64 offset) nvif_vmm_raw_map() argument
160 nvif_vmm_raw_unmap(struct nvif_vmm *vmm, u64 addr, u64 size, u8 shift, bool sparse) nvif_vmm_raw_unmap() argument
177 nvif_vmm_raw_sparse(struct nvif_vmm *vmm, u64 addr, u64 size, bool ref) nvif_vmm_raw_sparse() argument
199 nvif_vmm_ctor(struct nvif_mmu *mmu, const char *name, s32 oclass, enum nvif_vmm_type type, u64 addr, u64 size, void *argv, u32 argc, struct nvif_vmm *vmm) nvif_vmm_ctor() argument
[all...]
/kernel/linux/linux-6.6/drivers/media/dvb-core/
H A Ddvb_ringbuffer.c42 rbuf->size=len; in dvb_ringbuffer_init()
76 free += rbuf->size; in dvb_ringbuffer_free()
92 avail += rbuf->size; in dvb_ringbuffer_avail()
138 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read_user()
154 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read_user()
164 split = (rbuf->pread + len > rbuf->size) ? rbuf->size - rbuf->pread : 0; in dvb_ringbuffer_read()
178 smp_store_release(&rbuf->pread, (rbuf->pread + todo) % rbuf->size); in dvb_ringbuffer_read()
187 split = (rbuf->pwrite + len > rbuf->size) in dvb_ringbuffer_write()
[all...]

Completed in 14 milliseconds

1...<<11121314151617181920>>...1671