Lines Matching refs:mode
120 int amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode) in amdgpu_xcp_init() argument
130 xcp_mgr->mode = mode; in amdgpu_xcp_init()
166 int amdgpu_xcp_switch_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, int mode) in amdgpu_xcp_switch_partition_mode() argument
170 if (!xcp_mgr || mode == AMDGPU_XCP_MODE_NONE) in amdgpu_xcp_switch_partition_mode()
173 if (xcp_mgr->mode == mode) in amdgpu_xcp_switch_partition_mode()
181 curr_mode = xcp_mgr->mode; in amdgpu_xcp_switch_partition_mode()
183 xcp_mgr->mode = AMDGPU_XCP_MODE_TRANS; in amdgpu_xcp_switch_partition_mode()
185 ret = xcp_mgr->funcs->switch_partition_mode(xcp_mgr, mode, &num_xcps); in amdgpu_xcp_switch_partition_mode()
190 xcp_mgr->mode = amdgpu_xcp_query_partition_mode( in amdgpu_xcp_switch_partition_mode()
193 xcp_mgr->mode = curr_mode; in amdgpu_xcp_switch_partition_mode()
206 int mode; in amdgpu_xcp_query_partition_mode() local
208 if (xcp_mgr->mode == AMDGPU_XCP_MODE_NONE) in amdgpu_xcp_query_partition_mode()
209 return xcp_mgr->mode; in amdgpu_xcp_query_partition_mode()
212 return xcp_mgr->mode; in amdgpu_xcp_query_partition_mode()
216 mode = xcp_mgr->funcs->query_partition_mode(xcp_mgr); in amdgpu_xcp_query_partition_mode()
217 if (xcp_mgr->mode != AMDGPU_XCP_MODE_TRANS && mode != xcp_mgr->mode) in amdgpu_xcp_query_partition_mode()
221 xcp_mgr->mode, mode); in amdgpu_xcp_query_partition_mode()
226 return mode; in amdgpu_xcp_query_partition_mode()
282 xcp_mgr->mode = init_mode; in amdgpu_xcp_mgr_init()