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

1234567

/drivers/rtc/
H A Dhctosys.c28 struct rtc_time tm; local
40 err = rtc_read_time(rtc, &tm);
48 err = rtc_valid_tm(&tm);
55 rtc_tm_to_time(&tm, &tv.tv_sec);
62 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday,
63 tm.tm_hour, tm.tm_min, tm
[all...]
H A Dsystohc.c26 struct rtc_time tm; local
30 rtc_time_to_tm(now.tv_sec, &tm);
32 rtc_time_to_tm(now.tv_sec + 1, &tm);
39 err = rtc_set_time(rtc, &tm);
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-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-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-sun4v.c38 static int sun4v_read_time(struct device *dev, struct rtc_time *tm) argument
40 rtc_time_to_tm(hypervisor_get_time(), tm); local
65 static int sun4v_set_time(struct device *dev, struct rtc_time *tm) argument
70 err = rtc_tm_to_time(tm, &secs);
H A Drtc-efi.c173 static int efi_read_time(struct device *dev, struct rtc_time *tm) argument
187 if (!convert_from_efi_time(&eft, tm))
190 return rtc_valid_tm(tm);
193 static int efi_set_time(struct device *dev, struct rtc_time *tm) argument
198 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-proc.c48 struct rtc_time tm; local
50 err = rtc_read_time(rtc, &tm);
55 tm.tm_hour, tm.tm_min, tm.tm_sec,
56 tm.tm_year + 1900, tm.tm_mon + 1, tm.tm_mday);
H A Dclass.c54 struct rtc_time tm; local
65 err = rtc_read_time(rtc, &tm);
72 rtc_tm_to_time(&tm, &old_rtc.tv_sec);
100 struct rtc_time tm; local
114 err = rtc_read_time(rtc, &tm);
120 if (rtc_valid_tm(&tm) != 0) {
124 rtc_tm_to_time(&tm, &new_rtc.tv_sec);
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-as3722.c42 static void as3722_time_to_reg(u8 *rbuff, struct rtc_time *tm) argument
44 rbuff[0] = bin2bcd(tm->tm_sec);
45 rbuff[1] = bin2bcd(tm->tm_min);
46 rbuff[2] = bin2bcd(tm->tm_hour);
47 rbuff[3] = bin2bcd(tm->tm_mday);
48 rbuff[4] = bin2bcd(tm->tm_mon);
49 rbuff[5] = bin2bcd(tm->tm_year - (AS3722_RTC_START_YEAR - 1900));
52 static void as3722_reg_to_time(u8 *rbuff, struct rtc_time *tm) argument
54 tm->tm_sec = bcd2bin(rbuff[0] & 0x7F);
55 tm
63 as3722_rtc_read_time(struct device *dev, struct rtc_time *tm) argument
80 as3722_rtc_set_time(struct device *dev, struct rtc_time *tm) argument
[all...]
/drivers/md/persistent-data/
H A Ddm-array.h69 struct dm_transaction_manager *tm; member in struct:dm_array_info
79 * tm - the transaction manager that should supervise this structure.
83 struct dm_transaction_manager *tm,
H A Ddm-btree.h82 struct dm_transaction_manager *tm; member in struct:dm_btree_info
H A Ddm-bitset.c28 void dm_disk_bitset_init(struct dm_transaction_manager *tm, argument
31 dm_array_info_init(&info->array_info, tm, &bitset_bvt);
H A Ddm-space-map-disk.c239 struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm, argument
253 r = sm_ll_new_disk(&smd->ll, tm);
273 struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm, argument
287 r = sm_ll_open_disk(&smd->ll, tm, root_le, len);
/drivers/media/platform/vivid/
H A Dvivid-rds-gen.c58 struct tm tm; local
103 time_to_tm(get_seconds(), 0, &tm); local
104 l = tm.tm_mon <= 1;
105 date = 14956 + tm.tm_mday + ((tm.tm_year - l) * 1461) / 4 +
106 ((tm.tm_mon + 2 + l * 12) * 306001) / 10000;
107 time = (tm.tm_hour << 12) |
108 (tm.tm_min << 6) |
/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);
/drivers/firmware/efi/
H A Druntime-wrappers.c98 static efi_status_t virt_efi_get_time(efi_time_t *tm, efi_time_cap_t *tc) argument
105 status = efi_call_virt(get_time, tm, tc);
111 static efi_status_t virt_efi_set_time(efi_time_t *tm) argument
118 status = efi_call_virt(set_time, tm);
126 efi_time_t *tm)
133 status = efi_call_virt(get_wakeup_time, enabled, pending, tm);
139 static efi_status_t virt_efi_set_wakeup_time(efi_bool_t enabled, efi_time_t *tm) argument
146 status = efi_call_virt(set_wakeup_time, enabled, tm);
124 virt_efi_get_wakeup_time(efi_bool_t *enabled, efi_bool_t *pending, efi_time_t *tm) argument

Completed in 2858 milliseconds

1234567