Lines Matching refs:sdev
221 static bool console_dev_is_serial(struct stdio_dev *sdev) in console_dev_is_serial() argument
225 if (IS_ENABLED(CONFIG_DM_SERIAL) && (sdev->flags & DEV_FLAGS_DM)) { in console_dev_is_serial()
226 struct udevice *dev = sdev->priv; in console_dev_is_serial()
230 is_serial = !strcmp(sdev->name, "serial"); in console_dev_is_serial()
261 static bool console_needs_start_stop(int file, struct stdio_dev *sdev) in console_needs_start_stop() argument
269 if (iomux_match_device(console_devices[i], cd_count[i], sdev) >= 0) in console_needs_start_stop()
393 static inline bool console_needs_start_stop(int file, struct stdio_dev *sdev) in console_needs_start_stop() argument
452 int console_start(int file, struct stdio_dev *sdev) in console_start() argument
456 if (!console_needs_start_stop(file, sdev)) in console_start()
460 if (sdev->start) { in console_start()
461 error = sdev->start(sdev); in console_start()
469 void console_stop(int file, struct stdio_dev *sdev) in console_stop() argument
471 if (!console_needs_start_stop(file, sdev)) in console_stop()
474 if (sdev->stop) in console_stop()
475 sdev->stop(sdev); in console_stop()