Home
last modified time | relevance | path

Searched refs:tp (Results 76 – 100 of 558) sorted by relevance

12345678910>>...23

/illumos-gate/usr/src/uts/sun4u/ngdr/io/
H A Ddr_quiesce.c532 kthread_id_t tp; in dr_stop_user_threads() local
551 for (tp = curthread->t_next; tp != curthread; tp = tp->t_next) { in dr_stop_user_threads()
573 aston(tp); in dr_stop_user_threads()
575 if (ISWAKEABLE(tp) || ISWAITING(tp)) { in dr_stop_user_threads()
582 if (tp->t_state == TS_ONPROC && tp->t_cpu != CPU) in dr_stop_user_threads()
599 tp != curthread; tp = tp->t_next) { in dr_stop_user_threads()
634 (void *)tp, tp->t_state, in dr_stop_user_threads()
635 tp->t_proc_flag, tp->t_schedflag); in dr_stop_user_threads()
661 kthread_id_t tp; in dr_start_user_threads() local
666 for (tp = curthread->t_next; tp != curthread; tp = tp->t_next) { in dr_start_user_threads()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_subr.c68 fmd_thread_t *tp; in fmd_vpanic() local
89 (void) tp->thr_trfunc(tp->thr_trdata, FMD_DBG_ERR, format, ap); in fmd_vpanic()
128 fmd_thread_t *tp; in fmd_verror() local
134 (void) tp->thr_trfunc(tp->thr_trdata, FMD_DBG_ERR, format, ap); in fmd_verror()
135 tp->thr_errdepth++; in fmd_verror()
160 tp != NULL && tp->thr_errdepth == 1 && in fmd_verror()
174 if (tp != NULL) in fmd_verror()
202 fmd_thread_t *tp; in fmd_vdprintf() local
211 (void) tp->thr_trfunc(tp->thr_trdata, mask, format, ap); in fmd_vdprintf()
277 if (tp == NULL) in fmd_trace()
[all …]
/illumos-gate/usr/src/uts/sun4/os/
H A Dmp_startup.c104 kthread_id_t tp; in common_startup_init() local
122 tp->t_preempt = 1; in common_startup_init()
123 tp->t_bound_cpu = cp; in common_startup_init()
125 tp->t_cpu = cp; in common_startup_init()
134 sp = tp->t_stk; in common_startup_init()
140 cp->cpu_thread = tp; in common_startup_init()
291 kthread_id_t tp; in setup_cpu_common() local
388 tp->t_preempt = 1; in setup_cpu_common()
391 tp->t_cpu = cp; in setup_cpu_common()
555 kthread_id_t tp; in restart_other_cpu() local
[all …]
/illumos-gate/usr/src/cmd/cron/
H A Datt1.y43 extern struct tm *tp, at, rt;
110 at.tm_min = tp->tm_min;
111 at.tm_sec = tp->tm_sec;
152 at.tm_mday = tp->tm_mday;
153 at.tm_mon = tp->tm_mon;
154 at.tm_year = tp->tm_year;
156 || ((at.tm_hour==tp->tm_hour)&&(at.tm_min<tp->tm_min)))
162 at.tm_year = tp->tm_year;
172 at.tm_mon = tp->tm_mon;
173 at.tm_mday = tp->tm_mday;
[all …]
/illumos-gate/usr/src/uts/common/fs/tmpfs/
H A Dtmp_vfsops.c234 struct tmpnode *tp; in tmp_mount() local
390 tp->tn_back = tp; in tmp_mount()
391 tp->tn_forw = NULL; in tmp_mount()
392 tp->tn_nlink = 0; in tmp_mount()
393 tm->tm_rootnode = tp; in tmp_mount()
395 tdirinit(tp, tp); in tmp_mount()
397 rw_exit(&tp->tn_rwlock); in tmp_mount()
559 ASSERT(tp); in tmp_root()
561 vp = TNTOV(tp); in tmp_root()
682 for (tp = tm->tm_rootnode; tp; tp = tp->tn_forw) { in tmp_vget()
[all …]
/illumos-gate/usr/src/lib/libresolv2/common/inet/
H A Dinet_cidr_pton.c162 endp = tp + NS_IN6ADDRSZ; in inet_cidr_pton_ipv6()
190 colonp = tp; in inet_cidr_pton_ipv6()
195 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
198 *tp++ = (u_char) val & 0xff; in inet_cidr_pton_ipv6()
205 tp += NS_INADDRSZ; in inet_cidr_pton_ipv6()
218 if (tp + NS_INT16SZ > endp) in inet_cidr_pton_ipv6()
220 *tp++ = (u_char) (val >> 8) & 0xff; in inet_cidr_pton_ipv6()
221 *tp++ = (u_char) val & 0xff; in inet_cidr_pton_ipv6()
228 const int n = tp - colonp; in inet_cidr_pton_ipv6()
231 if (tp == endp) in inet_cidr_pton_ipv6()
[all …]
H A Dinet_cidr_ntop.c162 char *tp; in inet_cidr_ntop_ipv6() local
208 tp = tmp; in inet_cidr_ntop_ipv6()
214 *tp++ = ':'; in inet_cidr_ntop_ipv6()
219 *tp++ = ':'; in inet_cidr_ntop_ipv6()
232 n = decoct(src+12, n, tp, sizeof tmp - (tp - tmp)); in inet_cidr_ntop_ipv6()
237 tp += strlen(tp); in inet_cidr_ntop_ipv6()
240 tp += SPRINTF((tp, "%x", words[i])); in inet_cidr_ntop_ipv6()
246 *tp++ = ':'; in inet_cidr_ntop_ipv6()
247 *tp = '\0'; in inet_cidr_ntop_ipv6()
250 tp += SPRINTF((tp, "/%u", bits)); in inet_cidr_ntop_ipv6()
[all …]
/illumos-gate/usr/src/lib/libc/port/inet/
H A Dinet_ntop.c106 char tmp[sizeof ("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255")], *tp; in inet_ntop6() local
145 tp = tmp; in inet_ntop6()
151 *tp++ = ':'; in inet_ntop6()
156 *tp++ = ':'; in inet_ntop6()
160 if (!inet_ntop4(src+12, tp, sizeof (tmp) - (tp - tmp))) in inet_ntop6()
162 tp += strlen(tp); in inet_ntop6()
165 tp += sprintf(tp, "%x", words[i]); in inet_ntop6()
169 *tp++ = ':'; in inet_ntop6()
170 *tp++ = '\0'; in inet_ntop6()
175 if ((int)(tp - tmp) > size) { in inet_ntop6()
/illumos-gate/usr/src/cmd/awk/
H A Dtran.c214 Cell **tp; in makesymtab() local
222 ap->tab = tp; in makesymtab()
230 Array *tp; in freesymtab() local
246 tp->nelem--; in freesymtab()
254 free(tp->tab); in freesymtab()
255 free(tp); in freesymtab()
261 Array *tp; in freeelem() local
303 tp->nelem++; in setsymtab()
304 if (tp->nelem > FULLTAB * tp->size) in setsymtab()
305 rehash(tp); in setsymtab()
[all …]
/illumos-gate/usr/src/cmd/backup/lib/
H A Dgetdate.y620 TABLE *tp; local
648 for (tp = MonthDayTable; tp->name; tp++) {
652 return tp->type;
661 for (tp = TimezoneTable; tp->name; tp++)
667 for (tp = UnitsTable; tp->name; tp++)
677 for (tp = UnitsTable; tp->name; tp++)
680 return tp->type;
684 for (tp = OtherTable; tp->name; tp++)
692 for (tp = MilitaryTable; tp->name; tp++)
695 return tp->type;
[all …]
/illumos-gate/usr/src/lib/scsi/libses/common/
H A Dses_snap.c179 ses_target_t *tp; in read_status_page() local
198 tp = sp->ss_target; in read_status_page()
278 ses_target_t *tp; in send_control_page() local
283 tp = sp->ss_target; in send_control_page()
422 ses_snap_hold(ses_target_t *tp) in ses_snap_hold() argument
427 sp = tp->st_snapshots; in ses_snap_hold()
445 ses_snap_new(ses_target_t *tp) in ses_snap_new() argument
459 sp->ss_target = tp; in ses_snap_new()
598 if (tp->st_snapshots != NULL) in ses_snap_new()
601 if (tp->st_snapshots != NULL) in ses_snap_new()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dcopyops.c39 install_copyops(kthread_id_t tp, copyops_t *cp) in install_copyops() argument
41 ASSERT(tp->t_copyops == NULL); in install_copyops()
42 tp->t_copyops = cp; in install_copyops()
46 remove_copyops(kthread_id_t tp) in remove_copyops() argument
48 ASSERT(tp->t_copyops != NULL); in remove_copyops()
49 tp->t_copyops = NULL; in remove_copyops()
53 copyops_installed(kthread_id_t tp) in copyops_installed() argument
55 return (tp->t_copyops != NULL); in copyops_installed()
/illumos-gate/usr/src/lib/libnisdb/
H A Dldap_map.c231 t = tp[n]; in mapFromLDAP()
265 free(tp); in mapFromLDAP()
350 sfree(tp); in mapFromLDAP()
846 sfree(tp); in mapToLDAP()
1253 tp = am(myself, numap * sizeof (tp[0])); in selectTableMapping()
1295 tp = 0; in selectTableMapping()
1329 free(tp); in selectTableMapping()
1330 tp = 0; in selectTableMapping()
1521 sfree(tp); in objToLDAP()
1707 sfree(tp); in objFromLDAP()
[all …]
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dtp.h85 void t1_tp_destroy(struct petp *tp);
87 void t1_tp_intr_disable(struct petp *tp);
88 void t1_tp_intr_enable(struct petp *tp);
89 void t1_tp_intr_clear(struct petp *tp);
90 int t1_tp_intr_handler(struct petp *tp);
93 void t1_tp_set_udp_checksum_offload(struct petp *tp, int enable);
94 void t1_tp_set_tcp_checksum_offload(struct petp *tp, int enable);
95 void t1_tp_set_ip_checksum_offload(struct petp *tp, int enable);
96 int t1_tp_set_coalescing_size(struct petp *tp, unsigned int size);
97 int t1_tp_reset(struct petp *tp, struct tp_params *p, unsigned int tp_clk);
/illumos-gate/usr/src/uts/sun4u/io/i2c/nexus/
H A Dpcf8584.c1254 pcf8584_put_s0(i2c, tp->i2c_wbuf[tp->i2c_wlen - in pcf8584_process()
1255 tp->i2c_w_resid--]); in pcf8584_process()
1258 tp->i2c_wbuf[tp->i2c_wlen - (tp->i2c_w_resid + 1)])); in pcf8584_process()
1325 tp->i2c_rbuf[tp->i2c_rlen - tp->i2c_r_resid] = in pcf8584_process()
1331 tp->i2c_r_resid, tp->i2c_rbuf[tp->i2c_rlen - in pcf8584_process()
1332 tp->i2c_r_resid])); in pcf8584_process()
1355 pcf8584_put_s0(i2c, tp->i2c_wbuf[tp->i2c_wlen - in pcf8584_process()
1359 tp->i2c_wbuf[tp->i2c_wlen - in pcf8584_process()
1400 tp->i2c_r_resid = tp->i2c_rlen; in pcf8584_transfer()
1401 tp->i2c_w_resid = tp->i2c_wlen; in pcf8584_transfer()
[all …]
/illumos-gate/usr/src/cmd/saf/
H A Dpmadm.c450 tp = &tl;
456 while (tp) {
488 tp = tp->t_next;
503 tp = tp->t_next;
530 tp = tp->t_next;
813 tp = &tl;
837 tp = tp->t_next;
852 tp = tp->t_next;
974 tp = tp->t_next; in list_svcs()
992 tp->t_tag, tp->t_type, pp->p_tag, in list_svcs()
[all …]
H A Dutil.c251 register char *tp; /* temp pointer */ local
257 tp = strchr(p, COMMENT);
259 if (tp) {
260 (void) strcpy(Comment, tp + 1); /* skip the '#' */
261 *tp = '\0';
262 tp = strchr(Comment, '\n');
263 if (tp)
264 *tp ='\0';
271 for (tp = p + strlen(p) - 1; tp >= p && isspace(*tp); --tp)
272 *tp = '\0';
/illumos-gate/usr/src/lib/scsi/plugins/smp/sas2/common/
H A Dsas2_functions.c37 sas2_rq_len(size_t user, smp_target_t *tp) in sas2_rq_len() argument
49 sas2_rq_dataoff(smp_action_t *ap, smp_target_t *tp) in sas2_rq_dataoff() argument
62 sas2_rq_setframe(smp_action_t *ap, smp_target_t *tp) in sas2_rq_setframe() argument
73 cap = smp_target_getcap(tp); in sas2_rq_setframe()
99 change_count = smp_target_get_change_count(tp); in sas2_rq_setframe()
107 sas2_rs_datalen(smp_action_t *ap, smp_target_t *tp) in sas2_rs_datalen() argument
129 sas2_rs_dataoff(smp_action_t *ap, smp_target_t *tp) in sas2_rs_dataoff() argument
142 sas2_rs_getparams(smp_action_t *ap, smp_target_t *tp) in sas2_rs_getparams() argument
162 smp_target_set_change_count(tp, change_count); in sas2_rs_getparams()
263 sas2_discover_rq_len(size_t user, smp_target_t *tp) in sas2_discover_rq_len() argument
[all …]
/illumos-gate/usr/src/ucblib/libucb/port/sys/
H A Dgettimeofday.c54 gettimeofday(struct timeval *tp, void *tzp) in gettimeofday() argument
56 if (tp == NULL) in gettimeofday()
59 return (_gettimeofday(tp)); in gettimeofday()
69 settimeofday(struct timeval *tp, void *tzp) in settimeofday() argument
73 if (tp == NULL) in settimeofday()
76 t = (time_t) tp->tv_sec; in settimeofday()
77 if (tp->tv_usec >= 500000) in settimeofday()
/illumos-gate/usr/src/uts/common/dtrace/
H A Dfasttrap.c445 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_fork()
538 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_tracepoint_enable()
545 if (tp->ftt_pid != pid || tp->ftt_pc != pc || in fasttrap_tracepoint_enable()
563 ASSERT(tp->ftt_ids != NULL || tp->ftt_retids != NULL); in fasttrap_tracepoint_enable()
571 tp->ftt_ids = id; in fasttrap_tracepoint_enable()
697 for (tp = bucket->ftb_data; tp != NULL; tp = tp->ftt_next) { in fasttrap_tracepoint_disable()
698 if (tp->ftt_pid == pid && tp->ftt_pc == pc && in fasttrap_tracepoint_disable()
706 ASSERT(tp != NULL); in fasttrap_tracepoint_disable()
742 if (tp->ftt_ids != NULL || tp->ftt_retids != NULL) { in fasttrap_tracepoint_disable()
771 *tmp_tp = tp; in fasttrap_tracepoint_disable()
[all …]
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dsettimeofday.c43 settimeofday(struct timeval *tp, void *tzp __unused) in settimeofday() argument
47 if (tp == NULL) in settimeofday()
50 if (tp->tv_sec < 0 || tp->tv_usec < 0 || tp->tv_usec >= MICROSEC) { in settimeofday()
55 t = (time_t)tp->tv_sec; in settimeofday()
56 if (tp->tv_usec >= (MICROSEC/2)) in settimeofday()
/illumos-gate/usr/src/ucbcmd/touch/
H A Dtouch.c116 struct tm *tp; in main() local
164 if ((tp = gtime()) == NULL) { in main()
169 days_in_month = dmsize[tp->tm_mon]; in main()
170 if (tp->tm_mon == 1 && isleap(tp->tm_year + 1900)) in main()
172 if (tp->tm_mon < 0 || tp->tm_mon > 11 || in main()
173 tp->tm_mday < 1 || tp->tm_mday > days_in_month || in main()
174 tp->tm_hour < 0 || tp->tm_hour > 23 || in main()
175 tp->tm_min < 0 || tp->tm_min > 59 || in main()
176 tp->tm_sec < 0 || tp->tm_sec > 59) { in main()
181 timbuf = timelocal(tp); in main()
/illumos-gate/usr/src/cmd/krb5/kadmin/cli/
H A Dgetdate.y771 for (tp = MonthDayTable; tp->name; tp++) {
775 return tp->type;
780 return tp->type;
784 for (tp = TimezoneTable; tp->name; tp++)
787 return tp->type;
793 for (tp = UnitsTable; tp->name; tp++)
803 for (tp = UnitsTable; tp->name; tp++)
806 return tp->type;
811 for (tp = OtherTable; tp->name; tp++)
825 for (tp = TimezoneTable; tp->name; tp++)
[all …]
/illumos-gate/usr/src/cmd/eqn/
H A Dlex.c93 tbl *tp, *lookup(); in yylex() local
137 pbstr(tp->defn); in yylex()
144 } else if (tp->defn == (char *)DEFINE || in yylex()
145 tp->defn == (char *)NDEFINE || tp->defn == (char *)TDEFINE) in yylex()
146 define((int)tp->defn); in yylex()
147 else if (tp->defn == (char *)DELIM) in yylex()
149 else if (tp->defn == (char *)GSIZE) in yylex()
151 else if (tp->defn == (char *)GFONT) in yylex()
153 else if (tp->defn == (char *)INCLUDE) in yylex()
155 else if (tp->defn == (char *)SPACE) in yylex()
[all …]
/illumos-gate/usr/src/cmd/acct/lib/
H A Ddevtolin.c68 struct tlist *tp; in devtolin() local
73 for (tp = tl; tp < &tl[tsize1]; tp++) in devtolin()
74 if (device == tp->tdev) in devtolin()
75 return (tp->tname); in devtolin()
106 tp->tdev = device; in devtolin()
107 CPYN(tp->tname, file_name+5); in devtolin()
118 tp->tdev = device; in devtolin()
119 CPYN(tp->tname, "?"); in devtolin()

12345678910>>...23