Lines Matching refs:ts

198 	struct pcf21xx_ts_config ts[PCF2127_MAX_TS_SUPPORTED];  member
208 time64_t ts[PCF2127_MAX_TS_SUPPORTED]; /* Timestamp values. */ member
611 static int pcf2127_rtc_ts_read(struct device *dev, time64_t *ts, in pcf2127_rtc_ts_read() argument
619 ret = regmap_bulk_read(pcf2127->regmap, pcf2127->cfg->ts[ts_id].reg_base, in pcf2127_rtc_ts_read()
646 *ts = rtc_tm_to_time64(&tm); in pcf2127_rtc_ts_read()
662 ret = pcf2127_rtc_ts_read(dev, &pcf2127->ts[ts_id], ts_id); in pcf2127_rtc_ts_snapshot()
763 pcf2127->cfg->ts[ts_id].gnd_detect_reg, in timestamp_store()
764 pcf2127->cfg->ts[ts_id].gnd_detect_bit, in timestamp_store()
772 if (pcf2127->cfg->ts[ts_id].inter_detect_bit) { in timestamp_store()
775 pcf2127->cfg->ts[ts_id].inter_detect_reg, in timestamp_store()
776 pcf2127->cfg->ts[ts_id].inter_detect_bit, in timestamp_store()
827 time64_t ts; in timestamp_show() local
835 ts = pcf2127->ts[ts_id]; in timestamp_show()
845 pcf2127->cfg->ts[ts_id].gnd_detect_reg, in timestamp_show()
850 valid_low = ctrl & pcf2127->cfg->ts[ts_id].gnd_detect_bit; in timestamp_show()
852 if (pcf2127->cfg->ts[ts_id].inter_detect_bit) { in timestamp_show()
857 pcf2127->cfg->ts[ts_id].inter_detect_reg, in timestamp_show()
862 valid_inter = ctrl & pcf2127->cfg->ts[ts_id].inter_detect_bit; in timestamp_show()
868 ret = pcf2127_rtc_ts_read(dev->parent, &ts, ts_id); in timestamp_show()
876 return sprintf(buf, "%llu\n", (unsigned long long)ts); in timestamp_show()
937 .ts[0] = {
965 .ts[0] = {
993 .ts[0] = {
1001 .ts[1] = {
1009 .ts[2] = {
1017 .ts[3] = {
1047 pcf2127->cfg->ts[ts_id].reg_base, in pcf2127_enable_ts()
1062 ret = regmap_update_bits(pcf2127->regmap, pcf2127->cfg->ts[ts_id].ie_reg, in pcf2127_enable_ts()
1063 pcf2127->cfg->ts[ts_id].ie_bit, in pcf2127_enable_ts()
1064 pcf2127->cfg->ts[ts_id].ie_bit); in pcf2127_enable_ts()