/openbmc/linux/drivers/md/persistent-data/ |
H A D | dm-transaction-manager.c | 105 static int is_shadow(struct dm_transaction_manager *tm, dm_block_t b) in is_shadow() argument 111 spin_lock(&tm->lock); in is_shadow() 112 hlist_for_each_entry(si, tm->buckets + bucket, hlist) in is_shadow() 117 spin_unlock(&tm->lock); in is_shadow() 126 static void insert_shadow(struct dm_transaction_manager *tm, dm_block_t b) in insert_shadow() argument 135 spin_lock(&tm->lock); in insert_shadow() 136 hlist_add_head(&si->hlist, tm->buckets + bucket); in insert_shadow() 137 spin_unlock(&tm->lock); in insert_shadow() 141 static void wipe_shadow_table(struct dm_transaction_manager *tm) in wipe_shadow_table() argument 148 spin_lock(&tm->lock); in wipe_shadow_table() [all …]
|
/openbmc/linux/net/ipv4/ |
H A D | tcp_metrics.c | 54 static inline struct net *tm_net(const struct tcp_metrics_block *tm) in tm_net() argument 57 return READ_ONCE(tm->tcpm_net); in tm_net() 60 static bool tcp_metric_locked(struct tcp_metrics_block *tm, in tcp_metric_locked() argument 64 return READ_ONCE(tm->tcpm_lock) & (1 << idx); in tcp_metric_locked() 67 static u32 tcp_metric_get(const struct tcp_metrics_block *tm, in tcp_metric_get() argument 71 return READ_ONCE(tm->tcpm_vals[idx]); in tcp_metric_get() 74 static void tcp_metric_set(struct tcp_metrics_block *tm, in tcp_metric_set() argument 79 WRITE_ONCE(tm->tcpm_vals[idx], val); in tcp_metric_set() 98 static void tcpm_suck_dst(struct tcp_metrics_block *tm, in tcpm_suck_dst() argument 105 WRITE_ONCE(tm->tcpm_stamp, jiffies); in tcpm_suck_dst() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/tm/ |
H A D | Makefile | 2 SIGNAL_CONTEXT_CHK_TESTS := tm-signal-context-chk-gpr tm-signal-context-chk-fpu \ 3 tm-signal-context-chk-vmx tm-signal-context-chk-vsx 5 TEST_GEN_PROGS := tm-resched-dscr tm-syscall tm-signal-msr-resv tm-signal-stack \ 6 tm-vmxcopy tm-fork tm-tar tm-tmspr tm-vmx-unavail tm-unavailable tm-trap \ 7 $(SIGNAL_CONTEXT_CHK_TESTS) tm-sigreturn tm-signal-sigreturn-nt \ 8 tm-signal-context-force-tm tm-poison tm-signal-pagefault 19 $(OUTPUT)/tm-syscall: tm-syscall-asm.S 20 $(OUTPUT)/tm-syscall: CFLAGS += $(KHDR_INCLUDES) 21 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread 22 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64 [all …]
|
H A D | .gitignore | 2 tm-resched-dscr 3 tm-syscall 4 tm-signal-msr-resv 5 tm-signal-stack 6 tm-vmxcopy 7 tm-fork 8 tm-tar 9 tm-tmspr 10 tm-exec 11 tm-signal-context-chk-fpu [all …]
|
/openbmc/qemu/hw/timer/ |
H A D | pxa2xx_timer.c | 81 PXA2xxTimer0 tm; member 148 timer_del(s->tm4[n].tm.qtimer); in pxa2xx_timer_update4() 156 new_qemu = now_qemu + muldiv64((uint32_t) (s->tm4[n].tm.value - now_vm), in pxa2xx_timer_update4() 158 timer_mod(s->tm4[n].tm.qtimer, new_qemu); in pxa2xx_timer_update4() 165 int tm = 0; in pxa2xx_timer_read() local 168 case OSMR3: tm ++; in pxa2xx_timer_read() 170 case OSMR2: tm ++; in pxa2xx_timer_read() 172 case OSMR1: tm ++; in pxa2xx_timer_read() 175 return s->timer[tm].value; in pxa2xx_timer_read() 176 case OSMR11: tm ++; in pxa2xx_timer_read() [all …]
|
/openbmc/u-boot/drivers/rtc/ |
H A D | s35392a.c | 131 static int validate_time(const struct rtc_time *tm) in validate_time() argument 133 if ((tm->tm_year < 2000) || (tm->tm_year > 2099)) in validate_time() 136 if ((tm->tm_mon < 1) || (tm->tm_mon > 12)) in validate_time() 139 if ((tm->tm_mday < 1) || (tm->tm_mday > 31)) in validate_time() 142 if ((tm->tm_wday < 0) || (tm->tm_wday > 6)) in validate_time() 145 if ((tm->tm_hour < 0) || (tm->tm_hour > 23)) in validate_time() 148 if ((tm->tm_min < 0) || (tm->tm_min > 59)) in validate_time() 151 if ((tm->tm_sec < 0) || (tm->tm_sec > 59)) in validate_time() 193 static int s35392a_rtc_get(DEV_TYPE *dev, struct rtc_time *tm) in s35392a_rtc_get() argument 213 tm->tm_sec = bcd2bin(date[S35390A_BYTE_SECS]); in s35392a_rtc_get() [all …]
|
H A D | m41t62.c | 56 static void m41t62_update_rtc_time(struct rtc_time *tm, u8 *buf) in m41t62_update_rtc_time() argument 64 tm->tm_sec = bcd2bin(buf[M41T62_REG_SEC] & 0x7f); in m41t62_update_rtc_time() 65 tm->tm_min = bcd2bin(buf[M41T62_REG_MIN] & 0x7f); in m41t62_update_rtc_time() 66 tm->tm_hour = bcd2bin(buf[M41T62_REG_HOUR] & 0x3f); in m41t62_update_rtc_time() 67 tm->tm_mday = bcd2bin(buf[M41T62_REG_DAY] & 0x3f); in m41t62_update_rtc_time() 68 tm->tm_wday = buf[M41T62_REG_WDAY] & 0x07; in m41t62_update_rtc_time() 69 tm->tm_mon = bcd2bin(buf[M41T62_REG_MON] & 0x1f); in m41t62_update_rtc_time() 73 tm->tm_year = bcd2bin(buf[M41T62_REG_YEAR]) + 100 + 1900; in m41t62_update_rtc_time() 78 tm->tm_sec, tm->tm_min, tm->tm_hour, in m41t62_update_rtc_time() 79 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in m41t62_update_rtc_time() [all …]
|
H A D | x1205.c | 87 int rtc_get(struct rtc_time *tm) in rtc_get() argument 99 tm->tm_sec = bcd2bin(buf[CCR_SEC]); in rtc_get() 100 tm->tm_min = bcd2bin(buf[CCR_MIN]); in rtc_get() 101 tm->tm_hour = bcd2bin(buf[CCR_HOUR] & 0x3F); /* hr is 0-23 */ in rtc_get() 102 tm->tm_mday = bcd2bin(buf[CCR_MDAY]); in rtc_get() 103 tm->tm_mon = bcd2bin(buf[CCR_MONTH]); /* mon is 0-11 */ in rtc_get() 104 tm->tm_year = bcd2bin(buf[CCR_YEAR]) in rtc_get() 106 tm->tm_wday = buf[CCR_WDAY]; in rtc_get() 111 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get() 112 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get() [all …]
|
H A D | pcf2127.c | 25 static int pcf2127_rtc_set(struct udevice *dev, const struct rtc_time *tm) in pcf2127_rtc_set() argument 34 buf[i++] = bin2bcd(tm->tm_sec); in pcf2127_rtc_set() 35 buf[i++] = bin2bcd(tm->tm_min); in pcf2127_rtc_set() 36 buf[i++] = bin2bcd(tm->tm_hour); in pcf2127_rtc_set() 37 buf[i++] = bin2bcd(tm->tm_mday); in pcf2127_rtc_set() 38 buf[i++] = tm->tm_wday & 0x07; in pcf2127_rtc_set() 41 buf[i++] = bin2bcd(tm->tm_mon + 1); in pcf2127_rtc_set() 44 buf[i++] = bin2bcd(tm->tm_year % 100); in pcf2127_rtc_set() 52 static int pcf2127_rtc_get(struct udevice *dev, struct rtc_time *tm) in pcf2127_rtc_get() argument 67 tm->tm_sec = bcd2bin(buf[PCF2127_REG_SC] & 0x7F); in pcf2127_rtc_get() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | lib.c | 52 void rtc_time64_to_tm(time64_t time, struct rtc_time *tm) in rtc_time64_to_tm() argument 66 tm->tm_wday = (days + 4) % 7; in rtc_time64_to_tm() 130 tm->tm_year = (int) (year - 1900); in rtc_time64_to_tm() 131 tm->tm_mon = (int) month; in rtc_time64_to_tm() 132 tm->tm_mday = (int) day; in rtc_time64_to_tm() 133 tm->tm_yday = (int) day_of_year + 1; in rtc_time64_to_tm() 135 tm->tm_hour = secs / 3600; in rtc_time64_to_tm() 136 secs -= tm->tm_hour * 3600; in rtc_time64_to_tm() 137 tm->tm_min = secs / 60; in rtc_time64_to_tm() 138 tm->tm_sec = secs - tm->tm_min * 60; in rtc_time64_to_tm() [all …]
|
H A D | rtc-rzn1.c | 67 static void rzn1_rtc_get_time_snapshot(struct rzn1_rtc *rtc, struct rtc_time *tm) in rzn1_rtc_get_time_snapshot() argument 69 tm->tm_sec = readl(rtc->base + RZN1_RTC_SECC); in rzn1_rtc_get_time_snapshot() 70 tm->tm_min = readl(rtc->base + RZN1_RTC_MINC); in rzn1_rtc_get_time_snapshot() 71 tm->tm_hour = readl(rtc->base + RZN1_RTC_HOURC); in rzn1_rtc_get_time_snapshot() 72 tm->tm_wday = readl(rtc->base + RZN1_RTC_WEEKC); in rzn1_rtc_get_time_snapshot() 73 tm->tm_mday = readl(rtc->base + RZN1_RTC_DAYC); in rzn1_rtc_get_time_snapshot() 74 tm->tm_mon = readl(rtc->base + RZN1_RTC_MONTHC); in rzn1_rtc_get_time_snapshot() 75 tm->tm_year = readl(rtc->base + RZN1_RTC_YEARC); in rzn1_rtc_get_time_snapshot() 78 static unsigned int rzn1_rtc_tm_to_wday(struct rtc_time *tm) in rzn1_rtc_tm_to_wday() argument 84 time = rtc_tm_to_time64(tm); in rzn1_rtc_tm_to_wday() [all …]
|
H A 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 …]
|
H A 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 …]
|
H A D | rtc-moxart.c | 142 static int moxart_rtc_set_time(struct device *dev, struct rtc_time *tm) in moxart_rtc_set_time() argument 150 (((tm->tm_year - 100) / 10) << 4) | in moxart_rtc_set_time() 151 ((tm->tm_year - 100) % 10)); in moxart_rtc_set_time() 154 (((tm->tm_mon + 1) / 10) << 4) | in moxart_rtc_set_time() 155 ((tm->tm_mon + 1) % 10)); in moxart_rtc_set_time() 158 ((tm->tm_mday / 10) << 4) | in moxart_rtc_set_time() 159 (tm->tm_mday % 10)); in moxart_rtc_set_time() 162 ((tm->tm_hour / 10) << 4) | in moxart_rtc_set_time() 163 (tm->tm_hour % 10)); in moxart_rtc_set_time() 166 ((tm->tm_min / 10) << 4) | in moxart_rtc_set_time() [all …]
|
H A 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 …]
|
H A 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 …]
|
/openbmc/linux/fs/btrfs/ |
H A D | tree-mod-log.c | 80 struct tree_mod_elem *tm; in btrfs_put_tree_mod_seq() local 116 tm = rb_entry(node, struct tree_mod_elem, node); in btrfs_put_tree_mod_seq() 117 if (tm->seq >= min_seq) in btrfs_put_tree_mod_seq() 120 kfree(tm); in btrfs_put_tree_mod_seq() 134 struct tree_mod_elem *tm) in tree_mod_log_insert() argument 143 tm->seq = btrfs_inc_tree_mod_seq(fs_info); in tree_mod_log_insert() 150 if (cur->logical < tm->logical) in tree_mod_log_insert() 152 else if (cur->logical > tm->logical) in tree_mod_log_insert() 154 else if (cur->seq < tm->seq) in tree_mod_log_insert() 156 else if (cur->seq > tm->seq) in tree_mod_log_insert() [all …]
|
/openbmc/linux/drivers/net/fddi/skfp/ |
H A D | smttimer.c | 34 struct smt_timer *tm ; in smt_timer_stop() local 43 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_stop() 44 if (tm == timer) { in smt_timer_stop() 45 *prev = tm->tm_next ; in smt_timer_stop() 46 if (tm->tm_next) { in smt_timer_stop() 47 tm->tm_next->tm_delta += tm->tm_delta ; in smt_timer_stop() 58 struct smt_timer *tm ; in smt_timer_start() local 84 for (prev = &smc->t.st_queue ; (tm = *prev) ; prev = &tm->tm_next ) { in smt_timer_start() 85 if (delta + tm->tm_delta > time) { in smt_timer_start() 88 delta += tm->tm_delta ; in smt_timer_start() [all …]
|
/openbmc/linux/arch/powerpc/platforms/maple/ |
H A D | time.c | 51 void maple_get_rtc_time(struct rtc_time *tm) in maple_get_rtc_time() argument 54 tm->tm_sec = maple_clock_read(RTC_SECONDS); in maple_get_rtc_time() 55 tm->tm_min = maple_clock_read(RTC_MINUTES); in maple_get_rtc_time() 56 tm->tm_hour = maple_clock_read(RTC_HOURS); in maple_get_rtc_time() 57 tm->tm_mday = maple_clock_read(RTC_DAY_OF_MONTH); in maple_get_rtc_time() 58 tm->tm_mon = maple_clock_read(RTC_MONTH); in maple_get_rtc_time() 59 tm->tm_year = maple_clock_read(RTC_YEAR); in maple_get_rtc_time() 60 } while (tm->tm_sec != maple_clock_read(RTC_SECONDS)); in maple_get_rtc_time() 64 tm->tm_sec = bcd2bin(tm->tm_sec); in maple_get_rtc_time() 65 tm->tm_min = bcd2bin(tm->tm_min); in maple_get_rtc_time() [all …]
|
/openbmc/openbmc/poky/meta/recipes-extended/at/at/ |
H A D | posixtm.c | 65 year (struct tm *tm, const int *digit_pair, size_t n, unsigned int syntax_bits) in year() argument 70 tm->tm_year = *digit_pair; in year() 78 tm->tm_year += 100; in year() 85 tm->tm_year = digit_pair[0] * 100 + digit_pair[1] - 1900; in year() 91 struct tm *tmp; in year() 98 tm->tm_year = tmp->tm_year; in year() 110 posix_time_parse (struct tm *tm, const char *s, unsigned int syntax_bits) in posix_time_parse() argument 145 if (year (tm, p, len - 4, syntax_bits)) in posix_time_parse() 152 tm->tm_mon = *p++ - 1; in posix_time_parse() 153 tm->tm_mday = *p++; in posix_time_parse() [all …]
|
/openbmc/u-boot/post/drivers/ |
H A D | rtc.c | 59 static void rtc_post_restore (struct rtc_time *tm, unsigned int sec) in rtc_post_restore() argument 61 time_t t = rtc_mktime(tm) + sec; in rtc_post_restore() 118 struct rtc_time tm; in rtc_post_test() local 120 tm.tm_year = ynl; in rtc_post_test() 121 tm.tm_mon = i + 1; in rtc_post_test() 122 tm.tm_mday = daysnl[i]; in rtc_post_test() 123 tm.tm_hour = 23; in rtc_post_test() 124 tm.tm_min = 59; in rtc_post_test() 125 tm.tm_sec = 59; in rtc_post_test() 126 t = rtc_mktime(&tm); in rtc_post_test() [all …]
|
/openbmc/qemu/system/ |
H A D | rtc.c | 70 void qemu_get_timedate(struct tm *tm, time_t offset) in qemu_get_timedate() argument 79 gmtime_r(&ti, tm); in qemu_get_timedate() 82 localtime_r(&ti, tm); in qemu_get_timedate() 87 time_t qemu_timedate_diff(struct tm *tm) in qemu_timedate_diff() argument 94 seconds = mktimegm(tm); in qemu_timedate_diff() 98 struct tm tmp = *tm; in qemu_timedate_diff() 113 struct tm tm; in configure_rtc_base_datetime() local 115 if (sscanf(startdate, "%d-%d-%dT%d:%d:%d", &tm.tm_year, &tm.tm_mon, in configure_rtc_base_datetime() 116 &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) == 6) { in configure_rtc_base_datetime() 119 &tm.tm_year, &tm.tm_mon, &tm.tm_mday) == 3) { in configure_rtc_base_datetime() [all …]
|
/openbmc/linux/drivers/isdn/mISDN/ |
H A 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 …]
|
/openbmc/u-boot/drivers/ddr/marvell/a38x/ |
H A D | mv_ddr_topology.c | 48 struct mv_ddr_topology_map *tm = mv_ddr_topology_map_get(); in mv_ddr_topology_map_update() local 49 struct if_params *iface_params = &(tm->interface_params[0]); in mv_ddr_topology_map_update() 60 if (tm->cfg_src == MV_DDR_CFG_SPD) { in mv_ddr_topology_map_update() 62 val = mv_ddr_spd_dev_type_get(&tm->spd_data); in mv_ddr_topology_map_update() 69 if (mv_ddr_spd_timing_calc(&tm->spd_data, tm->timing_data) > 0) { in mv_ddr_topology_map_update() 75 iface_params->bus_width = mv_ddr_spd_dev_width_get(&tm->spd_data); in mv_ddr_topology_map_update() 78 iface_params->memory_size = mv_ddr_spd_die_capacity_get(&tm->spd_data); in mv_ddr_topology_map_update() 81 tm->bus_act_mask = mv_ddr_bus_bit_mask_get(); in mv_ddr_topology_map_update() 84 val = mv_ddr_spd_cs_bit_mask_get(&tm->spd_data); in mv_ddr_topology_map_update() 89 val = mv_ddr_spd_module_type_get(&tm->spd_data); in mv_ddr_topology_map_update() [all …]
|
/openbmc/linux/arch/powerpc/platforms/chrp/ |
H A D | time.c | 89 struct rtc_time tm = *tmarg; in chrp_set_rtc_time() local 102 tm.tm_sec = bin2bcd(tm.tm_sec); in chrp_set_rtc_time() 103 tm.tm_min = bin2bcd(tm.tm_min); in chrp_set_rtc_time() 104 tm.tm_hour = bin2bcd(tm.tm_hour); in chrp_set_rtc_time() 105 tm.tm_mon = bin2bcd(tm.tm_mon); in chrp_set_rtc_time() 106 tm.tm_mday = bin2bcd(tm.tm_mday); in chrp_set_rtc_time() 107 tm.tm_year = bin2bcd(tm.tm_year); in chrp_set_rtc_time() 109 chrp_cmos_clock_write(tm.tm_sec,RTC_SECONDS); in chrp_set_rtc_time() 110 chrp_cmos_clock_write(tm.tm_min,RTC_MINUTES); in chrp_set_rtc_time() 111 chrp_cmos_clock_write(tm.tm_hour,RTC_HOURS); in chrp_set_rtc_time() [all …]
|