/u-boot/drivers/input/ |
A D | keyboard-uclass.c | 13 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 D | cros_ec_keyb.c | 206 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 D | i8042.c | 321 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 D | tegra-kbc.c | 290 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 D | serial-uclass.c | 359 _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 D | serial.c | 191 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 D | stdio.c | 153 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 D | console.c | 213 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 D | usb_kbd.c | 391 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 D | iomux.c | 23 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 D | vidconsole-uclass.c | 567 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 D | console.h | 19 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 D | keyboard.h | 14 struct stdio_dev sdev; member
|
A D | video_console.h | 66 struct stdio_dev sdev; member
|
A D | serial.h | 278 struct stdio_dev *sdev; member
|
/u-boot/include/configs/ |
A D | nokia_rx51.h | 106 int rx51_kp_tstc(struct stdio_dev *sdev); 107 int rx51_kp_getc(struct stdio_dev *sdev);
|
/u-boot/board/nokia/rx51/ |
A D | rx51.c | 632 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()
|