Lines Matching refs:next_cmd
213 uint32_t next_cmd = ioread32(fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_is_full() local
217 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
321 uint32_t next_cmd; in vmw_fifo_reserve() local
328 next_cmd = ioread32(fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_reserve()
343 if (next_cmd >= stop) { in vmw_fifo_reserve()
344 if (likely((next_cmd + bytes < max || in vmw_fifo_reserve()
345 (next_cmd + bytes == max && stop > min)))) in vmw_fifo_reserve()
358 if (likely((next_cmd + bytes < stop))) in vmw_fifo_reserve()
375 return fifo_mem + (next_cmd >> 2); in vmw_fifo_reserve()
401 uint32_t next_cmd, in vmw_fifo_res_copy() argument
404 uint32_t chunk_size = max - next_cmd; in vmw_fifo_res_copy()
414 memcpy_toio(fifo_mem + (next_cmd >> 2), buffer, chunk_size); in vmw_fifo_res_copy()
423 uint32_t next_cmd, in vmw_fifo_slow_copy() argument
430 iowrite32(*buffer++, fifo_mem + (next_cmd >> 2)); in vmw_fifo_slow_copy()
431 next_cmd += sizeof(uint32_t); in vmw_fifo_slow_copy()
432 if (unlikely(next_cmd == max)) in vmw_fifo_slow_copy()
433 next_cmd = min; in vmw_fifo_slow_copy()
435 iowrite32(next_cmd, fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_slow_copy()
445 uint32_t next_cmd = ioread32(fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_commit() local
458 next_cmd, max, min, bytes); in vmw_fifo_commit()
461 next_cmd, max, min, bytes); in vmw_fifo_commit()
472 next_cmd += bytes; in vmw_fifo_commit()
473 if (next_cmd >= max) in vmw_fifo_commit()
474 next_cmd -= max - min; in vmw_fifo_commit()
476 iowrite32(next_cmd, fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_commit()