Home
last modified time | relevance | path

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

12345678910>>...45

/illumos-gate/usr/src/uts/common/io/sfxge/
H A Dsfxge.c80 sfxge_t *sp; in sfxge_create() local
87 sp = kmem_zalloc(sizeof (*sp), KM_SLEEP); in sfxge_create()
88 sp->s_dip = dip; in sfxge_create()
95 sp->s_mtu = ddi_prop_get_int(DDI_DEV_T_ANY, sp->s_dip, in sfxge_create()
139 &(sp->s_bar), &(sp->s_nic_lock), &enp)) != 0) in sfxge_create()
200 *spp = sp; in sfxge_create()
267 sp->s_mtu = 0; in sfxge_create()
275 kmem_free(sp, sizeof (*sp)); in sfxge_create()
594 sp->s_mtu = 0; in sfxge_destroy()
600 kmem_free(sp, sizeof (*sp)); in sfxge_destroy()
[all …]
H A Dsfxge_pci.c126 if (pci_config_setup(sp->s_dip, &(sp->s_pci_handle)) != DDI_SUCCESS) { in sfxge_pci_init()
131 sp->s_pci_venid = pci_config_get16(sp->s_pci_handle, PCI_CONF_VENID); in sfxge_pci_init()
132 sp->s_pci_devid = pci_config_get16(sp->s_pci_handle, PCI_CONF_DEVID); in sfxge_pci_init()
133 if ((rc = efx_family(sp->s_pci_venid, sp->s_pci_devid, in sfxge_pci_init()
146 sp->s_pcie_nlanes = 1; in sfxge_pci_init()
150 sp->s_pcie_nlanes = 2; in sfxge_pci_init()
154 sp->s_pcie_nlanes = 4; in sfxge_pci_init()
158 sp->s_pcie_nlanes = 8; in sfxge_pci_init()
200 sp->s_pcie_nlanes); in sfxge_pci_init()
210 sp->s_pci_handle = NULL; in sfxge_pci_init()
[all …]
H A Dsfxge_gld_v3.c71 (void) mac_maxsdu_update(sp->s_mh, sp->s_mtu); in sfxge_gld_mtu_update()
89 _NOTE(ARGUNUSED(sp)) in sfxge_gld_rx_push()
117 sfxge_t *sp = arg; in sfxge_gld_getstat() local
340 sfxge_t *sp = arg; in sfxge_gld_start() local
357 sfxge_t *sp = arg; in sfxge_gld_stop() local
359 sfxge_stop(sp); in sfxge_gld_stop()
365 sfxge_t *sp = arg; in sfxge_gld_setpromisc() local
374 sfxge_t *sp = arg; in sfxge_gld_multicst() local
397 sfxge_t *sp = arg; in sfxge_gld_unicst() local
1285 sp->s_mh = mh; in sfxge_gld_register()
[all …]
/illumos-gate/usr/src/uts/common/io/audio/impl/
H A Daudio_client.c183 ASSERT((sp->s_head - sp->s_tail) <= sp->s_nframes); in auclnt_get_count()
200 sp->s_tidx -= sp->s_nframes; in auclnt_consume()
264 n = max(n, sp->s_nframes - (sp->s_head - sp->s_tail)); in auclnt_produce()
268 sp->s_hidx -= sp->s_nframes; in auclnt_produce()
468 ((sp->s_head - sp->s_tail) > sp->s_fragfr)) { in auclnt_write()
496 if ((sp->s_head - sp->s_tail) > sp->s_fragfr) { in auclnt_chpoll()
505 if ((sp->s_nframes - (sp->s_head - sp->s_tail)) > in auclnt_chpoll()
872 sp->s_tail = sp->s_head; in auclnt_flush()
873 sp->s_tidx = sp->s_hidx; in auclnt_flush()
875 sp->s_head = sp->s_tail; in auclnt_flush()
[all …]
H A Daudio_format.c61 grc3_convert(sp->s_src_state[ch], sp->s_src_quality, in do_src()
96 len = do_src(sp, src, dst, len, sp->s_cnv_src_nchan); in cnv_srconly()
516 if (sp->s_cnv_src_rate != sp->s_cnv_dst_rate && in cnv_default()
597 if (sp->s_cnv_src_rate != sp->s_cnv_dst_rate && in cnv_default()
598 sp->s_cnv_src_nchan > sp->s_cnv_dst_nchan) { in cnv_default()
715 if (sp == &sp->s_client->c_ostream) { in auimpl_format_setup()
872 kmem_free(sp->s_cnv_buf0, sp->s_cnv_max); in auimpl_format_setup()
874 kmem_free(sp->s_cnv_buf1, sp->s_cnv_max); in auimpl_format_setup()
893 sp->s_nbytes = sp->s_nframes * framesz; in auimpl_format_setup()
908 sp->s_tail = sp->s_head = 0; in auimpl_format_setup()
[all …]
/illumos-gate/usr/src/cmd/svc/configd/
H A Dsnapshot.c56 sp = uu_zalloc(sizeof (*sp)); in snapshot_alloc()
62 return (sp); in snapshot_alloc()
70 assert(sp->rs_refcnt == 0 && sp->rs_childref == 0); in snapshot_free()
88 uu_free(sp); in snapshot_free()
108 sp->rs_refcnt == 0 && sp->rs_childref == 0); in rc_snapshot_rele()
134 sp->rs_refcnt == 0 && sp->rs_childref == 0); in rc_snaplevel_rele()
164 for (sp = bp->sb_head; sp != NULL; sp = sp->rs_hash_next) { in snapshot_lookup_unlocked()
167 return (sp); in snapshot_lookup_unlocked()
224 (void) pthread_cond_wait(&sp->rs_cv, &sp->rs_lock); in rc_snapshot_get()
233 *snpp = sp; in rc_snapshot_get()
[all …]
/illumos-gate/usr/src/uts/common/os/
H A Dsession.c131 sess_t *sp; in tty_hold() local
163 if (!cv_wait_sig(&sp->s_exit_cv, &sp->s_lock)) in tty_hold()
179 sp->s_cnt++; in tty_hold()
180 sp->s_ref++; in tty_hold()
183 return (sp); in tty_hold()
289 sp->s_dev = sp->s_vp->v_rdev; in sess_ctty_set()
301 sess_t *sp; in strctty() local
353 if (!cv_wait_sig(&sp->s_cnt_cv, &sp->s_lock)) in strctty()
475 *spp = sp; in freectty_lock()
607 cv_wait(&sp->s_cnt_cv, &sp->s_lock); in freectty()
[all …]
/illumos-gate/usr/src/uts/common/fs/sockfs/
H A Dsockparams.c133 sp->sp_type, sp->sp_protocol); in sockparams_kstat_init()
142 sp->sp_kstat->ks_data = &sp->sp_stats; in sockparams_kstat_init()
144 sp->sp_kstat->ks_private = sp; in sockparams_kstat_init()
264 kmem_free(sp, sizeof (*sp)); in sockparams_create()
328 kmem_free(sp, sizeof (*sp)); in sockparams_destroy()
366 for (sp = list_head(list); sp != NULL; sp = list_next(list, sp)) { in sockparams_find()
686 sp = list_next(&sphead, sp)) { in solookup()
775 sp = list_next(list, sp)) { in sockparams_filter_cleanup_impl()
808 sp = list_next(list, sp)) { in sockparams_new_filter_impl()
856 sp = list_next(&sphead, sp)) { in sockparams_copyout_socktable()
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddt_strtab.c53 sp->str_nbufs++; in dt_strtab_grow()
56 sp->str_bufs[sp->str_nbufs - 1] = sp->str_ptr; in dt_strtab_grow()
69 if (sp == NULL) in dt_strtab_create()
91 return (sp); in dt_strtab_create()
119 free(sp); in dt_strtab_destroy()
154 if (buf == sp->str_bufs[b] + sp->str_bufsz) in dt_strtab_compare()
157 resid = sp->str_bufs[b] + sp->str_bufsz - buf; in dt_strtab_compare()
181 if (sp->str_ptr == sp->str_bufs[b] + sp->str_bufsz) { in dt_strtab_copyin()
187 resid = sp->str_bufs[b] + sp->str_bufsz - sp->str_ptr; in dt_strtab_copyin()
200 free(sp->str_bufs[--sp->str_nbufs]); in dt_strtab_copyin()
[all …]
/illumos-gate/usr/src/cmd/saf/
H A Dreadtab.c83 for (sp = Sactab; sp; sp = sp->sc_next)
129 sp->sc_sstate = sp->sc_lstate = sp->sc_pstate = NOTRUNNING;
131 parse(p, sp);
132 return(sp);
198 free(sp);
268 sp = sp->sc_next; in purge()
297 tsp = sp; in purge()
308 sp = sp->sc_next; in purge()
358 for (sp = Sactab; sp; sp = sp->sc_next) { in dump_table()
359 …size = strlen(sp->sc_tag) + strlen(sp->sc_type) + strlen(sp->sc_cmd) + strlen(sp->sc_comment) + SL… in dump_table()
[all …]
H A Dsac.c238 for (sp = Sactab; sp; sp = sp->sc_next) { in startpms()
241 sp->sc_sstate = sp->sc_pstate = UNKNOWN; in startpms()
275 for (sp = Sactab; sp; sp = sp->sc_next) { in startpms()
317 if (sp && (sp->sc_sstate == UNKNOWN)) { in readutmpx()
332 for (sp = Sactab; sp; sp = sp->sc_next) { in readutmpx()
438 sp->sc_sstate = sp->sc_lstate; in startpm()
775 for (sp = Sactab; sp; sp = sp->sc_next) { in pollpms()
791 if (sp->sc_sstate == sp->sc_pstate) { in pollpms()
844 for (sp = Sactab; sp; sp = sp->sc_next) { in reap()
904 if (sp->sc_rscnt < sp->sc_rsmax) { in pollfail()
[all …]
/illumos-gate/usr/src/uts/common/io/ib/clients/rds/
H A Drdsib_ep.c325 sp = sp->session_nextp; in rds_session_lkup()
526 sp, sp->session_state); in rds_session_reinit()
538 sp, sp->session_state); in rds_session_reinit()
575 sp, &sp->session_ctrlep); in rds_session_reinit()
580 sp, &sp->session_ctrlep); in rds_session_reinit()
587 sp, &sp->session_dataep); in rds_session_reinit()
592 sp, &sp->session_dataep); in rds_session_reinit()
673 sp, sp->session_myip, sp->session_remip); in rds_session_connect()
1131 sp = sp->session_nextp; in rds_close_sessions()
1555 sp = sp->session_nextp; in rds_resume_port()
[all …]
H A Drdsib_cm.c104 rds_session_t *sp; in rds_handle_cm_req() local
191 if (sp == NULL) { in rds_handle_cm_req()
237 RDS_DPRINTF2(LABEL, "SP(%p) state: %d", sp, sp->session_state); in rds_handle_cm_req()
305 sp); in rds_handle_cm_req()
387 "state: %d", sp, sp->session_state); in rds_handle_cm_req()
520 sp = ep->ep_sp; in rds_handle_cm_conn_est()
546 sp = ep->ep_sp; in rds_handle_cm_conn_closed()
600 "SP(%p) - Unexpected state: %d", sp, sp->session_state); in rds_handle_cm_conn_closed()
653 sp = ep->ep_sp; in rds_handle_cm_event_failure()
658 "SP(%p) - state: %d", sp, sp->session_state); in rds_handle_cm_event_failure()
[all …]
/illumos-gate/usr/src/uts/sun4v/io/
H A Dds_pri.c356 sp->req_id = 0; in ds_pri_attach()
379 if (sp->ds_pri) in ds_pri_attach()
380 kmem_free(sp->ds_pri, sp->ds_pri_len); in ds_pri_attach()
417 if (sp != NULL && sp->ds_pri_len != 0) in ds_pri_detach()
418 kmem_free(sp->ds_pri, sp->ds_pri_len); in ds_pri_detach()
460 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_open()
545 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_read()
628 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_ioctl()
659 if (cv_wait_sig(&sp->cv, &sp->lock) == 0) { in ds_pri_ioctl()
695 kmem_free(sp->ds_pri, sp->ds_pri_len); in request_pri()
[all …]
H A Dds_snmp.c455 sp->req_id = 0; in ds_snmp_create_state()
484 kmem_free(sp->data, sp->data_len); in ds_snmp_destroy_state()
590 if (cv_wait_sig(&sp->state_cv, &sp->lock) == 0) { in ds_snmp_read()
625 kmem_free(sp->data, sp->data_len); in ds_snmp_read()
696 if (cv_wait_sig(&sp->state_cv, &sp->lock) == 0) { in ds_snmp_write()
802 "waiting for data\n", sp->state, sp->sc_reset); in ds_snmp_ioctl()
803 if (cv_wait_sig(&sp->state_cv, &sp->lock) == 0) { in ds_snmp_ioctl()
810 "out of wait!\n", sp->state, sp->sc_reset); in ds_snmp_ioctl()
852 sp->data, sp->data_len); in ds_snmp_ioctl()
853 kmem_free(sp->data, sp->data_len); in ds_snmp_ioctl()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dstats.c102 if (sp == NULL) in stats_delete()
106 if (s == sp) in stats_delete()
122 FREE(sp); in stats_delete()
137 if (sp == NULL) in stats_counter_bump()
148 if (sp == NULL) in stats_counter_add()
159 if (sp == NULL) in stats_counter_reset()
239 for (sp = Statslist; sp; sp = sp->next) in stats_publish()
243 sp->u.counter, sp->desc); in stats_publish()
247 if (sp->u.elapse.start && sp->u.elapse.stop) { in stats_publish()
249 sp->u.elapse.stop - sp->u.elapse.start; in stats_publish()
[all …]
/illumos-gate/usr/src/uts/common/fs/specfs/
H A Dspecsubr.c197 sinsert(sp); in specvp()
259 sinsert(sp); in makespecvp()
461 for (sp = stable[i]; sp != NULL; sp = sp->s_next) { in devi_stillreferenced()
488 ASSERT(sp); in spec_devi_open_count()
499 if (sp->s_commonvp != vp || (dip = sp->s_dip) == NULL) in spec_devi_open_count()
503 count = sp->s_count + sp->s_mapcnt; in spec_devi_open_count()
645 sp->s_next = stable[STABLEHASH(sp->s_dev)]; in sinsert()
646 stable[STABLEHASH(sp->s_dev)] = sp; in sinsert()
916 for (sp = stable[i]; sp; sp = sp->s_next) { in spec_snode_walk()
996 for (sp = stable[i]; sp != NULL; sp = sp->s_next) { in spec_fence_snode()
[all …]
/illumos-gate/usr/src/uts/common/fs/ufs/
H A Dufs_acl.c204 ASSERT(sp->s_ref >= 0 && sp->s_ref <= sp->s_use); in ufs_si_store()
392 ASSERT(!sp->s_use && !sp->s_ref && !(sp->s_flags & SI_CACHED)); in ufs_si_store()
456 ASSERT(sp->s_ref >= 0 && sp->s_ref <= sp->s_use); in ufs_si_load()
576 ASSERT(sp->s_ref >= 0 && sp->s_ref <= sp->s_use); in ufs_si_load()
1422 ASSERT(sp->s_ref && sp->s_use); in ufs_acl_cp()
1676 ASSERT(sp->s_ref >= 0 && sp->s_ref <= sp->s_use); in ufs_si_free()
1689 ASSERT(sp->s_ref >= 0 && sp->s_ref <= sp->s_use); in ufs_si_free()
1716 for (sp = si_cachei[SI_HASH(ip->i_shadow)]; sp; sp = sp->s_forw) in si_cachei_get()
1759 for (sp = si_cachea[SI_HASH(spi->s_signature)]; sp; sp = sp->s_next) { in si_cachea_get()
1798 sp->s_signature = si_signature(sp); in si_cache_put()
[all …]
/illumos-gate/usr/src/contrib/ast/src/lib/libast/regex/
H A Dregdecomp.c51 sfputc(sp, x->c); in detrie()
54 sfputc(sp, '|'); in detrie()
55 sfputc(sp, '<'); in detrie()
57 sfputc(sp, '>'); in detrie()
62 sfputc(sp, '|'); in detrie()
63 sfputc(sp, '{'); in detrie()
65 sfputc(sp, '}'); in detrie()
96 sfputc(sp, '|'); in decomp()
296 sfputc(sp, c); in decomp()
396 Sfio_t* sp; in regdecomp() local
[all …]
/illumos-gate/usr/src/contrib/ast/src/cmd/ksh93/sh/
H A Dsubshell.c227 for(sp = (struct subshell*)subshell_data; sp; sp=sp->prev) in nv_subsaved()
391 if(!sp || sp->shp->curenv==0) in sh_subaliastree()
397 sp->shp->alias_tree = sp->salias; in sh_subaliastree()
409 if(!sp || sp->shp->curenv==0) in sh_subfuntree()
415 sp->shp->fun_tree = sp->sfun; in sh_subfuntree()
460 sp->coutpipe = sp->cpipe = -1; in sh_subjobcheck()
463 sp = sp->prev; in sh_subjobcheck()
489 memset((char*)sp, 0, sizeof(*sp)); in sh_subshell()
604 sp->pipe = sp; in sh_subshell()
625 sp->pipe = sp->prev->pipe; in sh_subshell()
[all …]
/illumos-gate/usr/src/cmd/fm/fmd/common/
H A Dfmd_scheme.c243 sp->sch_refs = 1; in fmd_scheme_create()
247 return (sp); in fmd_scheme_create()
274 fmd_scheme_t *sp; in fmd_scheme_hash_create() local
299 for (sp = shp->sch_hash[i]; sp != NULL; sp = np) { in fmd_scheme_hash_destroy()
321 for (sp = shp->sch_hash[i]; sp != NULL; sp = np) { in fmd_scheme_hash_trygc()
353 for (sp = shp->sch_hash[h]; sp != NULL; sp = sp->sch_next) { in fmd_scheme_hash_xlookup()
358 return (sp); in fmd_scheme_hash_xlookup()
430 sp->sch_refs++; in fmd_scheme_hash_lookup()
438 (void) pthread_cond_wait(&sp->sch_cv, &sp->sch_lock); in fmd_scheme_hash_lookup()
440 sp->sch_refs++; in fmd_scheme_hash_lookup()
[all …]
/illumos-gate/usr/src/uts/common/pcmcia/cs/
H A Dcs.c428 cv_wait(&sp->caller_cv, &sp->client_lock); in cs_deinit()
2513 sp->events |= ss_to_cs_events(sp, event); in cs_event()
2730 cv_wait(&sp->reset_cv, &sp->lock); in cs_card_insertion()
3263 cv_wait(&sp->thread_cv, &sp->client_lock); in cs_event_thread()
7877 cv_wait(&sp->caller_cv, &sp->client_lock);
7902 cs_socket_t *sp = cs_globals.sp;
7926 cs_socket_t *sp = cs_globals.sp;
7931 sp = sp->next;
7989 cs_globals.sp = sp;
8277 cv_wait(&sp->caller_cv, &sp->client_lock);
[all …]
/illumos-gate/usr/src/uts/sun/io/scsi/adapters/
H A Dfas_callbacks.c94 sp = qf; in fas_empty_callbackQ()
96 (*sp->cmd_pkt->pkt_comp)(sp->cmd_pkt); in fas_empty_callbackQ()
127 ASSERT(sp != 0); in fas_call_pkt_comp()
134 ASSERT(sp != fas->f_active[sp->cmd_slot]->f_slot[sp->cmd_tag[1]]); in fas_call_pkt_comp()
144 if (sp->cmd_pkt->pkt_comp && !(sp->cmd_flags & CFLAG_CMDARQ)) { in fas_call_pkt_comp()
149 Tgt(sp), Lun(sp), (void *)sp, in fas_call_pkt_comp()
155 Tgt(sp), Lun(sp)); in fas_call_pkt_comp()
168 fas->f_c_qb = sp; in fas_call_pkt_comp()
170 dp->cmd_forw = sp; in fas_call_pkt_comp()
180 } else if ((sp->cmd_flags & CFLAG_CMDARQ) && sp->cmd_pkt->pkt_comp) { in fas_call_pkt_comp()
[all …]
/illumos-gate/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()
206 sp->nsi_tape.nt_dev_name = in ndmp_get_session_info()
226 if ((sp->nsi_pver == NDMP_V3) || (sp->nsi_pver == NDMP_V4)) { in ndmp_get_session_info()
246 sp->nsi_data.nd_env = in ndmp_get_session_info()
253 ep = sp->nsi_data.nd_env; in ndmp_get_session_info()
320 ndmp_session_info_t *sp; in ndmp_get_session_info_free() local
326 sp = sinfo; in ndmp_get_session_info_free()
328 free(sp->nsi_cl_addr); in ndmp_get_session_info_free()
334 if ((sp->nsi_pver == NDMP_V3) || (sp->nsi_pver == NDMP_V4)) in ndmp_get_session_info_free()
[all …]
/illumos-gate/usr/src/lib/libproc/common/
H A DPsymtab_machelf32.c488 sp++; in fake_elf64()
506 sp++; in fake_elf64()
522 sp->sh_info = sp->sh_size / sizeof (Sym); in fake_elf64()
527 sp->sh_addr) != sp->sh_size) { in fake_elf64()
534 sp++; in fake_elf64()
554 sp->sh_addr) != sp->sh_size) { in fake_elf64()
561 sp++; in fake_elf64()
580 sp->sh_addr) != sp->sh_size) { in fake_elf64()
585 sp++; in fake_elf64()
605 sp++; in fake_elf64()
[all …]

12345678910>>...45