Home
last modified time | relevance | path

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

12345678910>>...14

/Linux-v5.15/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-v5.15/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-v5.15/drivers/firmware/efi/libstub/
Drandomalloc.c36 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots()
79 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc()
115 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
Drelocate.c53 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc_above()
78 start = round_up(start, align); in efi_low_alloc_above()
147 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
Dfile.c189 if (round_up(alloc_size + size, EFI_ALLOC_ALIGN) > in handle_cmdline_files()
190 round_up(alloc_size, EFI_ALLOC_ALIGN)) { in handle_cmdline_files()
/Linux-v5.15/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-v5.15/arch/s390/boot/
Dstartup.c163 vmemmap_off = round_up(ident_map_size, _REGION3_SIZE); in setup_kernel_memory_layout()
203 vmemmap_off = round_up(ident_map_size, rte_size); in setup_kernel_memory_layout()
219 vmemmap_off = round_up(vspace_left - pages * sizeof(struct page), rte_size); in setup_kernel_memory_layout()
221 vmemmap_off = min(vmemmap_off, round_up(ident_map_size, rte_size)); in setup_kernel_memory_layout()
247 size = round_up(ident_map_size / 8, _SEGMENT_SIZE); in setup_vmalloc_size()
/Linux-v5.15/kernel/bpf/
Dhashtab.c251 round_up(htab->map.key_size, 8) + in htab_free_prealloced_timers()
299 l->key + round_up(key_size, 8)); in prealloc_lru_pop()
323 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()
648 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem()
675 round_up(map->key_size, 8)); in htab_map_gen_lookup()
687 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem()
724 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup()
732 round_up(htab->map.key_size, 8) + in check_and_free_timer()
[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()
482 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
486 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
/Linux-v5.15/arch/x86/mm/
Dinit.c331 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask()
344 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
399 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
401 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
411 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
415 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
428 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
438 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
687 next = round_up(start + 1, step_size); in memory_map_bottom_up()
/Linux-v5.15/drivers/gpu/drm/i915/
Di915_gem_gtt.c132 GEM_BUG_ON(round_up(start, align) > round_down(end - len, align)); in random_offset()
134 range = round_down(end - len, align) - round_up(start, align); in random_offset()
149 return round_up(start, align); in random_offset()
210 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
/Linux-v5.15/drivers/gpu/drm/vc4/
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_width, utile_w); in reloc_tex()
/Linux-v5.15/mm/kasan/
Dcommon.c267 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_object_data()
359 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in ____kasan_slab_free()
501 redzone_start = round_up((unsigned long)(object + size), in ____kasan_kmalloc()
503 redzone_end = round_up((unsigned long)(object + cache->object_size), in ____kasan_kmalloc()
552 redzone_start = round_up((unsigned long)(ptr + size), in __kasan_kmalloc_large()
Dgeneric.c212 size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE); in register_global()
286 size_t rounded_up_size = round_up(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison()
287 size_t padding_size = round_up(size, KASAN_ALLOCA_REDZONE_SIZE) - in __asan_alloca_poison()
Dshadow.c138 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison()
352 size = round_up(size, KASAN_GRANULE_SIZE); in kasan_poison_vmalloc()
506 shadow_size = round_up(scaled_size, PAGE_SIZE); in kasan_module_alloc()
/Linux-v5.15/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-v5.15/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-v5.15/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()
239 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16), in preserve_sve_context()
680 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe()
976 round_up(sizeof(struct frame_record), 16) + in minsigstksz_setup()
/Linux-v5.15/fs/ext4/
Dverity.c34 return round_up(inode->i_size, 65536); in ext4_verity_metadata_pos()
175 const u64 desc_pos = round_up(ext4_verity_metadata_pos(inode) + in ext4_write_verity_descriptor()
179 const u64 desc_size_pos = round_up(desc_end + sizeof(desc_size_disk), in ext4_write_verity_descriptor()
/Linux-v5.15/drivers/staging/rtl8192e/rtl8192e/
Dr8192E_firmware.c106 if (round_up(fw->size, 4) > MAX_FW_SIZE - padding) { in _rtl92e_fw_prepare()
119 blob->size = round_up(fw->size, 4) + padding; in _rtl92e_fw_prepare()
/Linux-v5.15/fs/erofs/
Derofs_fs.h224 #define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry))
352 (round_up(size, sizeof(struct z_erofs_vle_decompressed_index)) + \
/Linux-v5.15/drivers/media/platform/mtk-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-v5.15/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-v5.15/arch/s390/include/asm/
Dkasan.h37 kasan_needs = round_up(physmem / 8, PAGE_SIZE); in kasan_estimate_memory_needs()
/Linux-v5.15/drivers/net/ethernet/netronome/nfp/
Dccm_mbox.c181 len = round_up(skb->len, 4); in nfp_ccm_mbox_copy_in()
321 data += round_up(length, 4); in nfp_ccm_mbox_copy_out()
486 max_reply_size = round_up(max_reply_size, 4); in nfp_ccm_mbox_msg_prepare()
503 max_len = max(max_reply_size, round_up(skb->len, 4)); in nfp_ccm_mbox_msg_prepare()
700 max_size = round_up(max_size, 4); in nfp_ccm_mbox_msg_alloc()

12345678910>>...14