Home
last modified time | relevance | path

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

12345678910>>...47

/linux/drivers/media/platform/raspberrypi/pisp_be/
H A Dpisp_be_formats.h19 unsigned int align; member
61 .align = 128,
71 .align = 128,
80 .align = 32,
89 .align = 32,
98 .align = 64,
107 .align = 64,
116 .align = 64,
125 .align = 64,
135 .align = 64,
[all …]
/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, },
29 [IEEE80211_RADIOTAP_CHANNEL] = { .align = 2, .size = 4, },
30 [IEEE80211_RADIOTAP_FHSS] = { .align = 2, .size = 2, },
31 [IEEE80211_RADIOTAP_DBM_ANTSIGNAL] = { .align = 1, .size = 1, },
32 [IEEE80211_RADIOTAP_DBM_ANTNOISE] = { .align = 1, .size = 1, },
33 [IEEE80211_RADIOTAP_LOCK_QUALITY] = { .align = 2, .size = 2, },
34 [IEEE80211_RADIOTAP_TX_ATTENUATION] = { .align = 2, .size = 2, },
35 [IEEE80211_RADIOTAP_DB_TX_ATTENUATION] = { .align = 2, .size = 2, },
[all …]
/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()
43 static int round_voltage(int mv, const struct rail_alignment *align, int up) in round_voltage() argument
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
[all …]
/linux/include/trace/events/
H A Dcma.h41 TP_PROTO(const char *name, unsigned long count, unsigned int align),
43 TP_ARGS(name, count, align),
48 __field(unsigned int, align)
54 __entry->align = align;
57 TP_printk("name=%s count=%lu align=%u",
60 __entry->align)
66 unsigned long count, unsigned int align, int errorno),
68 TP_ARGS(name, pfn, page, count, align, errorno),
75 __field(unsigned int, 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)
/linux/lib/
H A Dchecksum_kunit.c481 int len, align; in test_csum_fixed_random_inputs() local
486 for (align = 0; align < TEST_BUFLEN; ++align) { in test_csum_fixed_random_inputs()
487 memcpy(&tmp_buf[align], random_buf, in test_csum_fixed_random_inputs()
488 min(MAX_LEN, TEST_BUFLEN - align)); in test_csum_fixed_random_inputs()
489 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_fixed_random_inputs()
495 result = full_csum(&tmp_buf[align], len, sum); in test_csum_fixed_random_inputs()
507 int len, align; in test_csum_all_carry_inputs() local
513 for (align = 0; align < TEST_BUFLEN; ++align) { in test_csum_all_carry_inputs()
514 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_all_carry_inputs()
520 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
[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()
/linux/drivers/gpu/drm/
H A Ddrm_suballoc.c62 size_t size, size_t align) in drm_suballoc_manager_init() argument
68 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
170 wasted = round_up(soffset, align) - soffset; in drm_suballoc_try_alloc()
187 size_t size, size_t align) in __drm_suballoc_event() argument
198 wasted = round_up(soffset, align) - soffset; in __drm_suballoc_event()
[all …]
/linux/arch/xtensa/kernel/
H A Dalign.S182 and a3, a3, a8 # align memory address
257 and a3, a3, a8 # align memory address
307 .align 8
309 s32i a3, a2, PT_AREG0; _j .Lexit; .align 8
310 mov a1, a3; _j .Lexit; .align 8 # fishy??
311 s32i a3, a2, PT_AREG2; _j .Lexit; .align 8
312 s32i a3, a2, PT_AREG3; _j .Lexit; .align 8
313 s32i a3, a2, PT_AREG4; _j .Lexit; .align 8
314 s32i a3, a2, PT_AREG5; _j .Lexit; .align 8
315 s32i a3, a2, PT_AREG6; _j .Lexit; .align 8
[all …]
/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 */"
/linux/drivers/dax/
H A Ddax-private.h36 unsigned int align; member
66 unsigned int align; member
102 static inline bool dax_align_valid(unsigned long align) in dax_align_valid() argument
104 if (align == PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) in dax_align_valid()
106 if (align == PMD_SIZE && has_transparent_hugepage()) in dax_align_valid()
108 if (align == PAGE_SIZE) in dax_align_valid()
113 static inline bool dax_align_valid(unsigned long align) in dax_align_valid() argument
115 return align == PAGE_SIZE; in dax_align_valid()
H A Ddevice.c34 mask = dev_dax->align - 1; in check_vma()
114 if (dev_dax->align > PAGE_SIZE) { in __dev_dax_pte_fault()
116 dev_dax->align, fault_size); in __dev_dax_pte_fault()
120 if (fault_size != dev_dax->align) in __dev_dax_pte_fault()
149 if (dev_dax->align > PMD_SIZE) { in __dev_dax_pmd_fault()
151 dev_dax->align, fault_size); in __dev_dax_pmd_fault()
155 if (fault_size < dev_dax->align) in __dev_dax_pmd_fault()
157 else if (fault_size > dev_dax->align) in __dev_dax_pmd_fault()
194 if (dev_dax->align > PUD_SIZE) { in __dev_dax_pud_fault()
196 dev_dax->align, fault_size); in __dev_dax_pud_fault()
[all …]
/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()
/linux/drivers/nvdimm/
H A Dpfn_devs.c93 return sprintf(buf, "%ld\n", nd_pfn->align); in align_show()
130 rc = nd_size_select_store(dev, buf, &nd_pfn->align, in align_store()
139 static DEVICE_ATTR_RW(align);
307 nd_pfn->align = nd_pfn_default_alignment(); in nd_pfn_devinit()
426 static bool nd_supported_alignment(unsigned long align) in nd_supported_alignment() argument
431 if (align == 0) in nd_supported_alignment()
436 if (align == supported[i]) in nd_supported_alignment()
457 unsigned long align, start_pad, end_trunc; in nd_pfn_validate() local
489 pfn_sb->align = 0; in nd_pfn_validate()
504 align = le32_to_cpu(pfn_sb->align); in nd_pfn_validate()
[all …]
/linux/drivers/firmware/efi/libstub/
H A Dalignedmem.c26 unsigned long max, unsigned long align, in efi_allocate_pages_aligned() argument
35 if (align < EFI_ALLOC_ALIGN) in efi_allocate_pages_aligned()
36 align = EFI_ALLOC_ALIGN; in efi_allocate_pages_aligned()
38 alloc_addr = ALIGN_DOWN(max + 1, align) - 1; in efi_allocate_pages_aligned()
40 slack = align / EFI_PAGE_SIZE - 1; in efi_allocate_pages_aligned()
48 *addr = ALIGN((unsigned long)alloc_addr, align); in efi_allocate_pages_aligned()
51 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()
/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
122 .align RETPOLINE_THUNK_SIZE
196 .align 64
[all …]
/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()
H A Dphysmem_info.c186 static void die_oom(unsigned long size, unsigned long align, unsigned long min, unsigned long max) in die_oom() argument
197 size, align, min, max); in die_oom()
246 static unsigned long __physmem_alloc_range(unsigned long size, unsigned long align, in __physmem_alloc_range() argument
256 align = max(align, 8UL); in __physmem_alloc_range()
261 if (round_up(min, align) + size > pos) in __physmem_alloc_range()
263 addr = round_down(pos - size, align); in __physmem_alloc_range()
278 die_oom(size, align, min, max); in __physmem_alloc_range()
283 unsigned long align, unsigned long min, unsigned long max, in physmem_alloc_range() argument
289 addr = __physmem_alloc_range(size, align, min, max, 0, NULL, die_on_oom); in physmem_alloc_range()
296 unsigned long align) in physmem_alloc_top_down() argument
[all …]
/linux/mm/
H A Dmaccess.c26 unsigned long align = 0; in copy_from_kernel_nofault() local
29 align = (unsigned long)dst | (unsigned long)src; in copy_from_kernel_nofault()
35 if (!(align & 7)) in copy_from_kernel_nofault()
37 if (!(align & 3)) in copy_from_kernel_nofault()
39 if (!(align & 1)) in copy_from_kernel_nofault()
60 unsigned long align = 0; in copy_to_kernel_nofault() local
63 align = (unsigned long)dst | (unsigned long)src; in copy_to_kernel_nofault()
66 if (!(align & 7)) in copy_to_kernel_nofault()
68 if (!(align & 3)) in copy_to_kernel_nofault()
70 if (!(align & 1)) in copy_to_kernel_nofault()
H A Ddmapool_test.c18 size_t align; member
23 { .size = 16, .align = 16, .boundary = 0 },
24 { .size = 64, .align = 64, .boundary = 0 },
25 { .size = 256, .align = 256, .boundary = 0 },
26 { .size = 1024, .align = 1024, .boundary = 0 },
27 { .size = 4096, .align = 4096, .boundary = 0 },
28 { .size = 68, .align = 32, .boundary = 4096 },
74 parms->align, parms->boundary); in dmapool_test_block()
91 parms->size, parms->align, blocks, in dmapool_test_block()
/linux/include/linux/
H A Dmemblock.h123 void memblock_trim_memory(phys_addr_t align);
390 phys_addr_t memblock_phys_alloc_range(phys_addr_t size, phys_addr_t align,
393 phys_addr_t align, phys_addr_t start,
395 phys_addr_t memblock_phys_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid);
398 phys_addr_t align) in memblock_phys_alloc() argument
400 return memblock_phys_alloc_range(size, align, 0, in memblock_phys_alloc()
404 void *memblock_alloc_exact_nid_raw(phys_addr_t size, phys_addr_t align,
407 void *memblock_alloc_try_nid_raw(phys_addr_t size, phys_addr_t align,
410 void *memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align,
414 static __always_inline void *memblock_alloc(phys_addr_t size, phys_addr_t align) in memblock_alloc() argument
[all …]
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)
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-view.c572 .size = sizeof(long), .align = sizeof(long),
577 .size = sizeof(double), .align = sizeof(double),
583 .size = sizeof(vector128), .align = sizeof(vector128),
590 .size = sizeof(double), .align = sizeof(double),
597 .size = sizeof(u32), .align = sizeof(u32),
604 .size = sizeof(long), .align = sizeof(long),
609 .size = sizeof(double), .align = sizeof(double),
614 .size = sizeof(vector128), .align = sizeof(vector128),
619 .size = sizeof(double), .align = sizeof(double),
624 .size = sizeof(u64), .align = sizeof(u64),
[all …]
/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()

12345678910>>...47