/kernel/dma/ |
D | contiguous.c | 259 unsigned int align, bool no_warn) in dma_alloc_from_contiguous() argument 261 if (align > CONFIG_CMA_ALIGNMENT) in dma_alloc_from_contiguous() 262 align = CONFIG_CMA_ALIGNMENT; in dma_alloc_from_contiguous() 264 return cma_alloc(dev_get_cma_area(dev), count, align, no_warn); in dma_alloc_from_contiguous() 285 unsigned int align = min(get_order(size), CONFIG_CMA_ALIGNMENT); in cma_alloc_aligned() local 287 return cma_alloc(cma, size >> PAGE_SHIFT, align, gfp & __GFP_NOWARN); in cma_alloc_aligned()
|
/kernel/trace/ |
D | trace_export.c | 88 .size = sizeof(_type), .align = __alignof__(_type), \ 95 .size = sizeof(_type), .align = 1, \ 113 .size = sizeof(_type[_len]), .align = __alignof__(_type), \ 123 .size = 0, .align = __alignof__(_type), \
|
D | trace_syscalls.c | 206 .size = sizeof(_type), .align = __alignof__(_type), \
|
D | trace_events.c | 2397 offset = ALIGN(offset, field->align); in event_define_fields()
|
/kernel/ |
D | kexec_file.c | 807 unsigned long align; in kexec_purgatory_setup_kbuf() local 818 align = sechdrs[i].sh_addralign; in kexec_purgatory_setup_kbuf() 820 if (kbuf->buf_align < align) in kexec_purgatory_setup_kbuf() 821 kbuf->buf_align = align; in kexec_purgatory_setup_kbuf() 822 kbuf->bufsz = ALIGN(kbuf->bufsz, align); in kexec_purgatory_setup_kbuf() 825 if (bss_align < align) in kexec_purgatory_setup_kbuf() 826 bss_align = align; in kexec_purgatory_setup_kbuf() 827 bss_sz = ALIGN(bss_sz, align); in kexec_purgatory_setup_kbuf() 886 unsigned long align; in kexec_purgatory_setup_sechdrs() local 892 align = sechdrs[i].sh_addralign; in kexec_purgatory_setup_sechdrs() [all …]
|
D | resource.c | 51 resource_size_t min, max, align; member 561 resource_size_t align) in simple_align_resource() argument 609 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource() 615 size, constraint->align); in __find_resource() 708 resource_size_t max, resource_size_t align, in allocate_resource() argument 723 constraint.align = align; in allocate_resource() 1776 resource_size_t align, unsigned long flags) in gfr_start() argument 1786 return ALIGN(base->start, align); in gfr_start() 1822 resource_size_t size, const unsigned long align, in get_free_mem_region() argument 1830 size = ALIGN(size, align); in get_free_mem_region() [all …]
|
D | kexec_core.c | 1099 size_t size, align; in crash_notes_memory_init() local 1112 align = min(roundup_pow_of_two(sizeof(note_buf_t)), PAGE_SIZE); in crash_notes_memory_init() 1120 crash_notes = __alloc_percpu(size, align); in crash_notes_memory_init()
|
D | padata.c | 509 ps.chunk_size = roundup(ps.chunk_size, job->align); in padata_do_multithreaded()
|
D | fork.c | 1010 int align = max_t(int, L1_CACHE_BYTES, ARCH_MIN_TASKALIGN); in fork_init() local 1016 arch_task_struct_size, align, in fork_init()
|
/kernel/module/ |
D | main.c | 377 unsigned long align = pcpusec->sh_addralign; in percpu_modalloc() local 382 if (align > PAGE_SIZE) { in percpu_modalloc() 384 mod->name, align, PAGE_SIZE); in percpu_modalloc() 385 align = PAGE_SIZE; in percpu_modalloc() 388 mod->percpu = __alloc_reserved_percpu(pcpusec->sh_size, align); in percpu_modalloc()
|
/kernel/bpf/ |
D | btf.c | 3268 const char *name, int sz, int align, in btf_find_struct_field() argument 3289 if (off % align) in btf_find_struct_field() 3320 const char *name, int sz, int align, in btf_find_datasec_var() argument 3339 if (off % align) in btf_find_datasec_var() 3374 int sz, align; in btf_find_field() local 3380 align = __alignof__(struct bpf_spin_lock); in btf_find_field() 3385 align = __alignof__(struct bpf_timer); in btf_find_field() 3390 align = 8; in btf_find_field() 3397 return btf_find_struct_field(btf, t, name, sz, align, field_type, info, info_cnt); in btf_find_field() 3399 return btf_find_datasec_var(btf, t, name, sz, align, field_type, info, info_cnt); in btf_find_field()
|
D | syscall.c | 316 unsigned long align = 1; in __bpf_map_area_alloc() local 325 align = SHMLBA; in __bpf_map_area_alloc() 334 return __vmalloc_node_range(size, align, VMALLOC_START, VMALLOC_END, in __bpf_map_area_alloc() 476 size_t align, gfp_t flags) in bpf_map_alloc_percpu() argument 483 ptr = __alloc_percpu_gfp(size, align, flags | __GFP_ACCOUNT); in bpf_map_alloc_percpu()
|