Lines Matching refs:value
29 u32 value = readl(ioaddr + PTP_TCR); in config_sub_second_increment() local
41 if (value & PTP_TCR_TSCFUPDT) in config_sub_second_increment()
47 if (!(value & PTP_TCR_TSCTRLSSR)) in config_sub_second_increment()
107 u32 value; in init_systime() local
112 value = readl(ioaddr + PTP_TCR); in init_systime()
113 value |= PTP_TCR_TSINIT; in init_systime()
114 writel(value, ioaddr + PTP_TCR); in init_systime()
117 return readl_poll_timeout_atomic(ioaddr + PTP_TCR, value, in init_systime()
118 !(value & PTP_TCR_TSINIT), in init_systime()
124 u32 value; in config_addend() local
129 value = readl(ioaddr + PTP_TCR); in config_addend()
130 value |= PTP_TCR_TSADDREG; in config_addend()
131 writel(value, ioaddr + PTP_TCR); in config_addend()
149 u32 value; in adjust_systime() local
160 value = readl(ioaddr + PTP_TCR); in adjust_systime()
161 if (value & PTP_TCR_TSCTRLSSR) in adjust_systime()
168 value = (add_sub << PTP_STNSUR_ADDSUB_SHIFT) | nsec; in adjust_systime()
169 writel(value, ioaddr + PTP_STNSUR); in adjust_systime()
172 value = readl(ioaddr + PTP_TCR); in adjust_systime()
173 value |= PTP_TCR_TSUPDT; in adjust_systime()
174 writel(value, ioaddr + PTP_TCR); in adjust_systime()