| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_crtc.c | 175 struct idle_workqueue *idle_work; in amdgpu_dm_idle_worker() local 177 idle_work = container_of(work, struct idle_workqueue, work); in amdgpu_dm_idle_worker() 178 idle_work->dm->idle_workqueue->running = true; in amdgpu_dm_idle_worker() 180 while (idle_work->enable) { in amdgpu_dm_idle_worker() 182 mutex_lock(&idle_work->dm->dc_lock); in amdgpu_dm_idle_worker() 183 if (!idle_work->dm->dc->idle_optimizations_allowed) { in amdgpu_dm_idle_worker() 184 mutex_unlock(&idle_work->dm->dc_lock); in amdgpu_dm_idle_worker() 187 dc_allow_idle_optimizations(idle_work->dm->dc, false); in amdgpu_dm_idle_worker() 189 mutex_unlock(&idle_work->dm->dc_lock); in amdgpu_dm_idle_worker() 191 mutex_lock(&idle_work->dm->dc_lock); in amdgpu_dm_idle_worker() [all …]
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_crtc_test.c | 557 struct idle_workqueue *idle_work; in dm_test_idle_create_workqueue() local 562 idle_work = idle_create_workqueue(adev); in dm_test_idle_create_workqueue() 563 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, idle_work); in dm_test_idle_create_workqueue() 565 KUNIT_EXPECT_PTR_EQ(test, idle_work->dm, &adev->dm); in dm_test_idle_create_workqueue() 566 KUNIT_EXPECT_FALSE(test, idle_work->enable); in dm_test_idle_create_workqueue() 567 KUNIT_EXPECT_FALSE(test, idle_work->running); in dm_test_idle_create_workqueue() 569 kfree(idle_work); in dm_test_idle_create_workqueue() 581 struct idle_workqueue *idle_work; in dm_test_idle_worker_disabled_clears_running() local 587 idle_work = kunit_kzalloc(test, sizeof(*idle_work), GFP_KERNEL); in dm_test_idle_worker_disabled_clears_running() 588 KUNIT_ASSERT_NOT_ERR_OR_NULL(test, idle_work); in dm_test_idle_worker_disabled_clears_running() [all …]
|
| H A D | amdgpu_dm_helpers_test.c | 2533 struct dm_test_idle_work *idle_work; in dm_test_idle_work_func() local 2535 idle_work = container_of(work, struct dm_test_idle_work, base.work); in dm_test_idle_work_func() 2536 idle_work->ran = true; in dm_test_idle_work_func() 2568 struct idle_workqueue *idle_work; in dm_test_enable_periodic_detection_updates_enable() local 2575 idle_work = kunit_kzalloc(test, sizeof(*idle_work), GFP_KERNEL); in dm_test_enable_periodic_detection_updates_enable() 2576 KUNIT_ASSERT_NOT_NULL(test, idle_work); in dm_test_enable_periodic_detection_updates_enable() 2579 adev->dm.idle_workqueue = idle_work; in dm_test_enable_periodic_detection_updates_enable() 2580 idle_work->running = true; in dm_test_enable_periodic_detection_updates_enable() 2583 KUNIT_EXPECT_TRUE(test, idle_work->enable); in dm_test_enable_periodic_detection_updates_enable() 2586 KUNIT_EXPECT_FALSE(test, idle_work->enable); in dm_test_enable_periodic_detection_updates_enable() [all …]
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_vce.c | 236 INIT_DELAYED_WORK(&adev->vce.idle_work, amdgpu_vce_idle_work_handler); in amdgpu_vce_sw_init() 305 cancel_delayed_work_sync(&adev->vce.idle_work); in amdgpu_vce_suspend() 359 container_of(work, struct amdgpu_device, vce.idle_work.work); in amdgpu_vce_idle_work_handler() 376 schedule_delayed_work(&adev->vce.idle_work, VCE_IDLE_TIMEOUT); in amdgpu_vce_idle_work_handler() 396 set_clocks = !cancel_delayed_work_sync(&adev->vce.idle_work); in amdgpu_vce_ring_begin_use() 422 schedule_delayed_work(&ring->adev->vce.idle_work, VCE_IDLE_TIMEOUT); in amdgpu_vce_ring_end_use()
|
| H A D | amdgpu_uvd.c | 193 INIT_DELAYED_WORK(&adev->uvd.idle_work, amdgpu_uvd_idle_work_handler); in amdgpu_uvd_sw_init() 433 cancel_delayed_work_sync(&adev->uvd.idle_work); in amdgpu_uvd_prepare_suspend() 1247 container_of(work, struct amdgpu_device, uvd.idle_work.work); in amdgpu_uvd_idle_work_handler() 1270 schedule_delayed_work(&adev->uvd.idle_work, UVD_IDLE_TIMEOUT); in amdgpu_uvd_idle_work_handler() 1282 set_clocks = !cancel_delayed_work_sync(&adev->uvd.idle_work); in amdgpu_uvd_ring_begin_use() 1299 schedule_delayed_work(&ring->adev->uvd.idle_work, UVD_IDLE_TIMEOUT); in amdgpu_uvd_ring_end_use()
|
| H A D | amdgpu_uvd.h | 66 struct delayed_work idle_work; member
|
| H A D | vce_v2_0.c | 496 cancel_delayed_work_sync(&ip_block->adev->vce.idle_work); in vce_v2_0_hw_fini() 518 cancel_delayed_work_sync(&adev->vce.idle_work); in vce_v2_0_suspend()
|
| H A D | uvd_v3_1.c | 730 cancel_delayed_work_sync(&adev->uvd.idle_work); in uvd_v3_1_hw_fini() 761 cancel_delayed_work_sync(&adev->uvd.idle_work); in uvd_v3_1_suspend()
|
| H A D | vce_v1_0.c | 670 cancel_delayed_work_sync(&ip_block->adev->vce.idle_work); in vce_v1_0_hw_fini() 690 cancel_delayed_work_sync(&adev->vce.idle_work); in vce_v1_0_suspend()
|
| H A D | vce_v3_0.c | 498 cancel_delayed_work_sync(&adev->vce.idle_work); in vce_v3_0_hw_fini() 524 cancel_delayed_work_sync(&adev->vce.idle_work); in vce_v3_0_suspend()
|
| H A D | amdgpu_gfx.c | 2761 container_of(work, struct amdgpu_device, gfx.idle_work.work); in amdgpu_gfx_profile_idle_work_handler() 2787 schedule_delayed_work(&adev->gfx.idle_work, GFX_PROFILE_IDLE_TIMEOUT); in amdgpu_gfx_profile_idle_work_handler() 2806 cancel_delayed_work_sync(&adev->gfx.idle_work); in amdgpu_gfx_profile_ring_begin_use() 2835 schedule_delayed_work(&ring->adev->gfx.idle_work, in amdgpu_gfx_profile_ring_end_use()
|
| H A D | jpeg_v4_0.c | 224 cancel_delayed_work_sync(&adev->jpeg.idle_work); in jpeg_v4_0_hw_fini()
|
| H A D | jpeg_v4_0_5.c | 252 cancel_delayed_work_sync(&adev->jpeg.idle_work); in jpeg_v4_0_5_hw_fini()
|
| H A D | jpeg_v5_0_1.c | 328 cancel_delayed_work_sync(&adev->jpeg.idle_work); in jpeg_v5_0_1_hw_fini()
|
| H A D | vcn_v5_0_0.c | 293 cancel_delayed_work_sync(&vinst->idle_work); in vcn_v5_0_0_hw_fini()
|
| H A D | jpeg_v4_0_3.c | 457 cancel_delayed_work_sync(&adev->jpeg.idle_work); in jpeg_v4_0_3_hw_fini()
|
| H A D | vcn_v5_0_1.c | 366 cancel_delayed_work_sync(&adev->vcn.inst[i].idle_work); in vcn_v5_0_1_hw_fini()
|
| H A D | vcn_v2_0.c | 324 cancel_delayed_work_sync(&vinst->idle_work); in vcn_v2_0_hw_fini()
|
| H A D | vcn_v4_0_3.c | 419 cancel_delayed_work_sync(&vinst->idle_work); in vcn_v4_0_3_hw_fini()
|
| H A D | vcn_v4_0.c | 376 cancel_delayed_work_sync(&vinst->idle_work); in vcn_v4_0_hw_fini()
|
| /linux/drivers/net/wireless/zydas/zd1211rw/ |
| H A D | zd_usb.h | 175 struct delayed_work idle_work; member
|
| H A D | zd_usb.c | 849 cancel_delayed_work_sync(&rx->idle_work); in zd_usb_disable_rx() 1131 container_of(work, struct zd_usb, rx.idle_work.work); in zd_rx_idle_timer_handler() 1154 mod_delayed_work(zd_workqueue, &rx->idle_work, ZD_RX_IDLE_INTERVAL); in zd_usb_reset_rx_idle_timer() 1180 INIT_DELAYED_WORK(&rx->idle_work, zd_rx_idle_timer_handler); in init_usb_rx()
|
| /linux/drivers/gpu/drm/msm/ |
| H A D | msm_gpu.h | 159 struct msm_hrtimer_work idle_work; member
|
| /linux/net/bluetooth/ |
| H A D | hci_conn.c | 668 idle_work.work); in hci_conn_idle() 1154 INIT_DELAYED_WORK(&conn->idle_work, hci_conn_idle); in __hci_conn_add() 1279 disable_delayed_work_sync(&conn->idle_work); in hci_conn_del() 2765 mod_delayed_work(hdev->workqueue, &conn->idle_work, in hci_conn_hash_flush()
|
| /linux/include/net/bluetooth/ |
| H A D | hci_core.h | 772 struct delayed_work idle_work; 1713 cancel_delayed_work(&conn->idle_work); in hci_conn_drop() 771 struct delayed_work idle_work; global() member
|