Lines Matching refs:dhdr

493 	struct die_header *dhdr;  in amdgpu_discovery_read_harvest_bit_per_ip()  local
506 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_read_harvest_bit_per_ip()
507 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_read_harvest_bit_per_ip()
508 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_read_harvest_bit_per_ip()
930 struct die_header *dhdr; in amdgpu_discovery_sysfs_recurse() local
947 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_sysfs_recurse()
948 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_sysfs_recurse()
949 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_sysfs_recurse()
963 kobject_set_name(&ip_die_entry->ip_kset.kobj, "%d", le16_to_cpu(dhdr->die_id)); in amdgpu_discovery_sysfs_recurse()
1082 struct die_header *dhdr; in amdgpu_discovery_reg_base_init() local
1108 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_reg_base_init()
1109 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_reg_base_init()
1110 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_reg_base_init()
1112 if (le16_to_cpu(dhdr->die_id) != i) { in amdgpu_discovery_reg_base_init()
1114 le16_to_cpu(dhdr->die_id), i); in amdgpu_discovery_reg_base_init()
1119 le16_to_cpu(dhdr->die_id), num_ips); in amdgpu_discovery_reg_base_init()
1214 struct die_header *dhdr; in amdgpu_discovery_get_ip_version() local
1234 dhdr = (struct die_header *)(adev->mman.discovery_bin + die_offset); in amdgpu_discovery_get_ip_version()
1235 num_ips = le16_to_cpu(dhdr->num_ips); in amdgpu_discovery_get_ip_version()
1236 ip_offset = die_offset + sizeof(*dhdr); in amdgpu_discovery_get_ip_version()