Lines Matching defs:align

389  * @align: alignment of area (max PAGE_SIZE)
400 int align, int *bit_off, int *bits)
419 *bits = ALIGN(block->contig_hint_start, align) -
439 align);
462 #define pcpu_for_each_fit_region(chunk, alloc_bits, align, bit_off, bits) \
463 for (pcpu_next_fit_region((chunk), (alloc_bits), (align), &(bit_off), \
467 pcpu_next_fit_region((chunk), (alloc_bits), (align), &(bit_off), \
1043 * @align: alignment of area (max PAGE_SIZE bytes)
1059 size_t align, bool pop_only)
1070 bit_off = ALIGN(chunk_md->contig_hint_start, align) -
1077 pcpu_for_each_fit_region(chunk, alloc_bits, align, bit_off, bits) {
1152 * @align: alignment of area (max PAGE_SIZE)
1156 * allocation of @alloc_bits with alignment @align. It needs to scan
1168 size_t align, int start)
1171 size_t align_mask = (align) ? (align - 1) : 0;
1664 * @align: alignment of area (max PAGE_SIZE)
1668 * Allocate percpu area of @size bytes aligned at @align. If @gfp doesn't
1676 static void __percpu *pcpu_alloc(size_t size, size_t align, bool reserved,
1705 if (unlikely(align < PCPU_MIN_ALLOC_SIZE))
1706 align = PCPU_MIN_ALLOC_SIZE;
1710 bit_align = align >> PCPU_MIN_ALLOC_SHIFT;
1712 if (unlikely(!size || size > PCPU_MIN_UNIT_SIZE || align > PAGE_SIZE ||
1713 !is_power_of_2(align))) {
1714 WARN(do_warn, "illegal size (%zu) or align (%zu) for percpu allocation\n",
1715 size, align);
1844 trace_percpu_alloc_percpu(reserved, is_atomic, size, align,
1854 trace_percpu_alloc_percpu_fail(reserved, is_atomic, size, align);
1857 pr_warn("allocation failed, size=%zu align=%zu atomic=%d, %s\n",
1858 size, align, is_atomic, err);
1879 * @align: alignment of area (max PAGE_SIZE)
1882 * Allocate zero-filled percpu area of @size bytes aligned at @align. If
1891 void __percpu *__alloc_percpu_gfp(size_t size, size_t align, gfp_t gfp)
1893 return pcpu_alloc(size, align, false, gfp);
1900 * @align: alignment of area (max PAGE_SIZE)
1902 * Equivalent to __alloc_percpu_gfp(size, align, %GFP_KERNEL).
1904 void __percpu *__alloc_percpu(size_t size, size_t align)
1906 return pcpu_alloc(size, align, false, GFP_KERNEL);
1913 * @align: alignment of area (max PAGE_SIZE)
1915 * Allocate zero-filled percpu area of @size bytes aligned at @align
1926 void __percpu *__alloc_reserved_percpu(size_t size, size_t align)
1928 return pcpu_alloc(size, align, true, GFP_KERNEL);
3086 size_t align)
3088 return memblock_alloc_from(size, align, __pa(MAX_DMA_ADDRESS));