Lines Matching refs:vc
177 struct video_chip *vc = &sc->sc_vc; in epsonlcd_setup_hpcfbif() local
188 fb->hf_height = vc->vc_fbheight; in epsonlcd_setup_hpcfbif()
189 fb->hf_width = vc->vc_fbwidth; in epsonlcd_setup_hpcfbif()
190 fb->hf_baseaddr = vc->vc_fbvaddr; in epsonlcd_setup_hpcfbif()
192 fb->hf_offset = vc->vc_fbvaddr - arm_ptob(arm_btop(vc->vc_fbvaddr)); in epsonlcd_setup_hpcfbif()
194 fb->hf_bytes_per_line = (vc->vc_fbwidth * vc->vc_fbdepth) / NBBY; in epsonlcd_setup_hpcfbif()
196 fb->hf_bytes_per_plane = vc->vc_fbheight * fb->hf_bytes_per_line; in epsonlcd_setup_hpcfbif()
201 if (vc->vc_reverse) in epsonlcd_setup_hpcfbif()
204 switch (vc->vc_fbdepth) { in epsonlcd_setup_hpcfbif()
207 __func__, vc->vc_fbdepth); in epsonlcd_setup_hpcfbif()
247 epsonlcd_get_video_chip(struct epsonlcd_softc *sc, struct video_chip *vc) in epsonlcd_get_video_chip() argument
252 vc->vc_fbvaddr = BSH2VADDR(sc->sc_fbh); in epsonlcd_get_video_chip()
253 vc->vc_fbpaddr = sc->sc_fbaddr; in epsonlcd_get_video_chip()
254 vc->vc_fbsize = S1D138XX_FRAMEBUFFER_SIZE; in epsonlcd_get_video_chip()
255 vc->vc_fbdepth = (bootinfo->fb_line_bytes / bootinfo->fb_width) * NBBY; in epsonlcd_get_video_chip()
256 vc->vc_fbwidth = bootinfo->fb_width; in epsonlcd_get_video_chip()
257 vc->vc_fbheight = bootinfo->fb_height; in epsonlcd_get_video_chip()
258 vc->vc_reverse = video_reverse_color(); in epsonlcd_get_video_chip()