Lines Matching refs:stp_info
439 static struct stp_sstpi stp_info; variable
535 int rc = chsc_sstpi(stp_page, &stp_info, sizeof(struct stp_sstpi)); in __store_stpinfo()
562 if (stp_info.todoff || stp_info.tmd != 2) { in stp_sync_clock()
570 if (rc == 0 && stp_info.tmd != 2) in stp_sync_clock()
617 if (!stp_info.lu || !check_sync_clock()) { in stp_check_leap()
691 if (rc || stp_info.c == 0) in stp_work_fn()
709 else if (stp_info.lu) in stp_work_fn()
733 *(unsigned long *) stp_info.ctnid); in ctn_id_show()
748 ret = sprintf(buf, "%i\n", stp_info.ctn); in ctn_type_show()
762 if (stpinfo_valid() && (stp_info.vbits & 0x2000)) in dst_offset_show()
763 ret = sprintf(buf, "%i\n", (int)(s16) stp_info.dsto); in dst_offset_show()
777 if (stpinfo_valid() && (stp_info.vbits & 0x8000)) in leap_seconds_show()
778 ret = sprintf(buf, "%i\n", (int)(s16) stp_info.leaps); in leap_seconds_show()
793 if (!stpinfo_valid() || !(stp_info.vbits & 0x8000) || !stp_info.lu) { in leap_seconds_scheduled_show()
821 ret = sprintf(buf, "%i\n", (int)(s16) stp_info.stratum); in stratum_show()
835 if (stpinfo_valid() && (stp_info.vbits & 0x0800)) in time_offset_show()
836 ret = sprintf(buf, "%i\n", (int) stp_info.tto); in time_offset_show()
850 if (stpinfo_valid() && (stp_info.vbits & 0x4000)) in time_zone_offset_show()
851 ret = sprintf(buf, "%i\n", (int)(s16) stp_info.tzo); in time_zone_offset_show()
866 ret = sprintf(buf, "%i\n", stp_info.tmd); in timing_mode_show()
881 ret = sprintf(buf, "%i\n", stp_info.tst); in timing_state_show()