.. | .. |
---|
41 | 41 | * the frame's scanout buffer or the cursor image. If there's no more space |
---|
42 | 42 | * left in VRAM, inactive GEM objects can be moved to system memory. |
---|
43 | 43 | * |
---|
44 | | - * To initialize the VRAM helper library call drmm_vram_helper_alloc_mm(). |
---|
| 44 | + * To initialize the VRAM helper library call drmm_vram_helper_init(). |
---|
45 | 45 | * The function allocates and initializes an instance of &struct drm_vram_mm |
---|
46 | 46 | * in &struct drm_device.vram_mm . Use &DRM_GEM_VRAM_DRIVER to initialize |
---|
47 | 47 | * &struct drm_driver and &DRM_VRAM_MM_FILE_OPERATIONS to initialize |
---|
.. | .. |
---|
69 | 69 | * // setup device, vram base and size |
---|
70 | 70 | * // ... |
---|
71 | 71 | * |
---|
72 | | - * ret = drmm_vram_helper_alloc_mm(dev, vram_base, vram_size); |
---|
| 72 | + * ret = drmm_vram_helper_init(dev, vram_base, vram_size); |
---|
73 | 73 | * if (ret) |
---|
74 | 74 | * return ret; |
---|
75 | 75 | * return 0; |
---|
.. | .. |
---|
82 | 82 | * to userspace. |
---|
83 | 83 | * |
---|
84 | 84 | * You don't have to clean up the instance of VRAM MM. |
---|
85 | | - * drmm_vram_helper_alloc_mm() is a managed interface that installs a |
---|
| 85 | + * drmm_vram_helper_init() is a managed interface that installs a |
---|
86 | 86 | * clean-up handler to run during the DRM device's release. |
---|
87 | 87 | * |
---|
88 | 88 | * For drawing or scanout operations, rsp. buffer objects have to be pinned |
---|