Home
last modified time | relevance | path

Searched refs:tm (Results 1 – 25 of 559) sorted by relevance

12345678910>>...23

/openbmc/linux/drivers/md/persistent-data/
H A Ddm-transaction-manager.c168 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in dm_tm_create()
169 if (!tm) in dm_tm_create()
174 tm->bm = bm; in dm_tm_create()
175 tm->sm = sm; in dm_tm_create()
183 return tm; in dm_tm_create()
190 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in dm_tm_create_non_blocking_clone()
191 if (tm) { in dm_tm_create_non_blocking_clone()
196 return tm; in dm_tm_create_non_blocking_clone()
202 if (!tm) in dm_tm_destroy()
208 kfree(tm); in dm_tm_destroy()
[all …]
/openbmc/linux/tools/testing/selftests/powerpc/tm/
H A DMakefile2 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
21 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread
23 $(OUTPUT)/tm-resched-dscr: ../pmu/lib.c
26 $(OUTPUT)/tm-signal-context-force-tm: CFLAGS += -pthread -m64
[all …]
H A D.gitignore2 tm-resched-dscr
3 tm-syscall
5 tm-signal-stack
6 tm-vmxcopy
7 tm-fork
8 tm-tar
9 tm-tmspr
10 tm-exec
15 tm-signal-context-force-tm
20 tm-trap
[all …]
/openbmc/linux/net/ipv4/
H A Dtcp_metrics.c150 if (!tm) in tcpm_check_stamp()
192 for (tm = deref_locked(oldest->tcpm_next); tm; in tcpm_new()
193 tm = deref_locked(tm->tcpm_next)) { in tcpm_new()
200 tm = kzalloc(sizeof(*tm), GFP_ATOMIC); in tcpm_new()
224 if (tm) in tcp_get_encode()
239 tm = rcu_dereference(tm->tcpm_next)) { in __tcp_get_metrics()
281 tm = rcu_dereference(tm->tcpm_next)) { in __tcp_get_metrics_req()
552 if (tm && tcp_metric_get(tm, TCP_METRIC_RTT)) in tcp_peer_is_proven()
870 tm = rcu_dereference(tm->tcpm_next)) { in tcp_metrics_nl_cmd_get()
906 for (tm = deref_locked(*pp); tm; tm = deref_locked(*pp)) { in tcp_metrics_flush_all()
[all …]
/openbmc/qemu/hw/timer/
H A Dpxa2xx_timer.c82 PXA2xxTimer0 tm; member
166 int tm = 0; in pxa2xx_timer_read() local
169 case OSMR3: tm ++; in pxa2xx_timer_read()
171 case OSMR2: tm ++; in pxa2xx_timer_read()
194 return s->tm4[tm].tm.value; in pxa2xx_timer_read()
216 if ((tm == 9 - 4 || tm == 11 - 4) && (s->tm4[tm].control & (1 << 9))) { in pxa2xx_timer_read()
230 s->tm4[tm].lastload, s->tm4[tm].freq, in pxa2xx_timer_read()
275 int i, tm = 0; in pxa2xx_timer_write() local
306 s->tm4[tm].tm.value = value; in pxa2xx_timer_write()
332 s->tm4[tm].oldclock = s->tm4[tm].clock; in pxa2xx_timer_write()
[all …]
/openbmc/linux/drivers/rtc/
H A Dlib.c131 tm->tm_mon = (int) month; in rtc_time64_to_tm()
132 tm->tm_mday = (int) day; in rtc_time64_to_tm()
135 tm->tm_hour = secs / 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()
140 tm->tm_isdst = 0; in rtc_time64_to_tm()
149 if (tm->tm_year < 70 || in rtc_valid_tm()
152 tm->tm_mday < 1 || in rtc_valid_tm()
153 tm->tm_mday > rtc_month_days(tm->tm_mon, in rtc_valid_tm()
170 return mktime64(((unsigned int)tm->tm_year + 1900), tm->tm_mon + 1, in rtc_tm_to_time64()
[all …]
H A Drtc-m41t94.c36 "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()
49 if (tm->tm_year >= 100) in m41t94_set_time()
85 tm->tm_hour = bcd2bin(hour & 0x3f); in m41t94_read_time()
91 tm->tm_year += 100; in m41t94_read_time()
95 "read", tm->tm_sec, tm->tm_min, in m41t94_read_time()
96 tm->tm_hour, tm->tm_mday, in m41t94_read_time()
[all …]
H A Drtc-rzn1.c109 tm->tm_sec = bcd2bin(tm->tm_sec); in rzn1_rtc_read_time()
110 tm->tm_min = bcd2bin(tm->tm_min); in rzn1_rtc_read_time()
111 tm->tm_hour = bcd2bin(tm->tm_hour); in rzn1_rtc_read_time()
112 tm->tm_wday = bcd2bin(tm->tm_wday); in rzn1_rtc_read_time()
113 tm->tm_mday = bcd2bin(tm->tm_mday); in rzn1_rtc_read_time()
114 tm->tm_mon = bcd2bin(tm->tm_mon); in rzn1_rtc_read_time()
115 tm->tm_year = bcd2bin(tm->tm_year); in rzn1_rtc_read_time()
126 tm->tm_sec = bin2bcd(tm->tm_sec); in rzn1_rtc_set_time()
127 tm->tm_min = bin2bcd(tm->tm_min); in rzn1_rtc_set_time()
128 tm->tm_hour = bin2bcd(tm->tm_hour); in rzn1_rtc_set_time()
[all …]
H A Drtc-wm8350.c71 tm->tm_yday = rtc_year_days(tm->tm_mday, tm->tm_mon, in wm8350_rtc_readtime()
97 time[0] = tm->tm_sec; in wm8350_rtc_settime()
152 tm->tm_sec = -1; in wm8350_rtc_readalarm()
156 tm->tm_min = -1; in wm8350_rtc_readalarm()
162 tm->tm_hour = -1; in wm8350_rtc_readalarm()
165 if (tm->tm_wday > 7) in wm8350_rtc_readalarm()
166 tm->tm_wday = -1; in wm8350_rtc_readalarm()
170 tm->tm_mon = -1; in wm8350_rtc_readalarm()
172 tm->tm_mon = (tm->tm_mon >> WM8350_RTC_ALMMTH_SHIFT) - 1; in wm8350_rtc_readalarm()
176 tm->tm_mday = -1; in wm8350_rtc_readalarm()
[all …]
H A Drtc-moxart.c179 __func__, tm->tm_year, tm->tm_mon, tm->tm_mday, in moxart_rtc_set_time()
180 tm->tm_hour, tm->tm_min, tm->tm_sec); in moxart_rtc_set_time()
202 tm->tm_hour += 12; in moxart_rtc_read_time()
204 tm->tm_hour = 0; in moxart_rtc_read_time()
215 tm->tm_mon--; in moxart_rtc_read_time()
219 tm->tm_year += 100; in moxart_rtc_read_time()
225 tm->tm_yday = day_of_year[tm->tm_mon]; in moxart_rtc_read_time()
226 tm->tm_yday += (tm->tm_mday - 1); in moxart_rtc_read_time()
228 if (!(tm->tm_year % 4) && (tm->tm_year % 100)) in moxart_rtc_read_time()
229 tm->tm_yday++; in moxart_rtc_read_time()
[all …]
H A Drtc-m41t93.c54 "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()
89 data[M41T93_REG_MIN] = bin2bcd(tm->tm_min); in m41t93_set_time()
91 ((tm->tm_year/100-1) << 6); in m41t93_set_time()
144 tm->tm_min = bcd2bin(buf[M41T93_REG_MIN]); in m41t93_get_time()
146 tm->tm_mday = bcd2bin(buf[M41T93_REG_DAY]); in m41t93_get_time()
155 "read", tm->tm_sec, tm->tm_min, in m41t93_get_time()
156 tm->tm_hour, tm->tm_mday, in m41t93_get_time()
[all …]
H A Drtc-msm6242.c129 tm->tm_wday = msm6242_read(priv, MSM6242_WEEK); in msm6242_read_time()
134 if (tm->tm_year <= 69) in msm6242_read_time()
135 tm->tm_year += 100; in msm6242_read_time()
140 if (!pm && tm->tm_hour == 12) in msm6242_read_time()
141 tm->tm_hour = 0; in msm6242_read_time()
142 else if (pm && tm->tm_hour != 12) in msm6242_read_time()
143 tm->tm_hour += 12; in msm6242_read_time()
163 else if (tm->tm_hour >= 12) in msm6242_set_time()
171 if (tm->tm_wday != -1) in msm6242_set_time()
175 if (tm->tm_year >= 100) in msm6242_set_time()
[all …]
/openbmc/u-boot/drivers/rtc/
H A Dm41t62.c68 tm->tm_wday = buf[M41T62_REG_WDAY] & 0x07; 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()
85 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in m41t62_set_rtc_buf()
86 tm->tm_hour, tm->tm_min, tm->tm_sec); in m41t62_set_rtc_buf()
116 m41t62_update_rtc_time(tm, buf); in m41t62_rtc_get()
130 m41t62_set_rtc_buf(tm, buf); in m41t62_rtc_set()
178 int rtc_get(struct rtc_time *tm) in rtc_get() argument
183 m41t62_update_rtc_time(tm, buf); in rtc_get()
188 int rtc_set(struct rtc_time *tm) in rtc_set() argument
[all …]
H A Ds35392a.c133 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()
222 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in s35392a_rtc_get()
223 tm->tm_hour, tm->tm_min, tm->tm_sec); in s35392a_rtc_get()
236 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in s35392a_rtc_set()
[all …]
H A Dx1205.c87 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()
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()
117 int rtc_set(struct rtc_time *tm) in rtc_set() argument
123 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in rtc_set()
124 tm->tm_hour, tm->tm_min, tm->tm_sec); in rtc_set()
126 buf[CCR_SEC] = bin2bcd(tm->tm_sec); in rtc_set()
[all …]
H A Dpcf2127.c34 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()
73 if (tm->tm_year < 1970) in pcf2127_rtc_get()
76 tm->tm_yday = 0; in pcf2127_rtc_get()
77 tm->tm_isdst = 0; in pcf2127_rtc_get()
80 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in pcf2127_rtc_get()
[all …]
/openbmc/linux/drivers/net/fddi/skfp/
H A Dsmttimer.c34 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()
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()
92 timer->tm_next = tm ; in smt_timer_start()
94 if (tm) in smt_timer_start()
128 tm = tm->tm_next ; in timer_done()
[all …]
/openbmc/linux/arch/powerpc/platforms/maple/
H A Dtime.c64 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()
66 tm->tm_hour = bcd2bin(tm->tm_hour); in maple_get_rtc_time()
67 tm->tm_mday = bcd2bin(tm->tm_mday); in maple_get_rtc_time()
68 tm->tm_mon = bcd2bin(tm->tm_mon); in maple_get_rtc_time()
69 tm->tm_year = bcd2bin(tm->tm_year); in maple_get_rtc_time()
74 tm->tm_wday = -1; in maple_get_rtc_time()
92 sec = tm->tm_sec; in maple_set_rtc_time()
93 min = tm->tm_min; in maple_set_rtc_time()
94 hour = tm->tm_hour; in maple_set_rtc_time()
[all …]
/openbmc/linux/fs/btrfs/
H A Dtree-mod-log.c208 tm = kzalloc(sizeof(*tm), GFP_NOFS); in alloc_tree_mod_elem()
209 if (!tm) in alloc_tree_mod_elem()
235 if (!tm) in btrfs_tree_mod_log_insert_key()
268 tm = kzalloc(sizeof(*tm), GFP_NOFS); in tree_mod_log_alloc_move()
269 if (!tm) in tree_mod_log_alloc_move()
422 tm = kzalloc(sizeof(*tm), GFP_NOFS); in btrfs_tree_mod_log_insert_root()
821 while (tm && tm->seq >= time_seq) { in tree_mod_log_rewind()
834 btrfs_set_node_key(eb, &tm->key, tm->slot); in tree_mod_log_rewind()
844 btrfs_set_node_key(eb, &tm->key, tm->slot); in tree_mod_log_rewind()
875 tm->move.dst_slot, tm->move.nr_items, in tree_mod_log_rewind()
[all …]
/openbmc/openbmc/poky/meta/recipes-extended/at/at/
H A Dposixtm.c91 struct tm *tmp; in year()
110 posix_time_parse (struct tm *tm, const char *s, unsigned int syntax_bits) in posix_time_parse() argument
153 tm->tm_mday = *p++; in posix_time_parse()
154 tm->tm_hour = *p++; in posix_time_parse()
155 tm->tm_min = *p++; in posix_time_parse()
168 tm->tm_sec = 0; in posix_time_parse()
190 struct tm tm0 in posixtime()
199 struct tm tm1; in posixtime()
200 struct tm const *tm; in posixtime() local
211 tm = &tm1; in posixtime()
[all …]
/openbmc/u-boot/post/drivers/
H A Drtc.c123 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()
128 rtc_set (&tm); in rtc_post_test()
138 rtc_get (&tm); in rtc_post_test()
151 tm.tm_year = yl; in rtc_post_test()
154 tm.tm_hour = 23; in rtc_post_test()
155 tm.tm_min = 59; in rtc_post_test()
156 tm.tm_sec = 59; in rtc_post_test()
160 rtc_set (&tm); in rtc_post_test()
[all …]
/openbmc/qemu/system/
H A Drtc.c71 void qemu_get_timedate(struct tm *tm, time_t offset) in qemu_get_timedate() argument
88 time_t qemu_timedate_diff(struct tm *tm) in qemu_timedate_diff() argument
99 struct tm tmp = *tm; in qemu_timedate_diff()
114 struct tm tm; in configure_rtc_base_datetime() local
116 if (sscanf(startdate, "%d-%d-%dT%d:%d:%d", &tm.tm_year, &tm.tm_mon, in configure_rtc_base_datetime()
117 &tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) == 6) { in configure_rtc_base_datetime()
120 &tm.tm_year, &tm.tm_mon, &tm.tm_mday) == 3) { in configure_rtc_base_datetime()
121 tm.tm_hour = 0; in configure_rtc_base_datetime()
122 tm.tm_min = 0; in configure_rtc_base_datetime()
123 tm.tm_sec = 0; in configure_rtc_base_datetime()
[all …]
/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dmv_ddr_topology.c60 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()
81 tm->bus_act_mask = mv_ddr_bus_bit_mask_get(); in mv_ddr_topology_map_update()
118 mv_ddr_spd_supported_cls_calc(&tm->spd_data); in mv_ddr_topology_map_update()
146 if (tm->cfg_src == MV_DDR_CFG_SPD) { in mv_ddr_bus_bit_mask_get()
176 switch (tm->bus_act_mask) { in mv_ddr_if_bus_width_get()
208 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, sphy); in mv_ddr_cs_num_get()
226 DDR3_IS_ECC_PUP8_MODE(tm->bus_act_mask)) in mv_ddr_is_ecc_ena()
252 VALIDATE_BUS_ACTIVE(tm->bus_act_mask, i); in mv_ddr_mem_sz_per_cs_get()
[all …]
/openbmc/linux/arch/powerpc/platforms/chrp/
H A Dtime.c102 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()
153 tm->tm_sec = sec; in chrp_get_rtc_time()
154 tm->tm_min = min; in chrp_get_rtc_time()
155 tm->tm_hour = hour; in chrp_get_rtc_time()
156 tm->tm_mday = day; in chrp_get_rtc_time()
[all …]
/openbmc/linux/drivers/isdn/mISDN/
H A Dtei.c461 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request()
468 tm->tei_m.printdebug(&tm->tei_m, in tei_id_request()
605 4 - tm->nval, tm->ri); in tei_id_req_tout()
624 3 - tm->nval, tm->l2->tei); in tei_id_ver_tout()
666 tm->tei_m.printdebug(&tm->tei_m, in tei_assign_req()
673 tm->tei_m.printdebug(&tm->tei_m, in tei_assign_req()
675 put_tei_msg(tm->mgr, ID_ASSIGNED, tm->ri, tm->l2->tei); in tei_assign_req()
815 l2->tm->tei_m.userdata = l2->tm; in create_new_tei()
936 struct teimgr *tm = l2->tm; in l2_tei() local
971 struct teimgr *tm = l2->tm; in TEIrelease() local
[all …]

12345678910>>...23