Lines Matching defs:align

311  * @align: alignment of area (max PAGE_SIZE)
318 size_t align)
320 int bit_off = ALIGN(block->contig_hint_start, align) -
410 * @align: alignment of area (max PAGE_SIZE)
421 int align, int *bit_off, int *bits)
440 *bits = ALIGN(block->contig_hint_start, align) -
460 align);
483 #define pcpu_for_each_fit_region(chunk, alloc_bits, align, bit_off, bits) \
484 for (pcpu_next_fit_region((chunk), (alloc_bits), (align), &(bit_off), \
488 pcpu_next_fit_region((chunk), (alloc_bits), (align), &(bit_off), \
1095 * @align: alignment of area (max PAGE_SIZE bytes)
1111 size_t align, bool pop_only)
1121 if (!pcpu_check_block_hint(chunk_md, alloc_bits, align))
1126 pcpu_for_each_fit_region(chunk, alloc_bits, align, bit_off, bits) {
1201 * @align: alignment of area (max PAGE_SIZE)
1205 * allocation of @alloc_bits with alignment @align. It needs to scan
1217 size_t align, int start)
1220 size_t align_mask = (align) ? (align - 1) : 0;
1707 * @align: alignment of area (max PAGE_SIZE)
1711 * Allocate percpu area of @size bytes aligned at @align. If @gfp doesn't
1719 static void __percpu *pcpu_alloc(size_t size, size_t align, bool reserved,
1746 if (unlikely(align < PCPU_MIN_ALLOC_SIZE))
1747 align = PCPU_MIN_ALLOC_SIZE;
1751 bit_align = align >> PCPU_MIN_ALLOC_SHIFT;
1753 if (unlikely(!size || size > PCPU_MIN_UNIT_SIZE || align > PAGE_SIZE ||
1754 !is_power_of_2(align))) {
1755 WARN(do_warn, "illegal size (%zu) or align (%zu) for percpu allocation\n",
1756 size, align);
1880 trace_percpu_alloc_percpu(_RET_IP_, reserved, is_atomic, size, align,
1891 trace_percpu_alloc_percpu_fail(reserved, is_atomic, size, align);
1894 pr_warn("allocation failed, size=%zu align=%zu atomic=%d, %s\n",
1895 size, align, is_atomic, err);
1918 * @align: alignment of area (max PAGE_SIZE)
1921 * Allocate zero-filled percpu area of @size bytes aligned at @align. If
1930 void __percpu *__alloc_percpu_gfp(size_t size, size_t align, gfp_t gfp)
1932 return pcpu_alloc(size, align, false, gfp);
1939 * @align: alignment of area (max PAGE_SIZE)
1941 * Equivalent to __alloc_percpu_gfp(size, align, %GFP_KERNEL).
1943 void __percpu *__alloc_percpu(size_t size, size_t align)
1945 return pcpu_alloc(size, align, false, GFP_KERNEL);
1952 * @align: alignment of area (max PAGE_SIZE)
1954 * Allocate zero-filled percpu area of @size bytes aligned at @align
1965 void __percpu *__alloc_reserved_percpu(size_t size, size_t align)
1967 return pcpu_alloc(size, align, true, GFP_KERNEL);
2979 static void * __init pcpu_fc_alloc(unsigned int cpu, size_t size, size_t align,
2991 ptr = memblock_alloc_from(size, align, goal);
2997 ptr = memblock_alloc_try_nid(size, align, goal,
3006 return memblock_alloc_from(size, align, goal);