Home
last modified time | relevance | path

Searched refs:map_size (Results 1 – 25 of 102) sorted by relevance

12345

/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_memory.c57 static int find_in_memory_map(efi_uintn_t map_size, in find_in_memory_map() argument
65 for (i = 0; map_size; ++i, map_size -= desc_size) { in find_in_memory_map()
100 efi_uintn_t map_size = 0; in execute() local
124 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in execute()
132 map_size += sizeof(struct efi_mem_desc); in execute()
133 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in execute()
139 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in execute()
147 if (find_in_memory_map(map_size, memory_map, desc_size, p1, in execute()
150 if (find_in_memory_map(map_size, memory_map, desc_size, p2, in execute()
173 find_in_memory_map(map_size, memory_map, desc_size, fdt_addr, in execute()
H A Defi_selftest.c33 efi_uintn_t map_size = 0; in efi_st_exit_boot_services() local
40 ret = boottime->get_memory_map(&map_size, NULL, &map_key, &desc_size, in efi_st_exit_boot_services()
48 map_size += sizeof(struct efi_mem_desc); in efi_st_exit_boot_services()
49 ret = boottime->allocate_pool(EFI_BOOT_SERVICES_DATA, map_size, in efi_st_exit_boot_services()
55 ret = boottime->get_memory_map(&map_size, memory_map, &map_key, in efi_st_exit_boot_services()
/openbmc/linux/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-trace.h117 size_t map_size,
122 TP_ARGS(netdev, vaddr, size, dma_addr, map_size, bpid),
133 __field(size_t, map_size)
145 __entry->map_size = map_size;
158 __entry->map_size,
168 size_t map_size,
171 TP_ARGS(netdev, vaddr, size, dma_addr, map_size, bpid)
180 size_t map_size,
183 TP_ARGS(netdev, vaddr, size, dma_addr, map_size, bpid)
/openbmc/linux/tools/testing/selftests/arm64/mte/
H A Dcheck_mmap_options.c63 int run, result, map_size; in check_anonymous_memory_mapping() local
68 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping()
79 munmap((void *)map_ptr, map_size); in check_anonymous_memory_mapping()
94 int run, fd, map_size; in check_file_memory_mapping() local
104 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping()
116 munmap((void *)map_ptr, map_size); in check_file_memory_mapping()
122 munmap((void *)map_ptr, map_size); in check_file_memory_mapping()
133 int run, prot_flag, result, fd, map_size; in check_clear_prot_mte_flag() local
139 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_clear_prot_mte_flag()
147 if (mprotect(map_ptr, map_size, prot_flag)) { in check_clear_prot_mte_flag()
[all …]
H A Dcheck_child_memory.c109 int run, fd, map_size, result = KSFT_PASS; in check_child_file_mapping() local
118 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_child_file_mapping()
119 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_child_file_mapping()
120 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_child_file_mapping()
130 munmap((void *)map_ptr, map_size); in check_child_file_mapping()
136 munmap((void *)map_ptr, map_size); in check_child_file_mapping()
H A Dmte_common_util.c210 int map_size = size + range_before + range_after; in mte_allocate_file_memory_tag_range() local
218 for (index = INIT_BUFFER_SIZE; index < map_size; index += INIT_BUFFER_SIZE) in mte_allocate_file_memory_tag_range()
224 if (write(fd, buffer, map_size - index) != map_size - index) { in mte_allocate_file_memory_tag_range()
/openbmc/linux/tools/testing/selftests/mm/
H A Dksm_tests.c208 memset(map_ptr, data, map_size); in allocate_memory()
211 munmap(map_ptr, map_size); in allocate_memory()
551 int timeout, size_t map_size) in ksm_merge_hugepages_time() argument
558 map_size *= MB; in ksm_merge_hugepages_time()
559 size_t len = map_size; in ksm_merge_hugepages_time()
624 map_size *= MB; in ksm_merge_time()
650 munmap(map_ptr, map_size); in ksm_merge_time()
655 munmap(map_ptr, map_size); in ksm_merge_time()
665 map_size *= MB; in ksm_unmerge_time()
697 munmap(map_ptr, map_size); in ksm_unmerge_time()
[all …]
/openbmc/linux/drivers/firmware/efi/libstub/
H A Dmem.c30 tmp.map_size = 0; in efi_get_memory_map()
31 status = efi_bs_call(get_memory_map, &tmp.map_size, NULL, &tmp.map_key, in efi_get_memory_map()
36 size = tmp.map_size + tmp.desc_size * EFI_MMAP_NR_SLACK_SLOTS; in efi_get_memory_map()
54 m->buff_size = m->map_size = size; in efi_get_memory_map()
55 status = efi_bs_call(get_memory_map, &m->map_size, m->map, &m->map_key, in efi_get_memory_map()
H A Drelocate.c46 for (i = 0; i < map->map_size / map->desc_size; i++) { in efi_low_alloc_above()
81 if (i == map->map_size / map->desc_size) in efi_low_alloc_above()
H A Drandomalloc.c78 for (map_offset = 0; map_offset < map->map_size; map_offset += map->desc_size) { in efi_random_alloc()
109 for (map_offset = 0; map_offset < map->map_size; map_offset += map->desc_size) { in efi_random_alloc()
/openbmc/linux/drivers/firmware/efi/
H A Dmokvar-table.c106 unsigned long map_size = 0; in efi_mokvar_table_init() local
139 if (map_size_needed > map_size) { in efi_mokvar_table_init()
141 early_memunmap(va, map_size); in efi_mokvar_table_init()
148 map_size = min(map_size_needed + 2*EFI_PAGE_SIZE, in efi_mokvar_table_init()
150 va = early_memremap(efi.mokvar_table, map_size); in efi_mokvar_table_init()
153 efi.mokvar_table, map_size); in efi_mokvar_table_init()
178 early_memunmap(va, map_size); in efi_mokvar_table_init()
/openbmc/linux/tools/perf/util/
H A Dbpf_counter_cgroup.c52 int map_size, map_fd; in bperf_load_program() local
67 map_size = total_cpus * evlist->core.nr_entries / nr_cgroups; in bperf_load_program()
68 bpf_map__set_max_entries(skel->maps.events, map_size); in bperf_load_program()
71 map_size = evlist->core.nr_entries / nr_cgroups; in bperf_load_program()
72 bpf_map__set_max_entries(skel->maps.prev_readings, map_size); in bperf_load_program()
74 map_size = evlist->core.nr_entries; in bperf_load_program()
75 bpf_map__set_max_entries(skel->maps.cgrp_readings, map_size); in bperf_load_program()
/openbmc/linux/arch/um/kernel/
H A Dphysmem.c83 long map_size = len - reserve; in setup_physmem() local
86 if(map_size <= 0) { in setup_physmem()
95 map_size, 1, 1, 1); in setup_physmem()
98 "failed - errno = %d\n", map_size, in setup_physmem()
115 max_low_pfn = min_low_pfn + (map_size >> PAGE_SHIFT); in setup_physmem()
/openbmc/linux/drivers/video/fbdev/
H A Dsbuslib.c47 unsigned int size, page, r, map_size; in sbusfb_mmap_helper() local
67 map_size = 0; in sbusfb_mmap_helper()
70 map_size = sbusfb_mmapsize(map[i].size, fbsize); in sbusfb_mmap_helper()
79 if (!map_size) { in sbusfb_mmap_helper()
83 if (page + map_size > size) in sbusfb_mmap_helper()
84 map_size = size - page; in sbusfb_mmap_helper()
89 map_size, in sbusfb_mmap_helper()
93 page += map_size; in sbusfb_mmap_helper()
/openbmc/qemu/hw/ppc/
H A Dppce500_spin.c95 hwaddr map_size = 64 * MiB; in spin_kick() local
100 env->nip = ldq_p(&curspin->addr) & (map_size - 1); in spin_kick()
105 env->gpr[7] = map_size; in spin_kick()
109 map_start = ldq_p(&curspin->addr) & ~(map_size - 1); in spin_kick()
110 mmubooke_create_initial_mapping(env, 0, map_start, map_size); in spin_kick()
/openbmc/linux/tools/testing/selftests/bpf/
H A Dtest_lru_map.c245 unsigned int map_size; in test_lru_sanity1() local
260 map_size = tgt_free + batch_size; in test_lru_sanity1()
261 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1()
264 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1()
322 unsigned int map_size; in test_lru_sanity2() local
337 map_size = tgt_free + batch_size; in test_lru_sanity2()
338 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2()
428 unsigned int map_size; in test_lru_sanity3() local
443 map_size = tgt_free * 2; in test_lru_sanity3()
444 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity3()
[all …]
/openbmc/linux/drivers/iommu/amd/
H A Dio_pgtable_v2.c243 unsigned long map_size; in iommu_v2_map_pages() local
258 map_size = get_alloc_page_size(pgsize); in iommu_v2_map_pages()
260 iova, map_size, gfp, &updated); in iommu_v2_map_pages()
266 *pte = set_pte_attr(paddr, map_size, prot); in iommu_v2_map_pages()
269 iova += map_size; in iommu_v2_map_pages()
270 paddr += map_size; in iommu_v2_map_pages()
271 mapped_size += map_size; in iommu_v2_map_pages()
/openbmc/linux/tools/testing/selftests/bpf/prog_tests/
H A Dbloom_filter_map.c154 __u32 map_size, val; in setup_progs() local
163 map_size = bpf_map__max_entries(skel->maps.map_random_data); in setup_progs()
164 rand_vals = malloc(sizeof(*rand_vals) * map_size); in setup_progs()
173 for (i = 0; i < map_size; i++) { in setup_progs()
189 *out_nr_rand_vals = map_size; in setup_progs()
/openbmc/linux/drivers/input/
H A Dsparse-keymap.c170 size_t map_size = 1; /* to account for the last KE_END entry */ in sparse_keymap_setup() local
177 map_size++; in sparse_keymap_setup()
179 map = devm_kmemdup(&dev->dev, keymap, map_size * sizeof(*map), in sparse_keymap_setup()
184 for (i = 0; i < map_size; i++) { in sparse_keymap_setup()
214 dev->keycodemax = map_size; in sparse_keymap_setup()
/openbmc/linux/drivers/gpu/drm/omapdrm/
H A Dtcm-sita.c161 ret = r2l_b2t_1d(num_slots, &pos, tcm->bitmap, tcm->map_size); in sita_reserve_1d()
182 tcm->map_size, tcm->width); in sita_reserve_2d()
223 size_t map_size = BITS_TO_LONGS(width*height) * sizeof(unsigned long); in sita_init() local
228 tcm = kzalloc(sizeof(*tcm) + map_size, GFP_KERNEL); in sita_init()
244 tcm->map_size = width*height; in sita_init()
/openbmc/linux/drivers/char/tpm/
H A Dtpm_infineon.c40 unsigned long map_size; /* MMIO region size */ member
437 tpm_dev.map_size = pnp_mem_len(dev, 0); in tpm_inf_pnp_probe()
443 if (request_mem_region(tpm_dev.map_base, tpm_dev.map_size, in tpm_inf_pnp_probe()
449 tpm_dev.mem_base = ioremap(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_probe()
451 release_mem_region(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_probe()
567 release_mem_region(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_probe()
586 release_mem_region(tpm_dev.map_base, tpm_dev.map_size); in tpm_inf_pnp_remove()
/openbmc/linux/fs/exfat/
H A Dballoc.c52 long long map_size; in exfat_allocate_bitmap() local
57 map_size = le64_to_cpu(ep->dentry.bitmap.size); in exfat_allocate_bitmap()
60 if (need_map_size != map_size) { in exfat_allocate_bitmap()
62 need_map_size, map_size); in exfat_allocate_bitmap()
67 if (need_map_size > map_size) in exfat_allocate_bitmap()
/openbmc/qemu/hw/pci-host/
H A Dastro.c802 uint64_t map_size; in astro_realize() local
839 map_size = IOS_DIST_BASE_SIZE / ROPES_PER_IOC; in astro_realize()
840 elroy->mmio_base[(0x0240 - 0x200) / 8] = rope * map_size | 0x01; in astro_realize()
844 map_size = LMMIO_DIST_BASE_SIZE / ROPES_PER_IOC; in astro_realize()
845 map_addr = F_EXTEND(LMMIO_DIST_BASE_ADDR + rope * map_size); in astro_realize()
848 &elroy->pci_mmio, (uint32_t) map_addr, map_size); in astro_realize()
853 map_size = IOS_DIST_BASE_SIZE / ROPES_PER_IOC; in astro_realize()
854 map_addr = F_EXTEND(IOS_DIST_BASE_ADDR + rope * map_size); in astro_realize()
/openbmc/linux/drivers/accel/ivpu/
H A Divpu_mmu_context.c288 int map_size; in ivpu_mmu_context_map_pages() local
295 map_size = IVPU_MMU_CONT_PAGES_SIZE; in ivpu_mmu_context_map_pages()
298 map_size = IVPU_MMU_PAGE_SIZE; in ivpu_mmu_context_map_pages()
304 vpu_addr += map_size; in ivpu_mmu_context_map_pages()
305 dma_addr += map_size; in ivpu_mmu_context_map_pages()
306 size -= map_size; in ivpu_mmu_context_map_pages()
/openbmc/linux/arch/x86/kernel/
H A Dtboot.c169 u32 map_base, map_size; in tboot_create_trampoline() local
173 map_size = PFN_UP(tboot->tboot_size); in tboot_create_trampoline()
174 if (map_tboot_pages(map_base << PAGE_SHIFT, map_base, map_size)) in tboot_create_trampoline()
176 map_base, map_size); in tboot_create_trampoline()

12345