Home
last modified time | relevance | path

Searched refs:hw_ip (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.10/drivers/gpu/drm/amd/amdgpu/
Damdgpu_ctx.c78 u32 hw_ip) in amdgpu_ctx_prio_sched_to_hw() argument
82 hw_prio = (hw_ip == AMDGPU_HW_IP_COMPUTE) ? in amdgpu_ctx_prio_sched_to_hw()
85 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_prio_sched_to_hw()
86 if (adev->gpu_sched[hw_ip][hw_prio].num_scheds == 0) in amdgpu_ctx_prio_sched_to_hw()
92 static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, u32 hw_ip, in amdgpu_ctx_init_entity() argument
111 hw_prio = amdgpu_ctx_prio_sched_to_hw(adev, priority, hw_ip); in amdgpu_ctx_init_entity()
113 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_init_entity()
114 scheds = adev->gpu_sched[hw_ip][hw_prio].sched; in amdgpu_ctx_init_entity()
115 num_scheds = adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ctx_init_entity()
118 if (hw_ip == AMDGPU_HW_IP_VCN_ENC || in amdgpu_ctx_init_entity()
[all …]
Damdgpu_discovery.c258 int hw_ip; in amdgpu_discovery_reg_base_init() local
310 for (hw_ip = 0; hw_ip < MAX_HWIP; hw_ip++) { in amdgpu_discovery_reg_base_init()
311 if (hw_id_map[hw_ip] == le16_to_cpu(ip->hw_id)) { in amdgpu_discovery_reg_base_init()
314 adev->reg_offset[hw_ip][ip->number_instance] = in amdgpu_discovery_reg_base_init()
Damdgpu_ring.c171 u32 hw_ip; in amdgpu_ring_init() local
264 hw_ip = ring->funcs->type; in amdgpu_ring_init()
265 num_sched = &adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ring_init()
266 adev->gpu_sched[hw_ip][hw_prio].sched[(*num_sched)++] = in amdgpu_ring_init()
Damdgpu_ctx.h69 int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance,
/Linux-v5.10/drivers/misc/habanalabs/common/
Dhabanalabs_ioctl.c44 struct hl_info_hw_ip_info hw_ip = {0}; in hw_ip_info() local
58 hw_ip.device_id = hdev->asic_funcs->get_pci_id(hdev); in hw_ip_info()
59 hw_ip.sram_base_address = prop->sram_user_base_address; in hw_ip_info()
60 hw_ip.dram_base_address = prop->dram_user_base_address; in hw_ip_info()
61 hw_ip.tpc_enabled_mask = prop->tpc_enabled_mask; in hw_ip_info()
62 hw_ip.sram_size = prop->sram_size - sram_kmd_size; in hw_ip_info()
63 hw_ip.dram_size = prop->dram_size - dram_kmd_size; in hw_ip_info()
64 if (hw_ip.dram_size > PAGE_SIZE) in hw_ip_info()
65 hw_ip.dram_enabled = 1; in hw_ip_info()
66 hw_ip.num_of_events = prop->num_of_events; in hw_ip_info()
[all …]