hc
2024-01-03 2f7c68cb55ecb7331f2381deb497c27155f32faf
kernel/drivers/gpu/drm/drm_gem_vram_helper.c
....@@ -41,7 +41,7 @@
4141 * the frame's scanout buffer or the cursor image. If there's no more space
4242 * left in VRAM, inactive GEM objects can be moved to system memory.
4343 *
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().
4545 * The function allocates and initializes an instance of &struct drm_vram_mm
4646 * in &struct drm_device.vram_mm . Use &DRM_GEM_VRAM_DRIVER to initialize
4747 * &struct drm_driver and &DRM_VRAM_MM_FILE_OPERATIONS to initialize
....@@ -69,7 +69,7 @@
6969 * // setup device, vram base and size
7070 * // ...
7171 *
72
- * ret = drmm_vram_helper_alloc_mm(dev, vram_base, vram_size);
72
+ * ret = drmm_vram_helper_init(dev, vram_base, vram_size);
7373 * if (ret)
7474 * return ret;
7575 * return 0;
....@@ -82,7 +82,7 @@
8282 * to userspace.
8383 *
8484 * 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
8686 * clean-up handler to run during the DRM device's release.
8787 *
8888 * For drawing or scanout operations, rsp. buffer objects have to be pinned