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, "%08x: %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()
199 &pb->dma, pb->size / 4); in show_channel_gathers()
201 show_gather(o, pb->dma, pb->size / 4, cdma, pb->dma, pb->mapped); in show_channel_gathers()
203 list_for_each_entry(job, &cdma->sync_queue, list) { in show_channel_gathers()
206 …host1x_debug_output(o, "\n%p: JOB, syncpt_id=%d, syncpt_val=%d, first_get=%08x, timeout=%d num_slo… in show_channel_gathers()
207 job, job->syncpt_id, job->syncpt_end, in show_channel_gathers()
208 job->first_get, job->timeout, in show_channel_gathers()
209 job->num_slots, job->num_unpins); in show_channel_gathers()
211 for (i = 0; i < job->num_gathers; i++) { in show_channel_gathers()
212 struct host1x_job_gather *g = &job->gathers[i]; in show_channel_gathers()
215 if (job->gather_copy_mapped) in show_channel_gathers()
216 mapped = (u32 *)job->gather_copy_mapped; in show_channel_gathers()
218 mapped = host1x_bo_mmap(g->bo); in show_channel_gathers()
225 host1x_debug_output(o, " GATHER at %pad+%#x, %d words\n", in show_channel_gathers()
226 &g->base, g->offset, g->words); in show_channel_gathers()
228 show_gather(o, g->base + g->offset, g->words, cdma, in show_channel_gathers()
229 g->base, mapped); in show_channel_gathers()
231 if (!job->gather_copy_mapped) in show_channel_gathers()
232 host1x_bo_munmap(g->bo, mapped); in show_channel_gathers()