Lines Matching refs:fg
804 ffb_ras_setfg(struct ffb_softc *sc, int32_t fg)
807 if (fg == sc->sc_fg_cache)
809 sc->sc_fg_cache = fg;
810 FBC_WRITE(sc, FFB_FBC_FG, fg);
1048 uint32_t fg, bg;
1062 fg = ri->ri_devcmap[(attr >> 24) & 0xf];
1069 ffb_ras_setfg(sc, fg);
1137 uint32_t fg, bg;
1153 fg = ri->ri_devcmap[(attr >> 24) & 0xf];
1172 ffb_ras_setfg(sc, fg);
1195 * comes from the FG register. It would be nice if we
1219 ffb_allocattr(void *cookie, int fg, int bg, int flags, long *attrp)
1221 if ((fg == 0) && (bg == 0))
1223 fg = WS_DEFAULT_FG;
1227 *attrp = (bg & 0xff) << 24 | (fg & 0xff) << 16;
1229 *attrp = (fg & 0xff) << 24 | (bg & 0xff) << 16;