debug_data
struct pipe_topology_snapshot *current_snapshot = &dc->debug_data.topology_history.snapshots[dc->debug_data.topology_history.current_snapshot_index];
dc->debug_data.topology_history.current_snapshot_index = (dc->debug_data.topology_history.current_snapshot_index + 1) % MAX_TOPOLOGY_SNAPSHOTS;
struct pipe_topology_snapshot *current_snapshot = &dc->debug_data.topology_history.snapshots[dc->debug_data.topology_history.current_snapshot_index];
struct dc_debug_data debug_data;
unsigned int debug_data = 0;
debug_data = REG_READ(DCHUBBUB_TEST_DEBUG_DATA);
if (debug_data & (1 << 30)) {
debug_data);
debug_data = REG_READ(DCHUBBUB_TEST_DEBUG_DATA);
if (debug_data & (1 << 26)) {
debug_data);
unsigned int debug_data = 0;
link->ctx->dc->debug_data.ltFailCount++;
spin_lock(&debug_data->lock);
if (debug_data->stats_count) {
spin_unlock(&debug_data->lock);
buf = debug_data->stats_data;
debug_data->stats_count = n;
spin_unlock(&debug_data->lock);
wake_up(&debug_data->stats_queue);
static void smsdvb_print_isdb_stats_ex(struct smsdvb_debugfs *debug_data,
spin_lock(&debug_data->lock);
if (debug_data->stats_count) {
spin_unlock(&debug_data->lock);
buf = debug_data->stats_data;
debug_data->stats_count = n;
spin_unlock(&debug_data->lock);
wake_up(&debug_data->stats_queue);
struct smsdvb_debugfs *debug_data = client->debug_data;
kref_get(&debug_data->refcount);
spin_lock(&debug_data->lock);
debug_data->stats_count = 0;
debug_data->stats_was_read = false;
spin_unlock(&debug_data->lock);
file->private_data = debug_data;
struct smsdvb_debugfs *debug_data;
debug_data = container_of(ref, struct smsdvb_debugfs, refcount);
kfree(debug_data);
static int smsdvb_stats_wait_read(struct smsdvb_debugfs *debug_data)
spin_lock(&debug_data->lock);
if (debug_data->stats_was_read)
rc = debug_data->stats_count;
spin_unlock(&debug_data->lock);
struct smsdvb_debugfs *debug_data = file->private_data;
kref_get(&debug_data->refcount);
poll_wait(file, &debug_data->stats_queue, wait);
rc = smsdvb_stats_wait_read(debug_data);
kref_put(&debug_data->refcount, smsdvb_debugfs_data_release);
struct smsdvb_debugfs *debug_data = file->private_data;
kref_get(&debug_data->refcount);
rc = smsdvb_stats_wait_read(debug_data);
rc = wait_event_interruptible(debug_data->stats_queue,
smsdvb_stats_wait_read(debug_data));
if (debug_data->stats_was_read) {
len = debug_data->stats_count - *ppos;
debug_data->stats_data, len);
if (*ppos >= debug_data->stats_count) {
spin_lock(&debug_data->lock);
debug_data->stats_was_read = true;
spin_unlock(&debug_data->lock);
kref_put(&debug_data->refcount, smsdvb_debugfs_data_release);
struct smsdvb_debugfs *debug_data = file->private_data;
spin_lock(&debug_data->lock);
debug_data->stats_was_read = true; /* return EOF to read() */
spin_unlock(&debug_data->lock);
wake_up_interruptible_sync(&debug_data->stats_queue);
kref_put(&debug_data->refcount, smsdvb_debugfs_data_release);
static void smsdvb_print_dvb_stats(struct smsdvb_debugfs *debug_data,
struct smsdvb_debugfs *debug_data;
debug_data = kzalloc_obj(*client->debug_data);
if (!debug_data)
client->debug_data = debug_data;
init_waitqueue_head(&debug_data->stats_queue);
spin_lock_init(&debug_data->lock);
kref_init(&debug_data->refcount);
kref_put(&client->debug_data->refcount, smsdvb_debugfs_data_release);
client->debug_data = NULL;
spin_lock(&debug_data->lock);
if (debug_data->stats_count) {
spin_unlock(&debug_data->lock);
buf = debug_data->stats_data;
debug_data->stats_count = n;
spin_unlock(&debug_data->lock);
wake_up(&debug_data->stats_queue);
static void smsdvb_print_isdb_stats(struct smsdvb_debugfs *debug_data,
client->prt_dvb_stats(client->debug_data, p);
client->prt_isdb_stats(client->debug_data, p);
client->prt_isdb_stats_ex(client->debug_data, p);
typedef void (*sms_prt_isdb_stats_t)(struct smsdvb_debugfs *debug_data,
(struct smsdvb_debugfs *debug_data,
struct smsdvb_debugfs *debug_data;
typedef void (*sms_prt_dvb_stats_t)(struct smsdvb_debugfs *debug_data,
struct genwqe_debug_data debug_data;
memcpy(&req->debug_data.ddcb_finished, pddcb,
sizeof(req->debug_data.ddcb_finished));
memcpy(&req->debug_data.ddcb_prev, prev_pddcb,
sizeof(req->debug_data.ddcb_prev));
genwqe_init_debug_data(cd, &req->debug_data);
memcpy(&req->debug_data.ddcb_before, pddcb,
sizeof(req->debug_data.ddcb_before));
&req->debug_data,
&req->debug_data,
static struct debug_data items[] = {
struct debug_data *d;
struct debug_data *d = f->private_data;
u32 debug_data[DOWNLOAD_CTRL_DATA_DWORDS];
(DOWNLOAD_CTRL_OFFSET + offsetof(struct download_cntl_t, debug_data))
static debug_data_t debug_data;
debug_data_t *debug_data_ptr = &debug_data;
debug_data.head = 0;
debug_data.tail = 0;
debug_data.head = 0;
debug_data.tail = 0;
void *debug_data;
ret = jit_emit_elf(jd, filename, sym, addr, (const void *)uaddr, csize, jd->debug_data, jd->nr_debug_entries,
if (jd->debug_data && jd->nr_debug_entries) {
zfree(&jd->debug_data);
jd->debug_data = data;