Lines Matching defs:dstatp
2149 sbd_stat_t *dstatp = NULL;
2260 dstatp = (sbd_stat_t *)GETSTRUCT(char, sz);
2262 devstatp = &dstatp->s_stat[0];
2264 dstatp->s_board = bp->b_num;
2274 dstatp->s_rstate = bp->b_rstate;
2275 dstatp->s_ostate = bp->b_ostate;
2276 dstatp->s_cond = bp->b_cond = pstat.cond;
2277 dstatp->s_busy = bp->b_busy | pstat.busy;
2278 dstatp->s_time = bp->b_time;
2279 dstatp->s_power = pstat.powered;
2280 dstatp->s_assigned = bp->b_assigned = pstat.assigned;
2281 dstatp->s_nstat = nstat = 0;
2282 bcopy(&pstat.type[0], &dstatp->s_type[0], SBD_TYPE_LEN);
2283 bcopy(&pstat.info[0], &dstatp->s_info[0], SBD_MAX_INFO);
2295 dstatp->s_nstat += nstat;
2301 dstatp->s_nstat += nstat;
2307 dstatp->s_nstat += nstat;
2318 dstatp->s_nstat = dstatp->s_nstat > pnstat ? pnstat : dstatp->s_nstat;
2338 if ((caddr_t)&dstat32p->s_stat[dstatp->s_nstat] >
2339 ((caddr_t)dstatp) + sz) {
2346 #define _SBD_STAT(t, m) dstat32p->m = (t)dstatp->m
2356 bcopy(&dstatp->s_type[0], &dstat32p->s_type[0],
2358 bcopy(&dstatp->s_info[0], &dstat32p->s_info[0],
2362 for (i = 0; i < dstatp->s_nstat; i++) {
2363 sbd_dev_stat_t *dsp = &dstatp->s_stat[i];
2449 if (ddi_copyout((void *)dstatp, hp->h_sbdcmd.cmd_stat.s_statp,
2459 if (dstatp != NULL)
2460 FREESTRUCT(dstatp, char, sz);