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()
399 uint32_t next_cmd, in vmw_fifo_res_copy() argument
402 uint32_t chunk_size = max - next_cmd; in vmw_fifo_res_copy()
412 memcpy_toio(fifo_mem + (next_cmd >> 2), buffer, chunk_size); in vmw_fifo_res_copy()
421 uint32_t next_cmd, in vmw_fifo_slow_copy() argument
428 iowrite32(*buffer++, fifo_mem + (next_cmd >> 2)); in vmw_fifo_slow_copy()
429 next_cmd += sizeof(uint32_t); in vmw_fifo_slow_copy()
430 if (unlikely(next_cmd == max)) in vmw_fifo_slow_copy()
431 next_cmd = min; in vmw_fifo_slow_copy()
433 iowrite32(next_cmd, fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_slow_copy()
443 uint32_t next_cmd = ioread32(fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_commit() local
456 next_cmd, max, min, bytes); in vmw_fifo_commit()
459 next_cmd, max, min, bytes); in vmw_fifo_commit()
470 next_cmd += bytes; in vmw_fifo_commit()
471 if (next_cmd >= max) in vmw_fifo_commit()
472 next_cmd -= max - min; in vmw_fifo_commit()
474 iowrite32(next_cmd, fifo_mem + SVGA_FIFO_NEXT_CMD); in vmw_fifo_commit()