Home
last modified time | relevance | path

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

1234567891011

/Linux-v5.4/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.4/kernel/bpf/
Dhashtab.c151 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
334 round_up(htab->map.key_size, 8); in htab_map_alloc()
338 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
350 cost += (u64) round_up(htab->map.value_size, 8) * in htab_map_alloc()
487 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem()
514 round_up(map->key_size, 8)); in htab_map_gen_lookup()
526 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem()
563 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup()
704 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value()
765 l_new->key + round_up(key_size, 8)); in alloc_htab_elem()
[all …]
Dlocal_storage.c190 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy()
225 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update()
466 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
470 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
/Linux-v5.4/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_object_blt.c40 sz = round_up(sz, PAGE_SIZE); in igt_fill_blt()
41 phys_sz = round_up(phys_sz, PAGE_SIZE); in igt_fill_blt()
125 sz = round_up(sz, PAGE_SIZE); in igt_copy_blt()
126 phys_sz = round_up(phys_sz, PAGE_SIZE); in igt_copy_blt()
Di915_gem_client_blt.c34 sz = round_up(sz, PAGE_SIZE); in igt_client_fill()
35 phys_sz = round_up(phys_sz, PAGE_SIZE); in igt_client_fill()
/Linux-v5.4/arch/x86/mm/
Dinit.c290 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask()
303 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
358 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
360 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
370 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
374 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
387 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
397 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
634 next = round_up(start + 1, step_size); in memory_map_bottom_up()
/Linux-v5.4/sound/firewire/motu/
Dmotu-protocol-v3.c217 formats->fixed_part_pcm_chunks[0] = round_up(2 + pcm_chunks[0], 4) - 2; in calculate_fixed_part()
218 formats->fixed_part_pcm_chunks[1] = round_up(2 + pcm_chunks[1], 4) - 2; in calculate_fixed_part()
221 round_up(2 + pcm_chunks[2], 4) - 2; in calculate_fixed_part()
270 pcm_chunks[i] = round_up(pcm_chunks[i], 4); in calculate_differed_part()
/Linux-v5.4/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.4/drivers/firmware/efi/libstub/
Drandom.c51 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots()
129 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc()
130 pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; in efi_random_alloc()
Defi-stub-helper.c202 size = round_up(size, EFI_ALLOC_ALIGN); in efi_high_alloc()
296 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc_above()
317 start = round_up(start, align); in efi_low_alloc_above()
346 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free()
720 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
/Linux-v5.4/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.4/arch/arm64/kernel/
Dsignal.c63 #define BASE_SIGFRAME_SIZE round_up(sizeof(struct rt_sigframe), 16)
64 #define TERMINATOR_SIZE round_up(sizeof(struct _aarch64_ctx), 16)
65 #define EXTRA_CONTEXT_SIZE round_up(sizeof(struct extra_context), 16)
84 return round_up(max(user->size, sizeof(struct rt_sigframe)), 16); in sigframe_size()
98 size_t padded_size = round_up(size, 16); in __sigframe_alloc()
238 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16), in preserve_sve_context()
671 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe()
963 round_up(sizeof(struct frame_record), 16) + in minsigstksz_setup()
/Linux-v5.4/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.4/mm/kasan/
Dcommon.c353 round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE), in kasan_poison_object_data()
464 rounded_up_size = round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE); in __kasan_slab_free()
496 redzone_start = round_up((unsigned long)(object + size), in __kasan_kmalloc()
498 redzone_end = round_up((unsigned long)object + cache->object_size, in __kasan_kmalloc()
542 redzone_start = round_up((unsigned long)(ptr + size), in kasan_kmalloc_large()
602 shadow_size = round_up(scaled_size, PAGE_SIZE); in kasan_module_alloc()
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()
/Linux-v5.4/fs/erofs/
Derofs_fs.h183 #define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry))
280 (round_up(size, sizeof(struct z_erofs_vle_decompressed_index)) + \
/Linux-v5.4/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()
/Linux-v5.4/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.4/drivers/net/ethernet/netronome/nfp/bpf/
Doffload.c359 if (round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc()
360 round_up(offmap->map.value_size, 8) > bpf->maps.max_elem_sz) { in nfp_bpf_map_alloc()
362 round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc()
363 round_up(offmap->map.value_size, 8), in nfp_bpf_map_alloc()
473 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output()
/Linux-v5.4/fs/btrfs/
Ddelalloc-space.c145 len = round_up(start + len, fs_info->sectorsize) - in btrfs_check_data_free_space()
177 len = round_up(start + len, fs_info->sectorsize) - in btrfs_free_reserved_data_space_noquota()
200 len = round_up(start + len, root->fs_info->sectorsize) - in btrfs_free_reserved_data_space()
Dfile.c530 num_bytes = round_up(write_bytes + pos - start_pos, in btrfs_dirty_pages()
1495 + round_up(pos + write_bytes - start_pos, in lock_and_cleanup_extent_if_need()
1563 lockend = round_up(pos + *write_bytes, in check_can_nocow()
1640 reserve_bytes = round_up(write_bytes + sector_offset, in btrfs_buffered_write()
1662 reserve_bytes = round_up(write_bytes + in btrfs_buffered_write()
1715 dirty_sectors = round_up(copied + sector_offset, in btrfs_buffered_write()
1755 release_bytes = round_up(copied + sector_offset, in btrfs_buffered_write()
1788 lockend = round_up(pos + copied, in btrfs_buffered_write()
1964 end_pos = round_up(pos + count, in btrfs_file_write_iter()
1971 if (start_pos > round_up(oldsize, fs_info->sectorsize)) in btrfs_file_write_iter()
[all …]
/Linux-v5.4/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()
/Linux-v5.4/drivers/gpu/drm/nouveau/nvkm/subdev/fb/
Dnv25.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv25_fb_tile_comp()
Dnv35.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv35_fb_tile_comp()
Dnv36.c34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv36_fb_tile_comp()

1234567891011