Lines Matching refs:sdev
213 static bool console_dev_is_serial(struct stdio_dev *sdev) in console_dev_is_serial() argument
217 if (IS_ENABLED(CONFIG_DM_SERIAL) && (sdev->flags & DEV_FLAGS_DM)) { in console_dev_is_serial()
218 struct udevice *dev = sdev->priv; in console_dev_is_serial()
222 is_serial = !strcmp(sdev->name, "serial"); in console_dev_is_serial()
253 static bool console_needs_start_stop(int file, struct stdio_dev *sdev) in console_needs_start_stop() argument
261 if (iomux_match_device(console_devices[i], cd_count[i], sdev) >= 0) in console_needs_start_stop()
371 static inline bool console_needs_start_stop(int file, struct stdio_dev *sdev) in console_needs_start_stop() argument
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()
444 sdev->stop(sdev); in console_stop()