Lines Matching +full:min +full:- +full:len
1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2013 NVIDIA Corporation
31 int len; in host1x_debug_output() local
34 len = vsnprintf(o->buf, sizeof(o->buf), fmt, args); in host1x_debug_output()
37 o->fn(o->ctx, o->buf, len, false); in host1x_debug_output()
43 int len; in host1x_debug_cont() local
46 len = vsnprintf(o->buf, sizeof(o->buf), fmt, args); in host1x_debug_cont()
49 o->fn(o->ctx, o->buf, len, true); in host1x_debug_cont()
54 struct host1x *m = dev_get_drvdata(ch->dev->parent); in show_channel()
58 err = pm_runtime_resume_and_get(m->dev); in show_channel()
62 mutex_lock(&ch->cdma.lock); in show_channel()
71 mutex_unlock(&ch->cdma.lock); in show_channel()
73 pm_runtime_put(m->dev); in show_channel()
85 host1x_debug_output(o, "---- syncpts ----\n"); in show_syncpts()
87 err = pm_runtime_resume_and_get(m->dev); in show_syncpts()
92 u32 max = host1x_syncpt_read_max(m->syncpt + i); in show_syncpts()
93 u32 min = host1x_syncpt_load(m->syncpt + i); in show_syncpts() local
96 spin_lock_irqsave(&m->syncpt[i].fences.lock, irqflags); in show_syncpts()
97 list_for_each(pos, &m->syncpt[i].fences.list) in show_syncpts()
99 spin_unlock_irqrestore(&m->syncpt[i].fences.lock, irqflags); in show_syncpts()
101 if (!kref_read(&m->syncpt[i].ref)) in show_syncpts()
104 if (!show_all && !min && !max && !waiters) in show_syncpts()
108 "id %u (%s) min %d max %d (%d waiters)\n", in show_syncpts()
109 i, m->syncpt[i].name, min, max, waiters); in show_syncpts()
115 base_val = host1x_syncpt_load_wait_base(m->syncpt + i); in show_syncpts()
121 pm_runtime_put(m->dev); in show_syncpts()
132 host1x_debug_output(o, "---- channels ----\n"); in show_all()
134 for (i = 0; i < m->info->nb_channels; ++i) { in show_all()
151 show_all(s->private, &o, true); in host1x_debug_all_show()
164 show_all(s->private, &o, false); in host1x_debug_show()
172 struct dentry *de = debugfs_create_dir("tegra-host1x", NULL); in host1x_debugfs_init()
175 host1x->debugfs = de; in host1x_debugfs_init()
196 debugfs_remove_recursive(host1x->debugfs); in host1x_debugfs_exit()