Lines Matching refs:spu_context

67 struct spu_context {
148 struct spu_context *aff_ref_ctx;
173 int (*mbox_read) (struct spu_context * ctx, u32 * data);
174 u32(*mbox_stat_read) (struct spu_context * ctx);
175 __poll_t (*mbox_stat_poll)(struct spu_context *ctx, __poll_t events);
176 int (*ibox_read) (struct spu_context * ctx, u32 * data);
177 int (*wbox_write) (struct spu_context * ctx, u32 data);
178 u32(*signal1_read) (struct spu_context * ctx);
179 void (*signal1_write) (struct spu_context * ctx, u32 data);
180 u32(*signal2_read) (struct spu_context * ctx);
181 void (*signal2_write) (struct spu_context * ctx, u32 data);
182 void (*signal1_type_set) (struct spu_context * ctx, u64 val);
183 u64(*signal1_type_get) (struct spu_context * ctx);
184 void (*signal2_type_set) (struct spu_context * ctx, u64 val);
185 u64(*signal2_type_get) (struct spu_context * ctx);
186 u32(*npc_read) (struct spu_context * ctx);
187 void (*npc_write) (struct spu_context * ctx, u32 data);
188 u32(*status_read) (struct spu_context * ctx);
189 char*(*get_ls) (struct spu_context * ctx);
190 void (*privcntl_write) (struct spu_context *ctx, u64 data);
191 u32 (*runcntl_read) (struct spu_context * ctx);
192 void (*runcntl_write) (struct spu_context * ctx, u32 data);
193 void (*runcntl_stop) (struct spu_context * ctx);
194 void (*master_start) (struct spu_context * ctx);
195 void (*master_stop) (struct spu_context * ctx);
196 int (*set_mfc_query)(struct spu_context * ctx, u32 mask, u32 mode);
197 u32 (*read_mfc_tagstatus)(struct spu_context * ctx);
198 u32 (*get_mfc_free_elements)(struct spu_context *ctx);
199 int (*send_mfc_command)(struct spu_context * ctx,
201 void (*dma_info_read) (struct spu_context * ctx,
203 void (*proxydma_info_read) (struct spu_context * ctx,
205 void (*restart_dma)(struct spu_context *ctx);
212 struct spu_context *i_ctx;
234 long spufs_run_spu(struct spu_context *ctx, u32 *npc, u32 *status);
247 void spu_gang_remove_ctx(struct spu_gang *gang, struct spu_context *ctx);
248 void spu_gang_add_ctx(struct spu_gang *gang, struct spu_context *ctx);
251 int spufs_handle_class1(struct spu_context *ctx);
252 int spufs_handle_class0(struct spu_context *ctx);
255 struct spu *affinity_check(struct spu_context *ctx);
259 static inline int __must_check spu_acquire(struct spu_context *ctx)
264 static inline void spu_release(struct spu_context *ctx)
269 struct spu_context * alloc_spu_context(struct spu_gang *gang);
271 struct spu_context * get_spu_context(struct spu_context *ctx);
272 int put_spu_context(struct spu_context *ctx);
273 void spu_unmap_mappings(struct spu_context *ctx);
275 void spu_forget(struct spu_context *ctx);
276 int __must_check spu_acquire_saved(struct spu_context *ctx);
277 void spu_release_saved(struct spu_context *ctx);
279 int spu_stopped(struct spu_context *ctx, u32 * stat);
280 void spu_del_from_rq(struct spu_context *ctx);
281 int spu_activate(struct spu_context *ctx, unsigned long flags);
282 void spu_deactivate(struct spu_context *ctx);
283 void spu_yield(struct spu_context *ctx);
284 void spu_switch_log_notify(struct spu *spu, struct spu_context *ctx,
286 void spu_set_timeslice(struct spu_context *ctx);
287 void spu_update_sched_info(struct spu_context *ctx);
288 void __spu_update_sched_info(struct spu_context *ctx);
326 size_t spu_wbox_write(struct spu_context *ctx, u32 data);
327 size_t spu_ibox_read(struct spu_context *ctx, u32 *data);
338 ssize_t (*dump)(struct spu_context *ctx, struct coredump_params *cprm);
339 u64 (*get)(struct spu_context *ctx);
353 extern void spuctx_switch_state(struct spu_context *ctx,