Searched refs:num_xcps (Results 1 – 7 of 7) sorted by relevance
/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_xcp.c | 120 int amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode) in amdgpu_xcp_init() argument 127 if (!num_xcps || num_xcps > MAX_XCP) in amdgpu_xcp_init() 136 xcp_mgr->num_xcp_per_mem_partition = num_xcps / xcp_mgr->adev->gmc.num_mem_partitions; in amdgpu_xcp_init() 138 for (i = 0; i < num_xcps; ++i) { in amdgpu_xcp_init() 160 xcp_mgr->num_xcps = num_xcps; in amdgpu_xcp_init() 169 int ret, curr_mode, num_xcps = 0; in __amdgpu_xcp_switch_partition_mode() local 180 ret = xcp_mgr->funcs->switch_partition_mode(xcp_mgr, mode, &num_xcps); in __amdgpu_xcp_switch_partition_mode() 322 for (i = 0; i < xcp_mgr->num_xcps; ++i) { in amdgpu_xcp_get_partition()
|
D | amdgpu_xcp.h | 95 uint8_t num_xcps; member 104 int *num_xcps); 129 int amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode); 163 return xcp_mgr->num_xcps; in amdgpu_xcp_get_num_xcp()
|
D | aqua_vanjaram.c | 67 return (adev->xcp_mgr->num_xcps > adev->vcn.num_vcn_inst); in aqua_vanjaram_xcp_vcn_shared() 103 for (xcp_id = 0; xcp_id < adev->xcp_mgr->num_xcps; xcp_id++) { in aqua_vanjaram_set_xcp_id() 196 for (i = 0; i < adev->xcp_mgr->num_xcps; i++) { in aqua_vanjaram_select_scheds() 534 int mode, int *num_xcps) in aqua_vanjaram_switch_partition_mode() argument 577 *num_xcps = num_xcc / num_xcc_per_xcp; in aqua_vanjaram_switch_partition_mode() 578 amdgpu_xcp_init(xcp_mgr, *num_xcps, mode); in aqua_vanjaram_switch_partition_mode()
|
D | amdgpu_gfx.c | 1499 if (value >= adev->xcp_mgr->num_xcps) in amdgpu_gfx_set_run_cleaner_shader() 1533 for (i = 0; i < adev->xcp_mgr->num_xcps; i++) { in amdgpu_gfx_get_enforce_isolation() 1535 if (i < (adev->xcp_mgr->num_xcps - 1)) in amdgpu_gfx_get_enforce_isolation() 1556 for (i = 0; i < (adev->xcp_mgr ? adev->xcp_mgr->num_xcps : 1); i++) { in amdgpu_gfx_set_enforce_isolation() 1572 if (adev->xcp_mgr && num_partitions != adev->xcp_mgr->num_xcps) in amdgpu_gfx_set_enforce_isolation()
|
D | amdgpu_ids.c | 607 for (i = 0; i < (adev->xcp_mgr ? adev->xcp_mgr->num_xcps : 1); i++) { in amdgpu_vmid_mgr_init()
|
D | amdgpu_kms.c | 621 if (adev->xcp_mgr && adev->xcp_mgr->num_xcps > 0 && in amdgpu_info_ioctl() 622 fpriv->xcp_id < adev->xcp_mgr->num_xcps) { in amdgpu_info_ioctl()
|
/linux-6.12.1/drivers/gpu/drm/amd/amdkfd/ |
D | kfd_mqd_manager.c | 302 if (node->adev->xcp_mgr && node->adev->xcp_mgr->num_xcps > 0) in kfd_check_hiq_mqd_doorbell_id()
|