Searched refs:sc_cols (Results 1 – 5 of 5) sorted by relevance
56 #define COORD_TO_IDX(x, y) ((y) * sc->sc_cols + (x))58 #define IDX_TO_ROW(idx) ((idx) / sc->sc_cols)59 #define IDX_TO_COL(idx) ((idx) % sc->sc_cols)135 hdscr->image[hdscr->hlcd_sc->sc_cols * row + col] = c; in hlcd_putchar()148 if ((dstcol + ncols - 1) > hdscr->hlcd_sc->sc_cols) in hlcd_copycols()149 ncols = hdscr->hlcd_sc->sc_cols - srccol; in hlcd_copycols()152 memmove(&hdscr->image[hdscr->hlcd_sc->sc_cols * row + dstcol], in hlcd_copycols()153 &hdscr->image[hdscr->hlcd_sc->sc_cols * row + srccol], in hlcd_copycols()168 if ((startcol + ncols) > hdscr->hlcd_sc->sc_cols) in hlcd_erasecols()169 ncols = hdscr->hlcd_sc->sc_cols - startcol; in hlcd_erasecols()[all …]
103 uint8_t sc_cols; /* visible columns */ member
95 u_int sc_cols; member202 if (sc->sc_rows == 0 || sc->sc_cols == 0) { in tcakp_init()208 mask += __BITS(sc->sc_cols - 1, 0) << 8; in tcakp_init()242 of_getprop_uint32(sc->sc_phandle, "keypad,num-columns", &sc->sc_cols); in tcakp_configure_fdt()249 sc->sc_row_shift = fls32(sc->sc_cols) - 1; in tcakp_configure_fdt()250 if (sc->sc_row_shift & (sc->sc_cols - 1)) in tcakp_configure_fdt()
148 sc->sc_hlcd.sc_cols = 24; in tslcd_attach()
160 sc->sc_lcd.sc_cols = LCDPANEL_COLS; in lcdpanel_attach()