• Home
  • Raw
  • Download

Lines Matching refs:pcons

11 static void lcd_putc_xy90(struct console_t *pcons, ushort x, ushort y, char c)  in lcd_putc_xy90()  argument
17 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in lcd_putc_xy90()
18 (x+1) * pcons->lcdsizex - in lcd_putc_xy90()
27 dst += (pcons->lcdsizex + VIDEO_FONT_HEIGHT); in lcd_putc_xy90()
31 static inline void console_setrow90(struct console_t *pcons, u32 row, int clr) in console_setrow90() argument
34 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in console_setrow90()
35 pcons->lcdsizex - in console_setrow90()
38 for (j = 0; j < pcons->lcdsizey; j++) { in console_setrow90()
41 dst += (pcons->lcdsizex + VIDEO_FONT_HEIGHT); in console_setrow90()
45 static inline void console_moverow90(struct console_t *pcons, in console_moverow90() argument
49 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in console_moverow90()
50 pcons->lcdsizex - in console_moverow90()
53 fbptr_t *src = (fbptr_t *)pcons->fbbase + in console_moverow90()
54 pcons->lcdsizex - in console_moverow90()
57 for (j = 0; j < pcons->lcdsizey; j++) { in console_moverow90()
60 src += (pcons->lcdsizex + VIDEO_FONT_HEIGHT); in console_moverow90()
61 dst += (pcons->lcdsizex + VIDEO_FONT_HEIGHT); in console_moverow90()
64 static void lcd_putc_xy180(struct console_t *pcons, ushort x, ushort y, char c) in lcd_putc_xy180() argument
69 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in lcd_putc_xy180()
70 pcons->lcdsizex + in lcd_putc_xy180()
71 pcons->lcdsizey * pcons->lcdsizex - in lcd_putc_xy180()
72 y * pcons->lcdsizex - in lcd_putc_xy180()
82 dst -= (pcons->lcdsizex - VIDEO_FONT_WIDTH); in lcd_putc_xy180()
86 static inline void console_setrow180(struct console_t *pcons, u32 row, int clr) in console_setrow180() argument
89 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in console_setrow180()
90 (pcons->rows-row-1) * VIDEO_FONT_HEIGHT * in console_setrow180()
91 pcons->lcdsizex; in console_setrow180()
93 for (i = 0; i < (VIDEO_FONT_HEIGHT * pcons->lcdsizex); i++) in console_setrow180()
97 static inline void console_moverow180(struct console_t *pcons, in console_moverow180() argument
101 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in console_moverow180()
102 (pcons->rows-rowdst-1) * VIDEO_FONT_HEIGHT * in console_moverow180()
103 pcons->lcdsizex; in console_moverow180()
105 fbptr_t *src = (fbptr_t *)pcons->fbbase + in console_moverow180()
106 (pcons->rows-rowsrc-1) * VIDEO_FONT_HEIGHT * in console_moverow180()
107 pcons->lcdsizex; in console_moverow180()
109 for (i = 0; i < (VIDEO_FONT_HEIGHT * pcons->lcdsizex); i++) in console_moverow180()
113 static void lcd_putc_xy270(struct console_t *pcons, ushort x, ushort y, char c) in lcd_putc_xy270() argument
118 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in lcd_putc_xy270()
119 pcons->lcdsizey * pcons->lcdsizex - in lcd_putc_xy270()
120 (x+1) * pcons->lcdsizex + in lcd_putc_xy270()
129 dst -= (pcons->lcdsizex + VIDEO_FONT_HEIGHT); in lcd_putc_xy270()
133 static inline void console_setrow270(struct console_t *pcons, u32 row, int clr) in console_setrow270() argument
136 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in console_setrow270()
139 for (j = 0; j < pcons->lcdsizey; j++) { in console_setrow270()
142 dst += (pcons->lcdsizex - VIDEO_FONT_HEIGHT); in console_setrow270()
146 static inline void console_moverow270(struct console_t *pcons, in console_moverow270() argument
150 fbptr_t *dst = (fbptr_t *)pcons->fbbase + in console_moverow270()
153 fbptr_t *src = (fbptr_t *)pcons->fbbase + in console_moverow270()
156 for (j = 0; j < pcons->lcdsizey; j++) { in console_moverow270()
159 src += (pcons->lcdsizex - VIDEO_FONT_HEIGHT); in console_moverow270()
160 dst += (pcons->lcdsizex - VIDEO_FONT_HEIGHT); in console_moverow270()
164 static void console_calc_rowcol_rot(struct console_t *pcons) in console_calc_rowcol_rot() argument
166 if (pcons->lcdrot == 1 || pcons->lcdrot == 3) in console_calc_rowcol_rot()
167 console_calc_rowcol(pcons, pcons->lcdsizey, pcons->lcdsizex); in console_calc_rowcol_rot()
169 console_calc_rowcol(pcons, pcons->lcdsizex, pcons->lcdsizey); in console_calc_rowcol_rot()
172 void lcd_init_console_rot(struct console_t *pcons) in lcd_init_console_rot() argument
174 if (pcons->lcdrot == 0) { in lcd_init_console_rot()
176 } else if (pcons->lcdrot == 1) { in lcd_init_console_rot()
177 pcons->fp_putc_xy = &lcd_putc_xy90; in lcd_init_console_rot()
178 pcons->fp_console_moverow = &console_moverow90; in lcd_init_console_rot()
179 pcons->fp_console_setrow = &console_setrow90; in lcd_init_console_rot()
180 } else if (pcons->lcdrot == 2) { in lcd_init_console_rot()
181 pcons->fp_putc_xy = &lcd_putc_xy180; in lcd_init_console_rot()
182 pcons->fp_console_moverow = &console_moverow180; in lcd_init_console_rot()
183 pcons->fp_console_setrow = &console_setrow180; in lcd_init_console_rot()
184 } else if (pcons->lcdrot == 3) { in lcd_init_console_rot()
185 pcons->fp_putc_xy = &lcd_putc_xy270; in lcd_init_console_rot()
186 pcons->fp_console_moverow = &console_moverow270; in lcd_init_console_rot()
187 pcons->fp_console_setrow = &console_setrow270; in lcd_init_console_rot()
190 __func__, pcons->lcdrot); in lcd_init_console_rot()
193 console_calc_rowcol_rot(pcons); in lcd_init_console_rot()