/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/ |
H A D | kernelSession.c | 477 kernel_session_t *sp; local 481 sp = pslot->sl_sess_list; 482 while (sp) { 489 if (sp->ses_RO) { 493 sp = sp->next;
|
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/ |
H A D | softSessionUtil.c | 194 session_delay_free(soft_session_t *sp) argument 201 sp->next = NULL; 203 ses_delay_freed.last = sp; 204 ses_delay_freed.first = sp; 206 ses_delay_freed.last->next = sp; 207 ses_delay_freed.last = sp; 413 soft_session_t *sp = (soft_session_t *)(hSession); local 423 if ((sp == NULL) || 424 (sp->magic_marker != SOFTTOKEN_SESSION_MAGIC)) { 427 (void) pthread_mutex_lock(&sp [all...] |
/illumos-gate/usr/src/lib/scsi/libscsi/common/ |
H A D | scsi_engine.c | 299 size_t *sp, size_t *vp) 312 if (sp != NULL) 313 *sp = aip->lsai_data_alloc; 324 if (sp != NULL) 325 *sp = aip->lsai_data_alloc; 335 if (sp != NULL) 336 *sp = NULL; 342 if (sp != NULL) 343 *sp = aip->lsai_data_alloc; 357 size_t *sp, size_ 298 libscsi_action_get_buffer(const libscsi_action_t *ap, uint8_t **bp, size_t *sp, size_t *vp) argument 356 libscsi_action_get_sense(const libscsi_action_t *ap, uint8_t **bp, size_t *sp, size_t *vp) argument [all...] |
/illumos-gate/usr/src/lib/scsi/libses/common/ |
H A D | ses_node.c | 34 ses_find_enclosure(ses_snap_t *sp, uint64_t number) argument 38 for (np = sp->ss_root->sn_first_child; np != NULL; 53 ses_snap_primary_enclosure(ses_snap_t *sp) argument 55 return (ses_find_enclosure(sp, 0)); 75 ses_node_alloc(ses_snap_t *sp, ses_node_t *pnp) argument 85 np->sn_snapshot = sp; 86 np->sn_id = sp->ss_n_nodes++; 89 ASSERT(sp->ss_root == NULL); 90 sp->ss_root = np; 107 ses_node_teardown(sp 134 ses_build_snap_skel(ses_snap_t *sp) argument 339 ses_fill_snap(ses_snap_t *sp) argument 351 ses_root_node(ses_snap_t *sp) argument [all...] |
H A D | ses_plugin.c | 36 ses_plugin_ctlpage_lookup(ses_plugin_t *sp, ses_snap_t *snap, int pagenum, argument 50 return (dp->spd_ctl_fill(sp, pp->ssp_page, 61 ses_plugin_t *sp; local 63 for (sp = tp->st_plugin_first; sp != NULL; sp = sp->sp_next) { 64 if (sp->sp_node_parse == NULL) 67 if (sp->sp_node_parse(sp, n 78 ses_plugin_t *sp; local 128 ses_plugin_page_lookup(ses_plugin_t *sp, ses_snap_t *snap, int pagenum, ses_node_t *np, size_t *lenp) argument 153 ses_plugin_t *sp; local 176 ses_plugin_register(ses_plugin_t *sp, int version, ses_plugin_config_t *scp) argument 189 ses_plugin_setspecific(ses_plugin_t *sp, void *data) argument 195 ses_plugin_getspecific(ses_plugin_t *sp) argument 211 ses_plugin_destroy(ses_plugin_t *sp) argument 225 ses_plugin_t *sp, **loc; local 389 ses_plugin_t *sp; local [all...] |
H A D | ses_snap.c | 30 ses_snap_find_page(ses_snap_t *sp, ses2_diag_page_t page, boolean_t ctl) argument 34 for (pp = sp->ss_pages; pp != NULL; pp = pp->ssp_next) 94 free_all_snap_pages(ses_snap_t *sp) argument 98 for (pp = sp->ss_pages; pp != NULL; pp = np) { 103 sp->ss_pages = NULL; 114 ses_snap_ctl_page(ses_snap_t *sp, ses2_diag_page_t page, size_t dlen, argument 117 ses_target_t *tp = sp->ss_target; 123 pp = ses_snap_find_page(sp, page, B_TRUE); 157 len = dp->spd_ctl_len(sp->ss_n_elem, page, dlen); 169 SCSI_WRITE32((uint8_t *)pip + dp->spd_gcoff, sp 175 read_status_page(ses_snap_t *sp, ses2_diag_page_t page) argument 276 send_control_page(ses_snap_t *sp, ses_snap_page_t *pp) argument 320 pages_skel_create(ses_snap_t *sp) argument 394 ses_snap_free(ses_snap_t *sp) argument 403 ses_snap_rele_unlocked(ses_snap_t *sp) argument 424 ses_snap_t *sp; local 435 ses_snap_rele(ses_snap_t *sp) argument 447 ses_snap_t *sp; local 611 ses_snap_do_ctl(ses_snap_t *sp) argument 647 ses_snap_generation(ses_snap_t *sp) argument 673 ses_walk(ses_snap_t *sp, ses_walk_f func, void *arg) argument 695 ses_node_lookup(ses_snap_t *sp, uint64_t id) argument [all...] |
/illumos-gate/usr/src/lib/scsi/plugins/ses/SUN-Storage-J4400/common/ |
H A D | riverwalk.c | 74 sun_riverwalk_parse_node(ses_plugin_t *sp, ses_node_t *np) argument 230 _ses_init(ses_plugin_t *sp) argument 236 return (ses_plugin_register(sp, LIBSES_PLUGIN_VERSION,
|
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/ |
H A D | ses2_pages.c | 58 ses2_aes_index(ses_plugin_t *sp, ses_node_t *np, void *data, size_t pagelen, argument 126 ses2_threshold_index(ses_plugin_t *sp, ses_node_t *np, void *data, argument 148 ses2_element_index(ses_plugin_t *sp, ses_node_t *np, void *data, argument 196 ses2_status_index(ses_plugin_t *sp, ses_node_t *np, void *data, argument 227 ses2_ctl_fill(ses_plugin_t *sp, void *pagedata, size_t pagelen, argument 281 ses2_threshout_ctl_fill(ses_plugin_t *sp, void *pagedata, size_t pagelen, argument 333 ses2_ucodeout_ctl_fill(ses_plugin_t *sp, void *data, size_t pagelen, argument
|
/illumos-gate/usr/src/lib/fm/libfmd_snmp/common/ |
H A D | scheme.c | 115 fmd_scheme_t *sp; local 117 if ((sp = malloc(sizeof (fmd_scheme_t))) == NULL || 118 (sp->sch_name = strdup(name)) == NULL) { 119 free(sp); 123 sp->sch_next = sch_list; 124 sp->sch_dlp = NULL; 125 sp->sch_err = 0; 126 sp->sch_ops = _fmd_scheme_default_ops; 128 sch_list = sp; 129 return (sp); 133 fmd_scheme_rtld_init(fmd_scheme_t *sp) argument 149 fmd_scheme_t *sp; local 186 fmd_scheme_t *sp; local [all...] |
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_subr.c | 265 char *pp, sp[PATH_MAX]; local 272 (void) snprintf(sp, PATH_MAX, TOPO_PLATFORM_PATH, rootdir, 274 if (access(sp, F_OK) != 0) { 275 (void) snprintf(sp, PATH_MAX, TOPO_PLATFORM_PATH, 277 if (access(sp, F_OK) != 0) { 278 (void) snprintf(sp, PATH_MAX, TOPO_COMMON_PATH, 280 if (access(sp, F_OK) != 0) { 286 pp = topo_mod_strdup(mod, sp);
|
/illumos-gate/usr/src/lib/fm/topo/modules/i86pc/x86pi/ |
H A D | x86pi_bboard.c | 63 smbios_struct_t sp; local 89 (void) smbios_lookup_id(shp, psmb_id, &sp); 90 if (sp.smbstr_type == SMB_TYPE_CHASSIS && 204 smbios_struct_t sp; local 216 (void) smbios_lookup_id(shp, cid[i], &sp); 217 if (sp.smbstr_type == SMB_TYPE_PROCESSOR) { 255 smbios_struct_t sp; local 263 (void) smbios_lookup_id(shp, smb_id, &sp); 265 if (sp.smbstr_type == SMB_TYPE_CHASSIS) { 275 } else if (sp 330 smbios_struct_t sp; local [all...] |
H A D | x86pi_subr.c | 140 const smb_struct_t *sp; local 152 sp = shp->sh_structs; 154 for (i = 0, cnt = 0; i < nstructs; i++, sp++) { 155 if (sp->smbst_hdr->smbh_type == stype->type) { 157 stype->ids[cnt].id = sp->smbst_hdr->smbh_hdl;
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | asn1_encode.c | 227 char s[16], *sp; local 234 sp = "19700101000000Z"; 269 sp = s; 272 return encode_bytestring_with_tag(buf, 15, sp, ASN1_GENERALTIME,
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/support/ |
H A D | threads.c | 542 get_stddev(struct k5_timediff_stats sp, int count) argument 545 mu = (long double) sp.valsum / count; 552 rho_squared = (sp.valsqsum - 2 * mu * sp.valsum + count * mu_squared) / count;
|
/illumos-gate/usr/src/lib/libshell/common/bltins/ |
H A D | enum.c | 192 char *cp,*sp; local 253 sp = nv_getval(np); 254 n = strlen(sp); 255 memcpy(cp,sp,n+1);
|
/illumos-gate/usr/src/lib/libshell/common/sh/ |
H A D | expand.c | 101 register char *sp, *cp, *cp2; local 134 sp = stakfreeze(0); 198 stakset(sp,off); 260 static int checkfmt(Sfio_t* sp, void* vp, Sffmt_t* fp) argument
|
H A D | fault.c | 459 Sfio_t *sp; local 461 sp = (Sfio_t*)trap; 463 sp = sfopen(NIL(Sfio_t*),trap,"s"); 464 sh_eval(sp,0);
|
H A D | main.c | 279 char *sp; local 320 sp = 0; 325 sp = stakptr(PATH_OFFSET); 327 sp = path_absolute(name,NIL(char*)); 329 if(sp) 331 if((fdin=sh_open(sp,O_RDONLY,0))>=0) 332 shp->st.filename = path_fullname(sp); 340 if(sp || errno!=ENOENT) 633 register char *cp,*sp,*qp; local 641 sp [all...] |
H A D | string.c | 50 * <table> is searched for string <sp> and corresponding value is returned 54 const Shtable_t *sh_locate(register const char *sp,const Shtable_t *table,int size) argument 60 if(sp==0 || (first= *sp)==0) 65 if(first == c && strcmp(sp,tp->sh_name)==0) 78 int sh_lookopt(register const char *sp, int *invert) argument 88 if(sp==0) 90 if(*sp=='n' && *(sp+1)=='o' && (*(sp 186 register const char *sp = string; local 241 sh_trim(register char *sp) argument [all...] |
/illumos-gate/usr/src/lib/libsmbfs/smb/ |
H A D | krb5ssp.c | 250 krb5ssp_put_request(struct ssp_ctx *sp, struct mbdata *out_mb) argument 253 struct smb_ctx *ctx = sp->smb_ctx; 254 krb5ssp_state_t *ss = sp->sp_private; 288 krb5ssp_get_reply(struct ssp_ctx *sp, struct mbdata *in_mb) argument 290 krb5ssp_state_t *ss = sp->sp_private; 381 krb5ssp_final(struct ssp_ctx *sp) argument 383 struct smb_ctx *ctx = sp->smb_ctx; 384 krb5ssp_state_t *ss = sp->sp_private; 441 krb5ssp_next_token(struct ssp_ctx *sp, struct mbdata *in_mb, argument 450 err = krb5ssp_get_reply(sp, in_m 472 krb5ssp_destroy(struct ssp_ctx *sp) argument 506 krb5ssp_init_client(struct ssp_ctx *sp) argument [all...] |
H A D | rap.c | 172 uint16_t *sp; local 179 sp = (uint16_t *)rap->r_npbuf; 180 *sp = htoles(uv); 181 len = sizeof (*sp);
|
/illumos-gate/usr/src/lib/libctf/common/ |
H A D | ctf_lib.c | 157 * the pointer to the start of the actual section data back into sp->cts_data. 160 ctf_sect_mmap(ctf_sect_t *sp, int fd) argument 162 size_t pageoff = sp->cts_offset & ~_PAGEMASK; 164 caddr_t base = mmap64(NULL, sp->cts_size + pageoff, PROT_READ, 165 MAP_PRIVATE, fd, sp->cts_offset & _PAGEMASK); 168 sp->cts_data = base + pageoff; 174 * Since sp->cts_data has the adjusted offset, we have to again round down 178 ctf_sect_munmap(const ctf_sect_t *sp) argument 180 uintptr_t addr = (uintptr_t)sp->cts_data; 183 (void) munmap((void *)(addr - pageoff), sp 259 GElf_Shdr *sp; local [all...] |
/illumos-gate/usr/src/lib/libdevinfo/ |
H A D | devinfo_prop_decode.c | 966 char *sp, *maxsp; local 995 sp = (char *)(rawdata + sizeof (slots)); 996 maxsp = sp + (rawlen - sizeof (slots)); 1000 if (sp > maxsp) 1002 len = strnlen(sp, (maxsp - sp) + 1); 1008 (void) strlcpy(slot_names[count].name, sp, len + 1); 1012 sp += len + 1;
|
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | inuse_vxvm.c | 86 char *sp = NULL; local 98 if ((sp = strrchr(slice, '/')) == NULL) 99 sp = slice; 101 while (*sp && *sp != 's') 102 sp++; 104 if (*sp) 105 *sp = 0; 107 sp = NULL; 140 if (sp ! 149 struct vxvm_list *sp; local [all...] |
/illumos-gate/usr/src/lib/libeti/form/common/ |
H A D | regcmp.c | 79 char *ep, *sp; local 96 sp = (char *)(intptr_t)*adx++; 99 if ((c = *sp++) == FEOF) 102 c = *sp++; 107 sp--; 109 if ((c = *sp++) == FEOF) { 111 sp = (char *)(intptr_t)*adx++; 131 if ((c = *sp++) == '$') { 132 if ('0' > (c = *sp++) || c > '9') 141 sp [all...] |