Lines Matching refs:bhdr
346 struct binary_header *bhdr; in amdgpu_discovery_verify_binary_signature() local
347 bhdr = (struct binary_header *)binary; in amdgpu_discovery_verify_binary_signature()
349 return (le32_to_cpu(bhdr->binary_signature) == BINARY_SIGNATURE); in amdgpu_discovery_verify_binary_signature()
378 struct binary_header *bhdr) in amdgpu_discovery_verify_npsinfo() argument
384 info = &bhdr->table_list[NPS_INFO]; in amdgpu_discovery_verify_npsinfo()
437 struct binary_header *bhdr; in amdgpu_discovery_init() local
476 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
479 sizeof(bhdr->binary_checksum); in amdgpu_discovery_init()
480 size = le16_to_cpu(bhdr->binary_size) - offset; in amdgpu_discovery_init()
481 checksum = le16_to_cpu(bhdr->binary_checksum); in amdgpu_discovery_init()
490 info = &bhdr->table_list[IP_DISCOVERY]; in amdgpu_discovery_init()
511 info = &bhdr->table_list[GC]; in amdgpu_discovery_init()
533 info = &bhdr->table_list[HARVEST_INFO]; in amdgpu_discovery_init()
555 info = &bhdr->table_list[VCN_INFO]; in amdgpu_discovery_init()
577 info = &bhdr->table_list[MALL_INFO]; in amdgpu_discovery_init()
641 struct binary_header *bhdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
650 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_harvest_bit_per_ip()
652 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_read_harvest_bit_per_ip()
706 struct binary_header *bhdr; in amdgpu_discovery_read_from_harvest_table() local
712 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_from_harvest_table()
713 offset = le16_to_cpu(bhdr->table_list[HARVEST_INFO].offset); in amdgpu_discovery_read_from_harvest_table()
1159 struct binary_header *bhdr; in amdgpu_discovery_sysfs_recurse() local
1167 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_sysfs_recurse()
1169 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_sysfs_recurse()
1315 struct binary_header *bhdr; in amdgpu_discovery_reg_base_init() local
1341 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_reg_base_init()
1343 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_reg_base_init()
1515 struct binary_header *bhdr; in amdgpu_discovery_harvest_ip() local
1520 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_harvest_ip()
1521 offset = le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset); in amdgpu_discovery_harvest_ip()
1570 struct binary_header *bhdr; in amdgpu_discovery_get_gfx_info() local
1579 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_gfx_info()
1580 offset = le16_to_cpu(bhdr->table_list[GC].offset); in amdgpu_discovery_get_gfx_info()
1678 struct binary_header *bhdr; in amdgpu_discovery_get_mall_info() local
1689 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_mall_info()
1690 offset = le16_to_cpu(bhdr->table_list[MALL_INFO].offset); in amdgpu_discovery_get_mall_info()
1734 struct binary_header *bhdr; in amdgpu_discovery_get_vcn_info() local
1754 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_vcn_info()
1755 offset = le16_to_cpu(bhdr->table_list[VCN_INFO].offset); in amdgpu_discovery_get_vcn_info()
1791 struct binary_header bhdr; in amdgpu_discovery_refresh_nps_info() local
1796 amdgpu_device_vram_access(adev, pos, &bhdr, sizeof(bhdr), false); in amdgpu_discovery_refresh_nps_info()
1798 offset = le16_to_cpu(bhdr.table_list[NPS_INFO].offset); in amdgpu_discovery_refresh_nps_info()
1799 checksum = le16_to_cpu(bhdr.table_list[NPS_INFO].checksum); in amdgpu_discovery_refresh_nps_info()
1821 struct binary_header *bhdr; in amdgpu_discovery_get_nps_info() local
1842 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_nps_info()
1843 offset = le16_to_cpu(bhdr->table_list[NPS_INFO].offset); in amdgpu_discovery_get_nps_info()
1849 if (amdgpu_discovery_verify_npsinfo(adev, bhdr)) in amdgpu_discovery_get_nps_info()