Home
last modified time | relevance | path

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

12345678910>>...15

/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/kernel/bpf/
H A 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 …]
H A Dlocal_storage.c203 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy()
237 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update()
486 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
490 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/x86/mm/
H A 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()
685 next = round_up(start + 1, step_size); in memory_map_bottom_up()
/OK3568_Linux_fs/kernel/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))
/OK3568_Linux_fs/kernel/drivers/firmware/efi/libstub/
H A 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()
H A 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()
/OK3568_Linux_fs/kernel/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_width, utile_w); in reloc_tex()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/mm/kasan/
H A Dcommon.c264 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_object_data()
353 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in ____kasan_slab_free()
495 redzone_start = round_up((unsigned long)(object + size), in ____kasan_kmalloc()
497 redzone_end = round_up((unsigned long)(object + cache->object_size), in ____kasan_kmalloc()
546 redzone_start = round_up((unsigned long)(ptr + size), in __kasan_kmalloc_large()
H A Dshadow.c132 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison()
346 size = round_up(size, KASAN_GRANULE_SIZE); in kasan_poison_vmalloc()
500 shadow_size = round_up(scaled_size, PAGE_SIZE); in kasan_module_alloc()
H A Dgeneric.c209 size_t aligned_size = round_up(global->size, KASAN_GRANULE_SIZE); in register_global()
283 size_t rounded_up_size = round_up(size, KASAN_GRANULE_SIZE); in __asan_alloca_poison()
284 size_t padding_size = round_up(size, KASAN_ALLOCA_REDZONE_SIZE) - in __asan_alloca_poison()
/OK3568_Linux_fs/kernel/arch/arm64/kernel/
H A 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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/crypto/rockchip/
H A Drk_crypto_bignum.c16 #define BYTES2WORDS(bytes) (round_up((bytes), sizeof(u32)) / sizeof(u32))
40 bn->data = kzalloc(round_up(max_size, sizeof(u32)), GFP_KERNEL); in rk_bn_alloc()
/OK3568_Linux_fs/kernel/arch/x86/kernel/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/bpf/
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/
H A 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()
/OK3568_Linux_fs/kernel/fs/erofs/
H A Derofs_fs.h200 #define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry))
315 (round_up(size, sizeof(struct z_erofs_vle_decompressed_index)) + \
/OK3568_Linux_fs/kernel/fs/ext4/
H A Dverity.c34 return round_up(inode->i_size, 65536); in ext4_verity_metadata_pos()
181 const u64 desc_pos = round_up(ext4_verity_metadata_pos(inode) + in ext4_write_verity_descriptor()
185 const u64 desc_size_pos = round_up(desc_end + sizeof(desc_size_disk), in ext4_write_verity_descriptor()
/OK3568_Linux_fs/kernel/drivers/staging/rtl8192e/rtl8192e/
H A 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()
/OK3568_Linux_fs/kernel/drivers/media/platform/mtk-jpeg/
H A 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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/netronome/nfp/
H A 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()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/gem/selftests/
H A 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>>...15