Lines Matching refs:xcp_mgr
103 int (*switch_partition_mode)(struct amdgpu_xcp_mgr *xcp_mgr, int mode,
105 int (*query_partition_mode)(struct amdgpu_xcp_mgr *xcp_mgr);
106 int (*get_ip_details)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id,
109 int (*get_xcp_mem_id)(struct amdgpu_xcp_mgr *xcp_mgr,
112 int (*prepare_suspend)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
113 int (*suspend)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
114 int (*prepare_resume)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
115 int (*resume)(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
122 int amdgpu_xcp_prepare_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
123 int amdgpu_xcp_suspend(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
124 int amdgpu_xcp_prepare_resume(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
125 int amdgpu_xcp_resume(struct amdgpu_xcp_mgr *xcp_mgr, int xcp_id);
129 int amdgpu_xcp_init(struct amdgpu_xcp_mgr *xcp_mgr, int num_xcps, int mode);
130 int amdgpu_xcp_query_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, u32 flags);
131 int amdgpu_xcp_switch_partition_mode(struct amdgpu_xcp_mgr *xcp_mgr, int mode);
132 int amdgpu_xcp_get_partition(struct amdgpu_xcp_mgr *xcp_mgr,
149 ((adev)->xcp_mgr && (adev)->xcp_mgr->funcs && \
150 (adev)->xcp_mgr->funcs->select_scheds ? \
151 (adev)->xcp_mgr->funcs->select_scheds((adev), (e), (c), (d), (x), (y)) : -ENOENT)
153 ((adev)->xcp_mgr && (adev)->xcp_mgr->funcs && \
154 (adev)->xcp_mgr->funcs->update_partition_sched_list ? \
155 (adev)->xcp_mgr->funcs->update_partition_sched_list(adev) : 0)
157 static inline int amdgpu_xcp_get_num_xcp(struct amdgpu_xcp_mgr *xcp_mgr) in amdgpu_xcp_get_num_xcp() argument
159 if (!xcp_mgr) in amdgpu_xcp_get_num_xcp()
162 return xcp_mgr->num_xcps; in amdgpu_xcp_get_num_xcp()
166 amdgpu_get_next_xcp(struct amdgpu_xcp_mgr *xcp_mgr, int *from) in amdgpu_get_next_xcp() argument
168 if (!xcp_mgr) in amdgpu_get_next_xcp()
172 if (xcp_mgr->xcp[*from].valid) in amdgpu_get_next_xcp()
173 return &xcp_mgr->xcp[*from]; in amdgpu_get_next_xcp()
180 #define for_each_xcp(xcp_mgr, xcp, i) \ argument
181 for (i = 0, xcp = amdgpu_get_next_xcp(xcp_mgr, &i); xcp; \
182 xcp = amdgpu_get_next_xcp(xcp_mgr, &i))