Lines Matching refs:synth

57 	struct clk_si5341_synth synth[SI5341_NUM_SYNTH];  member
402 struct clk_si5341_synth *synth = to_clk_si5341_synth(hw); in si5341_synth_clk_is_on() local
405 u8 index = synth->index; in si5341_synth_clk_is_on()
407 err = regmap_read(synth->data->regmap, in si5341_synth_clk_is_on()
415 err = regmap_read(synth->data->regmap, SI5341_SYNTH_N_PDNB, &val); in si5341_synth_clk_is_on()
423 err = regmap_read(synth->data->regmap, SI5341_SYNTH_N_CLK_DIS, &val); in si5341_synth_clk_is_on()
432 struct clk_si5341_synth *synth = to_clk_si5341_synth(hw); in si5341_synth_clk_unprepare() local
433 u8 index = synth->index; /* In range 0..5 */ in si5341_synth_clk_unprepare()
437 regmap_update_bits(synth->data->regmap, in si5341_synth_clk_unprepare()
440 regmap_update_bits(synth->data->regmap, in si5341_synth_clk_unprepare()
443 regmap_update_bits(synth->data->regmap, in si5341_synth_clk_unprepare()
449 struct clk_si5341_synth *synth = to_clk_si5341_synth(hw); in si5341_synth_clk_prepare() local
451 u8 index = synth->index; in si5341_synth_clk_prepare()
455 err = regmap_update_bits(synth->data->regmap, in si5341_synth_clk_prepare()
461 err = regmap_update_bits(synth->data->regmap, in si5341_synth_clk_prepare()
467 return regmap_update_bits(synth->data->regmap, in si5341_synth_clk_prepare()
475 struct clk_si5341_synth *synth = to_clk_si5341_synth(hw); in si5341_synth_clk_recalc_rate() local
481 err = si5341_decode_44_32(synth->data->regmap, in si5341_synth_clk_recalc_rate()
482 SI5341_SYNTH_N_NUM(synth->index), &n_num, &n_den); in si5341_synth_clk_recalc_rate()
490 f = synth->data->freq_vco; in si5341_synth_clk_recalc_rate()
503 struct clk_si5341_synth *synth = to_clk_si5341_synth(hw); in si5341_synth_clk_round_rate() local
507 f = synth->data->freq_vco; in si5341_synth_clk_round_rate()
512 f = synth->data->freq_vco; in si5341_synth_clk_round_rate()
520 static int si5341_synth_program(struct clk_si5341_synth *synth, in si5341_synth_program() argument
524 u8 index = synth->index; in si5341_synth_program()
526 err = si5341_encode_44_32(synth->data->regmap, in si5341_synth_program()
529 err = regmap_update_bits(synth->data->regmap, in si5341_synth_program()
534 return regmap_write(synth->data->regmap, in si5341_synth_program()
542 struct clk_si5341_synth *synth = to_clk_si5341_synth(hw); in si5341_synth_clk_set_rate() local
549 n_num = synth->data->freq_vco; in si5341_synth_clk_set_rate()
565 dev_dbg(&synth->data->i2c_client->dev, in si5341_synth_clk_set_rate()
567 synth->index, n_num, n_den, in si5341_synth_clk_set_rate()
570 return si5341_synth_program(synth, n_num, n_den, is_integer); in si5341_synth_clk_set_rate()
806 return &data->synth[idx].hw; in of_clk_si5341_get()
1254 data->synth[i].index = i; in si5341_probe()
1255 data->synth[i].data = data; in si5341_probe()
1256 data->synth[i].hw.init = &init; in si5341_probe()
1257 err = devm_clk_hw_register(&client->dev, &data->synth[i].hw); in si5341_probe()