Home
last modified time | relevance | path

Searched refs:memory_size (Results 1 – 25 of 32) sorted by relevance

12

/Linux-v6.1/arch/microblaze/mm/
Dinit.c41 unsigned long memory_size; variable
42 EXPORT_SYMBOL(memory_size);
113 max_mapnr = memory_size >> PAGE_SHIFT; in setup_memory()
115 max_pfn = ((u64)memory_start + (u64)memory_size) >> PAGE_SHIFT; in setup_memory()
156 if (maxmem && memory_size > maxmem) { in mm_cmdline_setup()
157 memory_size = maxmem; in mm_cmdline_setup()
158 memblock.memory.regions[0].size = memory_size; in mm_cmdline_setup()
213 lowmem_size = memory_size = (u32) memblock.memory.regions[0].size; in mmu_init()
218 memory_size = lowmem_size; in mmu_init()
/Linux-v6.1/samples/nitro_enclaves/
Dne_ioctl_sample.c150 size_t memory_size; member
261 ne_user_mem_region->userspace_addr = mmap(NULL, ne_user_mem_region->memory_size, in ne_alloc_user_mem_region()
302 enclave_memory_size += ne_user_mem_regions[i].memory_size; in ne_load_enclave_image()
364 size_t memory_size = ne_user_mem_regions[i].memory_size; in ne_load_enclave_image() local
368 if (temp_image_offset >= memory_size) { in ne_load_enclave_image()
369 temp_image_offset -= memory_size; in ne_load_enclave_image()
374 memory_size -= temp_image_offset; in ne_load_enclave_image()
379 bytes_to_write = memory_size < remaining_bytes ? in ne_load_enclave_image()
380 memory_size : remaining_bytes; in ne_load_enclave_image()
412 .memory_size = ne_user_mem_region.memory_size, in ne_set_user_mem_region()
[all …]
/Linux-v6.1/drivers/virt/nitro_enclaves/
Dne_misc_dev.c756 if (mem_region.memory_size & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_user_mem_region()
772 mem_region.memory_size)) { in ne_sanity_check_user_mem_region()
781 u64 memory_size = ne_mem_region->memory_size; in ne_sanity_check_user_mem_region() local
785 mem_region.userspace_addr < (userspace_addr + memory_size)) || in ne_sanity_check_user_mem_region()
787 (mem_region.userspace_addr + mem_region.memory_size) > userspace_addr)) { in ne_sanity_check_user_mem_region()
921 unsigned long memory_size = 0; in ne_set_user_memory_region_ioctl() local
935 max_nr_pages = mem_region.memory_size / NE_MIN_MEM_REGION_SIZE; in ne_set_user_memory_region_ioctl()
966 gup_rc = get_user_pages_unlocked(mem_region.userspace_addr + memory_size, 1, in ne_set_user_memory_region_ioctl()
988 memory_size += page_size(ne_mem_region->pages[i]); in ne_set_user_memory_region_ioctl()
991 } while (memory_size < mem_region.memory_size); in ne_set_user_memory_region_ioctl()
[all …]
Dne_misc_dev.h29 u64 memory_size; member
/Linux-v6.1/arch/microblaze/include/asm/
Ddma.h10 #define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
Dpage.h97 extern unsigned long memory_size;
/Linux-v6.1/tools/testing/selftests/kvm/lib/
Dkvm_util.c429 region->region.memory_size); in kvm_vm_restart()
475 + region->region.memory_size - 1; in userspace_mem_region_find()
583 region->region.memory_size = 0; in __vm_mem_region_delete()
774 .memory_size = size, in __vm_set_user_memory_region()
851 (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add()
866 (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add()
932 region->region.memory_size = npages * vm->page_size; in vm_userspace_mem_region_add()
940 guest_paddr, (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add()
1394 + region->region.memory_size - 1)) in addr_hva2gpa()
1699 (uint64_t) region->region.memory_size, in vm_dump()
/Linux-v6.1/drivers/bluetooth/
Dbtmrvl_sdio.c1339 u32 memory_size, fw_dump_len = 0; in btmrvl_sdio_coredump() local
1389 memory_size = 0; in btmrvl_sdio_coredump()
1397 memory_size |= (read_reg << i*8); in btmrvl_sdio_coredump()
1401 if (memory_size == 0) { in btmrvl_sdio_coredump()
1412 BT_INFO("%s_SIZE=0x%x", entry->mem_name, memory_size); in btmrvl_sdio_coredump()
1413 entry->mem_ptr = vzalloc(memory_size + 1); in btmrvl_sdio_coredump()
1414 entry->mem_size = memory_size; in btmrvl_sdio_coredump()
1423 (memory_size + 1) + in btmrvl_sdio_coredump()
1427 end_ptr = dbg_ptr + memory_size; in btmrvl_sdio_coredump()
/Linux-v6.1/include/uapi/linux/
Dnitro_enclaves.h328 __u64 memory_size; member
Dvhost_types.h99 __u64 memory_size; /* bytes */ member
Dkvm.h94 __u64 memory_size; /* bytes */ member
102 __u64 memory_size; /* bytes */ member
/Linux-v6.1/drivers/net/wireless/marvell/mwifiex/
Dpcie.c2845 u32 memory_size; in mwifiex_pcie_fw_dump() local
2882 memory_size = 0; in mwifiex_pcie_fw_dump()
2891 memory_size |= (read_reg << (i * 8)); in mwifiex_pcie_fw_dump()
2895 memory_size = MWIFIEX_FW_DUMP_MAX_MEMSIZE; in mwifiex_pcie_fw_dump()
2898 if (memory_size == 0) { in mwifiex_pcie_fw_dump()
2910 "%s_SIZE=0x%x\n", entry->mem_name, memory_size); in mwifiex_pcie_fw_dump()
2911 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_pcie_fw_dump()
2912 entry->mem_size = memory_size; in mwifiex_pcie_fw_dump()
2919 end_ptr = dbg_ptr + memory_size; in mwifiex_pcie_fw_dump()
2941 vzalloc(memory_size + MWIFIEX_SIZE_4K); in mwifiex_pcie_fw_dump()
[all …]
Dsdio.c2724 u32 memory_size; in mwifiex_sdio_fw_dump() local
2764 memory_size = 0; in mwifiex_sdio_fw_dump()
2772 memory_size |= (read_reg << i*8); in mwifiex_sdio_fw_dump()
2776 if (memory_size == 0) { in mwifiex_sdio_fw_dump()
2789 "%s_SIZE=0x%x\n", entry->mem_name, memory_size); in mwifiex_sdio_fw_dump()
2790 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_sdio_fw_dump()
2791 entry->mem_size = memory_size; in mwifiex_sdio_fw_dump()
2798 end_ptr = dbg_ptr + memory_size; in mwifiex_sdio_fw_dump()
/Linux-v6.1/arch/nios2/include/asm/
Dpage.h75 extern unsigned long memory_size;
/Linux-v6.1/drivers/video/fbdev/
Dtgafb.c1324 unsigned memory_size; local
1332 memory_size = 2097152;
1339 memory_size = 8388608;
1346 memory_size = 16777216;
1351 memory_size = 16777216;
1363 info->fix.smem_len = memory_size;
Dps3fb.c95 u32 memory_size; member
1062 dinfo->memory_size, dinfo->hardware_channel, in ps3fb_probe()
/Linux-v6.1/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.c883 dev_priv->memory_size = in vmw_driver_load()
885 dev_priv->memory_size -= dev_priv->vram_size; in vmw_driver_load()
891 dev_priv->memory_size = 512*1024*1024; in vmw_driver_load()
940 dev_priv->memory_size / 1024); in vmw_driver_load()
Dvmwgfx_ioctl.c83 param->value = dev_priv->memory_size; in vmw_getparam_ioctl()
/Linux-v6.1/arch/x86/include/uapi/asm/
Dkvm.h60 __u64 memory_size; member
/Linux-v6.1/tools/arch/x86/include/uapi/asm/
Dkvm.h60 __u64 memory_size; member
/Linux-v6.1/tools/virtio/
Dvirtio_test.c149 dev->mem->regions[0].memory_size = dev->buf_size; in vdev_info_init()
/Linux-v6.1/virt/kvm/
Dkvm_main.c1939 if ((mem->memory_size & (PAGE_SIZE - 1)) || in __kvm_set_memory_region()
1940 (mem->memory_size != (unsigned long)mem->memory_size)) in __kvm_set_memory_region()
1948 mem->memory_size)) in __kvm_set_memory_region()
1952 if (mem->guest_phys_addr + mem->memory_size < mem->guest_phys_addr) in __kvm_set_memory_region()
1954 if ((mem->memory_size >> PAGE_SHIFT) > KVM_MEM_MAX_NR_PAGES) in __kvm_set_memory_region()
1965 if (!mem->memory_size) { in __kvm_set_memory_region()
1976 npages = (mem->memory_size >> PAGE_SHIFT); in __kvm_set_memory_region()
/Linux-v6.1/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c527 last = i + (region->region.memory_size >> vm->page_shift); in nested_map_memslot()
/Linux-v6.1/tools/include/uapi/linux/
Dkvm.h94 __u64 memory_size; /* bytes */ member
102 __u64 memory_size; /* bytes */ member
/Linux-v6.1/drivers/gpu/drm/amd/include/
Datomfirmware.h3081 …uint32_t memory_size; // Total memory size in unit of MB for CONFIG_MEMSIZE zer… member
3204 …uint32_t memory_size; // Total memory size in unit of MB for CONFIG_MEMSIZE zer… member
3246 …uint32_t memory_size; // Total memory size in unit of MB for CONFIG_MEMSIZE zer… member

12