gem.c (d0034a7a4ac7fae708146ac0059b9c47a1543f0d) | gem.c (f71635e893c3832790484f2e22b8d5825cc6ce1c) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * psb GEM interface 4 * 5 * Copyright (c) 2011, Intel Corporation. 6 * 7 * Authors: Alan Cox 8 * --- 133 unchanged lines hidden (view full) --- 142 vm_fault_t ret; 143 unsigned long pfn; 144 pgoff_t page_offset; 145 struct drm_device *dev; 146 struct drm_psb_private *dev_priv; 147 148 obj = vma->vm_private_data; /* GEM object */ 149 dev = obj->dev; | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * psb GEM interface 4 * 5 * Copyright (c) 2011, Intel Corporation. 6 * 7 * Authors: Alan Cox 8 * --- 133 unchanged lines hidden (view full) --- 142 vm_fault_t ret; 143 unsigned long pfn; 144 pgoff_t page_offset; 145 struct drm_device *dev; 146 struct drm_psb_private *dev_priv; 147 148 obj = vma->vm_private_data; /* GEM object */ 149 dev = obj->dev; |
150 dev_priv = dev->dev_private; | 150 dev_priv = to_drm_psb_private(dev); |
151 152 r = container_of(obj, struct gtt_range, gem); /* Get the gtt range */ 153 154 /* Make sure we don't parallel update on a fault, nor move or remove 155 something from beneath our feet */ 156 mutex_lock(&dev_priv->mmap_mutex); 157 158 /* For now the mmap pins the object and it stays pinned. As things --- 26 unchanged lines hidden --- | 151 152 r = container_of(obj, struct gtt_range, gem); /* Get the gtt range */ 153 154 /* Make sure we don't parallel update on a fault, nor move or remove 155 something from beneath our feet */ 156 mutex_lock(&dev_priv->mmap_mutex); 157 158 /* For now the mmap pins the object and it stays pinned. As things --- 26 unchanged lines hidden --- |