Searched refs:xcp_cfg (Results 1 – 3 of 3) sorted by relevance
560 if (!xcp_cfg || !xcp_cfg->compatible_nps_modes) in supported_nps_configs_show()602 r = amdgpu_xcp_get_res_info(xcp_cfg->xcp_mgr, mode, xcp_cfg); in xcp_config_store()607 xcp_cfg->mode = mode; in xcp_config_store()618 kfree(xcp_cfg); in xcp_cfg_sysfs_release()647 xcp_cfg = kzalloc(sizeof(*xcp_cfg), GFP_KERNEL); in amdgpu_xcp_cfg_sysfs_init()648 if (!xcp_cfg) in amdgpu_xcp_cfg_sysfs_init()673 r = amdgpu_xcp_get_res_info(xcp_cfg->xcp_mgr, mode, xcp_cfg); in amdgpu_xcp_cfg_sysfs_init()680 xcp_cfg->mode = mode; in amdgpu_xcp_cfg_sysfs_init()686 &xcp_cfg->kobj, "%s", in amdgpu_xcp_cfg_sysfs_init()692 adev->xcp_mgr->xcp_cfg = xcp_cfg; in amdgpu_xcp_cfg_sysfs_init()[all …]
453 struct amdgpu_xcp_cfg *xcp_cfg) in aqua_vanjaram_get_xcp_res_info() argument498 xcp_cfg->compatible_nps_modes = in aqua_vanjaram_get_xcp_res_info()500 xcp_cfg->num_res = ARRAY_SIZE(max_res); in aqua_vanjaram_get_xcp_res_info()502 for (i = 0; i < xcp_cfg->num_res; i++) { in aqua_vanjaram_get_xcp_res_info()504 xcp_cfg->xcp_res[i].id = i; in aqua_vanjaram_get_xcp_res_info()505 xcp_cfg->xcp_res[i].num_inst = in aqua_vanjaram_get_xcp_res_info()507 xcp_cfg->xcp_res[i].num_inst = in aqua_vanjaram_get_xcp_res_info()509 xcp_cfg->xcp_res[i].num_inst * in aqua_vanjaram_get_xcp_res_info()510 adev->jpeg.num_jpeg_rings : xcp_cfg->xcp_res[i].num_inst; in aqua_vanjaram_get_xcp_res_info()511 xcp_cfg->xcp_res[i].num_shared = in aqua_vanjaram_get_xcp_res_info()
124 struct amdgpu_xcp_cfg *xcp_cfg; member140 struct amdgpu_xcp_cfg *xcp_cfg);