Lines Matching refs:vid_priv
16 struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent); in console_set_row_1() local
17 int pbytes = VNBYTES(vid_priv->bpix); in console_set_row_1()
21 line = vid_priv->fb + vid_priv->line_length - in console_set_row_1()
23 for (j = 0; j < vid_priv->ysize; j++) { in console_set_row_1()
24 switch (vid_priv->bpix) { in console_set_row_1()
55 line += vid_priv->line_length; in console_set_row_1()
64 struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent); in console_move_rows_1() local
67 int pbytes = VNBYTES(vid_priv->bpix); in console_move_rows_1()
70 dst = vid_priv->fb + vid_priv->line_length - in console_move_rows_1()
72 src = vid_priv->fb + vid_priv->line_length - in console_move_rows_1()
75 for (j = 0; j < vid_priv->ysize; j++) { in console_move_rows_1()
77 src += vid_priv->line_length; in console_move_rows_1()
78 dst += vid_priv->line_length; in console_move_rows_1()
88 struct video_priv *vid_priv = dev_get_uclass_priv(vid); in console_putc_xy_1() local
89 int pbytes = VNBYTES(vid_priv->bpix); in console_putc_xy_1()
95 line = vid_priv->fb + (VID_TO_PIXEL(x_frac) + 1) * in console_putc_xy_1()
96 vid_priv->line_length - (y + 1) * pbytes; in console_putc_xy_1()
101 switch (vid_priv->bpix) { in console_putc_xy_1()
107 *dst-- = (pfont[i] & mask) ? vid_priv->colour_fg in console_putc_xy_1()
108 : vid_priv->colour_bg; in console_putc_xy_1()
118 *dst-- = (pfont[i] & mask) ? vid_priv->colour_fg in console_putc_xy_1()
119 : vid_priv->colour_bg; in console_putc_xy_1()
129 *dst-- = (pfont[i] & mask) ? vid_priv->colour_fg in console_putc_xy_1()
130 : vid_priv->colour_bg; in console_putc_xy_1()
138 line += vid_priv->line_length; in console_putc_xy_1()
148 struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent); in console_set_row_2() local
150 int pixels = VIDEO_FONT_HEIGHT * vid_priv->xsize; in console_set_row_2()
153 line = vid_priv->fb + vid_priv->ysize * vid_priv->line_length - in console_set_row_2()
154 (row + 1) * VIDEO_FONT_HEIGHT * vid_priv->line_length; in console_set_row_2()
155 switch (vid_priv->bpix) { in console_set_row_2()
193 struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent); in console_move_rows_2() local
198 end = vid_priv->fb + vid_priv->ysize * vid_priv->line_length; in console_move_rows_2()
200 vid_priv->line_length; in console_move_rows_2()
202 vid_priv->line_length; in console_move_rows_2()
203 memmove(dst, src, VIDEO_FONT_HEIGHT * vid_priv->line_length * count); in console_move_rows_2()
212 struct video_priv *vid_priv = dev_get_uclass_priv(vid); in console_putc_xy_2() local
219 line = vid_priv->fb + (vid_priv->ysize - y - 1) * in console_putc_xy_2()
220 vid_priv->line_length + in console_putc_xy_2()
221 (vid_priv->xsize - VID_TO_PIXEL(x_frac) - in console_putc_xy_2()
222 VIDEO_FONT_WIDTH - 1) * VNBYTES(vid_priv->bpix); in console_putc_xy_2()
227 switch (vid_priv->bpix) { in console_putc_xy_2()
233 *dst-- = (bits & 0x80) ? vid_priv->colour_fg in console_putc_xy_2()
234 : vid_priv->colour_bg; in console_putc_xy_2()
245 *dst-- = (bits & 0x80) ? vid_priv->colour_fg in console_putc_xy_2()
246 : vid_priv->colour_bg; in console_putc_xy_2()
257 *dst-- = (bits & 0x80) ? vid_priv->colour_fg in console_putc_xy_2()
258 : vid_priv->colour_bg; in console_putc_xy_2()
267 line -= vid_priv->line_length; in console_putc_xy_2()
275 struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent); in console_set_row_3() local
276 int pbytes = VNBYTES(vid_priv->bpix); in console_set_row_3()
280 line = vid_priv->fb + row * VIDEO_FONT_HEIGHT * pbytes; in console_set_row_3()
281 for (j = 0; j < vid_priv->ysize; j++) { in console_set_row_3()
282 switch (vid_priv->bpix) { in console_set_row_3()
313 line += vid_priv->line_length; in console_set_row_3()
322 struct video_priv *vid_priv = dev_get_uclass_priv(dev->parent); in console_move_rows_3() local
325 int pbytes = VNBYTES(vid_priv->bpix); in console_move_rows_3()
328 dst = vid_priv->fb + rowdst * VIDEO_FONT_HEIGHT * pbytes; in console_move_rows_3()
329 src = vid_priv->fb + rowsrc * VIDEO_FONT_HEIGHT * pbytes; in console_move_rows_3()
331 for (j = 0; j < vid_priv->ysize; j++) { in console_move_rows_3()
333 src += vid_priv->line_length; in console_move_rows_3()
334 dst += vid_priv->line_length; in console_move_rows_3()
344 struct video_priv *vid_priv = dev_get_uclass_priv(vid); in console_putc_xy_3() local
345 int pbytes = VNBYTES(vid_priv->bpix); in console_putc_xy_3()
348 void *line = vid_priv->fb + in console_putc_xy_3()
349 (vid_priv->ysize - VID_TO_PIXEL(x_frac) - 1) * in console_putc_xy_3()
350 vid_priv->line_length + y * pbytes; in console_putc_xy_3()
357 switch (vid_priv->bpix) { in console_putc_xy_3()
363 *dst++ = (pfont[i] & mask) ? vid_priv->colour_fg in console_putc_xy_3()
364 : vid_priv->colour_bg; in console_putc_xy_3()
374 *dst++ = (pfont[i] & mask) ? vid_priv->colour_fg in console_putc_xy_3()
375 : vid_priv->colour_bg; in console_putc_xy_3()
385 *dst++ = (pfont[i] & mask) ? vid_priv->colour_fg in console_putc_xy_3()
386 : vid_priv->colour_bg; in console_putc_xy_3()
394 line -= vid_priv->line_length; in console_putc_xy_3()
406 struct video_priv *vid_priv = dev_get_uclass_priv(vid_dev); in console_probe_2() local
410 vc_priv->cols = vid_priv->xsize / VIDEO_FONT_WIDTH; in console_probe_2()
411 vc_priv->rows = vid_priv->ysize / VIDEO_FONT_HEIGHT; in console_probe_2()
420 struct video_priv *vid_priv = dev_get_uclass_priv(vid_dev); in console_probe_1_3() local
424 vc_priv->cols = vid_priv->ysize / VIDEO_FONT_WIDTH; in console_probe_1_3()
425 vc_priv->rows = vid_priv->xsize / VIDEO_FONT_HEIGHT; in console_probe_1_3()
426 vc_priv->xsize_frac = VID_TO_POS(vid_priv->ysize); in console_probe_1_3()