Searched refs:alignment (Results 26 - 50 of 216) sorted by relevance

123456789

/linux-master/include/drm/
H A Ddrm_mm.h98 * alignment for the node is applied to the base of the node
232 u64 alignment; member in struct:drm_mm_scan
410 u64 alignment,
421 * @alignment: alignment of the allocation
435 u64 size, u64 alignment,
440 size, alignment, color,
510 u64 size, u64 alignment, unsigned long color,
519 * @alignment: alignment o
434 drm_mm_insert_node_generic(struct drm_mm *mm, struct drm_mm_node *node, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode) argument
533 drm_mm_scan_init(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, enum drm_mm_insert_mode mode) argument
[all...]
/linux-master/arch/xtensa/lib/
H A Dmemset.S30 * the alignment labels).
45 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)
H A Dstrncpy_user.S100 .align 4 # 1 mod 4 alignment for LOOPNEZ
101 .byte 0 # (0 mod 4 alignment for LBEG)
177 .align 4 # 1 mod 4 alignment for LOOPNEZ
178 .byte 0 # (0 mod 4 alignment for LBEG)
/linux-master/drivers/firmware/efi/libstub/
H A Drelocate.c11 * @align: minimum alignment of the allocated memory area. It should
36 * Enforce minimum alignment that EFI or Linux requires when
39 * alignment constraints.
96 * @alignment: minimum alignment of the allocated memory area. It
101 * to @alignment but at least EFI_ALLOC_ALIGN. If the preferred address
114 unsigned long alignment,
136 * as possible while respecting the required alignment.
147 status = efi_low_alloc_above(alloc_size, alignment, &new_addr,
110 efi_relocate_kernel(unsigned long *image_addr, unsigned long image_size, unsigned long alloc_size, unsigned long preferred_addr, unsigned long alignment, unsigned long min_addr) argument
/linux-master/lib/
H A Dubsan.h68 unsigned long alignment; member in struct:type_mismatch_data
82 unsigned long alignment; member in struct:type_mismatch_data_common
H A Dubsan.c78 return "UBSAN: alignment assumption";
354 pr_err("which requires %ld byte alignment\n", data->alignment);
380 else if (data->alignment && !IS_ALIGNED(ptr, data->alignment))
394 .alignment = data->alignment,
408 .alignment = 1UL << data->log_alignment,
517 ubsan_prologue(&data->location, "alignment-assumption");
520 pr_err("assumption of %lu byte alignment (wit
[all...]
/linux-master/scripts/
H A DMakefile.ubsan4 ubsan-cflags-$(CONFIG_UBSAN_ALIGNMENT) += -fsanitize=alignment
/linux-master/tools/testing/selftests/kvm/
H A Dkvm_page_table_test.c247 uint64_t alignment; local
252 alignment = max(large_page_size, guest_page_size);
253 test_mem_size = (test_mem_size + alignment - 1) & ~(alignment - 1);
267 alignment = max(0x100000UL, alignment);
269 guest_test_phys_mem = align_down(guest_test_phys_mem, alignment);
H A Dset_memory_region_test.c21 * s390x needs at least 1MB alignment, and the x86_64 MOVE/DELETE tests need a
399 size_t alignment; local
403 alignment = 0x100000;
405 alignment = 1;
419 mem = mmap(NULL, (size_t)max_mem_slots * MEM_REGION_SIZE + alignment,
423 mem_aligned = (void *)(((size_t) mem + alignment - 1) & ~(alignment - 1));
442 munmap(mem, (size_t)max_mem_slots * MEM_REGION_SIZE + alignment); local
/linux-master/tools/testing/memblock/tests/
H A Dbasic_api.c1919 const phys_addr_t alignment = SMP_CACHE_BYTES; local
1924 .base = alignment,
1925 .size = alignment * 4
1932 memblock_trim_memory(alignment);
1947 * and smaller than the alignment:
1949 * alignment
1965 const phys_addr_t alignment = SMP_CACHE_BYTES; local
1970 .base = alignment,
1971 .size = alignment * 2
1974 .base = alignment *
2017 const phys_addr_t alignment = SMP_CACHE_BYTES; local
2078 const phys_addr_t alignment = SMP_CACHE_BYTES; local
[all...]
/linux-master/drivers/mtd/ubi/
H A Dvmt.c34 __ATTR(alignment, S_IRUGO, vol_attribute_show, NULL);
85 ret = sprintf(buf, "%d\n", vol->alignment);
226 vol->usable_leb_size = ubi->leb_size - ubi->leb_size % req->alignment;
245 vol->alignment = req->alignment;
246 vol->data_pad = ubi->leb_size % vol->alignment;
305 vtbl_rec.alignment = cpu_to_be32(vol->alignment);
682 int reserved_pebs, alignment, data_pad, vol_type, name_len, upd_marker; local
700 if (vol->reserved_pebs < 0 || vol->alignment <
[all...]
H A Dvtbl.c160 int i, n, reserved_pebs, alignment, data_pad, vol_type, name_len; local
169 alignment = be32_to_cpu(vtbl[i].alignment);
193 if (reserved_pebs < 0 || alignment < 0 || data_pad < 0 ||
199 if (alignment > ubi->leb_size || alignment == 0) {
204 n = alignment & (ubi->min_io_size - 1);
205 if (alignment != 1 && n) {
210 n = ubi->leb_size % alignment;
539 vol->alignment
[all...]
/linux-master/arch/parisc/kernel/
H A Dpci.c199 resource_size_t size, resource_size_t alignment)
206 (int) res->flags, size, alignment);
212 mask = max(alignment, align) - 1;
198 pcibios_align_resource(void *data, const struct resource *res, resource_size_t size, resource_size_t alignment) argument
/linux-master/arch/x86/lib/
H A Dchecksum_32.S46 * Fortunately, it is easy to convert 2-byte alignment to 4-byte
47 * alignment for the unrolled loop.
55 testl $3, %esi # Check alignment.
56 jz 2f # Jump if alignment is ok.
57 testl $1, %esi # Check alignment.
58 jz 10f # Jump if alignment is boundary of 2 bytes.
282 testl $2, %edi # Check alignment.
283 jz 2f # Jump if alignment is ok.
/linux-master/drivers/acpi/acpica/
H A Drsio.c41 {ACPI_RSC_MOVE8, ACPI_RS_OFFSET(data.io.alignment),
42 AML_OFFSET(io.alignment),
/linux-master/arch/sh/mm/
H A Dalignment.c17 #include <asm/alignment.h>
32 core_param(alignment, se_usermode, int, 0600);
167 * We now locate it in /proc/cpu/alignment instead.
177 res = proc_create_data("alignment", S_IWUSR | S_IRUGO, dir,
/linux-master/drivers/gpu/drm/
H A Ddrm_mm.c503 * @alignment: alignment of the allocation
516 u64 size, u64 alignment,
533 if (alignment <= 1)
534 alignment = 0;
539 remainder_mask = is_power_of_2(alignment) ? alignment - 1 : 0;
568 if (alignment) {
574 div64_u64_rem(adj_start, alignment, &rem);
578 adj_start += alignment;
514 drm_mm_insert_node_in_range(struct drm_mm * const mm, struct drm_mm_node * const node, u64 size, u64 alignment, unsigned long color, u64 range_start, u64 range_end, enum drm_mm_insert_mode mode) argument
736 drm_mm_scan_init_with_range(struct drm_mm_scan *scan, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, enum drm_mm_insert_mode mode) argument
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_gem.h59 u64 size, u64 alignment, u64 flags);
64 u64 size, u64 alignment, u64 flags);
H A Di915_gem_gtt.h37 u64 size, u64 alignment, unsigned long color,
H A Di915_vma.c688 u64 size, u64 alignment, u64 flags)
699 GEM_BUG_ON(alignment && !is_power_of_2(alignment));
700 if (alignment && !IS_ALIGNED(i915_vma_offset(vma), alignment))
777 * @alignment: required alignment
789 u64 size, u64 alignment, u64 flags)
800 alignment = max_t(typeof(alignment), alignmen
687 i915_vma_misplaced(const struct i915_vma *vma, u64 size, u64 alignment, u64 flags) argument
788 i915_vma_insert(struct i915_vma *vma, struct i915_gem_ww_ctx *ww, u64 size, u64 alignment, u64 flags) argument
1432 i915_vma_pin_ww(struct i915_vma *vma, struct i915_gem_ww_ctx *ww, u64 size, u64 alignment, u64 flags) argument
[all...]
/linux-master/arch/mips/include/asm/octeon/
H A Docteon.h15 uint64_t alignment,
19 extern void *octeon_bootmem_alloc(uint64_t size, uint64_t alignment,
21 extern void *octeon_bootmem_alloc_range(uint64_t size, uint64_t alignment,
24 extern void *octeon_bootmem_alloc_named(uint64_t size, uint64_t alignment,
/linux-master/drivers/gpu/drm/amd/amdgpu/
H A Damdgpu_gem.h43 int alignment, u32 initial_domain,
/linux-master/arch/sh/lib/
H A Dchecksum.S45 * Fortunately, it is easy to convert 2-byte alignment to 4-byte
46 * alignment for the unrolled loop.
49 tst #3, r0 ! Check alignment.
50 bt/s 2f ! Jump if alignment is ok.
51 mov r4, r7 ! Keep a copy to check for alignment
53 tst #1, r0 ! Check alignment.
54 bt 21f ! Jump if alignment is boundary of 2bytes.
207 tst r0,r5 ! Check dest alignment.
208 bt 2f ! Jump if alignment is ok.
/linux-master/block/
H A Dblk-settings.c175 * By default there is no limit on the segment boundary alignment,
573 * blk_queue_alignment_offset - set physical block alignment offset
575 * @offset: alignment offset in bytes
686 unsigned int alignment = sector_div(sector, granularity >> SECTOR_SHIFT) local
689 return (granularity + lim->alignment_offset - alignment) % granularity;
695 unsigned int alignment, granularity, offset; local
701 alignment = lim->discard_alignment >> SECTOR_SHIFT;
710 offset = (granularity + alignment - offset) % granularity;
736 * attempt to combine the values and ensure proper alignment.
739 * top device's block sizes and alignment offset
748 unsigned int top, bottom, alignment, ret = 0; local
[all...]
/linux-master/arch/arc/lib/
H A Dmemcpy-archs.S56 ;;; Check the alignment of the source
95 ;; Hence I need to read 1 byte for a 16bit alignment
96 ;; and 2bytes to reach 32bit alignment
181 ;;; Hence, I need to read 1byte for achieve the 32bit alignment

Completed in 227 milliseconds

123456789