Home
last modified time | relevance | path

Searched refs:alignment (Results 1 – 25 of 406) sorted by relevance

12345678910>>...17

/linux-6.6.21/fs/btrfs/tests/
Dfree-space-tree-tests.c154 u32 alignment) in test_empty_block_group() argument
168 u32 alignment) in test_remove_all() argument
189 u32 alignment) in test_remove_beginning() argument
192 {cache->start + alignment, cache->length - alignment}, in test_remove_beginning()
197 cache->start, alignment); in test_remove_beginning()
212 u32 alignment) in test_remove_end() argument
215 {cache->start, cache->length - alignment}, in test_remove_end()
220 cache->start + cache->length - alignment, in test_remove_end()
221 alignment); in test_remove_end()
235 u32 alignment) in test_remove_middle() argument
[all …]
/linux-6.6.21/tools/testing/selftests/exec/
Dload_address.c11 unsigned long long alignment; member
25 stats->alignment = 0; in ExtractStatistics()
31 if (info->dlpi_phdr[i].p_align > stats->alignment) in ExtractStatistics()
32 stats->alignment = info->dlpi_phdr[i].p_align; in ExtractStatistics()
50 if (extracted.alignment == 0) { in main()
53 } else if (extracted.alignment & (extracted.alignment - 1)) { in main()
58 misalign = extracted.load_address & (extracted.alignment - 1); in main()
61 extracted.alignment, extracted.load_address); in main()
/linux-6.6.21/drivers/misc/
Dpci_endpoint_test.c121 size_t alignment; member
127 size_t alignment; member
332 struct pci_endpoint_test_xfer_param *param, size_t alignment) in pci_endpoint_test_validate_xfer_params() argument
339 if (param->size > SIZE_MAX - alignment) { in pci_endpoint_test_validate_xfer_params()
366 size_t alignment = test->alignment; in pci_endpoint_test_copy() local
378 err = pci_endpoint_test_validate_xfer_params(dev, &param, alignment); in pci_endpoint_test_copy()
393 orig_src_addr = kzalloc(size + alignment, GFP_KERNEL); in pci_endpoint_test_copy()
400 get_random_bytes(orig_src_addr, size + alignment); in pci_endpoint_test_copy()
402 size + alignment, DMA_TO_DEVICE); in pci_endpoint_test_copy()
409 if (alignment && !IS_ALIGNED(orig_src_phys_addr, alignment)) { in pci_endpoint_test_copy()
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/
Di915_gem_gtt.c193 u64 size, u64 alignment, unsigned long color, in i915_gem_gtt_insert() argument
204 GEM_BUG_ON(alignment && !is_power_of_2(alignment)); in i915_gem_gtt_insert()
205 GEM_BUG_ON(alignment && !IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT)); in i915_gem_gtt_insert()
215 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
231 if (alignment <= I915_GTT_MIN_ALIGNMENT) in i915_gem_gtt_insert()
232 alignment = 0; in i915_gem_gtt_insert()
235 size, alignment, color, in i915_gem_gtt_insert()
242 size, alignment, color, in i915_gem_gtt_insert()
276 size, alignment ?: I915_GTT_MIN_ALIGNMENT); in i915_gem_gtt_insert()
285 err = i915_gem_evict_something(vm, ww, size, alignment, color, in i915_gem_gtt_insert()
[all …]
/linux-6.6.21/scripts/
Drecordmcount.pl174 my $alignment; # The .align value to use for $mcount_section
201 $alignment = 8;
211 $alignment = 4;
225 $alignment = 8;
231 $alignment = 2;
268 $alignment = 2;
274 $alignment = 3;
300 $alignment = 8;
364 $alignment = 2;
367 $alignment = 2;
[all …]
/linux-6.6.21/drivers/gpu/drm/i915/display/
Dintel_fb_pin.c31 u32 alignment; in intel_pin_fb_obj_dpt() local
43 alignment = 4096 * 512; in intel_pin_fb_obj_dpt()
79 if (i915_vma_misplaced(vma, 0, alignment, 0)) { in intel_pin_fb_obj_dpt()
85 ret = i915_vma_pin_ww(vma, &ww, 0, alignment, PIN_GLOBAL); in intel_pin_fb_obj_dpt()
94 vma->display_alignment = max(vma->display_alignment, alignment); in intel_pin_fb_obj_dpt()
119 u32 alignment; in intel_pin_and_fence_fb_obj() local
126 alignment = intel_cursor_alignment(dev_priv); in intel_pin_and_fence_fb_obj()
128 alignment = intel_surf_alignment(fb, 0); in intel_pin_and_fence_fb_obj()
129 if (drm_WARN_ON(dev, alignment && !is_power_of_2(alignment))) in intel_pin_and_fence_fb_obj()
137 if (intel_scanout_needs_vtd_wa(dev_priv) && alignment < 256 * 1024) in intel_pin_and_fence_fb_obj()
[all …]
/linux-6.6.21/arch/mips/cavium-octeon/executive/
Dcvmx-bootmem.c131 static void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment, in cvmx_bootmem_alloc_range() argument
136 cvmx_bootmem_phy_alloc(size, min_addr, max_addr, alignment, 0); in cvmx_bootmem_alloc_range()
145 uint64_t alignment) in cvmx_bootmem_alloc_address() argument
147 return cvmx_bootmem_alloc_range(size, alignment, address, in cvmx_bootmem_alloc_address()
165 void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, char *name) in cvmx_bootmem_alloc_named() argument
167 return cvmx_bootmem_alloc_named_range(size, 0, 0, alignment, name); in cvmx_bootmem_alloc_named()
218 uint64_t address_max, uint64_t alignment, in cvmx_bootmem_phy_alloc() argument
235 (unsigned long long)alignment); in cvmx_bootmem_phy_alloc()
279 if (alignment < CVMX_BOOTMEM_ALIGNMENT_SIZE) in cvmx_bootmem_phy_alloc()
280 alignment = CVMX_BOOTMEM_ALIGNMENT_SIZE; in cvmx_bootmem_phy_alloc()
[all …]
/linux-6.6.21/drivers/gpu/drm/msm/disp/dpu1/
Dmsm_media_info.h1072 unsigned int alignment = 0, bpp = 4; in VENUS_RGB_STRIDE() local
1079 alignment = 128; in VENUS_RGB_STRIDE()
1082 alignment = 256; in VENUS_RGB_STRIDE()
1087 alignment = 256; in VENUS_RGB_STRIDE()
1093 return MSM_MEDIA_ALIGN(width * bpp, alignment); in VENUS_RGB_STRIDE()
1098 unsigned int alignment = 0; in VENUS_RGB_SCANLINES() local
1105 alignment = 32; in VENUS_RGB_SCANLINES()
1110 alignment = 16; in VENUS_RGB_SCANLINES()
1116 return MSM_MEDIA_ALIGN(height, alignment); in VENUS_RGB_SCANLINES()
/linux-6.6.21/Documentation/ABI/testing/
Dsysfs-bus-iio-dma-buffer5 DMA buffers tend to have a alignment requirement for the
6 buffers. If this alignment requirement is not met samples might
9 This property reports the alignment requirements in bytes.
13 The alignment requirements in number of sample sets will depend
15 that the alignment requirement in samples sets might change
17 the alignment requirement reported in bytes by this property
/linux-6.6.21/arch/powerpc/lib/
Drheap.c253 rh_info_t *rh_create(unsigned int alignment) in rh_create() argument
258 if ((alignment & (alignment - 1)) != 0) in rh_create()
265 info->alignment = alignment; in rh_create()
300 void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks, in rh_init() argument
307 if ((alignment & (alignment - 1)) != 0) in rh_init()
310 info->alignment = alignment; in rh_init()
338 m = info->alignment - 1; in rh_attach_region()
383 m = info->alignment - 1; in rh_detach_region()
442 unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment, const char *owner) in rh_alloc_align() argument
450 if (size <= 0 || (alignment & (alignment - 1)) != 0) in rh_alloc_align()
[all …]
/linux-6.6.21/drivers/bluetooth/
Dhci_h4.c159 u8 alignment = hu->alignment ? hu->alignment : 1; in h4_recv_buf() local
255 hu->padding = (skb->len + 1) % alignment; in h4_recv_buf()
256 hu->padding = (alignment - hu->padding) % alignment; in h4_recv_buf()
263 hu->padding = (skb->len + 1) % alignment; in h4_recv_buf()
264 hu->padding = (alignment - hu->padding) % alignment; in h4_recv_buf()
/linux-6.6.21/mm/
Dcma.c241 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous_nid() argument
257 __func__, &size, &base, &limit, &alignment); in cma_declare_contiguous_nid()
267 if (alignment && !is_power_of_2(alignment)) in cma_declare_contiguous_nid()
274 alignment = max_t(phys_addr_t, alignment, CMA_MIN_ALIGNMENT_BYTES); in cma_declare_contiguous_nid()
275 if (fixed && base & (alignment - 1)) { in cma_declare_contiguous_nid()
278 &base, &alignment); in cma_declare_contiguous_nid()
281 base = ALIGN(base, alignment); in cma_declare_contiguous_nid()
282 size = ALIGN(size, alignment); in cma_declare_contiguous_nid()
283 limit &= ~(alignment - 1); in cma_declare_contiguous_nid()
339 addr = memblock_alloc_range_nid(size, alignment, SZ_4G, in cma_declare_contiguous_nid()
[all …]
/linux-6.6.21/arch/um/drivers/
Dcow_user.c92 __u32 alignment; member
104 __u32 alignment; member
198 int sectorsize, int alignment, unsigned long long *size) in write_cow_header() argument
252 header->alignment = htobe32(alignment); in write_cow_header()
347 *align_out = be32toh(header->v3.alignment); in read_cow_header()
378 *align_out = be32toh(header->v3_b.alignment); in read_cow_header()
404 int alignment, int *bitmap_offset_out, in init_cow_file() argument
412 alignment, &size); in init_cow_file()
416 *bitmap_offset_out = ROUND_UP(sizeof(struct cow_header_v3), alignment); in init_cow_file()
417 cow_sizes(COW_VERSION, size, sectorsize, alignment, *bitmap_offset_out, in init_cow_file()
/linux-6.6.21/Documentation/arch/arm/
Dmem_alignment.rst2 Memory alignment
6 kernel code lately. Therefore the alignment fixup is now unconditionally
13 Of course this is a bad idea to rely on the alignment trap to perform
16 alignment trap can fixup misaligned access for the exception cases, but at
19 Now for user space applications, it is possible to configure the alignment
30 To change the alignment trap behavior, simply echo a number into
31 /proc/cpu/alignment. The number is made up from various bits:
56 echo 1 > /proc/cpu/alignment
/linux-6.6.21/arch/powerpc/include/asm/
Drheap.h27 unsigned int alignment; member
50 extern rh_info_t *rh_create(unsigned int alignment);
56 extern void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks,
66 extern unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment,
/linux-6.6.21/drivers/mtd/ubi/
Dvmt.c34 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL);
85 ret = sprintf(buf, "%d\n", vol->alignment); in vol_attribute_show()
201 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment; in ubi_create_volume()
220 vol->alignment = req->alignment; in ubi_create_volume()
221 vol->data_pad = ubi->leb_size % vol->alignment; in ubi_create_volume()
279 vtbl_rec.alignment = cpu_to_be32(vol->alignment); in ubi_create_volume()
633 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; in self_check_volume() local
651 if (vol->reserved_pebs < 0 || vol->alignment < 0 || vol->data_pad < 0 || in self_check_volume()
656 if (vol->alignment > ubi->leb_size || vol->alignment == 0) { in self_check_volume()
661 n = vol->alignment & (ubi->min_io_size - 1); in self_check_volume()
[all …]
Dvtbl.c160 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; in vtbl_check() local
169 alignment = be32_to_cpu(vtbl[i].alignment); in vtbl_check()
193 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 || in vtbl_check()
199 if (alignment > ubi->leb_size || alignment == 0) { in vtbl_check()
204 n = alignment & (ubi->min_io_size - 1); in vtbl_check()
205 if (alignment != 1 && n) { in vtbl_check()
210 n = ubi->leb_size % alignment; in vtbl_check()
539 vol->alignment = be32_to_cpu(vtbl[i].alignment); in init_volumes()
631 vol->alignment = UBI_LAYOUT_VOLUME_ALIGN; in init_volumes()
/linux-6.6.21/include/drm/
Ddrm_mm.h232 u64 alignment; member
410 u64 alignment,
435 u64 size, u64 alignment, in drm_mm_insert_node_generic() argument
440 size, alignment, color, in drm_mm_insert_node_generic()
510 u64 size, u64 alignment, unsigned long color,
536 u64 alignment, in drm_mm_scan_init() argument
541 size, alignment, color, in drm_mm_scan_init()
/linux-6.6.21/arch/xtensa/lib/
Dmemset.S45 movi a6, 3 # for alignment tests
57 .align 4 # 1 mod 4 alignment for LOOPNEZ
58 .byte 0 # (0 mod 4 alignment for LBEG)
106 bbci.l a5, 0, .L20 # branch if dst alignment half-aligned
126 .byte 0 # 1 mod 4 alignment for LOOPNEZ
127 # (0 mod 4 alignment for LBEG)
/linux-6.6.21/arch/mips/include/asm/octeon/
Dcvmx-bootmem.h162 uint64_t alignment);
186 extern void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment,
274 uint64_t address_max, uint64_t alignment,
301 uint64_t alignment,
/linux-6.6.21/drivers/gpu/drm/qxl/
Dqxl_gem.c46 int alignment, int initial_domain, in qxl_gem_object_create() argument
56 if (alignment < PAGE_SIZE) in qxl_gem_object_create()
57 alignment = PAGE_SIZE; in qxl_gem_object_create()
63 size, initial_domain, alignment, r); in qxl_gem_object_create()
/linux-6.6.21/drivers/gpu/drm/
Ddrm_mm.c516 u64 size, u64 alignment, in drm_mm_insert_node_in_range() argument
533 if (alignment <= 1) in drm_mm_insert_node_in_range()
534 alignment = 0; in drm_mm_insert_node_in_range()
539 remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0; in drm_mm_insert_node_in_range()
568 if (alignment) { in drm_mm_insert_node_in_range()
574 div64_u64_rem(adj_start, alignment, &rem); in drm_mm_insert_node_in_range()
578 adj_start += alignment; in drm_mm_insert_node_in_range()
739 u64 alignment, in drm_mm_scan_init_with_range() argument
751 if (alignment <= 1) in drm_mm_scan_init_with_range()
752 alignment = 0; in drm_mm_scan_init_with_range()
[all …]
/linux-6.6.21/tools/testing/selftests/kvm/
Dset_memory_region_test.c340 size_t alignment; in test_add_max_memory_regions() local
344 alignment = 0x100000; in test_add_max_memory_regions()
346 alignment = 1; in test_add_max_memory_regions()
360 mem = mmap(NULL, (size_t)max_mem_slots * MEM_REGION_SIZE + alignment, in test_add_max_memory_regions()
364 mem_aligned = (void *)(((size_t) mem + alignment - 1) & ~(alignment - 1)); in test_add_max_memory_regions()
383 munmap(mem, (size_t)max_mem_slots * MEM_REGION_SIZE + alignment); in test_add_max_memory_regions()
/linux-6.6.21/block/
Dblk-settings.c494 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) in queue_limit_alignment_offset() local
497 return (granularity + lim->alignment_offset - alignment) % granularity; in queue_limit_alignment_offset()
503 unsigned int alignment, granularity, offset; in queue_limit_discard_alignment() local
509 alignment = lim->discard_alignment >> SECTOR_SHIFT; in queue_limit_discard_alignment()
518 offset = (granularity + alignment - offset) % granularity; in queue_limit_discard_alignment()
556 unsigned int top, bottom, alignment, ret = 0; in blk_stack_limits() local
583 alignment = queue_limit_alignment_offset(b, start); in blk_stack_limits()
588 if (t->alignment_offset != alignment) { in blk_stack_limits()
592 bottom = max(b->physical_block_size, b->io_min) + alignment; in blk_stack_limits()
648 t->alignment_offset = lcm_not_zero(t->alignment_offset, alignment) in blk_stack_limits()
[all …]
/linux-6.6.21/include/linux/
Dcma.h36 phys_addr_t alignment, unsigned int order_per_bit,
41 phys_addr_t alignment, unsigned int order_per_bit, in cma_declare_contiguous() argument
44 return cma_declare_contiguous_nid(base, size, limit, alignment, in cma_declare_contiguous()

12345678910>>...17