Searched refs:tm (Results 126 - 150 of 355) sorted by relevance

1234567891011>>

/linux-master/arch/parisc/kernel/
H A Dtime.c166 static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm) argument
170 memset(tm, 0, sizeof(*tm));
175 rtc_time64_to_tm(tod_data.tod_sec, tm);
179 static int rtc_generic_set_time(struct device *dev, struct rtc_time *tm) argument
181 time64_t secs = rtc_tm_to_time64(tm);
/linux-master/drivers/rtc/
H A Drtc-pcap.c43 struct rtc_time *tm = &alrm->time; local
54 rtc_time64_to_tm(secs, tm);
74 static int pcap_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
86 rtc_time64_to_tm(secs, tm);
91 static int pcap_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
94 unsigned long secs = rtc_tm_to_time64(tm);
H A Drtc-rv3029c2.c305 static int rv3029_read_time(struct device *dev, struct rtc_time *tm) argument
324 tm->tm_sec = bcd2bin(regs[RV3029_W_SEC - RV3029_W_SEC]);
325 tm->tm_min = bcd2bin(regs[RV3029_W_MINUTES - RV3029_W_SEC]);
333 tm->tm_hour = bcd2bin(_hr & 0x1f);
335 tm->tm_hour += 12;
337 tm->tm_hour = bcd2bin(_hr & 0x3f);
340 tm->tm_mday = bcd2bin(regs[RV3029_W_DATE - RV3029_W_SEC]);
341 tm->tm_mon = bcd2bin(regs[RV3029_W_MONTHS - RV3029_W_SEC]) - 1;
342 tm->tm_year = bcd2bin(regs[RV3029_W_YEARS - RV3029_W_SEC]) + 100;
343 tm
351 struct rtc_time *const tm = &alarm->time; local
395 struct rtc_time *const tm = &alarm->time; local
422 rv3029_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Dinterface.c23 static void rtc_add_offset(struct rtc_device *rtc, struct rtc_time *tm) argument
30 secs = rtc_tm_to_time64(tm);
43 rtc_time64_to_tm(secs + rtc->offset_secs, tm);
46 static void rtc_subtract_offset(struct rtc_device *rtc, struct rtc_time *tm) argument
53 secs = rtc_tm_to_time64(tm);
64 rtc_time64_to_tm(secs - rtc->offset_secs, tm);
67 static int rtc_valid_range(struct rtc_device *rtc, struct rtc_time *tm) argument
70 time64_t time = rtc_tm_to_time64(tm);
84 static int __rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) argument
93 memset(tm,
110 rtc_read_time(struct rtc_device *rtc, struct rtc_time *tm) argument
126 rtc_set_time(struct rtc_device *rtc, struct rtc_time *tm) argument
411 struct rtc_time tm; local
585 struct rtc_time tm; local
805 struct rtc_time tm; local
905 struct rtc_time tm; local
[all...]
H A Drtc-loongson.c169 static int loongson_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
183 tm->tm_sec = FIELD_GET(TOY_SEC, rtc_data[0]);
184 tm->tm_min = FIELD_GET(TOY_MIN, rtc_data[0]);
185 tm->tm_hour = FIELD_GET(TOY_HOUR, rtc_data[0]);
186 tm->tm_mday = FIELD_GET(TOY_DAY, rtc_data[0]);
187 tm->tm_mon = FIELD_GET(TOY_MON, rtc_data[0]) - 1;
188 tm->tm_year = rtc_data[1];
191 priv->fix_year = tm->tm_year / 64 * 64;
195 static int loongson_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
201 rtc_data[0] = FIELD_PREP(TOY_SEC, tm
[all...]
H A Drtc-da9055.c159 static int da9055_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
166 v[0] = tm->tm_sec;
167 v[1] = tm->tm_min;
168 v[2] = tm->tm_hour;
169 v[3] = tm->tm_mday;
170 v[4] = tm->tm_mon + 1;
171 v[5] = tm->tm_year - 100;
179 struct rtc_time *tm = &alrm->time; local
182 ret = da9055_read_alarm(rtc->da9055, tm);
195 struct rtc_time *tm local
[all...]
H A Drtc-pcf2127.c216 static int pcf2127_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
249 tm->tm_sec = bcd2bin(buf[0] & 0x7F);
250 tm->tm_min = bcd2bin(buf[1] & 0x7F);
251 tm->tm_hour = bcd2bin(buf[2] & 0x3F);
252 tm->tm_mday = bcd2bin(buf[3] & 0x3F);
253 tm->tm_wday = buf[4] & 0x07;
254 tm->tm_mon = bcd2bin(buf[5] & 0x1F) - 1;
255 tm->tm_year = bcd2bin(buf[6]);
256 tm->tm_year += 100;
258 dev_dbg(dev, "%s: tm i
267 pcf2127_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
615 struct rtc_time tm; local
[all...]
H A Drtc-tps65910.c68 static int tps65910_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
89 tm->tm_sec = bcd2bin(rtc_data[0]);
90 tm->tm_min = bcd2bin(rtc_data[1]);
91 tm->tm_hour = bcd2bin(rtc_data[2]);
92 tm->tm_mday = bcd2bin(rtc_data[3]);
93 tm->tm_mon = bcd2bin(rtc_data[4]) - 1;
94 tm->tm_year = bcd2bin(rtc_data[5]) + 100;
99 static int tps65910_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
105 rtc_data[0] = bin2bcd(tm->tm_sec);
106 rtc_data[1] = bin2bcd(tm
[all...]
H A Drtc-max77686.c293 static void max77686_rtc_data_to_tm(u8 *data, struct rtc_time *tm, argument
298 tm->tm_sec = data[RTC_SEC] & mask;
299 tm->tm_min = data[RTC_MIN] & mask;
300 tm->tm_hour = data[RTC_HOUR] & 0x1f;
303 tm->tm_wday = ffs(data[RTC_WEEKDAY] & mask) - 1;
304 tm->tm_mday = data[RTC_MONTHDAY] & 0x1f;
305 tm->tm_mon = (data[RTC_MONTH] & 0x0f) - 1;
306 tm->tm_year = data[RTC_YEAR] & mask;
307 tm->tm_yday = 0;
308 tm
318 max77686_rtc_tm_to_data(struct rtc_time *tm, u8 *data, struct max77686_rtc_info *info) argument
370 max77686_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
397 max77686_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
500 struct rtc_time tm; local
550 struct rtc_time tm; local
[all...]
H A Dclass.c61 struct rtc_time tm; local
66 err = rtc_read_time(rtc, &tm);
73 tv64.tv_sec = rtc_tm_to_time64(&tm);
85 &tm, (long long)tv64.tv_sec);
103 struct rtc_time tm; local
114 err = rtc_read_time(rtc, &tm);
121 old_rtc.tv_sec = rtc_tm_to_time64(&tm);
148 struct rtc_time tm; local
162 err = rtc_read_time(rtc, &tm);
168 new_rtc.tv_sec = rtc_tm_to_time64(&tm);
[all...]
H A Drtc-ds1685.c258 * @tm: pointer to rtc_time structure.
261 ds1685_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
284 tm->tm_sec = ds1685_rtc_bcd2bin(rtc, seconds, RTC_SECS_BCD_MASK,
286 tm->tm_min = ds1685_rtc_bcd2bin(rtc, minutes, RTC_MINS_BCD_MASK,
288 tm->tm_hour = ds1685_rtc_bcd2bin(rtc, hours, RTC_HRS_24_BCD_MASK,
290 tm->tm_wday = (ds1685_rtc_bcd2bin(rtc, wday, RTC_WDAY_MASK,
292 tm->tm_mday = ds1685_rtc_bcd2bin(rtc, mday, RTC_MDAY_BCD_MASK,
294 tm->tm_mon = (ds1685_rtc_bcd2bin(rtc, month, RTC_MONTH_BCD_MASK,
296 tm->tm_year = ((years + (century * 100)) - 1900);
297 tm
309 ds1685_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-ab-eoz9.c143 static int abeoz9_rtc_get_time(struct device *dev, struct rtc_time *tm) argument
161 tm->tm_sec = bcd2bin(regs[ABEOZ9_REG_SEC - ABEOZ9_REG_SEC] & 0x7F);
162 tm->tm_min = bcd2bin(regs[ABEOZ9_REG_MIN - ABEOZ9_REG_SEC] & 0x7F);
165 tm->tm_hour =
168 tm->tm_hour += 12;
170 tm->tm_hour = bcd2bin(regs[ABEOZ9_REG_HOURS - ABEOZ9_REG_SEC]);
173 tm->tm_mday = bcd2bin(regs[ABEOZ9_REG_DAYS - ABEOZ9_REG_SEC]);
174 tm->tm_wday = bcd2bin(regs[ABEOZ9_REG_WEEKDAYS - ABEOZ9_REG_SEC]);
175 tm->tm_mon = bcd2bin(regs[ABEOZ9_REG_MONTHS - ABEOZ9_REG_SEC]) - 1;
176 tm
181 abeoz9_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
H A Drtc-max31335.c224 static int max31335_read_time(struct device *dev, struct rtc_time *tm) argument
235 tm->tm_sec = bcd2bin(date[0] & 0x7f);
236 tm->tm_min = bcd2bin(date[1] & 0x7f);
237 tm->tm_hour = bcd2bin(date[2] & 0x3f);
238 tm->tm_wday = bcd2bin(date[3] & 0x7) - 1;
239 tm->tm_mday = bcd2bin(date[4] & 0x3f);
240 tm->tm_mon = bcd2bin(date[5] & 0x1f) - 1;
241 tm->tm_year = bcd2bin(date[6]) + 100;
244 tm->tm_year += 100;
249 static int max31335_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
/linux-master/arch/arm/vfp/
H A Dvfpdouble.c211 int tn, tm = 0; local
216 tm = vfp_double_type(vdm);
229 if (tn == VFP_SNAN || (tm != VFP_SNAN && tn == VFP_QNAN))
244 return tn == VFP_SNAN || tm == VFP_SNAN ? FPSCR_IOC : VFP_NAN_FLAG;
271 int ret, tm; local
274 tm = vfp_double_type(&vdm);
275 if (tm & (VFP_NAN|VFP_INFINITY)) {
278 if (tm & VFP_NAN)
296 if (tm & VFP_ZERO)
302 if (tm
443 int tm; local
511 int tm; local
590 int tm; local
688 int tn, tm; local
1011 int tm, tn; local
[all...]
H A Dvfpsingle.c219 int tn, tm = 0; local
224 tm = vfp_single_type(vsm);
237 if (tn == VFP_SNAN || (tm != VFP_SNAN && tn == VFP_QNAN))
252 return tn == VFP_SNAN || tm == VFP_SNAN ? FPSCR_IOC : VFP_NAN_FLAG;
319 int ret, tm; local
322 tm = vfp_single_type(&vsm);
323 if (tm & (VFP_NAN|VFP_INFINITY)) {
326 if (tm & VFP_NAN)
344 if (tm & VFP_ZERO)
350 if (tm
486 int tm; local
552 int tm; local
632 int tm; local
734 int tn, tm; local
1057 int tm, tn; local
[all...]
/linux-master/tools/testing/selftests/powerpc/tm/
H A Dtm-resched-dscr.c30 #include <asm/tm.h>
33 #include "tm.h"
/linux-master/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_coredump.c228 struct tm tm; local
230 time64_to_tm(start, 0, &tm);
239 record->year = cpu_to_le16(tm.tm_year + 1900);
240 record->month = cpu_to_le16(tm.tm_mon + 1);
241 record->day = cpu_to_le16(tm.tm_mday);
242 record->hour = cpu_to_le16(tm.tm_hour);
243 record->minute = cpu_to_le16(tm.tm_min);
244 record->second = cpu_to_le16(tm.tm_sec);
255 time64_to_tm(end, 0, &tm);
[all...]
/linux-master/arch/m68k/kernel/
H A Dtime.c94 static int rtc_generic_get_time(struct device *dev, struct rtc_time *tm) argument
96 mach_hwclk(0, tm);
100 static int rtc_generic_set_time(struct device *dev, struct rtc_time *tm) argument
102 if (mach_hwclk(1, tm) < 0)
/linux-master/arch/powerpc/platforms/8xx/
H A Dm8xx_setup.c138 int mpc8xx_set_rtc_time(struct rtc_time *tm) argument
142 time = rtc_tm_to_time64(tm);
151 void mpc8xx_get_rtc_time(struct rtc_time *tm) argument
157 rtc_time64_to_tm(data, tm);
/linux-master/include/linux/
H A Dtime.h33 * Similar to the struct tm in userspace <time.h>, but it needs to be here so
36 struct tm { struct
58 void time64_to_tm(time64_t totalsecs, int offset, struct tm *result);
/linux-master/arch/powerpc/kernel/ptrace/
H A DMakefile17 obj-$(CONFIG_PPC_TRANSACTIONAL_MEM) += ptrace-tm.o
/linux-master/drivers/md/persistent-data/
H A Ddm-array.h70 struct dm_transaction_manager *tm; member in struct:dm_array_info
80 * tm - the transaction manager that should supervise this structure.
84 struct dm_transaction_manager *tm,
H A Ddm-space-map-common.c194 static int sm_ll_init(struct ll_disk *ll, struct dm_transaction_manager *tm) argument
198 ll->tm = tm;
200 ll->bitmap_info.tm = tm;
213 ll->ref_count_info.tm = tm;
220 ll->block_size = dm_bm_block_size(dm_tm_get_bm(tm));
261 r = dm_tm_new_block(ll->tm, &dm_sm_bitmap_validator, &b);
267 dm_tm_unlock(ll->tm,
1028 sm_ll_new_metadata(struct ll_disk *ll, struct dm_transaction_manager *tm) argument
1057 sm_ll_open_metadata(struct ll_disk *ll, struct dm_transaction_manager *tm, void *root_le, size_t len) argument
1206 sm_ll_new_disk(struct ll_disk *ll, struct dm_transaction_manager *tm) argument
1235 sm_ll_open_disk(struct ll_disk *ll, struct dm_transaction_manager *tm, void *root_le, size_t len) argument
[all...]
/linux-master/drivers/platform/x86/intel/speed_select_if/
H A Disst_if_mbox_pci.c43 ktime_t tm; local
48 tm = ktime_get();
57 tm_delta = ktime_us_delta(ktime_get(), tm);
87 tm = ktime_get();
96 tm_delta = ktime_us_delta(ktime_get(), tm);
/linux-master/drivers/thermal/intel/int340x_thermal/
H A Dprocessor_thermal_wt_hint.c136 u8 tm; local
156 tm = ilog2(new_tw);
157 if (tm > 31)
166 tm);
170 notify_delay = tm;

Completed in 309 milliseconds

1234567891011>>