Home
last modified time | relevance | path

Searched refs:num_xcps (Results 1 – 7 of 7) sorted by relevance

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_xcp.c120 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()
Damdgpu_xcp.h95 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()
Daqua_vanjaram.c67 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()
Damdgpu_gfx.c1499 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()
Damdgpu_ids.c607 for (i = 0; i < (adev->xcp_mgr ? adev->xcp_mgr->num_xcps : 1); i++) { in amdgpu_vmid_mgr_init()
Damdgpu_kms.c621 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/
Dkfd_mqd_manager.c302 if (node->adev->xcp_mgr && node->adev->xcp_mgr->num_xcps > 0) in kfd_check_hiq_mqd_doorbell_id()