Searched refs:gclk_rate (Results 1 – 5 of 5) sorted by relevance
/linux-6.1.9/sound/soc/atmel/ |
D | atmel-pdmic.c | 366 unsigned long pclk_rate, gclk_rate; in atmel_pdmic_cpu_dai_hw_params() local 406 gclk_rate = clk_get_rate(dd->gclk); in atmel_pdmic_cpu_dai_hw_params() 410 gclk_prescal = (u32)(gclk_rate/(f_pdmic << 1)) - 1; in atmel_pdmic_cpu_dai_hw_params() 413 (gclk_rate/((gclk_prescal + 1) << 1) < in atmel_pdmic_cpu_dai_hw_params()
|
D | mchp-pdmc.c | 568 unsigned long gclk_rate = 0; in mchp_pdmc_hw_params() local 615 gclk_rate = fs * 16 * osr; in mchp_pdmc_hw_params() 618 if (!gclk_rate) { in mchp_pdmc_hw_params() 624 ret = clk_set_rate(dd->gclk, gclk_rate); in mchp_pdmc_hw_params() 627 gclk_rate, ret); in mchp_pdmc_hw_params()
|
D | atmel-classd.c | 316 unsigned long gclk_rate; member 363 sample_rates[best].rate, sample_rates[best].gclk_rate); in atmel_classd_cpu_dai_hw_params() 367 ret = clk_set_rate(dd->gclk, sample_rates[best].gclk_rate); in atmel_classd_cpu_dai_hw_params()
|
D | atmel-i2s.c | 420 unsigned long gclk_rate; in atmel_i2s_switch_mck_generator() local 450 gclk_rate = dev->gck_param->mck * (dev->gck_param->imckdiv + 1); in atmel_i2s_switch_mck_generator() 452 ret = clk_set_rate(dev->gclk, gclk_rate); in atmel_i2s_switch_mck_generator()
|
/linux-6.1.9/drivers/tty/serial/ |
D | atmel_serial.c | 2145 unsigned int baud, actual_baud, gclk_rate; in atmel_set_termios() local 2328 gclk_rate = clk_round_rate(atmel_port->gclk, 16 * baud); in atmel_set_termios() 2330 if (gclk_rate && abs(atmel_error_rate(baud, actual_baud)) > in atmel_set_termios() 2331 abs(atmel_error_rate(baud, gclk_rate / 16))) { in atmel_set_termios()
|