Home
last modified time | relevance | path

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

12345678910>>...16

/Linux-v6.1/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-v6.1/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-v6.1/drivers/firmware/efi/libstub/
Drandomalloc.c36 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots()
71 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc()
117 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
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()
/Linux-v6.1/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-v6.1/kernel/bpf/
Dhashtab.c235 round_up(htab->map.key_size, 8) + in htab_free_prealloced_timers()
255 bpf_map_free_kptrs(&htab->map, elem->key + round_up(htab->map.key_size, 8)); in htab_free_prealloced_kptrs()
322 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
499 round_up(htab->map.key_size, 8); in htab_map_alloc()
503 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
576 round_up(htab->map.value_size, 8), true); in htab_map_alloc()
682 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem()
709 round_up(map->key_size, 8)); in htab_map_gen_lookup()
721 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem()
758 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()
481 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
485 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
/Linux-v6.1/arch/x86/mm/
Dinit.c340 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask()
353 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
408 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
410 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
420 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
424 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
437 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
447 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
696 next = round_up(start + 1, step_size); in memory_map_bottom_up()
/Linux-v6.1/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-v6.1/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()
359 redzone_start = round_up((unsigned long)(object + size), in ____kasan_kmalloc()
361 redzone_end = round_up((unsigned long)(object + cache->object_size), in ____kasan_kmalloc()
410 redzone_start = round_up((unsigned long)(ptr + size), in __kasan_kmalloc_large()
Dhw_tags.c290 redzone_start = round_up((unsigned long)start + size, in __kasan_unpoison_vmalloc()
292 redzone_size = round_up(redzone_start, PAGE_SIZE) - redzone_start; in __kasan_unpoison_vmalloc()
Dshadow.c138 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison()
530 size = round_up(size, KASAN_GRANULE_SIZE); in __kasan_poison_vmalloc()
546 shadow_size = round_up(scaled_size, PAGE_SIZE); in kasan_alloc_module_shadow()
/Linux-v6.1/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-v6.1/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-v6.1/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-v6.1/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()
458 off = round_up(off, cache->bsize); in cachefiles_prepare_read()
476 to = round_up(to, cache->bsize); in cachefiles_prepare_read()
520 *_len = round_up(down + len, PAGE_SIZE); in __cachefiles_prepare_write()
/Linux-v6.1/arch/arm64/kernel/
Dsignal.c64 #define BASE_SIGFRAME_SIZE round_up(sizeof(struct rt_sigframe), 16)
65 #define TERMINATOR_SIZE round_up(sizeof(struct _aarch64_ctx), 16)
66 #define EXTRA_CONTEXT_SIZE round_up(sizeof(struct extra_context), 16)
85 return round_up(max(user->size, sizeof(struct rt_sigframe)), 16); in sigframe_size()
99 size_t padded_size = round_up(size, 16); in __sigframe_alloc()
246 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16), in preserve_sve_context()
376 __put_user_error(round_up(ZA_SIG_CONTEXT_SIZE(vq), 16), in preserve_za_context()
846 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe()
1159 round_up(sizeof(struct frame_record), 16) + in minsigstksz_setup()
/Linux-v6.1/fs/ext4/
Dverity.c34 return round_up(inode->i_size, 65536); in ext4_verity_metadata_pos()
176 const u64 desc_pos = round_up(ext4_verity_metadata_pos(inode) + in ext4_write_verity_descriptor()
180 const u64 desc_size_pos = round_up(desc_end + sizeof(desc_size_disk), in ext4_write_verity_descriptor()
/Linux-v6.1/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-v6.1/drivers/media/platform/mediatek/jpeg/
Dmtk_jpeg_enc_hw.c121 img_stride = round_up(width, 16); in mtk_jpeg_set_enc_params()
125 img_stride = round_up(width * 2, 32); in mtk_jpeg_set_enc_params()
/Linux-v6.1/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-v6.1/tools/include/linux/
Dmath.h11 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) macro
/Linux-v6.1/drivers/net/can/spi/mcp251xfd/
Dmcp251xfd-tx.c111 len += round_up(len_sanitized, sizeof(u32)); in mcp251xfd_tx_obj_from_skb()
113 len += round_up(cfd->len, sizeof(u32)); in mcp251xfd_tx_obj_from_skb()
/Linux-v6.1/arch/s390/include/asm/
Dkasan.h37 kasan_needs = round_up(physmem / 8, PAGE_SIZE); in kasan_estimate_memory_needs()

12345678910>>...16