Home
last modified time | relevance | path

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

12345678910>>...16

/linux/drivers/firmware/cirrus/test/
H A Dcs_dsp_mock_wmfw.c137 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 Dcs_dsp_test_bin.c634 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed()
693 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_1_single_trailing()
773 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_2_single_trailing()
862 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_3_single_trailing()
958 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_2_trailing()
1040 patch_pos_words = round_up(alg_base_words + param->offset_words, 4); in bin_patch_1_packed_3_trailing()
1123 packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4; in bin_patch_1_single_leading_1_packed()
1202 packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4; in bin_patch_2_single_leading_1_packed()
1289 packed_patch_pos_words = round_up(alg_base_words + param->offset_words, 4) + 4; in bin_patch_2_leading_1_packed()
1370 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 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/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/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/mm/kasan/
H A Dcommon.c173 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in __kasan_poison_new_object()
249 kasan_poison(object, round_up(cache->object_size, KASAN_GRANULE_SIZE), in poison_slab_object()
386 redzone_start = round_up((unsigned long)(object + size), in poison_kmalloc_redzone()
388 redzone_end = round_up((unsigned long)(object + cache->object_size), in poison_kmalloc_redzone()
437 redzone_start = round_up((unsigned long)(ptr + size), KASAN_GRANULE_SIZE); in poison_kmalloc_large_redzone()
616 new_size = round_up(new_size, KASAN_GRANULE_SIZE); in __kasan_vrealloc()
617 old_size = round_up(old_size, KASAN_GRANULE_SIZE); in __kasan_vrealloc()
/linux/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/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/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/arch/x86/mm/
H A Dpti.c345 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()
/linux/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/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/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/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/kernel/bpf/
H A Dlocal_storage.c206 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_copy()
246 size = round_up(_map->value_size, 8); in bpf_percpu_cgroup_storage_update()
492 *pages = round_up(sizeof(struct bpf_cgroup_storage) + size, in bpf_cgroup_storage_calculate_size()
496 *pages = round_up(round_up(size, 8) * num_possible_cpus(), in bpf_cgroup_storage_calculate_size()
H A Dhashtab.c187 return l->key + round_up(key_size, 8); in htab_elem_value()
331 u32 size = round_up(htab->map.value_size, 8); in prealloc_init()
459 if (percpu && round_up(attr->value_size, 8) > PCPU_MIN_UNIT_SIZE) in htab_map_alloc_check()
584 round_up(htab->map.key_size, 8); in htab_map_alloc()
588 htab->elem_size += round_up(htab->map.value_size, 8); in htab_map_alloc()
651 round_up(htab->map.value_size, 8), true); in htab_map_alloc()
784 round_up(map->key_size, 8)); in htab_map_gen_lookup()
833 round_up(map->key_size, 8)); in htab_lru_map_gen_lookup()
1024 u32 size = round_up(htab->map.value_size, 8); in pcpu_copy_value()
1139 size = round_up(size, 8); in alloc_htab_elem()
[all …]
/linux/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/lib/math/
H A Dtest_mul_u64_u64_div_u64.c13 typedef struct { u64 a; u64 b; u64 d; u64 result; uint round_up;} test_params; member
123 expected_result += test_values[i].round_up; in test_run()
/linux/drivers/net/ethernet/netronome/nfp/bpf/
H A Doffload.c361 if (round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc()
362 round_up(offmap->map.value_size, 8) > bpf->maps.max_elem_sz) { in nfp_bpf_map_alloc()
364 round_up(offmap->map.key_size, 8) + in nfp_bpf_map_alloc()
365 round_up(offmap->map.value_size, 8), in nfp_bpf_map_alloc()
476 &cbe->data[round_up(pkt_size, 4)], data_size, in nfp_bpf_event_output()
/linux/drivers/gpu/drm/imagination/
H A Dpvr_hwrt.c269 info.tile_max_x = round_up(info.num_tiles_x, 2) - 1; in hwrt_init_common_fw_structure()
270 info.tile_max_y = round_up(info.num_tiles_y, 2) - 1; in hwrt_init_common_fw_structure()
273 info.mtile_x[0] = round_up(DIV_ROUND_UP(info.num_tiles_x, 4), 4); in hwrt_init_common_fw_structure()
274 info.mtile_y[0] = round_up(DIV_ROUND_UP(info.num_tiles_y, 4), 4); in hwrt_init_common_fw_structure()
/linux/arch/arm64/kernel/
H A Dsignal.c82 #define TERMINATOR_SIZE round_up(sizeof(struct _aarch64_ctx), 16)
83 #define EXTRA_CONTEXT_SIZE round_up(sizeof(struct extra_context), 16)
146 return round_up(max(user->size, sizeof(struct rt_sigframe)), 16); in sigframe_size()
160 size_t padded_size = round_up(size, 16); in __sigframe_alloc()
382 __put_user_error(round_up(SVE_SIG_CONTEXT_SIZE(vq), 16), in preserve_sve_context()
548 __put_user_error(round_up(ZA_SIG_CONTEXT_SIZE(vq), 16), in preserve_za_context()
624 __put_user_error(round_up(ZT_SIG_CONTEXT_SIZE(1), 16), in preserve_zt_context()
1348 extra_size = sfp + round_up(user->size, 16) - userp; in setup_sigframe()
1686 round_up(sizeof(struct frame_record), 16) + in minsigstksz_setup()
/linux/drivers/net/ethernet/netronome/nfp/
H A 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/drivers/media/platform/rockchip/rkvdec/
H A Drkvdec-vp9.c373 aligned_height = round_up(buf->vp9.height, 64); in get_mv_base_addr()
374 aligned_pitch = round_up(buf->vp9.width * buf->vp9.bit_depth, 512) / 8; in get_mv_base_addr()
390 aligned_height = round_up(ref_buf->vp9.height, 64); in config_ref_registers()
399 aligned_pitch = round_up(ref_buf->vp9.width * ref_buf->vp9.bit_depth, 512) / 8; in config_ref_registers()
512 aligned_height = round_up(ctx->decoded_fmt.fmt.pix_mp.height, 64); in config_registers()
514 aligned_pitch = round_up(ctx->decoded_fmt.fmt.pix_mp.width * in config_registers()
676 aligned_width = round_up(dec_params->frame_width_minus_1 + 1, 64); in validate_dec_params()
677 aligned_height = round_up(dec_params->frame_height_minus_1 + 1, 64); in validate_dec_params()

12345678910>>...16