Lines Matching refs:overlay
254 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_stop() local
255 struct vmw_stream *stream = &overlay->stream[stream_id]; in vmw_overlay_stop()
302 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_update_stream() local
303 struct vmw_stream *stream = &overlay->stream[arg->stream_id]; in vmw_overlay_update_stream()
365 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_resume_all() local
368 if (!overlay) in vmw_overlay_resume_all()
371 mutex_lock(&overlay->mutex); in vmw_overlay_resume_all()
374 struct vmw_stream *stream = &overlay->stream[i]; in vmw_overlay_resume_all()
385 mutex_unlock(&overlay->mutex); in vmw_overlay_resume_all()
399 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_pause_all() local
402 if (!overlay) in vmw_overlay_pause_all()
405 mutex_lock(&overlay->mutex); in vmw_overlay_pause_all()
408 if (overlay->stream[i].paused) in vmw_overlay_pause_all()
415 mutex_unlock(&overlay->mutex); in vmw_overlay_pause_all()
433 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_ioctl() local
447 mutex_lock(&overlay->mutex); in vmw_overlay_ioctl()
463 mutex_unlock(&overlay->mutex); in vmw_overlay_ioctl()
479 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_num_free_overlays() local
485 mutex_lock(&overlay->mutex); in vmw_overlay_num_free_overlays()
488 if (!overlay->stream[i].claimed) in vmw_overlay_num_free_overlays()
491 mutex_unlock(&overlay->mutex); in vmw_overlay_num_free_overlays()
498 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_claim() local
501 if (!overlay) in vmw_overlay_claim()
504 mutex_lock(&overlay->mutex); in vmw_overlay_claim()
508 if (overlay->stream[i].claimed) in vmw_overlay_claim()
511 overlay->stream[i].claimed = true; in vmw_overlay_claim()
513 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
517 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
523 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_unref() local
527 if (!overlay) in vmw_overlay_unref()
530 mutex_lock(&overlay->mutex); in vmw_overlay_unref()
532 WARN_ON(!overlay->stream[stream_id].claimed); in vmw_overlay_unref()
534 overlay->stream[stream_id].claimed = false; in vmw_overlay_unref()
536 mutex_unlock(&overlay->mutex); in vmw_overlay_unref()
542 struct vmw_overlay *overlay; in vmw_overlay_init() local
548 overlay = kzalloc(sizeof(*overlay), GFP_KERNEL); in vmw_overlay_init()
549 if (!overlay) in vmw_overlay_init()
552 mutex_init(&overlay->mutex); in vmw_overlay_init()
554 overlay->stream[i].buf = NULL; in vmw_overlay_init()
555 overlay->stream[i].paused = false; in vmw_overlay_init()
556 overlay->stream[i].claimed = false; in vmw_overlay_init()
559 dev_priv->overlay_priv = overlay; in vmw_overlay_init()
566 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_close() local
570 if (!overlay) in vmw_overlay_close()
574 if (overlay->stream[i].buf) { in vmw_overlay_close()
583 kfree(overlay); in vmw_overlay_close()