ip_blocks 965 drivers/gpu/drm/amd/amdgpu/amdgpu.h struct amdgpu_ip_block ip_blocks[AMDGPU_MAX_IP_NUM]; ip_blocks 1117 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 1119 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type != block_type) ip_blocks 1121 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].version->funcs->set_clockgating_state) ip_blocks 1123 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->set_clockgating_state( ip_blocks 1127 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1151 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 1153 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type != block_type) ip_blocks 1155 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].version->funcs->set_powergating_state) ip_blocks 1157 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->set_powergating_state( ip_blocks 1161 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1183 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 1185 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->funcs->get_clockgating_state) ip_blocks 1186 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->get_clockgating_state((void *)adev, flags); ip_blocks 1205 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 1207 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == block_type) { ip_blocks 1208 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->wait_for_idle((void *)adev); ip_blocks 1233 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 1235 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == block_type) ip_blocks 1236 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c return adev->ip_blocks[i].version->funcs->is_idle((void *)adev); ip_blocks 1258 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == type) ip_blocks 1259 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c return &adev->ip_blocks[i]; ip_blocks 1307 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[adev->num_ip_blocks++].version = ip_block_version; ip_blocks 1631 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c i, adev->ip_blocks[i].version->funcs->name); ip_blocks 1632 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.valid = false; ip_blocks 1634 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->funcs->early_init) { ip_blocks 1635 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->early_init((void *)adev); ip_blocks 1637 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.valid = false; ip_blocks 1640 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1643 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.valid = true; ip_blocks 1646 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.valid = true; ip_blocks 1650 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_COMMON) { ip_blocks 1675 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.sw) ip_blocks 1677 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hw) ip_blocks 1679 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_COMMON || ip_blocks 1680 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c (amdgpu_sriov_vf(adev) && (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_PSP)) || ip_blocks 1681 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_IH) { ip_blocks 1682 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->hw_init(adev); ip_blocks 1685 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1688 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = true; ip_blocks 1700 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.sw) ip_blocks 1702 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hw) ip_blocks 1704 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->hw_init(adev); ip_blocks 1707 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1710 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = true; ip_blocks 1724 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_PSP) ip_blocks 1728 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hw == true) ip_blocks 1732 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->resume(adev); ip_blocks 1735 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1739 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->hw_init(adev); ip_blocks 1742 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1747 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = true; ip_blocks 1777 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 1779 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->sw_init((void *)adev); ip_blocks 1782 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1785 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.sw = true; ip_blocks 1788 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GMC) { ip_blocks 1794 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->hw_init((void *)adev); ip_blocks 1804 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = true; ip_blocks 1908 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.late_initialized) ip_blocks 1911 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_UVD && ip_blocks 1912 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCE && ip_blocks 1913 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCN && ip_blocks 1914 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->set_clockgating_state) { ip_blocks 1916 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->set_clockgating_state((void *)adev, ip_blocks 1920 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 1938 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.late_initialized) ip_blocks 1941 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_UVD && ip_blocks 1942 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCE && ip_blocks 1943 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type != AMD_IP_BLOCK_TYPE_VCN && ip_blocks 1944 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->set_powergating_state) { ip_blocks 1946 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->set_powergating_state((void *)adev, ip_blocks 1950 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2012 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.hw) ip_blocks 2014 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->funcs->late_init) { ip_blocks 2015 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->late_init((void *)adev); ip_blocks 2018 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2022 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.late_initialized = true; ip_blocks 2067 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.hw) ip_blocks 2069 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC) { ip_blocks 2070 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->hw_fini((void *)adev); ip_blocks 2074 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2076 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = false; ip_blocks 2082 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.hw) ip_blocks 2085 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->hw_fini((void *)adev); ip_blocks 2089 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2092 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = false; ip_blocks 2097 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.sw) ip_blocks 2100 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GMC) { ip_blocks 2108 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->sw_fini((void *)adev); ip_blocks 2112 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2114 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.sw = false; ip_blocks 2115 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.valid = false; ip_blocks 2119 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.late_initialized) ip_blocks 2121 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->funcs->late_fini) ip_blocks 2122 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->late_fini((void *)adev); ip_blocks 2123 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.late_initialized = false; ip_blocks 2183 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 2186 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_DCE) { ip_blocks 2188 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->suspend(adev); ip_blocks 2192 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2195 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = false; ip_blocks 2218 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 2221 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_DCE) ip_blocks 2224 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->suspend(adev); ip_blocks 2228 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2230 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = false; ip_blocks 2232 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC) { ip_blocks 2248 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = false; ip_blocks 2299 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c block = &adev->ip_blocks[j]; ip_blocks 2335 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c block = &adev->ip_blocks[j]; ip_blocks 2370 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid || adev->ip_blocks[i].status.hw) ip_blocks 2372 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_COMMON || ip_blocks 2373 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GMC || ip_blocks 2374 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_IH) { ip_blocks 2376 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->resume(adev); ip_blocks 2379 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2382 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = true; ip_blocks 2407 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid || adev->ip_blocks[i].status.hw) ip_blocks 2409 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_COMMON || ip_blocks 2410 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GMC || ip_blocks 2411 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_IH || ip_blocks 2412 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_PSP) ip_blocks 2414 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->resume(adev); ip_blocks 2417 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->name, r); ip_blocks 2420 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hw = true; ip_blocks 3248 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 3250 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].version->funcs->check_soft_reset) ip_blocks 3251 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].status.hang = ip_blocks 3252 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->check_soft_reset(adev); ip_blocks 3253 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hang) { ip_blocks 3254 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c DRM_INFO("IP block:%s is hung!\n", adev->ip_blocks[i].version->funcs->name); ip_blocks 3277 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 3279 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hang && ip_blocks 3280 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->pre_soft_reset) { ip_blocks 3281 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->pre_soft_reset(adev); ip_blocks 3307 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 3309 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if ((adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_GMC) || ip_blocks 3310 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_SMC) || ip_blocks 3311 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_ACP) || ip_blocks 3312 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c (adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_DCE) || ip_blocks 3313 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->type == AMD_IP_BLOCK_TYPE_PSP) { ip_blocks 3314 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hang) { ip_blocks 3339 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 3341 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hang && ip_blocks 3342 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->soft_reset) { ip_blocks 3343 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->soft_reset(adev); ip_blocks 3368 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (!adev->ip_blocks[i].status.valid) ip_blocks 3370 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (adev->ip_blocks[i].status.hang && ip_blocks 3371 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c adev->ip_blocks[i].version->funcs->post_soft_reset) ip_blocks 3372 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c r = adev->ip_blocks[i].version->funcs->post_soft_reset(adev); ip_blocks 415 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->ip_blocks[i].version->type == type && ip_blocks 416 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c adev->ip_blocks[i].status.valid) ip_blocks 425 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c result->hw_ip_version_major = adev->ip_blocks[i].version->major; ip_blocks 426 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c result->hw_ip_version_minor = adev->ip_blocks[i].version->minor; ip_blocks 528 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c if (adev->ip_blocks[i].version->type == type && ip_blocks 529 drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c adev->ip_blocks[i].status.valid &&