Lines Matching refs:sdev
11 static int keyboard_start(struct stdio_dev *sdev) in keyboard_start() argument
13 struct udevice *dev = sdev->priv; in keyboard_start()
22 static int keyboard_stop(struct stdio_dev *sdev) in keyboard_stop() argument
24 struct udevice *dev = sdev->priv; in keyboard_stop()
33 static int keyboard_tstc(struct stdio_dev *sdev) in keyboard_tstc() argument
35 struct udevice *dev = sdev->priv; in keyboard_tstc()
48 static int keyboard_getc(struct stdio_dev *sdev) in keyboard_getc() argument
50 struct udevice *dev = sdev->priv; in keyboard_getc()
66 struct stdio_dev *sdev = &priv->sdev; in keyboard_pre_probe() local
69 strlcpy(sdev->name, dev->name, sizeof(sdev->name)); in keyboard_pre_probe()
70 sdev->flags = DEV_FLAGS_INPUT; in keyboard_pre_probe()
71 sdev->getc = keyboard_getc; in keyboard_pre_probe()
72 sdev->tstc = keyboard_tstc; in keyboard_pre_probe()
73 sdev->start = keyboard_start; in keyboard_pre_probe()
74 sdev->stop = keyboard_stop; in keyboard_pre_probe()
75 sdev->priv = dev; in keyboard_pre_probe()