/linux/tools/testing/selftests/bpf/progs/ |
A D | test_xdp_meta.c | 8 #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/kernel/bpf/ |
A D | hashtab.c | 251 round_up(htab->map.key_size, 8) + in htab_free_prealloced_timers() 299 l->key + round_up(key_size, 8)); in prealloc_lru_pop() 502 round_up(htab->map.key_size, 8); in htab_map_alloc() 675 round_up(map->key_size, 8)); in htab_map_gen_lookup() 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() 970 size = round_up(size, 8); in alloc_htab_elem() 989 size = round_up(size, 8); in alloc_htab_elem() 1634 size = round_up(value_size, 8); in __htab_map_lookup_and_delete_batch() 2188 size = round_up(map->value_size, 8); in bpf_percpu_hash_copy() [all …]
|
A D | local_storage.c | 201 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/drivers/gpu/drm/i915/selftests/ |
A D | i915_random.c | 99 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/drivers/firmware/efi/libstub/ |
A D | randomalloc.c | 36 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()
|
A D | relocate.c | 53 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()
|
A D | file.c | 189 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/drivers/net/wireless/quantenna/qtnfmac/ |
A D | qlink_util.h | 25 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/arch/x86/mm/ |
A D | init.c | 331 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/drivers/gpu/drm/i915/ |
A D | i915_gem_gtt.c | 132 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/drivers/gpu/drm/vc4/ |
A D | vc4_validate.c | 182 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/mm/kasan/ |
A D | common.c | 267 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()
|
A D | generic.c | 212 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()
|
A D | shadow.c | 138 kasan_poison(addr, round_up(size, KASAN_GRANULE_SIZE), tag, false); in kasan_unpoison() 357 size = round_up(size, KASAN_GRANULE_SIZE); in kasan_poison_vmalloc() 511 shadow_size = round_up(scaled_size, PAGE_SIZE); in kasan_module_alloc()
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
A D | dma.h | 72 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/arch/arm64/kernel/ |
A D | signal.c | 64 #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/arch/x86/kernel/ |
A D | check.c | 113 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/fs/ext4/ |
A D | verity.c | 34 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/drivers/net/ethernet/netronome/nfp/bpf/ |
A D | offload.c | 363 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/drivers/staging/rtl8192e/rtl8192e/ |
A D | r8192E_firmware.c | 106 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/drivers/media/platform/mtk-jpeg/ |
A D | mtk_jpeg_enc_hw.c | 121 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/drivers/net/ethernet/netronome/nfp/ |
A D | ccm_mbox.c | 181 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()
|
/linux/fs/erofs/ |
A D | erofs_fs.h | 241 #define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry)) 378 (round_up(size, sizeof(struct z_erofs_vle_decompressed_index)) + \
|
/linux/fs/cachefiles/ |
A D | io.c | 304 off = round_up(off, cache->bsize); in cachefiles_prepare_read() 315 to = round_up(to, cache->bsize); in cachefiles_prepare_read() 345 *_len = round_up(down + len, PAGE_SIZE); in cachefiles_prepare_write()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A D | sdio_txrx.c | 91 len += round_up(intr->rx.len[qid][i] + 4, 4); in mt76s_rx_run_queue() 119 e->skb = mt76s_build_rx_skb(buf, len, round_up(len + 4, 4)); in mt76s_rx_run_queue() 123 buf += round_up(len + 4, 4); in mt76s_rx_run_queue()
|