set_clocks
bool set_clocks;
set_clocks = !cancel_delayed_work_sync(&adev->uvd.idle_work);
if (set_clocks) {
bool set_clocks;
set_clocks = !cancel_delayed_work_sync(&adev->vce.idle_work);
if (set_clocks) {
bool set_clocks = !cancel_delayed_work_sync(&adev->vcn.inst[0].idle_work);
vcn_v1_0_set_pg_for_begin_use(ring, set_clocks);
bool set_clocks = !cancel_delayed_work_sync(&adev->vcn.inst[0].idle_work);
vcn_v1_0_set_pg_for_begin_use(ring, set_clocks);
void vcn_v1_0_set_pg_for_begin_use(struct amdgpu_ring *ring, bool set_clocks)
if (set_clocks) {
void vcn_v1_0_set_pg_for_begin_use(struct amdgpu_ring *ring, bool set_clocks);
bool set_clocks = !cancel_delayed_work_sync(&rdev->uvd.idle_work);
set_clocks &= schedule_delayed_work(&rdev->uvd.idle_work,
if (set_clocks || streams_changed) {
bool set_clocks = !cancel_delayed_work_sync(&rdev->vce.idle_work);
set_clocks &= schedule_delayed_work(&rdev->vce.idle_work,
if (set_clocks || streams_changed) {
set_clocks(udc, false);
set_clocks(udc, true);
set_clocks(udc, false);
set_clocks(udc, true);
set_clocks(udc, false);
set_clocks(udc, true);