/linux-6.6.21/drivers/usb/gadget/ |
D | u_f.h | 27 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/ |
D | sys_x86_64.c | 57 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()
|
D | amd_gart_64.c | 90 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/ |
D | mmap.h | 23 __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/ |
D | sys_ia64.c | 31 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/ |
D | mmap.c | 101 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()
|
D | hugetlbpage.c | 267 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/ |
D | iommu-helper.c | 12 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()
|
D | genalloc.c | 671 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/ |
D | amdgpu_ring.c | 85 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/ |
D | unaligned.c | 634 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/ |
D | iommu-common.c | 114 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/ |
D | hugetlbpage.c | 67 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/ |
D | mmap.c | 75 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/ |
D | dm.c | 130 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/ |
D | mmap.c | 95 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()
|
D | pmb.c | 415 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/ |
D | iommu-helper.h | 33 unsigned long align_mask);
|
D | bitmap.h | 177 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/ |
D | radeon_ring.c | 117 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/ |
D | mmap.c | 68 info.align_mask = do_align ? (PAGE_MASK & (SHMLBA - 1)) : 0; in arch_get_unmapped_area()
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | mremap_test.c | 283 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/ |
D | libcxgb_ppm.c | 88 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/ |
D | mmap.c | 73 info.align_mask = do_align ? (PAGE_MASK & (SHMLBA - 1)) : 0; in arch_get_unmapped_area()
|
/linux-6.6.21/arch/mips/mm/ |
D | mmap.c | 75 info.align_mask = do_color_align ? (PAGE_MASK & shm_align_mask) : 0; in arch_get_unmapped_area_common()
|