Home
last modified time | relevance | path

Searched refs:round_up (Results 1 - 25 of 755) sorted by relevance

12345678910>>...31

/kernel/linux/linux-5.10/tools/testing/selftests/bpf/progs/
H A Dtest_xdp_meta.c8 #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 Dtest_xdp_meta.c8 #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 Dkasan.h46 #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 Drandomalloc.c36 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 Drelocate.c44 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 Dkasan.h46 #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 Di915_random.c99 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 Di915_random.c99 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 Dqlink_util.h25 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 Drandomalloc.c37 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 Drelocate.c44 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 Dunaccepted_memory.c46 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 Dqlink_util.h25 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 Dhashtab.c267 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 Dinit.c361 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 Dpti.c333 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 Dinit.c356 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 Di915_gem_gtt.c138 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 Di915_gem_gtt.c135 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 Dcommon.c143 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 Dhashtab.c237 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 Dkaslr.c118 _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 Dvc4_validate.c182 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 Dvc4_validate.c190 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 Ddma.h72 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()

Completed in 17 milliseconds

12345678910>>...31