Searched refs:num_xcps (Results 1 – 3 of 3) sorted by relevance
/Linux-v6.6/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() 168 int ret, curr_mode, num_xcps = 0; in amdgpu_xcp_switch_partition_mode() local 185 ret = xcp_mgr->funcs->switch_partition_mode(xcp_mgr, mode, &num_xcps); in amdgpu_xcp_switch_partition_mode() 302 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); 162 return xcp_mgr->num_xcps; in amdgpu_xcp_get_num_xcp()
|
D | aqua_vanjaram.c | 97 for (xcp_id = 0; xcp_id < adev->xcp_mgr->num_xcps; xcp_id++) { in aqua_vanjaram_set_xcp_id() 184 for (i = 0; i < adev->xcp_mgr->num_xcps; i++) { in aqua_vanjaram_select_scheds() 485 int mode, int *num_xcps) in aqua_vanjaram_switch_partition_mode() argument 522 *num_xcps = num_xcc / num_xcc_per_xcp; in aqua_vanjaram_switch_partition_mode() 523 amdgpu_xcp_init(xcp_mgr, *num_xcps, mode); in aqua_vanjaram_switch_partition_mode()
|