[Cbe-oss-dev] [RFC 3/5] spufs: add purga_dma_queue() capability.
Christoph Hellwig
hch at lst.de
Sun Jun 24 23:16:22 EST 2007
On Tue, Jun 12, 2007 at 06:10:11PM +0200, Sebastian Siewior wrote:
> +static void spu_backing_purga_dma_queue(struct spu_context *ctx)
> +{
> + struct spu_priv2_collapsed *p2 = &ctx->csa.priv2;
> + struct mfc_cq_sr *mfc_ctx_sr;
> + unsigned int i;
> +
> + spin_lock(&ctx->csa.register_lock);
> + /* purge all DMA requests on PPU & SPU side by removing the valid bit */
> + for (i=0; i< 16; i++) {
Per kernel condingstyle this should be
for (i = 0; i < 16; i++) {
> + for (i=0; i< 8; i++) {
Similar here.
More information about the cbe-oss-dev
mailing list