Home
last modified time | relevance | path

Searched refs:csp (Results 1 – 25 of 59) sorted by relevance

123

/titanic_41/usr/src/uts/common/io/
H A Dbscbus.c293 #define BSCBUS_TX_PENDING(csp) ((csp)->cmdp > (csp)->cmdbuf) argument
384 bscbus_trace(struct bscbus_channel_state *csp, char code, const char *caller, in bscbus_trace() argument
391 if (csp->ssp->debug & (1 << (code-'@'))) { in bscbus_trace()
402 (void) strlog(csp->ssp->majornum, csp->ssp->instance, in bscbus_trace()
458 bscbus_put_reg(struct bscbus_channel_state *csp, uint_t reg, uint8_t val) in bscbus_put_reg() argument
460 if (csp->ch_handle != NULL && !csp->xio_fault) { in bscbus_put_reg()
461 ddi_put8(csp->ch_handle, in bscbus_put_reg()
462 csp->ch_regs + reg, val); in bscbus_put_reg()
467 bscbus_get_reg(struct bscbus_channel_state *csp, uint_t reg) in bscbus_get_reg() argument
471 if (csp->ch_handle != NULL && !csp->xio_fault) in bscbus_get_reg()
[all …]
H A Dttcompat.c348 struct copyresp *csp; in ttcompatwput() local
418 csp = (struct copyresp *)mp->b_rptr; in ttcompatwput()
420 switch (csp->cp_cmd) { in ttcompatwput()
434 if (csp->cp_rval != 0) { /* failure */ in ttcompatwput()
453 if (csp->cp_rval != 0) { /* failure */ in ttcompatwput()
1135 from_compat(compat_state_t *csp, struct termios *termiosp) in from_compat() argument
1143 if (csp->t_ospeed > CBAUD) { in from_compat()
1144 termiosp->c_cflag |= ((csp->t_ospeed - CBAUD - 1) & CBAUD) | in from_compat()
1147 termiosp->c_cflag |= csp->t_ospeed & CBAUD; in from_compat()
1150 if (csp->t_ospeed != csp->t_ispeed) { in from_compat()
[all …]
H A Dsad.c402 struct copyresp *csp; in apush_iocdata() local
413 csp = (struct copyresp *)mp->b_rptr; in apush_iocdata()
414 if (csp->cp_rval) { /* if there was an error */ in apush_iocdata()
424 if (SAD_VER(csp->cp_cmd) == 1) in apush_iocdata()
435 switch (SAD_CMD(csp->cp_cmd)) { in apush_iocdata()
439 if (((long)csp->cp_private) != GETSTRUCT) { in apush_iocdata()
442 (void *)csp->cp_private); in apush_iocdata()
457 if (SAD_VER(csp->cp_cmd) > 0) in apush_iocdata()
557 switch ((long)csp->cp_private) { in apush_iocdata()
575 if (SAD_VER(csp->cp_cmd) > 0) in apush_iocdata()
[all …]
H A Dgentty.c222 struct snode *csp; in syopen() local
240 csp = VTOS(VTOS(ttyvp)->s_commonvp); in syopen()
241 mutex_enter(&csp->s_lock); in syopen()
242 ASSERT(csp->s_count > 1); in syopen()
243 csp->s_count--; in syopen()
244 mutex_exit(&csp->s_lock); in syopen()
/titanic_41/usr/src/cmd/eqn/
H A Dtext.c21 int csp; variable
61 for (csp = psp = 0; (c = p1[psp++]) != '\0'; ) { in text()
65 if (csp > CSSIZE) in text()
69 cs[csp] = '\0'; in text()
99 cs[csp++] = c; in trans()
123 cs[csp++] = c; in trans()
147 cs[csp++] = c; cs[csp++] = c = p1[psp++]; cs[csp++] = p1[psp++]; in trans()
148 if (c == '(') cs[csp++] = p1[psp++]; in trans()
149 if (c == '*' && cs[csp-1] == '(') { in trans()
150 cs[csp++] = p1[psp++]; in trans()
[all …]
/titanic_41/usr/src/uts/common/fs/specfs/
H A Dspecvnops.c152 #define SN_HOLD(csp) { \ argument
153 mutex_enter(&csp->s_lock); \
154 csp->s_count++; \
155 mutex_exit(&csp->s_lock); \
158 #define SN_RELE(csp) { \ argument
159 mutex_enter(&csp->s_lock); \
160 csp->s_count--; \
161 ASSERT((csp->s_count > 0) || (csp->s_vnode->v_stream == NULL)); \
162 mutex_exit(&csp->s_lock); \
226 #define LOCK_CSP(csp) (void) spec_lockcsp(csp, 0, 1, 0) argument
[all …]
H A Dspecsubr.c120 struct snode *csp; in specvp() local
138 csp = kmem_cache_alloc(snode_cache, KM_SLEEP); in specvp()
190 cvp = get_cvp(dev, type, csp, &used_csp); in specvp()
200 kmem_cache_free(snode_cache, csp); in specvp()
206 kmem_cache_free(snode_cache, csp); in specvp()
284 struct snode *csp; in spec_assoc_fence() local
297 csp = VTOCS(vp); in spec_assoc_fence()
298 ASSERT(csp); in spec_assoc_fence()
301 mutex_enter(&csp->s_lock); in spec_assoc_fence()
303 csp->s_flag |= SFENCED; in spec_assoc_fence()
[all …]
/titanic_41/usr/src/uts/i86pc/io/dr/
H A Ddr_cpu.c596 dr_fill_cpu_stat(dr_cpu_unit_t *cp, drmach_status_t *pstat, sbd_cpu_stat_t *csp) in dr_fill_cpu_stat() argument
598 ASSERT(cp && pstat && csp); in dr_fill_cpu_stat()
601 bzero((caddr_t)csp, sizeof (*csp)); in dr_fill_cpu_stat()
602 csp->cs_type = cp->sbc_cm.sbdev_type; in dr_fill_cpu_stat()
603 csp->cs_unit = cp->sbc_cm.sbdev_unum; in dr_fill_cpu_stat()
604 (void) strlcpy(csp->cs_name, pstat->type, sizeof (csp->cs_name)); in dr_fill_cpu_stat()
605 csp->cs_cond = cp->sbc_cm.sbdev_cond; in dr_fill_cpu_stat()
606 csp->cs_busy = cp->sbc_cm.sbdev_busy | pstat->busy; in dr_fill_cpu_stat()
607 csp->cs_time = cp->sbc_cm.sbdev_time; in dr_fill_cpu_stat()
608 csp->cs_ostate = cp->sbc_cm.sbdev_ostate; in dr_fill_cpu_stat()
[all …]
/titanic_41/usr/src/uts/common/os/
H A Dclock_tick.c172 clock_tick_set_t *csp; in clock_tick_init_pre() local
217 csp = &clock_tick_set[i]; in clock_tick_init_pre()
218 csp->ct_start = i * clock_tick_ncpus; in clock_tick_init_pre()
219 csp->ct_scan = csp->ct_start; in clock_tick_init_pre()
220 csp->ct_end = csp->ct_start; in clock_tick_init_pre()
265 clock_tick_schedule_one(clock_tick_set_t *csp, int pending, processorid_t cid) in clock_tick_schedule_one() argument
280 ctp->ct_start = csp->ct_start; in clock_tick_schedule_one()
281 ctp->ct_end = csp->ct_end; in clock_tick_schedule_one()
282 ctp->ct_scan = csp->ct_scan; in clock_tick_schedule_one()
429 clock_tick_set_t *csp; in clock_tick_schedule() local
[all …]
H A Ddriver_lyr.c1265 struct snode *sp, *csp; in ldi_mlink_fp() local
1281 csp = VTOS(sp->s_commonvp); in ldi_mlink_fp()
1306 mutex_enter(&csp->s_lock); in ldi_mlink_fp()
1307 ASSERT(csp->s_count >= 1); in ldi_mlink_fp()
1308 csp->s_count++; in ldi_mlink_fp()
1309 mutex_exit(&csp->s_lock); in ldi_mlink_fp()
2008 struct snode *csp; in ldi_prop_op() local
2025 csp = VTOCS(handlep->lh_vp); in ldi_prop_op()
2026 mutex_enter(&csp->s_lock); in ldi_prop_op()
2027 if ((dip = csp->s_dip) != NULL) in ldi_prop_op()
[all …]
H A Dconsole.c127 struct snode *csp = VTOS(VTOS(fbvp)->s_commonvp); in console_hold() local
129 mutex_enter(&csp->s_lock); in console_hold()
130 console_busy = csp->s_mapcnt != 0; in console_hold()
132 if (csp->s_mapcnt == 0 && fbdip != NULL) { in console_hold()
155 struct snode *csp = VTOS(VTOS(fbvp)->s_commonvp); in console_rele() local
157 ASSERT(MUTEX_HELD(&csp->s_lock)); in console_rele()
158 if (csp->s_mapcnt == 0 && fbdip != NULL) in console_rele()
161 mutex_exit(&csp->s_lock); in console_rele()
/titanic_41/usr/src/uts/sun4u/ngdr/io/
H A Ddr_cpu.c656 dr_fill_cpu_stat(dr_cpu_unit_t *cp, drmach_status_t *pstat, sbd_cpu_stat_t *csp) in dr_fill_cpu_stat() argument
658 ASSERT(cp && pstat && csp); in dr_fill_cpu_stat()
661 bzero((caddr_t)csp, sizeof (*csp)); in dr_fill_cpu_stat()
662 csp->cs_type = cp->sbc_cm.sbdev_type; in dr_fill_cpu_stat()
663 csp->cs_unit = cp->sbc_cm.sbdev_unum; in dr_fill_cpu_stat()
664 (void) strncpy(csp->cs_name, pstat->type, sizeof (csp->cs_name)); in dr_fill_cpu_stat()
665 csp->cs_cond = cp->sbc_cm.sbdev_cond; in dr_fill_cpu_stat()
666 csp->cs_busy = cp->sbc_cm.sbdev_busy | pstat->busy; in dr_fill_cpu_stat()
667 csp->cs_time = cp->sbc_cm.sbdev_time; in dr_fill_cpu_stat()
668 csp->cs_ostate = cp->sbc_cm.sbdev_ostate; in dr_fill_cpu_stat()
[all …]
/titanic_41/usr/src/uts/sun4u/io/
H A Dsbd_cpu.c127 sbd_fill_cpu_stat(sbd_cpu_unit_t *cp, dev_info_t *dip, sbd_cpu_stat_t *csp) in sbd_fill_cpu_stat() argument
131 bzero((caddr_t)csp, sizeof (*csp)); in sbd_fill_cpu_stat()
132 csp->cs_type = cp->sbc_cm.sbdev_type; in sbd_fill_cpu_stat()
133 csp->cs_unit = cp->sbc_cm.sbdev_unum; in sbd_fill_cpu_stat()
134 namelen = sizeof (csp->cs_name); in sbd_fill_cpu_stat()
136 OBP_DEVICETYPE, (caddr_t)csp->cs_name, &namelen); in sbd_fill_cpu_stat()
137 csp->cs_busy = cp->sbc_cm.sbdev_busy; in sbd_fill_cpu_stat()
138 csp->cs_time = cp->sbc_cm.sbdev_time; in sbd_fill_cpu_stat()
139 csp->cs_ostate = cp->sbc_cm.sbdev_ostate; in sbd_fill_cpu_stat()
140 csp->cs_cpuid = cp->sbc_cpu_id; in sbd_fill_cpu_stat()
[all …]
/titanic_41/usr/src/uts/sun4u/starfire/sys/
H A Didn.h2227 #define IDN_CHAN_DOMAIN_REGISTER(csp, dom) \ argument
2228 (DOMAINSET_ADD((csp)->ch_reg_domset, (dom)))
2230 #define IDN_CHAN_DOMAIN_UNREGISTER(csp, dom) \ argument
2231 (DOMAINSET_DEL((csp)->ch_reg_domset, (dom)))
2233 #define IDN_CHAN_DOMAIN_IS_REGISTERED(csp, dom) \ argument
2234 (DOMAIN_IN_SET((csp)->ch_reg_domset, (dom)))
2236 #define IDN_CHANSVR_SCANSET_ADD_PENDING(csp, dom) \ argument
2242 for (_d = 0; _d < (csp)->ch_recv_domcount; _d++) { \
2243 if ((int)(((csp)->ch_recv_scanset_pending >> \
2249 if (_d == (csp)->ch_recv_domcount) { \
[all …]
/titanic_41/usr/src/cmd/sendmail/db/include/
H A Dbtree.h136 ((c)->csp = (c)->sp)
140 (c)->csp == (c)->esp ? __bam_stkgrow(c) : 0) == 0) { \
141 (c)->csp->page = pagep; \
142 (c)->csp->indx = page_indx; \
143 (c)->csp->lock = lock; \
149 ++(c)->csp; \
153 ((c)->csp == (c)->stack ? NULL : --(c)->csp)
179 EPG *csp; /* Current stack entry. */ member
/titanic_41/usr/src/common/mc/mc-amd/
H A Dmcamd_rowcol.c85 struct csprops *csp) in getcsprops() argument
88 cs, MCAMD_PROP_NUM, &csp->num, in getcsprops()
89 cs, MCAMD_PROP_BASE_ADDR, &csp->base, in getcsprops()
90 cs, MCAMD_PROP_MASK, &csp->mask, in getcsprops()
91 cs, MCAMD_PROP_TESTFAIL, &csp->testfail, in getcsprops()
92 cs, MCAMD_PROP_DIMMRANK, &csp->dimmrank, in getcsprops()
437 struct csprops csp; in mc_pa_to_offset() local
442 getcsprops(hdl, cs, "mc_dimm_offset", &csp) < 0) in mc_pa_to_offset()
445 csmode = MC_CS_MODE(mcp.csbnkmap_reg, csp.num); in mc_pa_to_offset()
455 offset_un.do_rank = (uint32_t)csp.dimmrank; in mc_pa_to_offset()
[all …]
/titanic_41/usr/src/uts/sun4u/starfire/io/
H A Didn_proto.c133 static void idn_chan_flush(idn_chansvr_t *csp);
4844 idn_chansvr_t *csp = NULL; in idn_send_data() local
4944 csp = &idn.chan_servers[channel]; in idn_send_data()
4945 IDN_CHAN_LOCK_SEND(csp); in idn_send_data()
4975 IDN_CHAN_UNLOCK_SEND(csp); in idn_send_data()
4976 csp = NULL; in idn_send_data()
4990 IDN_CHAN_UNLOCK_SEND(csp); in idn_send_data()
4991 csp = NULL; in idn_send_data()
5007 IDN_CHAN_UNLOCK_SEND(csp); in idn_send_data()
5028 IDN_CHAN_UNLOCK_SEND(csp); in idn_send_data()
[all …]
/titanic_41/usr/src/lib/libcpc/common/
H A Dlibcpc.c177 cpc_set_t *csp; in cpc_terminate() local
181 for (csp = cpc->cpc_sets; csp != NULL; csp = csp->cs_next) { in cpc_terminate()
182 if (csp->cs_pctx != NULL) in cpc_terminate()
183 pctx_terminate(csp->cs_pctx); in cpc_terminate()
218 cpc_set_t *csp, *prev; in cpc_set_destroy() local
226 for (csp = prev = cpc->cpc_sets; csp != NULL; csp = csp->cs_next) { in cpc_set_destroy()
227 if (csp == set) in cpc_set_destroy()
229 prev = csp; in cpc_set_destroy()
231 if (csp == NULL) { in cpc_set_destroy()
236 if (csp == cpc->cpc_sets) in cpc_set_destroy()
[all …]
/titanic_41/usr/src/ucblib/libcurses/
H A Drefresh.c156 char *nsp, *csp, *ce; in makech() local
173 csp = " "; in makech()
175 csp = &curscr->_y[wy + win->_begy][wx + win->_begx]; in makech()
191 if (*nsp != *csp) { in makech()
198 while (wx <= lch && *nsp != *csp) { in makech()
205 if (ce-- <= csp) in makech()
221 *csp++ = ' '; in makech()
250 (void) _putchar((*csp = *nsp) & in makech()
270 (void) _putchar((*csp++ = *nsp) & 0177); in makech()
302 while (wx <= lch && *nsp == *csp) { in makech()
[all …]
/titanic_41/usr/src/lib/libipmi/common/
H A Dipmi_entity.c123 ipmi_sdr_compact_sensor_t *csp = in ipmi_entity_sdr_parse() local
125 *id = csp->is_cs_entity_id; in ipmi_entity_sdr_parse()
126 *instance = csp->is_cs_entity_instance; in ipmi_entity_sdr_parse()
127 *logical = csp->is_cs_entity_logical; in ipmi_entity_sdr_parse()
292 ipmi_sdr_compact_sensor_t *csp; in ipmi_entity_present_sdr() local
298 csp = (ipmi_sdr_compact_sensor_t *)sdrp->is_record; in ipmi_entity_present_sdr()
299 number = csp->is_cs_number; in ipmi_entity_present_sdr()
300 sensor_type = csp->is_cs_type; in ipmi_entity_present_sdr()
301 reading_type = csp->is_cs_reading_type; in ipmi_entity_present_sdr()
411 ipmi_sdr_compact_sensor_t *csp; in ipmi_entity_present() local
[all …]
H A Dipmi_sdr.c242 ipmi_sdr_compact_sensor_t *csp = in ipmi_sdr_refresh() local
247 namelen = csp->is_cs_idlen; in ipmi_sdr_refresh()
248 type = csp->is_cs_idtype; in ipmi_sdr_refresh()
249 name = csp->is_cs_idstring; in ipmi_sdr_refresh()
251 tmp = LE_IN16(&csp->is_cs_assert_mask); in ipmi_sdr_refresh()
252 (void) memcpy(&csp->is_cs_assert_mask, &tmp, in ipmi_sdr_refresh()
255 tmp = LE_IN16(&csp->is_cs_deassert_mask); in ipmi_sdr_refresh()
256 (void) memcpy(&csp->is_cs_deassert_mask, &tmp, in ipmi_sdr_refresh()
259 tmp = LE_IN16(&csp->is_cs_reading_mask); in ipmi_sdr_refresh()
260 (void) memcpy(&csp->is_cs_reading_mask, &tmp, in ipmi_sdr_refresh()
/titanic_41/usr/src/cmd/fm/ipmitopo/common/
H A Dipmitopo.c47 ipmi_sdr_compact_sensor_t *csp; in sdr_print() local
60 csp = (ipmi_sdr_compact_sensor_t *)sdrp->is_record; in sdr_print()
61 sensor_number = csp->is_cs_number; in sdr_print()
62 sensor_type = csp->is_cs_type; in sdr_print()
63 reading_type = csp->is_cs_reading_type; in sdr_print()
/titanic_41/usr/src/uts/intel/io/mc-amd/
H A Dmcamd_drv.c262 nvlist_t **csp = &cslist[nelem]; in mc_nvl_add_cslist() local
265 (void) nvlist_alloc(csp, NV_UNIQUE_NAME, KM_SLEEP); in mc_nvl_add_cslist()
266 mc_nvl_add_prop(*csp, mccs, MCAMD_PROP_NUM, 0); in mc_nvl_add_cslist()
267 mc_nvl_add_prop(*csp, mccs, MCAMD_PROP_BASE_ADDR, 0); in mc_nvl_add_cslist()
268 mc_nvl_add_prop(*csp, mccs, MCAMD_PROP_MASK, 0); in mc_nvl_add_cslist()
269 mc_nvl_add_prop(*csp, mccs, MCAMD_PROP_SIZE, 0); in mc_nvl_add_cslist()
276 mc_nvl_add_prop(*csp, mccs, MCAMD_PROP_CSDIMM1, 1); in mc_nvl_add_cslist()
279 (void) nvlist_add_string(*csp, "dimm1-csname", csname); in mc_nvl_add_cslist()
283 mc_nvl_add_prop(*csp, mccs, MCAMD_PROP_CSDIMM2, 1); in mc_nvl_add_cslist()
286 (void) nvlist_add_string(*csp, "dimm2-csname", csname); in mc_nvl_add_cslist()
[all …]
/titanic_41/usr/src/cmd/sendmail/db/btree/
H A Dbt_delete.c334 h = cp->csp[-1].page;
339 (void)memp_fput(dbp->mpf, cp->csp[-1].page, 0);
340 (void)__BT_TLPUT(dbc, cp->csp[-1].lock);
341 (void)memp_fput(dbp->mpf, cp->csp[0].page, 0);
342 (void)__BT_TLPUT(dbc, cp->csp[0].lock);
349 ++cp->csp;
360 for (h = cp->csp[-1].page;;) {
435 if ((ret = __db_relink(dbc, DB_REM_PAGE, cp->csp->page, NULL, 1)) != 0)
464 while (++epg <= cp->csp) {
/titanic_41/usr/src/uts/common/io/ppp/spppcomp/
H A Dspppcomp.c938 struct ppp_comp_stats *csp; in spppcomp_getcstat() local
951 csp = (struct ppp_comp_stats *)mpnext->b_wptr; in spppcomp_getcstat()
953 bzero((caddr_t)csp, sizeof (struct ppp_comp_stats)); in spppcomp_getcstat()
956 (*cp->cp_xcomp->comp_stat)(cp->cp_xstate, &csp->c); in spppcomp_getcstat()
959 (*cp->cp_rcomp->decomp_stat)(cp->cp_rstate, &csp->d); in spppcomp_getcstat()
1717 struct ppp_comp_stats csp; in spppcomp_kstat_update() local
1724 bzero((caddr_t)&csp, sizeof (struct ppp_comp_stats)); in spppcomp_kstat_update()
1729 (*cp->cp_xcomp->comp_stat)(cp->cp_xstate, &csp.c); in spppcomp_kstat_update()
1732 (*cp->cp_rcomp->decomp_stat)(cp->cp_rstate, &csp.d); in spppcomp_kstat_update()
1752 cpkp->out_uncomp_bytes.value.ui32 = csp.c.unc_bytes; in spppcomp_kstat_update()
[all …]

123