Home
last modified time | relevance | path

Searched refs:sc_cols (Results 1 – 5 of 5) sorted by relevance

/netbsd/src/sys/dev/ic/
Dhd44780_subr.c56 #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 …]
Dhd44780var.h103 uint8_t sc_cols; /* visible columns */ member
/netbsd/src/sys/dev/i2c/
Dtcakp.c95 u_int sc_cols; member
202 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()
/netbsd/src/sys/arch/evbarm/tsarm/
Dtslcd.c148 sc->sc_hlcd.sc_cols = 24; in tslcd_attach()
/netbsd/src/sys/arch/cobalt/dev/
Dlcdpanel.c160 sc->sc_lcd.sc_cols = LCDPANEL_COLS; in lcdpanel_attach()