Searched refs:hw_ip (Results 1 – 8 of 8) sorted by relevance
/linux-6.6.21/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_ctx.c | 138 static unsigned int amdgpu_ctx_get_hw_prio(struct amdgpu_ctx *ctx, u32 hw_ip) in amdgpu_ctx_get_hw_prio() argument 147 switch (hw_ip) { in amdgpu_ctx_get_hw_prio() 161 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_get_hw_prio() 162 if (adev->gpu_sched[hw_ip][hw_prio].num_scheds == 0) in amdgpu_ctx_get_hw_prio() 203 static int amdgpu_ctx_init_entity(struct amdgpu_ctx *ctx, u32 hw_ip, in amdgpu_ctx_init_entity() argument 221 entity->hw_ip = hw_ip; in amdgpu_ctx_init_entity() 223 hw_prio = amdgpu_ctx_get_hw_prio(ctx, hw_ip); in amdgpu_ctx_init_entity() 226 hw_ip = array_index_nospec(hw_ip, AMDGPU_HW_IP_NUM); in amdgpu_ctx_init_entity() 229 scheds = adev->gpu_sched[hw_ip][hw_prio].sched; in amdgpu_ctx_init_entity() 230 num_scheds = adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ctx_init_entity() [all …]
|
D | amdgpu_fdinfo.c | 65 unsigned int hw_ip; in amdgpu_show_fdinfo() local 108 for (hw_ip = 0; hw_ip < AMDGPU_HW_IP_NUM; ++hw_ip) { in amdgpu_show_fdinfo() 109 if (!usage[hw_ip]) in amdgpu_show_fdinfo() 112 drm_printf(p, "drm-engine-%s:\t%lld ns\n", amdgpu_ip_name[hw_ip], in amdgpu_show_fdinfo() 113 ktime_to_ns(usage[hw_ip])); in amdgpu_show_fdinfo()
|
D | amdgpu_ctx.h | 39 uint32_t hw_ip; member 76 int amdgpu_ctx_get_entity(struct amdgpu_ctx *ctx, u32 hw_ip, u32 instance,
|
D | amdgpu_ring.c | 204 u32 hw_ip; in amdgpu_ring_init() local 356 hw_ip = ring->funcs->type; in amdgpu_ring_init() 357 num_sched = &adev->gpu_sched[hw_ip][hw_prio].num_scheds; in amdgpu_ring_init() 358 adev->gpu_sched[hw_ip][hw_prio].sched[(*num_sched)++] = in amdgpu_ring_init()
|
D | aqua_vanjaram.c | 171 u32 hw_ip, in aqua_vanjaram_select_scheds() argument 196 if (adev->xcp_mgr->xcp[sel_xcp_id].gpu_sched[hw_ip][hw_prio].num_scheds) { in aqua_vanjaram_select_scheds() 197 *num_scheds = adev->xcp_mgr->xcp[fpriv->xcp_id].gpu_sched[hw_ip][hw_prio].num_scheds; in aqua_vanjaram_select_scheds() 198 *scheds = adev->xcp_mgr->xcp[fpriv->xcp_id].gpu_sched[hw_ip][hw_prio].sched; in aqua_vanjaram_select_scheds()
|
D | amdgpu_xcp.h | 117 u32 hw_ip, u32 hw_prio, struct amdgpu_fpriv *fpriv,
|
D | amdgpu_discovery.c | 1215 int hw_ip; in amdgpu_discovery_reg_base_init() local 1336 for (hw_ip = 0; hw_ip < MAX_HWIP; hw_ip++) { 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() 1338 hw_id_map[hw_ip] != 0) { in amdgpu_discovery_reg_base_init() 1341 adev->reg_offset[hw_ip][ip->instance_number] = in amdgpu_discovery_reg_base_init() 1352 adev->ip_versions[hw_ip][ip->instance_number] = in amdgpu_discovery_reg_base_init()
|
/linux-6.6.21/drivers/accel/habanalabs/common/ |
D | habanalabs_ioctl.c | 48 struct hl_info_hw_ip_info hw_ip = {0}; in hw_ip_info() local 62 hw_ip.device_id = hdev->asic_funcs->get_pci_id(hdev); in hw_ip_info() 63 hw_ip.sram_base_address = prop->sram_user_base_address; in hw_ip_info() 64 hw_ip.dram_base_address = in hw_ip_info() 67 hw_ip.tpc_enabled_mask = prop->tpc_enabled_mask & 0xFF; in hw_ip_info() 68 hw_ip.tpc_enabled_mask_ext = prop->tpc_enabled_mask; in hw_ip_info() 70 hw_ip.sram_size = prop->sram_size - sram_kmd_size; in hw_ip_info() 74 hw_ip.dram_size = DIV_ROUND_DOWN_ULL(dram_available_size, prop->dram_page_size) * in hw_ip_info() 77 if (hw_ip.dram_size > PAGE_SIZE) in hw_ip_info() 78 hw_ip.dram_enabled = 1; in hw_ip_info() [all …]
|