/arch/cris/arch-v32/mm/ |
D | intmem.c | 59 int alignment = allocation->offset % align; in crisv32_intmem_alloc() local 60 alignment = alignment ? align - alignment : alignment; in crisv32_intmem_alloc() 63 allocation->size >= size + alignment) { in crisv32_intmem_alloc() 64 if (allocation->size > size + alignment) { in crisv32_intmem_alloc() 69 alignment; in crisv32_intmem_alloc() 71 alignment; in crisv32_intmem_alloc() 74 if (alignment) { in crisv32_intmem_alloc() 78 tmp->size = alignment; in crisv32_intmem_alloc() 80 allocation->offset += alignment; in crisv32_intmem_alloc()
|
/arch/mips/include/asm/octeon/ |
D | cvmx-bootmem.h | 144 extern void *cvmx_bootmem_alloc(uint64_t size, uint64_t alignment); 160 uint64_t alignment); 175 extern void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment, 200 extern void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, 281 uint64_t address_max, uint64_t alignment, 308 uint64_t alignment,
|
D | octeon.h | 14 uint64_t alignment, 18 extern void *octeon_bootmem_alloc(uint64_t size, uint64_t alignment, 20 extern void *octeon_bootmem_alloc_range(uint64_t size, uint64_t alignment, 23 extern void *octeon_bootmem_alloc_named(uint64_t size, uint64_t alignment,
|
/arch/mips/cavium-octeon/executive/ |
D | cvmx-bootmem.c | 76 void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment, in cvmx_bootmem_alloc_range() argument 81 cvmx_bootmem_phy_alloc(size, min_addr, max_addr, alignment, 0); in cvmx_bootmem_alloc_range() 90 uint64_t alignment) in cvmx_bootmem_alloc_address() argument 92 return cvmx_bootmem_alloc_range(size, alignment, address, in cvmx_bootmem_alloc_address() 96 void *cvmx_bootmem_alloc(uint64_t size, uint64_t alignment) in cvmx_bootmem_alloc() argument 98 return cvmx_bootmem_alloc_range(size, alignment, 0, 0); in cvmx_bootmem_alloc() 122 void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, char *name) in cvmx_bootmem_alloc_named() argument 124 return cvmx_bootmem_alloc_named_range(size, 0, 0, alignment, name); in cvmx_bootmem_alloc_named() 186 uint64_t address_max, uint64_t alignment, in cvmx_bootmem_phy_alloc() argument 203 (unsigned long long)alignment); in cvmx_bootmem_phy_alloc() [all …]
|
/arch/powerpc/include/asm/ |
D | rheap.h | 27 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/ |
D | rheap.c | 253 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/um/drivers/ |
D | cow_user.c | 91 __u32 alignment; member 103 __u32 alignment; member 197 int sectorsize, int alignment, unsigned long long *size) in write_cow_header() argument 251 header->alignment = htobe32(alignment); in write_cow_header() 346 *align_out = be32toh(header->v3.alignment); in read_cow_header() 377 *align_out = be32toh(header->v3_b.alignment); in read_cow_header() 403 int alignment, int *bitmap_offset_out, in init_cow_file() argument 411 alignment, &size); in init_cow_file() 415 *bitmap_offset_out = ROUND_UP(sizeof(struct cow_header_v3), alignment); in init_cow_file() 416 cow_sizes(COW_VERSION, size, sectorsize, alignment, *bitmap_offset_out, in init_cow_file()
|
D | cow.h | 7 int sectorsize, int alignment, int *bitmap_offset_out, 18 int sectorsize, int alignment,
|
/arch/xtensa/lib/ |
D | memset.S | 53 movi a6, 3 # for alignment tests 65 .align 4 # 1 mod 4 alignment for LOOPNEZ 66 .byte 0 # (0 mod 4 alignment for LBEG) 114 bbci.l a5, 0, .L20 # branch if dst alignment half-aligned 134 .byte 0 # 1 mod 4 alignment for LOOPNEZ 135 # (0 mod 4 alignment for LBEG)
|
D | strncpy_user.S | 109 .align 4 # 1 mod 4 alignment for LOOPNEZ 110 .byte 0 # (0 mod 4 alignment for LBEG) 186 .align 4 # 1 mod 4 alignment for LOOPNEZ 187 .byte 0 # (0 mod 4 alignment for LBEG)
|
D | usercopy.S | 128 .byte 0 # 1 mod 4 alignment for LOOPNEZ 129 # (0 mod 4 alignment for LBEG) 153 .align 4 # 1 mod 4 alignment for LOOPNEZ 154 .byte 0 # (0 mod 4 alignment for LBEG) 215 # (0 mod 4 alignment for LBEG)
|
/arch/metag/lib/ |
D | memcpy.S | 33 ANDS D1Ar5, D1Ar1, #7 ! test destination alignment 38 ! destination address alignment (i.e we should never copy more than 7 54 ANDS D0Ar4, D0Ar4, #7 ! test source alignment 88 ! Save the number of bytes of mis-alignment in D0Ar4 for use later 91 ! if there is no mis-alignment after all, use the aligned copy loop 99 ! There are 3 mis-alignment cases to be considered. Less than 4 bytes, exactly 102 BLT $Lunaligned_1_2_3 ! use 1-3 byte mis-alignment loop 103 BZ $Lunaligned_4 ! use 4 byte mis-alignment loop 105 ! The mis-alignment is more than 4 bytes 163 ! The 4 byte mis-alignment case - this does not require any shifting, just a
|
/arch/m32r/lib/ |
D | checksum.S | 60 and3 r7, r0, #1 ; Check alignment. 61 beqz r7, 1f ; Jump if alignment is ok. 70 and3 r4, r0, #2 ; Check alignment. 71 beqz r4, 2f ; Jump if alignment is ok. 176 and3 r7, r0, #1 ; Check alignment. 177 beqz r7, 1f ; Jump if alignment is ok. 188 and3 r4, r0, #2 ; Check alignment. 189 beqz r4, 2f ; Jump if alignment is ok.
|
/arch/powerpc/sysdev/ |
D | ppc4xx_ocm.c | 64 int alignment; member 213 ocm->alignment = 4; /* default 4 byte alignment */ in ocm_init_node() 216 ocm->nc.rh = rh_create(ocm->alignment); in ocm_init_node() 221 ocm->c.rh = rh_create(ocm->alignment); in ocm_init_node() 334 if (align < ocm->alignment) in ppc4xx_ocm_alloc() 335 align = ocm->alignment; in ppc4xx_ocm_alloc()
|
D | cpm_common.c | 148 cpm_muram_info.alignment = align; in cpm_muram_alloc() 189 cpm_muram_info.alignment = 1; in cpm_muram_alloc_fixed()
|
/arch/x86/crypto/sha-mb/ |
D | sha1_mb_mgr_datastruct.S | 92 # RES_* macros take a name, a count and an optional alignment. 94 # default alignment is the base size.
|
/arch/sh/lib/ |
D | checksum.S | 52 tst #3, r0 ! Check alignment. 53 bt/s 2f ! Jump if alignment is ok. 54 mov r4, r7 ! Keep a copy to check for alignment 56 tst #1, r0 ! Check alignment. 57 bt 21f ! Jump if alignment is boundary of 2bytes. 230 tst r0,r5 ! Check dest alignment. 231 bt 2f ! Jump if alignment is ok.
|
/arch/parisc/kernel/ |
D | pci.c | 202 resource_size_t size, resource_size_t alignment) in pcibios_align_resource() argument 209 (int) res->flags, size, alignment); in pcibios_align_resource() 215 mask = max(alignment, align) - 1; in pcibios_align_resource()
|
/arch/unicore32/mm/ |
D | Makefile | 12 obj-$(CONFIG_ALIGNMENT_TRAP) += alignment.o
|
/arch/x86/lib/ |
D | checksum_32.S | 61 testl $3, %esi # Check alignment. 62 jz 2f # Jump if alignment is ok. 63 testl $1, %esi # Check alignment. 64 jz 10f # Jump if alignment is boundary of 2 bytes. 312 testl $2, %edi # Check alignment. 313 jz 2f # Jump if alignment is ok.
|
/arch/alpha/lib/ |
D | ev6-memcpy.S | 63 and $16, 63, $1 # E : get mod64 alignment 74 and $16, 63, $1 # E : get mod64 alignment 182 and $0, 7, $1 # E : dest alignment mod8
|
/arch/arm/lib/ |
D | csumpartial.S | 76 tst td0, #1 @ check buffer alignment 111 tst buf, #3 @ Test destination alignment
|
/arch/x86/kernel/ |
D | setup.c | 521 const unsigned long long alignment = 16<<20; /* 16M */ in reserve_crashkernel_low() local 549 low_size, alignment); in reserve_crashkernel_low() 571 const unsigned long long alignment = 16<<20; /* 16M */ in reserve_crashkernel() local 596 crash_base = memblock_find_in_range(alignment, in reserve_crashkernel() 599 crash_size, alignment); in reserve_crashkernel()
|
/arch/x86/um/ |
D | checksum_32.S | 58 testl $2, %esi # Check alignment. 59 jz 2f # Jump if alignment is ok.
|
/arch/metag/ |
D | Kconfig.soc | 49 All memory accesses will be checked for alignment and an exception
|