Searched refs:log_ctx (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_helpers.c | 512 struct dc_log_buffer_ctx *log_ctx) in dm_dtn_log_begin() argument 516 if (!log_ctx) { in dm_dtn_log_begin() 521 dm_dtn_log_append_v(ctx, log_ctx, "%s", msg); in dm_dtn_log_begin() 527 struct dc_log_buffer_ctx *log_ctx, in dm_dtn_log_append_v() argument 534 if (!log_ctx) { in dm_dtn_log_append_v() 557 total = log_ctx->pos + n + 1; in dm_dtn_log_append_v() 559 if (total > log_ctx->size) { in dm_dtn_log_append_v() 563 memcpy(buf, log_ctx->buf, log_ctx->pos); in dm_dtn_log_append_v() 564 kfree(log_ctx->buf); in dm_dtn_log_append_v() 566 log_ctx->buf = buf; in dm_dtn_log_append_v() [all …]
|
| H A D | amdgpu_dm_debugfs.c | 4172 struct dc_log_buffer_ctx log_ctx = { 0 }; in dtn_log_read() local 4181 dc->hwss.log_hw_state(dc, &log_ctx); in dtn_log_read() 4183 if (*pos < log_ctx.pos) { in dtn_log_read() 4184 size_t to_copy = log_ctx.pos - *pos; in dtn_log_read() 4188 if (!copy_to_user(buf, log_ctx.buf + *pos, to_copy)) { in dtn_log_read() 4194 kfree(log_ctx.buf); in dtn_log_read()
|
| /linux/drivers/gpu/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_hw_sequencer_debug.h | 36 struct dc_log_buffer_ctx *log_ctx);
|
| /linux/drivers/vhost/ |
| H A D | vhost.c | 400 vq->log_ctx = NULL; in vhost_vq_reset() 605 dev->log_ctx = NULL; in vhost_dev_init() 1244 if (dev->log_ctx) in vhost_dev_cleanup() 1245 eventfd_ctx_put(dev->log_ctx); in vhost_dev_cleanup() 1246 dev->log_ctx = NULL; in vhost_dev_cleanup() 2496 swap(ctx, d->log_ctx); in vhost_dev_ioctl() 2499 d->vqs[i]->log_ctx = d->log_ctx; in vhost_dev_ioctl() 2666 if (vq->log_ctx) in vhost_log_write() 2667 eventfd_signal(vq->log_ctx); in vhost_log_write() 2685 if (vq->log_ctx) in vhost_update_used_flags() [all …]
|
| H A D | vhost.h | 109 struct eventfd_ctx *log_ctx; member 186 struct eventfd_ctx *log_ctx; member
|
| /linux/drivers/gpu/drm/amd/display/amdgpu_dm/tests/ |
| H A D | amdgpu_dm_helpers_test.c | 1153 struct dc_log_buffer_ctx log_ctx = {0}; in dm_test_dtn_log_buffer_accumulates() local 1155 dm_dtn_log_begin(NULL, &log_ctx); in dm_test_dtn_log_buffer_accumulates() 1156 dm_dtn_log_append_v(NULL, &log_ctx, "x=%d\n", 7); in dm_test_dtn_log_buffer_accumulates() 1157 dm_dtn_log_end(NULL, &log_ctx); in dm_test_dtn_log_buffer_accumulates() 1159 KUNIT_ASSERT_NOT_NULL(test, log_ctx.buf); in dm_test_dtn_log_buffer_accumulates() 1160 KUNIT_EXPECT_STREQ(test, log_ctx.buf, "[dtn begin]\nx=7\n[dtn end]\n"); in dm_test_dtn_log_buffer_accumulates() 1161 KUNIT_EXPECT_EQ(test, log_ctx.pos, strlen("[dtn begin]\nx=7\n[dtn end]\n")); in dm_test_dtn_log_buffer_accumulates() 1163 kvfree(log_ctx.buf); in dm_test_dtn_log_buffer_accumulates()
|
| /linux/drivers/gpu/drm/amd/display/dc/hwss/dcn30/ |
| H A D | dcn30_hwseq.c | 76 struct dc_log_buffer_ctx *log_ctx) in dcn30_log_color_state() argument 78 (void)log_ctx; in dcn30_log_color_state()
|