Searched defs:tm (Results 1 - 25 of 119) sorted by relevance

12345

/drivers/rtc/
H A Dhctosys.c30 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 Drtc-au1xxx.c31 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 Drtc-dm355evm.c37 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 Drtc-generic.c14 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 Drtc-ps3.c41 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 Drtc-starfire.c30 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 Drtc-tile.c28 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 Drtc-lib.c51 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 Drtc-proc.c28 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 Drtc-sun4v.c36 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 Dclass.c47 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 Drtc-efi.c150 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 Drtc-m41t94.c32 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 Drtc-pl030.c63 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 Drtc-ab3100.c76 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 Drtc-bq32k.c79 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 Drtc-bq4802.c49 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 Drtc-da9052.c164 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 Drtc-ds1672.c33 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 Drtc-em3027.c44 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 Drtc-m41t93.c48 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 Ddm-btree.h82 struct dm_transaction_manager *tm; member in struct:dm_btree_info
/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_timer.c55 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 Dsmttimer.c42 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 Dds1302.c265 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);

Completed in 402 milliseconds

12345