Home | History | Annotate | Download | only in hpc

Lines Matching refs:vc

62 	u_int32_t fbaddr = vc->vc_fbvaddr;				\
63 u_int32_t fbwidth = vc->vc_fbwidth; \
64 u_int32_t fbdepth = vc->vc_fbdepth; \
116 linebpp##b(struct video_chip *vc, int x0, int y0, int x1, int y1) \
133 dotbpp##b(struct video_chip *vc, int x, int y) \
136 addr = vc->vc_fbvaddr + (((y * vc->vc_fbwidth + x) * \
137 vc->vc_fbdepth) >> 3); \
219 video_calibration_pattern(struct video_chip *vc)
223 x = vc->vc_fbwidth - 40;
224 y = vc->vc_fbheight - 40;
225 video_line(vc, 40, 40, x , 40);
226 video_line(vc, x , 40, x , y );
227 video_line(vc, x , y , 40, y );
228 video_line(vc, 40, y , 40, 40);
229 video_line(vc, 40, 40, x , y );
230 video_line(vc, x, 40, 40, y );
234 linebpp_unimpl(struct video_chip *vc,
243 dotbpp_unimpl(struct video_chip *vc, int x, int y)
250 video_attach_drawfunc(struct video_chip *vc)
252 switch (vc->vc_fbdepth) {
254 vc->vc_drawline = linebpp_unimpl;
255 vc->vc_drawdot = dotbpp_unimpl;
258 vc->vc_drawline = linebpp8;
259 vc->vc_drawdot = dotbpp8;
262 vc->vc_drawline = linebpp4;
263 vc->vc_drawdot = dotbpp4;
266 vc->vc_drawline = linebpp2;
267 vc->vc_drawdot = dotbpp2;
273 video_line(struct video_chip *vc, int x0, int y0, int x1, int y1)
275 if (vc->vc_drawline)
276 vc->vc_drawline(vc, x0, y0, x1, y1);
280 video_dot(struct video_chip *vc, int x, int y)
282 if (vc->vc_drawdot)
283 vc->vc_drawdot(vc, x, y);