Lines Matching full:pfd
243 const struct vc3_pfd_data *pfd = vc3->data; in vc3_pfd_recalc_rate() local
248 regmap_read(vc3->regmap, pfd->offs, &prediv); in vc3_pfd_recalc_rate()
249 if (pfd->num == VC3_PFD1) { in vc3_pfd_recalc_rate()
251 if (prediv & pfd->mdiv1_bitmsk) { in vc3_pfd_recalc_rate()
259 } else if (pfd->num == VC3_PFD2) { in vc3_pfd_recalc_rate()
261 if (prediv & pfd->mdiv1_bitmsk) { in vc3_pfd_recalc_rate()
272 if (prediv & pfd->mdiv1_bitmsk) in vc3_pfd_recalc_rate()
278 if (prediv & pfd->mdiv2_bitmsk) in vc3_pfd_recalc_rate()
290 const struct vc3_pfd_data *pfd = vc3->data; in vc3_pfd_round_rate() local
302 if (pfd->num == VC3_PFD1 || pfd->num == VC3_PFD3) { in vc3_pfd_round_rate()
317 const struct vc3_pfd_data *pfd = vc3->data; in vc3_pfd_set_rate() local
323 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv1_bitmsk, in vc3_pfd_set_rate()
324 pfd->mdiv1_bitmsk); in vc3_pfd_set_rate()
325 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv2_bitmsk, 0); in vc3_pfd_set_rate()
332 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv2_bitmsk, in vc3_pfd_set_rate()
333 pfd->mdiv2_bitmsk); in vc3_pfd_set_rate()
334 regmap_update_bits(vc3->regmap, pfd->offs, pfd->mdiv1_bitmsk, 0); in vc3_pfd_set_rate()
336 if (pfd->num == VC3_PFD1) in vc3_pfd_set_rate()
338 else if (pfd->num == VC3_PFD2) in vc3_pfd_set_rate()
343 regmap_write(vc3->regmap, pfd->offs, div); in vc3_pfd_set_rate()
1014 /* Register pfd muxes */ in vc3_probe()
1023 /* Register pfd's */ in vc3_probe()