Home
last modified time | relevance | path

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

/openbmc/linux/drivers/usb/serial/
H A Dpl2303.c575 static const speed_t baud_sup[] = { in pl2303_get_supported_baud_rate() local
583 for (i = 0; i < ARRAY_SIZE(baud_sup); ++i) { in pl2303_get_supported_baud_rate()
584 if (baud_sup[i] > baud) in pl2303_get_supported_baud_rate()
588 if (i == ARRAY_SIZE(baud_sup)) in pl2303_get_supported_baud_rate()
589 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate()
590 else if (i > 0 && (baud_sup[i] - baud) > (baud - baud_sup[i - 1])) in pl2303_get_supported_baud_rate()
591 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate()
593 baud = baud_sup[i]; in pl2303_get_supported_baud_rate()
694 speed_t baud_sup; in pl2303_encode_baud_rate() local
709 baud_sup = baud; in pl2303_encode_baud_rate()
[all …]