| /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 …]
|
| /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/mm/kasan/ |
| H A D | common.c | 173 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()
|
| H A D | hw_tags.c | 375 redzone_start = round_up((unsigned long)start + size, in __kasan_unpoison_vmalloc() 377 redzone_size = round_up(redzone_start, PAGE_SIZE) - redzone_start; in __kasan_unpoison_vmalloc()
|
| /linux/drivers/firmware/efi/libstub/ |
| 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 | mem.c | 124 nr_pages = round_up(size, EFI_ALLOC_ALIGN) / EFI_PAGE_SIZE; in efi_free() 164 size = round_up(size, EFI_ALLOC_ALIGN); in efi_low_alloc_above() 192 start = round_up(start, align); in efi_low_alloc_above()
|
| 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()
|
| /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/arch/x86/mm/ |
| H A D | pti.c | 350 addr = round_up(addr + 1, PUD_SIZE); in pti_clone_pgtable() 357 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable() 394 addr = round_up(addr + 1, PMD_SIZE); in pti_clone_pgtable() 401 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable() 421 addr = round_up(addr + 1, PAGE_SIZE); in pti_clone_pgtable()
|
| /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()
|
| H A D | startup.c | 303 #define FIXMAP_SIZE round_up(MEMCPY_REAL_SIZE + ABS_LOWCORE_MAP_SIZE, sizeof(struct lowcore)) 313 vsize = round_up(SZ_2G + max_mappable, rte_size) + in get_vmem_size() 314 round_up(vmemmap_size, rte_size) + in get_vmem_size() 470 size = round_up(ident_map_size / 8, _SEGMENT_SIZE); in setup_vmalloc_size()
|
| /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/firmware/microchip/ |
| H A D | mpfs-auto-update.c | 116 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_prepare() 202 size_t erase_size = round_up(AUTO_UPDATE_DIRECTORY_SIZE, (u64)priv->flash->erasesize); in mpfs_auto_update_set_image_address() 271 erase_size = round_up(erase_size, (u64)priv->flash->erasesize); in mpfs_auto_update_write_bitstream() 301 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/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/lib/math/ |
| H A D | test_mul_u64_u64_div_u64.c | 13 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/kernel/bpf/ |
| H A D | local_storage.c | 206 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 D | hashtab.c | 187 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/drivers/net/ethernet/netronome/nfp/bpf/ |
| H A D | offload.c | 361 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/mm/ |
| H A D | hugetlb_cma.c | 207 per_node = round_up(per_node, PAGE_SIZE << order); in hugetlb_cma_reserve() 226 size = round_up(size, PAGE_SIZE << order); in hugetlb_cma_reserve()
|
| /linux/drivers/gpu/drm/imagination/ |
| H A D | pvr_hwrt.c | 269 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/drivers/net/ethernet/netronome/nfp/ |
| H A D | ccm_mbox.c | 181 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()
|