Home
last modified time | relevance | path

Searched refs:align_mask (Results 1 – 25 of 93) sorted by relevance

1234

/linux-6.6.21/drivers/usb/gadget/
Du_f.h27 size_t align_mask = __alignof__(type) - 1; \
29 offset = (groupname##__next + align_mask) & \
30 ~align_mask; \
45 size_t align_mask = __alignof__(type) - 1; \
46 offset = (groupname##__next + align_mask) & \
47 ~align_mask; \
/linux-6.6.21/arch/x86/kernel/
Dsys_x86_64.c57 unsigned long align_mask = get_align_mask(); in align_vdso_addr() local
58 addr = (addr + align_mask) & ~align_mask; in align_vdso_addr()
151 info.align_mask = 0; in arch_get_unmapped_area()
154 info.align_mask = get_align_mask(); in arch_get_unmapped_area()
213 info.align_mask = 0; in arch_get_unmapped_area_topdown()
216 info.align_mask = get_align_mask(); in arch_get_unmapped_area_topdown()
Damd_gart_64.c90 unsigned long align_mask) in alloc_iommu() argument
102 size, base_index, boundary_size, align_mask); in alloc_iommu()
107 align_mask); in alloc_iommu()
198 size_t size, int dir, unsigned long align_mask) in dma_map_area() argument
207 iommu_page = alloc_iommu(dev, npages, align_mask); in dma_map_area()
/linux-6.6.21/include/trace/events/
Dmmap.h23 __field(unsigned long, align_mask)
34 __entry->align_mask = info->align_mask;
42 __entry->low_limit, __entry->high_limit, __entry->align_mask,
/linux-6.6.21/arch/ia64/kernel/
Dsys_ia64.c31 unsigned long align_mask = 0; in arch_get_unmapped_area() local
59 align_mask = PAGE_MASK & (SHMLBA - 1); in arch_get_unmapped_area()
65 info.align_mask = align_mask; in arch_get_unmapped_area()
/linux-6.6.21/arch/s390/mm/
Dmmap.c101 info.align_mask = MMAP_ALIGN_MASK << PAGE_SHIFT; in arch_get_unmapped_area()
103 info.align_mask = 0; in arch_get_unmapped_area()
142 info.align_mask = MMAP_ALIGN_MASK << PAGE_SHIFT; in arch_get_unmapped_area_topdown()
144 info.align_mask = 0; in arch_get_unmapped_area_topdown()
Dhugetlbpage.c267 info.align_mask = PAGE_MASK & ~huge_page_mask(h); in hugetlb_get_unmapped_area_bottomup()
284 info.align_mask = PAGE_MASK & ~huge_page_mask(h); in hugetlb_get_unmapped_area_topdown()
/linux-6.6.21/lib/
Diommu-helper.c12 unsigned long align_mask) in iommu_area_alloc() argument
19 index = bitmap_find_next_zero_area(map, size, start, nr, align_mask); in iommu_area_alloc()
Dgenalloc.c671 unsigned long align_mask, align_off; in gen_pool_first_fit_align() local
676 align_mask = ((alignment->align + (1UL << order) - 1) >> order) - 1; in gen_pool_first_fit_align()
680 align_mask, align_off); in gen_pool_first_fit_align()
734 unsigned long align_mask = roundup_pow_of_two(nr) - 1; in gen_pool_first_fit_order_align() local
736 return bitmap_find_next_zero_area(map, size, start, nr, align_mask); in gen_pool_first_fit_order_align()
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ring.c85 ndw = (ndw + ring->funcs->align_mask) & ~ring->funcs->align_mask; in amdgpu_ring_alloc()
127 while (ib->length_dw & ring->funcs->align_mask) in amdgpu_ring_generic_pad_ib()
145 count = ring->funcs->align_mask + 1 - in amdgpu_ring_commit()
146 (ring->wptr & ring->funcs->align_mask); in amdgpu_ring_commit()
147 count %= ring->funcs->align_mask + 1; in amdgpu_ring_commit()
316 max_ibs_dw = (max_ibs_dw + ring->funcs->align_mask) & ~ring->funcs->align_mask; in amdgpu_ring_init()
/linux-6.6.21/arch/parisc/kernel/
Dunaligned.c634 unsigned long align_mask; in check_unaligned() local
638 align_mask = 0UL; in check_unaligned()
644 align_mask = 1UL; in check_unaligned()
653 align_mask = 3UL; in check_unaligned()
660 align_mask = 1UL; in check_unaligned()
666 align_mask = 3UL; in check_unaligned()
672 return (int)(regs->ior & align_mask); in check_unaligned()
/linux-6.6.21/arch/sparc/kernel/
Diommu-common.c114 unsigned long align_mask = 0; in iommu_tbl_range_alloc() local
117 align_mask = ~0ul >> (BITS_PER_LONG - align_order); in iommu_tbl_range_alloc()
182 boundary_size, align_mask); in iommu_tbl_range_alloc()
/linux-6.6.21/arch/x86/mm/
Dhugetlbpage.c67 info.align_mask = PAGE_MASK & ~huge_page_mask(h); in hugetlb_get_unmapped_area_bottomup()
91 info.align_mask = PAGE_MASK & ~huge_page_mask(h); in hugetlb_get_unmapped_area_topdown()
/linux-6.6.21/arch/arm/mm/
Dmmap.c75 info.align_mask = do_align ? (PAGE_MASK & (SHMLBA - 1)) : 0; in arch_get_unmapped_area()
126 info.align_mask = do_align ? (PAGE_MASK & (SHMLBA - 1)) : 0; in arch_get_unmapped_area_topdown()
/linux-6.6.21/drivers/net/ethernet/mellanox/mlx5/core/lib/
Ddm.c130 u64 align_mask; in mlx5_dm_sw_icm_alloc() local
178 align_mask = BIT(log_alignment - MLX5_LOG_SW_ICM_BLOCK_SIZE(dev)) - 1; in mlx5_dm_sw_icm_alloc()
182 num_blocks, align_mask); in mlx5_dm_sw_icm_alloc()
/linux-6.6.21/arch/sh/mm/
Dmmap.c95 info.align_mask = do_colour_align ? (PAGE_MASK & shm_align_mask) : 0; in arch_get_unmapped_area()
145 info.align_mask = do_colour_align ? (PAGE_MASK & shm_align_mask) : 0; in arch_get_unmapped_area_topdown()
Dpmb.c415 phys_addr_t align_mask; in pmb_remap_caller() local
436 align_mask = ~(pmb_sizes[i].size - 1); in pmb_remap_caller()
437 offset = phys & ~align_mask; in pmb_remap_caller()
438 phys &= align_mask; in pmb_remap_caller()
/linux-6.6.21/include/linux/
Diommu-helper.h33 unsigned long align_mask);
Dbitmap.h177 unsigned long align_mask,
197 unsigned long align_mask) in bitmap_find_next_zero_area() argument
200 align_mask, 0); in bitmap_find_next_zero_area()
/linux-6.6.21/drivers/gpu/drm/radeon/
Dradeon_ring.c117 ndw = (ndw + ring->align_mask) & ~ring->align_mask; in radeon_ring_alloc()
176 while (ring->wptr & ring->align_mask) { in radeon_ring_commit()
/linux-6.6.21/arch/csky/abiv1/
Dmmap.c68 info.align_mask = do_align ? (PAGE_MASK & (SHMLBA - 1)) : 0; in arch_get_unmapped_area()
/linux-6.6.21/tools/testing/selftests/mm/
Dmremap_test.c283 long long start_ns, end_ns, align_mask, ret, offset; in remap_region() local
303 align_mask = ~(c.dest_alignment - 1); in remap_region()
307 + offset) & align_mask); in remap_region()
/linux-6.6.21/drivers/net/ethernet/chelsio/libcxgb/
Dlibcxgb_ppm.c88 unsigned int align_mask) in ppm_find_unused_entries() argument
92 i = bitmap_find_next_zero_area(bmap, max_ppods, start, nr, align_mask); in ppm_find_unused_entries()
96 align_mask); in ppm_find_unused_entries()
/linux-6.6.21/arch/arc/mm/
Dmmap.c73 info.align_mask = do_align ? (PAGE_MASK & (SHMLBA - 1)) : 0; in arch_get_unmapped_area()
/linux-6.6.21/arch/mips/mm/
Dmmap.c75 info.align_mask = do_color_align ? (PAGE_MASK & shm_align_mask) : 0; in arch_get_unmapped_area_common()

1234