Home
last modified time | relevance | path

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

12345678910>>...44

/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/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 …]
H A Dclk-tegra124-dfll-fcpu.c524 struct rail_alignment *align) in get_alignment_from_dt() argument
528 &align->step_uv)) in get_alignment_from_dt()
529 align->step_uv = 0; in get_alignment_from_dt()
533 &align->offset_uv)) in get_alignment_from_dt()
534 align->offset_uv = 0; in get_alignment_from_dt()
538 struct rail_alignment *align) in get_alignment_from_regulator() argument
545 align->offset_uv = regulator_list_voltage(reg, 0); in get_alignment_from_regulator()
546 align->step_uv = regulator_get_linear_step(reg); in get_alignment_from_regulator()
558 struct rail_alignment align; in tegra124_dfll_fcpu_probe() local
585 get_alignment_from_dt(&pdev->dev, &align); in tegra124_dfll_fcpu_probe()
[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
84 unsigned int align; member
116 static inline bool dax_align_valid(unsigned long align) in dax_align_valid() argument
118 if (align == PUD_SIZE && IS_ENABLED(CONFIG_HAVE_ARCH_TRANSPARENT_HUGEPAGE_PUD)) in dax_align_valid()
120 if (align == PMD_SIZE && has_transparent_hugepage()) in dax_align_valid()
122 if (align == PAGE_SIZE) in dax_align_valid()
127 static inline bool dax_align_valid(unsigned long align) in dax_align_valid() argument
129 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/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()
/linux/mm/
H A Dmaccess.c31 unsigned long align = 0; in copy_from_kernel_nofault()
34 align = (unsigned long)dst | (unsigned long)src; in copy_from_kernel_nofault()
40 if (!(align & 7)) in copy_from_kernel_nofault()
42 if (!(align & 3)) in copy_from_kernel_nofault()
44 if (!(align & 1)) in copy_from_kernel_nofault()
66 unsigned long align = 0; in copy_to_kernel_nofault()
69 align = (unsigned long)dst | (unsigned long)src; in copy_to_kernel_nofault()
72 if (!(align & 7)) in copy_to_kernel_nofault()
74 if (!(align & 3)) in copy_to_kernel_nofault()
76 if (!(align in copy_to_kernel_nofault()
26 unsigned long align = 0; copy_from_kernel_nofault() local
60 unsigned long align = 0; copy_to_kernel_nofault() local
[all...]
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 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)
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 …]
/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/arch/loongarch/lib/
H A Dmemset.S123 .align 4
130 .align 4
133 .align 4
137 .align 4
141 .align 4
146 .align 4
150 .align 4
155 .align 4
160 .align 4
165 .align 4
/linux/tools/perf/util/include/linux/
H A Dlinkage.h14 #define __ALIGN .align 4,0x90
37 #define SYM_ENTRY(name, linkage, align...) \ argument
39 align ASM_NL \
45 #define SYM_START(name, linkage, align...) \ argument
46 SYM_ENTRY(name, linkage, align)
126 #define SYM_TYPED_START(name, linkage, align...) \ argument
127 SYM_START(name, linkage, align)
/linux/arch/m68k/sun3/
H A Dsun3dvma.c139 static inline unsigned long get_baddr(int len, unsigned long align) in get_baddr() argument
159 if(align > DVMA_PAGE_SIZE) in get_baddr()
160 newlen = len + ((hole->end - len) & (align-1)); in get_baddr()
266 unsigned long dvma_map_align(unsigned long kaddr, int len, int align) in dvma_map_align() argument
287 if(align == 0) in dvma_map_align()
288 align = DVMA_PAGE_SIZE; in dvma_map_align()
290 align = ((align + (DVMA_PAGE_SIZE-1)) & DVMA_PAGE_MASK); in dvma_map_align()
292 baddr = get_baddr(len, align); in dvma_map_align()
321 void *dvma_malloc_align(unsigned long len, unsigned long align) in dvma_malloc_align() argument
336 if((baddr = (unsigned long)dvma_map_align(kaddr, len, align)) == 0) { in dvma_malloc_align()

12345678910>>...44