Home
last modified time | relevance | path

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

123

/openbmc/linux/arch/microblaze/mm/
H A 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()
208 lowmem_size = memory_size = (u32) memblock.memory.regions[0].size; in mmu_init()
213 memory_size = lowmem_size; in mmu_init()
/openbmc/linux/samples/nitro_enclaves/
H A Dne_ioctl_sample.c150 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 …]
/openbmc/qemu/hw/core/
H A Dregister.c244 uint64_t memory_size, in register_init_block() argument
274 device_prefix, memory_size); in register_init_block()
285 uint64_t memory_size) in register_init_block8() argument
288 data, ops, debug_enabled, memory_size, 8); in register_init_block8()
297 uint64_t memory_size) in register_init_block32() argument
300 data, ops, debug_enabled, memory_size, 32); in register_init_block32()
309 uint64_t memory_size) in register_init_block64() argument
312 data, ops, debug_enabled, memory_size, 64); in register_init_block64()
/openbmc/qemu/include/hw/
H A Dregister.h197 uint64_t memory_size);
205 uint64_t memory_size);
213 uint64_t memory_size);
/openbmc/linux/drivers/virt/nitro_enclaves/
H A 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 …]
H A Dne_misc_dev.h29 u64 memory_size; member
/openbmc/linux/arch/microblaze/include/asm/
H A Ddma.h10 #define MAX_DMA_ADDRESS (CONFIG_KERNEL_START + memory_size - 1)
H A Dpage.h92 extern unsigned long memory_size;
/openbmc/linux/drivers/spi/
H A Dspi-wpcm-fiu.c62 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()
464 fiu->memory_size = min_t(size_t, resource_size(res), MAX_MEMORY_SIZE_TOTAL); in wpcm_fiu_probe()
/openbmc/qemu/tests/qtest/
H A Dvhost-user-test.c96 uint64_t memory_size; member
296 g_assert_cmpint(s->memory.regions[i].memory_size, >, 1024); in read_guest_mem_server()
298 size = s->memory.regions[i].memory_size + in read_guest_mem_server()
314 munmap(guest_mem, s->memory.regions[i].memory_size); in read_guest_mem_server()
709 g_assert_cmpint(s->memory.regions[i].memory_size, >, 1024); in write_guest_mem()
711 size = s->memory.regions[i].memory_size + in write_guest_mem()
724 munmap(guest_mem, s->memory.regions[i].memory_size); in write_guest_mem()
737 reg->memory_size); in get_log_size()
/openbmc/linux/include/uapi/linux/
H A Dnitro_enclaves.h328 __u64 memory_size; member
H A Dvhost_types.h115 __u64 memory_size; /* bytes */ member
/openbmc/linux/tools/testing/selftests/kvm/lib/
H A Dkvm_util.c377 ucall_init(vm, slot0->region.guest_phys_addr + slot0->region.memory_size); in __vm_create()
464 region->region.memory_size); in kvm_vm_restart()
580 + region->region.memory_size - 1; in userspace_mem_region_find()
688 region->region.memory_size = 0; in __vm_mem_region_delete()
885 .memory_size = size, in __vm_set_user_memory_region()
962 (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add()
977 (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add()
1044 region->region.memory_size = npages * vm->page_size; in vm_userspace_mem_region_add()
1052 guest_paddr, (uint64_t) region->region.memory_size); in vm_userspace_mem_region_add()
1519 + region->region.memory_size - 1)) in addr_hva2gpa()
[all …]
/openbmc/linux/drivers/bluetooth/
H A Dbtmrvl_sdio.c1338 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()
/openbmc/qemu/accel/kvm/
H A Dkvm-all.c254 if (kml->slots[i].memory_size == 0) { in kvm_get_free_slot()
364 mem.memory_size = 0; in kvm_set_user_memory_region()
375 mem.memory_size = slot->memory_size; in kvm_set_user_memory_region()
394 (uint64_t)mem.memory_size, mem.flags, in kvm_set_user_memory_region()
773 if (!mem->memory_size || offset >= in kvm_dirty_ring_mark_page()
774 (mem->memory_size / qemu_real_host_page_size())) { in kvm_dirty_ring_mark_page()
1023 end = mem->memory_size / psize; in kvm_log_clear_one_slot()
1141 if (!mem->memory_size || in kvm_physical_log_clear()
1150 count = MIN(mem->memory_size - offset, size); in kvm_physical_log_clear()
1507 mem->memory_size = 0; in kvm_set_phys_mem()
[all …]
/openbmc/qemu/include/standard-headers/linux/
H A Dvhost_types.h115 uint64_t memory_size; /* bytes */ member
/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dmv_ddr_topology.c78 iface_params->memory_size = mv_ddr_spd_die_capacity_get(&tm->spd_data); in mv_ddr_topology_map_update()
267 mem_sz_per_cs = (unsigned long long)mem_size[iface_params->memory_size] * in mv_ddr_mem_sz_per_cs_get()
H A Dddr_topology_def.h45 enum mv_ddr_die_capacity memory_size; member
H A Dddr3_training.c292 mem_index = tm->interface_params[if_id].memory_size; in ddr3_tip_configure_cs()
1629 enum mv_ddr_die_capacity memory_size = MV_DDR_DIE_CAP_2GBIT; in ddr3_tip_set_timing() local
1634 memory_size = tm->interface_params[if_id].memory_size; in ddr3_tip_set_timing()
1635 page_size = mv_ddr_page_size_get(tm->interface_params[if_id].bus_width, memory_size); in ddr3_tip_set_timing()
1684 t_rfc = time_to_nclk(mv_ddr_rfc_get(memory_size) * 1000, t_ckclk); in ddr3_tip_set_timing()
2673 if (tm->interface_params[if_id].memory_size >= in hws_ddr3_get_device_size()
2677 tm->interface_params[if_id].memory_size)); in hws_ddr3_get_device_size()
2680 return 1 << tm->interface_params[if_id].memory_size; in hws_ddr3_get_device_size()
2734 physical_mem_size = mem_size[tm->interface_params[0].memory_size]; in hws_ddr3_cs_base_adr_calc()
/openbmc/linux/arch/nios2/include/asm/
H A Dpage.h75 extern unsigned long memory_size;
/openbmc/linux/drivers/net/wireless/marvell/mwifiex/
H A Dpcie.c2854 u32 memory_size; in mwifiex_pcie_fw_dump() local
2891 memory_size = 0; in mwifiex_pcie_fw_dump()
2900 memory_size |= (read_reg << (i * 8)); in mwifiex_pcie_fw_dump()
2907 if (memory_size == 0) { in mwifiex_pcie_fw_dump()
2920 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_pcie_fw_dump()
2921 entry->mem_size = memory_size; in mwifiex_pcie_fw_dump()
2928 end_ptr = dbg_ptr + memory_size; in mwifiex_pcie_fw_dump()
2950 vzalloc(memory_size + MWIFIEX_SIZE_4K); in mwifiex_pcie_fw_dump()
2957 dbg_ptr = entry->mem_ptr + memory_size; in mwifiex_pcie_fw_dump()
2958 memory_size += MWIFIEX_SIZE_4K; in mwifiex_pcie_fw_dump()
[all …]
/openbmc/qemu/hw/virtio/
H A Dvhost-user.c123 uint64_t memory_size; member
500 dst->memory_size = src->memory_size; in vhost_user_fill_msg_region()
527 reg->memory_size, in vhost_user_fill_set_mem_table_msg()
566 shadow_reg->memory_size == vdev_reg->memory_size; in reg_equal()
738 reg->memory_size, in send_add_regions()
819 u->shadow_regions[u->num_shadow_regions].memory_size = in send_add_regions()
820 reg->memory_size; in send_add_regions()
1931 u->postcopy_client_bases[i], dev->mem->regions[i].memory_size); in vhost_user_postcopy_fault_handler()
1935 if (region_offset < dev->mem->regions[i].memory_size) { in vhost_user_postcopy_fault_handler()
1967 dev->mem->regions[i].memory_size)) { in vhost_user_postcopy_waker()
/openbmc/qemu/include/sysemu/
H A Dkvm_int.h24 ram_addr_t memory_size; member
/openbmc/linux/drivers/video/fbdev/
H A Dtgafb.c1327 unsigned memory_size; local
1335 memory_size = 2097152;
1342 memory_size = 8388608;
1349 memory_size = 16777216;
1354 memory_size = 16777216;
1366 info->fix.smem_len = memory_size;
/openbmc/linux/tools/testing/selftests/kvm/aarch64/
H A Dpage_fault_test.c357 args->paging_size = region->region.memory_size; in setup_uffd_args()
411 uint64_t paging_size = region->region.memory_size; in punch_hole_in_backing_store()
457 uint64_t size = region->region.memory_size; in check_write_in_dirty_log()
619 ucall_init(vm, region->region.guest_phys_addr + region->region.memory_size); in setup_ucall()

123