Lines Matching refs:sc_p
281 sc->sc_p = p;
293 sc->sc_contrast = sc->sc_p->p_default_contrast;
294 sc->sc_gddram_len = sc->sc_p->p_width * sc->sc_p->p_height
295 * sc->sc_p->p_bits_per_pixel / 8;
300 aprint_normal_dev(sc->sc_dev, "%dx%d%s\n", sc->sc_p->p_width,
301 sc->sc_p->p_height, sc->sc_is_console ? ", console" : "");
316 ri->ri_depth = sc->sc_p->p_bits_per_pixel;
318 if (sc->sc_p->p_rgb && sc->sc_p->p_bits_per_pixel == 32) {
319 ri->ri_depth = sc->sc_p->p_bits_per_pixel;
337 ri->ri_width = sc->sc_p->p_width;
338 ri->ri_height = sc->sc_p->p_height;
342 if (!sc->sc_p->p_rgb) {
352 sc->sc_p->p_height / sc->sc_font->fontheight,
353 sc->sc_p->p_width / sc->sc_font->fontwidth);
357 if (!sc->sc_p->p_rgb) {
478 int cmaplen = 1 << sc->sc_p->p_bits_per_pixel;
498 if (!sc->sc_p->p_rgb) {
558 if (sc->sc_p->p_rgb)
719 SSDFB_CMD2(SSDFB_CMD_SET_MULTIPLEX_RATIO, sc->sc_p->p_multiplex_ratio);
728 SSDFB_CMD2(SSDFB_CMD_SET_COM_PINS_HARDWARE_CFG, sc->sc_p->p_compin_cfg);
754 __SHIFTIN(sc->sc_p->p_fosc, SSDFB_DISPLAY_CLOCK_OSCILLATOR_MASK) |
755 __SHIFTIN(sc->sc_p->p_fosc_div, SSDFB_DISPLAY_CLOCK_DIVIDER_MASK));
762 __SHIFTIN(sc->sc_p->p_precharge, SSDFB_PRECHARGE_MASK) |
763 __SHIFTIN(sc->sc_p->p_discharge, SSDFB_DISCHARGE_MASK));
767 sc->sc_p->p_vcomh_deselect_level);
774 if (sc->sc_p->p_controller_id == SSDFB_CONTROLLER_SH1106) {
789 error = sc->sc_p->p_sync(sc, usepoll);
823 SSDFB_CMD2(SSD1322_CMD_SET_VCOMH, sc->sc_p->p_vcomh_deselect_level);
839 __SHIFTIN(sc->sc_p->p_fosc, SSD1322_FREQUENCY_MASK) |
840 __SHIFTIN(sc->sc_p->p_fosc_div, SSD1322_DIVIDER_MASK));
858 SSDFB_CMD2(SSD1322_CMD_SET_MULTIPLEX_RATIO, sc->sc_p->p_multiplex_ratio);
866 if (sc->sc_p->p_multiplex_ratio <= 63)
950 SSDFB_CMD2(SSD1353_CMD_SET_VCOMH, sc->sc_p->p_vcomh_deselect_level);
962 __SHIFTIN(sc->sc_p->p_fosc, SSD1322_FREQUENCY_MASK) |
963 __SHIFTIN(sc->sc_p->p_fosc_div, SSD1322_DIVIDER_MASK));
985 SSDFB_CMD2(SSD1353_CMD_SET_MULTIPLEX_RATIO, sc->sc_p->p_multiplex_ratio);
988 remap = sc->sc_p->p_compin_cfg;
1049 switch (sc->sc_p->p_controller_id) {
1248 return sc->sc_p->p_sync(sc, usepoll);
1257 int height_in_blocks = sc->sc_p->p_height / block_size;
1258 int width_in_blocks = sc->sc_p->p_width / block_size;
1296 x1 * block_size + sc->sc_p->p_panel_shift,
1297 (x2 + 1) * block_size - 1 + sc->sc_p->p_panel_shift,
1301 sc->sc_p->p_width,
1312 int width = sc->sc_p->p_width;
1313 int height = sc->sc_p->p_height;
1374 x1 + sc->sc_p->p_panel_shift,
1375 x2 + sc->sc_p->p_panel_shift,
1379 width * sc->sc_p->p_bits_per_pixel / 8,
1387 int width = sc->sc_p->p_width;
1388 int height = sc->sc_p->p_height;
1425 x1 + sc->sc_p->p_panel_shift,
1426 x2 + sc->sc_p->p_panel_shift,
1430 width * sc->sc_p->p_bits_per_pixel / 8,