Home
last modified time | relevance | path

Searched refs:log_ctx (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.4/drivers/gpu/drm/amd/display/amdgpu_dm/
Damdgpu_dm_helpers.c345 struct dc_log_buffer_ctx *log_ctx) in dm_dtn_log_begin() argument
349 if (!log_ctx) { in dm_dtn_log_begin()
354 dm_dtn_log_append_v(ctx, log_ctx, "%s", msg); in dm_dtn_log_begin()
358 struct dc_log_buffer_ctx *log_ctx, in dm_dtn_log_append_v() argument
365 if (!log_ctx) { in dm_dtn_log_append_v()
388 total = log_ctx->pos + n + 1; in dm_dtn_log_append_v()
390 if (total > log_ctx->size) { in dm_dtn_log_append_v()
394 memcpy(buf, log_ctx->buf, log_ctx->pos); in dm_dtn_log_append_v()
395 kfree(log_ctx->buf); in dm_dtn_log_append_v()
397 log_ctx->buf = buf; in dm_dtn_log_append_v()
[all …]
Damdgpu_dm_debugfs.c972 struct dc_log_buffer_ctx log_ctx = { 0 }; in dtn_log_read() local
981 dc->hwss.log_hw_state(dc, &log_ctx); in dtn_log_read()
983 if (*pos < log_ctx.pos) { in dtn_log_read()
984 size_t to_copy = log_ctx.pos - *pos; in dtn_log_read()
988 if (!copy_to_user(buf, log_ctx.buf + *pos, to_copy)) { in dtn_log_read()
994 kfree(log_ctx.buf); in dtn_log_read()
/Linux-v5.4/drivers/gpu/drm/amd/display/include/
Dlogger_interface.h132 dm_dtn_log_begin(dc_ctx, log_ctx)
135 dm_dtn_log_append_v(dc_ctx, log_ctx, msg, ##__VA_ARGS__)
138 dm_dtn_log_end(dc_ctx, log_ctx)
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/
Ddm_services.h362 struct dc_log_buffer_ctx *log_ctx);
364 struct dc_log_buffer_ctx *log_ctx,
367 struct dc_log_buffer_ctx *log_ctx);
/Linux-v5.4/drivers/vhost/
Dvhost.c322 vq->log_ctx = NULL; in vhost_vq_reset()
465 dev->log_ctx = NULL; in vhost_dev_init()
671 if (dev->log_ctx) in vhost_dev_cleanup()
672 eventfd_ctx_put(dev->log_ctx); in vhost_dev_cleanup()
673 dev->log_ctx = NULL; in vhost_dev_cleanup()
1802 swap(ctx, d->log_ctx); in vhost_dev_ioctl()
1805 d->vqs[i]->log_ctx = d->log_ctx; in vhost_dev_ioctl()
1958 if (vq->log_ctx) in vhost_log_write()
1959 eventfd_signal(vq->log_ctx, 1); in vhost_log_write()
1981 if (vq->log_ctx) in vhost_update_used_flags()
[all …]
Dvhost.h97 struct eventfd_ctx *log_ctx; member
164 struct eventfd_ctx *log_ctx; member
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/dcn10/
Ddcn10_hw_sequencer.c69 print_microsec(dc_ctx, log_ctx, ref_cycle)
72 struct dc_log_buffer_ctx *log_ctx, in print_microsec() argument
85 struct dc_log_buffer_ctx *log_ctx) in log_mpc_crc() argument
98 void dcn10_log_hubbub_state(struct dc *dc, struct dc_log_buffer_ctx *log_ctx) in dcn10_log_hubbub_state() argument
126 static void dcn10_log_hubp_states(struct dc *dc, void *log_ctx) in dcn10_log_hubp_states() argument
242 struct dc_log_buffer_ctx *log_ctx) in dcn10_log_hw_state() argument
250 dcn10_log_hubbub_state(dc, log_ctx); in dcn10_log_hw_state()
252 dcn10_log_hubp_states(dc, log_ctx); in dcn10_log_hw_state()
419 log_mpc_crc(dc, log_ctx); in dcn10_log_hw_state()
/Linux-v5.4/drivers/gpu/drm/amd/display/dc/inc/
Dhw_sequencer.h262 struct dc_log_buffer_ctx *log_ctx);