Lines Matching refs:sdev
390 static void vidconsole_putc(struct stdio_dev *sdev, const char ch) in vidconsole_putc() argument
392 struct udevice *dev = sdev->priv; in vidconsole_putc()
398 static void vidconsole_puts(struct stdio_dev *sdev, const char *s) in vidconsole_puts() argument
400 struct udevice *dev = sdev->priv; in vidconsole_puts()
423 struct stdio_dev *sdev = &priv->sdev; in vidconsole_post_probe() local
429 snprintf(sdev->name, sizeof(sdev->name), "vidconsole%d", in vidconsole_post_probe()
432 strcpy(sdev->name, "vidconsole"); in vidconsole_post_probe()
435 sdev->flags = DEV_FLAGS_OUTPUT; in vidconsole_post_probe()
436 sdev->putc = vidconsole_putc; in vidconsole_post_probe()
437 sdev->puts = vidconsole_puts; in vidconsole_post_probe()
438 sdev->priv = dev; in vidconsole_post_probe()
440 return stdio_register(sdev); in vidconsole_post_probe()