/linux-4.1.27/drivers/rtc/ |
D | rtc-mv.c | 48 static int mv_rtc_set_time(struct device *dev, struct rtc_time *tm) in mv_rtc_set_time() 68 static int mv_rtc_read_time(struct device *dev, struct rtc_time *tm) in mv_rtc_read_time() 72 u32 rtc_time, rtc_date; in mv_rtc_read_time() local 75 rtc_time = readl(ioaddr + RTC_TIME_REG_OFFS); in mv_rtc_read_time() 78 second = rtc_time & 0x7f; in mv_rtc_read_time() 79 minute = (rtc_time >> RTC_MINUTES_OFFS) & 0x7f; in mv_rtc_read_time() 80 hour = (rtc_time >> RTC_HOURS_OFFS) & 0x3f; /* assume 24 hours mode */ in mv_rtc_read_time() 81 wday = (rtc_time >> RTC_WDAY_OFFS) & 0x7; in mv_rtc_read_time() 103 u32 rtc_time, rtc_date; in mv_rtc_read_alarm() local 106 rtc_time = readl(ioaddr + RTC_ALARM_TIME_REG_OFFS); in mv_rtc_read_alarm() [all …]
|
D | rtc-lib.c | 53 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm() 100 int rtc_valid_tm(struct rtc_time *tm) in rtc_valid_tm() 119 time64_t rtc_tm_to_time64(struct rtc_time *tm) in rtc_tm_to_time64() 129 ktime_t rtc_tm_to_ktime(struct rtc_time tm) in rtc_tm_to_ktime() 138 struct rtc_time rtc_ktime_to_tm(ktime_t kt) in rtc_ktime_to_tm() 141 struct rtc_time ret; in rtc_ktime_to_tm()
|
D | rtc-88pm80x.c | 90 static void rtc_next_alarm_time(struct rtc_time *next, struct rtc_time *now, in rtc_next_alarm_time() 91 struct rtc_time *alrm) in rtc_next_alarm_time() 113 static int pm80x_rtc_read_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_read_time() 132 static int pm80x_rtc_set_time(struct device *dev, struct rtc_time *tm) in pm80x_rtc_set_time() 187 struct rtc_time now_tm, alarm_tm; in pm80x_rtc_set_alarm() 258 struct rtc_time tm; in pm80x_rtc_probe()
|
D | rtc-pcf85063.c | 46 static int pcf85063_get_datetime(struct i2c_client *client, struct rtc_time *tm) in pcf85063_get_datetime() 92 static int pcf85063_set_datetime(struct i2c_client *client, struct rtc_time *tm) in pcf85063_set_datetime() 134 static int pcf85063_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf85063_rtc_read_time() 139 static int pcf85063_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf85063_rtc_set_time()
|
D | rtc-da9052.c | 61 static int da9052_read_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_read_alarm() 103 static int da9052_set_alarm(struct da9052_rtc *rtc, struct rtc_time *rtc_tm) in da9052_set_alarm() 159 static int da9052_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9052_rtc_read_time() 203 static int da9052_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9052_rtc_set_time() 231 struct rtc_time *tm = &alrm->time; in da9052_rtc_read_alarm() 247 struct rtc_time *tm = &alrm->time; in da9052_rtc_set_alarm()
|
D | rtc-efi.c | 69 convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) in convert_to_efi_time() 83 convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime) in convert_from_efi_time() 173 static int efi_read_time(struct device *dev, struct rtc_time *tm) in efi_read_time() 193 static int efi_set_time(struct device *dev, struct rtc_time *tm) in efi_set_time()
|
D | rtc-sirfsoc.c | 159 struct rtc_time *tm) in sirfsoc_rtc_read_time() 180 struct rtc_time *tm) in sirfsoc_rtc_set_time() 182 unsigned long rtc_time; in sirfsoc_rtc_set_time() local 186 rtc_tm_to_time(tm, &rtc_time); in sirfsoc_rtc_set_time() 188 rtcdrv->overflow_rtc = rtc_time >> (BITS_PER_LONG - RTC_SHIFT); in sirfsoc_rtc_set_time() 193 rtc_time << RTC_SHIFT, rtcdrv->rtc_base + RTC_CN); in sirfsoc_rtc_set_time()
|
D | rtc-da9055.c | 61 static int da9055_read_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_read_alarm() 81 static int da9055_set_alarm(struct da9055 *da9055, struct rtc_time *rtc_tm) in da9055_set_alarm() 129 static int da9055_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in da9055_rtc_read_time() 163 static int da9055_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9055_rtc_set_time() 183 struct rtc_time *tm = &alrm->time; in da9055_rtc_read_alarm() 199 struct rtc_time *tm = &alrm->time; in da9055_rtc_set_alarm()
|
D | rtc-da9063.c | 45 struct rtc_time alarm_time; 53 static void da9063_data_to_tm(u8 *data, struct rtc_time *tm) in da9063_data_to_tm() 65 static void da9063_tm_to_data(struct rtc_time *tm, u8 *data) in da9063_tm_to_data() 104 static int da9063_rtc_read_time(struct device *dev, struct rtc_time *tm) in da9063_rtc_read_time() 131 memcpy(tm, &rtc->alarm_time, sizeof(struct rtc_time)); in da9063_rtc_read_time() 138 static int da9063_rtc_set_time(struct device *dev, struct rtc_time *tm) in da9063_rtc_set_time()
|
D | rtc-pl031.c | 117 struct rtc_time *tm, unsigned long *st_time, in pl031_stv2_tm_to_time() 130 struct rtc_time calc_tm; in pl031_stv2_tm_to_time() 153 struct rtc_time *tm) in pl031_stv2_time_to_tm() 169 static int pl031_stv2_read_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_read_time() 179 static int pl031_stv2_set_time(struct device *dev, struct rtc_time *tm) in pl031_stv2_set_time() 250 static int pl031_read_time(struct device *dev, struct rtc_time *tm) in pl031_read_time() 259 static int pl031_set_time(struct device *dev, struct rtc_time *tm) in pl031_set_time()
|
D | rtc-generic.c | 14 static int generic_get_time(struct device *dev, struct rtc_time *tm) in generic_get_time() 24 static int generic_set_time(struct device *dev, struct rtc_time *tm) in generic_set_time()
|
D | rtc-pcf2127.c | 47 static int pcf2127_get_datetime(struct i2c_client *client, struct rtc_time *tm) in pcf2127_get_datetime() 100 static int pcf2127_set_datetime(struct i2c_client *client, struct rtc_time *tm) in pcf2127_set_datetime() 161 static int pcf2127_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf2127_rtc_read_time() 166 static int pcf2127_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf2127_rtc_set_time()
|
D | rtc-rv3029c2.c | 142 rv3029c2_i2c_read_time(struct i2c_client *client, struct rtc_time *tm) in rv3029c2_i2c_read_time() 185 static int rv3029c2_rtc_read_time(struct device *dev, struct rtc_time *tm) in rv3029c2_rtc_read_time() 193 struct rtc_time *const tm = &alarm->time; in rv3029c2_i2c_read_alarm() 258 struct rtc_time *const tm = &alarm->time; in rv3029c2_rtc_i2c_set_alarm() 329 rv3029c2_i2c_set_time(struct i2c_client *client, struct rtc_time const *tm) in rv3029c2_i2c_set_time() 370 static int rv3029c2_rtc_set_time(struct device *dev, struct rtc_time *tm) in rv3029c2_rtc_set_time()
|
D | rtc-ps3.c | 41 static int ps3_get_time(struct device *dev, struct rtc_time *tm) in ps3_get_time() 47 static int ps3_set_time(struct device *dev, struct rtc_time *tm) in ps3_set_time()
|
D | rtc-max8907.c | 61 static void regs_to_tm(u8 *regs, struct rtc_time *tm) in regs_to_tm() 81 static void tm_to_regs(struct rtc_time *tm, u8 *regs) in tm_to_regs() 97 static int max8907_rtc_read_time(struct device *dev, struct rtc_time *tm) in max8907_rtc_read_time() 113 static int max8907_rtc_set_time(struct device *dev, struct rtc_time *tm) in max8907_rtc_set_time()
|
D | rtc-max6900.c | 144 static int max6900_i2c_read_time(struct i2c_client *client, struct rtc_time *tm) in max6900_i2c_read_time() 171 max6900_i2c_set_time(struct i2c_client *client, struct rtc_time const *tm) in max6900_i2c_set_time() 198 static int max6900_rtc_read_time(struct device *dev, struct rtc_time *tm) in max6900_rtc_read_time() 203 static int max6900_rtc_set_time(struct device *dev, struct rtc_time *tm) in max6900_rtc_set_time()
|
D | rtc-opal.c | 33 static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm() 46 static void tm_to_opal(struct rtc_time *tm, u32 *y_m_d, u64 *h_m_s_ms) in tm_to_opal() 58 static int opal_get_rtc_time(struct device *dev, struct rtc_time *tm) in opal_get_rtc_time() 84 static int opal_set_rtc_time(struct device *dev, struct rtc_time *tm) in opal_set_rtc_time()
|
D | rtc-88pm860x.c | 86 static void rtc_next_alarm_time(struct rtc_time *next, struct rtc_time *now, in rtc_next_alarm_time() 87 struct rtc_time *alrm) in rtc_next_alarm_time() 109 static int pm860x_rtc_read_time(struct device *dev, struct rtc_time *tm) in pm860x_rtc_read_time() 132 static int pm860x_rtc_set_time(struct device *dev, struct rtc_time *tm) in pm860x_rtc_set_time() 191 struct rtc_time now_tm, alarm_tm; in pm860x_rtc_set_alarm() 316 struct rtc_time tm; in pm860x_rtc_probe()
|
D | rtc-as3722.c | 42 static void as3722_time_to_reg(u8 *rbuff, struct rtc_time *tm) in as3722_time_to_reg() 52 static void as3722_reg_to_time(u8 *rbuff, struct rtc_time *tm) in as3722_reg_to_time() 63 static int as3722_rtc_read_time(struct device *dev, struct rtc_time *tm) in as3722_rtc_read_time() 80 static int as3722_rtc_set_time(struct device *dev, struct rtc_time *tm) in as3722_rtc_set_time()
|
D | rtc-sun4v.c | 38 static int sun4v_read_time(struct device *dev, struct rtc_time *tm) in sun4v_read_time() 65 static int sun4v_set_time(struct device *dev, struct rtc_time *tm) in sun4v_set_time()
|
D | interface.c | 23 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in __rtc_read_time() 31 memset(tm, 0, sizeof(struct rtc_time)); in __rtc_read_time() 46 int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_read_time() 60 int rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) in rtc_set_time() 109 struct rtc_time new, old; in rtc_set_mmss() 163 struct rtc_time before, now; in __rtc_read_alarm() 216 memcpy(&before, &now, sizeof(struct rtc_time)); in __rtc_read_alarm() 353 struct rtc_time tm; in __rtc_set_alarm() 414 struct rtc_time now; in rtc_initialize_alarm() 494 struct rtc_time tm; in rtc_update_irq_enable() [all …]
|
D | rtc-ls1x.c | 88 static int ls1x_rtc_read_time(struct device *dev, struct rtc_time *rtm) in ls1x_rtc_read_time() 95 memset(rtm, 0, sizeof(struct rtc_time)); in ls1x_rtc_read_time() 104 static int ls1x_rtc_set_time(struct device *dev, struct rtc_time *rtm) in ls1x_rtc_set_time()
|
D | rtc-isl12057.c | 88 static void isl12057_rtc_regs_to_tm(struct rtc_time *tm, u8 *regs) in isl12057_rtc_regs_to_tm() 111 static int isl12057_rtc_tm_to_regs(u8 *regs, struct rtc_time *tm) in isl12057_rtc_tm_to_regs() 199 static int _isl12057_rtc_read_time(struct device *dev, struct rtc_time *tm) in _isl12057_rtc_read_time() 248 struct rtc_time rtc_tm, *alarm_tm = &alarm->time; in isl12057_rtc_read_alarm() 316 struct rtc_time *alarm_tm = &alarm->time; in isl12057_rtc_set_alarm() 319 struct rtc_time rtc_tm; in isl12057_rtc_set_alarm() 395 static int isl12057_rtc_set_time(struct device *dev, struct rtc_time *tm) in isl12057_rtc_set_time()
|
D | rtc-au1xxx.c | 31 static int au1xtoy_rtc_read_time(struct device *dev, struct rtc_time *tm) in au1xtoy_rtc_read_time() 42 static int au1xtoy_rtc_set_time(struct device *dev, struct rtc_time *tm) in au1xtoy_rtc_set_time()
|
D | rtc-isl12022.c | 109 static int isl12022_get_datetime(struct i2c_client *client, struct rtc_time *tm) in isl12022_get_datetime() 162 static int isl12022_set_datetime(struct i2c_client *client, struct rtc_time *tm) in isl12022_set_datetime() 238 static int isl12022_rtc_read_time(struct device *dev, struct rtc_time *tm) in isl12022_rtc_read_time() 243 static int isl12022_rtc_set_time(struct device *dev, struct rtc_time *tm) in isl12022_rtc_set_time()
|
D | rtc-pcf8583.c | 52 static int pcf8583_get_datetime(struct i2c_client *client, struct rtc_time *dt) in pcf8583_get_datetime() 90 static int pcf8583_set_datetime(struct i2c_client *client, struct rtc_time *dt, int datetoo) in pcf8583_set_datetime() 175 static int pcf8583_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf8583_rtc_read_time() 225 static int pcf8583_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf8583_rtc_set_time()
|
D | rtc-r9701.c | 71 static int r9701_get_datetime(struct device *dev, struct rtc_time *dt) in r9701_get_datetime() 98 static int r9701_set_datetime(struct device *dev, struct rtc_time *dt) in r9701_set_datetime() 125 struct rtc_time dt; in r9701_probe()
|
D | rtc-hid-sensor-time.c | 40 struct rtc_time last_time; 43 struct rtc_time time_buf; 94 struct rtc_time *time_buf = &time_state->time_buf; in hid_time_capture_sample() 205 static int hid_rtc_read_time(struct device *dev, struct rtc_time *tm) in hid_rtc_read_time()
|
D | rtc-puv3.c | 89 static int puv3_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) in puv3_rtc_gettime() 100 static int puv3_rtc_settime(struct device *dev, struct rtc_time *tm) in puv3_rtc_settime() 116 struct rtc_time *alm_tm = &alrm->time; in puv3_rtc_getalarm() 132 struct rtc_time *tm = &alrm->time; in puv3_rtc_setalarm()
|
D | rtc-rs5c313.c | 214 static int rs5c313_rtc_read_time(struct device *dev, struct rtc_time *tm) in rs5c313_rtc_read_time() 274 static int rs5c313_rtc_set_time(struct device *dev, struct rtc_time *tm) in rs5c313_rtc_set_time() 334 struct rtc_time tm; in rs5c313_check_xstp_bit() 351 memset(&tm, 0, sizeof(struct rtc_time)); in rs5c313_check_xstp_bit()
|
D | rtc-nuc900.c | 106 unsigned int calreg, struct rtc_time *tm) in nuc900_rtc_bcd2bin() 119 static void nuc900_rtc_bin2bcd(struct device *dev, struct rtc_time *settm, in nuc900_rtc_bin2bcd() 151 static int nuc900_rtc_read_time(struct device *dev, struct rtc_time *tm) in nuc900_rtc_read_time() 162 static int nuc900_rtc_set_time(struct device *dev, struct rtc_time *tm) in nuc900_rtc_set_time()
|
D | rtc-bfin.c | 62 struct rtc_time rtc_alarm; 104 static inline void rtc_bfin_to_tm(u32 rtc_bfin, struct rtc_time *tm) in rtc_bfin_to_tm() 257 static int bfin_rtc_read_time(struct device *dev, struct rtc_time *tm) in bfin_rtc_read_time() 271 static int bfin_rtc_set_time(struct device *dev, struct rtc_time *tm) in bfin_rtc_set_time()
|
D | rtc-max77686.c | 75 static void max77686_rtc_data_to_tm(u8 *data, struct rtc_time *tm, in max77686_rtc_data_to_tm() 97 static int max77686_rtc_tm_to_data(struct rtc_time *tm, u8 *data) in max77686_rtc_tm_to_data() 139 static int max77686_rtc_read_time(struct device *dev, struct rtc_time *tm) in max77686_rtc_read_time() 167 static int max77686_rtc_set_time(struct device *dev, struct rtc_time *tm) in max77686_rtc_set_time() 245 struct rtc_time tm; in max77686_rtc_stop_alarm() 284 struct rtc_time tm; in max77686_rtc_start_alarm()
|
D | rtc-rx8581.c | 98 static int rx8581_get_datetime(struct i2c_client *client, struct rtc_time *tm) in rx8581_get_datetime() 176 static int rx8581_set_datetime(struct i2c_client *client, struct rtc_time *tm) in rx8581_set_datetime() 254 static int rx8581_rtc_read_time(struct device *dev, struct rtc_time *tm) in rx8581_rtc_read_time() 259 static int rx8581_rtc_set_time(struct device *dev, struct rtc_time *tm) in rx8581_rtc_set_time()
|
D | rtc-vr41xx.c | 139 static int vr41xx_rtc_read_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_read_time() 151 static int vr41xx_rtc_set_time(struct device *dev, struct rtc_time *time) in vr41xx_rtc_set_time() 167 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_read_alarm() 186 struct rtc_time *time = &wkalrm->time; in vr41xx_rtc_set_alarm()
|
D | rtc-max8998.c | 81 static void max8998_data_to_tm(u8 *data, struct rtc_time *tm) in max8998_data_to_tm() 99 static void max8998_tm_to_data(struct rtc_time *tm, u8 *data) in max8998_tm_to_data() 111 static int max8998_rtc_read_time(struct device *dev, struct rtc_time *tm) in max8998_rtc_read_time() 126 static int max8998_rtc_set_time(struct device *dev, struct rtc_time *tm) in max8998_rtc_set_time()
|
D | rtc-pcf50633.c | 67 static void pcf2rtc_time(struct rtc_time *rtc, struct pcf50633_time *pcf) in pcf2rtc_time() 78 static void rtc2pcf_time(struct pcf50633_time *pcf, struct rtc_time *rtc) in rtc2pcf_time() 108 static int pcf50633_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf50633_rtc_read_time() 141 static int pcf50633_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf50633_rtc_set_time()
|
D | rtc-isl1208.c | 278 isl1208_i2c_read_time(struct i2c_client *client, struct rtc_time *tm) in isl1208_i2c_read_time() 323 struct rtc_time *const tm = &alarm->time; in isl1208_i2c_read_alarm() 370 struct rtc_time *alarm_tm = &alarm->time; in isl1208_i2c_set_alarm() 374 struct rtc_time rtc_tm; in isl1208_i2c_set_alarm() 420 isl1208_rtc_read_time(struct device *dev, struct rtc_time *tm) in isl1208_rtc_read_time() 426 isl1208_i2c_set_time(struct i2c_client *client, struct rtc_time const *tm) in isl1208_i2c_set_time() 483 isl1208_rtc_set_time(struct device *dev, struct rtc_time *tm) in isl1208_rtc_set_time()
|
D | rtc-pcap.c | 48 struct rtc_time *tm = &alrm->time; in pcap_rtc_read_alarm() 68 struct rtc_time *tm = &alrm->time; in pcap_rtc_set_alarm() 83 static int pcap_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcap_rtc_read_time()
|
D | rtc-sysfs.c | 38 struct rtc_time tm; in date_show() 54 struct rtc_time tm; in time_show() 70 struct rtc_time tm; in since_epoch_show()
|
D | rtc-tile.c | 28 static int read_rtc_time(struct device *dev, struct rtc_time *tm) in read_rtc_time() 52 static int set_rtc_time(struct device *dev, struct rtc_time *tm) in set_rtc_time()
|
D | rtc-mpc5121.c | 93 struct rtc_time *tm) in mpc5121_rtc_update_smh() 106 static int mpc5121_rtc_read_time(struct device *dev, struct rtc_time *tm) in mpc5121_rtc_read_time() 128 static int mpc5121_rtc_set_time(struct device *dev, struct rtc_time *tm) in mpc5121_rtc_set_time() 152 static int mpc5200_rtc_read_time(struct device *dev, struct rtc_time *tm) in mpc5200_rtc_read_time() 179 static int mpc5200_rtc_set_time(struct device *dev, struct rtc_time *tm) in mpc5200_rtc_set_time()
|
D | rtc-pxa.c | 98 static u32 ryxr_calc(struct rtc_time *tm) in ryxr_calc() 105 static u32 rdxr_calc(struct rtc_time *tm) in rdxr_calc() 114 static void tm_calc(u32 rycr, u32 rdcr, struct rtc_time *tm) in tm_calc() 237 static int pxa_rtc_read_time(struct device *dev, struct rtc_time *tm) in pxa_rtc_read_time() 249 static int pxa_rtc_set_time(struct device *dev, struct rtc_time *tm) in pxa_rtc_set_time()
|
D | rtc-at91rm9200.c | 115 struct rtc_time *tm) in at91_rtc_decodetime() 146 static int at91_rtc_readtime(struct device *dev, struct rtc_time *tm) in at91_rtc_readtime() 162 static int at91_rtc_settime(struct device *dev, struct rtc_time *tm) in at91_rtc_settime() 206 struct rtc_time *tm = &alrm->time; in at91_rtc_readalarm() 227 struct rtc_time tm; in at91_rtc_setalarm()
|
D | rtc-s35390a.c | 151 static int s35390a_set_datetime(struct i2c_client *client, struct rtc_time *tm) in s35390a_set_datetime() 179 static int s35390a_get_datetime(struct i2c_client *client, struct rtc_time *tm) in s35390a_get_datetime() 307 static int s35390a_rtc_read_time(struct device *dev, struct rtc_time *tm) in s35390a_rtc_read_time() 312 static int s35390a_rtc_set_time(struct device *dev, struct rtc_time *tm) in s35390a_rtc_set_time() 333 struct rtc_time tm; in s35390a_probe()
|
D | rtc-mxc.c | 83 struct rtc_time g_rtc_alarm; 175 static void rtc_update_alarm(struct device *dev, struct rtc_time *alrm) in rtc_update_alarm() 272 static int mxc_rtc_read_time(struct device *dev, struct rtc_time *tm) in mxc_rtc_read_time() 298 struct rtc_time tm; in mxc_rtc_set_mmss() 340 memcpy(&pdata->g_rtc_alarm, &alrm->time, sizeof(struct rtc_time)); in mxc_rtc_set_alarm()
|
D | rtc-dm355evm.c | 37 static int dm355evm_rtc_read_time(struct device *dev, struct rtc_time *tm) in dm355evm_rtc_read_time() 85 static int dm355evm_rtc_set_time(struct device *dev, struct rtc_time *tm) in dm355evm_rtc_set_time()
|
D | rtc-rs5c348.c | 64 rs5c348_rtc_set_time(struct device *dev, struct rtc_time *tm) in rs5c348_rtc_set_time() 100 rs5c348_rtc_read_time(struct device *dev, struct rtc_time *tm) in rs5c348_rtc_read_time() 184 struct rtc_time tm; in rs5c348_probe()
|
D | rtc-max8925.c | 85 static int tm_calc(struct rtc_time *tm, unsigned char *buf, int len) in tm_calc() 114 static int data_calc(unsigned char *buf, struct rtc_time *tm, int len) in data_calc() 154 static int max8925_rtc_read_time(struct device *dev, struct rtc_time *tm) in max8925_rtc_read_time() 168 static int max8925_rtc_set_time(struct device *dev, struct rtc_time *tm) in max8925_rtc_set_time()
|
D | rtc-lp8788.c | 113 static int lp8788_rtc_read_time(struct device *dev, struct rtc_time *tm) in lp8788_rtc_read_time() 137 static int lp8788_rtc_set_time(struct device *dev, struct rtc_time *tm) in lp8788_rtc_set_time() 171 struct rtc_time *tm = &alarm->time; in lp8788_read_alarm() 196 struct rtc_time *tm = &alarm->time; in lp8788_set_alarm()
|
D | rtc-sunxi.c | 201 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_getalarm() 233 static int sunxi_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) in sunxi_rtc_gettime() 270 struct rtc_time *alrm_tm = &wkalrm->time; in sunxi_rtc_setalarm() 271 struct rtc_time tm_now; in sunxi_rtc_setalarm() 343 static int sunxi_rtc_settime(struct device *dev, struct rtc_time *rtc_tm) in sunxi_rtc_settime()
|
D | rtc-pcf8563.c | 193 static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm) in pcf8563_get_datetime() 246 static int pcf8563_set_datetime(struct i2c_client *client, struct rtc_time *tm) in pcf8563_set_datetime() 282 struct rtc_time tm; in pcf8563_rtc_ioctl() 316 static int pcf8563_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf8563_rtc_read_time() 321 static int pcf8563_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf8563_rtc_set_time()
|
D | rtc-s5m.c | 114 static void s5m8767_data_to_tm(u8 *data, struct rtc_time *tm, in s5m8767_data_to_tm() 135 static int s5m8767_tm_to_data(struct rtc_time *tm, u8 *data) in s5m8767_tm_to_data() 282 static void s5m8763_data_to_tm(u8 *data, struct rtc_time *tm) in s5m8763_data_to_tm() 302 static void s5m8763_tm_to_data(struct rtc_time *tm, u8 *data) in s5m8763_tm_to_data() 314 static int s5m_rtc_read_time(struct device *dev, struct rtc_time *tm) in s5m_rtc_read_time() 358 static int s5m_rtc_set_time(struct device *dev, struct rtc_time *tm) in s5m_rtc_set_time() 448 struct rtc_time tm; in s5m_rtc_stop_alarm() 492 struct rtc_time tm; in s5m_rtc_start_alarm()
|
D | rtc-ab-b5ze-s3.c | 216 static int _abb5zes3_rtc_read_time(struct device *dev, struct rtc_time *tm) in _abb5zes3_rtc_read_time() 264 static int abb5zes3_rtc_set_time(struct device *dev, struct rtc_time *tm) in abb5zes3_rtc_set_time() 329 struct rtc_time rtc_tm, *alarm_tm = &alarm->time; in _abb5zes3_rtc_read_timer() 385 struct rtc_time rtc_tm, *alarm_tm = &alarm->time; in _abb5zes3_rtc_read_alarm() 479 struct rtc_time *alarm_tm = &alarm->time; in _abb5zes3_rtc_set_alarm() 482 struct rtc_time rtc_tm; in _abb5zes3_rtc_set_alarm() 599 struct rtc_time *alarm_tm = &alarm->time; in abb5zes3_rtc_set_alarm() 601 struct rtc_time rtc_tm; in abb5zes3_rtc_set_alarm()
|
D | rtc-xgene.c | 57 static int xgene_rtc_read_time(struct device *dev, struct rtc_time *tm) in xgene_rtc_read_time() 110 unsigned long rtc_time; in xgene_rtc_set_alarm() local 113 rtc_time = readl(pdata->csr_base + RTC_CCVR); in xgene_rtc_set_alarm()
|
D | rtc-em3027.c | 45 static int em3027_get_time(struct device *dev, struct rtc_time *tm) in em3027_get_time() 83 static int em3027_set_time(struct device *dev, struct rtc_time *tm) in em3027_set_time()
|
D | rtc-ab8500.c | 74 struct rtc_time tm = { in get_elapsed_seconds() 87 static int ab8500_rtc_read_time(struct device *dev, struct rtc_time *tm) in ab8500_rtc_read_time() 136 static int ab8500_rtc_set_time(struct device *dev, struct rtc_time *tm) in ab8500_rtc_set_time() 233 struct rtc_time curtm; in ab8500_rtc_set_alarm()
|
D | rtc-sun6i.c | 158 static int sun6i_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) in sun6i_rtc_gettime() 209 struct rtc_time *alrm_tm = &wkalrm->time; in sun6i_rtc_setalarm() 210 struct rtc_time tm_now; in sun6i_rtc_setalarm() 266 static int sun6i_rtc_settime(struct device *dev, struct rtc_time *rtc_tm) in sun6i_rtc_settime()
|
D | rtc-max6902.c | 56 static int max6902_read_time(struct device *dev, struct rtc_time *dt) in max6902_read_time() 91 static int max6902_set_time(struct device *dev, struct rtc_time *dt) in max6902_set_time()
|
D | rtc-omap.c | 257 static int tm2bcd(struct rtc_time *tm) in tm2bcd() 277 static void bcd2tm(struct rtc_time *tm) in bcd2tm() 288 static void omap_rtc_read_time_raw(struct omap_rtc *rtc, struct rtc_time *tm) in omap_rtc_read_time_raw() 298 static int omap_rtc_read_time(struct device *dev, struct rtc_time *tm) in omap_rtc_read_time() 313 static int omap_rtc_set_time(struct device *dev, struct rtc_time *tm) in omap_rtc_set_time() 421 struct rtc_time tm; in omap_rtc_power_off()
|
D | rtc-davinci.c | 243 static int convertfromdays(u16 days, struct rtc_time *tm) in convertfromdays() 269 static int convert2days(u16 *days, struct rtc_time *tm) in convert2days() 286 static int davinci_rtc_read_time(struct device *dev, struct rtc_time *tm) in davinci_rtc_read_time() 322 static int davinci_rtc_set_time(struct device *dev, struct rtc_time *tm) in davinci_rtc_set_time() 429 struct rtc_time tm; in davinci_rtc_set_alarm()
|
D | rtc-ds3234.c | 57 static int ds3234_read_time(struct device *dev, struct rtc_time *dt) in ds3234_read_time() 81 static int ds3234_set_time(struct device *dev, struct rtc_time *dt) in ds3234_set_time()
|
D | rtc-ds1347.c | 57 static int ds1347_read_time(struct device *dev, struct rtc_time *dt) in ds1347_read_time() 80 static int ds1347_set_time(struct device *dev, struct rtc_time *dt) in ds1347_set_time()
|
D | rtc-pl030.c | 63 static int pl030_read_time(struct device *dev, struct rtc_time *tm) in pl030_read_time() 80 static int pl030_set_time(struct device *dev, struct rtc_time *tm) in pl030_set_time()
|
D | rtc-wm8350.c | 38 static int wm8350_rtc_readtime(struct device *dev, struct rtc_time *tm) in wm8350_rtc_readtime() 97 static int wm8350_rtc_settime(struct device *dev, struct rtc_time *tm) in wm8350_rtc_settime() 149 struct rtc_time *tm = &alrm->time; in wm8350_rtc_readalarm() 253 struct rtc_time *tm = &alrm->time; in wm8350_rtc_setalarm()
|
D | rtc-max77802.c | 78 static void max77802_rtc_data_to_tm(u8 *data, struct rtc_time *tm, in max77802_rtc_data_to_tm() 101 static int max77802_rtc_tm_to_data(struct rtc_time *tm, u8 *data) in max77802_rtc_tm_to_data() 139 static int max77802_rtc_read_time(struct device *dev, struct rtc_time *tm) in max77802_rtc_read_time() 168 static int max77802_rtc_set_time(struct device *dev, struct rtc_time *tm) in max77802_rtc_set_time()
|
D | rtc-ds1390.c | 70 static int ds1390_read_time(struct device *dev, struct rtc_time *dt) in ds1390_read_time() 99 static int ds1390_set_time(struct device *dev, struct rtc_time *dt) in ds1390_set_time()
|
D | rtc-m41t94.c | 32 static int m41t94_set_time(struct device *dev, struct rtc_time *tm) in m41t94_set_time() 59 static int m41t94_read_time(struct device *dev, struct rtc_time *tm) in m41t94_read_time()
|
D | rtc-rs5c372.c | 183 static int rs5c372_get_datetime(struct i2c_client *client, struct rtc_time *tm) in rs5c372_get_datetime() 214 static int rs5c372_set_datetime(struct i2c_client *client, struct rtc_time *tm) in rs5c372_set_datetime() 281 static int rs5c372_rtc_read_time(struct device *dev, struct rtc_time *tm) in rs5c372_rtc_read_time() 286 static int rs5c372_rtc_set_time(struct device *dev, struct rtc_time *tm) in rs5c372_rtc_set_time() 563 struct rtc_time tm; in rs5c372_probe()
|
D | rtc-m41t80.c | 94 struct rtc_time *tm) in m41t80_get_datetime() 130 static int m41t80_set_datetime(struct i2c_client *client, struct rtc_time *tm) in m41t80_set_datetime() 207 static int m41t80_rtc_read_time(struct device *dev, struct rtc_time *tm) in m41t80_rtc_read_time() 212 static int m41t80_rtc_set_time(struct device *dev, struct rtc_time *tm) in m41t80_rtc_set_time() 638 struct rtc_time tm; in m41t80_probe()
|
D | rtc-x1205.c | 93 static int x1205_get_datetime(struct i2c_client *client, struct rtc_time *tm, in x1205_get_datetime() 177 static int x1205_set_datetime(struct i2c_client *client, struct rtc_time *tm, in x1205_set_datetime() 287 struct rtc_time tm; in x1205_fix_osc() 539 static int x1205_rtc_read_time(struct device *dev, struct rtc_time *tm) in x1205_rtc_read_time() 545 static int x1205_rtc_set_time(struct device *dev, struct rtc_time *tm) in x1205_rtc_set_time()
|
D | rtc-ds1672.c | 33 static int ds1672_get_datetime(struct i2c_client *client, struct rtc_time *tm) in ds1672_get_datetime() 96 static int ds1672_rtc_read_time(struct device *dev, struct rtc_time *tm) in ds1672_rtc_read_time()
|
D | rtc-spear.c | 173 static int tm2bcd(struct rtc_time *tm) in tm2bcd() 187 static void bcd2tm(struct rtc_time *tm) in bcd2tm() 206 static int spear_rtc_read_time(struct device *dev, struct rtc_time *tm) in spear_rtc_read_time() 235 static int spear_rtc_set_time(struct device *dev, struct rtc_time *tm) in spear_rtc_set_time()
|
D | rtc-tps80031.c | 67 static int tps80031_rtc_read_time(struct device *dev, struct rtc_time *tm) in tps80031_rtc_read_time() 89 static int tps80031_rtc_set_time(struct device *dev, struct rtc_time *tm) in tps80031_rtc_set_time() 239 struct rtc_time tm; in tps80031_rtc_probe()
|
D | rtc-ds1302.c | 144 static int ds1302_rtc_read_time(struct device *dev, struct rtc_time *tm) in ds1302_rtc_read_time() 166 static int ds1302_rtc_set_time(struct device *dev, struct rtc_time *tm) in ds1302_rtc_set_time()
|
D | rtc-mcp795.c | 95 static int mcp795_set_time(struct device *dev, struct rtc_time *tim) in mcp795_set_time() 129 static int mcp795_read_time(struct device *dev, struct rtc_time *tim) in mcp795_read_time()
|
D | systohc.c | 26 struct rtc_time tm; in rtc_set_ntp_time()
|
D | rtc-snvs.c | 121 static int snvs_rtc_read_time(struct device *dev, struct rtc_time *tm) in snvs_rtc_read_time() 131 static int snvs_rtc_set_time(struct device *dev, struct rtc_time *tm) in snvs_rtc_set_time() 190 struct rtc_time *alrm_tm = &alrm->time; in snvs_rtc_set_alarm()
|
D | rtc-max8997.c | 80 static void max8997_rtc_data_to_tm(u8 *data, struct rtc_time *tm, in max8997_rtc_data_to_tm() 101 static int max8997_rtc_tm_to_data(struct rtc_time *tm, u8 *data) in max8997_rtc_tm_to_data() 138 static int max8997_rtc_read_time(struct device *dev, struct rtc_time *tm) in max8997_rtc_read_time() 159 static int max8997_rtc_set_time(struct device *dev, struct rtc_time *tm) in max8997_rtc_set_time()
|
D | rtc-at91sam9.c | 108 static int at91_rtc_readtime(struct device *dev, struct rtc_time *tm) in at91_rtc_readtime() 137 static int at91_rtc_settime(struct device *dev, struct rtc_time *tm) in at91_rtc_settime() 190 struct rtc_time *tm = &alrm->time; in at91_rtc_readalarm() 216 struct rtc_time *tm = &alrm->time; in at91_rtc_setalarm()
|
D | rtc-hym8563.c | 99 static int hym8563_rtc_read_time(struct device *dev, struct rtc_time *tm) in hym8563_rtc_read_time() 124 static int hym8563_rtc_set_time(struct device *dev, struct rtc_time *tm) in hym8563_rtc_set_time() 192 struct rtc_time *alm_tm = &alm->time; in hym8563_rtc_read_alarm() 232 struct rtc_time *alm_tm = &alm->time; in hym8563_rtc_set_alarm()
|
D | rtc-sh.c | 353 static int sh_rtc_read_time(struct device *dev, struct rtc_time *tm) in sh_rtc_read_time() 413 static int sh_rtc_set_time(struct device *dev, struct rtc_time *tm) in sh_rtc_set_time() 473 struct rtc_time *tm = &wkalrm->time; in sh_rtc_read_alarm() 504 static int sh_rtc_check_alarm(struct rtc_time *tm) in sh_rtc_check_alarm() 544 struct rtc_time *tm = &wkalrm->time; in sh_rtc_set_alarm() 592 struct rtc_time r; in sh_rtc_probe()
|
D | rtc-starfire.c | 30 static int starfire_read_time(struct device *dev, struct rtc_time *tm) in starfire_read_time()
|
D | rtc-m48t86.c | 45 static int m48t86_rtc_read_time(struct device *dev, struct rtc_time *tm) in m48t86_rtc_read_time() 83 static int m48t86_rtc_set_time(struct device *dev, struct rtc_time *tm) in m48t86_rtc_set_time()
|
D | rtc-ds1216.c | 79 static int ds1216_rtc_read_time(struct device *dev, struct rtc_time *tm) in ds1216_rtc_read_time() 107 static int ds1216_rtc_set_time(struct device *dev, struct rtc_time *tm) in ds1216_rtc_set_time()
|
D | rtc-m41t93.c | 48 static int m41t93_set_time(struct device *dev, struct rtc_time *tm) in m41t93_set_time() 104 static int m41t93_get_time(struct device *dev, struct rtc_time *tm) in m41t93_get_time()
|
D | hctosys.c | 30 struct rtc_time tm; in rtc_hctosys()
|
D | rtc-m48t35.c | 50 static int m48t35_read_time(struct device *dev, struct rtc_time *tm) in m48t35_read_time() 92 static int m48t35_set_time(struct device *dev, struct rtc_time *tm) in m48t35_set_time()
|
D | rtc-rx4581.c | 102 static int rx4581_get_datetime(struct device *dev, struct rtc_time *tm) in rx4581_get_datetime() 182 static int rx4581_set_datetime(struct device *dev, struct rtc_time *tm) in rx4581_set_datetime()
|
D | rtc-bq32k.c | 87 static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_read_time() 108 static int bq32k_rtc_set_time(struct device *dev, struct rtc_time *tm) in bq32k_rtc_set_time()
|
D | rtc-m48t59.c | 68 static int m48t59_rtc_read_time(struct device *dev, struct rtc_time *tm) in m48t59_rtc_read_time() 111 static int m48t59_rtc_set_time(struct device *dev, struct rtc_time *tm) in m48t59_rtc_set_time() 163 struct rtc_time *tm = &alrm->time; in m48t59_rtc_readalarm() 210 struct rtc_time *tm = &alrm->time; in m48t59_rtc_setalarm()
|
D | rtc-fm3130.c | 95 static int fm3130_get_time(struct device *dev, struct rtc_time *t) in fm3130_get_time() 144 static int fm3130_set_time(struct device *dev, struct rtc_time *t) in fm3130_set_time() 191 struct rtc_time *tm = &alrm->time; in fm3130_read_alarm() 248 struct rtc_time *tm = &alrm->time; in fm3130_set_alarm()
|
D | rtc-bq4802.c | 49 static int bq4802_read_time(struct device *dev, struct rtc_time *tm) in bq4802_read_time() 92 static int bq4802_set_time(struct device *dev, struct rtc_time *tm) in bq4802_set_time()
|
D | rtc-msm6242.c | 125 static int msm6242_read_time(struct device *dev, struct rtc_time *tm) in msm6242_read_time() 161 static int msm6242_set_time(struct device *dev, struct rtc_time *tm) in msm6242_set_time()
|
D | rtc-rk808.c | 60 static int rk808_rtc_readtime(struct device *dev, struct rtc_time *tm) in rk808_rtc_readtime() 112 static int rk808_rtc_set_time(struct device *dev, struct rtc_time *tm) in rk808_rtc_set_time() 338 struct rtc_time tm; in rk808_rtc_probe()
|
D | rtc-sa1100.c | 158 static int sa1100_rtc_read_time(struct device *dev, struct rtc_time *tm) in sa1100_rtc_read_time() 164 static int sa1100_rtc_set_time(struct device *dev, struct rtc_time *tm) in sa1100_rtc_set_time()
|
D | rtc-dev.c | 60 struct rtc_time tm; in rtc_uie_task() 120 struct rtc_time tm; in set_uie() 224 struct rtc_time tm; in rtc_dev_ioctl()
|
D | rtc-armada38x.c | 64 static int armada38x_rtc_read_time(struct device *dev, struct rtc_time *tm) in armada38x_rtc_read_time() 87 static int armada38x_rtc_set_time(struct device *dev, struct rtc_time *tm) in armada38x_rtc_set_time()
|
D | rtc-vt8500.c | 109 static int vt8500_rtc_read_time(struct device *dev, struct rtc_time *tm) in vt8500_rtc_read_time() 129 static int vt8500_rtc_set_time(struct device *dev, struct rtc_time *tm) in vt8500_rtc_set_time()
|
D | rtc-abx80x.c | 95 static int abx80x_rtc_read_time(struct device *dev, struct rtc_time *tm) in abx80x_rtc_read_time() 123 static int abx80x_rtc_set_time(struct device *dev, struct rtc_time *tm) in abx80x_rtc_set_time()
|
D | rtc-at32ap700x.c | 70 static int at32_rtc_readtime(struct device *dev, struct rtc_time *tm) in at32_rtc_readtime() 81 static int at32_rtc_settime(struct device *dev, struct rtc_time *tm) in at32_rtc_settime()
|
D | rtc-s3c.c | 163 static int s3c_rtc_gettime(struct device *dev, struct rtc_time *rtc_tm) in s3c_rtc_gettime() 208 static int s3c_rtc_settime(struct device *dev, struct rtc_time *tm) in s3c_rtc_settime() 241 struct rtc_time *alm_tm = &alrm->time; in s3c_rtc_getalarm() 303 struct rtc_time *tm = &alrm->time; in s3c_rtc_setalarm() 444 struct rtc_time rtc_tm; in s3c_rtc_probe()
|
D | class.c | 54 struct rtc_time tm; in rtc_suspend() 100 struct rtc_time tm; in rtc_resume()
|
D | rtc-ds1742.c | 63 static int ds1742_rtc_set_time(struct device *dev, struct rtc_time *tm) in ds1742_rtc_set_time() 88 static int ds1742_rtc_read_time(struct device *dev, struct rtc_time *tm) in ds1742_rtc_read_time()
|
D | rtc-rc5t583.c | 69 static int rc5t583_rtc_read_time(struct device *dev, struct rtc_time *tm) in rc5t583_rtc_read_time() 93 static int rc5t583_rtc_set_time(struct device *dev, struct rtc_time *tm) in rc5t583_rtc_set_time()
|
D | rtc-rp5c01.c | 93 static int rp5c01_read_time(struct device *dev, struct rtc_time *tm) in rp5c01_read_time() 122 static int rp5c01_set_time(struct device *dev, struct rtc_time *tm) in rp5c01_set_time()
|
D | rtc-pcf8523.c | 160 static int pcf8523_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf8523_rtc_read_time() 215 static int pcf8523_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf8523_rtc_set_time()
|
D | rtc-tps6586x.c | 69 static int tps6586x_rtc_read_time(struct device *dev, struct rtc_time *tm) in tps6586x_rtc_read_time() 96 static int tps6586x_rtc_set_time(struct device *dev, struct rtc_time *tm) in tps6586x_rtc_set_time()
|
D | rtc-tps65910.c | 56 static int tps65910_rtc_read_time(struct device *dev, struct rtc_time *tm) in tps65910_rtc_read_time() 87 static int tps65910_rtc_set_time(struct device *dev, struct rtc_time *tm) in tps65910_rtc_set_time()
|
D | rtc-moxart.c | 142 static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm) in moxart_rtc_set_time() 185 static int moxart_rtc_read_time(struct device *dev, struct rtc_time *tm) in moxart_rtc_read_time()
|
D | rtc-ds1374.c | 161 static int ds1374_read_time(struct device *dev, struct rtc_time *time) in ds1374_read_time() 174 static int ds1374_set_time(struct device *dev, struct rtc_time *time) in ds1374_set_time() 230 struct rtc_time now; in ds1374_set_alarm()
|
D | rtc-palmas.c | 48 static int palmas_rtc_read_time(struct device *dev, struct rtc_time *tm) in palmas_rtc_read_time() 79 static int palmas_rtc_set_time(struct device *dev, struct rtc_time *tm) in palmas_rtc_set_time()
|
D | rtc-pcf2123.c | 139 static int pcf2123_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf2123_rtc_read_time() 177 static int pcf2123_rtc_set_time(struct device *dev, struct rtc_time *tm) in pcf2123_rtc_set_time()
|
D | rtc-ds1286.c | 156 static int ds1286_read_time(struct device *dev, struct rtc_time *tm) in ds1286_read_time() 219 static int ds1286_set_time(struct device *dev, struct rtc_time *tm) in ds1286_set_time()
|
D | rtc-tegra.c | 107 static int tegra_rtc_read_time(struct device *dev, struct rtc_time *tm) in tegra_rtc_read_time() 137 static int tegra_rtc_set_time(struct device *dev, struct rtc_time *tm) in tegra_rtc_set_time()
|
D | rtc-wm831x.c | 122 static int wm831x_rtc_readtime(struct device *dev, struct rtc_time *tm) in wm831x_rtc_readtime() 176 struct rtc_time new_tm; in wm831x_rtc_set_mmss()
|
D | rtc-rx8025.c | 191 static int rx8025_get_time(struct device *dev, struct rtc_time *dt) in rx8025_get_time() 228 static int rx8025_set_time(struct device *dev, struct rtc_time *dt) in rx8025_set_time() 567 struct rtc_time tm; in rx8025_probe()
|
D | rtc-v3020.c | 231 static int v3020_read_time(struct device *dev, struct rtc_time *dt) in v3020_read_time() 268 static int v3020_set_time(struct device *dev, struct rtc_time *dt) in v3020_set_time()
|
D | rtc-cmos.c | 190 static int cmos_read_time(struct device *dev, struct rtc_time *t) in cmos_read_time() 200 static int cmos_set_time(struct device *dev, struct rtc_time *t) in cmos_set_time() 1139 struct rtc_time time; in cmos_of_init() 1157 struct rtc_time def_time = { in cmos_of_init()
|
D | rtc-proc.c | 48 struct rtc_time tm; in rtc_proc_show()
|
D | rtc-ds1305.c | 174 static int ds1305_get_time(struct device *dev, struct rtc_time *time) in ds1305_get_time() 212 static int ds1305_set_time(struct device *dev, struct rtc_time *time) in ds1305_set_time() 339 struct rtc_time tm; in ds1305_set_alarm()
|
D | rtc-mrst.c | 89 static int mrst_read_time(struct device *dev, struct rtc_time *time) in mrst_read_time() 111 static int mrst_set_time(struct device *dev, struct rtc_time *time) in mrst_set_time()
|
D | rtc-twl.c | 248 static int twl_rtc_read_time(struct device *dev, struct rtc_time *tm) in twl_rtc_read_time() 314 static int twl_rtc_set_time(struct device *dev, struct rtc_time *tm) in twl_rtc_set_time()
|
D | rtc-test.c | 35 struct rtc_time *tm) in test_rtc_read_time()
|
D | rtc-ep93xx.c | 61 static int ep93xx_rtc_read_time(struct device *dev, struct rtc_time *tm) in ep93xx_rtc_read_time()
|
D | rtc-stk17ta8.c | 77 static int stk17ta8_rtc_set_time(struct device *dev, struct rtc_time *tm) in stk17ta8_rtc_set_time() 100 static int stk17ta8_rtc_read_time(struct device *dev, struct rtc_time *tm) in stk17ta8_rtc_read_time()
|
D | rtc-ds3232.c | 103 static int ds3232_read_time(struct device *dev, struct rtc_time *time) in ds3232_read_time() 160 static int ds3232_set_time(struct device *dev, struct rtc_time *time) in ds3232_set_time()
|
D | rtc-ds1553.c | 76 static int ds1553_rtc_set_time(struct device *dev, struct rtc_time *tm) in ds1553_rtc_set_time() 101 static int ds1553_rtc_read_time(struct device *dev, struct rtc_time *tm) in ds1553_rtc_read_time()
|
D | rtc-ab3100.c | 76 static int ab3100_rtc_read_time(struct device *dev, struct rtc_time *tm) in ab3100_rtc_read_time()
|
D | rtc-ds1511.c | 185 static int ds1511_rtc_set_time(struct device *dev, struct rtc_time *rtc_tm) in ds1511_rtc_set_time() 244 static int ds1511_rtc_read_time(struct device *dev, struct rtc_time *rtc_tm) in ds1511_rtc_read_time()
|
D | rtc-pm8xxx.c | 81 static int pm8xxx_rtc_set_time(struct device *dev, struct rtc_time *tm) in pm8xxx_rtc_set_time() 155 static int pm8xxx_rtc_read_time(struct device *dev, struct rtc_time *tm) in pm8xxx_rtc_read_time()
|
D | rtc-digicolor.c | 95 static int dc_rtc_read_time(struct device *dev, struct rtc_time *tm) in dc_rtc_read_time()
|
/linux-4.1.27/include/uapi/linux/ |
D | rtc.h | 20 struct rtc_time { struct 39 struct rtc_time time; /* time the alarm is set to */ argument 79 #define RTC_ALM_SET _IOW('p', 0x07, struct rtc_time) /* Set alarm time */ 80 #define RTC_ALM_READ _IOR('p', 0x08, struct rtc_time) /* Read alarm time */ 81 #define RTC_RD_TIME _IOR('p', 0x09, struct rtc_time) /* Read RTC time */ 82 #define RTC_SET_TIME _IOW('p', 0x0a, struct rtc_time) /* Set RTC time */
|
/linux-4.1.27/include/linux/ |
D | rtc.h | 21 extern int rtc_valid_tm(struct rtc_time *tm); 22 extern time64_t rtc_tm_to_time64(struct rtc_time *tm); 23 extern void rtc_time64_to_tm(time64_t time, struct rtc_time *tm); 24 ktime_t rtc_tm_to_ktime(struct rtc_time tm); 25 struct rtc_time rtc_ktime_to_tm(ktime_t kt); 30 static inline void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) in rtc_time_to_tm() 38 static inline int rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) in rtc_tm_to_time() 75 int (*read_time)(struct device *, struct rtc_time *); 76 int (*set_time)(struct device *, struct rtc_time *); 162 extern int rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm); [all …]
|
/linux-4.1.27/drivers/char/ |
D | ds1302.c | 119 get_rtc_time(struct rtc_time *rtc_tm) in get_rtc_time() 164 struct rtc_time rtc_tm; in rtc_ioctl() 166 memset(&rtc_tm, 0, sizeof (struct rtc_time)); in rtc_ioctl() 170 if (copy_to_user((struct rtc_time*)arg, &rtc_tm, sizeof(struct rtc_time))) in rtc_ioctl() 177 struct rtc_time rtc_tm; in rtc_ioctl() 184 if (copy_from_user(&rtc_tm, (struct rtc_time*)arg, sizeof(struct rtc_time))) in rtc_ioctl() 265 struct rtc_time tm; in get_rtc_status()
|
D | efirtc.c | 103 convert_to_efi_time(struct rtc_time *wtime, efi_time_t *eft) in convert_to_efi_time() 118 convert_from_efi_time(efi_time_t *eft, struct rtc_time *wtime) in convert_from_efi_time() 155 struct rtc_time wtime; in efi_rtc_ioctl() 190 sizeof (struct rtc_time)) ? - EFAULT : 0; in efi_rtc_ioctl() 196 if (copy_from_user(&wtime, (struct rtc_time __user *)arg, in efi_rtc_ioctl() 197 sizeof(struct rtc_time)) ) in efi_rtc_ioctl() 217 || copy_from_user(&wtime, &ewp->time, sizeof(struct rtc_time)) ) in efi_rtc_ioctl() 253 sizeof(struct rtc_time)) ? -EFAULT : 0; in efi_rtc_ioctl()
|
D | rtc.c | 147 static void rtc_get_rtc_time(struct rtc_time *rtc_tm); 153 static void get_rtc_alm_time(struct rtc_time *alm_tm); 400 struct rtc_time wtime; in rtc_do_ioctl() 487 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_do_ioctl() 499 struct rtc_time alm_tm; in rtc_do_ioctl() 501 if (copy_from_user(&alm_tm, (struct rtc_time __user *)arg, in rtc_do_ioctl() 502 sizeof(struct rtc_time))) in rtc_do_ioctl() 542 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_do_ioctl() 548 struct rtc_time rtc_tm; in rtc_do_ioctl() 559 if (copy_from_user(&rtc_tm, (struct rtc_time __user *)arg, in rtc_do_ioctl() [all …]
|
D | mmtimer.c | 62 #define rtc_time() (*RTC_COUNTER_ADDR) macro 196 *set_completion_time = rtc_time(); in mmtimer_setup() 485 nsec = rtc_time() * sgi_clock_period in sgi_clock_get() 498 nsec = rtc_time() * sgi_clock_period; in sgi_clock_set() 544 (expires && (expires <= rtc_time()))) { in mmtimer_interrupt() 672 cur_setting->it_value = ns_to_timespec((timr->it.mmtimer.expires - rtc_time()) * sgi_clock_period); in sgi_timer_get() 719 when = (when + sgi_clock_period - 1) / sgi_clock_period + rtc_time(); in sgi_timer_set()
|
D | genrtc.c | 269 struct rtc_time wtime; in gen_rtc_ioctl() 392 struct rtc_time tm; in gen_rtc_proc_show()
|
/linux-4.1.27/arch/sh/include/asm/ |
D | rtc.h | 16 struct rtc_time; 17 unsigned int get_rtc_time(struct rtc_time *); 18 int set_rtc_time(struct rtc_time *);
|
/linux-4.1.27/arch/powerpc/platforms/powermac/ |
D | time.c | 87 static void to_rtc_time(unsigned long now, struct rtc_time *tm) in to_rtc_time() 97 static unsigned long from_rtc_time(struct rtc_time *tm) in from_rtc_time() 124 static int cuda_set_rtc_time(struct rtc_time *tm) in cuda_set_rtc_time() 167 static int pmu_set_rtc_time(struct rtc_time *tm) in pmu_set_rtc_time() 192 struct rtc_time tm; in smu_get_time() 221 void pmac_get_rtc_time(struct rtc_time *tm) in pmac_get_rtc_time() 239 int pmac_set_rtc_time(struct rtc_time *tm) in pmac_set_rtc_time()
|
D | pmac.h | 12 struct rtc_time; 18 extern void pmac_get_rtc_time(struct rtc_time *); 19 extern int pmac_set_rtc_time(struct rtc_time *);
|
/linux-4.1.27/arch/powerpc/include/asm/ |
D | rtc.h | 45 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time() 53 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time() 62 struct rtc_time h; in get_rtc_ss()
|
D | rtas.h | 360 struct rtc_time; 362 extern void rtas_get_rtc_time(struct rtc_time *rtc_time); 363 extern int rtas_set_rtc_time(struct rtc_time *rtc_time);
|
D | time.h | 28 struct rtc_time; 29 extern void to_tm(int tim, struct rtc_time * tm); 30 extern void GregorianDay(struct rtc_time *tm);
|
D | smu.h | 469 struct rtc_time; 470 extern int smu_get_rtc_time(struct rtc_time *time, int spinwait); 471 extern int smu_set_rtc_time(struct rtc_time *time, int spinwait);
|
D | machdep.h | 28 struct rtc_time; 147 int (*set_rtc_time)(struct rtc_time *); 148 void (*get_rtc_time)(struct rtc_time *);
|
/linux-4.1.27/drivers/input/misc/ |
D | hp_sdc_rtc.c | 84 static int hp_sdc_rtc_do_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_do_read_bbrtc() 120 memset(rtctm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_do_read_bbrtc() 132 static int hp_sdc_rtc_read_bbrtc (struct rtc_time *rtctm) in hp_sdc_rtc_read_bbrtc() 134 struct rtc_time tm, tm_last; in hp_sdc_rtc_read_bbrtc() 142 while (memcmp(&tm, &tm_last, sizeof(struct rtc_time))) { in hp_sdc_rtc_read_bbrtc() 144 memcpy(&tm_last, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc() 148 memcpy(rtctm, &tm, sizeof(struct rtc_time)); in hp_sdc_rtc_read_bbrtc() 435 struct rtc_time tm; in hp_sdc_rtc_proc_show() 438 memset(&tm, 0, sizeof(struct rtc_time)); in hp_sdc_rtc_proc_show() 531 struct rtc_time wtime; in hp_sdc_rtc_ioctl() [all …]
|
/linux-4.1.27/arch/m68k/include/asm/ |
D | rtc.h | 31 static inline unsigned int get_rtc_time(struct rtc_time *time) in get_rtc_time() 44 static inline int set_rtc_time(struct rtc_time *time) in set_rtc_time() 56 struct rtc_time h; in get_rtc_ss()
|
D | machdep.h | 10 struct rtc_time; 20 extern int (*mach_hwclk)(int, struct rtc_time*);
|
/linux-4.1.27/arch/m32r/include/asm/ |
D | rtc.h | 46 struct rtc_time { struct 60 #define RTC_RD_TIME _IOR(RTC_MAGIC, 0x09, struct rtc_time) /* Read RTC time. */ argument 61 #define RTC_SET_TIME _IOW(RTC_MAGIC, 0x0a, struct rtc_time) /* Set RTC time. */
|
/linux-4.1.27/arch/alpha/kernel/ |
D | rtc.c | 82 alpha_rtc_read_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_read_time() 105 alpha_rtc_set_time(struct device *dev, struct rtc_time *tm) in alpha_rtc_set_time() 107 struct rtc_time xtm; in alpha_rtc_set_time() 228 struct rtc_time *tm; 241 remote_read_time(struct device *dev, struct rtc_time *tm) in remote_read_time() 260 remote_set_time(struct device *dev, struct rtc_time *tm) in remote_set_time()
|
/linux-4.1.27/arch/m68k/mvme16x/ |
D | rtc.c | 41 struct rtc_time wtime; in rtc_ioctl() 50 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 67 struct rtc_time rtc_tm; in rtc_ioctl() 74 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
|
D | config.c | 49 extern int mvme16x_hwclk (int, struct rtc_time *); 398 int mvme16x_hwclk(int op, struct rtc_time *t) in mvme16x_hwclk()
|
/linux-4.1.27/arch/powerpc/platforms/chrp/ |
D | chrp.h | 6 extern void chrp_get_rtc_time(struct rtc_time *); 7 extern int chrp_set_rtc_time(struct rtc_time *);
|
D | time.c | 85 int chrp_set_rtc_time(struct rtc_time *tmarg) in chrp_set_rtc_time() 88 struct rtc_time tm = *tmarg; in chrp_set_rtc_time() 129 void chrp_get_rtc_time(struct rtc_time *tm) in chrp_get_rtc_time()
|
/linux-4.1.27/arch/powerpc/platforms/8xx/ |
D | mpc8xx.h | 16 extern int mpc8xx_set_rtc_time(struct rtc_time *tm); 17 extern void mpc8xx_get_rtc_time(struct rtc_time *tm);
|
D | m8xx_setup.c | 167 int mpc8xx_set_rtc_time(struct rtc_time *tm) in mpc8xx_set_rtc_time() 187 void mpc8xx_get_rtc_time(struct rtc_time *tm) in mpc8xx_get_rtc_time()
|
/linux-4.1.27/arch/m68k/bvme6000/ |
D | rtc.c | 43 struct rtc_time wtime; in rtc_ioctl() 53 memset(&wtime, 0, sizeof(struct rtc_time)); in rtc_ioctl() 72 struct rtc_time rtc_tm; in rtc_ioctl() 79 if (copy_from_user(&rtc_tm, argp, sizeof(struct rtc_time))) in rtc_ioctl()
|
D | config.c | 44 extern int bvme6000_hwclk (int, struct rtc_time *); 269 int bvme6000_hwclk(int op, struct rtc_time *t) in bvme6000_hwclk()
|
/linux-4.1.27/arch/powerpc/platforms/maple/ |
D | maple.h | 6 extern int maple_set_rtc_time(struct rtc_time *tm); 7 extern void maple_get_rtc_time(struct rtc_time *tm);
|
D | time.c | 57 void maple_get_rtc_time(struct rtc_time *tm) in maple_get_rtc_time() 83 int maple_set_rtc_time(struct rtc_time *tm) in maple_set_rtc_time() 142 struct rtc_time tm; in maple_get_boot_time()
|
/linux-4.1.27/arch/powerpc/kernel/ |
D | rtas-rtc.c | 47 void rtas_get_rtc_time(struct rtc_time *rtc_tm) in rtas_get_rtc_time() 61 memset(rtc_tm, 0, sizeof(struct rtc_time)); in rtas_get_rtc_time() 86 int rtas_set_rtc_time(struct rtc_time *tm) in rtas_set_rtc_time()
|
D | time.c | 719 struct rtc_time tm; in update_persistent_clock() 733 struct rtc_time tm; in __read_persistent_clock() 1008 void GregorianDay(struct rtc_time * tm) in GregorianDay() 1037 void to_tm(int tim, struct rtc_time * tm) in to_tm()
|
/linux-4.1.27/arch/parisc/include/asm/ |
D | rtc.h | 47 static inline unsigned int get_rtc_time(struct rtc_time *wtime) in get_rtc_time() 99 static int set_rtc_time(struct rtc_time *wtime) in set_rtc_time() 115 struct rtc_time h; in get_rtc_ss()
|
/linux-4.1.27/arch/ia64/sn/kernel/sn2/ |
D | timer.c | 46 unsigned long start = rtc_time(); in ia64_sn_udelay() 50 while (time_before((unsigned long)rtc_time(), end)) in ia64_sn_udelay()
|
/linux-4.1.27/arch/sh/kernel/ |
D | time.c | 53 unsigned int get_rtc_time(struct rtc_time *tm) in get_rtc_time() 66 int set_rtc_time(struct rtc_time *tm) in set_rtc_time()
|
/linux-4.1.27/include/asm-generic/ |
D | rtc.h | 45 static inline unsigned int __get_rtc_time(struct rtc_time *time) in __get_rtc_time() 116 static inline int __set_rtc_time(struct rtc_time *time) in __set_rtc_time() 203 struct rtc_time h; in get_rtc_ss()
|
/linux-4.1.27/arch/powerpc/platforms/ps3/ |
D | time.c | 32 static void _dump_tm(const struct rtc_time *tm, const char* func, int line) in _dump_tm() 47 struct rtc_time tm; in _dump_time()
|
D | platform.h | 61 void ps3_get_rtc_time(struct rtc_time *time); 62 int ps3_set_rtc_time(struct rtc_time *time);
|
/linux-4.1.27/arch/powerpc/platforms/powernv/ |
D | opal-rtc.c | 25 static void opal_to_tm(u32 y_m_d, u64 h_m_s_ms, struct rtc_time *tm) in opal_to_tm() 40 struct rtc_time tm; in opal_get_boot_time()
|
/linux-4.1.27/arch/m68k/mvme147/ |
D | config.c | 43 extern int mvme147_hwclk (int, struct rtc_time *); 151 int mvme147_hwclk(int op, struct rtc_time *t) in mvme147_hwclk()
|
/linux-4.1.27/arch/ia64/include/asm/sn/ |
D | clksupport.h | 26 #define rtc_time() (*RTC_COUNTER_ADDR) macro
|
/linux-4.1.27/arch/m68k/sun3x/ |
D | time.h | 4 extern int sun3x_hwclk(int set, struct rtc_time *t);
|
D | time.c | 39 int sun3x_hwclk(int set, struct rtc_time *t) in sun3x_hwclk()
|
/linux-4.1.27/arch/m68k/68000/ |
D | m68328.c | 30 int m68328_hwclk(int set, struct rtc_time *t);
|
D | m68EZ328.c | 29 int m68328_hwclk(int set, struct rtc_time *t);
|
D | timers.c | 124 int m68328_hwclk(int set, struct rtc_time *t) in m68328_hwclk()
|
D | m68VZ328.c | 37 int m68328_hwclk(int set, struct rtc_time *t);
|
/linux-4.1.27/Documentation/ia64/ |
D | efirtc.txt | 37 similar to the struct tm, i.e. struct rtc_time, as used by hwclock. 65 struct rtc_time { 107 The wkt structure encapsulates a struct rtc_time + 2 extra fields to get 115 struct rtc_time time;
|
/linux-4.1.27/drivers/base/power/ |
D | trace.c | 84 static struct rtc_time time = { in set_magic_time() 112 struct rtc_time time; in read_magic_time()
|
/linux-4.1.27/arch/m68k/q40/ |
D | config.c | 44 static int q40_hwclk(int, struct rtc_time *); 228 static int q40_hwclk(int op, struct rtc_time *t) in q40_hwclk()
|
/linux-4.1.27/arch/m68k/apollo/ |
D | config.c | 33 extern int dn_dummy_hwclk(int, struct rtc_time *); 215 int dn_dummy_hwclk(int op, struct rtc_time *t) { in dn_dummy_hwclk()
|
/linux-4.1.27/arch/m68k/kernel/ |
D | time.c | 75 struct rtc_time time; in read_persistent_clock()
|
D | setup_no.c | 53 int (*mach_hwclk) (int, struct rtc_time*);
|
/linux-4.1.27/arch/m68k/sun3/ |
D | intersil.c | 34 int sun3_hwclk(int set, struct rtc_time *t) in sun3_hwclk()
|
D | config.c | 44 extern int sun3_hwclk(int set, struct rtc_time *t);
|
/linux-4.1.27/arch/mn10300/kernel/ |
D | rtc.c | 28 struct rtc_time tm; in read_persistent_clock()
|
/linux-4.1.27/arch/alpha/include/asm/ |
D | machvec.h | 24 struct rtc_time;
|
/linux-4.1.27/arch/m68k/atari/ |
D | time.c | 107 int atari_mste_hwclk( int op, struct rtc_time *t ) in atari_mste_hwclk() 166 int atari_tt_hwclk( int op, struct rtc_time *t ) in atari_tt_hwclk()
|
D | config.c | 82 extern int atari_mste_hwclk (int, struct rtc_time *); 83 extern int atari_tt_hwclk (int, struct rtc_time *);
|
/linux-4.1.27/arch/x86/platform/intel-mid/ |
D | intel_mid_vrtc.c | 92 struct rtc_time tm; in vrtc_set_mmss()
|
/linux-4.1.27/arch/x86/kernel/ |
D | rtc.c | 44 struct rtc_time tm; in mach_set_rtc_mmss()
|
/linux-4.1.27/drivers/mfd/ |
D | menelaus.c | 841 static void menelaus_to_time(char *regs, struct rtc_time *t) in menelaus_to_time() 856 static int time_to_menelaus(struct rtc_time *t, int regnum) in time_to_menelaus() 899 static int menelaus_read_time(struct device *dev, struct rtc_time *t) in menelaus_read_time() 930 static int menelaus_set_time(struct device *dev, struct rtc_time *t) in menelaus_set_time()
|
/linux-4.1.27/arch/mips/sibyte/swarm/ |
D | rtc_m41t81.c | 146 struct rtc_time tm; in m41t81_set_time()
|
D | rtc_xicor1241.c | 114 struct rtc_time tm; in xicor_set_time()
|
/linux-4.1.27/arch/m68k/mac/ |
D | misc.c | 693 int mac_hwclk(int op, struct rtc_time *t) in mac_hwclk() 761 struct rtc_time now; in mac_set_clock_mmss()
|
/linux-4.1.27/drivers/macintosh/ |
D | smu.c | 364 struct rtc_time *time) in smu_fill_set_rtc_cmd() 379 int smu_get_rtc_time(struct rtc_time *time, int spinwait) in smu_get_rtc_time() 387 memset(time, 0, sizeof(struct rtc_time)); in smu_get_rtc_time() 406 int smu_set_rtc_time(struct rtc_time *time, int spinwait) in smu_set_rtc_time()
|
/linux-4.1.27/tools/testing/selftests/timers/ |
D | rtctest.c | 37 struct rtc_time rtc_tm; in main()
|
/linux-4.1.27/arch/m68k/hp300/ |
D | config.c | 202 static int hp300_hwclk(int op, struct rtc_time *t) in hp300_hwclk()
|