Lines Matching refs:bhdr

257 	struct binary_header *bhdr;  in amdgpu_discovery_verify_binary_signature()  local
258 bhdr = (struct binary_header *)binary; in amdgpu_discovery_verify_binary_signature()
260 return (le32_to_cpu(bhdr->binary_signature) == BINARY_SIGNATURE); in amdgpu_discovery_verify_binary_signature()
290 struct binary_header *bhdr; in amdgpu_discovery_init() local
325 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
328 sizeof(bhdr->binary_checksum); in amdgpu_discovery_init()
329 size = le16_to_cpu(bhdr->binary_size) - offset; in amdgpu_discovery_init()
330 checksum = le16_to_cpu(bhdr->binary_checksum); in amdgpu_discovery_init()
339 info = &bhdr->table_list[IP_DISCOVERY]; in amdgpu_discovery_init()
360 info = &bhdr->table_list[GC]; in amdgpu_discovery_init()
382 info = &bhdr->table_list[HARVEST_INFO]; in amdgpu_discovery_init()
404 info = &bhdr->table_list[VCN_INFO]; in amdgpu_discovery_init()
426 info = &bhdr->table_list[MALL_INFO]; in amdgpu_discovery_init()
485 struct binary_header *bhdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
492 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_harvest_bit_per_ip()
494 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_read_harvest_bit_per_ip()
536 struct binary_header *bhdr; in amdgpu_discovery_read_from_harvest_table() local
541 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_from_harvest_table()
542 offset = le16_to_cpu(bhdr->table_list[HARVEST_INFO].offset); in amdgpu_discovery_read_from_harvest_table()
916 struct binary_header *bhdr; in amdgpu_discovery_sysfs_recurse() local
924 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_sysfs_recurse()
926 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_sysfs_recurse()
1068 struct binary_header *bhdr; in amdgpu_discovery_reg_base_init() local
1087 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_reg_base_init()
1089 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_reg_base_init()
1198 struct binary_header *bhdr; in amdgpu_discovery_get_ip_version() local
1213 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_ip_version()
1215 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_get_ip_version()
1290 struct binary_header *bhdr; in amdgpu_discovery_get_gfx_info() local
1299 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_gfx_info()
1300 offset = le16_to_cpu(bhdr->table_list[GC].offset); in amdgpu_discovery_get_gfx_info()
1378 struct binary_header *bhdr; in amdgpu_discovery_get_mall_info() local
1389 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_mall_info()
1390 offset = le16_to_cpu(bhdr->table_list[MALL_INFO].offset); in amdgpu_discovery_get_mall_info()
1429 struct binary_header *bhdr; in amdgpu_discovery_get_vcn_info() local
1449 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_vcn_info()
1450 offset = le16_to_cpu(bhdr->table_list[VCN_INFO].offset); in amdgpu_discovery_get_vcn_info()