Home
last modified time | relevance | path

Searched refs:scp (Results 1 – 25 of 60) sorted by relevance

123

/titanic_41/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/
H A Dswde_case.c118 swde_case_associate(fmd_hdl_t *hdl, fmd_case_t *cp, swde_case_t *scp, in swde_case_associate() argument
121 scp->swc_fmdcase = cp; in swde_case_associate()
122 scp->swc_subdata = subdata; in swde_case_associate()
123 fmd_case_setspecific(hdl, cp, scp); in swde_case_associate()
129 swde_case_t *scp; in swde_case_unserialize() local
134 scp = fmd_hdl_zalloc(hdl, sizeof (*scp), FMD_SLEEP); in swde_case_unserialize()
135 datap = &scp->swc_data; in swde_case_unserialize()
140 fmd_hdl_free(hdl, scp, sizeof (*scp)); in swde_case_unserialize()
155 swde_case_associate(hdl, cp, scp, subdata); in swde_case_unserialize()
160 swde_case_t *scp, uint32_t subdata_vers, void *subdata, size_t subdata_sz) in swde_subdata() argument
[all …]
/titanic_41/usr/src/cmd/syseventd/daemons/syseventd/
H A Dsysevent_client.c73 struct sysevent_client *scp; in initialize_client_tbl() local
77 if ((scp = (struct sysevent_client *)malloc( in initialize_client_tbl()
81 if (mutex_init(&scp->client_lock, USYNC_THREAD, NULL) != 0) in initialize_client_tbl()
84 scp->client_data = NULL; in initialize_client_tbl()
85 scp->client_num = i; in initialize_client_tbl()
86 scp->eventq = NULL; in initialize_client_tbl()
89 scp->client_flags = SE_CLIENT_UNLOADED; in initialize_client_tbl()
91 sysevent_client_tbl[i] = scp; in initialize_client_tbl()
109 struct sysevent_client *scp; in insert_client() local
113 scp = sysevent_client_tbl[i]; in insert_client()
[all …]
H A Dsyseventd.c631 drain_eventq(struct sysevent_client *scp, int status) in drain_eventq() argument
637 scp->client_num); in drain_eventq()
639 eventq = scp->eventq; in drain_eventq()
648 sysevent_get_seq(d_pkg->ev), scp->client_num); in drain_eventq()
659 scp->eventq = eventq; in drain_eventq()
676 struct sysevent_client *scp; in client_deliver_event_thr() local
679 scp = (struct sysevent_client *)arg; in client_deliver_event_thr()
680 mod = (module_t *)scp->client_data; in client_deliver_event_thr()
682 (void) mutex_lock(&scp->client_lock); in client_deliver_event_thr()
684 while (scp->eventq == NULL) { in client_deliver_event_thr()
[all …]
H A Dsyseventd.h53 struct sysevent_client *scp; /* Client data */ member
125 #define SE_CLIENT_IS_UNLOADED(scp) \ argument
126 ((scp)->client_flags == SE_CLIENT_UNLOADED)
127 #define SE_CLIENT_IS_LOADED(scp) \ argument
128 ((scp)->client_flags & SE_CLIENT_LOADED)
129 #define SE_CLIENT_IS_SUSPENDED(scp) \ argument
130 ((scp)->client_flags & SE_CLIENT_SUSPENDED)
131 #define SE_CLIENT_IS_THR_RUNNING(scp) \ argument
132 ((scp)->client_flags & SE_CLIENT_THR_RUNNING)
/titanic_41/usr/src/lib/libsysevent/
H A Dlibevchannel.c76 will_deadlock(evchan_t *scp) in will_deadlock() argument
79 evchan_impl_hdl_t *hdl = EVCHAN_IMPL_HNDL(scp); in will_deadlock()
119 evchan_t *scp; in sysevent_evc_bind() local
144 scp = calloc(1, sizeof (evchan_impl_hdl_t)); in sysevent_evc_bind()
145 if (scp == NULL) { in sysevent_evc_bind()
154 EV_FD(scp) = open(DEVSYSEVENT, O_RDWR); in sysevent_evc_bind()
155 if (EV_FD(scp) == -1) { in sysevent_evc_bind()
158 free(scp); in sysevent_evc_bind()
162 EV_FD(scp) = open(DEVICESYSEVENT, O_RDWR); in sysevent_evc_bind()
163 if (EV_FD(scp) == -1) { in sysevent_evc_bind()
[all …]
H A Dllib-lsysevent118 int sysevent_evc_unbind(evchan_t *scp);
120 int sysevent_evc_publish(evchan_t *scp, const char *event_class,
124 int sysevent_evc_subscribe(evchan_t *scp, const char *sid,
128 int sysevent_evc_xsubscribe(evchan_t *scp, const char *sid,
134 int sysevent_evc_unsubscribe(evchan_t *scp, const char *sid);
136 int sysevent_evc_control(evchan_t *scp, int cmd, ...);
/titanic_41/usr/src/lib/lvm/libmeta/common/
H A Dmeta_stat.c50 struct statcache *scp; in meta_stat() local
60 for (scp = statcache_head[hash]; scp != NULL; scp = scp->sc_next) in meta_stat()
61 if (strcmp(filename, scp->sc_filename) == 0) in meta_stat()
63 if (scp) { in meta_stat()
64 (void) memcpy((caddr_t)sbp, (caddr_t)&scp->sc_stat, in meta_stat()
74 scp = (struct statcache *)malloc(sizeof (*scp)); in meta_stat()
75 if (scp != NULL) { in meta_stat()
76 (void) memcpy((caddr_t)&scp->sc_stat, (caddr_t)sbp, in meta_stat()
78 scp->sc_filename = strdup(filename); in meta_stat()
79 if (scp->sc_filename == NULL) { in meta_stat()
[all …]
/titanic_41/usr/src/lib/libc/port/threads/
H A Dcancel.c314 volatile sc_shared_t *scp; in set_cancel_pending_flag() local
319 if ((scp = self->ul_schedctl) != NULL || in set_cancel_pending_flag()
320 (scp = setup_schedctl()) != NULL) { in set_cancel_pending_flag()
322 scp->sc_flgs &= ~(SC_CANCEL_FLG | SC_EINTR_FLG); in set_cancel_pending_flag()
324 scp->sc_flgs |= SC_CANCEL_FLG; in set_cancel_pending_flag()
326 scp->sc_flgs &= ~SC_CANCEL_FLG; in set_cancel_pending_flag()
340 volatile sc_shared_t *scp; in set_cancel_eintr_flag() local
345 if ((scp = self->ul_schedctl) != NULL || in set_cancel_eintr_flag()
346 (scp = setup_schedctl()) != NULL) in set_cancel_eintr_flag()
347 scp->sc_flgs |= SC_EINTR_FLG; in set_cancel_eintr_flag()
[all …]
/titanic_41/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/
H A Dwalk_rtree.c126 register char *ccp, *scp; in krb5_walk_realm_tree() local
206 com_sdot = scp = server->data + slen - 1; in krb5_walk_realm_tree()
207 clen && slen && *ccp == *scp ; in krb5_walk_realm_tree()
208 ccp--, scp--, clen--, slen--) { in krb5_walk_realm_tree()
211 com_sdot = scp; in krb5_walk_realm_tree()
230 if (*scp == realm_branch_char) { in krb5_walk_realm_tree()
233 com_sdot = scp; in krb5_walk_realm_tree()
261 for (scp = server->data; scp < com_sdot; scp++) { in krb5_walk_realm_tree()
262 if (*scp == realm_branch_char) { in krb5_walk_realm_tree()
265 prevscp = scp; in krb5_walk_realm_tree()
[all …]
/titanic_41/usr/src/cmd/ul/
H A Dul.c326 wchar_t *cp, *scp; in overstrike() local
330 scp = (wchar_t *)malloc(sizeof (wchar_t) * szbf); in overstrike()
331 if (!scp) { in overstrike()
336 cp = scp; in overstrike()
355 pos = cp - scp; in overstrike()
357 scp = (wchar_t *)realloc(scp, in overstrike()
359 if (!scp) { in overstrike()
364 cp = scp + pos; in overstrike()
396 for (cp = scp; *cp; cp++) in overstrike()
400 for (cp = scp; *cp; cp++) in overstrike()
[all …]
/titanic_41/usr/src/lib/libcurses/screen/
H A Dwrefresh.c372 chtype *wcp, *scp, *wp, *sp, wc, sc; in _updateln() local
387 scp = curscr->_y[wy]; in _updateln()
403 sp = scp + wx; in _updateln()
411 for (sp = scp+wx, wp = wcp+wx; wp > wcp; --wp, --sp, --wx) in _updateln()
417 sp = scp + lastx - 1; in _updateln()
441 for (sp = scp + blnkx + 1; blnkx < scrco - 1; in _updateln()
524 scp += wx; in _updateln()
533 for (; wx < lastx; ++wx, ++wcp, ++scp) in _updateln()
534 if (*wcp != *scp) in _updateln()
538 for (; wx > wx_sav; --wx, --wcp, --scp) { in _updateln()
[all …]
H A Dmvcur.c320 chtype *scp; in _mvright() local
327 scp = curscr->_y[Newy]; in _mvright()
339 if (iscont == 0 && !ISCBIT(scp[x])) in _mvright()
342 _ATTR(scp[x]) == curscr->_attrs) || in _mvright()
344 if (!ISMBIT(scp[x])) in _mvright()
347 curscr->_maxx && ISCBIT(scp[nx]))) in _mvright()
371 if (iscont == 0 && !ISCBIT(scp[x])) in _mvright()
374 _ATTR(scp[x]) == curscr->_attrs) || in _mvright()
376 if (!ISMBIT(scp[x])) in _mvright()
377 (void) _outwch(_CHAR(scp[x])); in _mvright()
[all …]
H A Dwnoutref.c54 chtype **wcp, **scp, *wc, *sc; in wnoutrefresh() local
116 scp = _virtscr->_y + yorg; in wnoutrefresh()
126 ++sech, ++wcp, ++scp) { in wnoutrefresh()
134 sc = *scp; in wnoutrefresh()
190 sc = *scp + lo + xorg; in wnoutrefresh()
/titanic_41/usr/src/cmd/getconf/
H A Dgetconf.c791 getconf(struct sctab *scp, int argc, char *name, char *file) in getconf() argument
797 switch (scp->type) { in getconf()
801 if (scp->flag & UNDEFINED || in getconf()
802 (!(scp->flag&UNSIGNED_VALUE) && scp->value == -1)) { in getconf()
806 if (scp->flag & UNSIGNED_VALUE) in getconf()
807 (void) printf("%lu\n", scp->value); in getconf()
809 (void) printf("%ld\n", scp->value); in getconf()
816 if (scp->flag & UNDEFINED || in getconf()
817 (value = sysconf((int)scp->value)) == -1) { in getconf()
835 len = confstr((int)scp->value, NULL, (size_t)0); in getconf()
[all …]
/titanic_41/usr/src/cmd/fm/fmd/common/
H A Dfmd_self.c51 self_case_t *scp = fmd_hdl_alloc(hdl, sizeof (self_case_t), FMD_SLEEP); in self_case_create() local
53 scp->sc_kind = kind; in self_case_create()
54 scp->sc_name = fmd_hdl_strdup(hdl, name, FMD_SLEEP); in self_case_create()
56 return (scp); in self_case_create()
60 self_case_destroy(fmd_hdl_t *hdl, self_case_t *scp) in self_case_destroy() argument
62 fmd_hdl_strfree(hdl, scp->sc_name); in self_case_destroy()
63 fmd_hdl_free(hdl, scp, sizeof (self_case_t)); in self_case_destroy()
72 self_case_t *scp = fmd_case_getspecific(hdl, cp); in self_case_lookup() local
73 if (scp->sc_kind == kind && strcmp(scp->sc_name, name) == 0) in self_case_lookup()
/titanic_41/usr/src/ucblib/libucb/sparc/sys/
H A Dsignal.c339 __sigcleanup(struct sigcontext *scp) in __sigcleanup() argument
349 if (scp->sc_wbcnt == sizeof (*ucp)) { in __sigcleanup()
350 sig = (int)(uintptr_t)scp->sc_spbuf[0]; in __sigcleanup()
351 ucp = (ucontext_t *)scp->sc_spbuf[1]; in __sigcleanup()
362 if (scp->sc_onstack) { in __sigcleanup()
366 mask2set(scp->sc_mask, &ucp->uc_sigmask); in __sigcleanup()
368 ucp->uc_mcontext.gregs[REG_SP] = scp->sc_sp; in __sigcleanup()
369 ucp->uc_mcontext.gregs[REG_PC] = scp->sc_pc; in __sigcleanup()
370 ucp->uc_mcontext.gregs[REG_nPC] = scp->sc_npc; in __sigcleanup()
372 ucp->uc_mcontext.gregs[REG_CCR] = scp->sc_psr; in __sigcleanup()
[all …]
/titanic_41/usr/src/lib/libbc/libc/gen/common/
H A Dsigfpe.c98 _sigfpe_master(sig, code, scp, addr) in _sigfpe_master() argument
101 struct sigcontext *scp;
140 (sigfpe_handlers[i]) (sig, code, scp, addr);
153 (ieee_handlers[(int) exception]) (sig, code, scp, addr);
/titanic_41/usr/src/lib/libc/port/rt/
H A Dsched.c564 volatile sc_shared_t *scp; in update_sched() local
575 if ((scp = self->ul_schedctl) == NULL && in update_sched()
576 (scp = setup_schedctl()) == NULL) { /* can't happen? */ in update_sched()
588 self->ul_cid == scp->sc_cid && in update_sched()
589 (self->ul_pri == scp->sc_cpri || in update_sched()
590 (self->ul_epri > 0 && self->ul_epri == scp->sc_cpri))) { in update_sched()
597 self->ul_cid = scp->sc_cid; in update_sched()
598 self->ul_pri = scp->sc_cpri; in update_sched()
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/snoop/
H A Dsnoop_sctp.c806 const sctp_sack_chunk_t *scp = data; in parse_sack_chunk() local
812 if (datalen < sizeof (*scp)) { in parse_sack_chunk()
822 "Cumulative TSN ACK = 0x%.8x", ntohl(scp->ssc_cumtsn)); in parse_sack_chunk()
825 ntohl(scp->ssc_a_rwnd)); in parse_sack_chunk()
826 numfrags = ntohs(scp->ssc_numfrags); in parse_sack_chunk()
827 numdups = ntohs(scp->ssc_numdups); in parse_sack_chunk()
834 datalen -= sizeof (*scp); in parse_sack_chunk()
840 frag = (sctp_sack_frag_t *)(scp + 1); in parse_sack_chunk()
865 "tsn %x win %u gaps/dups %hu/%hu ", ntohl(scp->ssc_cumtsn), in parse_sack_chunk()
866 ntohl(scp->ssc_a_rwnd), ntohs(scp->ssc_numfrags), in parse_sack_chunk()
[all …]
/titanic_41/usr/src/cmd/ssh/scp/
H A DMakefile29 PROG= scp
32 scp.o
/titanic_41/usr/src/uts/common/sys/
H A Dcpucaps.h137 #define CPUCAPS_CHARGE(t, scp, flag) \ argument
138 (CPUCAPS_ON() && cpucaps_charge(t, scp, flag))
/titanic_41/usr/src/uts/common/os/
H A Devchannels.c1874 sysevent_evc_unbind(evchan_t *scp) in sysevent_evc_unbind() argument
1876 evch_bind_t *bp = (evch_bind_t *)scp; in sysevent_evc_unbind()
1878 ASSERT(scp != NULL); in sysevent_evc_unbind()
1886 sysevent_evc_subscribe(evchan_t *scp, const char *sid, const char *class, in sysevent_evc_subscribe() argument
1890 ASSERT(scp != NULL && sid != NULL && class != NULL && callb != NULL); in sysevent_evc_subscribe()
1898 return (evch_chsubscribe((evch_bind_t *)scp, EVCH_DELKERN, sid, class, in sysevent_evc_subscribe()
1903 sysevent_evc_unsubscribe(evchan_t *scp, const char *sid) in sysevent_evc_unsubscribe() argument
1905 ASSERT(scp != NULL && sid != NULL); in sysevent_evc_unsubscribe()
1909 evch_chunsubscribe((evch_bind_t *)scp, sid, 0); in sysevent_evc_unsubscribe()
1919 sysevent_evc_publish(evchan_t *scp, const char *class, const char *subclass, in sysevent_evc_publish() argument
[all …]
/titanic_41/usr/src/cmd/truss/
H A Dmain.c868 struct syscount *scp; in worker_thread() local
1063 scp = Cp->syscount[ow_syscall]; in worker_thread()
1065 scp += ow_subcode; in worker_thread()
1066 scp->count++; in worker_thread()
1067 accumulate(&scp->stime, in worker_thread()
1411 scp = Cp->syscount[ow_syscall]; in worker_thread()
1413 scp += ow_subcode; in worker_thread()
1414 scp->count++; in worker_thread()
1415 accumulate(&scp->stime, in worker_thread()
1587 struct syscount *scp; in per_proc_init() local
[all …]
/titanic_41/usr/src/cmd/mdb/sun4u/modules/opl/oplhwd/
H A Doplhwd.c500 hwd_sc_t *scp; in dumpahwd() local
505 scp = &hwd_sb.sb_cmu.cmu_scs[sc]; in dumpahwd()
507 if (DONT_BOTHER(scp->sc_status, mv)) in dumpahwd()
509 sc, scp->sc_status, in dumpahwd()
510 hwd_stat_decode(scp->sc_status)); in dumpahwd()
513 sc, scp->sc_status, in dumpahwd()
514 hwd_stat_decode(scp->sc_status)); in dumpahwd()
516 scp->sc_register_address); in dumpahwd()
/titanic_41/usr/src/cmd/sgs/liblddbg/common/
H A Dmap.c69 const char *str, *scp; in Dbg_map_version() local
76 scp = MSG_ORIG(MSG_SYM_GLOBAL); in Dbg_map_version()
78 scp = MSG_ORIG(MSG_SYM_LOCAL); in Dbg_map_version()
82 Dbg_demangle_name(name), scp); in Dbg_map_version()
85 Dbg_demangle_name(name), scp); in Dbg_map_version()

123