Home
last modified time | relevance | path

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

/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
/drivers/virt/gunyah/
Dvm_mgr_mm.c108 if (!region->memory_size || !PAGE_ALIGNED(region->memory_size) || in gh_vm_mem_alloc()
113 if (overflows_type(region->guest_phys_addr + region->memory_size, u64)) in gh_vm_mem_alloc()
128 region->memory_size)) { in gh_vm_mem_alloc()
141 mapping->npages = region->memory_size >> PAGE_SHIFT; in gh_vm_mem_alloc()
/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()
/drivers/net/wireless/marvell/mwifiex/
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()
2904 memory_size = MWIFIEX_FW_DUMP_MAX_MEMSIZE; in mwifiex_pcie_fw_dump()
2907 if (memory_size == 0) { in mwifiex_pcie_fw_dump()
2919 "%s_SIZE=0x%x\n", entry->mem_name, memory_size); 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()
[all …]
Dsdio.c2764 u32 memory_size; in mwifiex_sdio_fw_dump() local
2804 memory_size = 0; in mwifiex_sdio_fw_dump()
2812 memory_size |= (read_reg << i*8); in mwifiex_sdio_fw_dump()
2816 if (memory_size == 0) { in mwifiex_sdio_fw_dump()
2829 "%s_SIZE=0x%x\n", entry->mem_name, memory_size); in mwifiex_sdio_fw_dump()
2830 entry->mem_ptr = vmalloc(memory_size + 1); in mwifiex_sdio_fw_dump()
2831 entry->mem_size = memory_size; in mwifiex_sdio_fw_dump()
2838 end_ptr = dbg_ptr + memory_size; in mwifiex_sdio_fw_dump()
/drivers/video/fbdev/
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;
Dps3fb.c95 u32 memory_size; member
1062 dinfo->memory_size, dinfo->hardware_channel, in ps3fb_probe()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_drv.c925 dev_priv->memory_size = in vmw_driver_load()
927 dev_priv->memory_size -= dev_priv->vram_size; in vmw_driver_load()
933 dev_priv->memory_size = 512*1024*1024; in vmw_driver_load()
982 dev_priv->memory_size / 1024); in vmw_driver_load()
Dvmwgfx_ioctl.c83 param->value = dev_priv->memory_size; in vmw_getparam_ioctl()
Dvmwgfx_drv.h540 uint32_t memory_size; member
Dvmwgfx_surface.c413 dev_priv->memory_size)) in vmw_legacy_srf_create()
/drivers/virt/geniezone/
Dgzvm_vm.c116 if (size != mem->memory_size) in gzvm_vm_ioctl_set_memory_region()
/drivers/gpu/drm/amd/include/
Datomfirmware.h3126 …uint32_t memory_size; // Total memory size in unit of MB for CONFIG_MEMSIZE zer… member
3249 …uint32_t memory_size; // Total memory size in unit of MB for CONFIG_MEMSIZE zer… member
3291 …uint32_t memory_size; // Total memory size in unit of MB for CONFIG_MEMSIZE zer… member
/drivers/scsi/megaraid/
Dmegaraid_sas.h1052 __le16 memory_size; member
Dmegaraid_sas_base.c5335 instance->is_imr = (ci->memory_size ? 0 : 1); in megasas_get_ctrl_info()
5347 le16_to_cpu(ci->memory_size)); in megasas_get_ctrl_info()
/drivers/vhost/
Dvhost.c1468 region->memory_size - 1, in vhost_set_memory()