Home
last modified time | relevance | path

Searched refs:sp (Results 1 – 25 of 1208) sorted by relevance

12345678910>>...49

/titanic_44/usr/src/uts/common/io/audio/impl/
H A Daudio_client.c86 auclnt_set_rate(audio_stream_t *sp, int rate) in auclnt_set_rate() argument
95 if (rate != sp->s_user_parms->p_rate) { in auclnt_set_rate()
97 rv = auimpl_engine_setup(sp, 0, &parms, FORMAT_MSK_RATE); in auclnt_set_rate()
103 auclnt_get_rate(audio_stream_t *sp) in auclnt_get_rate() argument
105 return (sp->s_user_parms->p_rate); in auclnt_get_rate()
109 auclnt_get_fragsz(audio_stream_t *sp) in auclnt_get_fragsz() argument
111 return (sp->s_fragbytes); in auclnt_get_fragsz()
115 auclnt_get_framesz(audio_stream_t *sp) in auclnt_get_framesz() argument
117 return (sp->s_framesz); in auclnt_get_framesz()
121 auclnt_get_nfrags(audio_stream_t *sp) in auclnt_get_nfrags() argument
[all …]
H A Daudio_format.c48 do_src(audio_stream_t *sp, void *p1, void *p2, int len, int nchan) in do_src() argument
57 size = sp->s_cnv_max / 4; /* sample size is 4 */ in do_src()
61 grc3_convert(sp->s_src_state[ch], sp->s_src_quality, in do_src()
64 return (((grc3state_t *)sp->s_src_state[0])->outsz); in do_src()
68 setup_src(audio_stream_t *sp, int srate, int trate, int sch, int tch) in setup_src() argument
76 if (sp->s_src_quality < 1) in setup_src()
77 sp->s_src_quality = 1; in setup_src()
78 if (sp->s_src_quality > 5) in setup_src()
79 sp->s_src_quality = 5; in setup_src()
82 grc3_reset(sp->s_src_state[ch]); in setup_src()
[all …]
/titanic_44/usr/src/cmd/svc/configd/
H A Dsnapshot.c55 rc_snapshot_t *sp; in snapshot_alloc() local
56 sp = uu_zalloc(sizeof (*sp)); in snapshot_alloc()
58 (void) pthread_mutex_init(&sp->rs_lock, NULL); in snapshot_alloc()
59 (void) pthread_cond_init(&sp->rs_cv, NULL); in snapshot_alloc()
61 sp->rs_refcnt++; in snapshot_alloc()
62 return (sp); in snapshot_alloc()
66 snapshot_free(rc_snapshot_t *sp) in snapshot_free() argument
70 assert(sp->rs_refcnt == 0 && sp->rs_childref == 0); in snapshot_free()
72 (void) pthread_mutex_destroy(&sp->rs_lock); in snapshot_free()
73 (void) pthread_cond_destroy(&sp->rs_cv); in snapshot_free()
[all …]
/titanic_44/usr/src/uts/common/os/
H A Dsession.c75 sess_rele(sess_t *sp, boolean_t pidlock_held) in sess_rele() argument
79 mutex_enter(&sp->s_lock); in sess_rele()
81 ASSERT(sp->s_ref != 0); in sess_rele()
82 if (--sp->s_ref > 0) { in sess_rele()
83 mutex_exit(&sp->s_lock); in sess_rele()
86 ASSERT(sp->s_ref == 0); in sess_rele()
103 if (sp == &session0) in sess_rele()
107 ASSERT(sp->s_cnt == 0); in sess_rele()
110 ASSERT(!sp->s_exit); in sess_rele()
113 ASSERT(sp->s_vp == NULL); in sess_rele()
[all …]
/titanic_44/usr/src/uts/common/fs/sockfs/
H A Dsockparams.c113 struct sockparams *sp = ksp->ks_private; in sockparams_kstat_update() local
119 sps->sps_nactive.value.ui64 = sp->sp_refcnt; in sockparams_kstat_update()
128 sockparams_kstat_init(struct sockparams *sp) in sockparams_kstat_init() argument
132 (void) snprintf(name, KSTAT_STRLEN, "socket_%d_%d_%d", sp->sp_family, in sockparams_kstat_init()
133 sp->sp_type, sp->sp_protocol); in sockparams_kstat_init()
135 sp->sp_kstat = kstat_create("sockfs", 0, name, "misc", KSTAT_TYPE_NAMED, in sockparams_kstat_init()
139 if (sp->sp_kstat == NULL) in sockparams_kstat_init()
142 sp->sp_kstat->ks_data = &sp->sp_stats; in sockparams_kstat_init()
143 sp->sp_kstat->ks_update = sockparams_kstat_update; in sockparams_kstat_init()
144 sp->sp_kstat->ks_private = sp; in sockparams_kstat_init()
[all …]
/titanic_44/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c39 dt_strtab_grow(dt_strtab_t *sp) in dt_strtab_grow() argument
43 if ((ptr = malloc(sp->str_bufsz)) == NULL) in dt_strtab_grow()
46 bufs = realloc(sp->str_bufs, (sp->str_nbufs + 1) * sizeof (char *)); in dt_strtab_grow()
53 sp->str_nbufs++; in dt_strtab_grow()
54 sp->str_bufs = bufs; in dt_strtab_grow()
55 sp->str_ptr = ptr; in dt_strtab_grow()
56 sp->str_bufs[sp->str_nbufs - 1] = sp->str_ptr; in dt_strtab_grow()
64 dt_strtab_t *sp = malloc(sizeof (dt_strtab_t)); in dt_strtab_create() local
69 if (sp == NULL) in dt_strtab_create()
72 bzero(sp, sizeof (dt_strtab_t)); in dt_strtab_create()
[all …]
/titanic_44/usr/src/cmd/saf/
H A Dreadtab.c58 struct sactab *sp; /* working pointer to move through PM info */ local
83 for (sp = Sactab; sp; sp = sp->sc_next)
84 sp->sc_valid = 0;
90 while (sp = read_entry(fp))
91 insert(sp, startflag);
107 register struct sactab *sp; /* working pointer */ local
126 sp = (struct sactab *) calloc(1, sizeof(struct sactab));
127 if (sp == NULL)
129 sp->sc_sstate = sp->sc_lstate = sp->sc_pstate = NOTRUNNING;
130 (void) memset(sp->sc_utid, '\0', IDLEN);
[all …]
H A Dsac.c228 struct sactab *sp; /* working pointer */ in startpms() local
238 for (sp = Sactab; sp; sp = sp->sc_next) { in startpms()
239 if (checklock(sp)) { in startpms()
241 sp->sc_sstate = sp->sc_pstate = UNKNOWN; in startpms()
242 sp->sc_ok = 1; in startpms()
243 sp->sc_exit = 0; in startpms()
244 (void) sprintf(Scratch, "%s/_pmpipe", sp->sc_tag); in startpms()
245 sp->sc_fd = open(Scratch, O_RDWR); in startpms()
246 if (sp->sc_fd < 0) { in startpms()
258 sp->sc_tag); in startpms()
[all …]
/titanic_44/usr/src/tools/ctf/cvt/
H A Dstrtab.c42 strtab_grow(strtab_t *sp) in strtab_grow() argument
44 sp->str_nbufs++; in strtab_grow()
45 sp->str_bufs = xrealloc(sp->str_bufs, sp->str_nbufs * sizeof (char *)); in strtab_grow()
46 sp->str_ptr = xmalloc(sp->str_bufsz); in strtab_grow()
47 sp->str_bufs[sp->str_nbufs - 1] = sp->str_ptr; in strtab_grow()
51 strtab_create(strtab_t *sp) in strtab_create() argument
53 sp->str_hash = xcalloc(STRTAB_HASHSZ * sizeof (strhash_t *)); in strtab_create()
54 sp->str_hashsz = STRTAB_HASHSZ; in strtab_create()
55 sp->str_bufs = NULL; in strtab_create()
56 sp->str_ptr = NULL; in strtab_create()
[all …]
H A Dstack.c53 stk_t *sp; in stack_new() local
55 sp = xmalloc(sizeof (stk_t)); in stack_new()
56 sp->st_nument = STACK_SEEDSIZE; in stack_new()
57 sp->st_top = -1; in stack_new()
58 sp->st_data = xmalloc(sizeof (void *) * sp->st_nument); in stack_new()
59 sp->st_free = freep; in stack_new()
61 return (sp); in stack_new()
65 stack_free(stk_t *sp) in stack_free() argument
69 if (sp->st_free) { in stack_free()
70 for (i = 0; i <= sp->st_top; i++) in stack_free()
[all …]
/titanic_44/usr/src/uts/sun4v/io/
H A Dds_pri.c123 static void request_pri(ds_pri_state_t *sp);
124 static uint64_t ds_get_hv_pri(ds_pri_state_t *sp);
278 ds_pri_state_t *sp; in ds_pri_getinfo() local
285 sp = ddi_get_soft_state(ds_pri_statep, getminor((dev_t)arg)); in ds_pri_getinfo()
286 if (sp != NULL) { in ds_pri_getinfo()
287 *resultp = sp->dip; in ds_pri_getinfo()
310 ds_pri_state_t *sp; in ds_pri_attach() local
333 sp = ddi_get_soft_state(ds_pri_statep, instance); in ds_pri_attach()
335 mutex_init(&sp->lock, NULL, MUTEX_DEFAULT, NULL); in ds_pri_attach()
336 cv_init(&sp->cv, NULL, CV_DEFAULT, NULL); in ds_pri_attach()
[all …]
H A Dds_snmp.c269 ds_snmp_state_t *sp; in ds_snmp_getinfo() local
276 sp = ddi_get_soft_state(ds_snmp_statep, getminor((dev_t)arg)); in ds_snmp_getinfo()
277 if (sp != NULL) { in ds_snmp_getinfo()
278 *resultp = sp->dip; in ds_snmp_getinfo()
430 ds_snmp_state_t *sp; in ds_snmp_create_state() local
442 sp = ddi_get_soft_state(ds_snmp_statep, minor); in ds_snmp_create_state()
448 sp->dev = makedevice(major, minor); in ds_snmp_create_state()
450 *devp = sp->dev; in ds_snmp_create_state()
452 sp->instance = minor; in ds_snmp_create_state()
453 sp->data = NULL; in ds_snmp_create_state()
[all …]
/titanic_44/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_ep.c99 rds_is_port_marked(rds_session_t *sp, in_port_t port, uint_t qualifier) in rds_is_port_marked() argument
111 ASSERT(sp != NULL); in rds_is_port_marked()
112 rw_enter(&sp->session_local_portmap_lock, RW_READER); in rds_is_port_marked()
113 ret = (sp->session_local_portmap[port/8] & (1 << (port % 8))); in rds_is_port_marked()
114 rw_exit(&sp->session_local_portmap_lock); in rds_is_port_marked()
118 ASSERT(sp != NULL); in rds_is_port_marked()
119 rw_enter(&sp->session_remote_portmap_lock, RW_READER); in rds_is_port_marked()
120 ret = (sp->session_remote_portmap[port/8] & (1 << (port % 8))); in rds_is_port_marked()
121 rw_exit(&sp->session_remote_portmap_lock); in rds_is_port_marked()
129 rds_check_n_mark_port(rds_session_t *sp, in_port_t port, uint_t qualifier) in rds_check_n_mark_port() argument
[all …]
H A Drdsib_cm.c104 rds_session_t *sp; in rds_handle_cm_req() local
188 sp = rds_session_lkup(statep, ipcm_info.SRCIP, rgid.gid_guid); in rds_handle_cm_req()
191 if (sp == NULL) { in rds_handle_cm_req()
197 sp = rds_session_create(statep, ipcm_info.DSTIP, in rds_handle_cm_req()
199 if (sp == NULL) { in rds_handle_cm_req()
202 sp = rds_session_lkup(statep, ipcm_info.SRCIP, in rds_handle_cm_req()
205 if (sp == NULL) { in rds_handle_cm_req()
215 rw_enter(&sp->session_lock, RW_WRITER); in rds_handle_cm_req()
218 if ((sp->session_state == RDS_SESSION_STATE_CREATED) || in rds_handle_cm_req()
219 (sp->session_state == RDS_SESSION_STATE_INIT)) { in rds_handle_cm_req()
[all …]
/titanic_44/usr/src/cmd/fm/eversholt/common/
H A Dstats.c98 stats_delete(struct stats *sp) in stats_delete() argument
102 if (sp == NULL) in stats_delete()
106 if (s == sp) in stats_delete()
120 FREE((void *)sp->name); in stats_delete()
121 FREE((void *)sp->desc); in stats_delete()
122 FREE(sp); in stats_delete()
135 stats_counter_bump(struct stats *sp) in stats_counter_bump() argument
137 if (sp == NULL) in stats_counter_bump()
140 ASSERT(sp->t == STATS_COUNTER); in stats_counter_bump()
142 sp->u.counter++; in stats_counter_bump()
[all …]
/titanic_44/usr/src/uts/common/fs/specfs/
H A Dspecsubr.c118 struct snode *sp; in specvp() local
149 if ((sp = sfind(dev, type, vp)) == NULL) { in specvp()
152 sp = nsp; /* Use pre-allocated snode */ in specvp()
153 svp = STOV(sp); in specvp()
155 sp->s_realvp = vp; in specvp()
157 sp->s_commonvp = NULL; in specvp()
158 sp->s_dev = dev; in specvp()
159 sp->s_dip = NULL; in specvp()
160 sp->s_nextr = NULL; in specvp()
161 sp->s_list = NULL; in specvp()
[all …]
/titanic_44/usr/src/cmd/fm/fmd/common/
H A Dfmd_scheme.c217 fmd_scheme_t *sp = fmd_alloc(sizeof (fmd_scheme_t), FMD_SLEEP); in fmd_scheme_create() local
219 (void) pthread_mutex_init(&sp->sch_lock, NULL); in fmd_scheme_create()
220 (void) pthread_cond_init(&sp->sch_cv, NULL); in fmd_scheme_create()
221 (void) pthread_mutex_init(&sp->sch_opslock, NULL); in fmd_scheme_create()
223 sp->sch_next = NULL; in fmd_scheme_create()
224 sp->sch_name = fmd_strdup(name, FMD_SLEEP); in fmd_scheme_create()
225 sp->sch_dlp = NULL; in fmd_scheme_create()
226 sp->sch_refs = 1; in fmd_scheme_create()
227 sp->sch_loaded = 0; in fmd_scheme_create()
228 sp->sch_ops = _fmd_scheme_default_ops; in fmd_scheme_create()
[all …]
/titanic_44/usr/src/uts/common/fs/ufs/
H A Dufs_acl.c92 ufs_si_store(struct inode *ip, si_t *sp, int puship, cred_t *cr) in ufs_si_store() argument
112 ASSERT(ip->i_ufs_acl != sp); in ufs_si_store()
123 if (!sp->ausers && in ufs_si_store()
124 !sp->agroups && in ufs_si_store()
125 !sp->downer && in ufs_si_store()
126 !sp->dgroup && in ufs_si_store()
127 !sp->dother && in ufs_si_store()
128 sp->dclass.acl_ismask == 0 && in ufs_si_store()
129 !sp->dusers && in ufs_si_store()
130 !sp->dgroups) { in ufs_si_store()
[all …]
/titanic_44/usr/src/lib/libast/common/regex/
H A Dregdecomp.c35 detrie(Trie_node_t* x, Sfio_t* sp, char* b, char* p, char* e, int delimiter) in detrie() argument
51 sfputc(sp, x->c); in detrie()
54 sfputc(sp, '|'); in detrie()
55 sfputc(sp, '<'); in detrie()
56 sfwrite(sp, b, p - b); in detrie()
57 sfputc(sp, '>'); in detrie()
58 detrie(y, sp, b, p, e, delimiter); in detrie()
62 sfputc(sp, '|'); in detrie()
63 sfputc(sp, '{'); in detrie()
64 sfwrite(sp, b, p - b); in detrie()
[all …]
/titanic_44/usr/src/uts/sun/io/scsi/adapters/
H A Dfas_callbacks.c47 register struct fas_cmd *sp);
70 register struct fas_cmd *sp; in fas_empty_callbackQ() local
94 sp = qf; in fas_empty_callbackQ()
95 qf = sp->cmd_forw; in fas_empty_callbackQ()
96 (*sp->cmd_pkt->pkt_comp)(sp->cmd_pkt); in fas_empty_callbackQ()
122 fas_call_pkt_comp(register struct fas *fas, register struct fas_cmd *sp) in fas_call_pkt_comp() argument
127 ASSERT(sp != 0); in fas_call_pkt_comp()
128 ASSERT((sp->cmd_flags & CFLAG_COMPLETED) == 0); in fas_call_pkt_comp()
129 ASSERT((sp->cmd_flags & CFLAG_FREE) == 0); in fas_call_pkt_comp()
130 ASSERT(sp->cmd_flags & CFLAG_FINISHED); in fas_call_pkt_comp()
[all …]
/titanic_44/usr/src/uts/common/pcmcia/cs/
H A Dcs.c314 cs_socket_t *sp; in cs_deinit() local
344 if ((sp = cs_get_sp(sn)) != NULL) { in cs_deinit()
346 if (sp->client_list) { in cs_deinit()
400 if ((sp = cs_get_sp(sn)) != NULL) { in cs_deinit()
405 UNTIMEOUT(sp->rdybsy_tmo_id); in cs_deinit()
407 if (sp->init_state & SOCKET_INIT_STATE_MUTEX) in cs_deinit()
408 mutex_enter(&sp->lock); in cs_deinit()
409 sp->flags = SOCKET_UNLOAD_MODULE; in cs_deinit()
410 if (sp->init_state & SOCKET_INIT_STATE_SOFTINTR) in cs_deinit()
411 sp->init_state &= ~SOCKET_INIT_STATE_SOFTINTR; in cs_deinit()
[all …]
/titanic_44/usr/src/lib/libndmp/common/
H A Dlibndmp.c153 ndmp_session_info_t *sp; in ndmp_get_session_info() local
175 sp = *sinfo; in ndmp_get_session_info()
176 for (i = 0; i < *size; i++, sp++) { in ndmp_get_session_info()
182 sp->nsi_sid = ndmp_door_get_int32(dec_ctx); in ndmp_get_session_info()
183 sp->nsi_pver = ndmp_door_get_int32(dec_ctx); in ndmp_get_session_info()
184 sp->nsi_auth = ndmp_door_get_int32(dec_ctx); in ndmp_get_session_info()
185 sp->nsi_eof = ndmp_door_get_int32(dec_ctx); in ndmp_get_session_info()
186 sp->nsi_cl_addr = ndmp_door_get_string(dec_ctx); in ndmp_get_session_info()
192 sp->nsi_scsi.ns_scsi_open = ndmp_door_get_int32(dec_ctx); in ndmp_get_session_info()
193 sp->nsi_scsi.ns_adapter_name = ndmp_door_get_string(dec_ctx); in ndmp_get_session_info()
[all …]
/titanic_44/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c251 Shdr *sp; in fake_elf64() local
469 sp = (Shdr *)(elfdata + ep->e_shoff); in fake_elf64()
486 sp++; in fake_elf64()
491 sp->sh_name = SHSTR_NDX_shstrtab; in fake_elf64()
492 sp->sh_type = SHT_STRTAB; in fake_elf64()
493 sp->sh_flags = SHF_STRINGS; in fake_elf64()
494 sp->sh_addr = 0; in fake_elf64()
495 sp->sh_offset = off; in fake_elf64()
496 sp->sh_size = sizeof (shstr); in fake_elf64()
497 sp->sh_link = 0; in fake_elf64()
[all …]
/titanic_44/usr/src/lib/scsi/libses/common/
H A Dses_plugin.c36 ses_plugin_ctlpage_lookup(ses_plugin_t *sp, ses_snap_t *snap, int pagenum, in ses_plugin_ctlpage_lookup() argument
50 return (dp->spd_ctl_fill(sp, pp->ssp_page, in ses_plugin_ctlpage_lookup()
61 ses_plugin_t *sp; in ses_fill_node() local
63 for (sp = tp->st_plugin_first; sp != NULL; sp = sp->sp_next) { in ses_fill_node()
64 if (sp->sp_node_parse == NULL) in ses_fill_node()
67 if (sp->sp_node_parse(sp, np) != 0) in ses_fill_node()
78 ses_plugin_t *sp; in ses_node_ctl() local
99 for (sp = tp->st_plugin_first; sp != NULL; sp = sp->sp_next) { in ses_node_ctl()
100 if (sp->sp_node_ctl == NULL) in ses_node_ctl()
103 if (sp->sp_node_ctl(sp, np, op, nvl) != 0) { in ses_node_ctl()
[all …]
/titanic_44/usr/src/lib/libshell/common/sh/
H A Dsubshell.c106 register struct subshell *sp = subshell_data->pipe; in sh_subtmpfile() local
111 if((sp->tmpfd = fd = fcntl(1,F_DUPFD,10)) >= 0) in sh_subtmpfile()
143 if(sp && (shp->fdstatus[1]==IOCLOSE || (!shp->subshare && !(shp->fdstatus[1]&IONOSEEK)))) in sh_subtmpfile()
148 sp->pipefd = fds[0]; in sh_subtmpfile()
149 sh_fcntl(sp->pipefd,F_SETFD,FD_CLOEXEC); in sh_subtmpfile()
189 register struct subshell *sp = subshell_data; in sh_subfork() local
190 Shell_t *shp = sp->shp; in sh_subfork()
197 if(sp->pipe) in sh_subfork()
204 if(sp->subpid==0) in sh_subfork()
205 sp->subpid = pid; in sh_subfork()
[all …]

12345678910>>...49