/drivers/rtc/ |
H A D | hctosys.c | 28 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 D | systohc.c | 26 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 D | rtc-generic.c | 14 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 D | rtc-au1xxx.c | 31 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 D | rtc-dm355evm.c | 37 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 D | rtc-ps3.c | 41 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 D | rtc-starfire.c | 30 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 D | rtc-tile.c | 28 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 D | rtc-lib.c | 51 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 D | rtc-sun4v.c | 38 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 D | rtc-efi.c | 173 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 D | rtc-m41t94.c | 32 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 D | rtc-pl030.c | 63 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 D | rtc-proc.c | 48 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 D | class.c | 54 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 D | rtc-ab3100.c | 76 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 D | rtc-as3722.c | 42 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 D | dm-array.h | 69 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 D | dm-btree.h | 82 struct dm_transaction_manager *tm; member in struct:dm_btree_info
|
H A D | dm-bitset.c | 28 void dm_disk_bitset_init(struct dm_transaction_manager *tm, argument 31 dm_array_info_init(&info->array_info, tm, &bitset_bvt);
|
H A D | dm-space-map-disk.c | 239 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 D | vivid-rds-gen.c | 58 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 D | smttimer.c | 42 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 D | ds1302.c | 265 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 D | runtime-wrappers.c | 98 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
|