Searched refs:alignment (Results 1 - 25 of 216) sorted by relevance

123456789

/linux-master/tools/testing/selftests/exec/
H A Dload_address.c12 unsigned long long alignment; member in struct:Statistics
26 stats->alignment = 0;
32 if (info->dlpi_phdr[i].p_align > stats->alignment)
33 stats->alignment = info->dlpi_phdr[i].p_align;
52 if (extracted.alignment == 0)
53 ksft_exit_fail_msg("FAILED: No alignment found\n");
54 else if (extracted.alignment & (extracted.alignment - 1))
57 misalign = extracted.load_address & (extracted.alignment - 1);
59 ksft_exit_fail_msg("FAILED: alignment
[all...]
/linux-master/arch/csky/abiv1/
H A DMakefile2 obj-$(CONFIG_CPU_NEED_SOFTALIGN) += alignment.o
/linux-master/fs/btrfs/tests/
H A Dfree-space-tree-tests.c154 u32 alignment)
168 u32 alignment)
189 u32 alignment)
192 {cache->start + alignment, cache->length - alignment},
197 cache->start, alignment);
212 u32 alignment)
215 {cache->start, cache->length - alignment},
220 cache->start + cache->length - alignment,
221 alignment);
150 test_empty_block_group(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
164 test_remove_all(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
185 test_remove_beginning(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
208 test_remove_end(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
231 test_remove_middle(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
255 test_merge_left(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
292 test_merge_right(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
330 test_merge_both(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
373 test_merge_none(struct btrfs_trans_handle *trans, struct btrfs_fs_info *fs_info, struct btrfs_block_group *cache, struct btrfs_path *path, u32 alignment) argument
424 run_test(test_func_t test_func, int bitmaps, u32 sectorsize, u32 nodesize, u32 alignment) argument
525 run_test_both_formats(test_func_t test_func, u32 sectorsize, u32 nodesize, u32 alignment) argument
[all...]
/linux-master/arch/um/drivers/
H A Dcow.h8 int sectorsize, int alignment, int *bitmap_offset_out,
19 int sectorsize, int alignment,
H A Dcow_user.c58 * Add alignment field so that different alignments can be used for the
65 * by the bitmap alignment.
67 * by the alignment field. This is to allow COW files to be
69 * /dev/raw, with a 512 byte alignment restriction. This also
79 * align size to 8-byte alignment. This shifted all fields above (no padding
92 __u32 alignment; member in struct:cow_header_v3
104 __u32 alignment; member in struct:cow_header_v3_broken
198 int sectorsize, int alignment, unsigned long long *size)
252 header->alignment = htobe32(alignment);
197 write_cow_header(char *cow_file, int fd, char *backing_file, int sectorsize, int alignment, unsigned long long *size) argument
403 init_cow_file(int fd, char *cow_file, char *backing_file, int sectorsize, int alignment, int *bitmap_offset_out, unsigned long *bitmap_len_out, int *data_offset_out) argument
[all...]
/linux-master/scripts/
H A Drecordmcount.pl174 my $alignment; # The .align value to use for $mcount_section
175 my $section_type; # Section header plus possible alignment command
201 $alignment = 8;
211 $alignment = 4;
225 $alignment = 8;
231 $alignment = 2;
268 $alignment = 2;
274 $alignment = 3;
293 $alignment = 8;
357 $alignment
[all...]
/linux-master/arch/powerpc/include/asm/
H A Drheap.h27 unsigned int alignment; member in struct:_rh_info
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,
65 /* Allocate the given size from the remote heap (with alignment) */
66 extern unsigned long rh_alloc_align(rh_info_t * info, int size, int alignment,
/linux-master/drivers/gpu/drm/msm/disp/dpu1/
H A Dmsm_media_info.h44 * . . . . . . . . . . . . . . . . --> Buffer size alignment
82 * . . . . . . . . . . . . . . . . --> Padding & Buffer size alignment
140 * . . . . . . . . . . . . . . . . --> Buffer size alignment
797 * . . . . . . . . . . . . . . . . --> Buffer size alignment
1072 unsigned int alignment = 0, bpp = 4; local
1079 alignment = 128;
1082 alignment = 256;
1087 alignment = 256;
1093 return MSM_MEDIA_ALIGN(width * bpp, alignment);
1098 unsigned int alignment local
[all...]
/linux-master/drivers/gpu/drm/i915/
H A Di915_gem_gtt.c162 * @alignment: required alignment of starting offset, may be 0 but
173 * is can insert the node. The hole address is aligned to @alignment and
193 u64 size, u64 alignment, unsigned long color,
204 GEM_BUG_ON(alignment && !is_power_of_2(alignment));
205 GEM_BUG_ON(alignment && !IS_ALIGNED(alignment, I915_GTT_MIN_ALIGNMENT));
215 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment)))
190 i915_gem_gtt_insert(struct i915_address_space *vm, struct i915_gem_ww_ctx *ww, struct drm_mm_node *node, u64 size, u64 alignment, unsigned long color, u64 start, u64 end, unsigned int flags) argument
[all...]
H A Di915_gem_evict.h18 u64 min_size, u64 alignment,
/linux-master/drivers/gpu/drm/i915/display/
H A Dintel_fb_pin.c31 u32 alignment; local
44 alignment = 4096 * 512;
80 if (i915_vma_misplaced(vma, 0, alignment, 0)) {
86 ret = i915_vma_pin_ww(vma, &ww, 0, alignment, PIN_GLOBAL);
95 vma->display_alignment = max(vma->display_alignment, alignment);
120 u32 alignment; local
127 alignment = intel_cursor_alignment(dev_priv);
129 alignment = intel_surf_alignment(fb, 0);
130 if (drm_WARN_ON(dev, alignment && !is_power_of_2(alignment)))
[all...]
/linux-master/arch/mips/include/asm/octeon/
H A Dcvmx-bootmem.h41 /* minimum alignment of bootmem alloced blocks */
158 * @alignment: Alignment required - must be power of 2
162 uint64_t alignment);
181 * @alignment: Alignment required - must be power of 2
186 extern void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment,
251 * (optional) requested address and alignment.
261 * @alignment: Requested alignment of the block. If this alignment
274 uint64_t address_max, uint64_t alignment,
[all...]
/linux-master/include/uapi/linux/
H A Dvirtio_bt.h34 __u8 alignment; member in struct:virtio_bt_config_v2
/linux-master/drivers/gpu/drm/qxl/
H A Dqxl_gem.c46 int alignment, int initial_domain,
56 if (alignment < PAGE_SIZE)
57 alignment = PAGE_SIZE;
63 size, initial_domain, alignment, r);
45 qxl_gem_object_create(struct qxl_device *qdev, int size, int alignment, int initial_domain, bool discardable, bool kernel, struct qxl_surface *surf, struct drm_gem_object **obj) argument
/linux-master/include/linux/
H A Dcma.h32 phys_addr_t alignment, unsigned int order_per_bit,
37 phys_addr_t alignment, unsigned int order_per_bit,
40 return cma_declare_contiguous_nid(base, size, limit, alignment,
35 cma_declare_contiguous(phys_addr_t base, phys_addr_t size, phys_addr_t limit, phys_addr_t alignment, unsigned int order_per_bit, bool fixed, const char *name, struct cma **res_cma) argument
/linux-master/drivers/misc/
H A Dpci_endpoint_test.c121 size_t alignment; member in struct:pci_endpoint_test
127 size_t alignment; member in struct:pci_endpoint_test_data
342 struct pci_endpoint_test_xfer_param *param, size_t alignment)
349 if (param->size > SIZE_MAX - alignment) {
376 size_t alignment = test->alignment; local
388 err = pci_endpoint_test_validate_xfer_params(dev, &param, alignment);
403 orig_src_addr = kzalloc(size + alignment, GFP_KERNEL);
410 get_random_bytes(orig_src_addr, size + alignment);
412 size + alignment, DMA_TO_DEVIC
341 pci_endpoint_test_validate_xfer_params(struct device *dev, struct pci_endpoint_test_xfer_param *param, size_t alignment) argument
512 size_t alignment = test->alignment; local
613 size_t alignment = test->alignment; local
[all...]
/linux-master/arch/mips/cavium-octeon/executive/
H A Dcvmx-bootmem.c128 * @alignment: Alignment required - must be power of 2
131 static void *cvmx_bootmem_alloc_range(uint64_t size, uint64_t alignment, argument
136 cvmx_bootmem_phy_alloc(size, min_addr, max_addr, alignment, 0);
145 uint64_t alignment)
147 return cvmx_bootmem_alloc_range(size, alignment, address,
165 void *cvmx_bootmem_alloc_named(uint64_t size, uint64_t alignment, char *name) argument
167 return cvmx_bootmem_alloc_named_range(size, 0, 0, alignment, name);
218 uint64_t address_max, uint64_t alignment,
235 (unsigned long long)alignment);
259 /* Round req_size up to mult of minimum alignment byte
144 cvmx_bootmem_alloc_address(uint64_t size, uint64_t address, uint64_t alignment) argument
217 cvmx_bootmem_phy_alloc(uint64_t req_size, uint64_t address_min, uint64_t address_max, uint64_t alignment, uint32_t flags) argument
718 cvmx_bootmem_phy_named_block_alloc(uint64_t size, uint64_t min_addr, uint64_t max_addr, uint64_t alignment, char *name, uint32_t flags) argument
[all...]
/linux-master/drivers/clk/tegra/
H A Dclk-dfll.h24 * @alignment: parameters of the regulator step and offset
33 struct rail_alignment alignment; member in struct:tegra_dfll_soc_data
/linux-master/drivers/bluetooth/
H A Dhci_h4.c159 u8 alignment = hu->alignment ? hu->alignment : 1; local
255 hu->padding = (skb->len + 1) % alignment;
256 hu->padding = (alignment - hu->padding) % alignment;
263 hu->padding = (skb->len + 1) % alignment;
264 hu->padding = (alignment - hu->padding) % alignment;
/linux-master/drivers/net/ethernet/intel/iavf/
H A Diavf_alloc.h26 u64 size, u32 alignment);
/linux-master/drivers/net/ethernet/intel/i40e/
H A Di40e_alloc.h26 u64 size, u32 alignment);
/linux-master/drivers/gpu/drm/tests/
H A Ddrm_mm_test.c92 static u64 misalignment(struct drm_mm_node *node, u64 alignment) argument
96 if (!alignment)
99 div64_u64_rem(node->start, alignment, &rem);
104 u64 size, u64 alignment, unsigned long color)
119 if (misalignment(node, alignment)) {
121 "node is misaligned, start %llx rem %llu, expected alignment %llu\n",
122 node->start, misalignment(node, alignment), alignment);
218 struct drm_mm_node *node, u64 size, u64 alignment, unsigned long color,
224 size, alignment, colo
103 assert_node(struct kunit *test, struct drm_mm_node *node, struct drm_mm *mm, u64 size, u64 alignment, unsigned long color) argument
217 expect_insert(struct kunit *test, struct drm_mm *mm, struct drm_mm_node *node, u64 size, u64 alignment, unsigned long color, const struct insert_mode *mode) argument
[all...]
/linux-master/arch/powerpc/lib/
H A Drheap.c253 rh_info_t *rh_create(unsigned int alignment) argument
258 if ((alignment & (alignment - 1)) != 0)
265 info->alignment = alignment;
300 void rh_init(rh_info_t * info, unsigned int alignment, int max_blocks, argument
307 if ((alignment & (alignment - 1)) != 0)
310 info->alignment = alignment;
442 rh_alloc_align(rh_info_t * info, int size, int alignment, const char *owner) argument
[all...]
/linux-master/drivers/gpu/drm/i915/gem/
H A Di915_gem_stolen.h19 unsigned alignment);
22 unsigned alignment, u64 start,
/linux-master/mm/
H A Dcma.c185 /* alignment should be aligned with order_per_bit */
189 /* ensure minimal alignment required by mm core */
219 * @alignment: Alignment for the CMA area, should be power of 2 or zero
236 phys_addr_t alignment, unsigned int order_per_bit,
251 pr_debug("%s(size %pa, base %pa, limit %pa alignment %pa)\n",
252 __func__, &size, &base, &limit, &alignment);
262 if (alignment && !is_power_of_2(alignment))
269 alignment = max_t(phys_addr_t, alignment, CMA_MIN_ALIGNMENT_BYTE
234 cma_declare_contiguous_nid(phys_addr_t base, phys_addr_t size, phys_addr_t limit, phys_addr_t alignment, unsigned int order_per_bit, bool fixed, const char *name, struct cma **res_cma, int nid) argument
[all...]

Completed in 179 milliseconds

123456789