Lines Matching refs:tunnel

32 	drm_dp_tunnel_destroy(intel_dp->tunnel);  in intel_dp_tunnel_disconnect()
33 intel_dp->tunnel = NULL; in intel_dp_tunnel_disconnect()
47 drm_dp_tunnel_disable_bw_alloc(intel_dp->tunnel); in intel_dp_tunnel_destroy()
82 ret = drm_dp_tunnel_update_state(intel_dp->tunnel); in update_tunnel_state()
86 drm_dp_tunnel_name(intel_dp->tunnel), in update_tunnel_state()
94 !drm_dp_tunnel_bw_alloc_is_enabled(intel_dp->tunnel)) in update_tunnel_state()
108 drm_dp_tunnel_name(intel_dp->tunnel), in update_tunnel_state()
139 drm_dp_tunnel_name(intel_dp->tunnel), in allocate_initial_tunnel_bw_for_pipes()
146 err = drm_dp_tunnel_alloc_bw(intel_dp->tunnel, tunnel_bw); in allocate_initial_tunnel_bw_for_pipes()
150 drm_dp_tunnel_name(intel_dp->tunnel), in allocate_initial_tunnel_bw_for_pipes()
177 struct drm_dp_tunnel *tunnel; in detect_new_tunnel() local
180 tunnel = drm_dp_tunnel_detect(display->dp_tunnel_mgr, in detect_new_tunnel()
182 if (IS_ERR(tunnel)) in detect_new_tunnel()
183 return PTR_ERR(tunnel); in detect_new_tunnel()
185 intel_dp->tunnel = tunnel; in detect_new_tunnel()
187 ret = drm_dp_tunnel_enable_bw_alloc(intel_dp->tunnel); in detect_new_tunnel()
194 drm_dp_tunnel_name(intel_dp->tunnel), in detect_new_tunnel()
235 if (intel_dp->tunnel) { in intel_dp_tunnel_detect()
258 return drm_dp_tunnel_bw_alloc_is_enabled(intel_dp->tunnel); in intel_dp_tunnel_bw_alloc_is_enabled()
278 drm_dp_tunnel_name(intel_dp->tunnel), in intel_dp_tunnel_suspend()
282 drm_dp_tunnel_disable_bw_alloc(intel_dp->tunnel); in intel_dp_tunnel_suspend()
313 drm_dp_tunnel_name(intel_dp->tunnel), in intel_dp_tunnel_resume()
328 drm_dp_tunnel_set_io_error(intel_dp->tunnel); in intel_dp_tunnel_resume()
333 err = drm_dp_tunnel_enable_bw_alloc(intel_dp->tunnel); in intel_dp_tunnel_resume()
354 drm_dp_tunnel_name(intel_dp->tunnel), in intel_dp_tunnel_resume()
366 return state->inherited_dp_tunnels->ref[crtc->pipe].tunnel; in get_inherited_tunnel()
371 struct drm_dp_tunnel *tunnel, in add_inherited_tunnel() argument
379 drm_WARN_ON(display->drm, old_tunnel != tunnel); in add_inherited_tunnel()
390 drm_dp_tunnel_ref_get(tunnel, &state->inherited_dp_tunnels->ref[crtc->pipe]); in add_inherited_tunnel()
424 old_crtc_state->dp_tunnel_ref.tunnel == intel_dp->tunnel) in check_inherited_tunnel_state()
429 drm_dp_tunnel_name(intel_dp->tunnel), in check_inherited_tunnel_state()
433 intel_dp->tunnel); in check_inherited_tunnel_state()
435 return add_inherited_tunnel(state, intel_dp->tunnel, old_crtc); in check_inherited_tunnel_state()
453 if (state->inherited_dp_tunnels->ref[pipe].tunnel) in intel_dp_tunnel_atomic_cleanup_inherited_state()
461 struct drm_dp_tunnel *tunnel) in intel_dp_tunnel_atomic_add_group_state() argument
468 tunnel, &pipe_mask); in intel_dp_tunnel_atomic_add_group_state()
493 struct drm_dp_tunnel *tunnel = new_crtc_state->dp_tunnel_ref.tunnel; in intel_dp_tunnel_atomic_add_state_for_crtc() local
495 if (!tunnel) in intel_dp_tunnel_atomic_add_state_for_crtc()
498 tunnel_state = drm_dp_tunnel_atomic_get_state(&state->base, tunnel); in intel_dp_tunnel_atomic_add_state_for_crtc()
515 if (!crtc_state->dp_tunnel_ref.tunnel) in check_group_state()
520 drm_dp_tunnel_name(intel_dp->tunnel), in check_group_state()
524 crtc_state->dp_tunnel_ref.tunnel); in check_group_state()
526 return intel_dp_tunnel_atomic_add_group_state(state, crtc_state->dp_tunnel_ref.tunnel); in check_group_state()
600 drm_dp_tunnel_name(intel_dp->tunnel), in intel_dp_tunnel_atomic_compute_stream_bw()
607 ret = drm_dp_tunnel_atomic_set_stream_bw(&state->base, intel_dp->tunnel, in intel_dp_tunnel_atomic_compute_stream_bw()
612 drm_dp_tunnel_ref_get(intel_dp->tunnel, in intel_dp_tunnel_atomic_compute_stream_bw()
631 if (!crtc_state->dp_tunnel_ref.tunnel) in intel_dp_tunnel_atomic_clear_stream_bw()
635 crtc_state->dp_tunnel_ref.tunnel, in intel_dp_tunnel_atomic_clear_stream_bw()
684 struct drm_dp_tunnel *tunnel; in atomic_decrease_bw() local
691 tunnel = get_inherited_tunnel(state, crtc); in atomic_decrease_bw()
692 if (!tunnel) in atomic_decrease_bw()
693 tunnel = old_crtc_state->dp_tunnel_ref.tunnel; in atomic_decrease_bw()
695 if (!tunnel) in atomic_decrease_bw()
698 old_bw = drm_dp_tunnel_get_allocated_bw(tunnel); in atomic_decrease_bw()
700 new_tunnel_state = drm_dp_tunnel_atomic_get_new_state(&state->base, tunnel); in atomic_decrease_bw()
706 drm_dp_tunnel_alloc_bw(tunnel, new_bw); in atomic_decrease_bw()
711 struct drm_dp_tunnel *tunnel, in queue_retry_work() argument
724 drm_dp_tunnel_name(tunnel), in queue_retry_work()
739 struct drm_dp_tunnel *tunnel = crtc_state->dp_tunnel_ref.tunnel; in atomic_increase_bw() local
745 if (!tunnel) in atomic_increase_bw()
748 tunnel_state = drm_dp_tunnel_atomic_get_new_state(&state->base, tunnel); in atomic_increase_bw()
752 if (drm_dp_tunnel_alloc_bw(tunnel, bw) != 0) in atomic_increase_bw()
753 queue_retry_work(state, tunnel, crtc_state); in atomic_increase_bw()