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()
464 mutex_unlock(&overlay->mutex); in vmw_overlay_ioctl()
480 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_num_free_overlays() local
486 mutex_lock(&overlay->mutex); in vmw_overlay_num_free_overlays()
489 if (!overlay->stream[i].claimed) in vmw_overlay_num_free_overlays()
492 mutex_unlock(&overlay->mutex); in vmw_overlay_num_free_overlays()
499 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_claim() local
502 if (!overlay) in vmw_overlay_claim()
505 mutex_lock(&overlay->mutex); in vmw_overlay_claim()
509 if (overlay->stream[i].claimed) in vmw_overlay_claim()
512 overlay->stream[i].claimed = true; in vmw_overlay_claim()
514 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
518 mutex_unlock(&overlay->mutex); in vmw_overlay_claim()
524 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_unref() local
528 if (!overlay) in vmw_overlay_unref()
531 mutex_lock(&overlay->mutex); in vmw_overlay_unref()
533 WARN_ON(!overlay->stream[stream_id].claimed); in vmw_overlay_unref()
535 overlay->stream[stream_id].claimed = false; in vmw_overlay_unref()
537 mutex_unlock(&overlay->mutex); in vmw_overlay_unref()
543 struct vmw_overlay *overlay; in vmw_overlay_init() local
549 overlay = kzalloc(sizeof(*overlay), GFP_KERNEL); in vmw_overlay_init()
550 if (!overlay) in vmw_overlay_init()
553 mutex_init(&overlay->mutex); in vmw_overlay_init()
555 overlay->stream[i].buf = NULL; in vmw_overlay_init()
556 overlay->stream[i].paused = false; in vmw_overlay_init()
557 overlay->stream[i].claimed = false; in vmw_overlay_init()
560 dev_priv->overlay_priv = overlay; in vmw_overlay_init()
567 struct vmw_overlay *overlay = dev_priv->overlay_priv; in vmw_overlay_close() local
571 if (!overlay) in vmw_overlay_close()
575 if (overlay->stream[i].buf) { in vmw_overlay_close()
584 kfree(overlay); in vmw_overlay_close()