Searched refs:stgen_d (Results 1 – 1 of 1) sorted by relevance
56 static struct stgen_pdata stgen_d; variable60 io_write64(stgen_d.base + STGENC_CNTCVL, counter); in set_counter_value()65 return io_read64(stgen_d.base + STGENC_CNTCVL); in stm32_stgen_get_counter_value()104 io_clrbits32(stgen_d.base + STGENC_CNTCR, STGENC_CNTCR_EN); in stm32_stgen_pm_suspend()107 res = rtc_get_time(stgen_d.calendar); in stm32_stgen_pm_suspend()113 &stgen_d.cnt_h, &stgen_d.cnt_l); in stm32_stgen_pm_suspend()116 io_setbits32(stgen_d.base + STGENC_CNTCR, STGENC_CNTCR_EN); in stm32_stgen_pm_suspend()121 uint64_t counter_val = reg_pair_to_64(stgen_d.cnt_h, stgen_d.cnt_l); in stm32_stgen_pm_resume()122 unsigned long clock_src_rate = clk_get_rate(stgen_d.stgen_clock); in stm32_stgen_pm_resume()128 io_clrbits32(stgen_d.base + STGENC_CNTCR, STGENC_CNTCR_EN); in stm32_stgen_pm_resume()[all …]