Lines Matching full:s

35 static void bdisp_dbg_dump_ins(struct seq_file *s, u32 val)  in bdisp_dbg_dump_ins()  argument
37 seq_printf(s, "INS\t0x%08X\t", val); in bdisp_dbg_dump_ins()
43 seq_puts(s, "SRC1=mem - "); in bdisp_dbg_dump_ins()
46 seq_puts(s, "SRC1=ColorFill - "); in bdisp_dbg_dump_ins()
49 seq_puts(s, "SRC1=copy - "); in bdisp_dbg_dump_ins()
52 seq_puts(s, "SRC1=fil - "); in bdisp_dbg_dump_ins()
55 seq_puts(s, "SRC1=??? - "); in bdisp_dbg_dump_ins()
63 seq_puts(s, "SRC2=mem - "); in bdisp_dbg_dump_ins()
66 seq_puts(s, "SRC2=ColorFill - "); in bdisp_dbg_dump_ins()
69 seq_puts(s, "SRC2=??? - "); in bdisp_dbg_dump_ins()
74 seq_puts(s, "SRC3=mem - "); in bdisp_dbg_dump_ins()
77 seq_puts(s, "IVMX - "); in bdisp_dbg_dump_ins()
79 seq_puts(s, "CLUT - "); in bdisp_dbg_dump_ins()
81 seq_puts(s, "Scale - "); in bdisp_dbg_dump_ins()
83 seq_puts(s, "Flicker - "); in bdisp_dbg_dump_ins()
85 seq_puts(s, "Clip - "); in bdisp_dbg_dump_ins()
87 seq_puts(s, "ColorKey - "); in bdisp_dbg_dump_ins()
89 seq_puts(s, "OVMX - "); in bdisp_dbg_dump_ins()
91 seq_puts(s, "Deint - "); in bdisp_dbg_dump_ins()
93 seq_puts(s, "PlaneMask - "); in bdisp_dbg_dump_ins()
95 seq_puts(s, "VC1R - "); in bdisp_dbg_dump_ins()
97 seq_puts(s, "Rotate - "); in bdisp_dbg_dump_ins()
99 seq_puts(s, "GradFill - "); in bdisp_dbg_dump_ins()
101 seq_puts(s, "AQLock - "); in bdisp_dbg_dump_ins()
103 seq_puts(s, "Pace - "); in bdisp_dbg_dump_ins()
105 seq_puts(s, "IRQ - "); in bdisp_dbg_dump_ins()
107 seq_putc(s, '\n'); in bdisp_dbg_dump_ins()
110 static void bdisp_dbg_dump_tty(struct seq_file *s, u32 val) in bdisp_dbg_dump_tty() argument
112 seq_printf(s, "TTY\t0x%08X\t", val); in bdisp_dbg_dump_tty()
113 seq_printf(s, "Pitch=%d - ", val & 0xFFFF); in bdisp_dbg_dump_tty()
117 seq_puts(s, "RGB565 - "); in bdisp_dbg_dump_tty()
120 seq_puts(s, "RGB888 - "); in bdisp_dbg_dump_tty()
123 seq_puts(s, "xRGB888 - "); in bdisp_dbg_dump_tty()
126 seq_puts(s, "ARGB8888 - "); in bdisp_dbg_dump_tty()
129 seq_puts(s, "NV12 - "); in bdisp_dbg_dump_tty()
132 seq_puts(s, "YUV420P - "); in bdisp_dbg_dump_tty()
135 seq_puts(s, "ColorFormat ??? - "); in bdisp_dbg_dump_tty()
140 seq_puts(s, "AlphaRange - "); in bdisp_dbg_dump_tty()
142 seq_puts(s, "CrNotCb - "); in bdisp_dbg_dump_tty()
144 seq_puts(s, "MB - "); in bdisp_dbg_dump_tty()
146 seq_puts(s, "HSO inverse - "); in bdisp_dbg_dump_tty()
148 seq_puts(s, "VSO inverse - "); in bdisp_dbg_dump_tty()
150 seq_puts(s, "Dither - "); in bdisp_dbg_dump_tty()
152 seq_puts(s, "Write CHROMA - "); in bdisp_dbg_dump_tty()
154 seq_puts(s, "BigEndian - "); in bdisp_dbg_dump_tty()
156 seq_putc(s, '\n'); in bdisp_dbg_dump_tty()
159 static void bdisp_dbg_dump_xy(struct seq_file *s, u32 val, char *name) in bdisp_dbg_dump_xy() argument
161 seq_printf(s, "%s\t0x%08X\t", name, val); in bdisp_dbg_dump_xy()
162 seq_printf(s, "(%d,%d)\n", val & 0xFFFF, (val >> 16)); in bdisp_dbg_dump_xy()
165 static void bdisp_dbg_dump_sz(struct seq_file *s, u32 val, char *name) in bdisp_dbg_dump_sz() argument
167 seq_printf(s, "%s\t0x%08X\t", name, val); in bdisp_dbg_dump_sz()
168 seq_printf(s, "%dx%d\n", val & 0x1FFF, (val >> 16) & 0x1FFF); in bdisp_dbg_dump_sz()
171 static void bdisp_dbg_dump_sty(struct seq_file *s, in bdisp_dbg_dump_sty() argument
176 seq_printf(s, "%s\t0x%08X\t", name, val); in bdisp_dbg_dump_sty()
185 seq_printf(s, "Pitch=%d - ", val & 0xFFFF); in bdisp_dbg_dump_sty()
189 seq_puts(s, "RGB565 - "); in bdisp_dbg_dump_sty()
192 seq_puts(s, "RGB888 - "); in bdisp_dbg_dump_sty()
195 seq_puts(s, "xRGB888 - "); in bdisp_dbg_dump_sty()
198 seq_puts(s, "ARGB888 - "); in bdisp_dbg_dump_sty()
201 seq_puts(s, "NV12 - "); in bdisp_dbg_dump_sty()
204 seq_puts(s, "YUV420P - "); in bdisp_dbg_dump_sty()
207 seq_puts(s, "ColorFormat ??? - "); in bdisp_dbg_dump_sty()
212 seq_puts(s, "AlphaRange - "); in bdisp_dbg_dump_sty()
214 seq_puts(s, "A1SubSet - "); in bdisp_dbg_dump_sty()
216 seq_puts(s, "MB - "); in bdisp_dbg_dump_sty()
218 seq_puts(s, "HSO inverse - "); in bdisp_dbg_dump_sty()
220 seq_puts(s, "VSO inverse - "); in bdisp_dbg_dump_sty()
222 seq_puts(s, "ChromaExt - "); in bdisp_dbg_dump_sty()
224 seq_puts(s, "Blank Acc - "); in bdisp_dbg_dump_sty()
226 seq_puts(s, "SubByte - "); in bdisp_dbg_dump_sty()
228 seq_puts(s, "RGBExpand - "); in bdisp_dbg_dump_sty()
230 seq_puts(s, "BigEndian - "); in bdisp_dbg_dump_sty()
233 seq_putc(s, '\n'); in bdisp_dbg_dump_sty()
236 static void bdisp_dbg_dump_fctl(struct seq_file *s, u32 val) in bdisp_dbg_dump_fctl() argument
238 seq_printf(s, "FCTL\t0x%08X\t", val); in bdisp_dbg_dump_fctl()
241 seq_puts(s, "Resize Luma - "); in bdisp_dbg_dump_fctl()
243 seq_puts(s, "Sample Luma - "); in bdisp_dbg_dump_fctl()
246 seq_puts(s, "Resize Chroma"); in bdisp_dbg_dump_fctl()
248 seq_puts(s, "Sample Chroma"); in bdisp_dbg_dump_fctl()
250 seq_putc(s, '\n'); in bdisp_dbg_dump_fctl()
253 static void bdisp_dbg_dump_rsf(struct seq_file *s, u32 val, char *name) in bdisp_dbg_dump_rsf() argument
257 seq_printf(s, "%s\t0x%08X\t", name, val); in bdisp_dbg_dump_rsf()
263 seq_printf(s, "H: %d(6.10) / scale~%dx0.1 - ", inc, 1024 * 10 / inc); in bdisp_dbg_dump_rsf()
266 seq_printf(s, "V: %d(6.10) / scale~%dx0.1", inc, 1024 * 10 / inc); in bdisp_dbg_dump_rsf()
269 seq_putc(s, '\n'); in bdisp_dbg_dump_rsf()
272 static void bdisp_dbg_dump_rzi(struct seq_file *s, u32 val, char *name) in bdisp_dbg_dump_rzi() argument
274 seq_printf(s, "%s\t0x%08X\t", name, val); in bdisp_dbg_dump_rzi()
279 seq_printf(s, "H: init=%d repeat=%d - ", val & 0x3FF, (val >> 12) & 7); in bdisp_dbg_dump_rzi()
281 seq_printf(s, "V: init=%d repeat=%d", val & 0x3FF, (val >> 12) & 7); in bdisp_dbg_dump_rzi()
284 seq_putc(s, '\n'); in bdisp_dbg_dump_rzi()
287 static void bdisp_dbg_dump_ivmx(struct seq_file *s, in bdisp_dbg_dump_ivmx() argument
290 seq_printf(s, "IVMX0\t0x%08X\n", c0); in bdisp_dbg_dump_ivmx()
291 seq_printf(s, "IVMX1\t0x%08X\n", c1); in bdisp_dbg_dump_ivmx()
292 seq_printf(s, "IVMX2\t0x%08X\n", c2); in bdisp_dbg_dump_ivmx()
293 seq_printf(s, "IVMX3\t0x%08X\t", c3); in bdisp_dbg_dump_ivmx()
296 seq_putc(s, '\n'); in bdisp_dbg_dump_ivmx()
304 seq_puts(s, "RGB to YUV\n"); in bdisp_dbg_dump_ivmx()
312 seq_puts(s, "YUV to RGB\n"); in bdisp_dbg_dump_ivmx()
315 seq_puts(s, "Unknown conversion\n"); in bdisp_dbg_dump_ivmx()
318 static int last_nodes_show(struct seq_file *s, void *data) in last_nodes_show() argument
321 struct bdisp_dev *bdisp = s->private; in last_nodes_show()
326 seq_puts(s, "No node built yet\n"); in last_nodes_show()
334 seq_printf(s, "--------\nNode %d:\n", i); in last_nodes_show()
335 seq_puts(s, "-- General --\n"); in last_nodes_show()
336 seq_printf(s, "NIP\t0x%08X\n", node->nip); in last_nodes_show()
337 seq_printf(s, "CIC\t0x%08X\n", node->cic); in last_nodes_show()
338 bdisp_dbg_dump_ins(s, node->ins); in last_nodes_show()
339 seq_printf(s, "ACK\t0x%08X\n", node->ack); in last_nodes_show()
340 seq_puts(s, "-- Target --\n"); in last_nodes_show()
341 seq_printf(s, "TBA\t0x%08X\n", node->tba); in last_nodes_show()
342 bdisp_dbg_dump_tty(s, node->tty); in last_nodes_show()
343 bdisp_dbg_dump_xy(s, node->txy, "TXY"); in last_nodes_show()
344 bdisp_dbg_dump_sz(s, node->tsz, "TSZ"); in last_nodes_show()
346 seq_puts(s, "-- Source 1 --\n"); in last_nodes_show()
347 seq_printf(s, "S1BA\t0x%08X\n", node->s1ba); in last_nodes_show()
348 bdisp_dbg_dump_sty(s, node->s1ty, node->s1ba, "S1TY"); in last_nodes_show()
349 bdisp_dbg_dump_xy(s, node->s1xy, "S1XY"); in last_nodes_show()
350 seq_puts(s, "-- Source 2 --\n"); in last_nodes_show()
351 seq_printf(s, "S2BA\t0x%08X\n", node->s2ba); in last_nodes_show()
352 bdisp_dbg_dump_sty(s, node->s2ty, node->s2ba, "S2TY"); in last_nodes_show()
353 bdisp_dbg_dump_xy(s, node->s2xy, "S2XY"); in last_nodes_show()
354 bdisp_dbg_dump_sz(s, node->s2sz, "S2SZ"); in last_nodes_show()
355 seq_puts(s, "-- Source 3 --\n"); in last_nodes_show()
356 seq_printf(s, "S3BA\t0x%08X\n", node->s3ba); in last_nodes_show()
357 bdisp_dbg_dump_sty(s, node->s3ty, node->s3ba, "S3TY"); in last_nodes_show()
358 bdisp_dbg_dump_xy(s, node->s3xy, "S3XY"); in last_nodes_show()
359 bdisp_dbg_dump_sz(s, node->s3sz, "S3SZ"); in last_nodes_show()
362 seq_puts(s, "-- Filter & Mask --\n"); in last_nodes_show()
363 bdisp_dbg_dump_fctl(s, node->fctl); in last_nodes_show()
365 seq_puts(s, "-- Chroma Filter --\n"); in last_nodes_show()
366 bdisp_dbg_dump_rsf(s, node->rsf, "RSF"); in last_nodes_show()
367 bdisp_dbg_dump_rzi(s, node->rzi, "RZI"); in last_nodes_show()
368 seq_printf(s, "HFP\t0x%08X\n", node->hfp); in last_nodes_show()
369 seq_printf(s, "VFP\t0x%08X\n", node->vfp); in last_nodes_show()
370 seq_puts(s, "-- Luma Filter --\n"); in last_nodes_show()
371 bdisp_dbg_dump_rsf(s, node->y_rsf, "Y_RSF"); in last_nodes_show()
372 bdisp_dbg_dump_rzi(s, node->y_rzi, "Y_RZI"); in last_nodes_show()
373 seq_printf(s, "Y_HFP\t0x%08X\n", node->y_hfp); in last_nodes_show()
374 seq_printf(s, "Y_VFP\t0x%08X\n", node->y_vfp); in last_nodes_show()
379 seq_puts(s, "-- Input Versatile Matrix --\n"); in last_nodes_show()
380 bdisp_dbg_dump_ivmx(s, node->ivmx0, node->ivmx1, in last_nodes_show()
391 static int last_nodes_raw_show(struct seq_file *s, void *data) in last_nodes_raw_show() argument
393 struct bdisp_dev *bdisp = s->private; in last_nodes_raw_show()
399 seq_puts(s, "No node built yet\n"); in last_nodes_raw_show()
408 seq_printf(s, "--------\nNode %d:\n", i); in last_nodes_raw_show()
411 seq_printf(s, "0x%08X\n", *val++); in last_nodes_raw_show()
440 static int last_request_show(struct seq_file *s, void *data) in last_request_show() argument
442 struct bdisp_dev *bdisp = s->private; in last_request_show()
447 seq_puts(s, "No request\n"); in last_request_show()
454 seq_printf(s, "\nRequest #%d\n", request->nb_req); in last_request_show()
456 seq_printf(s, "Format: %s\t\t\t%s\n", in last_request_show()
458 seq_printf(s, "Crop area: %dx%d @ %d,%d ==>\t%dx%d @ %d,%d\n", in last_request_show()
463 seq_printf(s, "Buff size: %dx%d\t\t%dx%d\n\n", in last_request_show()
467 seq_puts(s, "Horizontal flip\n\n"); in last_request_show()
470 seq_puts(s, "Vertical flip\n\n"); in last_request_show()
475 #define DUMP(reg) seq_printf(s, #reg " \t0x%08X\n", readl(bdisp->regs + reg))
477 static int regs_show(struct seq_file *s, void *data) in regs_show() argument
479 struct bdisp_dev *bdisp = s->private; in regs_show()
485 seq_puts(s, "Cannot wake up IP\n"); in regs_show()
489 seq_printf(s, "Reg @ = 0x%p\n", bdisp->regs); in regs_show()
491 seq_puts(s, "\nStatic:\n"); in regs_show()
501 seq_puts(s, "\nPlugs:\n"); in regs_show()
519 seq_puts(s, "\nNode:\n"); in regs_show()
558 seq_puts(s, "\nFilter:\n"); in regs_show()
560 seq_printf(s, "BLT_HFC%d \t0x%08X\n", i, in regs_show()
564 seq_printf(s, "BLT_VFC%d \t0x%08X\n", i, in regs_show()
568 seq_puts(s, "\nLuma filter:\n"); in regs_show()
570 seq_printf(s, "BLT_Y_HFC%d \t0x%08X\n", i, in regs_show()
574 seq_printf(s, "BLT_Y_VFC%d \t0x%08X\n", i, in regs_show()
585 static int perf_show(struct seq_file *s, void *data) in perf_show() argument
587 struct bdisp_dev *bdisp = s->private; in perf_show()
593 seq_puts(s, "No request\n"); in perf_show()
618 seq_printf(s, "HW processing (%d requests):\n", request->nb_req); in perf_show()
619 seq_printf(s, " Average: %5lld us (%3d fps)\n", in perf_show()
621 seq_printf(s, " Min-Max: %5lld us (%3d fps) - %5lld us (%3d fps)\n", in perf_show()
624 seq_printf(s, " Last: %5lld us (%3d fps)\n", in perf_show()
644 snprintf(dirname, sizeof(dirname), "%s%d", BDISP_NAME, bdisp->id); in bdisp_debugfs_create()