Lines Matching refs:fb
166 struct hpcfb_fbconf *fb = &sc->sc_fb;
168 if (offset < 0 || (fb->hf_bytes_per_plane + fb->hf_offset) < offset)
175 epsonlcd_setup_hpcfbif(struct epsonlcd_softc *sc, struct hpcfb_fbconf *fb)
179 memset(fb, 0, sizeof(struct hpcfb_fbconf));
180 fb->hf_conf_index = 0; /* configuration index */
181 fb->hf_nconfs = 1; /* how many configurations */
183 strncpy(fb->hf_name, "Epson S1D138xx LCD Controller", HPCFB_MAXNAMELEN);
186 strncpy(fb->hf_conf_name, "LCD", HPCFB_MAXNAMELEN);
188 fb->hf_height = vc->vc_fbheight;
189 fb->hf_width = vc->vc_fbwidth;
190 fb->hf_baseaddr = vc->vc_fbvaddr;
192 fb->hf_offset = vc->vc_fbvaddr - arm_ptob(arm_btop(vc->vc_fbvaddr));
194 fb->hf_bytes_per_line = (vc->vc_fbwidth * vc->vc_fbdepth) / NBBY;
195 fb->hf_nplanes = 1;
196 fb->hf_bytes_per_plane = vc->vc_fbheight * fb->hf_bytes_per_line;
198 fb->hf_access_flags |= HPCFB_ACCESS_BYTE;
199 fb->hf_access_flags |= HPCFB_ACCESS_WORD;
200 fb->hf_access_flags |= HPCFB_ACCESS_DWORD;
202 fb->hf_access_flags |= HPCFB_ACCESS_REVERSE;
211 fb->hf_class = HPCFB_CLASS_RGBCOLOR;
212 fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
213 fb->hf_order_flags = HPCFB_REVORDER_BYTE;
214 fb->hf_pack_width = 16;
215 fb->hf_pixels_per_pack = 1;
216 fb->hf_pixel_width = 16;
218 fb->hf_class_data_length = sizeof(struct hf_rgb_tag);
220 fb->hf_u.hf_rgb.hf_flags = 0;
222 fb->hf_u.hf_rgb.hf_red_width = 5;
223 fb->hf_u.hf_rgb.hf_red_shift = 11;
224 fb->hf_u.hf_rgb.hf_green_width = 6;
225 fb->hf_u.hf_rgb.hf_green_shift = 5;
226 fb->hf_u.hf_rgb.hf_blue_width = 5;
227 fb->hf_u.hf_rgb.hf_blue_shift = 0;
228 fb->hf_u.hf_rgb.hf_alpha_width = 0;
229 fb->hf_u.hf_rgb.hf_alpha_shift = 0;
233 fb->hf_class = HPCFB_CLASS_INDEXCOLOR;
234 fb->hf_access_flags |= HPCFB_ACCESS_STATIC;
235 fb->hf_pack_width = 8;
236 fb->hf_pixels_per_pack = 1;
237 fb->hf_pixel_width = 8;
239 fb->hf_class_data_length = sizeof(struct hf_indexed_tag);
241 fb->hf_u.hf_indexed.hf_flags = 0;