Home
last modified time | relevance | path

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

1234567

/OK3568_Linux_fs/kernel/drivers/firmware/efi/libstub/
H A Dmem.c9 unsigned long map_size, in mmap_has_headroom() argument
12 unsigned long slack = buff_size - map_size; in mmap_has_headroom()
34 *map->map_size = *map->desc_size * 32; in efi_get_memory_map()
35 *map->buff_size = *map->map_size; in efi_get_memory_map()
38 *map->map_size, (void **)&m); in efi_get_memory_map()
44 status = efi_bs_call(get_memory_map, map->map_size, m, in efi_get_memory_map()
47 !mmap_has_headroom(*map->buff_size, *map->map_size, in efi_get_memory_map()
57 *map->map_size += *map->desc_size * EFI_MMAP_NR_SLACK_SLOTS; in efi_get_memory_map()
58 *map->buff_size = *map->map_size; in efi_get_memory_map()
H A Drandomalloc.c58 unsigned long map_size, desc_size, total_slots = 0, target_slot; in efi_random_alloc() local
66 map.map_size = &map_size; in efi_random_alloc()
82 for (map_offset = 0; map_offset < map_size; map_offset += desc_size) { in efi_random_alloc()
105 for (map_offset = 0; map_offset < map_size; map_offset += desc_size) { in efi_random_alloc()
H A Drelocate.c26 unsigned long map_size, desc_size, buff_size; in efi_low_alloc_above() local
34 boot_map.map_size = &map_size; in efi_low_alloc_above()
55 for (i = 0; i < map_size / desc_size; i++) { in efi_low_alloc_above()
90 if (i == map_size / desc_size) in efi_low_alloc_above()
H A Dfdt.c179 fdt_val32 = cpu_to_fdt32(*map->map_size); in update_fdt_memmap()
215 efi_get_virtmap(*map->map, *map->map_size, *map->desc_size, in exit_boot_func()
247 unsigned long map_size, desc_size, buff_size; in allocate_new_fdt_and_exit_boot() local
257 map.map_size = &map_size; in allocate_new_fdt_and_exit_boot()
325 for (l = 0; l < map_size; l += desc_size) { in allocate_new_fdt_and_exit_boot()
H A Darm64-stub.c45 unsigned long map_size, desc_size, buff_size; in check_image_region() local
53 map.map_size = &map_size; in check_image_region()
63 for (map_offset = 0; map_offset < map_size; map_offset += desc_size) { in check_image_region()
/OK3568_Linux_fs/kernel/tools/testing/selftests/arm64/mte/
H A Dcheck_mmap_options.c63 int run, result, map_size; in check_anonymous_memory_mapping() local
69 map_size = sizes[run] + OVERFLOW + UNDERFLOW; in check_anonymous_memory_mapping()
70 map_ptr = (char *)mte_allocate_memory(map_size, mem_type, mapping, false); in check_anonymous_memory_mapping()
71 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) in check_anonymous_memory_mapping()
80 munmap((void *)map_ptr, map_size); in check_anonymous_memory_mapping()
85 mte_free_memory((void *)map_ptr, map_size, mem_type, false); in check_anonymous_memory_mapping()
95 int run, fd, map_size; in check_file_memory_mapping() local
105 map_size = sizes[run] + UNDERFLOW + OVERFLOW; in check_file_memory_mapping()
106 map_ptr = (char *)mte_allocate_file_memory(map_size, mem_type, mapping, false, fd); in check_file_memory_mapping()
107 if (check_allocated_memory(map_ptr, map_size, mem_type, false) != KSFT_PASS) { in check_file_memory_mapping()
[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()
/OK3568_Linux_fs/kernel/drivers/net/ethernet/freescale/dpaa2/
H A Ddpaa2-eth-trace.h101 size_t map_size,
106 TP_ARGS(netdev, vaddr, size, dma_addr, map_size, bpid),
117 __field(size_t, map_size)
129 __entry->map_size = map_size;
142 __entry->map_size,
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/tools/testing/selftests/bpf/
H A Dtest_lru_map.c253 unsigned int map_size; in test_lru_sanity1() local
268 map_size = tgt_free + batch_size; in test_lru_sanity1()
269 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity1()
272 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity1()
330 unsigned int map_size; in test_lru_sanity2() local
345 map_size = tgt_free + batch_size; in test_lru_sanity2()
346 lru_map_fd = create_map(map_type, map_flags, map_size); in test_lru_sanity2()
349 expected_map_fd = create_map(BPF_MAP_TYPE_HASH, 0, map_size); in test_lru_sanity2()
437 unsigned int map_size; in test_lru_sanity3() local
452 map_size = tgt_free * 2; in test_lru_sanity3()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/
H A Defuse.c670 u32 map_size = hw_info->log_efuse_size; in mac_dump_log_efuse_plus() local
688 map_size = hw_info->limit_efuse_size_pcie; in mac_dump_log_efuse_plus()
691 map_size = hw_info->limit_efuse_size_usb; in mac_dump_log_efuse_plus()
694 map_size = hw_info->limit_efuse_size_sdio; in mac_dump_log_efuse_plus()
702 map_size, 0); in mac_dump_log_efuse_plus()
1284 u32 map_size = adapter->hw_info->log_efuse_size; in mac_pg_efuse_by_map_plus() local
1303 map_size = hw_info->limit_efuse_size_pcie; in mac_pg_efuse_by_map_plus()
1306 map_size = hw_info->limit_efuse_size_usb; in mac_pg_efuse_by_map_plus()
1309 map_size = hw_info->limit_efuse_size_sdio; in mac_pg_efuse_by_map_plus()
1330 PLTFM_MEMCPY(info_DAV.efuse_map, info->efuse_map + map_size, in mac_pg_efuse_by_map_plus()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/
H A Defuse.c670 u32 map_size = hw_info->log_efuse_size; in mac_dump_log_efuse_plus() local
688 map_size = hw_info->limit_efuse_size_pcie; in mac_dump_log_efuse_plus()
691 map_size = hw_info->limit_efuse_size_usb; in mac_dump_log_efuse_plus()
694 map_size = hw_info->limit_efuse_size_sdio; in mac_dump_log_efuse_plus()
702 map_size, 0); in mac_dump_log_efuse_plus()
1284 u32 map_size = adapter->hw_info->log_efuse_size; in mac_pg_efuse_by_map_plus() local
1303 map_size = hw_info->limit_efuse_size_pcie; in mac_pg_efuse_by_map_plus()
1306 map_size = hw_info->limit_efuse_size_usb; in mac_pg_efuse_by_map_plus()
1309 map_size = hw_info->limit_efuse_size_sdio; in mac_pg_efuse_by_map_plus()
1330 PLTFM_MEMCPY(info_DAV.efuse_map, info->efuse_map + map_size, in mac_pg_efuse_by_map_plus()
[all …]
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/u-boot/test/dm/
H A Dsf.c25 uint map_size; in dm_test_spi_flash() local
60 ut_assertok(dm_spi_get_mmap(dev, &map_base, &map_size, &offset)); in dm_test_spi_flash()
62 ut_asserteq(0x2000, map_size); in dm_test_spi_flash()
/OK3568_Linux_fs/kernel/drivers/gpu/drm/omapdrm/
H A Dtcm-sita.c169 ret = r2l_b2t_1d(num_slots, &pos, tcm->bitmap, tcm->map_size); in sita_reserve_1d()
190 tcm->map_size, tcm->width); in sita_reserve_2d()
231 size_t map_size = BITS_TO_LONGS(width*height) * sizeof(unsigned long); in sita_init() local
236 tcm = kzalloc(sizeof(*tcm) + map_size, GFP_KERNEL); in sita_init()
252 tcm->map_size = width*height; in sita_init()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/arch/riscv/mm/
H A Dinit.c444 uintptr_t map_size; in setup_vm() local
456 map_size = PMD_SIZE; in setup_vm()
460 BUG_ON((load_pa % map_size) != 0); in setup_vm()
493 for (va = PAGE_OFFSET; va < end_va; va += map_size) in setup_vm()
496 map_size, PAGE_KERNEL_EXEC); in setup_vm()
553 uintptr_t va, map_size; in setup_vm_final() local
580 map_size = best_map_size(start, end - start); in setup_vm_final()
581 for (pa = start; pa < end; pa += map_size) { in setup_vm_final()
584 map_size, PAGE_KERNEL_EXEC); in setup_vm_final()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/drivers/gpu/arm/mali400/mali/platform/arm/
H A Darm.c95 u32 map_size = phys_offset + sizeof(u32); in mali_secure_mode_init_juno() local
99 secure_mode_mapped_addr = ioremap(phys_addr_page, map_size); in mali_secure_mode_init_juno()
581 u32 map_size = phys_offset + sizeof(u32); in mali_read_phys() local
583 void *mem_mapped = ioremap(phys_addr_page, map_size); in mali_read_phys()
597 u32 map_size = phys_offset + sizeof(u32); in mali_write_phys() local
598 void *mem_mapped = ioremap(phys_addr_page, map_size); in mali_write_phys()
/OK3568_Linux_fs/kernel/arch/ia64/mm/
H A Dcontig.c191 unsigned long map_size; in paging_init() local
195 map_size = PAGE_ALIGN(ALIGN(max_low_pfn, MAX_ORDER_NR_PAGES) * in paging_init()
197 VMALLOC_END -= map_size; in paging_init()
/OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/hal/halmac/halmac_88xx/
H A Dhalmac_efuse_88xx.c1425 u32 map_size = adapter->hw_cfg_info.eeprom_size; in proc_pg_efuse_by_map_88xx() local
1452 updated_map = (u8 *)PLTFM_MALLOC(map_size); in proc_pg_efuse_by_map_88xx()
1458 PLTFM_MEMSET(updated_map, 0xFF, map_size); in proc_pg_efuse_by_map_88xx()
1465 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1471 local_info.efuse_map_size = map_size; in proc_pg_efuse_by_map_88xx()
1484 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1496 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1502 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
2654 u32 map_size = adapter->hw_cfg_info.eeprom_size; in proc_gen_super_usb_map_88xx() local
2698 super_usb_map = (u8 *)PLTFM_MALLOC(map_size); in proc_gen_super_usb_map_88xx()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/halmac/halmac_88xx/
H A Dhalmac_efuse_88xx.c1424 u32 map_size = adapter->hw_cfg_info.eeprom_size; in proc_pg_efuse_by_map_88xx() local
1451 updated_map = (u8 *)PLTFM_MALLOC(map_size); in proc_pg_efuse_by_map_88xx()
1457 PLTFM_MEMSET(updated_map, 0xFF, map_size); in proc_pg_efuse_by_map_88xx()
1464 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1470 local_info.efuse_map_size = map_size; in proc_pg_efuse_by_map_88xx()
1483 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1495 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1501 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
2653 u32 map_size = adapter->hw_cfg_info.eeprom_size; in proc_gen_super_usb_map_88xx() local
2697 super_usb_map = (u8 *)PLTFM_MALLOC(map_size); in proc_gen_super_usb_map_88xx()
[all …]
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/hal/halmac/halmac_88xx/
H A Dhalmac_efuse_88xx.c1424 u32 map_size = adapter->hw_cfg_info.eeprom_size; in proc_pg_efuse_by_map_88xx() local
1451 updated_map = (u8 *)PLTFM_MALLOC(map_size); in proc_pg_efuse_by_map_88xx()
1457 PLTFM_MEMSET(updated_map, 0xFF, map_size); in proc_pg_efuse_by_map_88xx()
1464 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1470 local_info.efuse_map_size = map_size; in proc_pg_efuse_by_map_88xx()
1483 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1495 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
1501 PLTFM_FREE(updated_map, map_size); in proc_pg_efuse_by_map_88xx()
2653 u32 map_size = adapter->hw_cfg_info.eeprom_size; in proc_gen_super_usb_map_88xx() local
2697 super_usb_map = (u8 *)PLTFM_MALLOC(map_size); in proc_gen_super_usb_map_88xx()
[all …]

1234567