Lines Matching refs:discovery_bin

388 		(struct nps_info_header *)(adev->mman.discovery_bin + offset);  in amdgpu_discovery_verify_npsinfo()
395 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_verify_npsinfo()
415 adev->mman.discovery_bin = kzalloc(adev->mman.discovery_tmr_size, GFP_KERNEL); in amdgpu_discovery_init()
416 if (!adev->mman.discovery_bin) in amdgpu_discovery_init()
422 r = amdgpu_discovery_read_binary_from_file(adev, adev->mman.discovery_bin); in amdgpu_discovery_init()
432 adev, adev->mman.discovery_bin); in amdgpu_discovery_init()
438 if (!amdgpu_discovery_verify_binary_signature(adev->mman.discovery_bin)) { in amdgpu_discovery_init()
445 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
452 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
465 (struct ip_discovery_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
472 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
486 (struct gpu_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
494 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
508 (struct harvest_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
516 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
530 (struct vcn_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
538 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
552 (struct mall_info_header *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_init()
560 if (!amdgpu_discovery_verify_checksum(adev->mman.discovery_bin + offset, in amdgpu_discovery_init()
571 kfree(adev->mman.discovery_bin); in amdgpu_discovery_init()
572 adev->mman.discovery_bin = NULL; in amdgpu_discovery_init()
584 kfree(adev->mman.discovery_bin); in amdgpu_discovery_fini()
585 adev->mman.discovery_bin = NULL; in amdgpu_discovery_fini()
614 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_harvest_bit_per_ip()
615 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_read_harvest_bit_per_ip()
622 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_read_harvest_bit_per_ip()
627 ip = (struct ip_v4 *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_read_harvest_bit_per_ip()
676 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_from_harvest_table()
684 harvest_info = (struct harvest_table *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_read_from_harvest_table()
1034 ip = (struct ip_v4 *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_sysfs_ips()
1127 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_sysfs_recurse()
1128 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_sysfs_recurse()
1138 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_sysfs_recurse()
1175 if (!adev->mman.discovery_bin) in amdgpu_discovery_sysfs_init()
1297 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_reg_base_init()
1298 ihdr = (struct ip_discovery_header *)(adev->mman.discovery_bin + in amdgpu_discovery_reg_base_init()
1306 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_reg_base_init()
1320 ip = (struct ip_v4 *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_reg_base_init()
1514 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_gfx_info()
1519 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_gfx_info()
1525 gc_info = (union gc_info *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_get_gfx_info()
1624 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_mall_info()
1629 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_mall_info()
1635 mall_info = (union mall_info *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_get_mall_info()
1679 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_vcn_info()
1694 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_vcn_info()
1700 vcn_info = (union vcn_info *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_get_vcn_info()
1740 if (!adev->mman.discovery_bin) { in amdgpu_discovery_get_nps_info()
1746 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_nps_info()
1756 nps_info = (union nps_info *)(adev->mman.discovery_bin + offset); in amdgpu_discovery_get_nps_info()