switch_log 84 arch/powerpc/platforms/cell/spufs/context.c kfree(ctx->switch_log); switch_log 2305 arch/powerpc/platforms/cell/spufs/file.c return (ctx->switch_log->head - ctx->switch_log->tail) % switch_log 2323 arch/powerpc/platforms/cell/spufs/file.c if (ctx->switch_log) { switch_log 2328 arch/powerpc/platforms/cell/spufs/file.c ctx->switch_log = kmalloc(struct_size(ctx->switch_log, log, switch_log 2331 arch/powerpc/platforms/cell/spufs/file.c if (!ctx->switch_log) { switch_log 2336 arch/powerpc/platforms/cell/spufs/file.c ctx->switch_log->head = ctx->switch_log->tail = 0; switch_log 2337 arch/powerpc/platforms/cell/spufs/file.c init_waitqueue_head(&ctx->switch_log->wait); switch_log 2354 arch/powerpc/platforms/cell/spufs/file.c kfree(ctx->switch_log); switch_log 2355 arch/powerpc/platforms/cell/spufs/file.c ctx->switch_log = NULL; switch_log 2365 arch/powerpc/platforms/cell/spufs/file.c p = ctx->switch_log->log + ctx->switch_log->tail % SWITCH_LOG_BUFSIZE; switch_log 2410 arch/powerpc/platforms/cell/spufs/file.c error = spufs_wait(ctx->switch_log->wait, switch_log 2428 arch/powerpc/platforms/cell/spufs/file.c ctx->switch_log->tail = switch_log 2429 arch/powerpc/platforms/cell/spufs/file.c (ctx->switch_log->tail + 1) % switch_log 2454 arch/powerpc/platforms/cell/spufs/file.c poll_wait(file, &ctx->switch_log->wait, wait); switch_log 2484 arch/powerpc/platforms/cell/spufs/file.c if (!ctx->switch_log) switch_log 2490 arch/powerpc/platforms/cell/spufs/file.c p = ctx->switch_log->log + ctx->switch_log->head; switch_log 2497 arch/powerpc/platforms/cell/spufs/file.c ctx->switch_log->head = switch_log 2498 arch/powerpc/platforms/cell/spufs/file.c (ctx->switch_log->head + 1) % SWITCH_LOG_BUFSIZE; switch_log 2501 arch/powerpc/platforms/cell/spufs/file.c wake_up(&ctx->switch_log->wait); switch_log 135 arch/powerpc/platforms/cell/spufs/spufs.h struct switch_log *switch_log;