Home
last modified time | relevance | path

Searched refs:align (Results 1 – 25 of 1704) sorted by relevance

12345678910>>...69

/openbmc/linux/net/wireless/
H A Dradiotap.c26 [IEEE80211_RADIOTAP_TSFT] = { .align = 8, .size = 8, },
27 [IEEE80211_RADIOTAP_FLAGS] = { .align = 1, .size = 1, },
28 [IEEE80211_RADIOTAP_RATE] = { .align = 1, .size = 1, },
30 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
217 int pad, align, size, subns; in ieee80211_radiotap_iterator_next() local
232 align = 1; in ieee80211_radiotap_iterator_next()
236 align = 2; in ieee80211_radiotap_iterator_next()
244 align = 0; in ieee80211_radiotap_iterator_next()
246 align = iterator->current_namespace->align_size[iterator->_arg_index].align; in ieee80211_radiotap_iterator_next()
249 if (!align) { in ieee80211_radiotap_iterator_next()
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D03350 local align=$1
58 IO_OPEN_ARG="-o driver=$IMGFMT,file.align=$align blkdebug::$img"
71 for align in 512 4k; do
74 do_test $align "write -P 0xa 0x200 0x400" "$TEST_IMG" | _filter_qemu_io
80 do_test $align "read -P 0xa 0x200 0x200" "$TEST_IMG" | _filter_qemu_io
81 do_test $align "read -P 0x0 0x400 0x20000" "$TEST_IMG" | _filter_qemu_io
82 do_test $align "read -P 0xa 0x20400 0x200" "$TEST_IMG" | _filter_qemu_io
95 do_test $align "write -P 0xb 0x0 0x1000" "$TEST_IMG" | _filter_qemu_io
100 do_test $align "read -P 0xb 0x0 0x200" "$TEST_IMG" | _filter_qemu_io
101 do_test $align "read -P 0x0 0x200 0x200" "$TEST_IMG" | _filter_qemu_io
[all …]
/openbmc/u-boot/board/renesas/rsk7203/
H A Dlowlevel_init.S14 .align 2
111 .align 2
114 .align 2
117 .align 2
123 .align 2
126 .align 2
129 .align 2
132 .align 2
135 .align 2
138 .align 2
[all …]
/openbmc/linux/lib/
H A Dchecksum_kunit.c247 int len, align; in test_csum_fixed_random_inputs() local
252 for (align = 0; align < TEST_BUFLEN; ++align) { in test_csum_fixed_random_inputs()
253 memcpy(&tmp_buf[align], random_buf, in test_csum_fixed_random_inputs()
254 min(MAX_LEN, TEST_BUFLEN - align)); in test_csum_fixed_random_inputs()
261 result = full_csum(&tmp_buf[align], len, sum); in test_csum_fixed_random_inputs()
273 int len, align; in test_csum_all_carry_inputs() local
279 for (align = 0; align < TEST_BUFLEN; ++align) { in test_csum_all_carry_inputs()
286 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
294 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
313 int len, align; in test_csum_no_carry_inputs() local
[all …]
H A Dstrnlen_user.c26 unsigned long align, res = 0; in do_strnlen_user() local
33 align = (sizeof(unsigned long) - 1) & (unsigned long)src; in do_strnlen_user()
34 src -= align; in do_strnlen_user()
35 max += align; in do_strnlen_user()
38 c |= aligned_byte_mask(align); in do_strnlen_user()
45 return res + find_zero(data) + 1 - align; in do_strnlen_user()
54 res -= align; in do_strnlen_user()
/openbmc/linux/drivers/clk/tegra/
H A Dcvb.c26 const struct rail_alignment *align) in round_cvb_voltage() argument
30 int step = (align->step_uv ? : 1000) * v_scale; in round_cvb_voltage()
31 int offset = align->offset_uv * v_scale; in round_cvb_voltage()
34 uv = DIV_ROUND_UP(uv, step) * align->step_uv + align->offset_uv; in round_cvb_voltage()
45 if (align->step_uv) { in round_voltage()
48 uv = max(mv * 1000, align->offset_uv) - align->offset_uv; in round_voltage()
49 uv = (uv + (up ? align->step_uv - 1 : 0)) / align->step_uv; in round_voltage()
50 return (uv * align->step_uv + align->offset_uv) / 1000; in round_voltage()
56 struct rail_alignment *align, in build_opp_table() argument
73 align); in build_opp_table()
[all …]
/openbmc/linux/include/trace/events/
H A Dcma.h43 TP_ARGS(name, count, align),
48 __field(unsigned int, align)
54 __entry->align = align;
60 __entry->align)
75 __field(unsigned int, align)
84 __entry->align = align;
93 __entry->align,
102 TP_ARGS(name, pfn, page, count, align),
109 __field(unsigned int, align)
117 __entry->align = align;
[all …]
H A Dpercpu.h15 size_t align, void *base_addr, int off,
18 TP_ARGS(call_site, reserved, is_atomic, size, align, base_addr, off,
26 __field( size_t, align )
38 __entry->align = align;
49 __entry->size, __entry->align,
78 TP_PROTO(bool reserved, bool is_atomic, size_t size, size_t align),
80 TP_ARGS(reserved, is_atomic, size, align),
86 __field( size_t, align )
93 __entry->align = align;
98 __entry->size, __entry->align)
/openbmc/u-boot/tools/binman/test/
H A D009_pack_extra.dts13 u-boot-align-size-nop {
15 align-size = <4>;
18 u-boot-align-size {
20 align = <16>;
21 align-size = <32>;
24 u-boot-align-end {
26 align-end = <64>;
29 u-boot-align-both {
31 align= <64>;
32 align-end = <128>;
/openbmc/u-boot/include/
H A Dmemalign.h71 #define ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, pad) \ argument
72 char __##name[ROUND(PAD_SIZE((size) * sizeof(type), pad), align) \
73 + (align - 1)]; \
75 type *name = (type *)ALIGN((uintptr_t)__##name, align)
76 #define ALLOC_ALIGN_BUFFER(type, name, size, align) \ argument
77 ALLOC_ALIGN_BUFFER_PAD(type, name, size, align, 1)
88 #define DEFINE_ALIGN_BUFFER(type, name, size, align) \ argument
89 static char __##name[ALIGN(size * sizeof(type), align)] \
90 __aligned(align); \
/openbmc/linux/arch/arm/tools/
H A Dsyscallnr.sh5 align=1
23 while [ "$(($nr / (256 * $align) ))" -gt 0 ]; do
24 align=$(( $align * 4 ))
26 nr=$(( ($nr + $align - 1) & ~($align - 1) ))
27 echo "/* aligned to $align */"
/openbmc/linux/drivers/gpu/drm/
H A Ddrm_suballoc.c68 if (!align) in drm_suballoc_manager_init()
69 align = 1; in drm_suballoc_manager_init()
72 if (WARN_ON_ONCE(align & (align - 1))) in drm_suballoc_manager_init()
73 align = roundup_pow_of_two(align); in drm_suballoc_manager_init()
77 sa_manager->align = align; in drm_suballoc_manager_init()
164 size_t size, size_t align) in drm_suballoc_try_alloc() argument
187 size_t size, size_t align) in __drm_suballoc_event() argument
322 if (WARN_ON_ONCE(align > sa_manager->align)) in drm_suballoc_new()
327 if (!align) in drm_suballoc_new()
328 align = sa_manager->align; in drm_suballoc_new()
[all …]
/openbmc/u-boot/fs/cbfs/
H A Dcbfs.c47 dest->align = be32_to_cpu(src->align); in swap_header()
83 while (size >= align) { in file_cbfs_next_file()
92 *used += align; in file_cbfs_next_file()
93 size -= align; in file_cbfs_next_file()
94 start += align; in file_cbfs_next_file()
114 if (step % align) in file_cbfs_next_file()
115 step = step + align - step % align; in file_cbfs_next_file()
139 while (size >= align) { in file_cbfs_fill_cache()
260 u32 align; in file_cbfs_find_uncached() local
268 align = cbfs_header.align; in file_cbfs_find_uncached()
[all …]
/openbmc/u-boot/board/renesas/rsk7264/
H A Dlowlevel_init.S17 .align 2
111 .align 4
117 .align 2
122 .align 2
136 .align 2
142 .align 2
147 .align 2
150 .align 2
156 .align 2
179 .align 2
[all …]
/openbmc/u-boot/board/renesas/rsk7269/
H A Dlowlevel_init.S18 .align 2
91 .align 4
120 .align 2
123 .align 2
127 .align 2
130 .align 2
138 .align 2
150 .align 2
161 .align 2
169 .align 2
[all …]
/openbmc/linux/drivers/dax/
H A Ddax-private.h36 unsigned int align; member
66 unsigned int align; member
101 static inline bool dax_align_valid(unsigned long align) in dax_align_valid() argument
103 if (align == PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) in dax_align_valid()
105 if (align == PMD_SIZE && has_transparent_hugepage()) in dax_align_valid()
107 if (align == PAGE_SIZE) in dax_align_valid()
112 static inline bool dax_align_valid(unsigned long align) in dax_align_valid() argument
114 return align == PAGE_SIZE; in dax_align_valid()
/openbmc/linux/arch/xtensa/kernel/
H A Dalign.S182 and a3, a3, a8 # align memory address
307 .align 8
318 mov a9, a3 ; _j .Lexit; .align 8
319 mov a10, a3 ; _j .Lexit; .align 8
320 mov a11, a3 ; _j .Lexit; .align 8
321 mov a12, a3 ; _j .Lexit; .align 8
322 mov a13, a3 ; _j .Lexit; .align 8
323 mov a14, a3 ; _j .Lexit; .align 8
324 mov a15, a3 ; _j .Lexit; .align 8
337 mov a3, a9 ; _j .Lstore_w; .align 8
[all …]
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dalignedmem.c25 unsigned long max, unsigned long align, in efi_allocate_pages_aligned() argument
34 if (align < EFI_ALLOC_ALIGN) in efi_allocate_pages_aligned()
35 align = EFI_ALLOC_ALIGN; in efi_allocate_pages_aligned()
37 alloc_addr = ALIGN_DOWN(max + 1, align) - 1; in efi_allocate_pages_aligned()
39 slack = align / EFI_PAGE_SIZE - 1; in efi_allocate_pages_aligned()
47 *addr = ALIGN((unsigned long)alloc_addr, align); in efi_allocate_pages_aligned()
50 int l = (alloc_addr & (align - 1)) / EFI_PAGE_SIZE; in efi_allocate_pages_aligned()
H A Drandomalloc.c22 unsigned long align = 1UL << align_shift; in get_entry_num_slots() local
37 first_slot = round_up(max(md->phys_addr, alloc_min), align); in get_entry_num_slots()
38 last_slot = round_down(region_end - size + 1, align); in get_entry_num_slots()
55 unsigned long align, in efi_random_alloc() argument
72 if (align < EFI_ALLOC_ALIGN) in efi_random_alloc()
73 align = EFI_ALLOC_ALIGN; in efi_random_alloc()
82 slots = get_entry_num_slots(md, size, ilog2(align), alloc_min, in efi_random_alloc()
123 target = round_up(max_t(u64, md->phys_addr, alloc_min), align) + target_slot * align; in efi_random_alloc()
/openbmc/linux/arch/sparc/lib/
H A Dbitext.c28 int bit_map_string_get(struct bit_map *t, int len, int align) in bit_map_string_get() argument
37 color = align; in bit_map_string_get()
38 align = t->num_colors; in bit_map_string_get()
41 if (align == 0) in bit_map_string_get()
42 align = 1; in bit_map_string_get()
44 align1 = align - 1; in bit_map_string_get()
45 if ((align & align1) != 0) in bit_map_string_get()
47 if (align < 0 || align >= t->size) in bit_map_string_get()
70 t->size, t->used, offset, len, align, count); in bit_map_string_get()
/openbmc/linux/include/linux/
H A Dcfi_types.h23 #define SYM_TYPED_ENTRY(name, linkage, align...) \
25 align ASM_NL \
29 #define SYM_TYPED_START(name, linkage, align...) \
30 SYM_TYPED_ENTRY(name, linkage, align)
34 #define SYM_TYPED_START(name, linkage, align...) \
35 SYM_START(name, linkage, align)
/openbmc/u-boot/arch/arm/cpu/armv8/
H A Dpsci.S47 .align 3
85 .align 3
265 .align 7
267 .align 7
269 .align 7
271 .align 7
273 .align 7
275 .align 7
277 .align 7
279 .align 7
[all …]
/openbmc/linux/fs/xfs/
H A Dxfs_iomap.h37 xfs_extlen_t align; in xfs_aligned_fsb_count() local
39 div_u64_rem(offset_fsb, extsz, &align); in xfs_aligned_fsb_count()
40 if (align) in xfs_aligned_fsb_count()
41 count_fsb += align; in xfs_aligned_fsb_count()
42 div_u64_rem(count_fsb, extsz, &align); in xfs_aligned_fsb_count()
43 if (align) in xfs_aligned_fsb_count()
44 count_fsb += extsz - align; in xfs_aligned_fsb_count()
/openbmc/linux/arch/x86/lib/
H A Dretpoline.S35 .align RETPOLINE_THUNK_SIZE
60 .align RETPOLINE_THUNK_SIZE
67 .align RETPOLINE_THUNK_SIZE
76 .align RETPOLINE_THUNK_SIZE
89 .align RETPOLINE_THUNK_SIZE
96 .align RETPOLINE_THUNK_SIZE
104 .align RETPOLINE_THUNK_SIZE
115 .align RETPOLINE_THUNK_SIZE
189 .align 64
263 .align 64
[all …]
/openbmc/linux/arch/s390/boot/
H A Dkaslr.c107 static unsigned long iterate_valid_positions(unsigned long size, unsigned long align, in iterate_valid_positions() argument
117 align = max(align, 8UL); in iterate_valid_positions()
118 _min = round_up(_min, align); in iterate_valid_positions()
122 start = round_up(start, align); in iterate_valid_positions()
143 range_pos = (tmp_end - start - size) / align + 1; in iterate_valid_positions()
148 return start + (find_pos - 1) * align; in iterate_valid_positions()
154 start = round_up(skip_res->end, align); in iterate_valid_positions()
182 unsigned long randomize_within_range(unsigned long size, unsigned long align, in randomize_within_range() argument
192 max_pos = iterate_valid_positions(size, align, min, max, res, ARRAY_SIZE(res), true, 0); in randomize_within_range()
197 return iterate_valid_positions(size, align, min, max, res, ARRAY_SIZE(res), false, pos + 1); in randomize_within_range()

12345678910>>...69