| /linux/drivers/firmware/cirrus/test/ |
| H A D | cs_dsp_mock_wmfw.c | 137 info_len = round_up(info_len, 4); in cs_dsp_mock_wmfw_add_info() 225 bytes_needed += round_up(name_len + sizeof(u8), sizeof(__le32)); in cs_dsp_mock_wmfw_start_alg_info_block() 226 bytes_needed += round_up(description_len + sizeof(__le16), sizeof(__le32)); in cs_dsp_mock_wmfw_start_alg_info_block() 248 offset = round_up(4 + struct_size_t(struct wmfw_short_string, data, name_len), in cs_dsp_mock_wmfw_start_alg_info_block() 311 bytes_needed += round_up(shortname_len + sizeof(u8), sizeof(__le32)); in cs_dsp_mock_wmfw_add_coeff_desc() 312 bytes_needed += round_up(fullname_len + sizeof(u8), sizeof(__le32)); in cs_dsp_mock_wmfw_add_coeff_desc() 313 bytes_needed += round_up(description_len + sizeof(__le16), sizeof(__le32)); in cs_dsp_mock_wmfw_add_coeff_desc() 328 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, shortname_len), in cs_dsp_mock_wmfw_add_coeff_desc() 336 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, fullname_len), in cs_dsp_mock_wmfw_add_coeff_desc() 344 ple32 += round_up(struct_size_t(struct wmfw_long_string, data, description_len), in cs_dsp_mock_wmfw_add_coeff_desc() [all …]
|
| H A D | cs_dsp_test_bin.c | 628 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed() 687 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_1_single_trailing() 767 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_2_single_trailing() 856 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_3_single_trailing() 952 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_2_trailing() 1034 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_3_trailing() 1117 packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4; in bin_patch_1_single_leading_1_packed() 1196 packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4; in bin_patch_2_single_leading_1_packed() 1283 packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4; in bin_patch_2_leading_1_packed() 1364 packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4; in bin_patch_3_single_leading_1_packed() [all …]
|
| /linux/tools/testing/selftests/bpf/ |
| H A D | bpf_arena_alloc.h | 9 #ifndef round_up 10 #define round_up(x, y) ((((x)-1) | __round_mask(x, y))+1) macro 28 size = round_up(size, 8); in bpf_alloc()
|
| /linux/arch/loongarch/include/asm/ |
| H A D | kasan.h | 54 #define XKVRANGE_VC_SIZE round_up(KFENCE_AREA_END - MODULES_VADDR + 1, PGDIR_SIZE) 60 #define KASAN_SHADOW_START round_up(KFENCE_AREA_END, PGDIR_SIZE) 62 #define KASAN_SHADOW_END (round_up(KASAN_SHADOW_START + KASAN_SHADOW_SIZE, PGDIR_SIZE) - 1)
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H 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/net/wireless/quantenna/qtnfmac/ |
| H 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/drivers/firmware/efi/libstub/ |
| H A D | relocate.c | 44 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc_above() 72 start = round_up(start, align); in efi_low_alloc_above() 139 nr_pages = round_up(alloc_size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_relocate_kernel()
|
| H A D | randomalloc.c | 40 first_slot = round_up(max(md->phys_addr, alloc_min), align); in get_entry_num_slots() 82 size = round_up(size, EFI_ALLOC_ALIGN); in efi_random_alloc() 130 target = round_up(max_t(u64, md->phys_addr, alloc_min), align) + target_slot * align; in efi_random_alloc()
|
| H A D | unaccepted_memory.c | 46 unaccepted_end = round_up(unaccepted_end, EFI_UNACCEPTED_UNIT_SIZE); in allocate_unaccepted_bitmap() 132 arch_accept_memory(start, round_up(start, unit_size)); in process_unaccepted_memory() 133 start = round_up(start, unit_size); in process_unaccepted_memory()
|
| H A D | efi-stub.c | 257 efi_virt_base = round_up(efi_virt_base, SZ_2M); in efi_get_virtmap() 259 efi_virt_base = round_up(efi_virt_base, SZ_64K); in efi_get_virtmap()
|
| /linux/drivers/gpu/drm/i915/ |
| H A D | i915_gem_gtt.c | 134 GEM_BUG_ON(round_up(start, align) > round_down(end - len, align)); in random_offset() 136 range = round_down(end - len, align) - round_up(start, align); in random_offset() 151 return round_up(start, align); in random_offset() 214 if (unlikely(round_up(start, alignment) > round_down(end - size, alignment))) in i915_gem_gtt_insert()
|
| /linux/drivers/gpu/drm/tests/ |
| H A D | drm_buddy_test.c | 121 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps); in drm_test_buddy_alloc_range_bias() 143 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps); in drm_test_buddy_alloc_range_bias() 180 bias_start = round_up(prandom_u32_state(&prng) % (mm_size - ps), ps); in drm_test_buddy_alloc_range_bias() 181 bias_end = round_up(bias_start + prandom_u32_state(&prng) % (mm_size - bias_start), ps); in drm_test_buddy_alloc_range_bias() 186 u32 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps); in drm_test_buddy_alloc_range_bias() 206 bias_start -= round_up(prandom_u32_state(&prng) % bias_start, ps); in drm_test_buddy_alloc_range_bias() 208 bias_end += round_up(prandom_u32_state(&prng) % (mm_size - bias_end), ps); in drm_test_buddy_alloc_range_bias() 238 bias_start = round_up(prandom_u32_state(&prng) % (mm_size - ps), ps); in drm_test_buddy_alloc_range_bias() 239 bias_end = round_up(bias_start + prandom_u32_state(&prng) % (mm_size - bias_start), ps); in drm_test_buddy_alloc_range_bias() 244 size = max(round_up(prandom_u32_state(&prng) % bias_rem, ps), ps); in drm_test_buddy_alloc_range_bias()
|
| /linux/drivers/gpu/drm/vc4/ |
| H A D | vc4_validate.c | 190 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 194 aligned_width = round_up(width, utile_w * 8); in vc4_check_tex_size() 195 aligned_height = round_up(height, utile_h * 8); in vc4_check_tex_size() 198 aligned_width = round_up(width, utile_w); in vc4_check_tex_size() 199 aligned_height = round_up(height, utile_h); in vc4_check_tex_size() 709 aligned_width = round_up(level_width, utile_w * 8); in reloc_tex() 710 aligned_height = round_up(level_height, utile_h * 8); in reloc_tex() 713 aligned_width = round_up(level_width, utile_w); in reloc_tex() 714 aligned_height = round_up(level_height, utile_h); in reloc_tex() 717 aligned_width = round_up(level_width, utile_w); in reloc_tex()
|
| /linux/arch/x86/mm/ |
| H A D | pti.c | 345 addr = round_up(addr + 1, PUD_SIZE); in pti_clone_pgtable() 352 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable() 389 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable() 396 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable() 416 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable()
|
| H A D | init.c | 356 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask() 369 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask() 424 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 426 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 436 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 440 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 453 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range() 463 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range() 717 next = round_up(start + 1, step_size); in memory_map_bottom_up()
|
| /linux/drivers/staging/media/atomisp/pci/ |
| H A D | sh_css_param_dvs.h | 25 #define DVS_NUM_BLOCKS_X(X) round_up(DIV_ROUND_UP((X), DVS_BLOCKDIM_X), 2) 47 round_up(sizeof(gdc_warp_param_mem_t), HIVE_ISP_DDR_WORD_BYTES)
|
| /linux/mm/kasan/ |
| H A D | common.c | 172 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_new_object() 248 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in poison_slab_object() 388 redzone_start = round_up((unsigned long)(object + size), in poison_kmalloc_redzone() 390 redzone_end = round_up((unsigned long)(object + cache->object_size), in poison_kmalloc_redzone() 439 redzone_start = round_up((unsigned long)(ptr + size), KASAN_GRANULE_SIZE); in poison_kmalloc_large_redzone()
|
| /linux/arch/s390/boot/ |
| H A D | kaslr.c | 118 _min = round_up(_min, align); in iterate_valid_positions() 122 start = round_up(start, align); in iterate_valid_positions() 154 start = round_up(skip_res->end, align); in iterate_valid_positions()
|
| /linux/drivers/net/wireless/mediatek/mt7601u/ |
| H 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/drivers/media/platform/verisilicon/ |
| H A D | hantro_hw.h | 526 round_up((width + CBS_LUMA - 1) / CBS_LUMA, CBS_SIZE); in hantro_hevc_luma_compressed_size() 529 return round_up(pic_width_in_cbsy * pic_height_in_cbsy, CBS_SIZE); in hantro_hevc_luma_compressed_size() 536 round_up((width + CBS_CHROMA_W - 1) / CBS_CHROMA_W, CBS_SIZE); in hantro_hevc_chroma_compressed_size() 539 return round_up(pic_width_in_cbsc * pic_height_in_cbsc, CBS_SIZE); in hantro_hevc_chroma_compressed_size()
|
| /linux/drivers/firmware/microchip/ |
| H A D | mpfs-auto-update.c | 120 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_prepare() 206 size_t erase_size = round_up(AUTO_UPDATE_DIRECTORY_SIZE, (u64)priv->flash->erasesize); in mpfs_auto_update_set_image_address() 275 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_write_bitstream() 305 erase.len = round_up(size, (size_t)priv->flash->erasesize); in mpfs_auto_update_write_bitstream()
|
| /linux/arch/x86/kernel/ |
| H 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/kernel/bpf/ |
| H 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() 481 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size() 485 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
|
| /linux/fs/cachefiles/ |
| H A D | key.c | 27 return x ? round_up(ilog2(x) + 1, 4) / 4 : 0; in how_many_hex_digits() 71 n = round_up(keylen, 4); in cachefiles_cook_key()
|
| /linux/drivers/staging/media/atomisp/pci/isp/kernels/anr/anr_1.0/ |
| H A D | ia_css_anr_types.h | 18 #define ANR_ELEMENT_BITS round_up(ANR_BPP, 8)
|