Lines Matching refs:discovery

182 	adev->discovery = kzalloc(BINARY_MAX_SIZE, GFP_KERNEL);  in amdgpu_discovery_init()
183 if (!adev->discovery) in amdgpu_discovery_init()
186 r = amdgpu_discovery_read_binary(adev, adev->discovery); in amdgpu_discovery_init()
192 bhdr = (struct binary_header *)adev->discovery; in amdgpu_discovery_init()
205 if (!amdgpu_discovery_verify_checksum(adev->discovery + offset, in amdgpu_discovery_init()
215 ihdr = (struct ip_discovery_header *)(adev->discovery + offset); in amdgpu_discovery_init()
223 if (!amdgpu_discovery_verify_checksum(adev->discovery + offset, in amdgpu_discovery_init()
233 ghdr = (struct gpu_info_header *)(adev->discovery + offset); in amdgpu_discovery_init()
235 if (!amdgpu_discovery_verify_checksum(adev->discovery + offset, in amdgpu_discovery_init()
245 kfree(adev->discovery); in amdgpu_discovery_init()
246 adev->discovery = NULL; in amdgpu_discovery_init()
253 kfree(adev->discovery); in amdgpu_discovery_fini()
254 adev->discovery = NULL; in amdgpu_discovery_fini()
271 if (!adev->discovery) { in amdgpu_discovery_reg_base_init()
276 bhdr = (struct binary_header *)adev->discovery; in amdgpu_discovery_reg_base_init()
277 ihdr = (struct ip_discovery_header *)(adev->discovery + in amdgpu_discovery_reg_base_init()
285 dhdr = (struct die_header *)(adev->discovery + die_offset); in amdgpu_discovery_reg_base_init()
299 ip = (struct ip *)(adev->discovery + ip_offset); in amdgpu_discovery_reg_base_init()
348 if (!adev->discovery) { in amdgpu_discovery_get_ip_version()
353 bhdr = (struct binary_header *)adev->discovery; in amdgpu_discovery_get_ip_version()
354 ihdr = (struct ip_discovery_header *)(adev->discovery + in amdgpu_discovery_get_ip_version()
360 dhdr = (struct die_header *)(adev->discovery + die_offset); in amdgpu_discovery_get_ip_version()
365 ip = (struct ip *)(adev->discovery + ip_offset); in amdgpu_discovery_get_ip_version()
386 if (!adev->discovery) { in amdgpu_discovery_get_gfx_info()
391 bhdr = (struct binary_header *)adev->discovery; in amdgpu_discovery_get_gfx_info()
392 gc_info = (struct gc_info_v1_0 *)(adev->discovery + in amdgpu_discovery_get_gfx_info()