Lines Matching refs:dhdr
547 struct die_header *dhdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
560 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_read_harvest_bit_per_ip()
561 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_read_harvest_bit_per_ip()
562 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_read_harvest_bit_per_ip()
1053 struct die_header *dhdr; in amdgpu_discovery_sysfs_recurse() local
1070 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_sysfs_recurse()
1071 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_sysfs_recurse()
1072 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_sysfs_recurse()
1086 kobject_set_name(&ip_die_entry->ip_kset.kobj, "%d", le16_to_cpu(dhdr->die_id)); in amdgpu_discovery_sysfs_recurse()
1208 struct die_header *dhdr; in amdgpu_discovery_reg_base_init() local
1238 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_reg_base_init()
1239 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_reg_base_init()
1240 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_reg_base_init()
1242 if (le16_to_cpu(dhdr->die_id) != i) { in amdgpu_discovery_reg_base_init()
1244 le16_to_cpu(dhdr->die_id), i); in amdgpu_discovery_reg_base_init()
1249 le16_to_cpu(dhdr->die_id), num_ips); in amdgpu_discovery_reg_base_init()