Lines Matching refs:ts_id

612 			       int ts_id)  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()
650 static void pcf2127_rtc_ts_snapshot(struct device *dev, int ts_id) in pcf2127_rtc_ts_snapshot() argument
655 if (ts_id >= pcf2127->cfg->ts_count) in pcf2127_rtc_ts_snapshot()
659 if (pcf2127->ts_valid[ts_id]) in pcf2127_rtc_ts_snapshot()
662 ret = pcf2127_rtc_ts_read(dev, &pcf2127->ts[ts_id], ts_id); in pcf2127_rtc_ts_snapshot()
664 pcf2127->ts_valid[ts_id] = true; in pcf2127_rtc_ts_snapshot()
750 const char *buf, size_t count, int ts_id) in timestamp_store() argument
755 if (ts_id >= pcf2127->cfg->ts_count) in timestamp_store()
759 pcf2127->ts_valid[ts_id] = false; in timestamp_store()
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()
823 int ts_id) in timestamp_show() argument
829 if (ts_id >= pcf2127->cfg->ts_count) in timestamp_show()
833 if (!pcf2127->ts_valid[ts_id]) in timestamp_show()
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()
1034 static int pcf2127_enable_ts(struct device *dev, int ts_id) in pcf2127_enable_ts() argument
1039 if (ts_id >= pcf2127->cfg->ts_count) { in pcf2127_enable_ts()
1041 __func__, ts_id); in pcf2127_enable_ts()
1047 pcf2127->cfg->ts[ts_id].reg_base, in pcf2127_enable_ts()
1053 __func__, ts_id); 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()
1067 __func__, ts_id); in pcf2127_enable_ts()