Lines Matching refs:bhdr
345 struct binary_header *bhdr; in amdgpu_discovery_verify_binary_signature() local
346 bhdr = (struct binary_header *)binary; in amdgpu_discovery_verify_binary_signature()
348 return (le32_to_cpu(bhdr->binary_signature) == BINARY_SIGNATURE); in amdgpu_discovery_verify_binary_signature()
377 struct binary_header *bhdr) in amdgpu_discovery_verify_npsinfo() argument
383 info = &bhdr->table_list[NPS_INFO]; in amdgpu_discovery_verify_npsinfo()
408 struct binary_header *bhdr; in amdgpu_discovery_init() local
445 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
448 sizeof(bhdr->binary_checksum); in amdgpu_discovery_init()
449 size = le16_to_cpu(bhdr->binary_size) - offset; in amdgpu_discovery_init()
450 checksum = le16_to_cpu(bhdr->binary_checksum); in amdgpu_discovery_init()
459 info = &bhdr->table_list[IP_DISCOVERY]; in amdgpu_discovery_init()
480 info = &bhdr->table_list[GC]; in amdgpu_discovery_init()
502 info = &bhdr->table_list[HARVEST_INFO]; in amdgpu_discovery_init()
524 info = &bhdr->table_list[VCN_INFO]; in amdgpu_discovery_init()
546 info = &bhdr->table_list[MALL_INFO]; in amdgpu_discovery_init()
607 struct binary_header *bhdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
614 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_harvest_bit_per_ip()
616 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_read_harvest_bit_per_ip()
670 struct binary_header *bhdr; in amdgpu_discovery_read_from_harvest_table() local
676 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_from_harvest_table()
677 offset = le16_to_cpu(bhdr->table_list[HARVEST_INFO].offset); in amdgpu_discovery_read_from_harvest_table()
1119 struct binary_header *bhdr; in amdgpu_discovery_sysfs_recurse() local
1127 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_sysfs_recurse()
1129 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_sysfs_recurse()
1275 struct binary_header *bhdr; in amdgpu_discovery_reg_base_init() local
1297 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_reg_base_init()
1299 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_reg_base_init()
1510 struct binary_header *bhdr; in amdgpu_discovery_get_gfx_info() local
1519 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_gfx_info()
1520 offset = le16_to_cpu(bhdr->table_list[GC].offset); in amdgpu_discovery_get_gfx_info()
1618 struct binary_header *bhdr; in amdgpu_discovery_get_mall_info() local
1629 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_mall_info()
1630 offset = le16_to_cpu(bhdr->table_list[MALL_INFO].offset); in amdgpu_discovery_get_mall_info()
1674 struct binary_header *bhdr; in amdgpu_discovery_get_vcn_info() local
1694 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_vcn_info()
1695 offset = le16_to_cpu(bhdr->table_list[VCN_INFO].offset); in amdgpu_discovery_get_vcn_info()
1732 struct binary_header *bhdr; in amdgpu_discovery_get_nps_info() local
1746 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_nps_info()
1747 offset = le16_to_cpu(bhdr->table_list[NPS_INFO].offset); in amdgpu_discovery_get_nps_info()
1753 if (amdgpu_discovery_verify_npsinfo(adev, bhdr)) in amdgpu_discovery_get_nps_info()