Lines Matching refs:cprman_read
340 static inline u32 cprman_read(struct bcm2835_cprman *cprman, u32 reg) in cprman_read() function
370 while (cprman_read(cprman, CM_OSCCOUNT)) { in bcm2835_measure_tcnt_mux()
381 while (cprman_read(cprman, CM_TCNTCTL) & CM_BUSY) { in bcm2835_measure_tcnt_mux()
390 count = cprman_read(cprman, CM_TCNTCNT); in bcm2835_measure_tcnt_mux()
529 return cprman_read(cprman, data->a2w_ctrl_reg) & in bcm2835_pll_is_on()
593 u32 a2wctrl = cprman_read(cprman, data->a2w_ctrl_reg); in bcm2835_pll_get_rate()
600 fdiv = cprman_read(cprman, data->frac_reg) & A2W_PLL_FRAC_MASK; in bcm2835_pll_get_rate()
603 using_prediv = cprman_read(cprman, data->ana_reg_base + 4) & in bcm2835_pll_get_rate()
623 cprman_read(cprman, data->a2w_ctrl_reg) | in bcm2835_pll_off()
636 cprman_read(cprman, data->a2w_ctrl_reg) & in bcm2835_pll_on()
642 cprman_read(cprman, data->cm_ctrl_reg) & ~CM_PLL_ANARST); in bcm2835_pll_on()
647 while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) { in bcm2835_pll_on()
658 cprman_read(cprman, data->a2w_ctrl_reg) | in bcm2835_pll_on()
703 ana[i] = cprman_read(cprman, data->ana_reg_base + i * 4); in bcm2835_pll_set_rate()
727 cprman_read(cprman, A2W_XOSC_CTRL) | in bcm2835_pll_set_rate()
737 a2w_ctl = cprman_read(cprman, data->a2w_ctrl_reg); in bcm2835_pll_set_rate()
808 return !(cprman_read(cprman, data->a2w_reg) & A2W_PLL_CHANNEL_DISABLE); in bcm2835_pll_divider_is_on()
831 (cprman_read(cprman, data->cm_reg) & in bcm2835_pll_divider_off()
834 cprman_read(cprman, data->a2w_reg) | in bcm2835_pll_divider_off()
847 cprman_read(cprman, data->a2w_reg) & in bcm2835_pll_divider_on()
851 cprman_read(cprman, data->cm_reg) & ~data->hold_mask); in bcm2835_pll_divider_on()
873 cm = cprman_read(cprman, data->cm_reg); in bcm2835_pll_divider_set_rate()
933 return (cprman_read(cprman, data->ctl_reg) & CM_ENABLE) != 0; in bcm2835_clock_is_on()
1032 div = cprman_read(cprman, data->div_reg); in bcm2835_clock_get_rate()
1048 while (cprman_read(cprman, data->ctl_reg) & CM_BUSY) { in bcm2835_clock_wait_busy()
1066 cprman_read(cprman, data->ctl_reg) & ~CM_ENABLE); in bcm2835_clock_off()
1081 cprman_read(cprman, data->ctl_reg) | in bcm2835_clock_on()
1119 ctl = cprman_read(cprman, data->ctl_reg) & ~CM_FRAC; in bcm2835_clock_set_rate()
1278 u32 src = cprman_read(cprman, data->ctl_reg); in bcm2835_clock_get_parent()
1479 if (!(cprman_read(cprman, clock_data->ctl_reg) & CM_ENABLE)) in bcm2835_register_clock()