Home
last modified time | relevance | path

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

/Linux-v6.1/drivers/usb/serial/
Dpl2303.c574 static const speed_t baud_sup[] = { in pl2303_get_supported_baud_rate() local
582 for (i = 0; i < ARRAY_SIZE(baud_sup); ++i) { in pl2303_get_supported_baud_rate()
583 if (baud_sup[i] > baud) in pl2303_get_supported_baud_rate()
587 if (i == ARRAY_SIZE(baud_sup)) in pl2303_get_supported_baud_rate()
588 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate()
589 else if (i > 0 && (baud_sup[i] - baud) > (baud - baud_sup[i - 1])) in pl2303_get_supported_baud_rate()
590 baud = baud_sup[i - 1]; in pl2303_get_supported_baud_rate()
592 baud = baud_sup[i]; in pl2303_get_supported_baud_rate()
693 speed_t baud_sup; in pl2303_encode_baud_rate() local
708 baud_sup = baud; in pl2303_encode_baud_rate()
[all …]