Lines Matching +full:host +full:- +full:id

1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2013 NVIDIA Corporation
14 static void host1x_debug_show_channel_cdma(struct host1x *host, in host1x_debug_show_channel_cdma() argument
18 struct host1x_cdma *cdma = &ch->cdma; in host1x_debug_show_channel_cdma()
29 cbread = host1x_sync_readl(host, HOST1X_SYNC_CBREAD(ch->id)); in host1x_debug_show_channel_cdma()
30 cbstat = host1x_sync_readl(host, HOST1X_SYNC_CBSTAT(ch->id)); in host1x_debug_show_channel_cdma()
32 host1x_debug_output(o, "%u-%s: ", ch->id, dev_name(ch->dev)); in host1x_debug_show_channel_cdma()
35 !ch->cdma.push_buffer.mapped) { in host1x_debug_show_channel_cdma()
51 host1x_sync_readl(host, HOST1X_SYNC_SYNCPT_BASE(base)); in host1x_debug_show_channel_cdma()
71 static void host1x_debug_show_channel_fifo(struct host1x *host, in host1x_debug_show_channel_fifo() argument
78 host1x_debug_output(o, "%u: fifo:\n", ch->id); in host1x_debug_show_channel_fifo()
87 host1x_sync_writel(host, 0x0, HOST1X_SYNC_CFPEEK_CTRL); in host1x_debug_show_channel_fifo()
88 host1x_sync_writel(host, HOST1X_SYNC_CFPEEK_CTRL_ENA_F(1) | in host1x_debug_show_channel_fifo()
89 HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F(ch->id), in host1x_debug_show_channel_fifo()
92 val = host1x_sync_readl(host, HOST1X_SYNC_CFPEEK_PTRS); in host1x_debug_show_channel_fifo()
96 val = host1x_sync_readl(host, HOST1X_SYNC_CF_SETUP(ch->id)); in host1x_debug_show_channel_fifo()
101 host1x_sync_writel(host, 0x0, HOST1X_SYNC_CFPEEK_CTRL); in host1x_debug_show_channel_fifo()
102 host1x_sync_writel(host, HOST1X_SYNC_CFPEEK_CTRL_ENA_F(1) | in host1x_debug_show_channel_fifo()
103 HOST1X_SYNC_CFPEEK_CTRL_CHANNR_F(ch->id) | in host1x_debug_show_channel_fifo()
106 val = host1x_sync_readl(host, HOST1X_SYNC_CFPEEK_READ); in host1x_debug_show_channel_fifo()
114 data_count--; in host1x_debug_show_channel_fifo()
127 host1x_sync_writel(host, 0x0, HOST1X_SYNC_CFPEEK_CTRL); in host1x_debug_show_channel_fifo()
130 static void host1x_debug_show_mlocks(struct host1x *host, struct output *o) in host1x_debug_show_mlocks() argument
134 host1x_debug_output(o, "---- mlocks ----\n"); in host1x_debug_show_mlocks()
136 for (i = 0; i < host1x_syncpt_nb_mlocks(host); i++) { in host1x_debug_show_mlocks()
138 host1x_sync_readl(host, HOST1X_SYNC_MLOCK_OWNER(i)); in host1x_debug_show_mlocks()