Lines Matching refs:mman

206 				  adev->mman.discovery_tmr_size, false);  in amdgpu_discovery_read_binary_from_vram()
296 adev->mman.discovery_tmr_size = DISCOVERY_TMR_SIZE; in amdgpu_discovery_init()
297 adev->mman.discovery_bin = kzalloc(adev->mman.discovery_tmr_size, GFP_KERNEL); in amdgpu_discovery_init()
298 if (!adev->mman.discovery_bin) in amdgpu_discovery_init()
301 r = amdgpu_discovery_read_binary_from_vram(adev, adev->mman.discovery_bin); in amdgpu_discovery_init()
308 if (!amdgpu_discovery_verify_binary_signature(adev->mman.discovery_bin)) { in amdgpu_discovery_init()
311 r = amdgpu_discovery_read_binary_from_file(adev, adev->mman.discovery_bin); in amdgpu_discovery_init()
318 if(!amdgpu_discovery_verify_binary_signature(adev->mman.discovery_bin)) { in amdgpu_discovery_init()
325 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
332 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
345 (struct ip_discovery_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
352 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
366 (struct gpu_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
374 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
388 (struct harvest_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
396 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
410 (struct vcn_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
418 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
432 (struct mall_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
440 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
451 kfree(adev->mman.discovery_bin); in amdgpu_discovery_init()
452 adev->mman.discovery_bin = NULL; in amdgpu_discovery_init()
462 kfree(adev->mman.discovery_bin); in amdgpu_discovery_fini()
463 adev->mman.discovery_bin = NULL; in amdgpu_discovery_fini()
492 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_harvest_bit_per_ip()
493 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_read_harvest_bit_per_ip()
500 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_read_harvest_bit_per_ip()
505 ip = (struct ip *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_read_harvest_bit_per_ip()
541 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_from_harvest_table()
549 harvest_info = (struct harvest_table *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_read_from_harvest_table()
844 ip = (struct ip *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_sysfs_ips()
924 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_sysfs_recurse()
925 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_sysfs_recurse()
935 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_sysfs_recurse()
1087 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_reg_base_init()
1088 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_reg_base_init()
1096 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_reg_base_init()
1110 ip = (struct ip *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_reg_base_init()
1208 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_ip_version()
1213 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_ip_version()
1214 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_get_ip_version()
1220 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_get_ip_version()
1225 ip = (struct ip *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_get_ip_version()
1294 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_gfx_info()
1299 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_gfx_info()
1305 gc_info = (union gc_info *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_get_gfx_info()
1384 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_mall_info()
1389 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_mall_info()
1395 mall_info = (union mall_info *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_get_mall_info()
1434 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_vcn_info()
1449 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_vcn_info()
1455 vcn_info = (union vcn_info *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_get_vcn_info()