Home
last modified time | relevance | path

Searched refs:ct (Results 1 – 25 of 211) sorted by relevance

123456789

/freebsd-13.1/sys/rpc/
H A Dclnt_vc.c156 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); in clnt_vc_create()
324 if (ct->ct_closing || ct->ct_closed) { in clnt_vc_call()
355 if (ct->ct_closing || ct->ct_closed) { in clnt_vc_call()
375 bcopy(ct->ct_mcallc, mreq->m_data, ct->ct_mpos); in clnt_vc_call()
499 error = msleep(cr, &ct->ct_lock, ct->ct_waitflag, ct->ct_waitchan, in clnt_vc_call()
821 msleep(ct, &ct->ct_lock, 0, "rpcclose", 0); in clnt_vc_close()
850 msleep(ct, &ct->ct_lock, 0, "rpcclose", 0); in clnt_vc_close()
890 msleep(&ct->ct_sslrefno, &ct->ct_lock, 0, in clnt_vc_destroy()
910 ct->ct_sslusec, ct->ct_sslrefno, in clnt_vc_destroy()
1110 ct->ct_record = ct->ct_raw; in clnt_vc_soupcall()
[all …]
H A Dclnt_bck.c137 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); in clnt_bck_create()
219 if (ct->ct_closing || ct->ct_closed) { in clnt_bck_call()
224 ct->ct_threads++; in clnt_bck_call()
245 ct->ct_xid++; in clnt_bck_call()
246 xid = ct->ct_xid; in clnt_bck_call()
257 bcopy(ct->ct_mcallc, mreq->m_data, ct->ct_mpos); in clnt_bck_call()
378 error = msleep(cr, &ct->ct_lock, ct->ct_waitflag, ct->ct_waitchan, in clnt_bck_call()
479 wakeup(ct); in clnt_bck_call()
538 msleep(ct, &ct->ct_lock, 0, "rpcclose", 0); in clnt_bck_close()
547 wakeup(ct); in clnt_bck_close()
[all …]
/freebsd-13.1/sys/kern/
H A Dsubr_clock.c161 if (ct->mon < 1 || ct->mon > 12 || ct->day < 1 || in clock_ct_to_ts()
163 ct->hour > 23 || ct->min > 59 || ct->sec > 59 || year < 1970 || in clock_ct_to_ts()
295 KASSERT(ct->mon >= 1 && ct->mon <= 12, in clock_ts_to_ct()
297 KASSERT(ct->day >= 1 && ct->day <= 31, in clock_ts_to_ct()
299 KASSERT(ct->hour >= 0 && ct->hour <= 23, in clock_ts_to_ct()
301 KASSERT(ct->min >= 0 && ct->min <= 59, in clock_ts_to_ct()
304 KASSERT(ct->sec >= 0 && ct->sec <= 60, in clock_ts_to_ct()
362 ct->year, ct->mon, ct->day, in clock_print_ct()
363 ct->hour, ct->min, ct->sec, in clock_print_ct()
367 ct->year, ct->mon, ct->day, in clock_print_ct()
[all …]
/freebsd-13.1/sys/mips/cavium/
H A Docteon_ds1337.c74 if (!ct) in validate_ct_struct()
77 CT_CHECK(ct->sec < 0 || ct->sec > 60, "second"); /* + Leap sec */ in validate_ct_struct()
78 CT_CHECK(ct->min < 0 || ct->min > 59, "minute"); in validate_ct_struct()
79 CT_CHECK(ct->hour < 0 || ct->hour > 23, "hour"); in validate_ct_struct()
80 CT_CHECK(ct->day < 1 || ct->day > 31, "day"); in validate_ct_struct()
81 CT_CHECK(ct->dow < 0 || ct->dow > 6, "day of week"); in validate_ct_struct()
82 CT_CHECK(ct->mon < 1 || ct->mon > 12, "month"); in validate_ct_struct()
98 struct clocktime ct; in cvmx_rtc_ds1337_read() local
102 memset(&ct, 0, sizeof(ct)); in cvmx_rtc_ds1337_read()
121 ct.hour = (ct.hour + 12) % 24; in cvmx_rtc_ds1337_read()
[all …]
/freebsd-13.1/lib/libc/rpc/
H A Dclnt_vc.c185 ct = (struct ct_data *)mem_alloc(sizeof (*ct)); in clnt_vc_create()
258 ct->ct_fd = fd; in clnt_vc_create()
281 xdrmem_create(&(ct->ct_xdrs), ct->ct_u.ct_mcallc, MCALL_MSG_SIZE, in clnt_vc_create()
289 ct->ct_mpos = XDR_GETPOS(&(ct->ct_xdrs)); in clnt_vc_create()
307 if (ct) { in clnt_vc_create()
309 mem_free(ct->ct_addr.buf, ct->ct_addr.len); in clnt_vc_create()
361 if ((! XDR_PUTBYTES(xdrs, ct->ct_u.ct_mcallc, ct->ct_mpos)) || in clnt_vc_call()
372 *(uint32_t *) &ct->ct_u.ct_mcallc[ct->ct_mpos] = htonl(proc); in clnt_vc_call()
577 (void) memcpy(info, ct->ct_addr.buf, (size_t)ct->ct_addr.len); in clnt_vc_control()
656 if (ct->ct_closeit && ct->ct_fd != -1) { in clnt_vc_destroy()
[all …]
/freebsd-13.1/usr.sbin/pmcstat/
H A Dpmcpl_calltree.c289 pmcpl_ct_instr_grow(ct->pct_ninstr, &ct->pct_instr_c, &ct->pct_instr); in pmcpl_ct_instr_add()
290 in = &ct->pct_instr[ct->pct_ninstr]; in pmcpl_ct_instr_add()
307 if ((ct = malloc(sizeof(*ct))) == NULL) in pmcpl_ct_node_allocate()
326 return (ct); in pmcpl_ct_node_allocate()
346 free(ct); in pmcpl_ct_node_free()
692 if (ct->pct_image == image && ct->pct_func == pc) { in pmcpl_ct_node_hash_lookup()
696 ct->pct_ifl == ifl && ct->pct_ifn == ifn) in pmcpl_ct_node_hash_lookup()
721 return (ct); in pmcpl_ct_node_hash_lookup()
910 faddr = ct->pct_image->pi_vaddr + ct->pct_func; in pmcpl_ct_node_printself()
1036 faddr = ct->pct_image->pi_vaddr + ct->pct_func; in _pmcpl_ct_expand_inline()
[all …]
/freebsd-13.1/sys/contrib/openzfs/module/os/freebsd/spl/
H A Dcallb.c116 ct->ct_ncallb--; in callb_fini()
119 if (ct->ct_ncallb == 0) in callb_fini()
126 if (ct->ct_ncallb > 0) in callb_fini()
145 while (ct->ct_busy) in callb_add_common()
146 cv_wait(&ct->ct_busy_cv, &ct->ct_lock); in callb_add_common()
148 ct->ct_ncallb++; in callb_add_common()
244 ct->ct_freelist = me; in callb_delete()
354 ASSERT(!ct->ct_busy); in callb_lock_table()
355 ct->ct_busy = B_TRUE; in callb_lock_table()
366 ASSERT(ct->ct_busy); in callb_unlock_table()
[all …]
/freebsd-13.1/sys/arm/nvidia/
H A Das3722_rtc.c47 struct clocktime ct; in as3722_rtc_gettime() local
58 ct.nsec = 0; in as3722_rtc_gettime()
65 ct.dow = -1; in as3722_rtc_gettime()
67 return clock_ct_to_ts(&ct, ts); in as3722_rtc_gettime()
74 struct clocktime ct; in as3722_rtc_settime() local
79 clock_ts_to_ct(ts, &ct); in as3722_rtc_settime()
84 buf[0] = bin2bcd(ct.sec); in as3722_rtc_settime()
85 buf[1] = bin2bcd(ct.min); in as3722_rtc_settime()
86 buf[2] = bin2bcd(ct.hour); in as3722_rtc_settime()
87 buf[3] = bin2bcd(ct.day); in as3722_rtc_settime()
[all …]
/freebsd-13.1/crypto/heimdal/lib/gssapi/
H A Dgsstool.c79 rtbl_t ct; in supported_mechanisms() local
88 ct = rtbl_create(); in supported_mechanisms()
89 if (ct == NULL) in supported_mechanisms()
92 rtbl_set_separator(ct, " "); in supported_mechanisms()
129 rtbl_format(ct, stdout); in supported_mechanisms()
130 rtbl_destroy(ct); in supported_mechanisms()
140 rtbl_t ct; in print_mech_attr() local
143 ct = rtbl_create(); in print_mech_attr()
144 if (ct == NULL) in print_mech_attr()
181 rtbl_format(ct, stdout); in print_mech_attr()
[all …]
/freebsd-13.1/contrib/ntp/sntp/libopts/
H A Dcook.c95 z[ct] = pzIn[ct]; in ao_string_cook_escape_char()
99 z[ct] = NUL; in ao_string_cook_escape_char()
101 return ct + 1; in ao_string_cook_escape_char()
115 unsigned int ct = 0; in ao_string_cook_escape_char() local
117 z[ct++] = *--pzIn; in ao_string_cook_escape_char()
119 z[ct] = pzIn[ct]; in ao_string_cook_escape_char()
120 if (++ct >= 3) in ao_string_cook_escape_char()
124 z[ct] = NUL; in ao_string_cook_escape_char()
129 return ct; in ao_string_cook_escape_char()
298 if (ct == 0) in ao_string_cook()
[all …]
H A Dstreqvcmp.c103 strneqvcmp(char const * s1, char const * s2, int ct) in strneqvcmp() argument
105 for (; ct > 0; --ct) { in strneqvcmp()
201 streqvmap(char from, char to, int ct) in streqvmap() argument
203 if (ct == 0) { in streqvmap()
204 ct = sizeof(charmap) - 1; in streqvmap()
206 charmap[ct] = (unsigned char)ct; in streqvmap()
207 } while (--ct >= 0); in streqvmap()
220 } while (--ct > 0); in streqvmap()
/freebsd-13.1/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_error.cpp89 if (0 < ct && ct < cons_text_c_num) { in __kmp_pragma()
90 cons = cons_text_c[ct]; in __kmp_pragma()
237 __kmp_check_workshare(gtid, ct, ident); in __kmp_push_workshare()
238 KE_TRACE(100, (PUSH_MSG(ct, ident))); in __kmp_push_workshare()
240 p->stack_data[tos].type = ct; in __kmp_push_workshare()
262 if (ct == ct_ordered_in_parallel || ct == ct_ordered_in_pdo) {
296 } else if (ct == ct_critical) {
320 } else if (ct == ct_master || ct == ct_masked || ct == ct_reduce) {
351 KE_TRACE(100, (PUSH_MSG(ct, ident)));
353 p->stack_data[tos].type = ct;
[all …]
H A Dkmp_error.h23 void __kmp_error_construct(kmp_i18n_id_t id, enum cons_type ct,
25 void __kmp_error_construct2(kmp_i18n_id_t id, enum cons_type ct,
32 void __kmp_push_workshare(int gtid, enum cons_type ct, ident_t const *ident);
34 void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
37 void __kmp_push_sync(int gtid, enum cons_type ct, ident_t const *ident,
41 void __kmp_check_workshare(int gtid, enum cons_type ct, ident_t const *ident);
43 void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
46 void __kmp_check_sync(int gtid, enum cons_type ct, ident_t const *ident,
51 enum cons_type __kmp_pop_workshare(int gtid, enum cons_type ct,
53 void __kmp_pop_sync(int gtid, enum cons_type ct, ident_t const *ident);
[all …]
/freebsd-13.1/tools/regression/sockets/unix_cmsg/
H A Duc_check_time.c50 struct timeval ct, dt; in uc_check_timeval() local
52 if (gettimeofday(&ct, NULL) < 0) in uc_check_timeval()
54 timersub(&ct, bt, &dt); in uc_check_timeval()
64 struct timespec ct; in uc_check_timespec_real() local
66 if (clock_gettime(CLOCK_REALTIME, &ct) < 0) in uc_check_timespec_real()
68 timespecsub(&ct, bt, &ct); in uc_check_timespec_real()
69 if (!timespeccmp(&ct, &max_diff_ts, <)) in uc_check_timespec_real()
78 struct timespec ct; in uc_check_timespec_mono() local
80 if (clock_gettime(CLOCK_MONOTONIC, &ct) < 0) in uc_check_timespec_mono()
82 timespecsub(&ct, bt, &ct); in uc_check_timespec_mono()
[all …]
/freebsd-13.1/sys/powerpc/pseries/
H A Drtas_dev.c109 struct clocktime ct; in rtas_gettime() local
124 ct.year = tod[1]; in rtas_gettime()
125 ct.mon = tod[2]; in rtas_gettime()
126 ct.day = tod[3]; in rtas_gettime()
127 ct.hour = tod[4]; in rtas_gettime()
128 ct.min = tod[5]; in rtas_gettime()
129 ct.sec = tod[6]; in rtas_gettime()
130 ct.nsec = tod[7]; in rtas_gettime()
138 struct clocktime ct; in rtas_settime() local
147 error = rtas_call_method(token, 7, 1, ct.year, ct.mon, ct.day, ct.hour, in rtas_settime()
[all …]
/freebsd-13.1/sys/dev/efidev/
H A Defirtc.c134 struct clocktime ct; in efirtc_gettime() local
142 ct.sec = tm.tm_sec; in efirtc_gettime()
143 ct.min = tm.tm_min; in efirtc_gettime()
144 ct.hour = tm.tm_hour; in efirtc_gettime()
145 ct.day = tm.tm_mday; in efirtc_gettime()
146 ct.mon = tm.tm_mon; in efirtc_gettime()
157 struct clocktime ct; in efirtc_settime() local
173 tm.tm_sec = ct.sec; in efirtc_settime()
174 tm.tm_min = ct.min; in efirtc_settime()
176 tm.tm_mday = ct.day; in efirtc_settime()
[all …]
/freebsd-13.1/contrib/llvm-project/lldb/source/Plugins/ExpressionParser/Clang/
H A DClangUtil.cpp17 bool ClangUtil::IsClangType(const CompilerType &ct) { in IsClangType() argument
19 if (!ct) in IsClangType()
25 if (!ct.GetOpaqueQualType()) in IsClangType()
36 QualType ClangUtil::GetQualType(const CompilerType &ct) { in GetQualType() argument
38 if (!IsClangType(ct)) in GetQualType()
41 return QualType::getFromOpaquePtr(ct.GetOpaqueQualType()); in GetQualType()
45 if (!IsClangType(ct)) in GetCanonicalQualType()
48 return GetQualType(ct).getCanonicalType(); in GetCanonicalQualType()
52 if (!IsClangType(ct)) in RemoveFastQualifiers()
53 return ct; in RemoveFastQualifiers()
[all …]
/freebsd-13.1/sys/arm/mv/
H A Drtc.c133 struct clocktime ct; in mv_rtc_gettime() local
141 ct.nsec = 0; in mv_rtc_gettime()
142 ct.sec = FROMBCD(val & 0x7f); in mv_rtc_gettime()
143 ct.min = FROMBCD((val & 0x7f00) >> 8); in mv_rtc_gettime()
149 ct.day = FROMBCD(val & 0x7f); in mv_rtc_gettime()
153 return (clock_ct_to_ts(&ct, ts)); in mv_rtc_gettime()
159 struct clocktime ct; in mv_rtc_settime() local
169 clock_ts_to_ct(ts, &ct); in mv_rtc_settime()
171 val = TOBCD(ct.sec) | (TOBCD(ct.min) << 8) | in mv_rtc_settime()
172 (TOBCD(ct.hour) << 16) | (TOBCD( ct.dow + 1) << 24); in mv_rtc_settime()
[all …]
/freebsd-13.1/sys/amd64/vmm/io/
H A Dvrtc.c210 ct.sec)); in secs_to_rtc()
212 ct.min)); in secs_to_rtc()
299 if (error || ct.sec < 0 || ct.sec > 59) { in rtc_to_secs()
305 if (error || ct.min < 0 || ct.min > 59) { in rtc_to_secs()
320 if (ct.hour >= 1 && ct.hour <= 12) { in rtc_to_secs()
342 if (error || ct.hour < 0 || ct.hour > 23) { in rtc_to_secs()
353 ct.dow = -1; in rtc_to_secs()
356 if (error || ct.day < 1 || ct.day > 31) { in rtc_to_secs()
363 if (error || ct.mon < 1 || ct.mon > 12) { in rtc_to_secs()
385 ct.year, ct.mon, ct.day); in rtc_to_secs()
[all …]
/freebsd-13.1/sys/powerpc/mpc85xx/
H A Dds1553_core.c93 struct clocktime ct; in ds1553_gettime() local
104 ct.nsec = 0; in ds1553_gettime()
122 ct.year += sc->year_offset; in ds1553_gettime()
126 return (clock_ct_to_ts(&ct, ts)); in ds1553_gettime()
136 struct clocktime ct; in ds1553_settime() local
141 bzero(&ct, sizeof(struct clocktime)); in ds1553_settime()
147 clock_ts_to_ct(ts, &ct); in ds1553_settime()
149 ct.year -= sc->year_offset; in ds1553_settime()
165 (*sc->sc_write)(dev, DS1553_OFF_DATE, TOBCD(ct.day) & in ds1553_settime()
167 (*sc->sc_write)(dev, DS1553_OFF_MONTH, TOBCD(ct.mon) & in ds1553_settime()
[all …]
/freebsd-13.1/sys/mips/atheros/
H A Dpcf2123_rtc.c105 struct clocktime ct; in pcf2123_rtc_gettime() local
128 ct.nsec = 0; in pcf2123_rtc_gettime()
139 return (clock_ct_to_ts(&ct, ts)); in pcf2123_rtc_gettime()
145 struct clocktime ct; in pcf2123_rtc_settime() local
158 clock_ts_to_ct(ts, &ct); in pcf2123_rtc_settime()
175 txTimedate[1] = TOBCD(ct.sec); in pcf2123_rtc_settime()
176 txTimedate[2] = TOBCD(ct.min); in pcf2123_rtc_settime()
177 txTimedate[3] = TOBCD(ct.hour); in pcf2123_rtc_settime()
178 txTimedate[4] = TOBCD(ct.day); in pcf2123_rtc_settime()
179 txTimedate[5] = TOBCD(ct.dow); in pcf2123_rtc_settime()
[all …]
/freebsd-13.1/crypto/heimdal/kuser/
H A Dklist.c240 rtbl_t ct = NULL; in print_tickets() local
294 ct = rtbl_create(); in print_tickets()
300 rtbl_set_separator(ct, " "); in print_tickets()
321 rtbl_format(ct, stdout); in print_tickets()
322 rtbl_destroy(ct); in print_tickets()
392 struct ClearToken ct; in display_tokens() local
433 if ((ct.EndTimestamp - ct.BeginTimestamp) & 1) in display_tokens()
495 rtbl_t ct; in list_caches() local
508 ct = rtbl_create(); in list_caches()
561 rtbl_format(ct, stdout); in list_caches()
[all …]
/freebsd-13.1/sys/arm/ti/am335x/
H A Dam335x_rtc.c154 struct clocktime ct; in am335x_rtc_pmic_pwr_toggle() local
170 ct.dow = 0; in am335x_rtc_pmic_pwr_toggle()
171 ct.nsec = 0; in am335x_rtc_pmic_pwr_toggle()
175 ct.day = FROMBCD(RTC_READ4(rtc_sc, RTC_DAYS) & 0x3f); in am335x_rtc_pmic_pwr_toggle()
178 ct.year += POSIX_BASE_YEAR; in am335x_rtc_pmic_pwr_toggle()
179 clock_ct_to_ts(&ct, &ts); in am335x_rtc_pmic_pwr_toggle()
181 clock_ts_to_ct(&ts, &ct); in am335x_rtc_pmic_pwr_toggle()
182 RTC_WRITE4(rtc_sc, RTC_ALARM2_SECONDS, TOBCD(ct.sec)); in am335x_rtc_pmic_pwr_toggle()
184 RTC_WRITE4(rtc_sc, RTC_ALARM2_HOURS, TOBCD(ct.hour)); in am335x_rtc_pmic_pwr_toggle()
185 RTC_WRITE4(rtc_sc, RTC_ALARM2_DAYS, TOBCD(ct.day)); in am335x_rtc_pmic_pwr_toggle()
[all …]
/freebsd-13.1/sys/arm/allwinner/
H A Daw_rtc.c289 struct clocktime ct; in aw_rtc_gettime() local
298 ct.sec = GET_SEC_VALUE(rtime); in aw_rtc_gettime()
299 ct.min = GET_MIN_VALUE(rtime); in aw_rtc_gettime()
304 ct.dow = -1; in aw_rtc_gettime()
306 ct.nsec = 0; in aw_rtc_gettime()
315 struct clocktime ct; in aw_rtc_settime() local
323 clock_ts_to_ct(ts, &ct); in aw_rtc_settime()
325 if ((ct.year < YEAR_MIN) || (ct.year > YEAR_MAX)) { in aw_rtc_settime()
340 rdate = SET_DAY_VALUE(ct.day) | SET_MON_VALUE(ct.mon) | in aw_rtc_settime()
344 rtime = SET_SEC_VALUE(ct.sec) | SET_MIN_VALUE(ct.min) | in aw_rtc_settime()
[all …]
/freebsd-13.1/contrib/ntp/ntpd/
H A Dcheck_y2k.c406 clocktime_t ct; in main() local
412 ct.day = 1; in main()
413 ct.month = 1; in main()
414 ct.year = year; in main()
415 ct.hour = ct.minute = ct.second = ct.usecond = 0; in main()
416 ct.utcoffset = 0; in main()
417 ct.utctime = 0; in main()
418 ct.flags = 0; in main()
422 if ( ct.year != year ) in main()
446 ct.utctime = 0; in main()
[all …]

123456789