Lines Matching refs:stp_info
499 static struct stp_sstpi stp_info; variable
607 if (stp_info.todoff[0] || stp_info.todoff[1] || in stp_sync_clock()
608 stp_info.todoff[2] || stp_info.todoff[3] || in stp_sync_clock()
609 stp_info.tmd != 2) { in stp_sync_clock()
615 rc = chsc_sstpi(stp_page, &stp_info, in stp_sync_clock()
617 if (rc == 0 && stp_info.tmd != 2) in stp_sync_clock()
661 rc = chsc_sstpi(stp_page, &stp_info, sizeof(struct stp_sstpi)); in stp_work_fn()
662 if (rc || stp_info.c == 0) in stp_work_fn()
701 *(unsigned long long *) stp_info.ctnid); in stp_ctn_id_show()
712 return sprintf(buf, "%i\n", stp_info.ctn); in stp_ctn_type_show()
721 if (!stp_online || !(stp_info.vbits & 0x2000)) in stp_dst_offset_show()
723 return sprintf(buf, "%i\n", (int)(s16) stp_info.dsto); in stp_dst_offset_show()
732 if (!stp_online || !(stp_info.vbits & 0x8000)) in stp_leap_seconds_show()
734 return sprintf(buf, "%i\n", (int)(s16) stp_info.leaps); in stp_leap_seconds_show()
745 return sprintf(buf, "%i\n", (int)(s16) stp_info.stratum); in stp_stratum_show()
754 if (!stp_online || !(stp_info.vbits & 0x0800)) in stp_time_offset_show()
756 return sprintf(buf, "%i\n", (int) stp_info.tto); in stp_time_offset_show()
765 if (!stp_online || !(stp_info.vbits & 0x4000)) in stp_time_zone_offset_show()
767 return sprintf(buf, "%i\n", (int)(s16) stp_info.tzo); in stp_time_zone_offset_show()
779 return sprintf(buf, "%i\n", stp_info.tmd); in stp_timing_mode_show()
790 return sprintf(buf, "%i\n", stp_info.tst); in stp_timing_state_show()