/illumos-gate/usr/src/cmd/fm/modules/common/sw-diag-response/software-diagnosis/ |
H A D | swde_case.c | 118 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 …]
|
/illumos-gate/usr/src/cmd/syseventd/daemons/syseventd/ |
H A D | sysevent_client.c | 75 struct sysevent_client *scp; in initialize_client_tbl() local 79 if ((scp = (struct sysevent_client *)malloc( in initialize_client_tbl() 83 if (mutex_init(&scp->client_lock, USYNC_THREAD, NULL) != 0) in initialize_client_tbl() 86 scp->client_data = NULL; in initialize_client_tbl() 87 scp->client_num = i; in initialize_client_tbl() 88 scp->eventq = NULL; in initialize_client_tbl() 91 scp->client_flags = SE_CLIENT_UNLOADED; in initialize_client_tbl() 93 sysevent_client_tbl[i] = scp; in initialize_client_tbl() 111 struct sysevent_client *scp; in insert_client() local 115 scp = sysevent_client_tbl[i]; in insert_client() [all …]
|
H A D | syseventd.c | 631 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 D | syseventd.h | 51 struct sysevent_client *scp; /* Client data */ member 123 #define SE_CLIENT_IS_UNLOADED(scp) \ argument 124 ((scp)->client_flags == SE_CLIENT_UNLOADED) 125 #define SE_CLIENT_IS_LOADED(scp) \ argument 126 ((scp)->client_flags & SE_CLIENT_LOADED) 127 #define SE_CLIENT_IS_SUSPENDED(scp) \ argument 128 ((scp)->client_flags & SE_CLIENT_SUSPENDED) 129 #define SE_CLIENT_IS_THR_RUNNING(scp) \ argument 130 ((scp)->client_flags & SE_CLIENT_THR_RUNNING)
|
/illumos-gate/usr/src/lib/libsysevent/ |
H A D | libevchannel.c | 76 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 …]
|
/illumos-gate/usr/src/lib/libc/port/threads/ |
H A D | cancel.c | 313 volatile sc_shared_t *scp; in set_cancel_pending_flag() local 318 if ((scp = self->ul_schedctl) != NULL || in set_cancel_pending_flag() 319 (scp = setup_schedctl()) != NULL) { in set_cancel_pending_flag() 321 scp->sc_flgs &= ~(SC_CANCEL_FLG | SC_EINTR_FLG); in set_cancel_pending_flag() 323 scp->sc_flgs |= SC_CANCEL_FLG; in set_cancel_pending_flag() 325 scp->sc_flgs &= ~SC_CANCEL_FLG; in set_cancel_pending_flag() 339 volatile sc_shared_t *scp; in set_cancel_eintr_flag() local 344 if ((scp = self->ul_schedctl) != NULL || in set_cancel_eintr_flag() 345 (scp = setup_schedctl()) != NULL) in set_cancel_eintr_flag() 346 scp->sc_flgs |= SC_EINTR_FLG; in set_cancel_eintr_flag() [all …]
|
H A D | synch.c | 1109 volatile sc_shared_t *scp; in setup_schedctl() local 1112 if ((scp = self->ul_schedctl) == NULL && /* no shared state yet */ in setup_schedctl() 1118 self->ul_schedctl = scp = tmp; in setup_schedctl() 1127 return (scp); in setup_schedctl() 1138 volatile sc_shared_t *scp = setup_schedctl(); in schedctl_init() local 1139 return ((scp == NULL)? NULL : (schedctl_t *)&scp->sc_preemptctl); in schedctl_init() 1172 volatile sc_shared_t *scp; in no_preempt() local 1176 if ((scp = self->ul_schedctl) != NULL || in no_preempt() 1177 (scp = setup_schedctl()) != NULL) { in no_preempt() 1181 self->ul_savpreempt = scp->sc_preemptctl.sc_nopreempt; in no_preempt() [all …]
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/krb/ |
H A D | walk_rtree.c | 126 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 …]
|
/illumos-gate/usr/src/cmd/ul/ |
H A D | ul.c | 328 wchar_t *cp, *scp; in overstrike() local 332 scp = (wchar_t *)malloc(sizeof (wchar_t) * szbf); in overstrike() 333 if (!scp) { in overstrike() 338 cp = scp; in overstrike() 357 pos = cp - scp; in overstrike() 359 scp = (wchar_t *)realloc(scp, in overstrike() 361 if (!scp) { in overstrike() 366 cp = scp + pos; in overstrike() 398 for (cp = scp; *cp; cp++) in overstrike() 402 for (cp = scp; *cp; cp++) in overstrike() [all …]
|
/illumos-gate/usr/src/lib/libcurses/screen/ |
H A D | wrefresh.c | 369 chtype *wcp, *scp, *wp, *sp, wc, sc; in _updateln() local 384 scp = curscr->_y[wy]; in _updateln() 400 sp = scp + wx; in _updateln() 408 for (sp = scp+wx, wp = wcp+wx; wp > wcp; --wp, --sp, --wx) in _updateln() 414 sp = scp + lastx - 1; in _updateln() 438 for (sp = scp + blnkx + 1; blnkx < scrco - 1; in _updateln() 521 scp += wx; in _updateln() 530 for (; wx < lastx; ++wx, ++wcp, ++scp) in _updateln() 531 if (*wcp != *scp) in _updateln() 535 for (; wx > wx_sav; --wx, --wcp, --scp) { in _updateln() [all …]
|
H A D | mvcur.c | 318 chtype *scp; in _mvright() local 325 scp = curscr->_y[Newy]; in _mvright() 337 if (iscont == 0 && !ISCBIT(scp[x])) in _mvright() 340 _ATTR(scp[x]) == curscr->_attrs) || in _mvright() 342 if (!ISMBIT(scp[x])) in _mvright() 345 curscr->_maxx && ISCBIT(scp[nx]))) in _mvright() 369 if (iscont == 0 && !ISCBIT(scp[x])) in _mvright() 372 _ATTR(scp[x]) == curscr->_attrs) || in _mvright() 374 if (!ISMBIT(scp[x])) in _mvright() 375 (void) _outwch(_CHAR(scp[x])); in _mvright() [all …]
|
H A D | wnoutref.c | 52 chtype **wcp, **scp, *wc, *sc; in wnoutrefresh() local 114 scp = _virtscr->_y + yorg; in wnoutrefresh() 124 ++sech, ++wcp, ++scp) { in wnoutrefresh() 132 sc = *scp; in wnoutrefresh() 188 sc = *scp + lo + xorg; in wnoutrefresh()
|
/illumos-gate/usr/src/cmd/getconf/ |
H A D | getconf.c | 795 getconf(struct sctab *scp, int argc, char *name, char *file) in getconf() argument 801 switch (scp->type) { in getconf() 805 if (scp->flag & UNDEFINED || in getconf() 806 (!(scp->flag&UNSIGNED_VALUE) && scp->value == -1)) { in getconf() 810 if (scp->flag & UNSIGNED_VALUE) in getconf() 811 (void) printf("%lu\n", scp->value); in getconf() 813 (void) printf("%ld\n", scp->value); in getconf() 820 if (scp->flag & UNDEFINED || in getconf() 821 (value = sysconf((int)scp->value)) == -1) { in getconf() 839 len = confstr((int)scp->value, NULL, (size_t)0); in getconf() [all …]
|
/illumos-gate/usr/src/cmd/fm/fmd/common/ |
H A D | fmd_self.c | 51 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()
|
/illumos-gate/usr/src/ucblib/libucb/sparc/sys/ |
H A D | signal.c | 335 __sigcleanup(struct sigcontext *scp) in __sigcleanup() argument 345 if (scp->sc_wbcnt == sizeof (*ucp)) { in __sigcleanup() 346 sig = (int)(uintptr_t)scp->sc_spbuf[0]; in __sigcleanup() 347 ucp = (ucontext_t *)scp->sc_spbuf[1]; in __sigcleanup() 358 if (scp->sc_onstack) { in __sigcleanup() 362 mask2set(scp->sc_mask, &ucp->uc_sigmask); in __sigcleanup() 364 ucp->uc_mcontext.gregs[REG_SP] = scp->sc_sp; in __sigcleanup() 365 ucp->uc_mcontext.gregs[REG_PC] = scp->sc_pc; in __sigcleanup() 366 ucp->uc_mcontext.gregs[REG_nPC] = scp->sc_npc; in __sigcleanup() 368 ucp->uc_mcontext.gregs[REG_CCR] = scp->sc_psr; in __sigcleanup() [all …]
|
/illumos-gate/usr/src/uts/common/fs/nfs/ |
H A D | nfs4x_state.c | 216 sess_chan_limits(sess_channel_t *scp) in sess_chan_limits() argument 218 if (scp->cn_attrs.ca_maxrequests > rfs4_max_slots) { in sess_chan_limits() 219 scp->cn_attrs.ca_maxrequests = rfs4_max_slots; in sess_chan_limits() 222 if (scp->cn_back_attrs.ca_maxrequests > rfs4_back_max_slots) in sess_chan_limits() 223 scp->cn_back_attrs.ca_maxrequests = rfs4_back_max_slots; in sess_chan_limits() 226 if (scp->cn_attrs.ca_maxoperations > NFS4_COMPOUND_LIMIT) in sess_chan_limits() 227 scp->cn_attrs.ca_maxoperations = NFS4_COMPOUND_LIMIT; in sess_chan_limits() 242 if (scp->cn_attrs.ca_maxresponsesize < (sizeof (SEQUENCE4res) + in sess_chan_limits()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/snoop/ |
H A D | snoop_sctp.c | 804 const sctp_sack_chunk_t *scp = data; in parse_sack_chunk() local 810 if (datalen < sizeof (*scp)) { in parse_sack_chunk() 820 "Cumulative TSN ACK = 0x%.8x", ntohl(scp->ssc_cumtsn)); in parse_sack_chunk() 823 ntohl(scp->ssc_a_rwnd)); in parse_sack_chunk() 824 numfrags = ntohs(scp->ssc_numfrags); in parse_sack_chunk() 825 numdups = ntohs(scp->ssc_numdups); in parse_sack_chunk() 832 datalen -= sizeof (*scp); in parse_sack_chunk() 838 frag = (sctp_sack_frag_t *)(scp + 1); in parse_sack_chunk() 863 "tsn %x win %u gaps/dups %hu/%hu ", ntohl(scp->ssc_cumtsn), in parse_sack_chunk() 864 ntohl(scp->ssc_a_rwnd), ntohs(scp->ssc_numfrags), in parse_sack_chunk() [all …]
|
/illumos-gate/usr/src/lib/libc/port/rt/ |
H A D | sched.c | 562 volatile sc_shared_t *scp; in update_sched() local 573 if ((scp = self->ul_schedctl) == NULL && in update_sched() 574 (scp = setup_schedctl()) == NULL) { /* can't happen? */ in update_sched() 586 self->ul_cid == scp->sc_cid && in update_sched() 587 (self->ul_pri == scp->sc_cpri || in update_sched() 588 (self->ul_epri > 0 && self->ul_epri == scp->sc_cpri))) { in update_sched() 595 self->ul_cid = scp->sc_cid; in update_sched() 596 self->ul_pri = scp->sc_cpri; in update_sched()
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | evchannels.c | 1878 sysevent_evc_unbind(evchan_t *scp) in sysevent_evc_unbind() argument 1880 evch_bind_t *bp = (evch_bind_t *)scp; in sysevent_evc_unbind() 1882 ASSERT(scp != NULL); in sysevent_evc_unbind() 1890 sysevent_evc_subscribe(evchan_t *scp, const char *sid, const char *class, in sysevent_evc_subscribe() argument 1894 ASSERT(scp != NULL && sid != NULL && class != NULL && callb != NULL); in sysevent_evc_subscribe() 1902 return (evch_chsubscribe((evch_bind_t *)scp, EVCH_DELKERN, sid, class, in sysevent_evc_subscribe() 1907 sysevent_evc_unsubscribe(evchan_t *scp, const char *sid) in sysevent_evc_unsubscribe() argument 1909 ASSERT(scp != NULL && sid != NULL); in sysevent_evc_unsubscribe() 1913 evch_chunsubscribe((evch_bind_t *)scp, sid, 0); in sysevent_evc_unsubscribe() 1923 sysevent_evc_publish(evchan_t *scp, const char *class, const char *subclass, in sysevent_evc_publish() argument [all …]
|
/illumos-gate/usr/src/cmd/truss/ |
H A D | main.c | 873 struct syscount *scp; in worker_thread() local 1068 scp = Cp->syscount[ow_syscall]; in worker_thread() 1070 scp += ow_subcode; in worker_thread() 1071 scp->count++; in worker_thread() 1072 accumulate(&scp->stime, in worker_thread() 1417 scp = Cp->syscount[ow_syscall]; in worker_thread() 1419 scp += ow_subcode; in worker_thread() 1420 scp->count++; in worker_thread() 1421 accumulate(&scp->stime, in worker_thread() 1593 struct syscount *scp; in per_proc_init() local [all …]
|
/illumos-gate/usr/src/cmd/sgs/liblddbg/common/ |
H A D | map.c | 69 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()
|
/illumos-gate/usr/src/uts/common/sys/ |
H A D | cpucaps.h | 135 #define CPUCAPS_CHARGE(t, scp, flag) \ argument 136 (CPUCAPS_ON() && cpucaps_charge(t, scp, flag))
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/ses/ |
H A D | ses.c | 2355 ses_enum_chassis_t *scp) in ses_create_subchassis() argument 2361 uint64_t instance = scp->sec_instance; in ses_create_subchassis() 2396 props = ses_node_props(scp->sec_enclosure); in ses_create_subchassis() 2426 ses_node_id(scp->sec_enclosure), scp->sec_target->set_devpath) != 0) in ses_create_subchassis() 2447 for (i = 0, stp = topo_list_next(&scp->sec_targets); stp != NULL; in ses_create_subchassis() 2454 for (i = 0, stp = topo_list_next(&scp->sec_targets); stp != NULL; in ses_create_subchassis() 2476 CONTROLLER, "CONTROLLER", scp, B_TRUE) != 0 || in ses_create_subchassis() 2478 BAY, "BAY", scp, B_TRUE) != 0 || in ses_create_subchassis() 2480 BAY, "BAY", scp, B_TRUE) != 0) in ses_create_subchassis() 2921 ses_enum_chassis_t *scp; in ses_create_chassis() local [all …]
|
/illumos-gate/usr/src/contrib/ast/src/cmd/INIT/ |
H A D | crossexec.sh | 131 ''|-) cp=scp ;; 132 scp) cp="$cp -q" ;;
|
/illumos-gate/usr/src/uts/common/io/mega_sas/ |
H A D | megaraid_sas.h | 1309 #define SCP2HOST(scp) (scp)->device->host /* to host */ argument 1310 #define SCP2HOSTDATA(scp) SCP2HOST(scp)->hostdata /* to soft state */ argument 1311 #define SCP2CHANNEL(scp) (scp)->device->channel /* to channel */ argument 1312 #define SCP2TARGET(scp) (scp)->device->id /* to target */ argument 1313 #define SCP2LUN(scp) (scp)->device->lun /* to LUN */ argument 1316 #define SCP2ADAPTER(scp) \ argument 1317 (struct megasas_instance *)SCSIHOST2ADAP(SCP2HOST(scp))
|