Lines Matching refs:bhdr
295 struct binary_header *bhdr; in amdgpu_discovery_verify_binary_signature() local
296 bhdr = (struct binary_header *)binary; in amdgpu_discovery_verify_binary_signature()
298 return (le32_to_cpu(bhdr->binary_signature) == BINARY_SIGNATURE); in amdgpu_discovery_verify_binary_signature()
329 struct binary_header *bhdr; in amdgpu_discovery_init() local
366 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_init()
369 sizeof(bhdr->binary_checksum); in amdgpu_discovery_init()
370 size = le16_to_cpu(bhdr->binary_size) - offset; in amdgpu_discovery_init()
371 checksum = le16_to_cpu(bhdr->binary_checksum); in amdgpu_discovery_init()
380 info = &bhdr->table_list[IP_DISCOVERY]; in amdgpu_discovery_init()
401 info = &bhdr->table_list[GC]; in amdgpu_discovery_init()
423 info = &bhdr->table_list[HARVEST_INFO]; in amdgpu_discovery_init()
445 info = &bhdr->table_list[VCN_INFO]; in amdgpu_discovery_init()
467 info = &bhdr->table_list[MALL_INFO]; in amdgpu_discovery_init()
526 struct binary_header *bhdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
533 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_harvest_bit_per_ip()
535 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_read_harvest_bit_per_ip()
589 struct binary_header *bhdr; in amdgpu_discovery_read_from_harvest_table() local
595 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_read_from_harvest_table()
596 offset = le16_to_cpu(bhdr->table_list[HARVEST_INFO].offset); in amdgpu_discovery_read_from_harvest_table()
1032 struct binary_header *bhdr; in amdgpu_discovery_sysfs_recurse() local
1040 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_sysfs_recurse()
1042 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_sysfs_recurse()
1187 struct binary_header *bhdr; in amdgpu_discovery_reg_base_init() local
1210 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_reg_base_init()
1212 le16_to_cpu(bhdr->table_list[IP_DISCOVERY].offset)); in amdgpu_discovery_reg_base_init()
1398 struct binary_header *bhdr; in amdgpu_discovery_get_gfx_info() local
1407 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_gfx_info()
1408 offset = le16_to_cpu(bhdr->table_list[GC].offset); in amdgpu_discovery_get_gfx_info()
1496 struct binary_header *bhdr; in amdgpu_discovery_get_mall_info() local
1507 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_mall_info()
1508 offset = le16_to_cpu(bhdr->table_list[MALL_INFO].offset); in amdgpu_discovery_get_mall_info()
1552 struct binary_header *bhdr; in amdgpu_discovery_get_vcn_info() local
1572 bhdr = (struct binary_header *)adev->mman.discovery_bin; in amdgpu_discovery_get_vcn_info()
1573 offset = le16_to_cpu(bhdr->table_list[VCN_INFO].offset); in amdgpu_discovery_get_vcn_info()