Home
last modified time | relevance | path

Searched refs:aligned_size (Results 1 – 20 of 20) sorted by relevance

/linux-6.15/drivers/staging/media/atomisp/pci/runtime/isys/src/
H A Dibuf_ctrl_rmgr.c43 u32 aligned_size; in ia_css_isys_ibuf_rmgr_acquire() local
50 aligned_size = (size + (IBUF_ALIGN - 1)) & ~(IBUF_ALIGN - 1); in ia_css_isys_ibuf_rmgr_acquire()
59 if (handle->size >= aligned_size) { in ia_css_isys_ibuf_rmgr_acquire()
74 (ibuf_rsrc.free_size >= aligned_size)) { in ia_css_isys_ibuf_rmgr_acquire()
77 handle->size = aligned_size; in ia_css_isys_ibuf_rmgr_acquire()
80 ibuf_rsrc.free_start_addr += aligned_size; in ia_css_isys_ibuf_rmgr_acquire()
81 ibuf_rsrc.free_size -= aligned_size; in ia_css_isys_ibuf_rmgr_acquire()
/linux-6.15/drivers/gpu/drm/i915/selftests/
H A Di915_gem_gtt.c263 u64 hole_size, aligned_size; in lowlevel_hole() local
470 offset -= aligned_size; in fill_hole()
492 if (offset + aligned_size > hole_end) in fill_hole()
494 offset += aligned_size; in fill_hole()
510 offset -= aligned_size; in fill_hole()
533 offset += aligned_size; in fill_hole()
549 offset -= aligned_size; in fill_hole()
573 offset += aligned_size; in fill_hole()
589 offset -= aligned_size; in fill_hole()
612 offset += aligned_size; in fill_hole()
[all …]
/linux-6.15/drivers/gpu/drm/radeon/
H A Dradeon_fbdev.c66 int aligned_size, size; in radeon_fbdev_create_pinned_object() local
80 aligned_size = ALIGN(size, PAGE_SIZE); in radeon_fbdev_create_pinned_object()
81 ret = radeon_gem_object_create(rdev, aligned_size, 0, in radeon_fbdev_create_pinned_object()
85 pr_err("failed to allocate framebuffer (%d)\n", aligned_size); in radeon_fbdev_create_pinned_object()
/linux-6.15/arch/x86/kernel/
H A Dshstk.c508 unsigned long aligned_size; in SYSCALL_DEFINE3() local
528 aligned_size = PAGE_ALIGN(size); in SYSCALL_DEFINE3()
529 if (aligned_size < size) in SYSCALL_DEFINE3()
532 return alloc_shstk(addr, aligned_size, size, set_tok); in SYSCALL_DEFINE3()
/linux-6.15/rust/kernel/alloc/
H A Dallocator.rs47 fn aligned_size(new_layout: Layout) -> usize { in aligned_size() function
91 let size = aligned_size(layout); in call()
/linux-6.15/drivers/net/wwan/iosm/
H A Diosm_ipc_mux_codec.c1067 int aligned_size = 0; in ipc_mux_ul_adgh_encode() local
1108 aligned_size = ALIGN((pad_len + src_skb->len), 4); in ipc_mux_ul_adgh_encode()
1110 ipc_mux->size_needed = sizeof(struct mux_adgh) + aligned_size; in ipc_mux_ul_adgh_encode()
1203 int aligned_size, in mux_ul_dg_update_tbl_index() argument
1219 ipc_mux->size_needed += sizeof(*dg) + aligned_size; in mux_ul_dg_update_tbl_index()
1231 int aligned_size; in mux_ul_dg_encode() local
1245 aligned_size = ALIGN((head_pad_len + src_skb->len), 4); in mux_ul_dg_encode()
1246 ipc_mux->size_needed += sizeof(*dg) + aligned_size; in mux_ul_dg_encode()
1254 aligned_size, in mux_ul_dg_encode()
1275 offset += aligned_size; in mux_ul_dg_encode()
/linux-6.15/mm/kasan/
H A Dgeneric.c217 size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE); in register_global() local
221 kasan_poison(global->beg + aligned_size, in register_global()
222 global->size_with_redzone - aligned_size, in register_global()
/linux-6.15/sound/core/seq/
H A Dseq_clientmgr.c436 size_t aligned_size; in snd_seq_read() local
471 aligned_size = sizeof(struct snd_seq_event); in snd_seq_read()
474 while (count >= aligned_size) { in snd_seq_read()
489 memcpy(&tmpev, &cell->event, aligned_size); in snd_seq_read()
491 if (copy_to_user(buf, &tmpev, aligned_size)) { in snd_seq_read()
495 count -= aligned_size; in snd_seq_read()
496 buf += aligned_size; in snd_seq_read()
499 aligned_size); in snd_seq_read()
510 count -= aligned_size; in snd_seq_read()
511 buf += aligned_size; in snd_seq_read()
[all …]
/linux-6.15/drivers/crypto/caam/
H A Dcaampkc.c993 unsigned aligned_size; in caam_rsa_set_priv_key_form() local
1005 aligned_size = ALIGN(raw_key->p_sz, dma_get_cache_alignment()); in caam_rsa_set_priv_key_form()
1006 rsa_key->tmp1 = kzalloc(aligned_size, GFP_KERNEL); in caam_rsa_set_priv_key_form()
1010 aligned_size = ALIGN(raw_key->q_sz, dma_get_cache_alignment()); in caam_rsa_set_priv_key_form()
1011 rsa_key->tmp2 = kzalloc(aligned_size, GFP_KERNEL); in caam_rsa_set_priv_key_form()
H A Dcaamalg.c1627 unsigned int aligned_size; in skcipher_edesc_alloc() local
1701 aligned_size = sizeof(*edesc) + desc_bytes + sec4_sg_bytes; in skcipher_edesc_alloc()
1702 aligned_size = ALIGN(aligned_size, dma_get_cache_alignment()); in skcipher_edesc_alloc()
1703 aligned_size += ~(ARCH_KMALLOC_MINALIGN - 1) & in skcipher_edesc_alloc()
1705 aligned_size += ALIGN(ivsize, dma_get_cache_alignment()); in skcipher_edesc_alloc()
1706 edesc = kzalloc(aligned_size, flags); in skcipher_edesc_alloc()
/linux-6.15/tools/perf/util/
H A Dsynthetic-events.c459 size_t size, aligned_size; in perf_event__synthesize_mmap_events() local
519 aligned_size = PERF_ALIGN(size, sizeof(u64)); in perf_event__synthesize_mmap_events()
522 (sizeof(event->mmap2.filename) - aligned_size)); in perf_event__synthesize_mmap_events()
524 (aligned_size - size)); in perf_event__synthesize_mmap_events()
2191 ssize_t size = 0, aligned_size = 0, padding; in perf_event__synthesize_tracing_data() local
2213 aligned_size = PERF_ALIGN(size, sizeof(u64)); in perf_event__synthesize_tracing_data()
2214 padding = aligned_size - size; in perf_event__synthesize_tracing_data()
2216 ev.tracing_data.size = aligned_size; in perf_event__synthesize_tracing_data()
2230 return aligned_size; in perf_event__synthesize_tracing_data()
/linux-6.15/mm/
H A Dslab_common.c903 unsigned int aligned_size = kmalloc_info[idx].size; in new_kmalloc_cache() local
931 aligned_size = ALIGN(aligned_size, minalign); in new_kmalloc_cache()
932 aligned_idx = __kmalloc_index(aligned_size, false); in new_kmalloc_cache()
938 aligned_size, flags); in new_kmalloc_cache()
/linux-6.15/net/netfilter/
H A Dnft_compat.c320 unsigned int info_size, aligned_size = XT_ALIGN(size); in nft_extension_dump_info() local
323 nla = nla_reserve(skb, attr, aligned_size); in nft_extension_dump_info()
329 memset(nla_data(nla) + info_size, 0, aligned_size - info_size); in nft_extension_dump_info()
H A Dx_tables.c313 int usersize, int size, int aligned_size) in xt_data_to_user() argument
318 if (usersize != aligned_size && in xt_data_to_user()
319 clear_user(dst + usersize, aligned_size - usersize)) in xt_data_to_user()
/linux-6.15/drivers/net/phy/
H A Dmdio_bus.c150 size_t aligned_size = ALIGN(sizeof(*bus), NETDEV_ALIGN); in mdiobus_alloc_size() local
156 alloc_size = aligned_size + size; in mdiobus_alloc_size()
166 bus->priv = (void *)bus + aligned_size; in mdiobus_alloc_size()
/linux-6.15/include/linux/netfilter/
H A Dx_tables.h302 int usersize, int size, int aligned_size);
/linux-6.15/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_amdkfd_gpuvm.c1672 uint64_t aligned_size; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local
1745 aligned_size = PAGE_ALIGN(size); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1751 ret = amdgpu_amdkfd_reserve_mem_limit(adev, aligned_size, flags, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1762 ret = amdgpu_gem_object_create(adev, aligned_size, 1, alloc_domain, alloc_flags, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
1835 amdgpu_amdkfd_unreserve_mem_limit(adev, aligned_size, flags, xcp_id); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
/linux-6.15/drivers/gpu/drm/xe/
H A Dxe_lrc.c1246 size_t aligned_size; in xe_lrc_write_ring() local
1249 aligned_size = ALIGN(size, 8); in xe_lrc_write_ring()
1262 if (aligned_size > size) { in xe_lrc_write_ring()
H A Dxe_bo.c1640 size_t aligned_size; in ___xe_bo_create_locked() local
1661 aligned_size = ALIGN(size, align); in ___xe_bo_create_locked()
1667 aligned_size = ALIGN(size, SZ_4K); in ___xe_bo_create_locked()
1672 if (type == ttm_bo_type_device && aligned_size != size) in ___xe_bo_create_locked()
/linux-6.15/drivers/infiniband/hw/qedr/
H A Dverbs.c734 u64 size, aligned_size; in qedr_align_cq_entries() local
738 aligned_size = ALIGN(size, PAGE_SIZE); in qedr_align_cq_entries()
740 return aligned_size / QEDR_CQE_SIZE; in qedr_align_cq_entries()