Lines Matching refs:bhdr

358 	struct binary_header *bhdr;  in amdgpu_discovery_verify_binary_signature()  local
359 bhdr = (struct binary_header *)binary; in amdgpu_discovery_verify_binary_signature()
361 return (le32_to_cpu(bhdr->binary_signature) == BINARY_SIGNATURE); in amdgpu_discovery_verify_binary_signature()
390 struct binary_header *bhdr) in amdgpu_discovery_verify_npsinfo() argument
396 info = &bhdr->table_list[NPS_INFO]; in amdgpu_discovery_verify_npsinfo()
449 struct binary_header *bhdr; in amdgpu_discovery_init() local
484 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
487 sizeof(bhdr->binary_checksum); in amdgpu_discovery_init()
488 size = le16_to_cpu(bhdr->binary_size) - offset; in amdgpu_discovery_init()
489 checksum = le16_to_cpu(bhdr->binary_checksum); in amdgpu_discovery_init()
498 info = &bhdr->table_list[IP_DISCOVERY]; in amdgpu_discovery_init()
519 info = &bhdr->table_list[GC]; in amdgpu_discovery_init()
541 info = &bhdr->table_list[HARVEST_INFO]; in amdgpu_discovery_init()
563 info = &bhdr->table_list[VCN_INFO]; in amdgpu_discovery_init()
585 info = &bhdr->table_list[MALL_INFO]; in amdgpu_discovery_init()
649 struct binary_header *bhdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
658 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_harvest_bit_per_ip()
660 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_read_harvest_bit_per_ip()
714 struct binary_header *bhdr; in amdgpu_discovery_read_from_harvest_table() local
720 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_from_harvest_table()
721 offset = le16_to_cpu(bhdr->table_list[HARVEST_INFO].offset); in amdgpu_discovery_read_from_harvest_table()
1167 struct binary_header *bhdr; in amdgpu_discovery_sysfs_recurse() local
1175 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_sysfs_recurse()
1177 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_sysfs_recurse()
1323 struct binary_header *bhdr; in amdgpu_discovery_reg_base_init() local
1347 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_reg_base_init()
1349 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_reg_base_init()
1521 struct binary_header *bhdr; in amdgpu_discovery_harvest_ip() local
1526 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_harvest_ip()
1527 offset = le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset); in amdgpu_discovery_harvest_ip()
1576 struct binary_header *bhdr; in amdgpu_discovery_get_gfx_info() local
1585 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_gfx_info()
1586 offset = le16_to_cpu(bhdr->table_list[GC].offset); in amdgpu_discovery_get_gfx_info()
1684 struct binary_header *bhdr; in amdgpu_discovery_get_mall_info() local
1695 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_mall_info()
1696 offset = le16_to_cpu(bhdr->table_list[MALL_INFO].offset); in amdgpu_discovery_get_mall_info()
1740 struct binary_header *bhdr; in amdgpu_discovery_get_vcn_info() local
1760 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_vcn_info()
1761 offset = le16_to_cpu(bhdr->table_list[VCN_INFO].offset); in amdgpu_discovery_get_vcn_info()
1797 struct binary_header bhdr; in amdgpu_discovery_refresh_nps_info() local
1802 amdgpu_device_vram_access(adev, pos, &bhdr, sizeof(bhdr), false); in amdgpu_discovery_refresh_nps_info()
1804 offset = le16_to_cpu(bhdr.table_list[NPS_INFO].offset); in amdgpu_discovery_refresh_nps_info()
1805 checksum = le16_to_cpu(bhdr.table_list[NPS_INFO].checksum); in amdgpu_discovery_refresh_nps_info()
1827 struct binary_header *bhdr; in amdgpu_discovery_get_nps_info() local
1848 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_nps_info()
1849 offset = le16_to_cpu(bhdr->table_list[NPS_INFO].offset); in amdgpu_discovery_get_nps_info()
1855 if (amdgpu_discovery_verify_npsinfo(adev, bhdr)) in amdgpu_discovery_get_nps_info()