Lines Matching refs:overlay

248 	struct vmw_overlay *overlay = dev_priv->overlay_priv;  in vmw_overlay_stop()  local
249 struct vmw_stream *stream = &overlay->stream[stream_id]; in vmw_overlay_stop()
296 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_update_stream() local
297 struct vmw_stream *stream = &overlay->stream[arg->stream_id]; in vmw_overlay_update_stream()
359 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_resume_all() local
362 if (!overlay) in vmw_overlay_resume_all()
365 mutex_lock(&overlay->mutex); in vmw_overlay_resume_all()
368 struct vmw_stream *stream = &overlay->stream[i]; in vmw_overlay_resume_all()
379 mutex_unlock(&overlay->mutex); in vmw_overlay_resume_all()
393 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_pause_all() local
396 if (!overlay) in vmw_overlay_pause_all()
399 mutex_lock(&overlay->mutex); in vmw_overlay_pause_all()
402 if (overlay->stream[i].paused) in vmw_overlay_pause_all()
409 mutex_unlock(&overlay->mutex); in vmw_overlay_pause_all()
427 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_ioctl() local
441 mutex_lock(&overlay->mutex); in vmw_overlay_ioctl()
457 mutex_unlock(&overlay->mutex); in vmw_overlay_ioctl()
473 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_num_free_overlays() local
479 mutex_lock(&overlay->mutex); in vmw_overlay_num_free_overlays()
482 if (!overlay->stream[i].claimed) in vmw_overlay_num_free_overlays()
485 mutex_unlock(&overlay->mutex); in vmw_overlay_num_free_overlays()
492 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_claim() local
495 if (!overlay) in vmw_overlay_claim()
498 mutex_lock(&overlay->mutex); in vmw_overlay_claim()
502 if (overlay->stream[i].claimed) in vmw_overlay_claim()
505 overlay->stream[i].claimed = true; in vmw_overlay_claim()
507 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
511 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
517 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_unref() local
521 if (!overlay) in vmw_overlay_unref()
524 mutex_lock(&overlay->mutex); in vmw_overlay_unref()
526 WARN_ON(!overlay->stream[stream_id].claimed); in vmw_overlay_unref()
528 overlay->stream[stream_id].claimed = false; in vmw_overlay_unref()
530 mutex_unlock(&overlay->mutex); in vmw_overlay_unref()
536 struct vmw_overlay *overlay; in vmw_overlay_init() local
542 overlay = kzalloc(sizeof(*overlay), GFP_KERNEL); in vmw_overlay_init()
543 if (!overlay) in vmw_overlay_init()
546 mutex_init(&overlay->mutex); in vmw_overlay_init()
548 overlay->stream[i].buf = NULL; in vmw_overlay_init()
549 overlay->stream[i].paused = false; in vmw_overlay_init()
550 overlay->stream[i].claimed = false; in vmw_overlay_init()
553 dev_priv->overlay_priv = overlay; in vmw_overlay_init()
560 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_close() local
564 if (!overlay) in vmw_overlay_close()
568 if (overlay->stream[i].buf) { in vmw_overlay_close()
577 kfree(overlay); in vmw_overlay_close()