Lines Matching defs:fifo

38 	const struct vmw_fifo_state *fifo = dev_priv->fifo;
64 ((fifo->capabilities &
98 struct vmw_fifo_state *fifo;
105 fifo = kzalloc(sizeof(*fifo), GFP_KERNEL);
106 if (!fifo)
108 fifo->static_buffer_size = VMWGFX_FIFO_STATIC_SIZE;
109 fifo->static_buffer = vmalloc(fifo->static_buffer_size);
110 if (unlikely(fifo->static_buffer == NULL)) {
111 kfree(fifo);
115 fifo->dynamic_buffer = NULL;
116 fifo->reserved_size = 0;
117 fifo->using_bounce_buffer = false;
119 mutex_init(&fifo->fifo_mutex);
120 init_rwsem(&fifo->rwsem);
141 fifo->capabilities = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_CAPABILITIES);
147 (unsigned int) fifo->capabilities);
155 return fifo;
168 struct vmw_fifo_state *fifo = dev_priv->fifo;
170 if (!fifo)
173 if (likely(fifo->static_buffer != NULL)) {
174 vfree(fifo->static_buffer);
175 fifo->static_buffer = NULL;
178 if (likely(fifo->dynamic_buffer != NULL)) {
179 vfree(fifo->dynamic_buffer);
180 fifo->dynamic_buffer = NULL;
182 kfree(fifo);
183 dev_priv->fifo = NULL;
267 * Reserve @bytes number of bytes in the fifo.
270 * If it timeouts waiting for fifo space, or if @bytes is larger than the
271 * available fifo space.
274 * Pointer to the fifo, or null on error (possible hardware hang).
279 struct vmw_fifo_state *fifo_state = dev_priv->fifo;
428 struct vmw_fifo_state *fifo_state = dev_priv->fifo;
481 * vmw_cmd_commit_flush - Commit fifo space and flush any buffered commands.
553 * vmw_cmd_emit_dummy_legacy_query - emits a dummy query to the fifo using
599 * vmw_cmd_emit_dummy_gb_query - emits a dummy query to the fifo using
641 * vmw_cmd_emit_dummy_query - emits a dummy query to the fifo using
656 * Returns -ENOMEM on failure to reserve fifo space.