Home
last modified time | relevance | path

Searched refs:round_up (Results 1 – 25 of 426) sorted by relevance

12345678910>>...18

/linux-6.6.21/tools/testing/selftests/bpf/progs/
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()
/linux-6.6.21/arch/loongarch/include/asm/
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)
/linux-6.6.21/drivers/gpu/drm/i915/selftests/
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()
/linux-6.6.21/drivers/net/wireless/quantenna/qtnfmac/
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))
/linux-6.6.21/drivers/firmware/efi/libstub/
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()
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()
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()
Defi-stub.c270 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-6.6.21/arch/x86/mm/
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()
712 next = round_up(start + 1, step_size); in memory_map_bottom_up()
/linux-6.6.21/drivers/gpu/drm/i915/
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()
/linux-6.6.21/kernel/bpf/
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()
505 round_up(htab->map.key_size, 8); in htab_map_alloc()
509 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
586 round_up(htab->map.value_size, 8), true); in htab_map_alloc()
696 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem()
723 round_up(map->key_size, 8)); in htab_map_gen_lookup()
735 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem()
772 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup()
[all …]
Dlocal_storage.c201 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-6.6.21/mm/kasan/
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()
Dhw_tags.c350 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-6.6.21/drivers/gpu/drm/vc4/
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_width, utile_w); in reloc_tex()
/linux-6.6.21/arch/s390/boot/
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()
/linux-6.6.21/drivers/net/wireless/mediatek/mt7601u/
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()
/linux-6.6.21/arch/x86/kernel/
Dcheck.c113 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-6.6.21/fs/cachefiles/
Dkey.c27 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()
Dio.c226 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-6.6.21/arch/arm64/kernel/
Dsignal.c67 #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-6.6.21/fs/ext4/
Dverity.c34 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-6.6.21/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_firmware.c101 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-6.6.21/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c363 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-6.6.21/tools/include/linux/
Dmath.h11 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) macro

12345678910>>...18