Home
last modified time | relevance | path

Searched +full:vm +full:- +full:map (Results 1 – 25 of 330) sorted by relevance

12345678910>>...14

/Linux-v5.10/Documentation/devicetree/bindings/hwmon/
Dmoortec,mr75203.yaml1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
3 ---
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Rahul Tanwar <rtanwar@maxlinear.com>
18 - description: PVT common registers
19 - description: PVT temprature sensor registers
20 - description: PVT process detector registers
21 - description: PVT voltage monitor registers
23 reg-names:
25 - const: common
[all …]
/Linux-v5.10/drivers/irqchip/
Dirq-gic-v4.c1 // SPDX-License-Identifier: GPL-2.0-only
13 #include <linux/irqchip/arm-gic-v4.h>
25 * agnostic actually means KVM-specific - what were you thinking?).
30 * - Any guest-visible VLPI is backed by a Linux interrupt (and a
36 * - Enabling/disabling a VLPI is done by issuing mask/unmask calls.
38 * - Guest INT/CLEAR commands are implemented through
41 * - The *bizarre* stuff (mapping/unmapping an interrupt to a VLPI, or
45 * confines the crap to a single location. And map/unmap really is
61 * interrupts which are delivered when a VLPI targeting a non-running
70 * - VMs (or rather the VM abstraction that matters to the GIC)
[all …]
Dirq-gic-v3-its.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2013-2017 ARM Limited, All Rights Reserved.
14 #include <linux/dma-iommu.h>
34 #include <linux/irqchip/arm-gic-v3.h>
35 #include <linux/irqchip/arm-gic-v4.h>
40 #include "irq-gic-common.h"
63 * Collection structure - just an ID, and a redistributor address to
73 * The ITS_BASER structure - contains memory information, cached
86 * The ITS structure - contains most of the infrastructure, with the
87 * top-level MSI domain, the command queue, the collections, and the
[all …]
/Linux-v5.10/tools/testing/selftests/vm/
Dcompaction_test.c1 // SPDX-License-Identifier: GPL-2.0
25 void *map; member
32 char *cmd = "cat /proc/meminfo | grep -i memfree | grep -o '[0-9]*'"; in read_memory_info()
37 return -1; in read_memory_info()
43 cmd = "cat /proc/meminfo | grep -i hugepagesize | grep -o '[0-9]*'"; in read_memory_info()
48 return -1; in read_memory_info()
62 fd = open("/proc/sys/vm/compact_unevictable_allowed", in prereq()
66 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq()
67 return -1; in prereq()
72 "/proc/sys/vm/compact_unevictable_allowed\n"); in prereq()
[all …]
/Linux-v5.10/tools/testing/selftests/kvm/x86_64/
Dvmx_dirty_log_test.c1 // SPDX-License-Identifier: GPL-2.0
55 GUEST_ASSERT(vmx->vmcs_gpa); in l1_guest_code()
76 struct kvm_vm *vm; in main() local
83 /* Create VM */ in main()
84 vm = vm_create_default(VCPU_ID, 0, l1_guest_code); in main()
85 vcpu_set_cpuid(vm, VCPU_ID, kvm_get_supported_cpuid()); in main()
86 vmx = vcpu_alloc_vmx(vm, &vmx_pages_gva); in main()
87 vcpu_args_set(vm, VCPU_ID, 1, vmx_pages_gva); in main()
88 run = vcpu_state(vm, VCPU_ID); in main()
91 vm_userspace_mem_region_add(vm, VM_MEM_SRC_ANONYMOUS, in main()
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/selftests/
Di915_vma.c42 if (vma->vm != rcu_access_pointer(ctx->vm)) { in assert_vma()
43 pr_err("VMA created with wrong VM\n"); in assert_vma()
47 if (vma->size != obj->base.size) { in assert_vma()
49 vma->size, obj->base.size); in assert_vma()
53 if (vma->ggtt_view.type != I915_GGTT_VIEW_NORMAL) { in assert_vma()
55 vma->ggtt_view.type); in assert_vma()
64 struct i915_address_space *vm, in checked_vma_instance() argument
70 vma = i915_vma_instance(obj, vm, view); in checked_vma_instance()
75 if (vma->vm != vm) { in checked_vma_instance()
76 pr_err("VMA's vm [%p] does not match request [%p]\n", in checked_vma_instance()
[all …]
/Linux-v5.10/arch/arm/mm/
Dmmu.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 1995-2005 Russell King
34 #include <asm/mach/map.h>
44 * zero-initialized data and COW.
50 * The pmd table for the upper-most set of pages.
141 int i, selected = -1; in early_cachepolicy()
152 if (selected == -1) in early_cachepolicy()
236 [MT_DEVICE_NONSHARED] = { /* ARMv6 non-shared device */
433 pr_warn("Forcing write-allocate cache policy for SMP\n"); in build_mem_type_table()
444 * Pre-ARMv5 CPUs don't have TEX bits. Pre-ARMv6 CPUs or those in build_mem_type_table()
[all …]
Dioremap.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Re-map IO memory to kernel address space so that we can access it.
17 * Because the ARM only has a 32-bit address space we can't address the
18 * whole of the (physical) PCI space at once. PCI huge-mode addressing
40 #include <asm/mach/map.h>
51 struct vm_struct *vm; in find_static_vm_paddr() local
54 vm = &svm->vm; in find_static_vm_paddr()
55 if (!(vm->flags & VM_ARM_STATIC_MAPPING)) in find_static_vm_paddr()
57 if ((vm->flags & VM_ARM_MTYPE_MASK) != VM_ARM_MTYPE(mtype)) in find_static_vm_paddr()
60 if (vm->phys_addr > paddr || in find_static_vm_paddr()
[all …]
/Linux-v5.10/sound/pci/ctxfi/
Dctvmem.c1 // SPDX-License-Identifier: GPL-2.0-only
26 * Find or create vm block based on requested @size.
30 get_vm_block(struct ct_vm *vm, unsigned int size, struct ct_atc *atc) in get_vm_block() argument
36 if (size > vm->size) { in get_vm_block()
37 dev_err(atc->card->dev, in get_vm_block()
42 mutex_lock(&vm->lock); in get_vm_block()
43 list_for_each(pos, &vm->unused) { in get_vm_block()
45 if (entry->size >= size) in get_vm_block()
48 if (pos == &vm->unused) in get_vm_block()
51 if (entry->size == size) { in get_vm_block()
[all …]
Dctvmem.h1 /* SPDX-License-Identifier: GPL-2.0-only */
30 #define CT_PAGE_MASK (~(PAGE_SIZE - 1))
49 /* Map host addr (kmalloced/vmalloced) to device logical addr. */
50 struct ct_vm_block *(*map)(struct ct_vm *, struct snd_pcm_substream *, member
54 dma_addr_t (*get_ptp_phys)(struct ct_vm *vm, int index);
58 void ct_vm_destroy(struct ct_vm *vm);
/Linux-v5.10/mm/
Dvmalloc.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * SMP-safe vmalloc/vfree/ioremap, Tigran Aivazian <tigran@veritas.com>, May 2000
43 #include "pgalloc-track.h"
66 llist_for_each_safe(llnode, t, llist_del_all(&p->list)) in free_work()
157 * unmap_kernel_range_noflush - unmap kernel VM area
158 * @start: start of the VM area to unmap
159 * @size: size of the VM area to unmap
161 * Unmap PFN_UP(@size) pages at @addr. The VM area @addr and @size specify
166 * for calling flush_cache_vunmap() on to-be-mapped areas before calling this
205 return -ENOMEM; in vmap_pte_range()
[all …]
/Linux-v5.10/include/linux/irqchip/
Darm-gic-v4.h1 /* SPDX-License-Identifier: GPL-2.0-only */
14 * ITSList mechanism to perform inter-ITS synchronization.
35 /* per-vPE VLPI tracking */
65 * vPE and vLPI operations using vpe->col_idx.
74 /* Unique (system-wide) VPE identifier */
86 * @vm: Pointer to the GICv4 notion of a VM
93 struct its_vm *vm; member
114 struct its_vlpi_map *map; member
128 int its_alloc_vcpu_irqs(struct its_vm *vm);
129 void its_free_vcpu_irqs(struct its_vm *vm);
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/gem/selftests/
Di915_gem_context.c2 * SPDX-License-Identifier: MIT
33 return rcu_dereference_protected(ctx->vm, true); in ctx_vm()
45 int err = -ENODEV; in live_nop_switch()
55 if (!DRIVER_CAPS(i915)->has_logical_contexts) in live_nop_switch()
64 err = -ENOMEM; in live_nop_switch()
91 i915_request_await_dma_fence(this, &rq->fence); in live_nop_switch()
99 intel_gt_set_wedged(&i915->gt); in live_nop_switch()
101 err = -EIO; in live_nop_switch()
109 nctx, engine->name, ktime_to_ns(times[1] - times[0])); in live_nop_switch()
111 err = igt_live_test_begin(&t, i915, __func__, engine->name); in live_nop_switch()
[all …]
Di915_gem_coherency.c2 * SPDX-License-Identifier: MIT
26 void *map; in cpu_set() local
30 i915_gem_object_lock(ctx->obj, NULL); in cpu_set()
31 err = i915_gem_object_prepare_write(ctx->obj, &needs_clflush); in cpu_set()
35 page = i915_gem_object_get_page(ctx->obj, offset >> PAGE_SHIFT); in cpu_set()
36 map = kmap_atomic(page); in cpu_set()
37 cpu = map + offset_in_page(offset); in cpu_set()
47 kunmap_atomic(map); in cpu_set()
48 i915_gem_object_finish_access(ctx->obj); in cpu_set()
51 i915_gem_object_unlock(ctx->obj); in cpu_set()
[all …]
/Linux-v5.10/Documentation/s390/
Dmonreader.rst2 Linux API for read access to z/VM Monitor Records
5 Date : 2004-Nov-26
15 usable from user space and allows read access to the z/VM Monitor Records
16 collected by the `*MONITOR` System Service of z/VM.
21 The z/VM guest on which you want to access this API needs to be configured in
25 This item will use the IUCV device driver to access the z/VM services, so you
26 need a kernel with IUCV support. You also need z/VM version 4.4 or 5.1.
30 location of the monitor DCSS with the Class E privileged CP command Q NSS MAP
33 See also "CP Command and Utility Reference" (SC24-6081-00) for more information
34 on the DEF STOR and Q NSS MAP commands, as well as "Saved Segments Planning
[all …]
/Linux-v5.10/tools/testing/selftests/kvm/lib/x86_64/
Dvmx.c1 // SPDX-License-Identifier: GPL-2.0-only
46 int vcpu_enable_evmcs(struct kvm_vm *vm, int vcpu_id) in vcpu_enable_evmcs() argument
55 vcpu_ioctl(vm, vcpu_id, KVM_ENABLE_CAP, &enable_evmcs_cap); in vcpu_enable_evmcs()
69 * vm - The VM to allocate guest-virtual addresses in.
72 * p_vmx_gva - The guest virtual address for the struct vmx_pages.
78 vcpu_alloc_vmx(struct kvm_vm *vm, vm_vaddr_t *p_vmx_gva) in vcpu_alloc_vmx() argument
80 vm_vaddr_t vmx_gva = vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
81 struct vmx_pages *vmx = addr_gva2hva(vm, vmx_gva); in vcpu_alloc_vmx()
84 vmx->vmxon = (void *)vm_vaddr_alloc(vm, getpagesize(), 0x10000, 0, 0); in vcpu_alloc_vmx()
85 vmx->vmxon_hva = addr_gva2hva(vm, (uintptr_t)vmx->vmxon); in vcpu_alloc_vmx()
[all …]
/Linux-v5.10/Documentation/vm/
Dovercommit-accounting.rst34 The overcommit policy is set via the sysctl ``vm.overcommit_memory``.
36 The overcommit amount can be set via ``vm.overcommit_ratio`` (percentage)
37 or ``vm.overcommit_kbytes`` (absolute value).
58 For a file backed map
59 | SHARED or READ-only - 0 cost (the file is the map not swap)
60 | PRIVATE WRITABLE - size of mapping per instance
62 For an anonymous or ``/dev/zero`` map
63 | SHARED - size of mapping
64 | PRIVATE READ-only - 0 cost (but of little use)
65 | PRIVATE WRITABLE - size of mapping per instance
/Linux-v5.10/drivers/misc/habanalabs/common/
Dmemory.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright 2016-2019 HabanaLabs, Ltd.
29 * two chunks - one to return as result and a remainder to stay in the list.
42 * alloc_device_memory - allocate device memory
49 * - Allocate the requested size rounded up to 2MB pages
50 * - Return unique handle
55 struct hl_device *hdev = ctx->hdev; in alloc_device_memory()
56 struct hl_vm *vm = &hdev->vm; in alloc_device_memory() local
64 page_size = hdev->asic_prop.dram_page_size; in alloc_device_memory()
66 num_pgs = (args->alloc.mem_size + (page_size - 1)) >> page_shift; in alloc_device_memory()
[all …]
/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_amdkfd_gpuvm.c2 * Copyright 2014-2018 Advanced Micro Devices, Inc.
22 #include <linux/dma-buf.h>
37 /* Userptr restore delay, just long enough to allow consecutive VM
66 #define domain_string(domain) domain_bit_to_string[ffs(domain)-1]
81 list_for_each_entry(entry, &mem->bo_va_list, bo_list) in check_if_add_bo_to_vm()
82 if (entry->bo_va->base.vm == avm) in check_if_add_bo_to_vm()
89 * System (TTM + userptr) memory - 15/16th System RAM
90 * TTM memory - 3/8th System RAM
98 mem = si.totalram - si.totalhigh; in amdgpu_amdkfd_gpuvm_init_mem_limits()
102 kfd_mem_limit.max_system_mem_limit = mem - (mem >> 4); in amdgpu_amdkfd_gpuvm_init_mem_limits()
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/gem/
Di915_gem_context.c2 * SPDX-License-Identifier: MIT
4 * Copyright © 2011-2012 Intel Corporation
19 * would happen if a client ran and piggy-backed off another clients GPU state.
27 * store GPU state, and thus allow GPU clients to not re-emit state (and
31 * The context life cycle is semi-complicated in that context BOs may live
44 * S0->S1: client creates a context
45 * S1->S2: client submits execbuf with context
46 * S2->S3: other clients submits execbuf with context
47 * S3->S1: context object was retired
48 * S3->S2: clients submits another execbuf
[all …]
/Linux-v5.10/tools/testing/selftests/kvm/include/
Dperf_test_util.h1 // SPDX-License-Identifier: GPL-2.0
52 struct kvm_vm *vm; member
74 GUEST_ASSERT(vcpu_args->vcpu_id == vcpu_id); in guest_code()
76 gva = vcpu_args->gva; in guest_code()
77 pages = vcpu_args->pages; in guest_code()
96 struct kvm_vm *vm; in create_vm() local
100 /* Account for a few pages per-vCPU for stacks */ in create_vm()
104 * Reserve twice the ammount of memory needed to map the test region and in create_vm()
116 vm = vm_create(mode, pages, O_RDWR); in create_vm()
117 kvm_vm_elf_load(vm, program_invocation_name, 0, 0); in create_vm()
[all …]
Dkvm_util.h1 /* SPDX-License-Identifier: GPL-2.0-only */
22 * structure kvm_util is using to maintain the state of a VM.
65 int vm_enable_cap(struct kvm_vm *vm, struct kvm_enable_cap *cap);
66 int vcpu_enable_cap(struct kvm_vm *vm, uint32_t vcpu_id,
68 void vm_enable_dirty_ring(struct kvm_vm *vm, uint32_t ring_size);
74 void kvm_vm_get_dirty_log(struct kvm_vm *vm, int slot, void *log);
75 void kvm_vm_clear_dirty_log(struct kvm_vm *vm, int slot, void *log,
78 int kvm_memcmp_hva_gva(void *hva, struct kvm_vm *vm, const vm_vaddr_t gva,
81 void kvm_vm_elf_load(struct kvm_vm *vm, const char *filename,
84 void vm_dump(FILE *stream, struct kvm_vm *vm, uint8_t indent);
[all …]
/Linux-v5.10/drivers/gpu/drm/omapdrm/
Domap_encoder.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2011 Texas Instruments Incorporated - http://www.ti.com/
22 /* The encoder and connector both map to same dssdev.. the encoder
24 * of the hw, and the connector handles the 'read-only' parts, like
44 static void omap_encoder_update_videomode_flags(struct videomode *vm, in omap_encoder_update_videomode_flags() argument
47 if (!(vm->flags & (DISPLAY_FLAGS_DE_LOW | in omap_encoder_update_videomode_flags()
50 vm->flags |= DISPLAY_FLAGS_DE_LOW; in omap_encoder_update_videomode_flags()
52 vm->flags |= DISPLAY_FLAGS_DE_HIGH; in omap_encoder_update_videomode_flags()
55 if (!(vm->flags & (DISPLAY_FLAGS_PIXDATA_POSEDGE | in omap_encoder_update_videomode_flags()
58 vm->flags |= DISPLAY_FLAGS_PIXDATA_POSEDGE; in omap_encoder_update_videomode_flags()
[all …]
/Linux-v5.10/drivers/gpu/drm/i915/gt/
Dintel_gtt.h1 /* SPDX-License-Identifier: MIT */
19 #include <linux/io-mapping.h>
49 #define I915_GTT_PAGE_MASK -I915_GTT_PAGE_SIZE
53 #define I915_FENCE_REG_NONE -1
61 #define ggtt_total_entries(ggtt) ((ggtt)->vm.total >> PAGE_SHIFT)
64 #define I915_PTE_MASK(pte_len) (I915_PTES(pte_len) - 1)
66 #define I915_PDE_MASK (I915_PDES - 1)
68 /* gen6-hsw has bit 11-4 for physical addr bit 39-32 */
81 #define NUM_PTE(pde_shift) (1 << (pde_shift - PAGE_SHIFT))
89 * Cacheability Control is a 4-bit value. The low three bits are stored in bits
[all …]
/Linux-v5.10/drivers/gpu/drm/arm/
Dmalidp_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
29 MW_ONESHOT, /* SE in one-shot mode for writeback */
196 [MALIDP_UPSCALING_COEFFS - 1] = {
210 [MALIDP_DOWNSCALING_1_5_COEFFS - 1] = {
224 [MALIDP_DOWNSCALING_2_COEFFS - 1] = {
238 [MALIDP_DOWNSCALING_2_75_COEFFS - 1] = {
252 [MALIDP_DOWNSCALING_4_COEFFS - 1] = {
276 hwdev->min_line_size = 2; in malidp500_query_hw()
277 hwdev->max_line_size = SZ_2K * ln_size_mult; in malidp500_query_hw()
278 hwdev->rotation_memory[0] = SZ_1K * 64 * ln_size_mult; in malidp500_query_hw()
[all …]

12345678910>>...14