/Linux-v6.6/tools/testing/selftests/bpf/progs/ |
D | test_xdp_meta.c | 8 #define round_up(x, y) ((((x) - 1) | __round_mask(x, y)) + 1) macro 22 data_meta + round_up(ETH_ALEN, 4) > data) in ing_cls() 37 ret = bpf_xdp_adjust_meta(ctx, -round_up(ETH_ALEN, 4)); in ing_xdp() 46 data_meta + round_up(ETH_ALEN, 4) > data) in ing_xdp()
|
/Linux-v6.6/arch/loongarch/include/asm/ |
D | kasan.h | 46 #define XKVRANGE_VC_SIZE round_up(KFENCE_AREA_END - MODULES_VADDR + 1, PGDIR_SIZE) 52 #define KASAN_SHADOW_START round_up(KFENCE_AREA_END, PGDIR_SIZE) 54 #define KASAN_SHADOW_END round_up(KASAN_SHADOW_START + KASAN_SHADOW_SIZE, PGDIR_SIZE)
|
/Linux-v6.6/drivers/gpu/drm/i915/selftests/ |
D | i915_random.c | 99 BUG_ON(round_up(start, align) > round_down(end - len, align)); in igt_random_offset() 101 range = round_down(end - len, align) - round_up(start, align); in igt_random_offset() 108 return round_up(start, align); in igt_random_offset()
|
/Linux-v6.6/drivers/firmware/efi/libstub/ |
D | relocate.c | 44 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc_above() 69 start = round_up(start, align); in efi_low_alloc_above() 138 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
|
D | randomalloc.c | 37 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots() 74 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc() 121 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
|
D | unaccepted_memory.c | 46 unaccepted_end = round_up(unaccepted_end, EFI_UNACCEPTED_UNIT_SIZE); in allocate_unaccepted_bitmap() 132 arch_accept_memory(start, round_up(start, unit_size)); in process_unaccepted_memory() 133 start = round_up(start, unit_size); in process_unaccepted_memory()
|
D | efi-stub.c | 270 efi_virt_base = round_up(efi_virt_base, SZ_2M); in efi_get_virtmap() 272 efi_virt_base = round_up(efi_virt_base, SZ_64K); in efi_get_virtmap()
|
/Linux-v6.6/drivers/net/wireless/quantenna/qtnfmac/ |
D | qlink_util.h | 25 hdr = skb_put(skb, sizeof(*hdr) + round_up(arr_len, QLINK_ALIGN)); in qtnf_cmd_skb_put_tlv_arr() 67 round_up(le16_to_cpu(_tlv->len), QLINK_ALIGN))) 71 (const u8 *)(_start) + round_up(_datalen, QLINK_ALIGN))
|
/Linux-v6.6/arch/x86/mm/ |
D | init.c | 356 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask() 369 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask() 424 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 426 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 436 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 440 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 453 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 463 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 712 next = round_up(start + 1, step_size); in memory_map_bottom_up()
|
/Linux-v6.6/drivers/gpu/drm/i915/ |
D | i915_gem_gtt.c | 135 GEM_BUG_ON(round_up(start, align) > round_down(end - len, align)); in random_offset() 137 range = round_down(end - len, align) - round_up(start, align); in random_offset() 152 return round_up(start, align); in random_offset() 215 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
|
/Linux-v6.6/kernel/bpf/ |
D | hashtab.c | 234 bpf_obj_free_timer(htab->map.record, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_timers() 261 bpf_obj_free_fields(htab->map.record, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_fields() 331 u32 size = round_up(htab->map.value_size, 8); in prealloc_init() 502 round_up(htab->map.key_size, 8); in htab_map_alloc() 506 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc() 583 round_up(htab->map.value_size, 8), true); in htab_map_alloc() 693 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem() 720 round_up(map->key_size, 8)); in htab_map_gen_lookup() 732 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem() 769 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup() [all …]
|
D | local_storage.c | 201 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy() 235 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update() 488 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size() 492 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
|
/Linux-v6.6/mm/kasan/ |
D | common.c | 143 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_object_data() 229 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in ____kasan_slab_free() 362 redzone_start = round_up((unsigned long)(object + size), in ____kasan_kmalloc() 364 redzone_end = round_up((unsigned long)(object + cache->object_size), in ____kasan_kmalloc() 413 redzone_start = round_up((unsigned long)(ptr + size), in __kasan_kmalloc_large()
|
D | hw_tags.c | 350 redzone_start = round_up((unsigned long)start + size, in __kasan_unpoison_vmalloc() 352 redzone_size = round_up(redzone_start, PAGE_SIZE) - redzone_start; in __kasan_unpoison_vmalloc()
|
/Linux-v6.6/drivers/gpu/drm/vc4/ |
D | vc4_validate.c | 190 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 194 aligned_width = round_up(width, utile_w * 8); in vc4_check_tex_size() 195 aligned_height = round_up(height, utile_h * 8); in vc4_check_tex_size() 198 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 199 aligned_height = round_up(height, utile_h); in vc4_check_tex_size() 712 aligned_width = round_up(level_width, utile_w * 8); in reloc_tex() 713 aligned_height = round_up(level_height, utile_h * 8); in reloc_tex() 716 aligned_width = round_up(level_width, utile_w); in reloc_tex() 717 aligned_height = round_up(level_height, utile_h); in reloc_tex() 720 aligned_width = round_up(level_width, utile_w); in reloc_tex()
|
/Linux-v6.6/arch/s390/boot/ |
D | kaslr.c | 118 _min = round_up(_min, align); in iterate_valid_positions() 122 start = round_up(start, align); in iterate_valid_positions() 154 start = round_up(skip_res->end, align); in iterate_valid_positions()
|
/Linux-v6.6/drivers/net/wireless/mediatek/mt7601u/ |
D | dma.h | 72 FIELD_PREP(MT_TXD_INFO_LEN, round_up(skb->len, 4)) | in mt7601u_dma_skb_wrap() 77 return skb_put_padto(skb, round_up(skb->len, 4) + 4); in mt7601u_dma_skb_wrap()
|
/Linux-v6.6/arch/x86/kernel/ |
D | check.c | 113 corruption_check_size = round_up(corruption_check_size, PAGE_SIZE); in setup_bios_corruption_check() 117 start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), in setup_bios_corruption_check()
|
/Linux-v6.6/fs/cachefiles/ |
D | key.c | 27 return x ? round_up(ilog2(x) + 1, 4) / 4 : 0; in how_many_hex_digits() 71 n = round_up(keylen, 4); in cachefiles_cook_key()
|
D | io.c | 226 if (round_up(off, granularity) >= start + len) in cachefiles_query_occupancy() 238 off = round_up(off, granularity); in cachefiles_query_occupancy() 445 off = round_up(off, cache->bsize); in cachefiles_do_prepare_read() 464 to = round_up(to, cache->bsize); in cachefiles_do_prepare_read() 532 *_len = round_up(down + len, PAGE_SIZE); in __cachefiles_prepare_write()
|
/Linux-v6.6/arch/arm64/kernel/ |
D | signal.c | 67 #define BASE_SIGFRAME_SIZE round_up(sizeof(struct rt_sigframe), 16) 68 #define TERMINATOR_SIZE round_up(sizeof(struct _aarch64_ctx), 16) 69 #define EXTRA_CONTEXT_SIZE round_up(sizeof(struct extra_context), 16) 88 return round_up(max(user->size, sizeof(struct rt_sigframe)), 16); in sigframe_size() 102 size_t padded_size = round_up(size, 16); in __sigframe_alloc() 252 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16), in preserve_sve_context() 422 __put_user_error(round_up(ZA_SIG_CONTEXT_SIZE(vq), 16), in preserve_za_context() 509 __put_user_error(round_up(ZT_SIG_CONTEXT_SIZE(1), 16), in preserve_zt_context() 1022 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe() 1337 round_up(sizeof(struct frame_record), 16) + in minsigstksz_setup()
|
/Linux-v6.6/fs/ext4/ |
D | verity.c | 34 return round_up(inode->i_size, 65536); in ext4_verity_metadata_pos() 174 const u64 desc_pos = round_up(ext4_verity_metadata_pos(inode) + in ext4_write_verity_descriptor() 178 const u64 desc_size_pos = round_up(desc_end + sizeof(desc_size_disk), in ext4_write_verity_descriptor()
|
/Linux-v6.6/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_firmware.c | 101 if (round_up(fw->size, 4) > MAX_FW_SIZE - padding) { in _rtl92e_fw_prepare() 114 blob->size = round_up(fw->size, 4) + padding; in _rtl92e_fw_prepare()
|
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/bpf/ |
D | offload.c | 363 if (round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc() 364 round_up(offmap->map.value_size, 8) > bpf->maps.max_elem_sz) { in nfp_bpf_map_alloc() 366 round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc() 367 round_up(offmap->map.value_size, 8), in nfp_bpf_map_alloc() 477 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output()
|
/Linux-v6.6/tools/include/linux/ |
D | math.h | 11 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) macro
|