/drivers/rtc/ |
H A D | hctosys.c | 30 struct rtc_time tm; local 42 err = rtc_read_time(rtc, &tm); 50 err = rtc_valid_tm(&tm); 57 rtc_tm_to_time(&tm, &tv.tv_sec); 64 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday, 65 tm.tm_hour, tm.tm_min, tm [all...] |
H A D | rtc-au1xxx.c | 31 static int au1xtoy_rtc_read_time(struct device *dev, struct rtc_time *tm) argument 37 rtc_time_to_tm(t, tm); 39 return rtc_valid_tm(tm); 42 static int au1xtoy_rtc_set_time(struct device *dev, struct rtc_time *tm) argument 46 rtc_tm_to_time(tm, &t);
|
H A D | rtc-dm355evm.c | 37 static int dm355evm_rtc_read_time(struct device *dev, struct rtc_time *tm) argument 81 rtc_time_to_tm(le32_to_cpu(time.value), tm); local 85 static int dm355evm_rtc_set_time(struct device *dev, struct rtc_time *tm) argument 91 rtc_tm_to_time(tm, &value);
|
H A D | rtc-generic.c | 14 static int generic_get_time(struct device *dev, struct rtc_time *tm) argument 16 unsigned int ret = get_rtc_time(tm); 21 return rtc_valid_tm(tm); 24 static int generic_set_time(struct device *dev, struct rtc_time *tm) argument 26 if (set_rtc_time(tm) < 0)
|
H A D | rtc-ps3.c | 41 static int ps3_get_time(struct device *dev, struct rtc_time *tm) argument 43 rtc_time_to_tm(read_rtc() + ps3_os_area_get_rtc_diff(), tm); 44 return rtc_valid_tm(tm); 47 static int ps3_set_time(struct device *dev, struct rtc_time *tm) argument 51 rtc_tm_to_time(tm, &now);
|
H A D | rtc-starfire.c | 30 static int starfire_read_time(struct device *dev, struct rtc_time *tm) argument 32 rtc_time_to_tm(starfire_get_time(), tm); local 33 return rtc_valid_tm(tm);
|
H A D | rtc-tile.c | 28 static int read_rtc_time(struct device *dev, struct rtc_time *tm) argument 32 tm->tm_sec = hvtm.tm_sec; 33 tm->tm_min = hvtm.tm_min; 34 tm->tm_hour = hvtm.tm_hour; 35 tm->tm_mday = hvtm.tm_mday; 36 tm->tm_mon = hvtm.tm_mon; 37 tm->tm_year = hvtm.tm_year; 38 tm->tm_wday = 0; 39 tm->tm_yday = 0; 40 tm 52 set_rtc_time(struct device *dev, struct rtc_time *tm) argument [all...] |
H A D | rtc-lib.c | 51 void rtc_time_to_tm(unsigned long time, struct rtc_time *tm) argument 60 tm->tm_wday = (days + 4) % 7; 70 tm->tm_year = year - 1900; 71 tm->tm_yday = days + 1; 81 tm->tm_mon = month; 82 tm->tm_mday = days + 1; 84 tm->tm_hour = time / 3600; 85 time -= tm->tm_hour * 3600; 86 tm->tm_min = time / 60; 87 tm 96 rtc_valid_tm(struct rtc_time *tm) argument 114 rtc_tm_to_time(struct rtc_time *tm, unsigned long *time) argument 125 rtc_tm_to_ktime(struct rtc_time tm) argument [all...] |
H A D | rtc-proc.c | 28 struct rtc_time tm; local 30 err = rtc_read_time(rtc, &tm); 35 tm.tm_hour, tm.tm_min, tm.tm_sec, 36 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday);
|
H A D | rtc-sun4v.c | 36 static int sun4v_read_time(struct device *dev, struct rtc_time *tm) argument 38 rtc_time_to_tm(hypervisor_get_time(), tm); local 63 static int sun4v_set_time(struct device *dev, struct rtc_time *tm) argument 68 err = rtc_tm_to_time(tm, &secs);
|
H A D | class.c | 47 struct rtc_time tm; local 53 rtc_read_time(rtc, &tm); 55 rtc_tm_to_time(&tm, &old_rtc.tv_sec); 83 struct rtc_time tm; local 92 rtc_read_time(rtc, &tm); 93 if (rtc_valid_tm(&tm) != 0) { 97 rtc_tm_to_time(&tm, &new_rtc.tv_sec);
|
H A D | rtc-efi.c | 150 static int efi_read_time(struct device *dev, struct rtc_time *tm) argument 164 convert_from_efi_time(&eft, tm); 166 return rtc_valid_tm(tm); 169 static int efi_set_time(struct device *dev, struct rtc_time *tm) argument 174 convert_to_efi_time(tm, &eft);
|
H A D | rtc-m41t94.c | 32 static int m41t94_set_time(struct device *dev, struct rtc_time *tm) argument 39 "write", tm->tm_sec, tm->tm_min, 40 tm->tm_hour, tm->tm_mday, 41 tm->tm_mon, tm->tm_year, tm->tm_wday); 44 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); 45 buf[M41T94_REG_MINUTES] = bin2bcd(tm 59 m41t94_read_time(struct device *dev, struct rtc_time *tm) argument [all...] |
H A D | rtc-pl030.c | 63 static int pl030_read_time(struct device *dev, struct rtc_time *tm) argument 67 rtc_time_to_tm(readl(rtc->base + RTC_DR), tm); 80 static int pl030_set_time(struct device *dev, struct rtc_time *tm) argument 86 ret = rtc_tm_to_time(tm, &time);
|
H A D | rtc-ab3100.c | 76 static int ab3100_rtc_read_time(struct device *dev, struct rtc_time *tm) argument 108 rtc_time_to_tm(time, tm); 110 return rtc_valid_tm(tm);
|
H A D | rtc-bq32k.c | 79 static int bq32k_rtc_read_time(struct device *dev, struct rtc_time *tm) argument 88 tm->tm_sec = bcd2bin(regs.seconds & BQ32K_SECONDS_MASK); 89 tm->tm_min = bcd2bin(regs.minutes & BQ32K_SECONDS_MASK); 90 tm->tm_hour = bcd2bin(regs.cent_hours & BQ32K_HOURS_MASK); 91 tm->tm_mday = bcd2bin(regs.date); 92 tm->tm_wday = bcd2bin(regs.day) - 1; 93 tm->tm_mon = bcd2bin(regs.month) - 1; 94 tm->tm_year = bcd2bin(regs.years) + 97 return rtc_valid_tm(tm); 100 static int bq32k_rtc_set_time(struct device *dev, struct rtc_time *tm) argument [all...] |
H A D | rtc-bq4802.c | 49 static int bq4802_read_time(struct device *dev, struct rtc_time *tm) argument 62 tm->tm_sec = p->read(p, 0x00); 63 tm->tm_min = p->read(p, 0x02); 64 tm->tm_hour = p->read(p, 0x04); 65 tm->tm_mday = p->read(p, 0x06); 66 tm->tm_mon = p->read(p, 0x09); 67 tm->tm_year = p->read(p, 0x0a); 68 tm->tm_wday = p->read(p, 0x08); 75 tm->tm_sec = bcd2bin(tm 92 bq4802_set_time(struct device *dev, struct rtc_time *tm) argument [all...] |
H A D | rtc-da9052.c | 164 static int da9052_rtc_set_time(struct device *dev, struct rtc_time *tm) argument 171 v[0] = tm->tm_sec; 172 v[1] = tm->tm_min; 173 v[2] = tm->tm_hour; 174 v[3] = tm->tm_mday; 175 v[4] = tm->tm_mon + 1; 176 v[5] = tm->tm_year - 100; 184 struct rtc_time *tm = &alrm->time; local 187 ret = da9052_read_alarm(rtc->da9052, tm); 200 struct rtc_time *tm local [all...] |
H A D | rtc-ds1672.c | 33 static int ds1672_get_datetime(struct i2c_client *client, struct rtc_time *tm) argument 56 rtc_time_to_tm(time, tm); 58 dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d, " 60 __func__, tm->tm_sec, tm->tm_min, tm->tm_hour, 61 tm->tm_mday, tm->tm_mon, tm->tm_year, tm 87 ds1672_rtc_read_time(struct device *dev, struct rtc_time *tm) argument [all...] |
H A D | rtc-em3027.c | 44 static int em3027_get_time(struct device *dev, struct rtc_time *tm) argument 62 tm->tm_sec = bcd2bin(buf[0]); 63 tm->tm_min = bcd2bin(buf[1]); 64 tm->tm_hour = bcd2bin(buf[2]); 65 tm->tm_mday = bcd2bin(buf[3]); 66 tm->tm_wday = bcd2bin(buf[4]); 67 tm->tm_mon = bcd2bin(buf[5]); 68 tm->tm_year = bcd2bin(buf[6]) + 100; 73 static int em3027_set_time(struct device *dev, struct rtc_time *tm) argument 83 buf[1] = bin2bcd(tm [all...] |
H A D | rtc-m41t93.c | 48 static int m41t93_set_time(struct device *dev, struct rtc_time *tm) argument 56 "write", tm->tm_sec, tm->tm_min, 57 tm->tm_hour, tm->tm_mday, 58 tm->tm_mon, tm->tm_year, tm->tm_wday); 60 if (tm->tm_year < 100) { 66 data[M41T93_REG_ST_SEC] = bin2bcd(tm 79 m41t93_get_time(struct device *dev, struct rtc_time *tm) argument [all...] |
/drivers/md/persistent-data/ |
H A D | dm-btree.h | 82 struct dm_transaction_manager *tm; member in struct:dm_btree_info
|
/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_timer.c | 55 int stmmac_open_ext_timer(struct net_device *dev, struct stmmac_timer *tm) argument 69 if ((rtc_irq_set_freq(stmmac_rtc, &stmmac_task, tm->freq) < 0)) { 76 STMMAC_TIMER_MSG(CONFIG_RTC_HCTOSYS_DEVICE, tm->freq); 78 tm->timer_start = stmmac_rtc_start; 79 tm->timer_stop = stmmac_rtc_stop; 108 int stmmac_open_ext_timer(struct net_device *dev, struct stmmac_timer *tm) argument 120 STMMAC_TIMER_MSG("TMU2", tm->freq); 121 tm->timer_start = stmmac_tmu_start; 122 tm->timer_stop = stmmac_tmu_stop;
|
/drivers/net/fddi/skfp/ |
H A D | smttimer.c | 42 struct smt_timer *tm ; local 51 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { 52 if (tm == timer) { 53 *prev = tm->tm_next ; 54 if (tm->tm_next) { 55 tm->tm_next->tm_delta += tm->tm_delta ; 66 struct smt_timer *tm ; local 92 for (prev = &smc->t.st_queue ; (tm 123 struct smt_timer *tm ; local [all...] |
/drivers/char/ |
H A D | ds1302.c | 265 struct rtc_time tm; local 269 get_rtc_time(&tm); 279 tm.tm_hour, tm.tm_min, tm.tm_sec, 280 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday);
|