/linux-6.6.21/drivers/net/ethernet/freescale/dpaa2/ |
D | dpaa2-eth-trace.h | 117 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)
|
/linux-6.6.21/tools/testing/selftests/arm64/mte/ |
D | check_mmap_options.c | 63 int run, result, map_size; in check_anonymous_memory_mapping() local 68 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping() 69 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_anonymous_memory_mapping() 70 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping() 79 munmap((void *)map_ptr, map_size); in check_anonymous_memory_mapping() 84 mte_free_memory((void *)map_ptr, map_size, mem_type, false); 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() 105 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_file_memory_mapping() 106 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping() [all …]
|
D | check_child_memory.c | 109 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()
|
D | mte_common_util.c | 210 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()
|
/linux-6.6.21/tools/testing/selftests/mm/ |
D | ksm_tests.c | 200 static void *allocate_memory(void *ptr, int prot, int mapping, char data, size_t map_size) in allocate_memory() argument 202 void *map_ptr = mmap(ptr, map_size, PROT_WRITE, mapping, -1, 0); in allocate_memory() 208 memset(map_ptr, data, map_size); in allocate_memory() 209 if (mprotect(map_ptr, map_size, prot)) { 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() 593 if (ksm_merge_pages(merge_type, map_ptr, map_size, start_time, timeout)) in ksm_merge_hugepages_time() 603 printf("Total size: %lu MiB\n", map_size / MB); in ksm_merge_hugepages_time() [all …]
|
/linux-6.6.21/drivers/firmware/efi/ |
D | mokvar-table.c | 106 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()
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
D | mem.c | 30 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()
|
D | relocate.c | 46 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()
|
D | randomalloc.c | 78 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()
|
D | fdt.c | 163 fdt_val32 = cpu_to_fdt32(map->map_size); in update_fdt_memmap() 202 efi_get_virtmap(map->map, map->map_size, map->desc_size, in exit_boot_func() 320 for (l = 0; l < priv.boot_memmap->map_size; in allocate_new_fdt_and_exit_boot()
|
D | efi-stub.c | 228 void efi_get_virtmap(efi_memory_desc_t *memory_map, unsigned long map_size, in efi_get_virtmap() argument 238 for (l = 0; l < map_size; l += desc_size) { in efi_get_virtmap()
|
/linux-6.6.21/tools/perf/util/ |
D | bpf_counter_cgroup.c | 52 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()
|
/linux-6.6.21/arch/um/kernel/ |
D | physmem.c | 83 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()
|
/linux-6.6.21/drivers/video/fbdev/ |
D | sbuslib.c | 47 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()
|
/linux-6.6.21/tools/testing/selftests/bpf/ |
D | test_lru_map.c | 244 unsigned int map_size; in test_lru_sanity1() local 259 map_size = tgt_free + batch_size; in test_lru_sanity1() 260 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1() 263 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1() 321 unsigned int map_size; in test_lru_sanity2() local 336 map_size = tgt_free + batch_size; in test_lru_sanity2() 337 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2() 340 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity2() 427 unsigned int map_size; in test_lru_sanity3() local 442 map_size = tgt_free * 2; in test_lru_sanity3() [all …]
|
/linux-6.6.21/drivers/iommu/amd/ |
D | io_pgtable_v2.c | 243 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()
|
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/ |
D | bloom_filter_map.c | 148 __u32 map_size, val; in setup_progs() local 157 map_size = bpf_map__max_entries(skel->maps.map_random_data); in setup_progs() 158 rand_vals = malloc(sizeof(*rand_vals) * map_size); in setup_progs() 167 for (i = 0; i < map_size; i++) { in setup_progs() 183 *out_nr_rand_vals = map_size; in setup_progs()
|
/linux-6.6.21/drivers/input/ |
D | sparse-keymap.c | 170 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()
|
/linux-6.6.21/drivers/gpu/drm/omapdrm/ |
D | tcm-sita.c | 161 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()
|
/linux-6.6.21/drivers/char/tpm/ |
D | tpm_infineon.c | 40 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()
|
/linux-6.6.21/fs/exfat/ |
D | balloc.c | 52 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()
|
/linux-6.6.21/drivers/accel/ivpu/ |
D | ivpu_mmu_context.c | 288 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()
|
/linux-6.6.21/arch/x86/kernel/ |
D | tboot.c | 169 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()
|
/linux-6.6.21/drivers/pcmcia/ |
D | cistpl.c | 93 mem->res = pcmcia_find_mem_region(0, s->map_size, in set_cis_map() 94 s->map_size, 0, s); in set_cis_map() 103 s->cis_virt = ioremap(mem->res->start, s->map_size); in set_cis_map() 118 s->cis_virt = ioremap(mem->static_start, s->map_size); in set_cis_map() 183 card_offset = addr & ~(s->map_size-1); in pcmcia_read_cis_mem() 191 end = sys + s->map_size; in pcmcia_read_cis_mem() 192 sys = sys + (addr & (s->map_size-1)); in pcmcia_read_cis_mem() 198 card_offset += s->map_size; in pcmcia_read_cis_mem() 257 card_offset = addr & ~(s->map_size-1); in pcmcia_write_cis_mem() 265 end = sys + s->map_size; in pcmcia_write_cis_mem() [all …]
|
/linux-6.6.21/drivers/auxdisplay/ |
D | ht16k33.c | 94 unsigned int map_size; member 146 memcpy(buf, &priv->seg.map, priv->seg.map_size); in map_seg_show() 147 return priv->seg.map_size; in map_seg_show() 155 if (cnt != priv->seg.map_size) in map_seg_store() 685 seg->map_size = sizeof(seg->map.seg7); in ht16k33_seg_probe() 692 seg->map_size = sizeof(seg->map.seg14); in ht16k33_seg_probe()
|