mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/vmwgfx: Cleanup the cmd/fifo split
Lets try to cleanup the usage of the term FIFO which we used for both our MMIO based cmd queue processing and for general command processing which could have been using command buffers interface. We're going to rename the functions which are processing commands (and work either via MMIO or command buffers) as _cmd_ and functions which operate on the MMIO based commands as FIFO to match the SVGA device naming. Signed-off-by: Zack Rusin <zackr@vmware.com> Reviewed-by: Martin Krastev <krastevm@vmware.com> Link: https://patchwork.freedesktop.org/patch/414044/?series=85516&rev=2
This commit is contained in:
@@ -122,7 +122,7 @@ static int vmw_overlay_send_put(struct vmw_private *dev_priv,
|
||||
|
||||
fifo_size = sizeof(*cmds) + sizeof(*flush) + sizeof(*items) * num_items;
|
||||
|
||||
cmds = VMW_FIFO_RESERVE(dev_priv, fifo_size);
|
||||
cmds = VMW_CMD_RESERVE(dev_priv, fifo_size);
|
||||
/* hardware has hung, can't do anything here */
|
||||
if (!cmds)
|
||||
return -ENOMEM;
|
||||
@@ -169,7 +169,7 @@ static int vmw_overlay_send_put(struct vmw_private *dev_priv,
|
||||
|
||||
fill_flush(flush, arg->stream_id);
|
||||
|
||||
vmw_fifo_commit(dev_priv, fifo_size);
|
||||
vmw_cmd_commit(dev_priv, fifo_size);
|
||||
|
||||
return 0;
|
||||
}
|
||||
@@ -192,7 +192,7 @@ static int vmw_overlay_send_stop(struct vmw_private *dev_priv,
|
||||
int ret;
|
||||
|
||||
for (;;) {
|
||||
cmds = VMW_FIFO_RESERVE(dev_priv, sizeof(*cmds));
|
||||
cmds = VMW_CMD_RESERVE(dev_priv, sizeof(*cmds));
|
||||
if (cmds)
|
||||
break;
|
||||
|
||||
@@ -211,7 +211,7 @@ static int vmw_overlay_send_stop(struct vmw_private *dev_priv,
|
||||
cmds->body.items[0].value = false;
|
||||
fill_flush(&cmds->flush, stream_id);
|
||||
|
||||
vmw_fifo_commit(dev_priv, sizeof(*cmds));
|
||||
vmw_cmd_commit(dev_priv, sizeof(*cmds));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user