Home
last modified time | relevance | path

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

12345678910>>...42

/external/toybox/toys/pending/
Dtelnetd.c209 static int handle_iacs(struct term_session *tm, int c, int fd) in handle_iacs() argument
214 curr = start = tm->buff2+tm->buff2_avail; in handle_iacs()
215 end = tm->buff2 + c -1; in handle_iacs()
216 tm->rem = 0; in handle_iacs()
233 tm->rem = 1; in handle_iacs()
250 tm->rem = end - curr; in handle_iacs()
259 curr++, tm->rem++; in handle_iacs()
262 tm->rem++; in handle_iacs()
265 tm->rem = 0; in handle_iacs()
273 memcpy(start + i, end - tm->rem, tm->rem); //put remaining if we break; in handle_iacs()
[all …]
/external/u-boot/drivers/ddr/marvell/a38x/
Dmv_ddr_topology.c43 struct mv_ddr_topology_map *tm = mv_ddr_topology_map_get(); in mv_ddr_topology_map_update() local
52 if (tm->interface_params[0].memory_freq == DDR_FREQ_SAR) in mv_ddr_topology_map_update()
53 tm->interface_params[0].memory_freq = mv_ddr_init_freq_get(); in mv_ddr_topology_map_update()
55 if (tm->cfg_src == MV_DDR_CFG_SPD) { in mv_ddr_topology_map_update()
57 val = mv_ddr_spd_dev_type_get(&tm->spd_data); in mv_ddr_topology_map_update()
64 if (mv_ddr_spd_timing_calc(&tm->spd_data, tm->timing_data) > 0) { in mv_ddr_topology_map_update()
70 tm->interface_params[0].bus_width = mv_ddr_spd_dev_width_get(&tm->spd_data); in mv_ddr_topology_map_update()
73 tm->interface_params[0].memory_size = mv_ddr_spd_die_capacity_get(&tm->spd_data); in mv_ddr_topology_map_update()
76 tm->bus_act_mask = mv_ddr_bus_bit_mask_get(); in mv_ddr_topology_map_update()
79 val = mv_ddr_spd_cs_bit_mask_get(&tm->spd_data); in mv_ddr_topology_map_update()
[all …]
/external/u-boot/drivers/rtc/
Ds35392a.c131 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 …]
Ddate.c33 int rtc_calc_weekday(struct rtc_time *tm) in rtc_calc_weekday() argument
39 if (tm->tm_year < 1753) in rtc_calc_weekday()
41 last_year = tm->tm_year - 1; in rtc_calc_weekday()
52 if (tm->tm_year % 4 == 0 && in rtc_calc_weekday()
53 ((tm->tm_year % 100 != 0) || (tm->tm_year % 400 == 0)) && in rtc_calc_weekday()
54 tm->tm_mon > 2) { in rtc_calc_weekday()
61 day += last_year * 365 + leaps_to_date + month_offset[tm->tm_mon - 1] + in rtc_calc_weekday()
62 tm->tm_mday; in rtc_calc_weekday()
63 tm->tm_wday = day % 7; in rtc_calc_weekday()
68 int rtc_to_tm(int tim, struct rtc_time *tm) in rtc_to_tm() argument
[all …]
Dm41t62.c54 int rtc_get(struct rtc_time *tm) in rtc_get() argument
66 tm->tm_sec = bcd2bin(buf[M41T62_REG_SEC] & 0x7f); in rtc_get()
67 tm->tm_min = bcd2bin(buf[M41T62_REG_MIN] & 0x7f); in rtc_get()
68 tm->tm_hour = bcd2bin(buf[M41T62_REG_HOUR] & 0x3f); in rtc_get()
69 tm->tm_mday = bcd2bin(buf[M41T62_REG_DAY] & 0x3f); in rtc_get()
70 tm->tm_wday = buf[M41T62_REG_WDAY] & 0x07; in rtc_get()
71 tm->tm_mon = bcd2bin(buf[M41T62_REG_MON] & 0x1f); in rtc_get()
75 tm->tm_year = bcd2bin(buf[M41T62_REG_YEAR]) + 100 + 1900; in rtc_get()
80 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get()
81 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get()
[all …]
Dx1205.c89 int rtc_get(struct rtc_time *tm) in rtc_get() argument
101 tm->tm_sec = bcd2bin(buf[CCR_SEC]); in rtc_get()
102 tm->tm_min = bcd2bin(buf[CCR_MIN]); in rtc_get()
103 tm->tm_hour = bcd2bin(buf[CCR_HOUR] & 0x3F); /* hr is 0-23 */ in rtc_get()
104 tm->tm_mday = bcd2bin(buf[CCR_MDAY]); in rtc_get()
105 tm->tm_mon = bcd2bin(buf[CCR_MONTH]); /* mon is 0-11 */ in rtc_get()
106 tm->tm_year = bcd2bin(buf[CCR_YEAR]) in rtc_get()
108 tm->tm_wday = buf[CCR_WDAY]; in rtc_get()
113 tm->tm_sec, tm->tm_min, tm->tm_hour, in rtc_get()
114 tm->tm_mday, tm->tm_mon, tm->tm_year, tm->tm_wday); in rtc_get()
[all …]
Dpcf2127.c25 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 …]
Dds1307.c212 static int ds1307_rtc_set(struct udevice *dev, const struct rtc_time *tm) in ds1307_rtc_set() argument
219 tm->tm_year, tm->tm_mon, tm->tm_mday, tm->tm_wday, in ds1307_rtc_set()
220 tm->tm_hour, tm->tm_min, tm->tm_sec); in ds1307_rtc_set()
222 if (tm->tm_year < 1970 || tm->tm_year > 2069) in ds1307_rtc_set()
225 buf[RTC_YR_REG_ADDR] = bin2bcd(tm->tm_year % 100); in ds1307_rtc_set()
226 buf[RTC_MON_REG_ADDR] = bin2bcd(tm->tm_mon); in ds1307_rtc_set()
227 buf[RTC_DAY_REG_ADDR] = bin2bcd(tm->tm_wday + 1); in ds1307_rtc_set()
228 buf[RTC_DATE_REG_ADDR] = bin2bcd(tm->tm_mday); in ds1307_rtc_set()
229 buf[RTC_HR_REG_ADDR] = bin2bcd(tm->tm_hour); in ds1307_rtc_set()
230 buf[RTC_MIN_REG_ADDR] = bin2bcd(tm->tm_min); in ds1307_rtc_set()
[all …]
Dm41t94.c36 int rtc_set(struct rtc_time *tm) in rtc_set() argument
51 buf[M41T94_REG_SECONDS] = bin2bcd(tm->tm_sec); in rtc_set()
52 buf[M41T94_REG_MINUTES] = bin2bcd(tm->tm_min); in rtc_set()
53 buf[M41T94_REG_HOURS] = bin2bcd(tm->tm_hour); in rtc_set()
54 buf[M41T94_REG_WDAY] = bin2bcd(tm->tm_wday + 1); in rtc_set()
55 buf[M41T94_REG_DAY] = bin2bcd(tm->tm_mday); in rtc_set()
56 buf[M41T94_REG_MONTH] = bin2bcd(tm->tm_mon + 1); in rtc_set()
59 if (tm->tm_year >= 100) in rtc_set()
61 buf[M41T94_REG_YEAR] = bin2bcd(tm->tm_year % 100); in rtc_set()
68 int rtc_get(struct rtc_time *tm) in rtc_get() argument
[all …]
/external/toybox/toys/posix/
Dcal.c26 static char *calstrings(char *buf, struct tm *tm) in calstrings() argument
32 len = strftime(temp, 21, "%B %Y", tm); in calstrings()
40 if (tm->tm_mday>1) in calstrings()
41 start = (36+tm->tm_wday-tm->tm_mday)%7; in calstrings()
42 else start = tm->tm_wday; in calstrings()
46 if (tm->tm_mon == 1) { in calstrings()
47 int year = tm->tm_year; in calstrings()
50 } else if ((tm->tm_mon+(tm->tm_mon>6 ? 1 : 0)) & 1) len = 30; in calstrings()
72 struct tm *tm; in cal_main() local
77 tm = (struct tm *)toybuf; in cal_main()
[all …]
/external/linux-kselftest/tools/testing/selftests/powerpc/tm/
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
16 $(OUTPUT)/tm-syscall: tm-syscall-asm.S
17 $(OUTPUT)/tm-syscall: CFLAGS += -I../../../../../usr/include
18 $(OUTPUT)/tm-tmspr: CFLAGS += -pthread
19 $(OUTPUT)/tm-vmx-unavail: CFLAGS += -pthread -m64
20 $(OUTPUT)/tm-resched-dscr: ../pmu/lib.c
[all …]
D.gitignore1 tm-resched-dscr
2 tm-syscall
3 tm-signal-msr-resv
4 tm-signal-stack
5 tm-vmxcopy
6 tm-fork
7 tm-tar
8 tm-tmspr
9 tm-exec
10 tm-signal-context-chk-fpu
[all …]
/external/openssh/openbsd-compat/
Dstrptime.c57 static char *_strptime(const char *, const char *, struct tm *, int);
61 strptime(const char *buf, const char *fmt, struct tm *tm) in strptime() argument
63 return(_strptime(buf, fmt, tm, 1)); in strptime()
67 _strptime(const char *buf, const char *fmt, struct tm *tm, int initialize) in _strptime() argument
126 if (!(bp = _strptime(bp, _ctloc(d_t_fmt), tm, 0))) in _strptime()
132 if (!(bp = _strptime(bp, "%m/%d/%y", tm, 0))) in _strptime()
138 if (!(bp = _strptime(bp, "%H:%M", tm, 0))) in _strptime()
144 if (!(bp = _strptime(bp, "%I:%M:%S %p", tm, 0))) in _strptime()
150 if (!(bp = _strptime(bp, "%H:%M:%S", tm, 0))) in _strptime()
156 if (!(bp = _strptime(bp, _ctloc(t_fmt), tm, 0))) in _strptime()
[all …]
/external/u-boot/post/drivers/
Drtc.c59 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 …]
/external/webrtc/webrtc/base/
Dtimeutils_unittest.cc131 struct tm tm; in TEST() local
135 CurrentTmTime(&tm, &microseconds); in TEST()
141 time_t t = ::mktime(&tm) + local_delta; in TEST()
196 std::tm tm; in TestTmToSeconds() local
197 tm.tm_year = year - 1900; // std::tm is year 1900 based. in TestTmToSeconds()
198 tm.tm_mon = rtc::CreateRandomId() % 12; in TestTmToSeconds()
199 tm.tm_mday = rtc::CreateRandomId() % mdays[tm.tm_mon] + 1; in TestTmToSeconds()
200 tm.tm_hour = rtc::CreateRandomId() % 24; in TestTmToSeconds()
201 tm.tm_min = rtc::CreateRandomId() % 60; in TestTmToSeconds()
202 tm.tm_sec = rtc::CreateRandomId() % 60; in TestTmToSeconds()
[all …]
/external/boringssl/src/crypto/asn1/
Da_utctm.c68 int asn1_utctime_to_tm(struct tm *tm, const ASN1_UTCTIME *d) in asn1_utctime_to_tm() argument
86 if (tm) in asn1_utctime_to_tm()
87 tm->tm_sec = 0; in asn1_utctime_to_tm()
104 if (tm) { in asn1_utctime_to_tm()
107 tm->tm_year = n < 50 ? n + 100 : n; in asn1_utctime_to_tm()
110 tm->tm_mon = n - 1; in asn1_utctime_to_tm()
113 tm->tm_mday = n; in asn1_utctime_to_tm()
116 tm->tm_hour = n; in asn1_utctime_to_tm()
119 tm->tm_min = n; in asn1_utctime_to_tm()
122 tm->tm_sec = n; in asn1_utctime_to_tm()
[all …]
Dtime_support.c69 struct tm *OPENSSL_gmtime(const time_t *time, struct tm *result) { in OPENSSL_gmtime()
103 static int julian_adj(const struct tm *tm, int off_day, long offset_sec, in julian_adj() argument
114 offset_hms += tm->tm_hour * 3600 + tm->tm_min * 60 + tm->tm_sec; in julian_adj()
126 time_year = tm->tm_year + 1900; in julian_adj()
127 time_month = tm->tm_mon + 1; in julian_adj()
128 time_day = tm->tm_mday; in julian_adj()
144 int OPENSSL_gmtime_adj(struct tm *tm, int off_day, long offset_sec) { in OPENSSL_gmtime_adj() argument
149 if (!julian_adj(tm, off_day, offset_sec, &time_jd, &time_sec)) { in OPENSSL_gmtime_adj()
163 tm->tm_year = time_year - 1900; in OPENSSL_gmtime_adj()
164 tm->tm_mon = time_month - 1; in OPENSSL_gmtime_adj()
[all …]
/external/perf_data_converter/src/quipper/testdata/
Dperf.data.intel_pt-4.14.serialized.out.pb_text552tm\004MP\372\306l\242\nYX\204\244\244\244\n\000YY\220\302\212\224\350\326\244\350\326\244\332\226\…
1425tm\263\177\000\000\000\000\000\000\000\000\000m@\023\000\272\377\377\000\000\014\000\000\000\000\0…
Dperf.data.intel_pt-4.14.parse.out.pb_text1888tm\004MP\372\306l\242\nYX\204\244\244\244\n\000YY\220\302\212\224\350\326\244\350\326\244\332\226\…
2761tm\263\177\000\000\000\000\000\000\000\000\000m@\023\000\272\377\377\000\000\014\000\000\000\000\0…
/external/webrtc/webrtc/voice_engine/
Dtransmit_mixer_unittest.cc31 TransmitMixer* tm = NULL; in TEST() local
32 ASSERT_EQ(0, TransmitMixer::Create(tm, 0)); in TEST()
33 ASSERT_TRUE(tm != NULL); in TEST()
35 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(NULL, in TEST()
37 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(&callback, in TEST()
39 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(&callback, in TEST()
41 EXPECT_EQ(-1, tm->RegisterExternalMediaProcessing(&callback, in TEST()
43 EXPECT_EQ(0, tm->RegisterExternalMediaProcessing(&callback, in TEST()
45 EXPECT_EQ(0, tm->RegisterExternalMediaProcessing(&callback, in TEST()
47 EXPECT_EQ(-1, tm->DeRegisterExternalMediaProcessing(kPlaybackPerChannel)); in TEST()
[all …]
/external/ipsec-tools/src/racoon/
Dbackupsa.c86 static char *str2tmx __P((char *, struct tm *));
97 struct tm *tm; local
107 tm = localtime(&t);
108 l = strftime(p, len, format, tm);
201 struct tm tm; in backupsa_from_file() local
228 memset(&tm, 0, sizeof(tm)); in backupsa_from_file()
229 p = str2tmx(buf, &tm); in backupsa_from_file()
238 created = mktime(&tm); in backupsa_from_file()
364 str2tmx(char *p, struct tm *tm) in str2tmx() argument
371 tm->tm_mon = i; in str2tmx()
[all …]
/external/strace/tests/
Dpselect6.c60 }, tm = tm_in; in main() local
98 assert(syscall(__NR_pselect6, fds[1] + 1, NULL, set[1], NULL, &tm.ts, NULL) == 3); in main()
104 fds[1], (long long) tm.ts.tv_sec, in main()
105 zero_extend_signed_to_ull(tm.ts.tv_nsec)); in main()
123 tm.ts.tv_sec = 0; in main()
124 tm.ts.tv_nsec = 123; in main()
125 assert(pselect(FD_SETSIZE + 1, set[0], set[1], NULL, &tm.ts, &mask) == 0); in main()
133 tm.ts.tv_sec = 0xdeadbeefU; in main()
134 tm.ts.tv_nsec = 0xfacefeedU; in main()
135 assert(pselect(0, NULL, NULL, NULL, &tm.ts, NULL) == -1); in main()
[all …]
/external/strace/tests-m32/
Dpselect6.c60 }, tm = tm_in; in main() local
98 assert(syscall(__NR_pselect6, fds[1] + 1, NULL, set[1], NULL, &tm.ts, NULL) == 3); in main()
104 fds[1], (long long) tm.ts.tv_sec, in main()
105 zero_extend_signed_to_ull(tm.ts.tv_nsec)); in main()
123 tm.ts.tv_sec = 0; in main()
124 tm.ts.tv_nsec = 123; in main()
125 assert(pselect(FD_SETSIZE + 1, set[0], set[1], NULL, &tm.ts, &mask) == 0); in main()
133 tm.ts.tv_sec = 0xdeadbeefU; in main()
134 tm.ts.tv_nsec = 0xfacefeedU; in main()
135 assert(pselect(0, NULL, NULL, NULL, &tm.ts, NULL) == -1); in main()
[all …]
/external/strace/tests-mx32/
Dpselect6.c60 }, tm = tm_in; in main() local
98 assert(syscall(__NR_pselect6, fds[1] + 1, NULL, set[1], NULL, &tm.ts, NULL) == 3); in main()
104 fds[1], (long long) tm.ts.tv_sec, in main()
105 zero_extend_signed_to_ull(tm.ts.tv_nsec)); in main()
123 tm.ts.tv_sec = 0; in main()
124 tm.ts.tv_nsec = 123; in main()
125 assert(pselect(FD_SETSIZE + 1, set[0], set[1], NULL, &tm.ts, &mask) == 0); in main()
133 tm.ts.tv_sec = 0xdeadbeefU; in main()
134 tm.ts.tv_nsec = 0xfacefeedU; in main()
135 assert(pselect(0, NULL, NULL, NULL, &tm.ts, NULL) == -1); in main()
[all …]
/external/compiler-rt/test/msan/
Dmktime.cc10 struct tm tm; in main() local
11 tm.tm_year = 2014; in main()
12 tm.tm_mon = 3; in main()
13 tm.tm_mday = 28; in main()
15 tm.tm_hour = 13; in main()
17 tm.tm_min = 4; in main()
18 tm.tm_sec = 42; in main()
19 tm.tm_isdst = -1; in main()
20 time_t t = mktime(&tm); in main()
24 assert(__msan_test_shadow(&tm, sizeof(tm)) == -1); in main()

12345678910>>...42