Home
last modified time | relevance | path

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

12345678910>>...20

/linux-6.15/drivers/firmware/cirrus/test/
H A Dcs_dsp_mock_wmfw.c136 info_len = round_up(info_len, 4); in cs_dsp_mock_wmfw_add_info()
222 bytes_needed += round_up(name_len + sizeof(u8), sizeof(__le32)); in cs_dsp_mock_wmfw_start_alg_info_block()
223 bytes_needed += round_up(description_len + sizeof(__le16), sizeof(__le32)); in cs_dsp_mock_wmfw_start_alg_info_block()
245 offset = round_up(4 + struct_size_t(struct wmfw_short_string, data, name_len), in cs_dsp_mock_wmfw_start_alg_info_block()
308 bytes_needed += round_up(shortname_len + sizeof(u8), sizeof(__le32)); in cs_dsp_mock_wmfw_add_coeff_desc()
309 bytes_needed += round_up(fullname_len + sizeof(u8), sizeof(__le32)); in cs_dsp_mock_wmfw_add_coeff_desc()
310 bytes_needed += round_up(description_len + sizeof(__le16), sizeof(__le32)); in cs_dsp_mock_wmfw_add_coeff_desc()
325 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, shortname_len), in cs_dsp_mock_wmfw_add_coeff_desc()
333 ple32 += round_up(struct_size_t(struct wmfw_short_string, data, fullname_len), in cs_dsp_mock_wmfw_add_coeff_desc()
341 ple32 += round_up(struct_size_t(struct wmfw_long_string, data, description_len), in cs_dsp_mock_wmfw_add_coeff_desc()
[all …]
H A Dcs_dsp_test_bin.c628 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()
1534 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_multi_onepacked()
1598 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_multi_onepacked_unordered()
1665 patch_pos_words = round_up(alg_base_words + word_offsets[i], 4); in bin_patch_multi_onepacked_sparse_unordered()
1685 patch_pos_words = round_up(alg_base_words + word_offsets[i], 4); in bin_patch_multi_onepacked_sparse_unordered()
[all …]
/linux-6.15/tools/testing/selftests/bpf/
H A Dbpf_arena_alloc.h9 #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-6.15/arch/loongarch/include/asm/
H A Dkasan.h54 #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-6.15/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()
/linux-6.15/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))
/linux-6.15/drivers/firmware/efi/libstub/
H A Drelocate.c44 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 Drandomalloc.c40 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 Dunaccepted_memory.c46 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()
/linux-6.15/kernel/bpf/
H A Dhashtab.c496 round_up(htab->map.key_size, 8); in htab_map_alloc()
673 return l->key + round_up(map->key_size, 8); in htab_map_lookup_elem()
700 round_up(map->key_size, 8)); in htab_map_gen_lookup()
712 return l->key + round_up(map->key_size, 8); in __htab_lru_map_lookup_elem()
749 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup()
1041 size = round_up(size, 8); in alloc_htab_elem()
1045 l_new->key + round_up(key_size, 8), in alloc_htab_elem()
1137 l_old->key + round_up(key_size, 8), in htab_map_update_elem()
1725 size = round_up(value_size, 8); in __htab_map_lookup_and_delete_batch()
2383 size = round_up(map->value_size, 8); in bpf_percpu_hash_copy()
[all …]
H A Dlocal_storage.c201 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()
488 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
492 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
/linux-6.15/drivers/gpu/drm/i915/
H A Di915_gem_gtt.c134 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-6.15/arch/x86/mm/
H A Dpti.c338 addr = round_up(addr + 1, PUD_SIZE); in pti_clone_pgtable()
345 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable()
382 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable()
389 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable()
409 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable()
H A Dinit.c358 unsigned long end = round_up(mr[i].end, PMD_SIZE); in adjust_range_page_size_mask()
371 unsigned long end = round_up(mr[i].end, PUD_SIZE); in adjust_range_page_size_mask()
426 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
428 end_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
438 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
442 end_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
455 start_pfn = round_up(pfn, PFN_DOWN(PUD_SIZE)); in split_mem_range()
465 start_pfn = round_up(pfn, PFN_DOWN(PMD_SIZE)); in split_mem_range()
719 next = round_up(start + 1, step_size); in memory_map_bottom_up()
/linux-6.15/drivers/gpu/drm/vc4/
H A Dvc4_validate.c190 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-6.15/drivers/gpu/drm/tests/
H A Ddrm_buddy_test.c121 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-6.15/mm/kasan/
H A Dcommon.c163 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_new_object()
243 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in poison_slab_object()
365 redzone_start = round_up((unsigned long)(object + size), in poison_kmalloc_redzone()
367 redzone_end = round_up((unsigned long)(object + cache->object_size), in poison_kmalloc_redzone()
416 redzone_start = round_up((unsigned long)(ptr + size), KASAN_GRANULE_SIZE); in poison_kmalloc_large_redzone()
/linux-6.15/arch/s390/boot/
H A Dkaslr.c118 _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-6.15/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()
/linux-6.15/fs/bcachefs/
H A Dvstructs.h30 (round_up(__vstruct_bytes(_type, _u64s), \
41 (round_up(vstruct_bytes(_s), 512 << (_sector_block_bits)) >> 9)
/linux-6.15/drivers/media/platform/verisilicon/
H A Dhantro_hw.h526 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-6.15/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()
/linux-6.15/drivers/firmware/microchip/
H A Dmpfs-auto-update.c120 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-6.15/fs/cachefiles/
H A Dkey.c27 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-6.15/fs/ext4/
H A Dverity.c34 return round_up(inode->i_size, 65536); in ext4_verity_metadata_pos()
174 const u64 desc_pos = round_up(ext4_verity_metadata_pos(inode) + in ext4_write_verity_descriptor()
178 const u64 desc_size_pos = round_up(desc_end + sizeof(desc_size_disk), in ext4_write_verity_descriptor()

12345678910>>...20