Commit 05436815 authored by Tom Rix's avatar Tom Rix Committed by Zack Rusin

drm/vmwgfx: cleanup comments

Remove second 'should'

Spelling replacements
aqcuire     -> acquire
applcations -> applications
assumings   -> assumes
begining    -> beginning
commited    -> committed
contol      -> control
inbetween   -> in between
resorces    -> resources
succesful   -> successful
successfule -> successful
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarZack Rusin <zackr@vmware.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220730135704.2889434-1-trix@redhat.com
parent ffb6260b
...@@ -121,7 +121,7 @@ typedef __attribute__((aligned(32))) struct MKSGuestStatInfoEntry { ...@@ -121,7 +121,7 @@ typedef __attribute__((aligned(32))) struct MKSGuestStatInfoEntry {
* *
* Since the MKSGuestStatInfoEntry structures contain userlevel * Since the MKSGuestStatInfoEntry structures contain userlevel
* pointers, the InstanceDescriptor also contains pointers to the * pointers, the InstanceDescriptor also contains pointers to the
* begining of these sections allowing the host side code to correctly * beginning of these sections allowing the host side code to correctly
* interpret the pointers. * interpret the pointers.
* *
* Because the host side code never acknowledges anything back to the * Because the host side code never acknowledges anything back to the
......
...@@ -96,7 +96,7 @@ struct ttm_object_device; ...@@ -96,7 +96,7 @@ struct ttm_object_device;
* *
* This struct is intended to be used as a base struct for objects that * This struct is intended to be used as a base struct for objects that
* are visible to user-space. It provides a global name, race-safe * are visible to user-space. It provides a global name, race-safe
* access and refcounting, minimal access contol and hooks for unref actions. * access and refcounting, minimal access control and hooks for unref actions.
*/ */
struct ttm_base_object { struct ttm_base_object {
...@@ -138,7 +138,7 @@ struct ttm_prime_object { ...@@ -138,7 +138,7 @@ struct ttm_prime_object {
* *
* @tfile: Pointer to a struct ttm_object_file. * @tfile: Pointer to a struct ttm_object_file.
* @base: The struct ttm_base_object to initialize. * @base: The struct ttm_base_object to initialize.
* @shareable: This object is shareable with other applcations. * @shareable: This object is shareable with other applications.
* (different @tfile pointers.) * (different @tfile pointers.)
* @type: The object type. * @type: The object type.
* @refcount_release: See the struct ttm_base_object description. * @refcount_release: See the struct ttm_base_object description.
......
...@@ -727,7 +727,7 @@ int vmw_user_bo_lookup(struct drm_file *filp, ...@@ -727,7 +727,7 @@ int vmw_user_bo_lookup(struct drm_file *filp,
* Any persistent usage of the object requires a refcount to be taken using * Any persistent usage of the object requires a refcount to be taken using
* ttm_bo_reference_unless_doomed(). Iff this function returns successfully it * ttm_bo_reference_unless_doomed(). Iff this function returns successfully it
* needs to be paired with vmw_user_bo_noref_release() and no sleeping- * needs to be paired with vmw_user_bo_noref_release() and no sleeping-
* or scheduling functions may be called inbetween these function calls. * or scheduling functions may be called in between these function calls.
* *
* Return: A struct vmw_buffer_object pointer if successful or negative * Return: A struct vmw_buffer_object pointer if successful or negative
* error pointer on failure. * error pointer on failure.
......
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
* @res: Refcounted pointer to a struct vmw_resource. * @res: Refcounted pointer to a struct vmw_resource.
* @hash: Hash entry for the manager hash table. * @hash: Hash entry for the manager hash table.
* @head: List head used either by the staging list or the manager list * @head: List head used either by the staging list or the manager list
* of commited resources. * of committed resources.
* @state: Staging state of this resource entry. * @state: Staging state of this resource entry.
* @man: Pointer to a resource manager for this entry. * @man: Pointer to a resource manager for this entry.
*/ */
...@@ -51,9 +51,9 @@ struct vmw_cmdbuf_res { ...@@ -51,9 +51,9 @@ struct vmw_cmdbuf_res {
/** /**
* struct vmw_cmdbuf_res_manager - Command buffer resource manager. * struct vmw_cmdbuf_res_manager - Command buffer resource manager.
* *
* @resources: Hash table containing staged and commited command buffer * @resources: Hash table containing staged and committed command buffer
* resources * resources
* @list: List of commited command buffer resources. * @list: List of committed command buffer resources.
* @dev_priv: Pointer to a device private structure. * @dev_priv: Pointer to a device private structure.
* *
* @resources and @list are protected by the cmdbuf mutex for now. * @resources and @list are protected by the cmdbuf mutex for now.
...@@ -118,7 +118,7 @@ static void vmw_cmdbuf_res_free(struct vmw_cmdbuf_res_manager *man, ...@@ -118,7 +118,7 @@ static void vmw_cmdbuf_res_free(struct vmw_cmdbuf_res_manager *man,
* This function commits a list of command buffer resource * This function commits a list of command buffer resource
* additions or removals. * additions or removals.
* It is typically called when the execbuf ioctl call triggering these * It is typically called when the execbuf ioctl call triggering these
* actions has commited the fifo contents to the device. * actions has committed the fifo contents to the device.
*/ */
void vmw_cmdbuf_res_commit(struct list_head *list) void vmw_cmdbuf_res_commit(struct list_head *list)
{ {
......
...@@ -70,7 +70,7 @@ struct vmw_du_update_plane { ...@@ -70,7 +70,7 @@ struct vmw_du_update_plane {
* *
* Some surface resource or buffer object need some extra cmd submission * Some surface resource or buffer object need some extra cmd submission
* like update GB image for proxy surface and define a GMRFB for screen * like update GB image for proxy surface and define a GMRFB for screen
* object. That should should be done here as this callback will be * object. That should be done here as this callback will be
* called after FIFO allocation with the address of command buufer. * called after FIFO allocation with the address of command buufer.
* *
* This callback is optional. * This callback is optional.
......
...@@ -525,7 +525,7 @@ void vmw_resource_unreserve(struct vmw_resource *res, ...@@ -525,7 +525,7 @@ void vmw_resource_unreserve(struct vmw_resource *res,
* for a resource and in that case, allocate * for a resource and in that case, allocate
* one, reserve and validate it. * one, reserve and validate it.
* *
* @ticket: The ww aqcquire context to use, or NULL if trylocking. * @ticket: The ww acquire context to use, or NULL if trylocking.
* @res: The resource for which to allocate a backup buffer. * @res: The resource for which to allocate a backup buffer.
* @interruptible: Whether any sleeps during allocation should be * @interruptible: Whether any sleeps during allocation should be
* performed while interruptible. * performed while interruptible.
...@@ -686,7 +686,7 @@ static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket, ...@@ -686,7 +686,7 @@ static int vmw_resource_do_evict(struct ww_acquire_ctx *ticket,
* @intr: Perform waits interruptible if possible. * @intr: Perform waits interruptible if possible.
* @dirtying: Pending GPU operation will dirty the resource * @dirtying: Pending GPU operation will dirty the resource
* *
* On succesful return, any backup DMA buffer pointed to by @res->backup will * On successful return, any backup DMA buffer pointed to by @res->backup will
* be reserved and validated. * be reserved and validated.
* On hardware resource shortage, this function will repeatedly evict * On hardware resource shortage, this function will repeatedly evict
* resources of the same type until the validation succeeds. * resources of the same type until the validation succeeds.
...@@ -804,7 +804,7 @@ void vmw_resource_unbind_list(struct vmw_buffer_object *vbo) ...@@ -804,7 +804,7 @@ void vmw_resource_unbind_list(struct vmw_buffer_object *vbo)
* @dx_query_mob: Buffer containing the DX query MOB * @dx_query_mob: Buffer containing the DX query MOB
* *
* Read back cached states from the device if they exist. This function * Read back cached states from the device if they exist. This function
* assumings binding_mutex is held. * assumes binding_mutex is held.
*/ */
int vmw_query_readback_all(struct vmw_buffer_object *dx_query_mob) int vmw_query_readback_all(struct vmw_buffer_object *dx_query_mob)
{ {
...@@ -1125,7 +1125,7 @@ int vmw_resources_clean(struct vmw_buffer_object *vbo, pgoff_t start, ...@@ -1125,7 +1125,7 @@ int vmw_resources_clean(struct vmw_buffer_object *vbo, pgoff_t start,
} }
/* /*
* In order of increasing backup_offset, clean dirty resorces * In order of increasing backup_offset, clean dirty resources
* intersecting the range. * intersecting the range.
*/ */
while (found) { while (found) {
......
...@@ -196,7 +196,7 @@ vmw_simple_resource_create_ioctl(struct drm_device *dev, void *data, ...@@ -196,7 +196,7 @@ vmw_simple_resource_create_ioctl(struct drm_device *dev, void *data,
* type. * type.
* *
* Returns: Refcounted pointer to the embedded struct vmw_resource if * Returns: Refcounted pointer to the embedded struct vmw_resource if
* successfule. Error pointer otherwise. * successful. Error pointer otherwise.
*/ */
struct vmw_resource * struct vmw_resource *
vmw_simple_resource_lookup(struct ttm_object_file *tfile, vmw_simple_resource_lookup(struct ttm_object_file *tfile,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment