Searched refs:switch_log (Results 1 – 3 of 3) sorted by relevance
2426 return (ctx->switch_log->head - ctx->switch_log->tail) % in spufs_switch_log_used()2444 if (ctx->switch_log) { in spufs_switch_log_open()2449 ctx->switch_log = kmalloc(sizeof(struct switch_log) + in spufs_switch_log_open()2453 if (!ctx->switch_log) { in spufs_switch_log_open()2458 ctx->switch_log->head = ctx->switch_log->tail = 0; in spufs_switch_log_open()2459 init_waitqueue_head(&ctx->switch_log->wait); in spufs_switch_log_open()2476 kfree(ctx->switch_log); in spufs_switch_log_release()2477 ctx->switch_log = NULL; in spufs_switch_log_release()2487 p = ctx->switch_log->log + ctx->switch_log->tail % SWITCH_LOG_BUFSIZE; in switch_log_sprint()2532 error = spufs_wait(ctx->switch_log->wait, in spufs_switch_log_read()[all …]
66 struct switch_log { struct150 struct switch_log *switch_log; member
95 kfree(ctx->switch_log); in destroy_spu_context()