Lines Matching refs:xcp_mgr

78 	struct amdgpu_xcp_mgr *xcp_mgr;  member
130 int (*switch_partition_mode)(struct amdgpu_xcp_mgr *xcp_mgr, int mode,
132 int (*query_partition_mode)(struct amdgpu_xcp_mgr *xcp_mgr);
133 int (*get_ip_details)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id,
136 int (*get_xcp_mem_id)(struct amdgpu_xcp_mgr *xcp_mgr,
138 int (*get_xcp_res_info)(struct amdgpu_xcp_mgr *xcp_mgr,
141 int (*prepare_suspend)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
142 int (*suspend)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
143 int (*prepare_resume)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
144 int (*resume)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
151 int amdgpu_xcp_prepare_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
152 int amdgpu_xcp_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
153 int amdgpu_xcp_prepare_resume(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
154 int amdgpu_xcp_resume(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
158 int amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode);
159 int amdgpu_xcp_query_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, u32 flags);
160 int amdgpu_xcp_switch_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, int mode);
161 int amdgpu_xcp_restore_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr);
162 int amdgpu_xcp_get_partition(struct amdgpu_xcp_mgr *xcp_mgr,
182 ((adev)->xcp_mgr && (adev)->xcp_mgr->funcs && \
183 (adev)->xcp_mgr->funcs->select_scheds ? \
184 (adev)->xcp_mgr->funcs->select_scheds((adev), (e), (c), (d), (x), (y)) : -ENOENT)
186 ((adev)->xcp_mgr && (adev)->xcp_mgr->funcs && \
187 (adev)->xcp_mgr->funcs->update_partition_sched_list ? \
188 (adev)->xcp_mgr->funcs->update_partition_sched_list(adev) : 0)
190 static inline int amdgpu_xcp_get_num_xcp(struct amdgpu_xcp_mgr *xcp_mgr) in amdgpu_xcp_get_num_xcp() argument
192 if (!xcp_mgr) in amdgpu_xcp_get_num_xcp()
195 return xcp_mgr->num_xcps; in amdgpu_xcp_get_num_xcp()
199 amdgpu_get_next_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int *from) in amdgpu_get_next_xcp() argument
201 if (!xcp_mgr) in amdgpu_get_next_xcp()
205 if (xcp_mgr->xcp[*from].valid) in amdgpu_get_next_xcp()
206 return &xcp_mgr->xcp[*from]; in amdgpu_get_next_xcp()
213 #define for_each_xcp(xcp_mgr, xcp, i) \ argument
214 for (i = 0, xcp = amdgpu_get_next_xcp(xcp_mgr, &i); xcp; \
215 ++i, xcp = amdgpu_get_next_xcp(xcp_mgr, &i))