| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_gem_gtt.c | 263 u64 hole_size, aligned_size; in lowlevel_hole() local 265 aligned_size = max_t(u32, ilog2(min_alignment), size); in lowlevel_hole() 266 hole_size = (hole_end - hole_start) >> aligned_size; in lowlevel_hole() 287 GEM_BUG_ON(count * BIT_ULL(aligned_size) > vm->total); in lowlevel_hole() 288 GEM_BUG_ON(hole_start + count * BIT_ULL(aligned_size) > hole_end); in lowlevel_hole() 312 u64 addr = hole_start + order[n] * BIT_ULL(aligned_size); in lowlevel_hole() 315 GEM_BUG_ON(addr + BIT_ULL(aligned_size) > vm->total); in lowlevel_hole() 358 mock_vma_res->node_size = BIT_ULL(aligned_size); in lowlevel_hole() 371 u64 addr = hole_start + order[n] * BIT_ULL(aligned_size); in lowlevel_hole() 460 u64 aligned_size = round_up(obj->base.size, in fill_hole() local [all …]
|
| /linux/arch/riscv/kernel/ |
| H A D | usercfi.c | 251 unsigned long aligned_size = 0; in SYSCALL_DEFINE3() local 279 aligned_size = PAGE_ALIGN(size); in SYSCALL_DEFINE3() 280 if (aligned_size < size) in SYSCALL_DEFINE3() 283 return allocate_shadow_stack(addr, aligned_size, size, set_tok); in SYSCALL_DEFINE3()
|
| /linux/arch/x86/kernel/ |
| H A D | shstk.c | 545 unsigned long aligned_size; in SYSCALL_DEFINE3() local 565 aligned_size = PAGE_ALIGN(size); in SYSCALL_DEFINE3() 566 if (aligned_size < size) in SYSCALL_DEFINE3() 569 return alloc_shstk(addr, aligned_size, size, set_tok); in SYSCALL_DEFINE3()
|
| /linux/drivers/net/wwan/iosm/ |
| H A D | iosm_ipc_mux_codec.c | 1067 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/mm/kasan/ |
| H A D | generic.c | 228 size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE); in register_global() local 232 kasan_poison(global->beg + aligned_size, in register_global() 233 global->size_with_redzone - aligned_size, in register_global()
|
| /linux/sound/core/seq/ |
| H A D | seq_clientmgr.c | 389 size_t aligned_size; in snd_seq_read() local 422 aligned_size = sizeof(struct snd_seq_ump_event); in snd_seq_read() 424 aligned_size = sizeof(struct snd_seq_event); in snd_seq_read() 427 while (count >= aligned_size) { in snd_seq_read() 442 memcpy(&tmpev, &cell->event, aligned_size); in snd_seq_read() 444 if (copy_to_user(buf, &tmpev, aligned_size)) { in snd_seq_read() 448 count -= aligned_size; in snd_seq_read() 449 buf += aligned_size; in snd_seq_read() 452 aligned_size); in snd_seq_read() 459 if (copy_to_user(buf, &cell->event, aligned_size)) { in snd_seq_read() [all …]
|
| /linux/tools/perf/util/ |
| H A D | synthetic-events.c | 465 size_t size, aligned_size; in perf_event__synthesize_mmap_events() local 525 aligned_size = PERF_ALIGN(size, sizeof(u64)); in perf_event__synthesize_mmap_events() 528 (sizeof(event->mmap2.filename) - aligned_size)); in perf_event__synthesize_mmap_events() 530 (aligned_size - size)); in perf_event__synthesize_mmap_events() 2208 ssize_t size = 0, aligned_size = 0, padding; in perf_event__synthesize_tracing_data() local 2230 aligned_size = PERF_ALIGN(size, sizeof(u64)); in perf_event__synthesize_tracing_data() 2231 padding = aligned_size - size; in perf_event__synthesize_tracing_data() 2233 ev.tracing_data.size = aligned_size; in perf_event__synthesize_tracing_data() 2247 return aligned_size; in perf_event__synthesize_tracing_data()
|
| /linux/net/netfilter/ |
| H A D | nft_compat.c | 321 unsigned int info_size, aligned_size = XT_ALIGN(size); in nft_extension_dump_info() local 324 nla = nla_reserve(skb, attr, aligned_size); in nft_extension_dump_info() 330 memset(nla_data(nla) + info_size, 0, aligned_size - info_size); in nft_extension_dump_info()
|
| H A D | x_tables.c | 316 int usersize, int size, int aligned_size) in xt_data_to_user() argument 321 if (usersize != aligned_size && in xt_data_to_user() 322 clear_user(dst + usersize, aligned_size - usersize)) in xt_data_to_user()
|
| /linux/drivers/crypto/caam/ |
| H A D | caamalg.c | 1707 unsigned int aligned_size; in skcipher_edesc_alloc() local 1781 aligned_size = sizeof(*edesc) + desc_bytes + sec4_sg_bytes; in skcipher_edesc_alloc() 1782 aligned_size = ALIGN(aligned_size, dma_get_cache_alignment()); in skcipher_edesc_alloc() 1783 aligned_size += ~(ARCH_KMALLOC_MINALIGN - 1) & in skcipher_edesc_alloc() 1785 aligned_size += ALIGN(ivsize, dma_get_cache_alignment()); in skcipher_edesc_alloc() 1786 edesc = kzalloc(aligned_size, flags); in skcipher_edesc_alloc()
|
| /linux/include/linux/netfilter/ |
| H A D | x_tables.h | 300 int usersize, int size, int aligned_size);
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_amdkfd_gpuvm.c | 1722 uint64_t aligned_size; in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() local 1796 aligned_size = PAGE_ALIGN(size); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1802 ret = amdgpu_amdkfd_reserve_mem_limit(adev, aligned_size, flags, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1813 ret = amdgpu_gem_object_create(adev, aligned_size, 1, alloc_domain, alloc_flags, in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu() 1886 amdgpu_amdkfd_unreserve_mem_limit(adev, aligned_size, flags, xcp_id); in amdgpu_amdkfd_gpuvm_alloc_memory_of_gpu()
|
| /linux/drivers/gpu/drm/xe/ |
| H A D | xe_lrc.c | 1802 size_t aligned_size; in xe_lrc_write_ring() local 1805 aligned_size = ALIGN(size, 8); in xe_lrc_write_ring() 1818 if (aligned_size > size) { in xe_lrc_write_ring()
|
| H A D | xe_bo.c | 2313 size_t aligned_size; in xe_bo_init_locked() local 2336 aligned_size = ALIGN(size, align); in xe_bo_init_locked() 2342 aligned_size = ALIGN(size, SZ_4K); in xe_bo_init_locked() 2347 if (type == ttm_bo_type_device && aligned_size != size) { in xe_bo_init_locked()
|