/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/ |
H A 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()
|
/kernel/linux/linux-6.6/tools/testing/selftests/bpf/progs/ |
H A 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()
|
/kernel/linux/linux-5.10/arch/loongarch/include/asm/ |
H A D | kasan.h | 46 #define XKVRANGE_VC_SIZE round_up(VMEMMAP_END - MODULES_VADDR + 1, PGDIR_SIZE) 52 #define KASAN_SHADOW_START round_up(VMEMMAP_END, PGDIR_SIZE) 54 #define KASAN_SHADOW_END round_up(KASAN_SHADOW_START + KASAN_SHADOW_SIZE, PGDIR_SIZE)
|
/kernel/linux/linux-5.10/drivers/firmware/efi/libstub/ |
H A D | randomalloc.c | 36 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots() 70 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc() 106 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
|
H A 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()
|
/kernel/linux/linux-6.6/arch/loongarch/include/asm/ |
H A 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)
|
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/selftests/ |
H A 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()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/selftests/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/net/wireless/quantenna/qtnfmac/ |
H A 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))
|
/kernel/linux/linux-6.6/drivers/firmware/efi/libstub/ |
H A D | randomalloc.c | 37 first_slot = round_up(max(md->phys_addr, alloc_min), align); in get_entry_num_slots() 75 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc() 123 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
|
H A 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()
|
H A 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()
|
/kernel/linux/linux-6.6/drivers/net/wireless/quantenna/qtnfmac/ |
H A 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))
|
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | hashtab.c | 267 u32 size = round_up(htab->map.value_size, 8); in prealloc_init() 456 round_up(htab->map.key_size, 8); in htab_map_alloc() 460 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc() 470 cost += (u64) round_up(htab->map.value_size, 8) * in htab_map_alloc() 603 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem() 630 round_up(map->key_size, 8)); in htab_map_gen_lookup() 642 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem() 679 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup() 817 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value() 838 u32 size = round_up(hta in pcpu_init_value() [all...] |
/kernel/linux/linux-5.10/arch/x86/mm/ |
H A D | init.c | 361 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask() 374 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask() 429 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 431 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 441 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 445 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 458 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 468 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 617 * In the bottom-up case, round_up(x, 0) returns 0 though too, which in get_new_step_size() 706 next = round_up(star in memory_map_bottom_up() [all...] |
H A D | pti.c | 333 addr = round_up(addr + 1, PUD_SIZE); in pti_clone_pgtable() 340 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable() 377 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable() 384 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable() 404 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable()
|
/kernel/linux/linux-6.6/arch/x86/mm/ |
H A 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() 612 * In the bottom-up case, round_up(x, 0) returns 0 though too, which in get_new_step_size() 712 next = round_up(star in memory_map_bottom_up() [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/ |
H A D | i915_gem_gtt.c | 138 GEM_BUG_ON(round_up(start, align) > round_down(end - len, align)); in random_offset() 140 range = round_down(end - len, align) - round_up(start, align); in random_offset() 155 return round_up(start, align); in random_offset() 216 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
|
/kernel/linux/linux-6.6/drivers/gpu/drm/i915/ |
H A 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()
|
/kernel/linux/linux-6.6/mm/kasan/ |
H A 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()
|
/kernel/linux/linux-6.6/kernel/bpf/ |
H A D | hashtab.c | 237 bpf_obj_free_timer(htab->map.record, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_timers() 264 bpf_obj_free_fields(htab->map.record, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_fields() 334 u32 size = round_up(htab->map.value_size, 8); in prealloc_init() 511 round_up(htab->map.key_size, 8); in htab_map_alloc() 515 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc() 590 round_up(htab->map.value_size, 8), true); in htab_map_alloc() 700 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem() 727 round_up(map->key_size, 8)); in htab_map_gen_lookup() 739 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem() 776 round_up(ma in htab_lru_map_gen_lookup() [all...] |
/kernel/linux/linux-6.6/arch/s390/boot/ |
H A 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()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/vc4/ |
H A D | vc4_validate.c | 182 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 186 aligned_width = round_up(width, utile_w * 8); in vc4_check_tex_size() 187 aligned_height = round_up(height, utile_h * 8); in vc4_check_tex_size() 190 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 191 aligned_height = round_up(height, utile_h); in vc4_check_tex_size() 700 aligned_width = round_up(level_width, utile_w * 8); in reloc_tex() 701 aligned_height = round_up(level_height, utile_h * 8); in reloc_tex() 704 aligned_width = round_up(level_width, utile_w); in reloc_tex() 705 aligned_height = round_up(level_height, utile_h); in reloc_tex() 708 aligned_width = round_up(level_widt in reloc_tex() [all...] |
/kernel/linux/linux-6.6/drivers/gpu/drm/vc4/ |
H A 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_widt in reloc_tex() [all...] |
/kernel/linux/linux-5.10/drivers/net/wireless/mediatek/mt7601u/ |
H A 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()
|