Lines Matching refs:cprman_read
338 static inline u32 cprman_read(struct bcm2835_cprman *cprman, u32 reg) in cprman_read() function
368 while (cprman_read(cprman, CM_OSCCOUNT)) { in bcm2835_measure_tcnt_mux()
379 while (cprman_read(cprman, CM_TCNTCTL) & CM_BUSY) { in bcm2835_measure_tcnt_mux()
388 count = cprman_read(cprman, CM_TCNTCNT); in bcm2835_measure_tcnt_mux()
524 return cprman_read(cprman, data->a2w_ctrl_reg) & in bcm2835_pll_is_on()
574 u32 a2wctrl = cprman_read(cprman, data->a2w_ctrl_reg); in bcm2835_pll_get_rate()
581 fdiv = cprman_read(cprman, data->frac_reg) & A2W_PLL_FRAC_MASK; in bcm2835_pll_get_rate()
584 using_prediv = cprman_read(cprman, data->ana_reg_base + 4) & in bcm2835_pll_get_rate()
604 cprman_read(cprman, data->a2w_ctrl_reg) | in bcm2835_pll_off()
617 cprman_read(cprman, data->a2w_ctrl_reg) & in bcm2835_pll_on()
623 cprman_read(cprman, data->cm_ctrl_reg) & ~CM_PLL_ANARST); in bcm2835_pll_on()
628 while (!(cprman_read(cprman, CM_LOCK) & data->lock_mask)) { in bcm2835_pll_on()
639 cprman_read(cprman, data->a2w_ctrl_reg) | in bcm2835_pll_on()
683 ana[i] = cprman_read(cprman, data->ana_reg_base + i * 4); in bcm2835_pll_set_rate()
707 cprman_read(cprman, A2W_XOSC_CTRL) | in bcm2835_pll_set_rate()
717 a2w_ctl = cprman_read(cprman, data->a2w_ctrl_reg); in bcm2835_pll_set_rate()
788 return !(cprman_read(cprman, data->a2w_reg) & A2W_PLL_CHANNEL_DISABLE); in bcm2835_pll_divider_is_on()
812 (cprman_read(cprman, data->cm_reg) & in bcm2835_pll_divider_off()
815 cprman_read(cprman, data->a2w_reg) | in bcm2835_pll_divider_off()
828 cprman_read(cprman, data->a2w_reg) & in bcm2835_pll_divider_on()
832 cprman_read(cprman, data->cm_reg) & ~data->hold_mask); in bcm2835_pll_divider_on()
854 cm = cprman_read(cprman, data->cm_reg); in bcm2835_pll_divider_set_rate()
914 return (cprman_read(cprman, data->ctl_reg) & CM_ENABLE) != 0; in bcm2835_clock_is_on()
997 div = cprman_read(cprman, data->div_reg); in bcm2835_clock_get_rate()
1008 while (cprman_read(cprman, data->ctl_reg) & CM_BUSY) { in bcm2835_clock_wait_busy()
1026 cprman_read(cprman, data->ctl_reg) & ~CM_ENABLE); in bcm2835_clock_off()
1041 cprman_read(cprman, data->ctl_reg) | in bcm2835_clock_on()
1079 ctl = cprman_read(cprman, data->ctl_reg) & ~CM_FRAC; in bcm2835_clock_set_rate()
1238 u32 src = cprman_read(cprman, data->ctl_reg); in bcm2835_clock_get_parent()
1433 if (!(cprman_read(cprman, data->ctl_reg) & CM_ENABLE)) in bcm2835_register_clock()