Home
last modified time | relevance | path

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

12345

/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 …]
/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,
/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 …]
/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,
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,
/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()
Dcow.h8 int sectorsize, int alignment, int *bitmap_offset_out,
19 int sectorsize, int alignment,
/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)
Dusercopy.S111 .byte 0 # 1 mod 4 alignment for LOOPNEZ
112 # (0 mod 4 alignment for LBEG)
136 .align 4 # 1 mod 4 alignment for LOOPNEZ
137 .byte 0 # (0 mod 4 alignment for LBEG)
198 # (0 mod 4 alignment for LBEG)
Dstrncpy_user.S101 .align 4 # 1 mod 4 alignment for LOOPNEZ
102 .byte 0 # (0 mod 4 alignment for LBEG)
178 .align 4 # 1 mod 4 alignment for LOOPNEZ
179 .byte 0 # (0 mod 4 alignment for LBEG)
/arch/arm/boot/dts/
Dexynos-mfc-reserved-memory.dtsi18 alignment = <0x100000>;
25 alignment = <0x100000>;
/arch/x86/lib/
Dchecksum_32.S55 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.
/arch/sh/lib/
Dchecksum.S49 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.
/arch/parisc/kernel/
Dpci.c199 resource_size_t size, resource_size_t alignment) in pcibios_align_resource() argument
206 (int) res->flags, size, alignment); in pcibios_align_resource()
212 mask = max(alignment, align) - 1; in pcibios_align_resource()
/arch/powerpc/boot/dts/fsl/
Dcyrus_p5020.dts31 alignment = <0 0x1000000>;
35 alignment = <0 0x400000>;
39 alignment = <0 0x2000000>;
Dkmcoge4.dts31 alignment = <0 0x1000000>;
35 alignment = <0 0x400000>;
39 alignment = <0 0x2000000>;
Doca4080.dts59 alignment = <0 0x1000000>;
63 alignment = <0 0x400000>;
67 alignment = <0 0x2000000>;
Dkmcent2.dts28 alignment = <0 0x1000000>;
32 alignment = <0 0x400000>;
36 alignment = <0 0x2000000>;
Dt208xrdb.dtsi49 alignment = <0 0x1000000>;
53 alignment = <0 0x400000>;
57 alignment = <0 0x2000000>;
/arch/arm64/kvm/vgic/
Dvgic-kvm-device.c18 phys_addr_t addr, phys_addr_t alignment, in vgic_check_iorange() argument
24 if (!IS_ALIGNED(addr, alignment) || !IS_ALIGNED(size, alignment)) in vgic_check_iorange()
64 phys_addr_t *addr_ptr, alignment, size; in kvm_vgic_addr() local
72 alignment = SZ_4K; in kvm_vgic_addr()
78 alignment = SZ_4K; in kvm_vgic_addr()
84 alignment = SZ_64K; in kvm_vgic_addr()
150 r = vgic_check_iorange(kvm, *addr_ptr, *addr, alignment, size); in kvm_vgic_addr()
/arch/csky/abiv1/
DMakefile2 obj-$(CONFIG_CPU_NEED_SOFTALIGN) += alignment.o
/arch/nds32/mm/
DMakefile5 obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o
/arch/x86/
DMakefile20 else ifneq ($(call cc-option, -mstack-alignment=16),)
21 cc_stack_align4 := -mstack-alignment=4
22 cc_stack_align8 := -mstack-alignment=8
190 KBUILD_LDFLAGS += -plugin-opt=-stack-alignment=$(if $(CONFIG_X86_32),4,8)
/arch/arc/lib/
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
/arch/xtensa/boot/dts/
Dkc705.dts26 alignment = <0x2000>;

12345