/linux-6.6.21/net/wireless/ |
D | radiotap.c | 26 [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-6.6.21/lib/ |
D | checksum_kunit.c | 247 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() 255 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; 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() 280 for (len = 0; len < MAX_LEN && (align + len) < TEST_BUFLEN; in test_csum_all_carry_inputs() 286 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs() [all …]
|
D | strnlen_user.c | 26 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-6.6.21/drivers/clk/tegra/ |
D | cvb.c | 26 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-6.6.21/include/trace/events/ |
D | cma.h | 41 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; 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) 84 __entry->align = align; 93 __entry->align, [all …]
|
D | percpu.h | 15 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-6.6.21/drivers/gpu/drm/ |
D | drm_suballoc.c | 62 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-6.6.21/arch/arm/tools/ |
D | syscallnr.sh | 5 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-6.6.21/arch/xtensa/kernel/ |
D | align.S | 182 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-6.6.21/drivers/dax/ |
D | dax-private.h | 36 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()
|
D | device.c | 34 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-6.6.21/drivers/firmware/efi/libstub/ |
D | alignedmem.c | 25 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()
|
D | randomalloc.c | 22 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(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
|
/linux-6.6.21/arch/sparc/lib/ |
D | bitext.c | 28 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-6.6.21/arch/x86/lib/ |
D | retpoline.S | 35 .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 217 .align 64 [all …]
|
/linux-6.6.21/include/linux/ |
D | cfi_types.h | 23 #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)
|
D | memblock.h | 120 void memblock_trim_memory(phys_addr_t align); 401 phys_addr_t memblock_phys_alloc_range(phys_addr_t size, phys_addr_t align, 404 phys_addr_t align, phys_addr_t start, 406 phys_addr_t memblock_phys_alloc_try_nid(phys_addr_t size, phys_addr_t align, int nid); 409 phys_addr_t align) in memblock_phys_alloc() argument 411 return memblock_phys_alloc_range(size, align, 0, in memblock_phys_alloc() 415 void *memblock_alloc_exact_nid_raw(phys_addr_t size, phys_addr_t align, 418 void *memblock_alloc_try_nid_raw(phys_addr_t size, phys_addr_t align, 421 void *memblock_alloc_try_nid(phys_addr_t size, phys_addr_t align, 425 static __always_inline void *memblock_alloc(phys_addr_t size, phys_addr_t align) in memblock_alloc() argument [all …]
|
/linux-6.6.21/fs/xfs/ |
D | xfs_iomap.h | 37 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()
|
/linux-6.6.21/arch/s390/boot/ |
D | kaslr.c | 107 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()
|
D | physmem_info.c | 186 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-6.6.21/mm/ |
D | maccess.c | 26 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()
|
D | dmapool_test.c | 18 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-6.6.21/drivers/nvdimm/ |
D | pfn_devs.c | 93 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-6.6.21/rust/alloc/ |
D | alloc.rs | 30 fn __rust_alloc(size: usize, align: usize) -> *mut u8; in __rust_alloc() 33 fn __rust_dealloc(ptr: *mut u8, size: usize, align: usize); in __rust_dealloc() 36 fn __rust_realloc(ptr: *mut u8, old_size: usize, align: usize, new_size: usize) -> *mut u8; in __rust_realloc() 39 fn __rust_alloc_zeroed(size: usize, align: usize) -> *mut u8; in __rust_alloc_zeroed() 100 __rust_alloc(layout.size(), layout.align()) in alloc() 119 unsafe { __rust_dealloc(ptr, layout.size(), layout.align()) } in dealloc() 138 unsafe { __rust_realloc(ptr, layout.size(), layout.align(), new_size) } in realloc() 172 unsafe { __rust_alloc_zeroed(layout.size(), layout.align()) } in alloc_zeroed() 209 old_size if old_layout.align() == new_layout.align() => unsafe { in grow_impl() 302 new_size if old_layout.align() == new_layout.align() => unsafe { in shrink() [all …]
|
/linux-6.6.21/arch/loongarch/lib/ |
D | memset.S | 122 .align 4 129 .align 4 132 .align 4 136 .align 4 140 .align 4 145 .align 4 149 .align 4 154 .align 4 159 .align 4 164 .align 4
|