/linux/arch/microblaze/mm/ |
A D | init.c | 40 unsigned long memory_size; variable 41 EXPORT_SYMBOL(memory_size); 112 max_mapnr = memory_size >> PAGE_SHIFT; in setup_memory() 114 max_pfn = ((u64)memory_start + (u64)memory_size) >> PAGE_SHIFT; in setup_memory() 155 if (maxmem && memory_size > maxmem) { in mm_cmdline_setup() 156 memory_size = maxmem; in mm_cmdline_setup() 157 memblock.memory.regions[0].size = memory_size; in mm_cmdline_setup() 212 lowmem_size = memory_size = (u32) memblock.memory.regions[0].size; in mmu_init() 217 memory_size = lowmem_size; in mmu_init()
|
/linux/samples/nitro_enclaves/ |
A D | ne_ioctl_sample.c | 150 size_t memory_size; member 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() 503 ne_user_mem_regions[i].memory_size); in ne_free_mem_regions() [all …]
|
/linux/drivers/virt/nitro_enclaves/ |
A D | ne_misc_dev.c | 745 if (mem_region.memory_size & (NE_MIN_MEM_REGION_SIZE - 1)) { in ne_sanity_check_user_mem_region() 761 mem_region.memory_size)) { in ne_sanity_check_user_mem_region() 770 u64 memory_size = ne_mem_region->memory_size; in ne_sanity_check_user_mem_region() local 774 mem_region.userspace_addr < (userspace_addr + memory_size)) || in ne_sanity_check_user_mem_region() 776 (mem_region.userspace_addr + mem_region.memory_size) > userspace_addr)) { in ne_sanity_check_user_mem_region() 844 unsigned long memory_size = 0; in ne_set_user_memory_region_ioctl() local 859 max_nr_pages = mem_region.memory_size / NE_MIN_MEM_REGION_SIZE; in ne_set_user_memory_region_ioctl() 889 gup_rc = get_user_pages_unlocked(mem_region.userspace_addr + memory_size, 1, in ne_set_user_memory_region_ioctl() 912 memory_size += page_size(ne_mem_region->pages[i]); in ne_set_user_memory_region_ioctl() 915 } while (memory_size < mem_region.memory_size); in ne_set_user_memory_region_ioctl() [all …]
|
A D | ne_misc_dev.h | 29 u64 memory_size; member
|
/linux/drivers/bluetooth/ |
A D | btmrvl_sdio.c | 1352 u32 memory_size, fw_dump_len = 0; in btmrvl_sdio_coredump() local 1402 memory_size = 0; in btmrvl_sdio_coredump() 1410 memory_size |= (read_reg << i*8); in btmrvl_sdio_coredump() 1414 if (memory_size == 0) { in btmrvl_sdio_coredump() 1425 BT_INFO("%s_SIZE=0x%x", entry->mem_name, memory_size); in btmrvl_sdio_coredump() 1426 entry->mem_ptr = vzalloc(memory_size + 1); in btmrvl_sdio_coredump() 1427 entry->mem_size = memory_size; in btmrvl_sdio_coredump() 1436 (memory_size + 1) + in btmrvl_sdio_coredump() 1440 end_ptr = dbg_ptr + memory_size; in btmrvl_sdio_coredump()
|
/linux/arch/microblaze/include/asm/ |
A D | dma.h | 10 #define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
|
A D | page.h | 97 extern unsigned long memory_size;
|
/linux/tools/testing/selftests/kvm/lib/ |
A D | kvm_util.c | 429 region->region.memory_size); in kvm_vm_restart() 490 + region->region.memory_size - 1; in userspace_mem_region_find() 623 region->region.memory_size = 0; in __vm_mem_region_delete() 843 (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add() 858 (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add() 940 region->region.memory_size = npages * vm->page_size; in vm_userspace_mem_region_add() 948 guest_paddr, (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add() 1419 + region->region.memory_size - 1)) in addr_hva2gpa() 2118 (uint64_t) region->region.memory_size, in vm_dump()
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
A D | pcie.c | 2857 u32 memory_size; in mwifiex_pcie_fw_dump() local 2894 memory_size = 0; in mwifiex_pcie_fw_dump() 2903 memory_size |= (read_reg << (i * 8)); in mwifiex_pcie_fw_dump() 2910 if (memory_size == 0) { in mwifiex_pcie_fw_dump() 2923 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_pcie_fw_dump() 2924 entry->mem_size = memory_size; in mwifiex_pcie_fw_dump() 2931 end_ptr = dbg_ptr + memory_size; in mwifiex_pcie_fw_dump() 2953 vzalloc(memory_size + MWIFIEX_SIZE_4K); in mwifiex_pcie_fw_dump() 2960 dbg_ptr = entry->mem_ptr + memory_size; in mwifiex_pcie_fw_dump() 2961 memory_size += MWIFIEX_SIZE_4K; in mwifiex_pcie_fw_dump() [all …]
|
A D | sdio.c | 2716 u32 memory_size; in mwifiex_sdio_fw_dump() local 2756 memory_size = 0; in mwifiex_sdio_fw_dump() 2764 memory_size |= (read_reg << i*8); in mwifiex_sdio_fw_dump() 2768 if (memory_size == 0) { in mwifiex_sdio_fw_dump() 2781 "%s_SIZE=0x%x\n", entry->mem_name, memory_size); in mwifiex_sdio_fw_dump() 2782 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_sdio_fw_dump() 2783 entry->mem_size = memory_size; in mwifiex_sdio_fw_dump() 2790 end_ptr = dbg_ptr + memory_size; in mwifiex_sdio_fw_dump()
|
/linux/include/uapi/linux/ |
A D | nitro_enclaves.h | 328 __u64 memory_size; member
|
A D | vhost_types.h | 99 __u64 memory_size; /* bytes */ member
|
A D | kvm.h | 94 __u64 memory_size; /* bytes */ member 102 __u64 memory_size; /* bytes */ member
|
/linux/arch/nios2/include/asm/ |
A D | page.h | 75 extern unsigned long memory_size;
|
/linux/drivers/video/fbdev/ |
A D | tgafb.c | 1317 unsigned memory_size; local 1325 memory_size = 2097152; 1332 memory_size = 8388608; 1339 memory_size = 16777216; 1344 memory_size = 16777216; 1356 info->fix.smem_len = memory_size;
|
A D | ps3fb.c | 95 u32 memory_size; member 1062 dinfo->memory_size, dinfo->hardware_channel, in ps3fb_probe()
|
/linux/drivers/gpu/drm/vmwgfx/ |
A D | vmwgfx_drv.c | 892 dev_priv->memory_size = in vmw_driver_load() 894 dev_priv->memory_size -= dev_priv->vram_size; in vmw_driver_load() 900 dev_priv->memory_size = 512*1024*1024; in vmw_driver_load() 949 dev_priv->memory_size / 1024); in vmw_driver_load()
|
A D | vmwgfx_ioctl.c | 83 param->value = dev_priv->memory_size; in vmw_getparam_ioctl()
|
/linux/arch/riscv/kvm/ |
A D | mmu.c | 485 hva_t reg_end = hva + mem->memory_size; in kvm_arch_prepare_memory_region() 563 mem->memory_size, false); in kvm_arch_prepare_memory_region()
|
/linux/tools/testing/selftests/kvm/ |
A D | set_memory_region_test.c | 341 region.memory_size = size; in test_memory_region_add()
|
/linux/arch/x86/include/uapi/asm/ |
A D | kvm.h | 60 __u64 memory_size; member
|
/linux/tools/arch/x86/include/uapi/asm/ |
A D | kvm.h | 60 __u64 memory_size; member
|
/linux/tools/virtio/ |
A D | virtio_test.c | 148 dev->mem->regions[0].memory_size = dev->buf_size; in vdev_info_init()
|
/linux/virt/kvm/ |
A D | kvm_main.c | 1692 if ((mem->memory_size & (PAGE_SIZE - 1)) || in __kvm_set_memory_region() 1693 (mem->memory_size != (unsigned long)mem->memory_size)) in __kvm_set_memory_region() 1701 mem->memory_size)) in __kvm_set_memory_region() 1705 if (mem->guest_phys_addr + mem->memory_size < mem->guest_phys_addr) in __kvm_set_memory_region() 1723 if (!mem->memory_size) in __kvm_set_memory_region() 1729 new.npages = mem->memory_size >> PAGE_SHIFT; in __kvm_set_memory_region()
|
/linux/tools/include/uapi/linux/ |
A D | kvm.h | 94 __u64 memory_size; /* bytes */ member 102 __u64 memory_size; /* bytes */ member
|