Lines Matching refs:next_cmd
182 uint32_t next_cmd = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_NEXT_CMD); in vmw_fifo_is_full() local
186 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
276 uint32_t next_cmd; in vmw_local_fifo_reserve() local
283 next_cmd = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_NEXT_CMD); in vmw_local_fifo_reserve()
298 if (next_cmd >= stop) { in vmw_local_fifo_reserve()
299 if (likely((next_cmd + bytes < max || in vmw_local_fifo_reserve()
300 (next_cmd + bytes == max && stop > min)))) in vmw_local_fifo_reserve()
313 if (likely((next_cmd + bytes < stop))) in vmw_local_fifo_reserve()
332 (next_cmd >> 2)); in vmw_local_fifo_reserve()
379 uint32_t next_cmd, in vmw_fifo_res_copy() argument
383 uint32_t chunk_size = max - next_cmd; in vmw_fifo_res_copy()
393 memcpy(fifo_mem + (next_cmd >> 2), buffer, chunk_size); in vmw_fifo_res_copy()
401 uint32_t next_cmd, in vmw_fifo_slow_copy() argument
408 vmw_fifo_mem_write(vmw, (next_cmd >> 2), *buffer++); in vmw_fifo_slow_copy()
409 next_cmd += sizeof(uint32_t); in vmw_fifo_slow_copy()
410 if (unlikely(next_cmd == max)) in vmw_fifo_slow_copy()
411 next_cmd = min; in vmw_fifo_slow_copy()
413 vmw_fifo_mem_write(vmw, SVGA_FIFO_NEXT_CMD, next_cmd); in vmw_fifo_slow_copy()
422 uint32_t next_cmd = vmw_fifo_mem_read(dev_priv, SVGA_FIFO_NEXT_CMD); in vmw_local_fifo_commit() local
435 next_cmd, max, min, bytes); in vmw_local_fifo_commit()
438 next_cmd, max, min, bytes); in vmw_local_fifo_commit()
449 next_cmd += bytes; in vmw_local_fifo_commit()
450 if (next_cmd >= max) in vmw_local_fifo_commit()
451 next_cmd -= max - min; in vmw_local_fifo_commit()
453 vmw_fifo_mem_write(dev_priv, SVGA_FIFO_NEXT_CMD, next_cmd); in vmw_local_fifo_commit()