Home | History | Annotate | Download | only in input

Lines Matching defs:sdev

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