Lines Matching refs:ip
253 struct ip *ip; in amdgpu_discovery_reg_base_init() local
292 ip = (struct ip *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_reg_base_init()
293 num_base_address = ip->num_base_address; in amdgpu_discovery_reg_base_init()
296 hw_id_names[le16_to_cpu(ip->hw_id)], in amdgpu_discovery_reg_base_init()
297 le16_to_cpu(ip->hw_id), in amdgpu_discovery_reg_base_init()
298 ip->number_instance, in amdgpu_discovery_reg_base_init()
299 ip->major, ip->minor, in amdgpu_discovery_reg_base_init()
300 ip->revision); in amdgpu_discovery_reg_base_init()
302 if (le16_to_cpu(ip->hw_id) == VCN_HWID) in amdgpu_discovery_reg_base_init()
310 ip->base_address[k] = le32_to_cpu(ip->base_address[k]); in amdgpu_discovery_reg_base_init()
311 DRM_DEBUG("\t0x%08x\n", ip->base_address[k]); in amdgpu_discovery_reg_base_init()
315 if (hw_id_map[hw_ip] == le16_to_cpu(ip->hw_id)) { in amdgpu_discovery_reg_base_init()
317 hw_id_names[le16_to_cpu(ip->hw_id)]); in amdgpu_discovery_reg_base_init()
318 adev->reg_offset[hw_ip][ip->number_instance] = in amdgpu_discovery_reg_base_init()
319 ip->base_address; in amdgpu_discovery_reg_base_init()
324 ip_offset += sizeof(*ip) + 4 * (ip->num_base_address - 1); in amdgpu_discovery_reg_base_init()
337 struct ip *ip; in amdgpu_discovery_get_ip_version() local
361 ip = (struct ip *)(adev->mman.discovery_bin + ip_offset); in amdgpu_discovery_get_ip_version()
363 if ((le16_to_cpu(ip->hw_id) == hw_id) && (ip->number_instance == number_instance)) { in amdgpu_discovery_get_ip_version()
365 *major = ip->major; in amdgpu_discovery_get_ip_version()
367 *minor = ip->minor; in amdgpu_discovery_get_ip_version()
369 *revision = ip->revision; in amdgpu_discovery_get_ip_version()
372 ip_offset += sizeof(*ip) + 4 * (ip->num_base_address - 1); in amdgpu_discovery_get_ip_version()