Lines Matching +full:offset +full:- +full:x

1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2011-2013 NVIDIA Corporation
52 host1x_debug_cont(o, "SETCL(class=%03x, offset=%03x, mask=%02x, [", in show_channel_command()
58 host1x_debug_cont(o, "SETCL(class=%03x)\n", val >> 6 & 0x3ff); in show_channel_command()
63 host1x_debug_cont(o, "INCR(offset=%03x, [", in show_channel_command()
72 host1x_debug_cont(o, "NONINCR(offset=%03x, [", in show_channel_command()
81 host1x_debug_cont(o, "MASK(offset=%03x, mask=%03x, [", in show_channel_command()
89 host1x_debug_cont(o, "IMM(offset=%03x, data=%03x)\n", in show_channel_command()
94 host1x_debug_cont(o, "RESTART(offset=%08x)\n", val << 4); in show_channel_command()
98 host1x_debug_cont(o, "GATHER(offset=%03x, insert=%d, type=%d, count=%04x, addr=[", in show_channel_command()
105 host1x_debug_cont(o, "SETSTRMID(offset=%06x)\n", in show_channel_command()
110 host1x_debug_cont(o, "SETAPPID(appid=%02x)\n", val & 0xff); in show_channel_command()
115 host1x_debug_cont(o, "SETPYLD(data=%04x)\n", *payload); in show_channel_command()
120 host1x_debug_cont(o, "%s(offset=%06x, ", in show_channel_command()
136 host1x_debug_cont(o, "GATHER_W(count=%04x, addr=[", in show_channel_command()
150 host1x_debug_cont(o, "EXTEND_UNKNOWN(%08x)\n", val); in show_channel_command()
164 u32 offset = phys_addr - pin_addr; in show_gather() local
170 * page - in these cases the offset will get an invalid number and in show_gather()
173 if (offset > HOST1X_DEBUG_MAX_PAGE_OFFSET) { in show_gather()
180 u32 val = *(map_addr + offset / 4 + i); in show_gather()
183 host1x_debug_output(o, " %pad: %08x: ", &addr, val); in show_gather()
186 host1x_debug_cont(o, "%08x%s", val, in show_gather()
188 data_count--; in show_gather()
195 struct push_buffer *pb = &cdma->push_buffer; in show_channel_gathers()
198 list_for_each_entry(job, &cdma->sync_queue, list) { in show_channel_gathers()
202 job->syncpt->id, job->syncpt_end, job->timeout, in show_channel_gathers()
203 job->num_slots, job->num_unpins); in show_channel_gathers()
205 show_gather(o, pb->dma + job->first_get, job->num_slots * 2, cdma, in show_channel_gathers()
206 pb->dma + job->first_get, pb->mapped + job->first_get); in show_channel_gathers()
208 for (i = 0; i < job->num_cmds; i++) { in show_channel_gathers()
212 if (job->cmds[i].is_wait) in show_channel_gathers()
215 g = &job->cmds[i].gather; in show_channel_gathers()
217 if (job->gather_copy_mapped) in show_channel_gathers()
218 mapped = (u32 *)job->gather_copy_mapped; in show_channel_gathers()
220 mapped = host1x_bo_mmap(g->bo); in show_channel_gathers()
227 host1x_debug_output(o, " GATHER at %pad+%#x, %d words\n", in show_channel_gathers()
228 &g->base, g->offset, g->words); in show_channel_gathers()
230 show_gather(o, g->base + g->offset, g->words, cdma, in show_channel_gathers()
231 g->base, mapped); in show_channel_gathers()
233 if (!job->gather_copy_mapped) in show_channel_gathers()
234 host1x_bo_munmap(g->bo, mapped); in show_channel_gathers()