Lines Matching refs:max
104 uint32_t max; in vmw_fifo_init() local
150 max = vmw_mmio_read(fifo_mem + SVGA_FIFO_MAX); in vmw_fifo_init()
155 (unsigned int) max, in vmw_fifo_init()
209 uint32_t max = vmw_mmio_read(fifo_mem + SVGA_FIFO_MAX); in vmw_fifo_is_full() local
214 return ((max - next_cmd) + (stop - min) <= bytes); in vmw_fifo_is_full()
302 uint32_t max; in vmw_local_fifo_reserve() local
309 max = vmw_mmio_read(fifo_mem + SVGA_FIFO_MAX); in vmw_local_fifo_reserve()
313 if (unlikely(bytes >= (max - min))) in vmw_local_fifo_reserve()
327 if (likely((next_cmd + bytes < max || in vmw_local_fifo_reserve()
328 (next_cmd + bytes == max && stop > min)))) in vmw_local_fifo_reserve()
409 uint32_t max, uint32_t min, uint32_t bytes) in vmw_fifo_res_copy() argument
411 uint32_t chunk_size = max - next_cmd; in vmw_fifo_res_copy()
430 uint32_t max, uint32_t min, uint32_t bytes) in vmw_fifo_slow_copy() argument
438 if (unlikely(next_cmd == max)) in vmw_fifo_slow_copy()
452 uint32_t max = vmw_mmio_read(fifo_mem + SVGA_FIFO_MAX); in vmw_local_fifo_commit() local
468 next_cmd, max, min, bytes); in vmw_local_fifo_commit()
471 next_cmd, max, min, bytes); in vmw_local_fifo_commit()
483 if (next_cmd >= max) in vmw_local_fifo_commit()
484 next_cmd -= max - min; in vmw_local_fifo_commit()