Searched refs:radj (Results 1 – 1 of 1) sorted by relevance
/linux/drivers/rtc/ |
H A D | rtc-renesas-rtca3.c | 469 u8 val, radj, cycles; in rtca3_read_offset() local 473 radj = readb(priv->base + RTCA3_RADJ); in rtca3_read_offset() 477 cycles = FIELD_GET(RTCA3_RADJ_ADJ, radj); in rtca3_read_offset() 490 val = FIELD_GET(RTCA3_RADJ_PMADJ, radj); in rtca3_read_offset() 501 u8 radj, adjp, tmp; in rtca3_set_offset() local 524 radj = FIELD_PREP(RTCA3_RADJ_ADJ, abs(cycles)); in rtca3_set_offset() 526 radj |= FIELD_PREP(RTCA3_RADJ_PMADJ, RTCA3_RADJ_PMADJ_NONE); in rtca3_set_offset() 528 radj |= FIELD_PREP(RTCA3_RADJ_PMADJ, RTCA3_RADJ_PMADJ_ADD); in rtca3_set_offset() 530 radj |= FIELD_PREP(RTCA3_RADJ_PMADJ, RTCA3_RADJ_PMADJ_SUB); in rtca3_set_offset() 552 writeb(radj, priv->base + RTCA3_RADJ); in rtca3_set_offset() [all …]
|