/linux/arch/microblaze/mm/ |
H A D | init.c | 41 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() 208 lowmem_size = memory_size = (u32) memblock.memory.regions[0].size; in mmu_init() 213 memory_size = lowmem_size; in mmu_init()
|
/linux/samples/nitro_enclaves/ |
H A D | ne_ioctl_sample.c | 150 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/drivers/md/dm-vdo/indexer/ |
H A D | delta-index.h | 101 size_t memory_size; member 204 size_t memory_size, u8 tag); 209 size_t memory_size); 217 size_t memory_size, 242 size_t memory_size);
|
H A D | chapter-index.c | 20 size_t memory_size; in uds_make_open_chapter_index() local 31 memory_size = ((geometry->index_pages_per_chapter + 1) * geometry->bytes_per_page); in uds_make_open_chapter_index() 38 memory_size, 'm'); in uds_make_open_chapter_index() 44 index->memory_size = index->delta_index.memory_size + sizeof(struct open_chapter_index); in uds_make_open_chapter_index()
|
H A D | delta-index.c | 200 static inline size_t get_zone_memory_size(unsigned int zone_count, size_t memory_size) in get_zone_memory_size() argument 205 return (memory_size / zone_count + ALLOC_BOUNDARY - 1) & -ALLOC_BOUNDARY; in get_zone_memory_size() 349 size_t memory_size, u8 tag) in uds_initialize_delta_index() argument 363 delta_index->memory_size = 0; in uds_initialize_delta_index() 385 zone_memory = get_zone_memory_size(zone_count, memory_size); in uds_initialize_delta_index() 394 delta_index->memory_size += in uds_initialize_delta_index() 445 u8 *memory, size_t memory_size) in verify_delta_index_page() argument 457 if (list_count > ((memory_size - sizeof(struct delta_page_header)) * in verify_delta_index_page() 479 (memory_size - POST_FIELD_GUARD_BYTES) * BITS_PER_BYTE) in verify_delta_index_page() 484 if (memory[memory_size - POST_FIELD_GUARD_BYTES + i] != (u8) ~0) in verify_delta_index_page() [all …]
|
H A D | volume-index.c | 77 size_t memory_size; member 274 params->memory_size = expected_index_size * 106 / 100; in compute_volume_sub_index_parameters() 313 params.memory_size)); in compute_volume_sub_index_save_bytes() 1199 params.chapter_bits, params.memory_size, in initialize_volume_sub_index() 1208 sub_index->memory_size = (sub_index->delta_index.memory_size + in initialize_volume_sub_index() 1245 volume_index->memory_size = volume_index->vi_non_hook.memory_size; in uds_make_volume_index() 1279 volume_index->memory_size = in uds_make_volume_index() 1280 volume_index->vi_non_hook.memory_size + volume_index->vi_hook.memory_size; in uds_make_volume_index()
|
H A D | volume-index.h | 85 u64 memory_size; member 96 u64 memory_size; member
|
H A D | chapter-index.h | 29 size_t memory_size; member
|
H A D | index.c | 67 size_t memory_size; member 792 writer->memory_size = (sizeof(struct chapter_writer) + in make_chapter_writer() 795 writer->open_chapter_index->memory_size); in make_chapter_writer() 1351 counters->memory_used = (index->volume_index->memory_size + in uds_get_index_stats() 1353 index->chapter_writer->memory_size); in uds_get_index_stats()
|
H A D | config.c | 322 result = compute_memory_sizes(params->memory_size, params->sparse, in uds_make_configuration()
|
/linux/drivers/virt/nitro_enclaves/ |
H A D | ne_misc_dev.c | 756 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 …]
|
H A D | ne_misc_dev.h | 29 u64 memory_size; member
|
/linux/drivers/spi/ |
H A D | spi-wpcm-fiu.c | 62 size_t memory_size; member 393 if (cs * MAX_MEMORY_SIZE_PER_CS + desc->info.offset + desc->info.length > fiu->memory_size) in wpcm_fiu_dirmap_create() 409 if (!fiu->memory || offs >= fiu->memory_size) in wpcm_fiu_direct_read() 412 len = min_t(size_t, len, fiu->memory_size - offs); in wpcm_fiu_direct_read() 462 fiu->memory_size = min_t(size_t, resource_size(res), MAX_MEMORY_SIZE_TOTAL); in wpcm_fiu_probe()
|
/linux/tools/testing/selftests/kvm/lib/ |
H A D | kvm_util.c | 436 ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size); in __vm_create() 531 region->region.memory_size); in kvm_vm_restart() 647 + region->region.memory_size - 1; in userspace_mem_region_find() 850 .memory_size = size, in __vm_set_user_memory_region() 878 .memory_size = size, in __vm_set_user_memory_region2() 943 (uint64_t) region->region.memory_size); in vm_mem_add() 958 (uint64_t) region->region.memory_size); in vm_mem_add() 1051 region->region.memory_size = npages * vm->page_size; in vm_mem_add() 1059 guest_paddr, (uint64_t) region->region.memory_size, in vm_mem_add() 1199 region->region.memory_size in vm_mem_region_delete() [all...] |
/linux/arch/microblaze/include/asm/ |
H A D | dma.h | 10 #define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
|
/linux/drivers/bluetooth/ |
H A D | btmrvl_sdio.c | 1338 u32 memory_size, fw_dump_len = 0; in btmrvl_sdio_coredump() local 1388 memory_size = 0; in btmrvl_sdio_coredump() 1396 memory_size |= (read_reg << i*8); in btmrvl_sdio_coredump() 1400 if (memory_size == 0) { in btmrvl_sdio_coredump() 1411 BT_INFO("%s_SIZE=0x%x", entry->mem_name, memory_size); in btmrvl_sdio_coredump() 1412 entry->mem_ptr = vzalloc(memory_size + 1); in btmrvl_sdio_coredump() 1413 entry->mem_size = memory_size; in btmrvl_sdio_coredump() 1422 (memory_size + 1) + in btmrvl_sdio_coredump() 1426 end_ptr = dbg_ptr + memory_size; in btmrvl_sdio_coredump()
|
/linux/include/uapi/linux/ |
H A D | nitro_enclaves.h | 328 __u64 memory_size; member
|
H A D | vhost_types.h | 115 __u64 memory_size; /* bytes */ member
|
/linux/drivers/net/wireless/marvell/mwifiex/ |
H A D | pcie.c | 2688 u32 memory_size; in mwifiex_pcie_fw_dump() local 2724 memory_size = 0; in mwifiex_pcie_fw_dump() 2733 memory_size |= (read_reg << (i * 8)); in mwifiex_pcie_fw_dump() 2737 memory_size = MWIFIEX_FW_DUMP_MAX_MEMSIZE; in mwifiex_pcie_fw_dump() 2740 if (memory_size == 0) { in mwifiex_pcie_fw_dump() 2748 "%s_SIZE=0x%x\n", entry->mem_name, memory_size); in mwifiex_pcie_fw_dump() 2749 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_pcie_fw_dump() 2750 entry->mem_size = memory_size; in mwifiex_pcie_fw_dump() 2757 end_ptr = dbg_ptr + memory_size; in mwifiex_pcie_fw_dump() 2779 vzalloc(memory_size + MWIFIEX_SIZE_4K); in mwifiex_pcie_fw_dump() [all …]
|
H A D | sdio.c | 2767 u32 memory_size; in mwifiex_sdio_fw_dump() local 2807 memory_size = 0; in mwifiex_sdio_fw_dump() 2815 memory_size |= (read_reg << i*8); in mwifiex_sdio_fw_dump() 2819 if (memory_size == 0) { in mwifiex_sdio_fw_dump() 2832 "%s_SIZE=0x%x\n", entry->mem_name, memory_size); in mwifiex_sdio_fw_dump() 2833 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_sdio_fw_dump() 2834 entry->mem_size = memory_size; in mwifiex_sdio_fw_dump() 2841 end_ptr = dbg_ptr + memory_size; in mwifiex_sdio_fw_dump()
|
/linux/tools/testing/selftests/kvm/include/x86_64/ |
H A D | sev.h | 79 .size = region->region.memory_size, in sev_register_encrypted_memory()
|
/linux/drivers/video/fbdev/ |
H A D | tgafb.c | 1329 unsigned memory_size; local 1337 memory_size = 2097152; 1344 memory_size = 8388608; 1351 memory_size = 16777216; 1356 memory_size = 16777216; 1368 info->fix.smem_len = memory_size;
|
/linux/tools/testing/selftests/kvm/aarch64/ |
H A D | page_fault_test.c | 356 args->paging_size = region->region.memory_size; in setup_uffd_args() 410 uint64_t paging_size = region->region.memory_size; in punch_hole_in_backing_store() 456 uint64_t size = region->region.memory_size; in check_write_in_dirty_log() 618 ucall_init(vm, region->region.guest_phys_addr + region->region.memory_size); in setup_ucall()
|
/linux/drivers/gpu/drm/vmwgfx/ |
H A D | vmwgfx_drv.c | 940 dev_priv->memory_size = in vmw_driver_load() 942 dev_priv->memory_size -= dev_priv->vram_size; in vmw_driver_load() 948 dev_priv->memory_size = 512*1024*1024; in vmw_driver_load() 990 dev_priv->memory_size / 1024); in vmw_driver_load()
|
/linux/virt/kvm/ |
H A D | kvm_main.c | 1956 if ((mem->memory_size & (PAGE_SIZE - 1)) || in __kvm_set_memory_region() 1957 (mem->memory_size != (unsigned long)mem->memory_size)) in __kvm_set_memory_region() 1965 mem->memory_size)) in __kvm_set_memory_region() 1969 mem->guest_memfd_offset + mem->memory_size < mem->guest_memfd_offset)) in __kvm_set_memory_region() 1973 if (mem->guest_phys_addr + mem->memory_size < mem->guest_phys_addr) in __kvm_set_memory_region() 1975 if ((mem->memory_size >> PAGE_SHIFT) > KVM_MEM_MAX_NR_PAGES) in __kvm_set_memory_region() 1986 if (!mem->memory_size) { in __kvm_set_memory_region() 1997 npages = (mem->memory_size >> PAGE_SHIFT); in __kvm_set_memory_region() 5050 SANITY_CHECK_MEM_REGION_FIELD(memory_size); in kvm_vm_ioctl()
|