Home
last modified time | relevance | path

Searched refs:sp (Results 126 – 150 of 1205) sorted by relevance

12345678910>>...49

/illumos-gate/usr/src/lib/libcurses/screen/
H A Dmbcharlen.c41 mbcharlen(char *sp) in mbcharlen() argument
47 for (; *sp != '\0'; ++sp, ++n) in mbcharlen()
48 if (ISMBIT(*sp)) { in mbcharlen()
49 c = RBYTE(*sp); in mbcharlen()
52 for (sp += 1, k = 1; *sp != '\0' && k <= m; ++k, in mbcharlen()
53 ++sp) { in mbcharlen()
54 c = RBYTE(*sp); in mbcharlen()
H A Dmbdisplen.c41 mbdisplen(char *sp) in mbdisplen() argument
47 for (; *sp != '\0'; ++sp) { in mbdisplen()
48 if (!ISMBIT(*sp)) in mbdisplen()
51 c = RBYTE(*sp); in mbdisplen()
54 for (sp += 1, k = 1; *sp != '\0' && k <= m; in mbdisplen()
55 ++k, ++sp) { in mbdisplen()
56 c = RBYTE(*sp); in mbdisplen()
/illumos-gate/usr/src/lib/libc/port/gen/
H A Dstack.c37 stack_getbounds(stack_t *sp) in stack_getbounds() argument
39 *sp = curthread->ul_ustack; in stack_getbounds()
45 stack_setbounds(const stack_t *sp) in stack_setbounds() argument
49 if (sp == NULL || sp->ss_sp == NULL || in stack_setbounds()
50 (uintptr_t)sp->ss_sp != SA((uintptr_t)sp->ss_sp) || in stack_setbounds()
51 sp->ss_flags != 0 || sp->ss_size < MINSIGSTKSZ || in stack_setbounds()
52 (uintptr_t)sp->ss_size != SA((uintptr_t)sp->ss_size)) { in stack_setbounds()
58 self->ul_ustack = *sp; in stack_setbounds()
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dstreval.c186 tp--,sp--; in arith_exec()
228 sp[-1] = *sp; in arith_exec()
233 sp--; in arith_exec()
259 *++sp = num; in arith_exec()
429 sp--,tp--; in arith_exec()
443 sp--,tp--; in arith_exec()
486 num = (*((Math_3f_f)fun))(sp[1],sp[2],num); in arith_exec()
494 sp--,tp--; in arith_exec()
497 *sp = num; in arith_exec()
965 char *sp=0; in strval() local
[all …]
/illumos-gate/usr/src/test/util-tests/tests/dis/risc-v-c/
H A D64.ldsr.out1 libdis_test: 82 64 c.ldsp s1,0x0(sp)
2 libdis_test+0x2: 06 67 c.ldsp a4,0x40(sp)
3 libdis_test+0x4: 62 7e c.ldsp t3,0x38(sp)
4 libdis_test+0x6: 82 24 c.fldsp fs1,0x0(sp)
5 libdis_test+0x8: 06 2e c.fldsp ft8,0x40(sp)
6 libdis_test+0xa: e2 37 c.fldsp fa5,0x38(sp)
7 libdis_test+0xc: 76 e0 c.sdsp t4,0x0(sp)
8 libdis_test+0xe: 12 f0 c.sdsp tp,0x20(sp)
9 libdis_test+0x10: 0a a0 c.fsdsp ft2,0x0(sp)
10 libdis_test+0x12: 36 b0 c.fsdsp fa3,0x20(sp)
/illumos-gate/usr/src/lib/watchmalloc/common/
H A Dmalloc.c193 sp = NULL; in malloc_unlocked()
201 sp = tp; in malloc_unlocked()
222 if (sp) { in malloc_unlocked()
224 t_delete(sp); in malloc_unlocked()
239 sp = Bottom; in malloc_unlocked()
254 tmp = NEXT(sp); in malloc_unlocked()
266 tp = NEXT(sp); in malloc_unlocked()
275 protect(sp); in malloc_unlocked()
511 protect(sp); in realfree()
747 TREE *sp; in in_list() local
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dcpu_event.c315 for (sp = cpu_idle_cb_state, i = 0; i < max_ncpus; i++, sp++) { in cpu_event_init()
488 for (sp = cpu_idle_cb_state, i = 0; i < max_ncpus; i++, sp++) { in cpu_idle_remove_callback()
608 sp->v.last_busy->cipv_hrtime = sp->v.enter_ts->cipv_hrtime - in cpu_idle_enter_state()
610 sp->v.total_busy->cipv_hrtime += sp->v.last_busy->cipv_hrtime; in cpu_idle_enter_state()
612 sp->v.ready = B_TRUE; in cpu_idle_enter_state()
624 sp->v.last_idle->cipv_hrtime = sp->v.exit_ts->cipv_hrtime - in cpu_idle_exit_state()
626 sp->v.total_idle->cipv_hrtime += sp->v.last_idle->cipv_hrtime; in cpu_idle_exit_state()
687 sp->v.index++; in cpu_idle_enter()
763 sp->v.index = 0; in cpu_idle_exit()
790 sp->v.index = 0; in cpu_idle_exit()
[all …]
/illumos-gate/usr/src/cmd/csh/
H A Dsh.dir.c553 *sp = '\0'; in dcanon()
557 if (sp[0] == '.' && sp[1] == '\0') { in dcanon()
562 p = --sp; in dcanon()
564 *sp = '\0'; in dcanon()
589 dotdot = sp[0] == '.' && sp[1] == '.' && sp[2] == '\0'; in dcanon()
599 sp--; in dcanon()
601 *sp = '\0'; in dcanon()
651 sp++; in dcanon()
698 *sp = '/'; in dcanon()
708 p = sp; in dcanon()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/port/
H A Dmc.c214 register char* sp; in mcopen() local
267 } while (*sp); in mcopen()
318 sp += n; in mcopen()
438 mc->set = sp; in mcput()
442 sp = mc->set + set; in mcput()
448 if (num > sp->num) in mcput()
462 sp->msg = mp; in mcput()
473 sp->gen = i; in mcput()
474 sp->msg = mp; in mcput()
478 sp->num = num; in mcput()
[all …]
H A Dastdynamic.c66 Sfio_t* sp; in _ast_libinit() local
68 sp = (Sfio_t*)in; in _ast_libinit()
69 *sp = _Sfstdin; in _ast_libinit()
70 sfstdin = sp; in _ast_libinit()
71 sp = (Sfio_t*)out; in _ast_libinit()
72 *sp = _Sfstdout; in _ast_libinit()
73 sfstdout = sp; in _ast_libinit()
74 sp = (Sfio_t*)err; in _ast_libinit()
75 *sp = _Sfstderr; in _ast_libinit()
76 sfstderr = sp; in _ast_libinit()
/illumos-gate/usr/src/uts/common/fs/mntfs/
H A Dmntvfsops.c284 bzero((caddr_t)sp, sizeof (*sp)); in mntstatvfs()
285 sp->f_bsize = DEV_BSIZE; in mntstatvfs()
286 sp->f_frsize = DEV_BSIZE; in mntstatvfs()
287 sp->f_blocks = (fsblkcnt64_t)0; in mntstatvfs()
288 sp->f_bfree = (fsblkcnt64_t)0; in mntstatvfs()
289 sp->f_bavail = (fsblkcnt64_t)0; in mntstatvfs()
290 sp->f_files = (fsfilcnt64_t)1; in mntstatvfs()
291 sp->f_ffree = (fsfilcnt64_t)0; in mntstatvfs()
292 sp->f_favail = (fsfilcnt64_t)0; in mntstatvfs()
294 sp->f_fsid = d32; in mntstatvfs()
[all …]
/illumos-gate/usr/src/cmd/sendmail/db/db/
H A Ddb_salloc.c75 size_t *sp; local
119 sp = rp;
120 *--sp = elp->len -
122 elp->len -= *sp + sizeof(size_t);
136 for (sp = rp; (u_int8_t *)--sp >= (u_int8_t *)&elp->links;)
137 *sp = ILLEGAL_SIZE;
157 size_t free_size, *sp; local
164 for (sp = (size_t *)ptr; sp[-1] == ILLEGAL_SIZE; --sp)
166 ptr = sp;
265 size_t *sp; local
[all …]
/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge_hash.c63 sfxge_toeplitz_hash(sfxge_t *sp, unsigned int addr_size, in sfxge_toeplitz_hash() argument
74 hash ^= toeplitz_hash(sp->s_toeplitz_cache, in sfxge_toeplitz_hash()
77 hash ^= toeplitz_hash(sp->s_toeplitz_cache, in sfxge_toeplitz_hash()
159 sfxge_toeplitz_hash_init(sfxge_t *sp) in sfxge_toeplitz_hash_init() argument
166 if ((rc = efx_rx_scale_mode_set(sp->s_enp, EFX_RX_HASHALG_TOEPLITZ, in sfxge_toeplitz_hash_init()
171 if ((rc = efx_rx_scale_key_set(sp->s_enp, toeplitz_key, in sfxge_toeplitz_hash_init()
175 sp->s_toeplitz_cache = toeplitz_cache_init(toeplitz_key); in sfxge_toeplitz_hash_init()
181 sfxge_toeplitz_hash_fini(sfxge_t *sp) in sfxge_toeplitz_hash_fini() argument
183 if (sp->s_toeplitz_cache != NULL) { in sfxge_toeplitz_hash_fini()
184 kmem_free((void *)sp->s_toeplitz_cache, in sfxge_toeplitz_hash_fini()
[all …]
/illumos-gate/usr/src/lib/scsi/plugins/ses/ses2/common/
H A Dses2.c39 ses2_setprop(ses_plugin_t *sp, ses_node_t *np, in ses2_setprop() argument
54 if (cpp->scp_setprop(sp, np, cpp->scp_num, nvp) != 0) in ses2_setprop()
74 if ((eip = ses_plugin_ctlpage_lookup(sp, ses_node_snapshot(np), in ses2_ctl_common_setprop()
94 ses2_node_parse(ses_plugin_t *sp, ses_node_t *np) in ses2_node_parse() argument
98 return (ses2_fill_enclosure_node(sp, np)); in ses2_node_parse()
102 return (ses2_fill_element_node(sp, np)); in ses2_node_parse()
110 ses2_node_ctl(ses_plugin_t *sp, ses_node_t *np, const char *op, in ses2_node_ctl() argument
115 return (ses2_enclosure_ctl(sp, np, op, nvl)); in ses2_node_ctl()
119 return (ses2_element_ctl(sp, np, op, nvl)); in ses2_node_ctl()
126 _ses_init(ses_plugin_t *sp) in _ses_init() argument
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_kernel/common/
H A DkernelEmulate.h41 #define SLOT_THRESHOLD(sp) (slot_table[sp->ses_slotid]->sl_threshold) argument
42 #define SLOT_HASH_MAX_INDATA_LEN(sp) \ argument
43 (slot_table[sp->ses_slotid]->sl_hash_max_inlen)
44 #define SLOT_HMAC_MAX_INDATA_LEN(sp) \ argument
45 (slot_table[sp->ses_slotid]->sl_hmac_max_inlen)
46 #define SLOT_HAS_LIMITED_HASH(sp) (slot_table[sp->ses_slotid]->sl_flags & \ argument
48 #define SLOT_HAS_LIMITED_HMAC(sp) (slot_table[sp->ses_slotid]->sl_flags & \ argument
/illumos-gate/usr/src/uts/common/fs/objfs/
H A Dobjfs_data.c260 switch (sp->sect_id) { in sect_addr()
266 addr = sp->sect_addr; in sect_addr()
295 switch (sp->sect_id) { in sect_size()
301 size = sp->sect_size; in sect_size()
355 if (sp != NULL && mp != NULL && !sect_valid(sp, mp)) in data_offset()
392 if (sp != cp) in data_offset()
396 if (sp == cp) in data_offset()
572 section_desc_t *sp; in objfs_data_read() local
664 sp = &data_sections[i]; in objfs_data_read()
696 sp = &data_sections[i]; in objfs_data_read()
[all …]
H A Dobjfs_vfs.c245 objfs_statvfs(vfs_t *vfsp, statvfs64_t *sp) in objfs_statvfs() argument
250 bzero(sp, sizeof (*sp)); in objfs_statvfs()
251 sp->f_bsize = DEV_BSIZE; in objfs_statvfs()
252 sp->f_frsize = DEV_BSIZE; in objfs_statvfs()
253 sp->f_files = total; in objfs_statvfs()
254 sp->f_ffree = sp->f_favail = INT_MAX - total; in objfs_statvfs()
256 sp->f_fsid = d32; in objfs_statvfs()
258 sizeof (sp->f_basetype)); in objfs_statvfs()
259 sp->f_flag = vf_to_stf(vfsp->vfs_flag); in objfs_statvfs()
260 sp->f_namemax = OBJFS_NAME_MAX; in objfs_statvfs()
[all …]
/illumos-gate/usr/src/cmd/truss/
H A Dfcall.c640 sp = (uint32_t)sp; in make_lwp_stack()
714 sp = (uint32_t)sp; in make_thr_stack()
1257 sp = (uint32_t)sp; in function_trace()
1447 sp = (uint32_t)sp; in function_entry()
1462 if (sp >= Stk->stack[i].sp) { in function_entry()
1464 if (sp == Stk->stack[i].sp) in function_entry()
1505 sp = (uint32_t)sp; in function_return()
1513 if (sp <= Stk->stack[i].sp && fp > Stk->stack[i].sp) { in function_return()
1526 if (sp <= Stk->stack[i].sp && in function_return()
1576 frame[nframe].sp = sp; in trap_one_stack()
[all …]
/illumos-gate/usr/src/lib/libnsl/rpc/
H A Dxdr.c255 *sp = (short)l; in xdr_short()
442 if (sp == NULL) in xdr_bytes()
453 free(sp); in xdr_bytes()
537 if (sp == NULL) in xdr_string()
541 size = (sp != NULL) ? (uint_t)strlen(sp) : 0; in xdr_string()
563 sp[size] = 0; in xdr_string()
585 free(sp); in xdr_string()
588 sp = newsp; in xdr_string()
590 free(sp); in xdr_string()
597 *cpp = sp; in xdr_string()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/sockfs/
H A Dsockfs.c70 struct sockparams sp; in sockparams_prt() local
114 if (mdb_vread(&sp, sizeof (sp), addr) == -1) { in sockparams_prt()
119 if ((sp.sp_sdev_info.sd_devpath == NULL) || in sockparams_prt()
121 (uintptr_t)sp.sp_sdev_info.sd_devpath) <= 0)) in sockparams_prt()
124 (uintptr_t)sp.sp_smod_name) <= 0) in sockparams_prt()
129 sp.sp_family, sp.sp_type, sp.sp_protocol, in sockparams_prt()
130 strdev, sockmod, sp.sp_refcnt, in sockparams_prt()
131 sp.sp_flags); in sockparams_prt()
/illumos-gate/usr/src/uts/common/fs/sharefs/
H A Dsharefs_vfsops.c271 sharefs_statvfs(vfs_t *vfsp, statvfs64_t *sp) in sharefs_statvfs() argument
276 bzero(sp, sizeof (*sp)); in sharefs_statvfs()
277 sp->f_bsize = DEV_BSIZE; in sharefs_statvfs()
278 sp->f_frsize = DEV_BSIZE; in sharefs_statvfs()
279 sp->f_files = total; in sharefs_statvfs()
280 sp->f_ffree = sp->f_favail = INT_MAX - total; in sharefs_statvfs()
282 sp->f_fsid = d32; in sharefs_statvfs()
284 sizeof (sp->f_basetype)); in sharefs_statvfs()
285 sp->f_flag = vf_to_stf(vfsp->vfs_flag); in sharefs_statvfs()
286 sp->f_namemax = SHAREFS_NAME_MAX; in sharefs_statvfs()
[all …]
/illumos-gate/usr/src/test/util-tests/tests/smbios/
H A Dsmbios_test_fwinfo.c134 smbios_struct_t sp; in smbios_test_fwinfo_verify_badtype() local
143 if (smbios_info_fwinfo(hdl, sp.smbstr_id, &fw) != -1) { in smbios_test_fwinfo_verify_badtype()
161 smbios_struct_t sp; in smbios_test_fwinfo_verify_invlen_base() local
170 if (smbios_info_fwinfo(hdl, sp.smbstr_id, &fw) != -1) { in smbios_test_fwinfo_verify_invlen_base()
270 smbios_struct_t sp; in smbios_test_fwinfo_verify_nocomps() local
282 if (smbios_info_fwinfo(hdl, sp.smbstr_id, &fw) == -1) { in smbios_test_fwinfo_verify_nocomps()
288 if (!smbios_test_fwinfo_verify_common(hdl, &sp, &fw)) { in smbios_test_fwinfo_verify_nocomps()
324 smbios_struct_t sp; in smbios_test_fwinfo_verify_invlen_comps() local
336 if (smbios_info_fwinfo(hdl, sp.smbstr_id, &fw) == -1) { in smbios_test_fwinfo_verify_invlen_comps()
342 if (!smbios_test_fwinfo_verify_common(hdl, &sp, &fw)) { in smbios_test_fwinfo_verify_invlen_comps()
[all …]
/illumos-gate/usr/src/cmd/mandoc/
H A Dtbl.c112 struct tbl_span *sp; in tbl_free() local
127 tbl->first_span = sp->next; in tbl_free()
128 while (sp->first != NULL) { in tbl_free()
129 dp = sp->first; in tbl_free()
130 sp->first = dp->next; in tbl_free()
134 free(sp); in tbl_free()
168 struct tbl_span *sp; in tbl_end() local
175 sp = tbl->first_span; in tbl_end()
176 while (sp != NULL && sp->first == NULL) in tbl_end()
177 sp = sp->next; in tbl_end()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_softtoken/common/
H A DsoftSession.c305 soft_session_t *session_p, *sp; in C_Login() local
384 sp = soft_session_list; in C_Login()
386 while (sp) { in C_Login()
389 if (sp->flags & CKF_RW_SESSION) { in C_Login()
390 sp->state = CKS_RW_USER_FUNCTIONS; in C_Login()
395 sp = sp->next; in C_Login()
409 soft_session_t *session_p, *sp; in C_Logout() local
448 sp = soft_session_list; in C_Logout()
450 while (sp) { in C_Logout()
453 if (sp->flags & CKF_RW_SESSION) { in C_Logout()
[all …]
/illumos-gate/usr/src/cmd/acct/
H A Dacctprc1.c179 struct srec *sp; in readctmp() local
188 sp = sr; in readctmp()
212 up->ur_srec = sp; in readctmp()
227 sp->sr_tty = cb.ct_tty; in readctmp()
230 sp++; in readctmp()
252 struct srec *sp; in getnamc() local
261 sp = up->ur_srec; in getnamc()
262 splast = sp+up->ur_cnt; in getnamc()
263 for (; sp < splast; sp++) in getnamc()
266 start <= sp->sr_end) in getnamc()
[all …]

12345678910>>...49