Lines Matching refs:hw_id
533 if (le16_to_cpu(ip->hw_id) >= HW_ID_MAX) { in amdgpu_discovery_validate_ip()
535 le16_to_cpu(ip->hw_id)); in amdgpu_discovery_validate_ip()
571 switch (le16_to_cpu(ip->hw_id)) { in amdgpu_discovery_read_harvest_bit_per_ip()
625 if (le16_to_cpu(harvest_info->list[i].hw_id) == 0) in amdgpu_discovery_read_from_harvest_table()
628 switch (le16_to_cpu(harvest_info->list[i].hw_id)) { in amdgpu_discovery_read_from_harvest_table()
671 int hw_id; member
682 int hw_id; member
699 return sysfs_emit(buf, "%d\n", ip_hw_instance->hw_id); in hw_id_show()
753 __ATTR_RO(hw_id),
917 uint16_t hw_id, uint8_t inst) in amdgpu_discovery_get_harvest_info() argument
922 switch (hw_id) { in amdgpu_discovery_get_harvest_info()
968 le16_to_cpu(ip->hw_id) != ii) in amdgpu_discovery_sysfs_ips()
980 ip_hw_id->hw_id = ii; in amdgpu_discovery_sysfs_ips()
1013 ip_hw_instance->hw_id = le16_to_cpu(ip->hw_id); /* == ii */ in amdgpu_discovery_sysfs_ips()
1020 adev, ip_hw_instance->hw_id, in amdgpu_discovery_sysfs_ips()
1260 hw_id_names[le16_to_cpu(ip->hw_id)], in amdgpu_discovery_reg_base_init()
1261 le16_to_cpu(ip->hw_id), in amdgpu_discovery_reg_base_init()
1266 if (le16_to_cpu(ip->hw_id) == VCN_HWID) { in amdgpu_discovery_reg_base_init()
1289 if (le16_to_cpu(ip->hw_id) == SDMA0_HWID || in amdgpu_discovery_reg_base_init()
1290 le16_to_cpu(ip->hw_id) == SDMA1_HWID || in amdgpu_discovery_reg_base_init()
1291 le16_to_cpu(ip->hw_id) == SDMA2_HWID || in amdgpu_discovery_reg_base_init()
1292 le16_to_cpu(ip->hw_id) == SDMA3_HWID) { in amdgpu_discovery_reg_base_init()
1305 if (le16_to_cpu(ip->hw_id) == UMC_HWID) { in amdgpu_discovery_reg_base_init()
1310 if (le16_to_cpu(ip->hw_id) == GC_HWID) in amdgpu_discovery_reg_base_init()
1337 if (hw_id_map[hw_ip] == le16_to_cpu(ip->hw_id) && in amdgpu_discovery_reg_base_init()
1340 hw_id_names[le16_to_cpu(ip->hw_id)]); in amdgpu_discovery_reg_base_init()