/Linux-v4.19/tools/testing/selftests/bpf/ |
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-v4.19/mm/kasan/ |
D | kasan.c | 412 round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE), in kasan_poison_object_data() 515 rounded_up_size = round_up(cache->object_size, KASAN_SHADOW_SCALE_SIZE); in __kasan_slab_free() 543 redzone_start = round_up((unsigned long)(object + size), in kasan_kmalloc() 545 redzone_end = round_up((unsigned long)object + cache->object_size, in kasan_kmalloc() 570 redzone_start = round_up((unsigned long)(ptr + size), in kasan_kmalloc_large() 628 shadow_size = round_up(scaled_size, PAGE_SIZE); in kasan_module_alloc() 656 size_t aligned_size = round_up(global->size, KASAN_SHADOW_SCALE_SIZE); in register_global() 734 kasan_poison_shadow(addr, round_up(size, KASAN_SHADOW_SCALE_SIZE), in __asan_poison_stack_memory() 749 size_t rounded_up_size = round_up(size, KASAN_SHADOW_SCALE_SIZE); in __asan_alloca_poison() 750 size_t padding_size = round_up(size, KASAN_ALLOCA_REDZONE_SIZE) - in __asan_alloca_poison()
|
/Linux-v4.19/arch/x86/mm/ |
D | init.c | 288 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask() 301 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask() 356 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 358 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 368 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 372 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 385 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 395 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 632 next = round_up(start + 1, step_size); in memory_map_bottom_up()
|
D | kaslr.c | 140 vaddr = round_up(vaddr + 1, P4D_SIZE); in kernel_randomize_memory() 142 vaddr = round_up(vaddr + 1, PUD_SIZE); in kernel_randomize_memory()
|
D | numa_32.c | 56 end = round_up(end, PAGES_PER_SECTION); in memory_present()
|
/Linux-v4.19/sound/firewire/motu/ |
D | motu-protocol-v3.c | 218 formats->fixed_part_pcm_chunks[0] = round_up(2 + pcm_chunks[0], 4) - 2; in calculate_fixed_part() 219 formats->fixed_part_pcm_chunks[1] = round_up(2 + pcm_chunks[1], 4) - 2; in calculate_fixed_part() 222 round_up(2 + pcm_chunks[2], 4) - 2; in calculate_fixed_part() 271 pcm_chunks[i] = round_up(pcm_chunks[i], 4); in calculate_differed_part()
|
/Linux-v4.19/drivers/gpu/drm/vc4/ |
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-v4.19/drivers/firmware/efi/libstub/ |
D | random.c | 55 first_slot = round_up(md->phys_addr, align); in get_entry_num_slots() 133 target = round_up(md->phys_addr, align) + target_slot * align; in efi_random_alloc() 134 pages = round_up(size, EFI_PAGE_SIZE) / EFI_PAGE_SIZE; in efi_random_alloc()
|
D | efi-stub-helper.c | 200 size = round_up(size, EFI_ALLOC_ALIGN); in efi_high_alloc() 294 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc() 320 start = round_up(start, align); in efi_low_alloc() 349 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free() 717 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
|
/Linux-v4.19/drivers/net/wireless/mediatek/mt76/mt76x0/ |
D | dma.h | 81 FIELD_PREP(MT_TXD_INFO_LEN, round_up(skb->len, 4)) | in mt76x0_dma_skb_wrap() 86 return skb_put_padto(skb, round_up(skb->len, 4) + 4); in mt76x0_dma_skb_wrap()
|
/Linux-v4.19/drivers/net/wireless/mediatek/mt7601u/ |
D | dma.h | 80 FIELD_PREP(MT_TXD_INFO_LEN, round_up(skb->len, 4)) | in mt7601u_dma_skb_wrap() 85 return skb_put_padto(skb, round_up(skb->len, 4) + 4); in mt7601u_dma_skb_wrap()
|
/Linux-v4.19/kernel/bpf/ |
D | hashtab.c | 159 u32 size = round_up(htab->map.value_size, 8); in prealloc_init() 337 round_up(htab->map.key_size, 8); in htab_map_alloc() 341 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc() 353 cost += (u64) round_up(htab->map.value_size, 8) * in htab_map_alloc() 362 htab->map.pages = round_up(cost, PAGE_SIZE) >> PAGE_SHIFT; in htab_map_alloc() 490 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem() 517 round_up(map->key_size, 8)); in htab_map_gen_lookup() 527 return l->key + round_up(map->key_size, 8); in htab_lru_map_lookup_elem() 554 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup() 695 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value() [all …]
|
D | arraymap.c | 87 elem_size = round_up(attr->value_size, 8); in array_map_alloc() 125 cost = round_up(cost, PAGE_SIZE) >> PAGE_SHIFT; in array_map_alloc() 168 u32 elem_size = round_up(map->value_size, 8); in array_map_gen_lookup() 220 size = round_up(map->value_size, 8); in bpf_percpu_array_copy() 306 size = round_up(map->value_size, 8); in bpf_percpu_array_update() 711 u32 elem_size = round_up(map->value_size, 8); in array_of_map_gen_lookup()
|
D | local_storage.c | 217 map->map.pages = round_up(sizeof(struct bpf_cgroup_storage_map), in cgroup_storage_map_alloc() 299 pages = round_up(sizeof(struct bpf_cgroup_storage) + in bpf_cgroup_storage_alloc() 335 pages = round_up(sizeof(struct bpf_cgroup_storage) + in bpf_cgroup_storage_free()
|
/Linux-v4.19/arch/arm64/kernel/ |
D | signal.c | 74 #define BASE_SIGFRAME_SIZE round_up(sizeof(struct rt_sigframe), 16) 75 #define TERMINATOR_SIZE round_up(sizeof(struct _aarch64_ctx), 16) 76 #define EXTRA_CONTEXT_SIZE round_up(sizeof(struct extra_context), 16) 95 return round_up(max(user->size, sizeof(struct rt_sigframe)), 16); in sigframe_size() 109 size_t padded_size = round_up(size, 16); in __sigframe_alloc() 249 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16), in preserve_sve_context() 687 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe() 979 round_up(sizeof(struct frame_record), 16) + in minsigstksz_setup()
|
/Linux-v4.19/arch/x86/kernel/ |
D | check.c | 93 corruption_check_size = round_up(corruption_check_size, PAGE_SIZE); in setup_bios_corruption_check() 97 start = clamp_t(phys_addr_t, round_up(start, PAGE_SIZE), in setup_bios_corruption_check()
|
/Linux-v4.19/drivers/net/ethernet/netronome/nfp/bpf/ |
D | offload.c | 263 nfp_prog->stack_depth = round_up(prog->aux->stack_depth, 4); in nfp_bpf_translate() 384 if (round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc() 385 round_up(offmap->map.value_size, 8) > bpf->maps.max_elem_sz) { in nfp_bpf_map_alloc() 387 round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc() 388 round_up(offmap->map.value_size, 8), in nfp_bpf_map_alloc() 501 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output()
|
/Linux-v4.19/drivers/staging/erofs/ |
D | erofs_fs.h | 169 #define EROFS_XATTR_ALIGN(size) round_up(size, sizeof(struct erofs_xattr_entry)) 226 #define Z_EROFS_VLE_EXTENT_ALIGN(size) round_up(size, \
|
/Linux-v4.19/drivers/staging/rtl8192e/rtl8192e/ |
D | r8192E_firmware.c | 115 if (round_up(fw->size, 4) > MAX_FW_SIZE - padding) { in _rtl92e_fw_prepare() 128 blob->size = round_up(fw->size, 4) + padding; in _rtl92e_fw_prepare()
|
/Linux-v4.19/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
D | nv25.c | 34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv25_fb_tile_comp()
|
D | nv35.c | 34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv35_fb_tile_comp()
|
D | nv36.c | 34 u32 tags = round_up(tiles / fb->ram->parts, 0x40); in nv36_fb_tile_comp()
|
D | nv40.c | 34 u32 tags = round_up(tiles / fb->ram->parts, 0x100); in nv40_fb_tile_comp()
|
/Linux-v4.19/fs/btrfs/ |
D | file.c | 529 num_bytes = round_up(write_bytes + pos - start_pos, in btrfs_dirty_pages() 1477 + round_up(pos + write_bytes - start_pos, in lock_and_cleanup_extent_if_need() 1537 lockend = round_up(pos + *write_bytes, in check_can_nocow() 1623 reserve_bytes = round_up(write_bytes + sector_offset, in btrfs_buffered_write() 1645 reserve_bytes = round_up(write_bytes + in btrfs_buffered_write() 1698 dirty_sectors = round_up(copied + sector_offset, in btrfs_buffered_write() 1738 release_bytes = round_up(copied + sector_offset, in btrfs_buffered_write() 1761 lockend = round_up(pos + copied, in btrfs_buffered_write() 1936 end_pos = round_up(pos + count, in btrfs_file_write_iter() 1943 if (start_pos > round_up(oldsize, fs_info->sectorsize)) in btrfs_file_write_iter() [all …]
|
/Linux-v4.19/drivers/bus/ |
D | uniphier-system-bus.c | 83 end = round_up(end, 0x00020000); in uniphier_system_bus_add_bank() 93 end = round_up(end, mask); in uniphier_system_bus_add_bank()
|