/drivers/md/persistent-data/ |
D | dm-transaction-manager.c | 103 static int is_shadow(struct dm_transaction_manager *tm, dm_block_t b) in is_shadow() argument 109 spin_lock(&tm->lock); in is_shadow() 110 hlist_for_each_entry(si, tm->buckets + bucket, hlist) in is_shadow() 115 spin_unlock(&tm->lock); in is_shadow() 124 static void insert_shadow(struct dm_transaction_manager *tm, dm_block_t b) in insert_shadow() argument 133 spin_lock(&tm->lock); in insert_shadow() 134 hlist_add_head(&si->hlist, tm->buckets + bucket); in insert_shadow() 135 spin_unlock(&tm->lock); in insert_shadow() 139 static void wipe_shadow_table(struct dm_transaction_manager *tm) in wipe_shadow_table() argument 146 spin_lock(&tm->lock); in wipe_shadow_table() [all …]
|
/drivers/rtc/ |
D | lib.c | 49 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm() argument 58 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm() 68 tm->tm_year = year - 1900; in rtc_time64_to_tm() 69 tm->tm_yday = days + 1; in rtc_time64_to_tm() 79 tm->tm_mon = month; in rtc_time64_to_tm() 80 tm->tm_mday = days + 1; in rtc_time64_to_tm() 82 tm->tm_hour = secs / 3600; in rtc_time64_to_tm() 83 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm() 84 tm->tm_min = secs / 60; in rtc_time64_to_tm() 85 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm() [all …]
|
D | rtc-wm8350.c | 31 static int wm8350_rtc_readtime(struct device *dev, struct rtc_time *tm) in wm8350_rtc_readtime() argument 52 tm->tm_sec = time1[0] & WM8350_RTC_SECS_MASK; in wm8350_rtc_readtime() 54 tm->tm_min = (time1[0] & WM8350_RTC_MINS_MASK) in wm8350_rtc_readtime() 57 tm->tm_hour = time1[1] & WM8350_RTC_HRS_MASK; in wm8350_rtc_readtime() 59 tm->tm_wday = ((time1[1] >> WM8350_RTC_DAY_SHIFT) in wm8350_rtc_readtime() 62 tm->tm_mon = ((time1[2] & WM8350_RTC_MTH_MASK) in wm8350_rtc_readtime() 65 tm->tm_mday = (time1[2] & WM8350_RTC_DATE_MASK); in wm8350_rtc_readtime() 67 tm->tm_year = ((time1[3] & WM8350_RTC_YHUNDREDS_MASK) in wm8350_rtc_readtime() 69 tm->tm_year += time1[3] & WM8350_RTC_YUNITS_MASK; in wm8350_rtc_readtime() 71 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime() [all …]
|
D | rtc-m41t94.c | 29 static int m41t94_set_time(struct device *dev, struct rtc_time *tm) in m41t94_set_time() argument 36 "write", tm->tm_sec, tm->tm_min, in m41t94_set_time() 37 tm->tm_hour, tm->tm_mday, in m41t94_set_time() 38 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t94_set_time() 41 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in m41t94_set_time() 42 buf[M41T94_REG_MINUTES] = bin2bcd(tm->tm_min); in m41t94_set_time() 43 buf[M41T94_REG_HOURS] = bin2bcd(tm->tm_hour); in m41t94_set_time() 44 buf[M41T94_REG_WDAY] = bin2bcd(tm->tm_wday + 1); in m41t94_set_time() 45 buf[M41T94_REG_DAY] = bin2bcd(tm->tm_mday); in m41t94_set_time() 46 buf[M41T94_REG_MONTH] = bin2bcd(tm->tm_mon + 1); in m41t94_set_time() [all …]
|
D | rtc-moxart.c | 139 static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm) in moxart_rtc_set_time() argument 147 (((tm->tm_year - 100) / 10) << 4) | in moxart_rtc_set_time() 148 ((tm->tm_year - 100) % 10)); in moxart_rtc_set_time() 151 (((tm->tm_mon + 1) / 10) << 4) | in moxart_rtc_set_time() 152 ((tm->tm_mon + 1) % 10)); in moxart_rtc_set_time() 155 ((tm->tm_mday / 10) << 4) | in moxart_rtc_set_time() 156 (tm->tm_mday % 10)); in moxart_rtc_set_time() 159 ((tm->tm_hour / 10) << 4) | in moxart_rtc_set_time() 160 (tm->tm_hour % 10)); in moxart_rtc_set_time() 163 ((tm->tm_min / 10) << 4) | in moxart_rtc_set_time() [all …]
|
D | rtc-msm6242.c | 114 static int msm6242_read_time(struct device *dev, struct rtc_time *tm) in msm6242_read_time() argument 120 tm->tm_sec = msm6242_read(priv, MSM6242_SECOND10) * 10 + in msm6242_read_time() 122 tm->tm_min = msm6242_read(priv, MSM6242_MINUTE10) * 10 + in msm6242_read_time() 124 tm->tm_hour = (msm6242_read(priv, MSM6242_HOUR10) & in msm6242_read_time() 127 tm->tm_mday = msm6242_read(priv, MSM6242_DAY10) * 10 + in msm6242_read_time() 129 tm->tm_wday = msm6242_read(priv, MSM6242_WEEK); in msm6242_read_time() 130 tm->tm_mon = msm6242_read(priv, MSM6242_MONTH10) * 10 + in msm6242_read_time() 132 tm->tm_year = msm6242_read(priv, MSM6242_YEAR10) * 10 + in msm6242_read_time() 134 if (tm->tm_year <= 69) in msm6242_read_time() 135 tm->tm_year += 100; in msm6242_read_time() [all …]
|
D | rtc-m41t93.c | 45 static int m41t93_set_time(struct device *dev, struct rtc_time *tm) in m41t93_set_time() argument 54 "write", tm->tm_sec, tm->tm_min, in m41t93_set_time() 55 tm->tm_hour, tm->tm_mday, in m41t93_set_time() 56 tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t93_set_time() 58 if (tm->tm_year < 100) { in m41t93_set_time() 88 data[M41T93_REG_ST_SEC] = bin2bcd(tm->tm_sec); in m41t93_set_time() 89 data[M41T93_REG_MIN] = bin2bcd(tm->tm_min); in m41t93_set_time() 90 data[M41T93_REG_CENT_HOUR] = bin2bcd(tm->tm_hour) | in m41t93_set_time() 91 ((tm->tm_year/100-1) << 6); in m41t93_set_time() 92 data[M41T93_REG_DAY] = bin2bcd(tm->tm_mday); in m41t93_set_time() [all …]
|
D | rtc-pcf8563.c | 198 static int pcf8563_rtc_read_time(struct device *dev, struct rtc_time *tm) in pcf8563_rtc_read_time() argument 224 tm->tm_sec = bcd2bin(buf[PCF8563_REG_SC] & 0x7F); in pcf8563_rtc_read_time() 225 tm->tm_min = bcd2bin(buf[PCF8563_REG_MN] & 0x7F); in pcf8563_rtc_read_time() 226 tm->tm_hour = bcd2bin(buf[PCF8563_REG_HR] & 0x3F); /* rtc hr 0-23 */ in pcf8563_rtc_read_time() 227 tm->tm_mday = bcd2bin(buf[PCF8563_REG_DM] & 0x3F); in pcf8563_rtc_read_time() 228 tm->tm_wday = buf[PCF8563_REG_DW] & 0x07; in pcf8563_rtc_read_time() 229 tm->tm_mon = bcd2bin(buf[PCF8563_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in pcf8563_rtc_read_time() 230 tm->tm_year = bcd2bin(buf[PCF8563_REG_YR]) + 100; in pcf8563_rtc_read_time() 233 (tm->tm_year >= 100) : (tm->tm_year < 100); in pcf8563_rtc_read_time() 238 tm->tm_sec, tm->tm_min, tm->tm_hour, in pcf8563_rtc_read_time() [all …]
|
D | rtc-rx4581.c | 94 static int rx4581_get_datetime(struct device *dev, struct rtc_time *tm) in rx4581_get_datetime() argument 150 tm->tm_sec = bcd2bin(date[RX4581_REG_SC] & 0x7F); in rx4581_get_datetime() 151 tm->tm_min = bcd2bin(date[RX4581_REG_MN] & 0x7F); in rx4581_get_datetime() 152 tm->tm_hour = bcd2bin(date[RX4581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx4581_get_datetime() 153 tm->tm_wday = ilog2(date[RX4581_REG_DW] & 0x7F); in rx4581_get_datetime() 154 tm->tm_mday = bcd2bin(date[RX4581_REG_DM] & 0x3F); in rx4581_get_datetime() 155 tm->tm_mon = bcd2bin(date[RX4581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx4581_get_datetime() 156 tm->tm_year = bcd2bin(date[RX4581_REG_YR]); in rx4581_get_datetime() 157 if (tm->tm_year < 70) in rx4581_get_datetime() 158 tm->tm_year += 100; /* assume we are in 1970...2069 */ in rx4581_get_datetime() [all …]
|
D | rtc-stm32.c | 235 static void tm2bcd(struct rtc_time *tm) in tm2bcd() argument 237 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd() 238 tm->tm_min = bin2bcd(tm->tm_min); in tm2bcd() 239 tm->tm_hour = bin2bcd(tm->tm_hour); in tm2bcd() 241 tm->tm_mday = bin2bcd(tm->tm_mday); in tm2bcd() 242 tm->tm_mon = bin2bcd(tm->tm_mon + 1); in tm2bcd() 243 tm->tm_year = bin2bcd(tm->tm_year - 100); in tm2bcd() 249 tm->tm_wday = (!tm->tm_wday) ? 7 : tm->tm_wday; in tm2bcd() 253 static void bcd2tm(struct rtc_time *tm) in bcd2tm() argument 255 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm() [all …]
|
D | rtc-bq4802.c | 50 static int bq4802_read_time(struct device *dev, struct rtc_time *tm) in bq4802_read_time() argument 62 tm->tm_sec = p->read(p, 0x00); in bq4802_read_time() 63 tm->tm_min = p->read(p, 0x02); in bq4802_read_time() 64 tm->tm_hour = p->read(p, 0x04); in bq4802_read_time() 65 tm->tm_mday = p->read(p, 0x06); in bq4802_read_time() 66 tm->tm_mon = p->read(p, 0x09); in bq4802_read_time() 67 tm->tm_year = p->read(p, 0x0a); in bq4802_read_time() 68 tm->tm_wday = p->read(p, 0x08); in bq4802_read_time() 75 tm->tm_sec = bcd2bin(tm->tm_sec); in bq4802_read_time() 76 tm->tm_min = bcd2bin(tm->tm_min); in bq4802_read_time() [all …]
|
D | rtc-m48t35.c | 55 static int m48t35_read_time(struct device *dev, struct rtc_time *tm) in m48t35_read_time() argument 69 tm->tm_sec = readb(&priv->reg->sec); in m48t35_read_time() 70 tm->tm_min = readb(&priv->reg->min); in m48t35_read_time() 71 tm->tm_hour = readb(&priv->reg->hour); in m48t35_read_time() 72 tm->tm_mday = readb(&priv->reg->date); in m48t35_read_time() 73 tm->tm_mon = readb(&priv->reg->month); in m48t35_read_time() 74 tm->tm_year = readb(&priv->reg->year); in m48t35_read_time() 78 tm->tm_sec = bcd2bin(tm->tm_sec); in m48t35_read_time() 79 tm->tm_min = bcd2bin(tm->tm_min); in m48t35_read_time() 80 tm->tm_hour = bcd2bin(tm->tm_hour); in m48t35_read_time() [all …]
|
D | rtc-mt6397.c | 63 struct rtc_time *tm, int *sec) in __mtk_rtc_read_time() argument 74 tm->tm_sec = data[RTC_OFFSET_SEC]; in __mtk_rtc_read_time() 75 tm->tm_min = data[RTC_OFFSET_MIN]; in __mtk_rtc_read_time() 76 tm->tm_hour = data[RTC_OFFSET_HOUR]; in __mtk_rtc_read_time() 77 tm->tm_mday = data[RTC_OFFSET_DOM]; in __mtk_rtc_read_time() 78 tm->tm_mon = data[RTC_OFFSET_MTH]; in __mtk_rtc_read_time() 79 tm->tm_year = data[RTC_OFFSET_YEAR]; in __mtk_rtc_read_time() 87 static int mtk_rtc_read_time(struct device *dev, struct rtc_time *tm) in mtk_rtc_read_time() argument 94 ret = __mtk_rtc_read_time(rtc, tm, &sec); in mtk_rtc_read_time() 97 } while (sec < tm->tm_sec); in mtk_rtc_read_time() [all …]
|
D | rtc-isl12022.c | 104 static int isl12022_rtc_read_time(struct device *dev, struct rtc_time *tm) in isl12022_rtc_read_time() argument 136 tm->tm_sec = bcd2bin(buf[ISL12022_REG_SC] & 0x7F); in isl12022_rtc_read_time() 137 tm->tm_min = bcd2bin(buf[ISL12022_REG_MN] & 0x7F); in isl12022_rtc_read_time() 138 tm->tm_hour = bcd2bin(buf[ISL12022_REG_HR] & 0x3F); in isl12022_rtc_read_time() 139 tm->tm_mday = bcd2bin(buf[ISL12022_REG_DT] & 0x3F); in isl12022_rtc_read_time() 140 tm->tm_wday = buf[ISL12022_REG_DW] & 0x07; in isl12022_rtc_read_time() 141 tm->tm_mon = bcd2bin(buf[ISL12022_REG_MO] & 0x1F) - 1; in isl12022_rtc_read_time() 142 tm->tm_year = bcd2bin(buf[ISL12022_REG_YR]) + 100; in isl12022_rtc_read_time() 147 tm->tm_sec, tm->tm_min, tm->tm_hour, in isl12022_rtc_read_time() 148 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in isl12022_rtc_read_time() [all …]
|
D | rtc-lpc24xx.c | 69 static int lpc24xx_rtc_set_time(struct device *dev, struct rtc_time *tm) in lpc24xx_rtc_set_time() argument 76 rtc_writel(rtc, LPC24XX_SEC, tm->tm_sec); in lpc24xx_rtc_set_time() 77 rtc_writel(rtc, LPC24XX_MIN, tm->tm_min); in lpc24xx_rtc_set_time() 78 rtc_writel(rtc, LPC24XX_HOUR, tm->tm_hour); in lpc24xx_rtc_set_time() 79 rtc_writel(rtc, LPC24XX_DOW, tm->tm_wday); in lpc24xx_rtc_set_time() 80 rtc_writel(rtc, LPC24XX_DOM, tm->tm_mday); in lpc24xx_rtc_set_time() 81 rtc_writel(rtc, LPC24XX_DOY, tm->tm_yday); in lpc24xx_rtc_set_time() 82 rtc_writel(rtc, LPC24XX_MONTH, tm->tm_mon); in lpc24xx_rtc_set_time() 83 rtc_writel(rtc, LPC24XX_YEAR, tm->tm_year); in lpc24xx_rtc_set_time() 90 static int lpc24xx_rtc_read_time(struct device *dev, struct rtc_time *tm) in lpc24xx_rtc_read_time() argument [all …]
|
D | rtc-m48t59.c | 63 static int m48t59_rtc_read_time(struct device *dev, struct rtc_time *tm) in m48t59_rtc_read_time() argument 74 tm->tm_year = bcd2bin(M48T59_READ(M48T59_YEAR)); in m48t59_rtc_read_time() 76 tm->tm_mon = bcd2bin(M48T59_READ(M48T59_MONTH)) - 1; in m48t59_rtc_read_time() 77 tm->tm_mday = bcd2bin(M48T59_READ(M48T59_MDAY)); in m48t59_rtc_read_time() 83 tm->tm_year += 100; /* one century */ in m48t59_rtc_read_time() 87 tm->tm_year += 68; in m48t59_rtc_read_time() 90 tm->tm_wday = bcd2bin(val & 0x07); in m48t59_rtc_read_time() 91 tm->tm_hour = bcd2bin(M48T59_READ(M48T59_HOUR) & 0x3F); in m48t59_rtc_read_time() 92 tm->tm_min = bcd2bin(M48T59_READ(M48T59_MIN) & 0x7F); in m48t59_rtc_read_time() 93 tm->tm_sec = bcd2bin(M48T59_READ(M48T59_SEC) & 0x7F); in m48t59_rtc_read_time() [all …]
|
D | rtc-spear.c | 173 static void tm2bcd(struct rtc_time *tm) in tm2bcd() argument 175 tm->tm_sec = bin2bcd(tm->tm_sec); in tm2bcd() 176 tm->tm_min = bin2bcd(tm->tm_min); in tm2bcd() 177 tm->tm_hour = bin2bcd(tm->tm_hour); in tm2bcd() 178 tm->tm_mday = bin2bcd(tm->tm_mday); in tm2bcd() 179 tm->tm_mon = bin2bcd(tm->tm_mon + 1); in tm2bcd() 180 tm->tm_year = bin2bcd(tm->tm_year); in tm2bcd() 183 static void bcd2tm(struct rtc_time *tm) in bcd2tm() argument 185 tm->tm_sec = bcd2bin(tm->tm_sec); in bcd2tm() 186 tm->tm_min = bcd2bin(tm->tm_min); in bcd2tm() [all …]
|
D | rtc-s5m.c | 173 static void s5m8767_data_to_tm(u8 *data, struct rtc_time *tm, in s5m8767_data_to_tm() argument 176 tm->tm_sec = data[RTC_SEC] & 0x7f; in s5m8767_data_to_tm() 177 tm->tm_min = data[RTC_MIN] & 0x7f; in s5m8767_data_to_tm() 179 tm->tm_hour = data[RTC_HOUR] & 0x1f; in s5m8767_data_to_tm() 181 tm->tm_hour = data[RTC_HOUR] & 0x0f; in s5m8767_data_to_tm() 183 tm->tm_hour += 12; in s5m8767_data_to_tm() 186 tm->tm_wday = ffs(data[RTC_WEEKDAY] & 0x7f); in s5m8767_data_to_tm() 187 tm->tm_mday = data[RTC_DATE] & 0x1f; in s5m8767_data_to_tm() 188 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1; in s5m8767_data_to_tm() 189 tm->tm_year = (data[RTC_YEAR1] & 0x7f) + 100; in s5m8767_data_to_tm() [all …]
|
D | rtc-max8907.c | 58 static void regs_to_tm(u8 *regs, struct rtc_time *tm) in regs_to_tm() argument 60 tm->tm_year = bcd2bin(regs[RTC_YEAR2]) * 100 + in regs_to_tm() 62 tm->tm_mon = bcd2bin(regs[RTC_MONTH] & 0x1f) - 1; in regs_to_tm() 63 tm->tm_mday = bcd2bin(regs[RTC_DATE] & 0x3f); in regs_to_tm() 64 tm->tm_wday = (regs[RTC_WEEKDAY] & 0x07); in regs_to_tm() 66 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x01f); in regs_to_tm() 67 if (tm->tm_hour == 12) in regs_to_tm() 68 tm->tm_hour = 0; in regs_to_tm() 70 tm->tm_hour += 12; in regs_to_tm() 72 tm->tm_hour = bcd2bin(regs[RTC_HOUR] & 0x03f); in regs_to_tm() [all …]
|
D | rtc-rx8581.c | 70 static int rx8581_rtc_read_time(struct device *dev, struct rtc_time *tm) in rx8581_rtc_read_time() argument 119 tm->tm_sec = bcd2bin(date[RX8581_REG_SC] & 0x7F); in rx8581_rtc_read_time() 120 tm->tm_min = bcd2bin(date[RX8581_REG_MN] & 0x7F); in rx8581_rtc_read_time() 121 tm->tm_hour = bcd2bin(date[RX8581_REG_HR] & 0x3F); /* rtc hr 0-23 */ in rx8581_rtc_read_time() 122 tm->tm_wday = ilog2(date[RX8581_REG_DW] & 0x7F); in rx8581_rtc_read_time() 123 tm->tm_mday = bcd2bin(date[RX8581_REG_DM] & 0x3F); in rx8581_rtc_read_time() 124 tm->tm_mon = bcd2bin(date[RX8581_REG_MO] & 0x1F) - 1; /* rtc mn 1-12 */ in rx8581_rtc_read_time() 125 tm->tm_year = bcd2bin(date[RX8581_REG_YR]) + 100; in rx8581_rtc_read_time() 130 tm->tm_sec, tm->tm_min, tm->tm_hour, in rx8581_rtc_read_time() 131 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rx8581_rtc_read_time() [all …]
|
D | rtc-m48t86.c | 66 static int m48t86_rtc_read_time(struct device *dev, struct rtc_time *tm) in m48t86_rtc_read_time() argument 74 tm->tm_sec = m48t86_readb(dev, M48T86_SEC); in m48t86_rtc_read_time() 75 tm->tm_min = m48t86_readb(dev, M48T86_MIN); in m48t86_rtc_read_time() 76 tm->tm_hour = m48t86_readb(dev, M48T86_HOUR) & 0x3f; in m48t86_rtc_read_time() 77 tm->tm_mday = m48t86_readb(dev, M48T86_DOM); in m48t86_rtc_read_time() 79 tm->tm_mon = m48t86_readb(dev, M48T86_MONTH) - 1; in m48t86_rtc_read_time() 80 tm->tm_year = m48t86_readb(dev, M48T86_YEAR) + 100; in m48t86_rtc_read_time() 81 tm->tm_wday = m48t86_readb(dev, M48T86_DOW); in m48t86_rtc_read_time() 84 tm->tm_sec = bcd2bin(m48t86_readb(dev, M48T86_SEC)); in m48t86_rtc_read_time() 85 tm->tm_min = bcd2bin(m48t86_readb(dev, M48T86_MIN)); in m48t86_rtc_read_time() [all …]
|
D | rtc-ds1286.c | 150 static int ds1286_read_time(struct device *dev, struct rtc_time *tm) in ds1286_read_time() argument 181 tm->tm_sec = ds1286_rtc_read(priv, RTC_SECONDS); in ds1286_read_time() 182 tm->tm_min = ds1286_rtc_read(priv, RTC_MINUTES); in ds1286_read_time() 183 tm->tm_hour = ds1286_rtc_read(priv, RTC_HOURS) & 0x3f; in ds1286_read_time() 184 tm->tm_mday = ds1286_rtc_read(priv, RTC_DATE); in ds1286_read_time() 185 tm->tm_mon = ds1286_rtc_read(priv, RTC_MONTH) & 0x1f; in ds1286_read_time() 186 tm->tm_year = ds1286_rtc_read(priv, RTC_YEAR); in ds1286_read_time() 191 tm->tm_sec = bcd2bin(tm->tm_sec); in ds1286_read_time() 192 tm->tm_min = bcd2bin(tm->tm_min); in ds1286_read_time() 193 tm->tm_hour = bcd2bin(tm->tm_hour); in ds1286_read_time() [all …]
|
D | rtc-rp5c01.c | 93 static int rp5c01_read_time(struct device *dev, struct rtc_time *tm) in rp5c01_read_time() argument 100 tm->tm_sec = rp5c01_read(priv, RP5C01_10_SECOND) * 10 + in rp5c01_read_time() 102 tm->tm_min = rp5c01_read(priv, RP5C01_10_MINUTE) * 10 + in rp5c01_read_time() 104 tm->tm_hour = rp5c01_read(priv, RP5C01_10_HOUR) * 10 + in rp5c01_read_time() 106 tm->tm_mday = rp5c01_read(priv, RP5C01_10_DAY) * 10 + in rp5c01_read_time() 108 tm->tm_wday = rp5c01_read(priv, RP5C01_DAY_OF_WEEK); in rp5c01_read_time() 109 tm->tm_mon = rp5c01_read(priv, RP5C01_10_MONTH) * 10 + in rp5c01_read_time() 111 tm->tm_year = rp5c01_read(priv, RP5C01_10_YEAR) * 10 + in rp5c01_read_time() 113 if (tm->tm_year <= 69) in rp5c01_read_time() 114 tm->tm_year += 100; in rp5c01_read_time() [all …]
|
/drivers/net/fddi/skfp/ |
D | smttimer.c | 38 struct smt_timer *tm ; in smt_timer_stop() local 47 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_stop() 48 if (tm == timer) { in smt_timer_stop() 49 *prev = tm->tm_next ; in smt_timer_stop() 50 if (tm->tm_next) { in smt_timer_stop() 51 tm->tm_next->tm_delta += tm->tm_delta ; in smt_timer_stop() 62 struct smt_timer *tm ; in smt_timer_start() local 88 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_start() 89 if (delta + tm->tm_delta > time) { in smt_timer_start() 92 delta += tm->tm_delta ; in smt_timer_start() [all …]
|
/drivers/isdn/mISDN/ |
D | tei.c | 221 struct teimgr *tm = fi->userdata; in tei_debug() local 234 tm->l2->sapi, tm->l2->tei, &vaf); in tei_debug() 458 struct teimgr *tm = fi->userdata; in tei_id_request() local 460 if (tm->l2->tei != GROUP_TEI) { in tei_id_request() 461 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request() 463 tm->l2->tei); in tei_id_request() 466 tm->ri = random_ri(); in tei_id_request() 468 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request() 469 "assign request ri %d", tm->ri); in tei_id_request() 470 put_tei_msg(tm->mgr, ID_REQUEST, tm->ri, GROUP_TEI); in tei_id_request() [all …]
|