Lines Matching refs:dhdr
487 struct die_header *dhdr; in amdgpu_discovery_read_harvest_bit_per_ip() local
500 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_read_harvest_bit_per_ip()
501 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_read_harvest_bit_per_ip()
502 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_read_harvest_bit_per_ip()
918 struct die_header *dhdr; in amdgpu_discovery_sysfs_recurse() local
935 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_sysfs_recurse()
936 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_sysfs_recurse()
937 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_sysfs_recurse()
951 kobject_set_name(&ip_die_entry->ip_kset.kobj, "%d", le16_to_cpu(dhdr->die_id)); in amdgpu_discovery_sysfs_recurse()
1070 struct die_header *dhdr; in amdgpu_discovery_reg_base_init() local
1096 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_reg_base_init()
1097 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_reg_base_init()
1098 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_reg_base_init()
1100 if (le16_to_cpu(dhdr->die_id) != i) { in amdgpu_discovery_reg_base_init()
1102 le16_to_cpu(dhdr->die_id), i); in amdgpu_discovery_reg_base_init()
1107 le16_to_cpu(dhdr->die_id), num_ips); in amdgpu_discovery_reg_base_init()
1200 struct die_header *dhdr; in amdgpu_discovery_get_ip_version() local
1220 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_get_ip_version()
1221 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_get_ip_version()
1222 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_get_ip_version()