Lines Matching defs:baudclk
49 clk_t baudclk;
124 snps_get_clocks(device_t dev, clk_t *baudclk, clk_t *apb_pclk)
127 *baudclk = NULL;
130 /* Baud clock is either named "baudclk", or there is a single
133 if (clk_get_by_ofw_name(dev, 0, "baudclk", baudclk) != 0 &&
134 clk_get_by_ofw_index(dev, 0, 0, baudclk) != 0)
152 clk_t baudclk, apb_pclk;
183 if (snps_get_clocks(dev, &baudclk, &apb_pclk) == 0) {
184 error = clk_enable(baudclk);
199 error = clk_get_freq(baudclk, &freq);
219 sc->baudclk = baudclk;
246 clk_t baudclk, apb_pclk;
251 baudclk = sc->baudclk;
274 if (baudclk != NULL) {
275 error = clk_release(baudclk);