Home
last modified time | relevance | path

Searched refs:align (Results 1 – 12 of 12) sorted by relevance

/kernel/dma/
Dcontiguous.c259 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()
403 phys_addr_t align = PAGE_SIZE << max(MAX_ORDER - 1, pageblock_order); in rmem_cma_setup() local
404 phys_addr_t mask = align - 1; in rmem_cma_setup()
/kernel/trace/
Dtrace_export.c88 .size = sizeof(_type), .align = __alignof__(_type), \
95 .size = sizeof(_type), .align = 1, \
113 .size = sizeof(_type[_len]), .align = __alignof__(_type), \
122 .size = 0, .align = __alignof__(_type), \
Dtrace_syscalls.c208 .size = sizeof(_type), .align = __alignof__(_type), \
Dtrace_events.c2373 offset = ALIGN(offset, field->align); in event_define_fields()
/kernel/
Dkexec_file.c819 unsigned long align; in kexec_purgatory_setup_kbuf() local
830 align = sechdrs[i].sh_addralign; in kexec_purgatory_setup_kbuf()
832 if (kbuf->buf_align < align) in kexec_purgatory_setup_kbuf()
833 kbuf->buf_align = align; in kexec_purgatory_setup_kbuf()
834 kbuf->bufsz = ALIGN(kbuf->bufsz, align); in kexec_purgatory_setup_kbuf()
837 if (bss_align < align) in kexec_purgatory_setup_kbuf()
838 bss_align = align; in kexec_purgatory_setup_kbuf()
839 bss_sz = ALIGN(bss_sz, align); in kexec_purgatory_setup_kbuf()
898 unsigned long align; in kexec_purgatory_setup_sechdrs() local
904 align = sechdrs[i].sh_addralign; in kexec_purgatory_setup_sechdrs()
[all …]
Dresource.c51 resource_size_t min, max, align; member
548 resource_size_t align) in simple_align_resource() argument
596 avail.start = ALIGN(tmp.start, constraint->align); in __find_resource()
602 size, constraint->align); in __find_resource()
695 resource_size_t max, resource_size_t align, in allocate_resource() argument
710 constraint.align = align; in allocate_resource()
Dkexec_core.c1093 size_t size, align; in crash_notes_memory_init() local
1106 align = min(roundup_pow_of_two(sizeof(note_buf_t)), PAGE_SIZE); in crash_notes_memory_init()
1114 crash_notes = __alloc_percpu(size, align); in crash_notes_memory_init()
Dmodule.c597 unsigned long align = pcpusec->sh_addralign; in percpu_modalloc() local
602 if (align > PAGE_SIZE) { in percpu_modalloc()
604 mod->name, align, PAGE_SIZE); in percpu_modalloc()
605 align = PAGE_SIZE; in percpu_modalloc()
608 mod->percpu = __alloc_reserved_percpu(pcpusec->sh_size, align); in percpu_modalloc()
Dpadata.c509 ps.chunk_size = roundup(ps.chunk_size, job->align); in padata_do_multithreaded()
Dfork.c876 int align = max_t(int, L1_CACHE_BYTES, ARCH_MIN_TASKALIGN); in fork_init() local
882 arch_task_struct_size, align, in fork_init()
/kernel/bpf/
Dbtf.c3060 const char *name, int sz, int align) in btf_find_struct_field() argument
3082 if (off % align) in btf_find_struct_field()
3089 const char *name, int sz, int align) in btf_find_datasec_var() argument
3110 if (off % align) in btf_find_datasec_var()
3117 const char *name, int sz, int align) in btf_find_field() argument
3121 return btf_find_struct_field(btf, t, name, sz, align); in btf_find_field()
3123 return btf_find_datasec_var(btf, t, name, sz, align); in btf_find_field()
Dsyscall.c310 unsigned long align = 1; in __bpf_map_area_alloc() local
319 align = SHMLBA; in __bpf_map_area_alloc()
328 return __vmalloc_node_range(size, align, VMALLOC_START, VMALLOC_END, in __bpf_map_area_alloc()
451 size_t align, gfp_t flags) in bpf_map_alloc_percpu() argument
457 ptr = __alloc_percpu_gfp(size, align, flags | __GFP_ACCOUNT); in bpf_map_alloc_percpu()