Home
last modified time | relevance | path

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

12345678910>>...14

/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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))
/kernel/linux/linux-5.10/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()
Dalignedmem.c35 size = round_up(size, EFI_ALLOC_ALIGN); in efi_allocate_pages_aligned()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/
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-5.10/arch/x86/mm/
Dinit.c334 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask()
347 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
402 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
404 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
414 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
418 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
431 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
441 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
679 next = round_up(start + 1, step_size); in memory_map_bottom_up()
/kernel/linux/linux-5.10/kernel/bpf/
Dhashtab.c267 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
450 round_up(htab->map.key_size, 8); in htab_map_alloc()
454 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
466 cost += (u64) round_up(htab->map.value_size, 8) * in htab_map_alloc()
599 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem()
626 round_up(map->key_size, 8)); in htab_map_gen_lookup()
638 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem()
675 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup()
813 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value()
834 u32 size = round_up(htab->map.value_size, 8); in pcpu_init_value()
[all …]
Dlocal_storage.c200 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy()
234 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update()
483 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
487 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/mm/kasan/
Dcommon.c304 round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE), in kasan_poison_object_data()
415 rounded_up_size = round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE); in __kasan_slab_free()
447 redzone_start = round_up((unsigned long)(object + size), in __kasan_kmalloc()
449 redzone_end = round_up((unsigned long)object + cache->object_size, in __kasan_kmalloc()
493 redzone_start = round_up((unsigned long)(ptr + size), in kasan_kmalloc_large()
554 shadow_size = round_up(scaled_size, PAGE_SIZE); in kasan_module_alloc()
788 size = round_up(size, KASAN_SHADOW_SCALE_SIZE); in kasan_poison_vmalloc()
Dgeneric.c208 size_t aligned_size = round_up(global->size, KASAN_SHADOW_SCALE_SIZE); in register_global()
282 size_t rounded_up_size = round_up(size, KASAN_SHADOW_SCALE_SIZE); in __asan_alloca_poison()
283 size_t padding_size = round_up(size, KASAN_ALLOCA_REDZONE_SIZE) - in __asan_alloca_poison()
/kernel/linux/linux-5.10/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()
677 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe()
979 round_up(sizeof(struct frame_record), 16) + in minsigstksz_setup()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/erofs/
Derofs_fs.h187 #define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry))
284 (round_up(size, sizeof(struct z_erofs_vle_decompressed_index)) + \
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/fs/ext4/
Dverity.c34 return round_up(inode->i_size, 65536); in ext4_verity_metadata_pos()
178 const u64 desc_pos = round_up(ext4_verity_metadata_pos(inode) + in ext4_write_verity_descriptor()
182 const u64 desc_size_pos = round_up(desc_end + sizeof(desc_size_disk), in ext4_write_verity_descriptor()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/
Di915_gem_object_blt.c34 count = div_u64(round_up(vma->size, block_size), block_size); in intel_emit_vma_fill_blt()
36 size = round_up(size, PAGE_SIZE); in intel_emit_vma_fill_blt()
256 count = div_u64(round_up(dst->size, block_size), block_size); in intel_emit_vma_copy_blt()
258 size = round_up(size, PAGE_SIZE); in intel_emit_vma_copy_blt()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_object_blt.c252 sz = round_up(sz, PAGE_SIZE); in igt_fill_blt_thread()
253 phys_sz = round_up(phys_sz, PAGE_SIZE); in igt_fill_blt_thread()
370 sz = round_up(sz, PAGE_SIZE); in igt_copy_blt_thread()
371 phys_sz = round_up(phys_sz, PAGE_SIZE); in igt_copy_blt_thread()

12345678910>>...14