Home
last modified time | relevance | path

Searched refs:switch_log (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/arch/powerpc/platforms/cell/spufs/
Dfile.c2305 return (ctx->switch_log->head - ctx->switch_log->tail) % in spufs_switch_log_used()
2323 if (ctx->switch_log) { in spufs_switch_log_open()
2328 ctx->switch_log = kmalloc(struct_size(ctx->switch_log, log, in spufs_switch_log_open()
2331 if (!ctx->switch_log) { in spufs_switch_log_open()
2336 ctx->switch_log->head = ctx->switch_log->tail = 0; in spufs_switch_log_open()
2337 init_waitqueue_head(&ctx->switch_log->wait); in spufs_switch_log_open()
2354 kfree(ctx->switch_log); in spufs_switch_log_release()
2355 ctx->switch_log = NULL; in spufs_switch_log_release()
2365 p = ctx->switch_log->log + ctx->switch_log->tail % SWITCH_LOG_BUFSIZE; in switch_log_sprint()
2410 error = spufs_wait(ctx->switch_log->wait, in spufs_switch_log_read()
[all …]
Dspufs.h54 struct switch_log { struct
135 struct switch_log *switch_log; member
Dcontext.c84 kfree(ctx->switch_log); in destroy_spu_context()