Lines Matching refs:sdev
10 static int keyboard_start(struct stdio_dev *sdev) in keyboard_start() argument
12 struct udevice *dev = sdev->priv; in keyboard_start()
21 static int keyboard_stop(struct stdio_dev *sdev) in keyboard_stop() argument
23 struct udevice *dev = sdev->priv; in keyboard_stop()
32 static int keyboard_tstc(struct stdio_dev *sdev) in keyboard_tstc() argument
34 struct udevice *dev = sdev->priv; in keyboard_tstc()
47 static int keyboard_getc(struct stdio_dev *sdev) in keyboard_getc() argument
49 struct udevice *dev = sdev->priv; in keyboard_getc()
65 struct stdio_dev *sdev = &priv->sdev; in keyboard_pre_probe() local
68 strlcpy(sdev->name, dev->name, sizeof(sdev->name)); in keyboard_pre_probe()
69 sdev->flags = DEV_FLAGS_INPUT; in keyboard_pre_probe()
70 sdev->getc = keyboard_getc; in keyboard_pre_probe()
71 sdev->tstc = keyboard_tstc; in keyboard_pre_probe()
72 sdev->start = keyboard_start; in keyboard_pre_probe()
73 sdev->stop = keyboard_stop; in keyboard_pre_probe()
74 sdev->priv = dev; in keyboard_pre_probe()