Home
last modified time | relevance | path

Searched refs:sdev (Results 1 – 17 of 17) sorted by relevance

/u-boot/drivers/input/
A Dkeyboard-uclass.c13 struct udevice *dev = sdev->priv; in keyboard_start()
24 struct udevice *dev = sdev->priv; in keyboard_stop()
35 struct udevice *dev = sdev->priv; in keyboard_tstc()
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()
[all …]
A Dcros_ec_keyb.c206 struct stdio_dev *sdev = &uc_priv->sdev; in cros_ec_kbd_probe() local
234 strcpy(sdev->name, "cros-ec-keyb"); in cros_ec_kbd_probe()
237 return input_stdio_register(sdev); in cros_ec_kbd_probe()
A Di8042.c321 struct stdio_dev *sdev = &uc_priv->sdev; in i8042_kbd_probe() local
333 strcpy(sdev->name, "i8042-kbd"); in i8042_kbd_probe()
334 ret = input_stdio_register(sdev); in i8042_kbd_probe()
A Dtegra-kbc.c290 struct stdio_dev *sdev = &uc_priv->sdev; in tegra_kbd_probe() local
328 strcpy(sdev->name, "tegra-kbc"); in tegra_kbd_probe()
329 ret = input_stdio_register(sdev); in tegra_kbd_probe()
/u-boot/drivers/serial/
A Dserial-uclass.c359 _serial_putc(sdev->priv, ch); in serial_stub_putc()
365 _serial_puts(sdev->priv, str); in serial_stub_puts()
446 struct stdio_dev sdev; in serial_post_probe() local
482 memset(&sdev, '\0', sizeof(sdev)); in serial_post_probe()
484 strncpy(sdev.name, dev->name, sizeof(sdev.name)); in serial_post_probe()
486 sdev.priv = dev; in serial_post_probe()
487 sdev.putc = serial_stub_putc; in serial_post_probe()
488 sdev.puts = serial_stub_puts; in serial_post_probe()
489 sdev.getc = serial_stub_getc; in serial_post_probe()
490 sdev.tstc = serial_stub_tstc; in serial_post_probe()
[all …]
A Dserial.c191 static int serial_stub_start(struct stdio_dev *sdev) in serial_stub_start() argument
193 struct serial_device *dev = sdev->priv; in serial_stub_start()
198 static int serial_stub_stop(struct stdio_dev *sdev) in serial_stub_stop() argument
200 struct serial_device *dev = sdev->priv; in serial_stub_stop()
205 static void serial_stub_putc(struct stdio_dev *sdev, const char ch) in serial_stub_putc() argument
207 struct serial_device *dev = sdev->priv; in serial_stub_putc()
214 struct serial_device *dev = sdev->priv; in serial_stub_puts()
219 static int serial_stub_getc(struct stdio_dev *sdev) in serial_stub_getc() argument
221 struct serial_device *dev = sdev->priv; in serial_stub_getc()
226 static int serial_stub_tstc(struct stdio_dev *sdev) in serial_stub_tstc() argument
[all …]
/u-boot/common/
A Dstdio.c153 struct stdio_dev *sdev; in stdio_probe_device() local
170 sdev = list_empty(&devs.list) ? NULL : in stdio_probe_device()
172 if (!sdev || strcmp(sdev->name, name)) { in stdio_probe_device()
177 *sdevp = sdev; in stdio_probe_device()
185 struct stdio_dev *sdev; in stdio_get_by_name() local
191 sdev = list_entry(pos, struct stdio_dev, list); in stdio_get_by_name()
192 if (strcmp(sdev->name, name) == 0) in stdio_get_by_name()
193 return sdev; in stdio_get_by_name()
209 !stdio_probe_device(name, UCLASS_VIDEO, &sdev)) in stdio_get_by_name()
210 return sdev; in stdio_get_by_name()
A Dconsole.c213 static bool console_dev_is_serial(struct stdio_dev *sdev) in console_dev_is_serial() argument
218 struct udevice *dev = sdev->priv; in console_dev_is_serial()
222 is_serial = !strcmp(sdev->name, "serial"); in console_dev_is_serial()
421 int console_start(int file, struct stdio_dev *sdev) in console_start() argument
425 if (!console_needs_start_stop(file, sdev)) in console_start()
429 if (sdev->start) { in console_start()
430 error = sdev->start(sdev); in console_start()
438 void console_stop(int file, struct stdio_dev *sdev) in console_stop() argument
440 if (!console_needs_start_stop(file, sdev)) in console_stop()
443 if (sdev->stop) in console_stop()
[all …]
A Dusb_kbd.c391 static int usb_kbd_testc(struct stdio_dev *sdev) argument
407 dev = stdio_get_by_name(sdev->name);
417 static int usb_kbd_getc(struct stdio_dev *sdev) argument
423 dev = stdio_get_by_name(sdev->name);
659 struct stdio_dev *sdev; local
662 sdev = stdio_get_by_name(DEVNAME);
663 if (!sdev) {
674 if (stdio_deregister_dev(sdev, true)) {
A Diomux.c23 int iomux_match_device(struct stdio_dev **set, const int n, struct stdio_dev *sdev) in iomux_match_device() argument
28 if (sdev == set[i]) in iomux_match_device()
/u-boot/drivers/video/
A Dvidconsole-uclass.c567 static void vidconsole_putc(struct stdio_dev *sdev, const char ch) in vidconsole_putc() argument
569 struct udevice *dev = sdev->priv; in vidconsole_putc()
588 struct udevice *dev = sdev->priv; in vidconsole_puts()
624 struct stdio_dev *sdev = &priv->sdev; in vidconsole_post_probe() local
630 snprintf(sdev->name, sizeof(sdev->name), "vidconsole%d", in vidconsole_post_probe()
633 strcpy(sdev->name, "vidconsole"); in vidconsole_post_probe()
636 sdev->flags = DEV_FLAGS_OUTPUT; in vidconsole_post_probe()
637 sdev->putc = vidconsole_putc; in vidconsole_post_probe()
638 sdev->puts = vidconsole_puts; in vidconsole_post_probe()
639 sdev->priv = dev; in vidconsole_post_probe()
[all …]
/u-boot/include/
A Dconsole.h19 int console_start(int file, struct stdio_dev *sdev); /* Start a console device */
20 void console_stop(int file, struct stdio_dev *sdev); /* Stop a console device */
A Dkeyboard.h14 struct stdio_dev sdev; member
A Dvideo_console.h66 struct stdio_dev sdev; member
A Dserial.h278 struct stdio_dev *sdev; member
/u-boot/include/configs/
A Dnokia_rx51.h106 int rx51_kp_tstc(struct stdio_dev *sdev);
107 int rx51_kp_getc(struct stdio_dev *sdev);
/u-boot/board/nokia/rx51/
A Drx51.c632 int rx51_kp_tstc(struct stdio_dev *sdev) in rx51_kp_tstc() argument
688 int rx51_kp_getc(struct stdio_dev *sdev) in rx51_kp_getc() argument
691 while (!rx51_kp_tstc(sdev)) in rx51_kp_getc()

Completed in 46 milliseconds