sc                130 bsp/drv/arm/gba/keypad.c 	struct keypad_softc *sc;
sc                134 bsp/drv/arm/gba/keypad.c 	sc = device_private(dev);
sc                140 bsp/drv/arm/gba/keypad.c 	sc->irq = irq_attach(KEYPAD_IRQ, IPL_INPUT, 0, keypad_isr,
sc                141 bsp/drv/arm/gba/keypad.c 			     IST_NONE, sc);
sc                 98 bsp/drv/arm/gba/lcd.c 	struct lcd_softc *sc = aux;
sc                100 bsp/drv/arm/gba/lcd.c 	sc->vram[row * VSCR_COLS + col] = ch;
sc                106 bsp/drv/arm/gba/lcd.c 	struct lcd_softc *sc = aux;
sc                110 bsp/drv/arm/gba/lcd.c 		sc->vram[dstrow * VSCR_COLS + i] =
sc                111 bsp/drv/arm/gba/lcd.c 			sc->vram[srcrow * VSCR_COLS + i];
sc                118 bsp/drv/arm/gba/lcd.c 	struct lcd_softc *sc = aux;
sc                125 bsp/drv/arm/gba/lcd.c 		sc->vram[i] = ' ';
sc                182 bsp/drv/arm/gba/lcd.c 	struct lcd_softc *sc;
sc                186 bsp/drv/arm/gba/lcd.c 	sc = device_private(dev);
sc                187 bsp/drv/arm/gba/lcd.c 	sc->vram = CONSOLE_MAP;
sc                192 bsp/drv/arm/gba/lcd.c 	wscons_attach_video(&wscons_lcd_ops, sc);
sc                155 bsp/drv/arm/gba/swkbd.c 	struct swkbd_softc *sc = swkbd_softc;
sc                158 bsp/drv/arm/gba/swkbd.c 	if (sc->kbd_page == 0)
sc                160 bsp/drv/arm/gba/swkbd.c 	if (sc->capslk)
sc                161 bsp/drv/arm/gba/swkbd.c 		page = sc->shift ? 1 : 2;
sc                163 bsp/drv/arm/gba/swkbd.c 		page = sc->shift ? 2 : 1;
sc                174 bsp/drv/arm/gba/swkbd.c 	struct swkbd_softc *sc = arg;
sc                176 bsp/drv/arm/gba/swkbd.c 	sc->ignore_key = 0;
sc                185 bsp/drv/arm/gba/swkbd.c 	struct swkbd_softc *sc = swkbd_softc;
sc                192 bsp/drv/arm/gba/swkbd.c 	curcur = sc->cursor_type;
sc                194 bsp/drv/arm/gba/swkbd.c 	ki = (struct _key_info *)&key_info[sc->pos_y][sc->pos_x];
sc                196 bsp/drv/arm/gba/swkbd.c 	y = sc->pos_y * 8 + 11;
sc                212 bsp/drv/arm/gba/swkbd.c 		sc->cursor_type = newcur;
sc                224 bsp/drv/arm/gba/swkbd.c 	struct swkbd_softc *sc = swkbd_softc;
sc                228 bsp/drv/arm/gba/swkbd.c 	ki = (struct _key_info *)&key_info[sc->pos_y][sc->pos_x];
sc                234 bsp/drv/arm/gba/swkbd.c 		sc->shift = !sc->shift;
sc                238 bsp/drv/arm/gba/swkbd.c 		sc->ctrl = !sc->ctrl;
sc                241 bsp/drv/arm/gba/swkbd.c 		sc->alt = !sc->alt;
sc                244 bsp/drv/arm/gba/swkbd.c 		sc->capslk = !sc->capslk;
sc                249 bsp/drv/arm/gba/swkbd.c 	if (sc->ctrl) {
sc                256 bsp/drv/arm/gba/swkbd.c 	} else if (sc->kbd_page == 2)
sc                263 bsp/drv/arm/gba/swkbd.c 	if (sc->capslk) {
sc                271 bsp/drv/arm/gba/swkbd.c 	if (sc->alt)
sc                279 bsp/drv/arm/gba/swkbd.c 	if (sc->shift) {
sc                280 bsp/drv/arm/gba/swkbd.c 		sc->shift = 0;
sc                283 bsp/drv/arm/gba/swkbd.c 	if (sc->ctrl)
sc                284 bsp/drv/arm/gba/swkbd.c 		sc->ctrl = 0;
sc                285 bsp/drv/arm/gba/swkbd.c 	if (sc->alt)
sc                286 bsp/drv/arm/gba/swkbd.c 		sc->alt = 0;
sc                296 bsp/drv/arm/gba/swkbd.c 	struct swkbd_softc *sc = swkbd_softc;
sc                300 bsp/drv/arm/gba/swkbd.c 	if (sc->ignore_key)
sc                305 bsp/drv/arm/gba/swkbd.c 		sc->kbd_on = !sc->kbd_on;
sc                306 bsp/drv/arm/gba/swkbd.c 		swkbd_select_page(sc->kbd_on);
sc                309 bsp/drv/arm/gba/swkbd.c 		sc->shift = 0;
sc                310 bsp/drv/arm/gba/swkbd.c 		sc->alt = 0;
sc                311 bsp/drv/arm/gba/swkbd.c 		sc->ctrl = 0;
sc                312 bsp/drv/arm/gba/swkbd.c 		sc->capslk = 0;
sc                317 bsp/drv/arm/gba/swkbd.c 	if (!sc->kbd_on) {
sc                324 bsp/drv/arm/gba/swkbd.c 		if (sc->pos_x > 0) {
sc                325 bsp/drv/arm/gba/swkbd.c 			if (sc->pos_y == 4 && sc->pos_x >=4 && sc->pos_x <= 8)
sc                326 bsp/drv/arm/gba/swkbd.c 				sc->pos_x = 3;
sc                327 bsp/drv/arm/gba/swkbd.c 			sc->pos_x--;
sc                332 bsp/drv/arm/gba/swkbd.c 		if (sc->pos_x < max_x[sc->pos_y]) {
sc                333 bsp/drv/arm/gba/swkbd.c 			if (sc->pos_y == 4 && sc->pos_x > 3 && sc->pos_x <= 7)
sc                334 bsp/drv/arm/gba/swkbd.c 				sc->pos_x = 8;
sc                335 bsp/drv/arm/gba/swkbd.c 			sc->pos_x++;
sc                340 bsp/drv/arm/gba/swkbd.c 		if (sc->pos_y > 0 ) {
sc                341 bsp/drv/arm/gba/swkbd.c 			sc->pos_y--;
sc                343 bsp/drv/arm/gba/swkbd.c 			if (sc->pos_x > max_x[sc->pos_y])
sc                344 bsp/drv/arm/gba/swkbd.c 				sc->pos_x = max_x[sc->pos_y];
sc                348 bsp/drv/arm/gba/swkbd.c 		if (sc->pos_y < 4) {
sc                349 bsp/drv/arm/gba/swkbd.c 			sc->pos_y++;
sc                351 bsp/drv/arm/gba/swkbd.c 			if (sc->pos_x > max_x[sc->pos_y])
sc                352 bsp/drv/arm/gba/swkbd.c 				sc->pos_x = max_x[sc->pos_y];
sc                363 bsp/drv/arm/gba/swkbd.c 		sc->shift = sc->shift ? 0 : 1;
sc                372 bsp/drv/arm/gba/swkbd.c 	sc->ignore_key = 1;
sc                373 bsp/drv/arm/gba/swkbd.c 	timer_callout(&sc->timer, timeout, &swkbd_timeout, sc);
sc                484 bsp/drv/arm/gba/swkbd.c 	struct swkbd_softc *sc;
sc                489 bsp/drv/arm/gba/swkbd.c 	sc = device_private(dev);
sc                490 bsp/drv/arm/gba/swkbd.c 	sc->dev = dev;
sc                491 bsp/drv/arm/gba/swkbd.c 	sc->kbd_on = 1;
sc                493 bsp/drv/arm/gba/swkbd.c 	swkbd_softc = sc;
sc                102 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                107 bsp/drv/dev/base/pm.c 	if (sc->isopen > 0)
sc                110 bsp/drv/dev/base/pm.c 	sc->isopen++;
sc                117 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                122 bsp/drv/dev/base/pm.c 	if (sc->isopen != 1)
sc                125 bsp/drv/dev/base/pm.c 	sc->isopen--;
sc                132 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                143 bsp/drv/dev/base/pm.c 		if (copyin(arg, &sc->powtask, sizeof(task_t)))
sc                149 bsp/drv/dev/base/pm.c 		event = sc->lastevt;
sc                150 bsp/drv/dev/base/pm.c 		sc->lastevt = PME_NO_EVENT;
sc                173 bsp/drv/dev/base/pm.c 		if (copyout(&sc->policy, arg, sizeof(int)))
sc                175 bsp/drv/dev/base/pm.c 		DPRINTF(("pm: get policy %d\n", sc->policy));
sc                186 bsp/drv/dev/base/pm.c 		if (policy == sc->policy) {
sc                193 bsp/drv/dev/base/pm.c 		sc->policy = policy;
sc                201 bsp/drv/dev/base/pm.c 		if (copyout(&sc->sustime, arg, sizeof(u_long)))
sc                206 bsp/drv/dev/base/pm.c 		if (copyin(arg, &sc->sustime, sizeof(u_long)))
sc                208 bsp/drv/dev/base/pm.c 		DPRINTF(("pm: set sustmr=%d\n", sc->sustime));
sc                213 bsp/drv/dev/base/pm.c 		if (copyout(&sc->dimtime, arg, sizeof(u_long)))
sc                218 bsp/drv/dev/base/pm.c 		if (copyin(arg, &sc->dimtime, sizeof(u_long)))
sc                220 bsp/drv/dev/base/pm.c 		DPRINTF(("pm: set dimtmr=%d\n", sc->dimtime));
sc                234 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                240 bsp/drv/dev/base/pm.c 	if (sc->timer_active) {
sc                241 bsp/drv/dev/base/pm.c 		timer_stop(&sc->timer);
sc                242 bsp/drv/dev/base/pm.c 		sc->idlecnt = 0;
sc                243 bsp/drv/dev/base/pm.c 		sc->timer_active = 0;
sc                251 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                254 bsp/drv/dev/base/pm.c 	if (sc->policy != PM_POWERSAVE)
sc                258 bsp/drv/dev/base/pm.c 	sc->idlecnt = 0;
sc                259 bsp/drv/dev/base/pm.c 	if (sc->timer_active) {
sc                260 bsp/drv/dev/base/pm.c 		if (sc->sustime == 0 && sc->dimtime == 0)
sc                261 bsp/drv/dev/base/pm.c 			timer_stop(&sc->timer);
sc                263 bsp/drv/dev/base/pm.c 		if (sc->sustime != 0 || sc->dimtime != 0) {
sc                265 bsp/drv/dev/base/pm.c 			timer_callout(&sc->timer, 1000, &pm_timeout, sc);
sc                266 bsp/drv/dev/base/pm.c 		      	sc->timer_active = 1;
sc                337 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                341 bsp/drv/dev/base/pm.c 	if (sc->lcd_dev != NODEV && sc->lcd_on) {
sc                342 bsp/drv/dev/base/pm.c 		device_control(sc->lcd_dev, DEVCTL_PM_LCDOFF, NULL);
sc                343 bsp/drv/dev/base/pm.c 		if (sc->sustime == 0)
sc                345 bsp/drv/dev/base/pm.c 		sc->lcd_on = 0;
sc                352 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                356 bsp/drv/dev/base/pm.c 	if (sc->lcd_dev != NODEV && !sc->lcd_on) {
sc                357 bsp/drv/dev/base/pm.c 		device_control(sc->lcd_dev, DEVCTL_PM_LCDON, NULL);
sc                359 bsp/drv/dev/base/pm.c 		sc->lcd_on = 1;
sc                366 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = arg;
sc                370 bsp/drv/dev/base/pm.c 	sc->idlecnt++;
sc                373 bsp/drv/dev/base/pm.c 	DPRINTF(("pm: idlecnt=%d\n", sc->idlecnt));
sc                375 bsp/drv/dev/base/pm.c 	if (sc->sustime != 0 && sc->idlecnt >= sc->sustime) {
sc                382 bsp/drv/dev/base/pm.c 		if (sc->dimtime != 0 && sc->idlecnt >= sc->dimtime) {
sc                384 bsp/drv/dev/base/pm.c 			if (sc->sustime != 0)
sc                390 bsp/drv/dev/base/pm.c 			timer_callout(&sc->timer, 1000, &pm_timeout, sc);
sc                427 bsp/drv/dev/base/pm.c 	struct pm_softc *sc = pm_softc;
sc                435 bsp/drv/dev/base/pm.c 		sc->idlecnt = 0;
sc                438 bsp/drv/dev/base/pm.c 		if (!sc->lcd_on)
sc                445 bsp/drv/dev/base/pm.c 	if (sc->powtask != TASK_NULL) {
sc                458 bsp/drv/dev/base/pm.c 			sc->lastevt = event;
sc                460 bsp/drv/dev/base/pm.c 			exception_post(sc->powtask, SIGPWR);
sc                463 bsp/drv/dev/base/pm.c 			sc->lastevt = PME_NO_EVENT;
sc                502 bsp/drv/dev/base/pm.c 	struct pm_softc *sc;
sc                508 bsp/drv/dev/base/pm.c 	sc = device_private(dev);
sc                509 bsp/drv/dev/base/pm.c 	sc->dev = dev;
sc                510 bsp/drv/dev/base/pm.c 	sc->isopen = 0;
sc                511 bsp/drv/dev/base/pm.c 	sc->policy = DEFAULT_POWER_POLICY;
sc                512 bsp/drv/dev/base/pm.c 	sc->idlecnt = 0;
sc                513 bsp/drv/dev/base/pm.c 	sc->dimtime = 0;
sc                514 bsp/drv/dev/base/pm.c 	sc->sustime = 0;
sc                515 bsp/drv/dev/base/pm.c 	sc->timer_active = 0;
sc                516 bsp/drv/dev/base/pm.c 	sc->powtask = TASK_NULL;
sc                517 bsp/drv/dev/base/pm.c 	sc->lcd_dev = NODEV;
sc                518 bsp/drv/dev/base/pm.c 	sc->lcd_on = 1;
sc                519 bsp/drv/dev/base/pm.c 	sc->lastevt = PME_NO_EVENT;
sc                521 bsp/drv/dev/base/pm.c 	pm_softc = sc;
sc                524 bsp/drv/dev/base/pm.c 		 (sc->policy == PM_POWERSAVE) ? "power save" : "performance"));
sc                141 bsp/drv/dev/base/wscons.c wscons_move_cursor(struct wscons_softc *sc)
sc                143 bsp/drv/dev/base/wscons.c 	struct wscons_video_ops *vops = sc->vid_ops;
sc                145 bsp/drv/dev/base/wscons.c 	vops->cursor(sc->vid_aux, sc->row, sc->col);
sc                149 bsp/drv/dev/base/wscons.c wscons_set_attr(struct wscons_softc *sc)
sc                151 bsp/drv/dev/base/wscons.c 	struct wscons_video_ops *vops = sc->vid_ops;
sc                153 bsp/drv/dev/base/wscons.c 	vops->set_attr(sc->vid_aux, sc->attr);
sc                157 bsp/drv/dev/base/wscons.c wscons_clear(struct wscons_softc *sc)
sc                159 bsp/drv/dev/base/wscons.c 	struct wscons_video_ops *vops = sc->vid_ops;
sc                161 bsp/drv/dev/base/wscons.c 	vops->eraserows(sc->vid_aux, 0, sc->nrows);
sc                162 bsp/drv/dev/base/wscons.c 	sc->col = 0;
sc                163 bsp/drv/dev/base/wscons.c 	sc->row = 0;
sc                164 bsp/drv/dev/base/wscons.c 	wscons_move_cursor(sc);
sc                168 bsp/drv/dev/base/wscons.c wscons_scrollup(struct wscons_softc *sc)
sc                170 bsp/drv/dev/base/wscons.c 	struct wscons_video_ops *vops = sc->vid_ops;
sc                172 bsp/drv/dev/base/wscons.c 	vops->copyrows(sc->vid_aux, 1, 0, sc->nrows - 1);
sc                173 bsp/drv/dev/base/wscons.c 	vops->eraserows(sc->vid_aux, sc->nrows - 1, 1);
sc                177 bsp/drv/dev/base/wscons.c wscons_newline(struct wscons_softc *sc)
sc                180 bsp/drv/dev/base/wscons.c 	sc->col = 0;
sc                181 bsp/drv/dev/base/wscons.c 	sc->row++;
sc                182 bsp/drv/dev/base/wscons.c 	if (sc->row >= sc->nrows) {
sc                183 bsp/drv/dev/base/wscons.c 		sc->row = sc->nrows - 1;
sc                184 bsp/drv/dev/base/wscons.c 		wscons_scrollup(sc);
sc                207 bsp/drv/dev/base/wscons.c wscons_check_escape(struct wscons_softc *sc, char c)
sc                209 bsp/drv/dev/base/wscons.c 	struct esc_state *esc = &sc->esc;
sc                256 bsp/drv/dev/base/wscons.c 			esc->saved_col = sc->col;
sc                257 bsp/drv/dev/base/wscons.c 			esc->saved_row = sc->row;
sc                258 bsp/drv/dev/base/wscons.c 			printf("TTY: save %d %d\n", sc->col, sc->row);
sc                261 bsp/drv/dev/base/wscons.c 			sc->col = esc->saved_col;
sc                262 bsp/drv/dev/base/wscons.c 			sc->row = esc->saved_row;
sc                263 bsp/drv/dev/base/wscons.c 			printf("TTY: restore %d %d\n", sc->col, sc->row);
sc                264 bsp/drv/dev/base/wscons.c 			wscons_move_cursor(sc);
sc                273 bsp/drv/dev/base/wscons.c 			sc->row -= esc->arg1;
sc                274 bsp/drv/dev/base/wscons.c 			if (sc->row < 0)
sc                275 bsp/drv/dev/base/wscons.c 				sc->row = 0;
sc                279 bsp/drv/dev/base/wscons.c 			sc->row += esc->arg1;
sc                280 bsp/drv/dev/base/wscons.c 			if (sc->row >= sc->nrows)
sc                281 bsp/drv/dev/base/wscons.c 				sc->row = sc->nrows - 1;
sc                285 bsp/drv/dev/base/wscons.c 			sc->col += esc->arg1;
sc                286 bsp/drv/dev/base/wscons.c 			if (sc->col >= sc->ncols)
sc                287 bsp/drv/dev/base/wscons.c 				sc->col = sc->ncols - 1;
sc                291 bsp/drv/dev/base/wscons.c 			sc->col -= esc->arg1;
sc                292 bsp/drv/dev/base/wscons.c 			if (sc->col < 0)
sc                293 bsp/drv/dev/base/wscons.c 				sc->col = 0;
sc                302 bsp/drv/dev/base/wscons.c 				wscons_clear(sc);
sc                307 bsp/drv/dev/base/wscons.c 				sc->attr = 0x0F;
sc                310 bsp/drv/dev/base/wscons.c 				sc->attr = 0x0F;
sc                315 bsp/drv/dev/base/wscons.c 				sc->attr |= 0x80;
sc                320 bsp/drv/dev/base/wscons.c 				sc->attr = (sc->attr & 0xf0) | color;
sc                325 bsp/drv/dev/base/wscons.c 				sc->attr = (sc->attr & 0x0f) | (color << 4);
sc                328 bsp/drv/dev/base/wscons.c 			wscons_set_attr(sc);
sc                333 bsp/drv/dev/base/wscons.c 			wscons_move_cursor(sc);
sc                339 bsp/drv/dev/base/wscons.c 			sc->row = esc->arg1;
sc                340 bsp/drv/dev/base/wscons.c 			sc->col = esc->arg2;
sc                341 bsp/drv/dev/base/wscons.c 			if (sc->row >= sc->nrows)
sc                342 bsp/drv/dev/base/wscons.c 				sc->row = sc->nrows - 1;
sc                343 bsp/drv/dev/base/wscons.c 			if (sc->col >= sc->ncols)
sc                344 bsp/drv/dev/base/wscons.c 				sc->col = sc->ncols - 1;
sc                345 bsp/drv/dev/base/wscons.c 			wscons_move_cursor(sc);
sc                365 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                366 bsp/drv/dev/base/wscons.c 	struct wscons_video_ops *vops = sc->vid_ops;
sc                368 bsp/drv/dev/base/wscons.c 	if (wscons_check_escape(sc, c))
sc                373 bsp/drv/dev/base/wscons.c 		wscons_newline(sc);
sc                376 bsp/drv/dev/base/wscons.c 		sc->col = 0;
sc                379 bsp/drv/dev/base/wscons.c 		if (sc->col == 0)
sc                381 bsp/drv/dev/base/wscons.c 		sc->col--;
sc                385 bsp/drv/dev/base/wscons.c 	vops->putc(sc->vid_aux, sc->row, sc->col, c);
sc                387 bsp/drv/dev/base/wscons.c 	sc->col++;
sc                388 bsp/drv/dev/base/wscons.c 	if (sc->col >= sc->ncols) {
sc                389 bsp/drv/dev/base/wscons.c 		sc->col = 0;
sc                390 bsp/drv/dev/base/wscons.c 		sc->row++;
sc                391 bsp/drv/dev/base/wscons.c 		if (sc->row >= sc->nrows) {
sc                392 bsp/drv/dev/base/wscons.c 			sc->row = sc->nrows - 1;
sc                393 bsp/drv/dev/base/wscons.c 			wscons_scrollup(sc);
sc                404 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                410 bsp/drv/dev/base/wscons.c 	wscons_move_cursor(sc);
sc                417 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                418 bsp/drv/dev/base/wscons.c 	struct wscons_kbd_ops *kops = sc->kbd_ops;
sc                420 bsp/drv/dev/base/wscons.c 	return kops->getc(sc->kbd_aux);
sc                426 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                429 bsp/drv/dev/base/wscons.c 	wscons_move_cursor(sc);
sc                435 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                436 bsp/drv/dev/base/wscons.c 	struct wscons_kbd_ops *kops = sc->kbd_ops;
sc                438 bsp/drv/dev/base/wscons.c 	kops->set_poll(sc->kbd_aux, on);
sc                444 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                446 bsp/drv/dev/base/wscons.c 	tty_input(c, &sc->tty);
sc                452 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                455 bsp/drv/dev/base/wscons.c 	sc->vid_ops = ops;
sc                456 bsp/drv/dev/base/wscons.c 	sc->vid_aux = aux;
sc                457 bsp/drv/dev/base/wscons.c 	ops->get_cursor(aux, &sc->col, &sc->row);
sc                462 bsp/drv/dev/base/wscons.c 	wsconsdev.dev = sc->dev;
sc                469 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc = wscons_softc;
sc                471 bsp/drv/dev/base/wscons.c 	sc->kbd_ops = ops;
sc                472 bsp/drv/dev/base/wscons.c 	sc->kbd_aux = aux;
sc                479 bsp/drv/dev/base/wscons.c 	struct wscons_softc *sc;
sc                484 bsp/drv/dev/base/wscons.c 	sc = device_private(dev);
sc                485 bsp/drv/dev/base/wscons.c 	sc->dev = dev;
sc                486 bsp/drv/dev/base/wscons.c 	sc->esc.index = 0;
sc                487 bsp/drv/dev/base/wscons.c 	sc->attr = 0x0f;
sc                488 bsp/drv/dev/base/wscons.c 	wscons_softc = sc;
sc                490 bsp/drv/dev/base/wscons.c 	tty_attach(&sc->tty);
sc                491 bsp/drv/dev/base/wscons.c 	sc->tty.t_dev = dev;
sc                492 bsp/drv/dev/base/wscons.c 	sc->tty.t_oproc = wscons_start;
sc                495 bsp/drv/dev/base/wscons.c 	sc->nrows = bi->video.text_y;
sc                496 bsp/drv/dev/base/wscons.c 	sc->ncols = bi->video.text_x;
sc                168 bsp/drv/dev/block/fdd.c fdc_result(struct fdd_softc *sc)
sc                182 bsp/drv/dev/block/fdd.c 			sc->result[index++] = bus_read_8(FDC_DAT);
sc                194 bsp/drv/dev/block/fdd.c fdc_off(struct fdd_softc *sc)
sc                198 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_OFF;
sc                199 bsp/drv/dev/block/fdd.c 	timer_stop(&sc->tmr);
sc                208 bsp/drv/dev/block/fdd.c fdc_on(struct fdd_softc *sc)
sc                212 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_ON;
sc                216 bsp/drv/dev/block/fdd.c 	timer_callout(&sc->tmr, 250, &fdc_timeout, sc);
sc                220 bsp/drv/dev/block/fdd.c fdc_error(struct fdd_softc *sc, int error)
sc                222 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                226 bsp/drv/dev/block/fdd.c 	dma_stop(sc->dma);
sc                229 bsp/drv/dev/block/fdd.c 	fdc_off(sc);
sc                237 bsp/drv/dev/block/fdd.c fdc_reset(struct fdd_softc *sc)
sc                241 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_RESET;
sc                242 bsp/drv/dev/block/fdd.c 	timer_callout(&sc->tmr, 500, &fdc_timeout, sc);
sc                254 bsp/drv/dev/block/fdd.c fdc_recal(struct fdd_softc *sc)
sc                258 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_RECAL;
sc                259 bsp/drv/dev/block/fdd.c 	timer_callout(&sc->tmr, 5000, &fdc_timeout, sc);
sc                269 bsp/drv/dev/block/fdd.c fdc_seek(struct fdd_softc *sc)
sc                271 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                275 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_SEEK;
sc                279 bsp/drv/dev/block/fdd.c 	timer_callout(&sc->tmr, 4000, &fdc_timeout, sc);
sc                295 bsp/drv/dev/block/fdd.c fdc_io(struct fdd_softc *sc)
sc                297 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                303 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_IO;
sc                314 bsp/drv/dev/block/fdd.c 	timer_callout(&sc->tmr, 2000, &fdc_timeout, sc);
sc                316 bsp/drv/dev/block/fdd.c 	dma_setup(sc->dma, irp->buf, io_size, read);
sc                335 bsp/drv/dev/block/fdd.c fdc_ready(struct fdd_softc *sc)
sc                337 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                341 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_READY;
sc                343 bsp/drv/dev/block/fdd.c 	timer_callout(&sc->tmr, 5000, &fdc_timeout, sc);
sc                352 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc = arg;
sc                353 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                355 bsp/drv/dev/block/fdd.c 	DPRINTF(("fdc: stat=%d\n", sc->stat));
sc                357 bsp/drv/dev/block/fdd.c 	switch (sc->stat) {
sc                359 bsp/drv/dev/block/fdd.c 		fdc_reset(sc);
sc                364 bsp/drv/dev/block/fdd.c 		fdc_error(sc, EIO);
sc                370 bsp/drv/dev/block/fdd.c 			fdc_reset(sc);
sc                372 bsp/drv/dev/block/fdd.c 			fdc_error(sc, EIO);
sc                375 bsp/drv/dev/block/fdd.c 		fdc_off(sc);
sc                389 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc = arg;
sc                390 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                392 bsp/drv/dev/block/fdd.c 	DPRINTF(("fdc_stat=%d\n", sc->stat));
sc                394 bsp/drv/dev/block/fdd.c 	timer_stop(&sc->tmr);
sc                396 bsp/drv/dev/block/fdd.c 	switch (sc->stat) {
sc                398 bsp/drv/dev/block/fdd.c 		dma_stop(sc->dma);
sc                405 bsp/drv/dev/block/fdd.c 			timer_stop(&sc->tmr);
sc                425 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc = arg;
sc                426 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                429 bsp/drv/dev/block/fdd.c 	DPRINTF(("fdc_stat=%d\n", sc->stat));
sc                433 bsp/drv/dev/block/fdd.c 	switch (sc->stat) {
sc                438 bsp/drv/dev/block/fdd.c 			fdc_result(sc);
sc                440 bsp/drv/dev/block/fdd.c 		fdc_recal(sc);
sc                444 bsp/drv/dev/block/fdd.c 		fdc_result(sc);
sc                445 bsp/drv/dev/block/fdd.c 		if ((sc->result[0] & 0xf8) != 0x20) {
sc                447 bsp/drv/dev/block/fdd.c 			fdc_error(sc, EIO);
sc                450 bsp/drv/dev/block/fdd.c 		fdc_seek(sc);
sc                454 bsp/drv/dev/block/fdd.c 		fdc_result(sc);
sc                455 bsp/drv/dev/block/fdd.c 		if ((sc->result[0] & 0xf8) != 0x20) {
sc                458 bsp/drv/dev/block/fdd.c 				fdc_reset(sc);
sc                460 bsp/drv/dev/block/fdd.c 				fdc_error(sc, EIO);
sc                463 bsp/drv/dev/block/fdd.c 		fdc_io(sc);
sc                466 bsp/drv/dev/block/fdd.c 		fdc_result(sc);
sc                467 bsp/drv/dev/block/fdd.c 		if ((sc->result[0] & 0xd8) != 0x00) {
sc                469 bsp/drv/dev/block/fdd.c 				fdc_reset(sc);
sc                471 bsp/drv/dev/block/fdd.c 				fdc_error(sc, EIO);
sc                475 bsp/drv/dev/block/fdd.c 		fdc_ready(sc);
sc                489 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc = device_private(dev);
sc                491 bsp/drv/dev/block/fdd.c 	if (sc->isopen > 0)
sc                494 bsp/drv/dev/block/fdd.c 	sc->isopen++;
sc                495 bsp/drv/dev/block/fdd.c 	sc->irp.cmd = IO_NONE;
sc                502 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc = device_private(dev);
sc                504 bsp/drv/dev/block/fdd.c 	if (sc->isopen != 1)
sc                507 bsp/drv/dev/block/fdd.c 	sc->isopen--;
sc                508 bsp/drv/dev/block/fdd.c 	sc->irp.cmd = IO_NONE;
sc                510 bsp/drv/dev/block/fdd.c 	fdc_off(sc);
sc                518 bsp/drv/dev/block/fdd.c fdd_rw(struct fdd_softc *sc, int cmd, char *buf, u_long blksz, int blkno)
sc                520 bsp/drv/dev/block/fdd.c 	struct irp *irp = &sc->irp;
sc                534 bsp/drv/dev/block/fdd.c 	if (sc->stat == FDS_OFF)
sc                535 bsp/drv/dev/block/fdd.c 		fdc_on(sc);
sc                537 bsp/drv/dev/block/fdd.c 		fdc_seek(sc);
sc                560 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc = device_private(dev);
sc                586 bsp/drv/dev/block/fdd.c 		if (track != sc->track) {
sc                587 bsp/drv/dev/block/fdd.c 			error = fdd_rw(sc, IO_READ, sc->rbuf, FDG_SECTORS,
sc                590 bsp/drv/dev/block/fdd.c 				sc->track = INVALID_TRACK;
sc                593 bsp/drv/dev/block/fdd.c 			sc->track = track;
sc                595 bsp/drv/dev/block/fdd.c 		memcpy(kbuf, (char *)sc->rbuf + sect * SECTOR_SIZE,
sc                616 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc = device_private(dev);
sc                642 bsp/drv/dev/block/fdd.c 		if (track == sc->track)
sc                643 bsp/drv/dev/block/fdd.c 			wbuf = (char *)sc->rbuf + sect * SECTOR_SIZE;
sc                645 bsp/drv/dev/block/fdd.c 			wbuf = sc->wbuf;
sc                648 bsp/drv/dev/block/fdd.c 		error = fdd_rw(sc, IO_WRITE, wbuf, 1, blkno);
sc                650 bsp/drv/dev/block/fdd.c 			sc->track = INVALID_TRACK;
sc                676 bsp/drv/dev/block/fdd.c 	struct fdd_softc *sc;
sc                683 bsp/drv/dev/block/fdd.c 	sc = device_private(dev);
sc                684 bsp/drv/dev/block/fdd.c 	sc->dev = dev;
sc                685 bsp/drv/dev/block/fdd.c 	sc->isopen = 0;
sc                688 bsp/drv/dev/block/fdd.c 	irp = &sc->irp;
sc                698 bsp/drv/dev/block/fdd.c 	sc->rbuf = buf;
sc                699 bsp/drv/dev/block/fdd.c 	sc->wbuf = buf + TRACK_SIZE;
sc                700 bsp/drv/dev/block/fdd.c 	sc->dma = dma_attach(FDC_DMA);
sc                705 bsp/drv/dev/block/fdd.c 	sc->irq = irq_attach(FDC_IRQ, IPL_BLOCK, 0, fdc_isr, fdc_ist, sc);
sc                707 bsp/drv/dev/block/fdd.c 	sc->stat = FDS_OFF;
sc                708 bsp/drv/dev/block/fdd.c 	sc->track = INVALID_TRACK;
sc                722 bsp/drv/dev/block/fdd.c 		fdc_result(sc);
sc                 80 bsp/drv/dev/block/ramdisk.c 	struct ramdisk_softc *sc = device_private(dev);
sc                 89 bsp/drv/dev/block/ramdisk.c 	if (offset > (int)sc->size) {
sc                 94 bsp/drv/dev/block/ramdisk.c 	if (offset + nr_read > (int)sc->size)
sc                 95 bsp/drv/dev/block/ramdisk.c 		nr_read = sc->size - offset;
sc                103 bsp/drv/dev/block/ramdisk.c 	memcpy(kbuf, sc->addr + offset, nr_read);
sc                111 bsp/drv/dev/block/ramdisk.c 	struct ramdisk_softc *sc = device_private(dev);
sc                120 bsp/drv/dev/block/ramdisk.c 	if (offset > (int)sc->size)
sc                123 bsp/drv/dev/block/ramdisk.c 	if (offset + nr_write > (int)sc->size)
sc                124 bsp/drv/dev/block/ramdisk.c 		nr_write = sc->size - offset;
sc                131 bsp/drv/dev/block/ramdisk.c 	memcpy(sc->addr + offset, kbuf, nr_write);
sc                156 bsp/drv/dev/block/ramdisk.c 	struct ramdisk_softc *sc;
sc                166 bsp/drv/dev/block/ramdisk.c 	sc = device_private(dev);
sc                167 bsp/drv/dev/block/ramdisk.c 	sc->dev = dev;
sc                168 bsp/drv/dev/block/ramdisk.c 	sc->addr = (char *)ptokv(phys->base);
sc                169 bsp/drv/dev/block/ramdisk.c 	sc->size = (size_t)phys->size;
sc                173 bsp/drv/dev/block/ramdisk.c 	       (u_int)sc->addr, sc->size/1024);
sc                213 bsp/drv/dev/cpufreq/cpufreq.c 	struct cpufreq_softc *sc = arg;
sc                238 bsp/drv/dev/cpufreq/cpufreq.c 		sc->ops->setperf(new_speed);
sc                239 bsp/drv/dev/cpufreq/cpufreq.c 		cur_speed = sc->ops->getperf();
sc                245 bsp/drv/dev/cpufreq/cpufreq.c 	timer_callout(&sc->timer, SAMPLING_RATE, &cpufreq_timeout, sc);
sc                252 bsp/drv/dev/cpufreq/cpufreq.c cpufreq_enable(struct cpufreq_softc *sc)
sc                256 bsp/drv/dev/cpufreq/cpufreq.c 	ASSERT(sc->ops != NULL);
sc                260 bsp/drv/dev/cpufreq/cpufreq.c 	if (sc->enable)
sc                262 bsp/drv/dev/cpufreq/cpufreq.c 	sc->enable = 1;
sc                273 bsp/drv/dev/cpufreq/cpufreq.c 	cur_speed = sc->ops->getperf();
sc                279 bsp/drv/dev/cpufreq/cpufreq.c 	timer_callout(&sc->timer, SAMPLING_RATE, &cpufreq_timeout, sc);
sc                286 bsp/drv/dev/cpufreq/cpufreq.c cpufreq_disable(struct cpufreq_softc *sc)
sc                291 bsp/drv/dev/cpufreq/cpufreq.c 	if (!sc->enable)
sc                293 bsp/drv/dev/cpufreq/cpufreq.c 	sc->enable = 0;
sc                295 bsp/drv/dev/cpufreq/cpufreq.c 	timer_stop(&sc->timer);
sc                298 bsp/drv/dev/cpufreq/cpufreq.c 	sc->ops->setperf(100);
sc                305 bsp/drv/dev/cpufreq/cpufreq.c 	struct cpufreq_softc *sc = device_private(dev);
sc                308 bsp/drv/dev/cpufreq/cpufreq.c 	if (sc->ops == NULL)
sc                313 bsp/drv/dev/cpufreq/cpufreq.c 		sc->ops->getinfo(&info);
sc                326 bsp/drv/dev/cpufreq/cpufreq.c 	struct cpufreq_softc *sc = device_private(dev);
sc                332 bsp/drv/dev/cpufreq/cpufreq.c 	if (sc->ops == NULL)
sc                341 bsp/drv/dev/cpufreq/cpufreq.c 			cpufreq_enable(sc);
sc                343 bsp/drv/dev/cpufreq/cpufreq.c 			cpufreq_disable(sc);
sc                352 bsp/drv/dev/cpufreq/cpufreq.c 	struct cpufreq_softc *sc;
sc                360 bsp/drv/dev/cpufreq/cpufreq.c 	sc = device_private(dev);
sc                361 bsp/drv/dev/cpufreq/cpufreq.c 	sc->dev = dev;
sc                362 bsp/drv/dev/cpufreq/cpufreq.c 	sc->enable = 0;
sc                363 bsp/drv/dev/cpufreq/cpufreq.c 	sc->ops = ops;
sc                368 bsp/drv/dev/cpufreq/cpufreq.c 		cpufreq_enable(sc);
sc                122 bsp/drv/dev/input/pckbd.c pckbd_set_leds(struct pckbd_softc *sc)
sc                127 bsp/drv/dev/input/pckbd.c 	if (sc->capslk)
sc                129 bsp/drv/dev/input/pckbd.c 	if (sc->led_sts != val) {
sc                130 bsp/drv/dev/input/pckbd.c 		sc->led_sts = val;
sc                142 bsp/drv/dev/input/pckbd.c pckbd_scan_key(struct pckbd_softc *sc)
sc                167 bsp/drv/dev/input/pckbd.c 		sc->shift = press;
sc                170 bsp/drv/dev/input/pckbd.c 		sc->ctrl = press;
sc                173 bsp/drv/dev/input/pckbd.c 		sc->alt = press;
sc                176 bsp/drv/dev/input/pckbd.c 		sc->capslk = !sc->capslk;
sc                177 bsp/drv/dev/input/pckbd.c 		pckbd_set_leds(sc);
sc                189 bsp/drv/dev/input/pckbd.c 	if (sc->alt && sc->ctrl && ascii == 0x7f) {
sc                198 bsp/drv/dev/input/pckbd.c 	if (sc->ctrl) {
sc                205 bsp/drv/dev/input/pckbd.c 	} else if (sc->shift)
sc                212 bsp/drv/dev/input/pckbd.c 	if (sc->capslk) {
sc                220 bsp/drv/dev/input/pckbd.c 	if (sc->alt)
sc                233 bsp/drv/dev/input/pckbd.c 	struct pckbd_softc *sc = arg;
sc                236 bsp/drv/dev/input/pckbd.c 	c = pckbd_scan_key(sc);
sc                245 bsp/drv/dev/input/pckbd.c 	struct pckbd_softc *sc = aux;
sc                249 bsp/drv/dev/input/pckbd.c 	sc->alt = 0;
sc                250 bsp/drv/dev/input/pckbd.c 	sc->ctrl = 0;
sc                251 bsp/drv/dev/input/pckbd.c 	sc->shift = 0;
sc                254 bsp/drv/dev/input/pckbd.c 	while ((c = pckbd_scan_key(sc)) == 0) ;
sc                262 bsp/drv/dev/input/pckbd.c 	struct pckbd_softc *sc = aux;
sc                264 bsp/drv/dev/input/pckbd.c 	sc->polling = on;
sc                270 bsp/drv/dev/input/pckbd.c 	struct pckbd_softc *sc;
sc                275 bsp/drv/dev/input/pckbd.c 	sc = device_private(dev);
sc                276 bsp/drv/dev/input/pckbd.c 	sc->dev = dev;
sc                277 bsp/drv/dev/input/pckbd.c 	sc->polling = 0;
sc                278 bsp/drv/dev/input/pckbd.c 	sc->led_sts = 0;
sc                283 bsp/drv/dev/input/pckbd.c 	sc->irq = irq_attach(KBD_IRQ, IPL_INPUT, 0, pckbd_isr, IST_NONE, sc);
sc                292 bsp/drv/dev/input/pckbd.c 	wscons_attach_kbd(&wscons_pckbd_ops, sc);
sc                141 bsp/drv/dev/input/psaux.c 	struct psaux_softc *sc = arg;
sc                150 bsp/drv/dev/input/psaux.c 		sc->index = 0;
sc                160 bsp/drv/dev/input/psaux.c 	sc->packet[sc->index++] = dat;
sc                161 bsp/drv/dev/input/psaux.c 	if (sc->index < 3)
sc                163 bsp/drv/dev/input/psaux.c 	sc->index = 0;
sc                164 bsp/drv/dev/input/psaux.c 	DPRINTF(("mouse packet %x:%d:%d\n", sc->packet[0],
sc                165 bsp/drv/dev/input/psaux.c 		 sc->packet[1], sc->packet[2]));
sc                203 bsp/drv/dev/input/psaux.c 	struct psaux_softc *sc;
sc                211 bsp/drv/dev/input/psaux.c 	sc = device_private(dev);
sc                212 bsp/drv/dev/input/psaux.c 	sc->dev = dev;
sc                213 bsp/drv/dev/input/psaux.c 	sc->index = 0;
sc                216 bsp/drv/dev/input/psaux.c 	sc->irq = irq_attach(MOUSE_IRQ, IPL_INPUT, 0, psaux_isr,
sc                217 bsp/drv/dev/input/psaux.c 			     IST_NONE, sc);
sc                180 bsp/drv/dev/rtc/rtc.c 	struct rtc_softc *sc = device_private(dev);
sc                191 bsp/drv/dev/rtc/rtc.c 		msec = hztoms(timer_ticks() - sc->boot_ticks);
sc                192 bsp/drv/dev/rtc/rtc.c 		tv.tv_sec = sc->boot_sec + (msec / 1000);
sc                213 bsp/drv/dev/rtc/rtc.c 	struct rtc_softc *sc;
sc                219 bsp/drv/dev/rtc/rtc.c 	sc = device_private(dev);
sc                220 bsp/drv/dev/rtc/rtc.c 	sc->dev = dev;
sc                221 bsp/drv/dev/rtc/rtc.c 	sc->ops = ops;
sc                222 bsp/drv/dev/rtc/rtc.c 	sc->aux = aux;
sc                226 bsp/drv/dev/rtc/rtc.c 	sc->boot_sec = tv.tv_sec;
sc                227 bsp/drv/dev/rtc/rtc.c 	sc->boot_ticks = timer_ticks();
sc                 97 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc = device_private(dev);
sc                 99 bsp/drv/dev/serial/serial.c 	return tty_read(&sc->tty, buf, nbyte);
sc                105 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc = device_private(dev);
sc                107 bsp/drv/dev/serial/serial.c 	return tty_write(&sc->tty, buf, nbyte);
sc                113 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc = device_private(dev);
sc                115 bsp/drv/dev/serial/serial.c 	return tty_ioctl(&sc->tty, cmd, arg);
sc                124 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc = device_private(tp->t_dev);
sc                125 bsp/drv/dev/serial/serial.c 	struct serial_port *port = sc->port;
sc                129 bsp/drv/dev/serial/serial.c 		sc->ops->xmt_char(port, c);
sc                155 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc = device_private(dev);
sc                156 bsp/drv/dev/serial/serial.c 	struct serial_port *port = sc->port;
sc                158 bsp/drv/dev/serial/serial.c 	return sc->ops->rcv_char(port);
sc                164 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc = device_private(dev);
sc                165 bsp/drv/dev/serial/serial.c 	struct serial_port *port = sc->port;
sc                167 bsp/drv/dev/serial/serial.c 	sc->ops->xmt_char(port, c);
sc                173 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc = device_private(dev);
sc                174 bsp/drv/dev/serial/serial.c 	struct serial_port *port = sc->port;
sc                176 bsp/drv/dev/serial/serial.c 	sc->ops->set_poll(port, on);
sc                182 bsp/drv/dev/serial/serial.c 	struct serial_softc *sc;
sc                188 bsp/drv/dev/serial/serial.c 	sc = device_private(dev);
sc                189 bsp/drv/dev/serial/serial.c 	sc->dev = dev;
sc                190 bsp/drv/dev/serial/serial.c 	sc->ops = ops;
sc                191 bsp/drv/dev/serial/serial.c 	sc->port = port;
sc                193 bsp/drv/dev/serial/serial.c 	tty_attach(&sc->tty);
sc                194 bsp/drv/dev/serial/serial.c 	sc->tty.t_dev = dev;
sc                195 bsp/drv/dev/serial/serial.c 	sc->tty.t_oproc = serial_start;
sc                198 bsp/drv/dev/serial/serial.c 	port->tty = &sc->tty;
sc                139 bsp/drv/dev/video/vga.c 	struct vga_softc *sc = aux;
sc                142 bsp/drv/dev/video/vga.c 	pos = row * sc->cols + col;
sc                153 bsp/drv/dev/video/vga.c 	struct vga_softc *sc = aux;
sc                155 bsp/drv/dev/video/vga.c 	sc->vram[row * sc->cols + col] = ch | (sc->attr << 8);
sc                161 bsp/drv/dev/video/vga.c 	struct vga_softc *sc = aux;
sc                163 bsp/drv/dev/video/vga.c 	memcpy(sc->vram + dstrow * sc->cols,
sc                164 bsp/drv/dev/video/vga.c 	       sc->vram + srcrow * sc->cols,
sc                165 bsp/drv/dev/video/vga.c 	       (size_t)nrows * sc->cols * 2);
sc                171 bsp/drv/dev/video/vga.c 	struct vga_softc *sc = aux;
sc                174 bsp/drv/dev/video/vga.c 	start = row * sc->cols;
sc                175 bsp/drv/dev/video/vga.c 	end = start + nrows * sc->cols;
sc                178 bsp/drv/dev/video/vga.c 		sc->vram[i] = ' ' | (sc->attr << 8);
sc                184 bsp/drv/dev/video/vga.c 	struct vga_softc *sc = aux;
sc                186 bsp/drv/dev/video/vga.c 	sc->attr = attr;
sc                193 bsp/drv/dev/video/vga.c 	struct vga_softc *sc = aux;
sc                201 bsp/drv/dev/video/vga.c 	*col = (int)offset % sc->cols;
sc                202 bsp/drv/dev/video/vga.c 	*row = (int)offset / sc->cols;
sc                209 bsp/drv/dev/video/vga.c 	struct vga_softc *sc = device_private(dev);
sc                217 bsp/drv/dev/video/vga.c 		if (!sc->blank) {
sc                220 bsp/drv/dev/video/vga.c 			sc->blank = 1;
sc                224 bsp/drv/dev/video/vga.c 		if (sc->blank) {
sc                226 bsp/drv/dev/video/vga.c 			sc->blank = 0;
sc                240 bsp/drv/dev/video/vga.c 	struct vga_softc *sc;
sc                246 bsp/drv/dev/video/vga.c 	sc = device_private(dev);
sc                247 bsp/drv/dev/video/vga.c 	sc->vram = ptokv(VID_RAM);
sc                248 bsp/drv/dev/video/vga.c 	sc->cols = bi->video.text_x;
sc                249 bsp/drv/dev/video/vga.c 	sc->attr = 0x0f;
sc                250 bsp/drv/dev/video/vga.c 	sc->blank = 0;
sc                252 bsp/drv/dev/video/vga.c 	wscons_attach_video(&wscons_vga_ops, sc);
sc                 37 include/ppc/systrap.h 	sc; \
sc                 45 usr/lib/libc/string/strcspn.c 	char c, sc;
sc                 55 usr/lib/libc/string/strcspn.c 			if ((sc = *spanp++) == c)
sc                 57 usr/lib/libc/string/strcspn.c 		} while (sc != 0);
sc                 41 usr/lib/libc/string/strpbrk.c 	int c, sc;
sc                 44 usr/lib/libc/string/strpbrk.c 		for (scanp = s2; (sc = *scanp++) != 0;)
sc                 45 usr/lib/libc/string/strpbrk.c 			if (sc == c)
sc                 52 usr/lib/libc/string/strsep.c 	int c, sc;
sc                 61 usr/lib/libc/string/strsep.c 			if ((sc = *spanp++) == c) {
sc                 69 usr/lib/libc/string/strsep.c 		} while (sc != 0);
sc                 42 usr/lib/libc/string/strspn.c 	char c, sc;
sc                 49 usr/lib/libc/string/strspn.c 	for (spanp = s2; (sc = *spanp++) != 0;)
sc                 50 usr/lib/libc/string/strspn.c 		if (sc == c)
sc                 43 usr/lib/libc/string/strstr.c 	char c, sc;
sc                 50 usr/lib/libc/string/strstr.c 				if ((sc = *s++) == 0)
sc                 52 usr/lib/libc/string/strstr.c 			} while (sc != c);
sc                 42 usr/lib/libc/string/strtok_r.c 	int c, sc;
sc                 53 usr/lib/libc/string/strtok_r.c 	for (spanp = delim; (sc = *spanp++) != 0;) {
sc                 54 usr/lib/libc/string/strtok_r.c 		if (c == sc)
sc                 72 usr/lib/libc/string/strtok_r.c 			if ((sc = *spanp++) == c) {
sc                 80 usr/lib/libc/string/strtok_r.c 		} while (sc != 0);