hw_ip 228 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance, hw_ip 231 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c if (hw_ip >= AMDGPU_HW_IP_NUM) { hw_ip 232 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c DRM_ERROR("unknown HW IP type: %d\n", hw_ip); hw_ip 242 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c if (ring >= amdgpu_ctx_num_entities[hw_ip]) { hw_ip 243 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c DRM_DEBUG("invalid ring: %d %d\n", hw_ip, ring); hw_ip 247 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c *entity = &ctx->entities[hw_ip][ring].entity; hw_ip 68 drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.h int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance, hw_ip 268 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c int hw_ip; hw_ip 318 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c for (hw_ip = 0; hw_ip < MAX_HWIP; hw_ip++) { hw_ip 319 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c if (hw_id_map[hw_ip] == le16_to_cpu(ip->hw_id)) { hw_ip 322 drivers/gpu/drm/amd/amdgpu/amdgpu_discovery.c adev->reg_offset[hw_ip][ip->number_instance] = hw_ip 43 drivers/misc/habanalabs/habanalabs_ioctl.c struct hl_info_hw_ip_info hw_ip = {0}; hw_ip 57 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.device_id = hdev->asic_funcs->get_pci_id(hdev); hw_ip 58 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.sram_base_address = prop->sram_user_base_address; hw_ip 59 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.dram_base_address = prop->dram_user_base_address; hw_ip 60 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.tpc_enabled_mask = prop->tpc_enabled_mask; hw_ip 61 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.sram_size = prop->sram_size - sram_kmd_size; hw_ip 62 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.dram_size = prop->dram_size - dram_kmd_size; hw_ip 63 drivers/misc/habanalabs/habanalabs_ioctl.c if (hw_ip.dram_size > 0) hw_ip 64 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.dram_enabled = 1; hw_ip 65 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.num_of_events = prop->num_of_events; hw_ip 66 drivers/misc/habanalabs/habanalabs_ioctl.c memcpy(hw_ip.armcp_version, hw_ip 68 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.armcp_cpld_version = le32_to_cpu(prop->armcp_info.cpld_version); hw_ip 69 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.psoc_pci_pll_nr = prop->psoc_pci_pll_nr; hw_ip 70 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.psoc_pci_pll_nf = prop->psoc_pci_pll_nf; hw_ip 71 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.psoc_pci_pll_od = prop->psoc_pci_pll_od; hw_ip 72 drivers/misc/habanalabs/habanalabs_ioctl.c hw_ip.psoc_pci_pll_div_factor = prop->psoc_pci_pll_div_factor; hw_ip 74 drivers/misc/habanalabs/habanalabs_ioctl.c return copy_to_user(out, &hw_ip, hw_ip 75 drivers/misc/habanalabs/habanalabs_ioctl.c min((size_t)size, sizeof(hw_ip))) ? -EFAULT : 0;