Home
last modified time | relevance | path

Searched refs:CH341_CLK_DIV (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/usb/serial/
H A Dch341.c157 #define CH341_CLK_DIV(ps, fact) (1 << (12 - 3 * (ps) - (fact))) macro
158 #define CH341_MIN_RATE(ps) (CH341_CLKRATE / (CH341_CLK_DIV((ps), 1) * 512))
168 #define CH341_MIN_BPS DIV_ROUND_UP(CH341_CLKRATE, CH341_CLK_DIV(0, 0) * 256)
169 #define CH341_MAX_BPS (CH341_CLKRATE / (CH341_CLK_DIV(3, 0) * 2))
207 clk_div = CH341_CLK_DIV(ps, fact); in ch341_get_divisor()
/kernel/linux/linux-6.6/drivers/usb/serial/
H A Dch341.c151 #define CH341_CLK_DIV(ps, fact) (1 << (12 - 3 * (ps) - (fact))) macro
152 #define CH341_MIN_RATE(ps) (CH341_CLKRATE / (CH341_CLK_DIV((ps), 1) * 512))
162 #define CH341_MIN_BPS DIV_ROUND_UP(CH341_CLKRATE, CH341_CLK_DIV(0, 0) * 256)
163 #define CH341_MAX_BPS (CH341_CLKRATE / (CH341_CLK_DIV(3, 0) * 2))
201 clk_div = CH341_CLK_DIV(ps, fact); in ch341_get_divisor()

Completed in 4 milliseconds