• Home
  • Raw
  • Download

Lines Matching refs:overlay

256 	struct vmw_overlay *overlay = dev_priv->overlay_priv;  in vmw_overlay_stop()  local
257 struct vmw_stream *stream = &overlay->stream[stream_id]; in vmw_overlay_stop()
304 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_update_stream() local
305 struct vmw_stream *stream = &overlay->stream[arg->stream_id]; in vmw_overlay_update_stream()
367 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_stop_all() local
370 if (!overlay) in vmw_overlay_stop_all()
373 mutex_lock(&overlay->mutex); in vmw_overlay_stop_all()
376 struct vmw_stream *stream = &overlay->stream[i]; in vmw_overlay_stop_all()
384 mutex_unlock(&overlay->mutex); in vmw_overlay_stop_all()
398 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_resume_all() local
401 if (!overlay) in vmw_overlay_resume_all()
404 mutex_lock(&overlay->mutex); in vmw_overlay_resume_all()
407 struct vmw_stream *stream = &overlay->stream[i]; in vmw_overlay_resume_all()
418 mutex_unlock(&overlay->mutex); in vmw_overlay_resume_all()
432 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_pause_all() local
435 if (!overlay) in vmw_overlay_pause_all()
438 mutex_lock(&overlay->mutex); in vmw_overlay_pause_all()
441 if (overlay->stream[i].paused) in vmw_overlay_pause_all()
448 mutex_unlock(&overlay->mutex); in vmw_overlay_pause_all()
466 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_ioctl() local
480 mutex_lock(&overlay->mutex); in vmw_overlay_ioctl()
496 mutex_unlock(&overlay->mutex); in vmw_overlay_ioctl()
512 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_num_free_overlays() local
518 mutex_lock(&overlay->mutex); in vmw_overlay_num_free_overlays()
521 if (!overlay->stream[i].claimed) in vmw_overlay_num_free_overlays()
524 mutex_unlock(&overlay->mutex); in vmw_overlay_num_free_overlays()
531 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_claim() local
534 if (!overlay) in vmw_overlay_claim()
537 mutex_lock(&overlay->mutex); in vmw_overlay_claim()
541 if (overlay->stream[i].claimed) in vmw_overlay_claim()
544 overlay->stream[i].claimed = true; in vmw_overlay_claim()
546 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
550 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
556 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_unref() local
560 if (!overlay) in vmw_overlay_unref()
563 mutex_lock(&overlay->mutex); in vmw_overlay_unref()
565 WARN_ON(!overlay->stream[stream_id].claimed); in vmw_overlay_unref()
567 overlay->stream[stream_id].claimed = false; in vmw_overlay_unref()
569 mutex_unlock(&overlay->mutex); in vmw_overlay_unref()
575 struct vmw_overlay *overlay; in vmw_overlay_init() local
581 overlay = kzalloc(sizeof(*overlay), GFP_KERNEL); in vmw_overlay_init()
582 if (!overlay) in vmw_overlay_init()
585 mutex_init(&overlay->mutex); in vmw_overlay_init()
587 overlay->stream[i].buf = NULL; in vmw_overlay_init()
588 overlay->stream[i].paused = false; in vmw_overlay_init()
589 overlay->stream[i].claimed = false; in vmw_overlay_init()
592 dev_priv->overlay_priv = overlay; in vmw_overlay_init()
599 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_close() local
603 if (!overlay) in vmw_overlay_close()
607 if (overlay->stream[i].buf) { in vmw_overlay_close()
616 kfree(overlay); in vmw_overlay_close()