diff options
author | Thomas Hellström <thomas.hellstrom@linux.intel.com> | 2023-01-12 17:25:13 -0500 |
---|---|---|
committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-12 14:06:00 -0500 |
commit | e9d285ff9d4998d20790395adc8a62f283bdb72b (patch) | |
tree | de75dd4547a6f56906279dd4a1347aade5f79126 /drivers/gpu/drm/xe/xe_migrate.h | |
parent | 7dc9b92dcfeff727776bca5ab11b3e0f3445ece2 (diff) |
drm/xe/migrate: Add kerneldoc for the migrate subsystem
Add kerneldoc for structs and external functions.
Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_migrate.h')
-rw-r--r-- | drivers/gpu/drm/xe/xe_migrate.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/drivers/gpu/drm/xe/xe_migrate.h b/drivers/gpu/drm/xe/xe_migrate.h index 267057a3847f..b2d55283252f 100644 --- a/drivers/gpu/drm/xe/xe_migrate.h +++ b/drivers/gpu/drm/xe/xe_migrate.h @@ -23,9 +23,13 @@ struct xe_vm; struct xe_vm_pgtable_update; struct xe_vma; +/** + * struct xe_migrate_pt_update_ops - Callbacks for the + * xe_migrate_update_pgtables() function. + */ struct xe_migrate_pt_update_ops { /** - * populate() - Populate a command buffer or page-table with ptes. + * @populate: Populate a command buffer or page-table with ptes. * @pt_update: Embeddable callback argument. * @gt: The gt for the current operation. * @map: struct iosys_map into the memory to be populated. @@ -44,7 +48,7 @@ struct xe_migrate_pt_update_ops { const struct xe_vm_pgtable_update *update); /** - * pre_commit(): Callback to be called just before arming the + * @pre_commit: Callback to be called just before arming the * sched_job. * @pt_update: Pointer to embeddable callback argument. * @@ -53,8 +57,16 @@ struct xe_migrate_pt_update_ops { int (*pre_commit)(struct xe_migrate_pt_update *pt_update); }; +/** + * struct xe_migrate_pt_update - Argument to the + * struct xe_migrate_pt_update_ops callbacks. + * + * Intended to be subclassed to support additional arguments if necessary. + */ struct xe_migrate_pt_update { + /** @ops: Pointer to the struct xe_migrate_pt_update_ops callbacks */ const struct xe_migrate_pt_update_ops *ops; + /** @vma: The vma we're updating the pagetable for. */ struct xe_vma *vma; }; |