Searched refs:tm (Results 1 - 25 of 134) sorted by relevance

123456

/drivers/rtc/
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 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-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-at91rm9200.c51 struct rtc_time *tm)
62 tm->tm_sec = bcd2bin((time & AT91_RTC_SEC) >> 0);
63 tm->tm_min = bcd2bin((time & AT91_RTC_MIN) >> 8);
64 tm->tm_hour = bcd2bin((time & AT91_RTC_HOUR) >> 16);
71 tm->tm_year = bcd2bin(date & AT91_RTC_CENT) * 100; /* century */
72 tm->tm_year += bcd2bin((date & AT91_RTC_YEAR) >> 8); /* year */
74 tm->tm_wday = bcd2bin((date & AT91_RTC_DAY) >> 21) - 1; /* day of the week [0-6], Sunday=0 */
75 tm->tm_mon = bcd2bin((date & AT91_RTC_MONTH) >> 16) - 1;
76 tm->tm_mday = bcd2bin((date & AT91_RTC_DATE) >> 24);
82 static int at91_rtc_readtime(struct device *dev, struct rtc_time *tm) argument
50 at91_rtc_decodetime(unsigned int timereg, unsigned int calreg, struct rtc_time *tm) argument
98 at91_rtc_settime(struct device *dev, struct rtc_time *tm) argument
138 struct rtc_time *tm = &alrm->time; local
159 struct rtc_time tm; local
[all...]
H A Drtc-pcf8563.c73 static int pcf8563_get_datetime(struct i2c_client *client, struct rtc_time *tm) argument
102 tm->tm_sec = bcd2bin(buf[PCF8563_REG_SC] & 0x7F);
103 tm->tm_min = bcd2bin(buf[PCF8563_REG_MN] & 0x7F);
104 tm->tm_hour = bcd2bin(buf[PCF8563_REG_HR] & 0x3F); /* rtc hr 0-23 */
105 tm->tm_mday = bcd2bin(buf[PCF8563_REG_DM] & 0x3F);
106 tm->tm_wday = buf[PCF8563_REG_DW] & 0x07;
107 tm->tm_mon = bcd2bin(buf[PCF8563_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */
108 tm->tm_year = bcd2bin(buf[PCF8563_REG_YR]);
109 if (tm->tm_year < 70)
110 tm
130 pcf8563_set_datetime(struct i2c_client *client, struct rtc_time *tm) argument
176 pcf8563_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
181 pcf8563_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
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-rx8581.c61 static int rx8581_get_datetime(struct i2c_client *client, struct rtc_time *tm) argument
115 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F);
116 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F);
117 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */
118 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F);
119 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F);
120 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */
121 tm->tm_year = bcd2bin(date[RX8581_REG_YR]);
122 if (tm->tm_year < 70)
123 tm
139 rx8581_set_datetime(struct i2c_client *client, struct rtc_time *tm) argument
216 rx8581_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
221 rx8581_rtc_set_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-isl12022.c106 static int isl12022_get_datetime(struct i2c_client *client, struct rtc_time *tm) argument
137 tm->tm_sec = bcd2bin(buf[ISL12022_REG_SC] & 0x7F);
138 tm->tm_min = bcd2bin(buf[ISL12022_REG_MN] & 0x7F);
139 tm->tm_hour = bcd2bin(buf[ISL12022_REG_HR] & 0x3F);
140 tm->tm_mday = bcd2bin(buf[ISL12022_REG_DT] & 0x3F);
141 tm->tm_wday = buf[ISL12022_REG_DW] & 0x07;
142 tm->tm_mon = bcd2bin(buf[ISL12022_REG_MO] & 0x1F) - 1;
143 tm->tm_year = bcd2bin(buf[ISL12022_REG_YR]) + 100;
148 tm->tm_sec, tm
159 isl12022_set_datetime(struct i2c_client *client, struct rtc_time *tm) argument
235 isl12022_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
240 isl12022_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-msm6242.c123 static int msm6242_read_time(struct device *dev, struct rtc_time *tm) argument
129 tm->tm_sec = msm6242_read(priv, MSM6242_SECOND10) * 10 +
131 tm->tm_min = msm6242_read(priv, MSM6242_MINUTE10) * 10 +
133 tm->tm_hour = (msm6242_read(priv, MSM6242_HOUR10 & 3)) * 10 +
135 tm->tm_mday = msm6242_read(priv, MSM6242_DAY10) * 10 +
137 tm->tm_wday = msm6242_read(priv, MSM6242_WEEK);
138 tm->tm_mon = msm6242_read(priv, MSM6242_MONTH10) * 10 +
140 tm->tm_year = msm6242_read(priv, MSM6242_YEAR10) * 10 +
142 if (tm->tm_year <= 69)
143 tm
159 msm6242_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-wm8350.c38 static int wm8350_rtc_readtime(struct device *dev, struct rtc_time *tm) argument
59 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK;
61 tm->tm_min = (time1[0] & WM8350_RTC_MINS_MASK)
64 tm->tm_hour = time1[1] & WM8350_RTC_HRS_MASK;
66 tm->tm_wday = ((time1[1] >> WM8350_RTC_DAY_SHIFT)
69 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK)
72 tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK);
74 tm->tm_year = ((time1[3] & WM8350_RTC_YHUNDREDS_MASK)
76 tm->tm_year += time1[3] & WM8350_RTC_YUNITS_MASK;
78 tm
97 wm8350_rtc_settime(struct device *dev, struct rtc_time *tm) argument
149 struct rtc_time *tm = &alrm->time; local
253 struct rtc_time *tm = &alrm->time; local
[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...]
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-m48t86.c45 static int m48t86_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
55 tm->tm_sec = ops->readbyte(M48T86_REG_SEC);
56 tm->tm_min = ops->readbyte(M48T86_REG_MIN);
57 tm->tm_hour = ops->readbyte(M48T86_REG_HOUR) & 0x3F;
58 tm->tm_mday = ops->readbyte(M48T86_REG_DOM);
60 tm->tm_mon = ops->readbyte(M48T86_REG_MONTH) - 1;
61 tm->tm_year = ops->readbyte(M48T86_REG_YEAR) + 100;
62 tm->tm_wday = ops->readbyte(M48T86_REG_DOW);
65 tm->tm_sec = bcd2bin(ops->readbyte(M48T86_REG_SEC));
66 tm
83 m48t86_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-m48t35.c49 static int m48t35_read_time(struct device *dev, struct rtc_time *tm) argument
63 tm->tm_sec = readb(&priv->reg->sec);
64 tm->tm_min = readb(&priv->reg->min);
65 tm->tm_hour = readb(&priv->reg->hour);
66 tm->tm_mday = readb(&priv->reg->date);
67 tm->tm_mon = readb(&priv->reg->month);
68 tm->tm_year = readb(&priv->reg->year);
72 tm->tm_sec = bcd2bin(tm->tm_sec);
73 tm
91 m48t35_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-s35390a.c129 static int s35390a_set_datetime(struct i2c_client *client, struct rtc_time *tm) argument
135 dev_dbg(&client->dev, "%s: tm is secs=%d, mins=%d, hours=%d mday=%d, "
136 "mon=%d, year=%d, wday=%d\n", __func__, tm->tm_sec,
137 tm->tm_min, tm->tm_hour, tm->tm_mday, tm->tm_mon, tm->tm_year,
138 tm->tm_wday);
140 buf[S35390A_BYTE_YEAR] = bin2bcd(tm
157 s35390a_get_datetime(struct i2c_client *client, struct rtc_time *tm) argument
187 s35390a_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
192 s35390a_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
210 struct rtc_time tm; local
[all...]
H A Drtc-pcf2123.c132 static int pcf2123_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
145 tm->tm_sec = bcd2bin(rxbuf[0] & 0x7F);
146 tm->tm_min = bcd2bin(rxbuf[1] & 0x7F);
147 tm->tm_hour = bcd2bin(rxbuf[2] & 0x3F); /* rtc hr 0-23 */
148 tm->tm_mday = bcd2bin(rxbuf[3] & 0x3F);
149 tm->tm_wday = rxbuf[4] & 0x07;
150 tm->tm_mon = bcd2bin(rxbuf[5] & 0x1F) - 1; /* rtc mn 1-12 */
151 tm->tm_year = bcd2bin(rxbuf[6]);
152 if (tm->tm_year < 70)
153 tm
170 pcf2123_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-ds1302.c140 static int ds1302_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
142 tm->tm_sec = bcd2bin(ds1302_readbyte(RTC_ADDR_SEC));
143 tm->tm_min = bcd2bin(ds1302_readbyte(RTC_ADDR_MIN));
144 tm->tm_hour = bcd2bin(ds1302_readbyte(RTC_ADDR_HOUR));
145 tm->tm_wday = bcd2bin(ds1302_readbyte(RTC_ADDR_DAY));
146 tm->tm_mday = bcd2bin(ds1302_readbyte(RTC_ADDR_DATE));
147 tm->tm_mon = bcd2bin(ds1302_readbyte(RTC_ADDR_MON)) - 1;
148 tm->tm_year = bcd2bin(ds1302_readbyte(RTC_ADDR_YEAR));
150 if (tm->tm_year < 70)
151 tm
162 ds1302_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
/drivers/md/persistent-data/
H A Ddm-transaction-manager.c45 static int is_shadow(struct dm_transaction_manager *tm, dm_block_t b) argument
52 spin_lock(&tm->lock);
53 hlist_for_each_entry(si, n, tm->buckets + bucket, hlist)
58 spin_unlock(&tm->lock);
67 static void insert_shadow(struct dm_transaction_manager *tm, dm_block_t b) argument
76 spin_lock(&tm->lock);
77 hlist_add_head(&si->hlist, tm->buckets + bucket);
78 spin_unlock(&tm->lock);
82 static void wipe_shadow_table(struct dm_transaction_manager *tm) argument
89 spin_lock(&tm
107 struct dm_transaction_manager *tm; local
127 struct dm_transaction_manager *tm; local
139 dm_tm_destroy(struct dm_transaction_manager *tm) argument
148 dm_tm_pre_commit(struct dm_transaction_manager *tm) argument
163 dm_tm_commit(struct dm_transaction_manager *tm, struct dm_block *root) argument
174 dm_tm_new_block(struct dm_transaction_manager *tm, struct dm_block_validator *v, struct dm_block **result) argument
203 __shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, struct dm_block_validator *v, struct dm_block **result) argument
232 dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig, struct dm_block_validator *v, struct dm_block **result, int *inc_children) argument
256 dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b, struct dm_block_validator *v, struct dm_block **blk) argument
266 dm_tm_unlock(struct dm_transaction_manager *tm, struct dm_block *b) argument
272 dm_tm_inc(struct dm_transaction_manager *tm, dm_block_t b) argument
283 dm_tm_dec(struct dm_transaction_manager *tm, dm_block_t b) argument
294 dm_tm_ref(struct dm_transaction_manager *tm, dm_block_t b, uint32_t *result) argument
303 dm_tm_get_bm(struct dm_transaction_manager *tm) argument
310 dm_tm_create_internal(struct dm_block_manager *bm, dm_block_t sb_location, struct dm_block_validator *sb_validator, size_t root_offset, size_t root_max_len, struct dm_transaction_manager **tm, struct dm_space_map **sm, struct dm_block **sblock, int create) argument
386 dm_tm_create_with_sm(struct dm_block_manager *bm, dm_block_t sb_location, struct dm_block_validator *sb_validator, struct dm_transaction_manager **tm, struct dm_space_map **sm, struct dm_block **sblock) argument
396 dm_tm_open_with_sm(struct dm_block_manager *bm, dm_block_t sb_location, struct dm_block_validator *sb_validator, size_t root_offset, size_t root_max_len, struct dm_transaction_manager **tm, struct dm_space_map **sm, struct dm_block **sblock) argument
[all...]
H A Ddm-transaction-manager.h24 void dm_tm_destroy(struct dm_transaction_manager *tm);
29 * You create the non-blocking variant from a normal tm. The interface is
33 * tm when you've finished with it. You may not destroy the original prior
51 int dm_tm_pre_commit(struct dm_transaction_manager *tm);
52 int dm_tm_commit(struct dm_transaction_manager *tm, struct dm_block *root);
66 int dm_tm_new_block(struct dm_transaction_manager *tm,
75 * this operation. Because the tm knows the scope of the transaction it
86 int dm_tm_shadow_block(struct dm_transaction_manager *tm, dm_block_t orig,
94 int dm_tm_read_lock(struct dm_transaction_manager *tm, dm_block_t b,
98 int dm_tm_unlock(struct dm_transaction_manager *tm, struc
[all...]
H A Ddm-space-map-disk.h17 * between the tm and sm.
19 struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
22 struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
H A Ddm-space-map-metadata.h14 * between the tm and sm.
22 struct dm_transaction_manager *tm,
30 struct dm_transaction_manager *tm,
/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/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/isdn/mISDN/
H A Dtei.c230 struct teimgr *tm = fi->userdata; local
243 tm->l2->sapi, tm->l2->tei, &vaf);
467 struct teimgr *tm = fi->userdata; local
469 if (tm->l2->tei != GROUP_TEI) {
470 tm->tei_m.printdebug(&tm->tei_m,
472 tm->l2->tei);
475 tm->ri = random_ri();
477 tm
488 struct teimgr *tm = fi->userdata; local
517 struct teimgr *tm = fi->userdata; local
542 struct teimgr *tm = fi->userdata; local
558 struct teimgr *tm = fi->userdata; local
576 struct teimgr *tm = fi->userdata; local
594 struct teimgr *tm = fi->userdata; local
608 struct teimgr *tm = fi->userdata; local
627 struct teimgr *tm = fi->userdata; local
671 struct teimgr *tm = fi->userdata; local
691 struct teimgr *tm = fi->userdata; local
706 struct teimgr *tm = fi->userdata; local
720 struct teimgr *tm = fi->userdata; local
735 struct teimgr *tm = fi->userdata; local
770 tei_ph_data_ind(struct teimgr *tm, u_int mt, u_char *dp, int len) argument
932 struct teimgr *tm = l2->tm; local
967 struct teimgr *tm = l2->tm; local
[all...]

Completed in 936 milliseconds

123456