Lines Matching defs:dstatp
2117 sbd_stat_t *dstatp = NULL;
2228 dstatp = (sbd_stat_t *)(void *)GETSTRUCT(char, sz);
2230 devstatp = &dstatp->s_stat[0];
2232 dstatp->s_board = bp->b_num;
2242 dstatp->s_rstate = bp->b_rstate;
2243 dstatp->s_ostate = bp->b_ostate;
2244 dstatp->s_cond = bp->b_cond = pstat.cond;
2245 dstatp->s_busy = bp->b_busy | pstat.busy;
2246 dstatp->s_time = bp->b_time;
2247 dstatp->s_power = pstat.powered;
2248 dstatp->s_assigned = bp->b_assigned = pstat.assigned;
2249 dstatp->s_nstat = nstat = 0;
2250 bcopy(&pstat.type[0], &dstatp->s_type[0], SBD_TYPE_LEN);
2251 bcopy(&pstat.info[0], &dstatp->s_info[0], SBD_MAX_INFO);
2263 dstatp->s_nstat += nstat;
2269 dstatp->s_nstat += nstat;
2275 dstatp->s_nstat += nstat;
2286 dstatp->s_nstat = dstatp->s_nstat > pnstat ? pnstat : dstatp->s_nstat;
2305 if ((caddr_t)&dstat32p->s_stat[dstatp->s_nstat] >
2306 ((caddr_t)dstatp) + sz) {
2313 #define _SBD_STAT(t, m) dstat32p->m = (t)dstatp->m
2323 bcopy(&dstatp->s_type[0], &dstat32p->s_type[0],
2325 bcopy(&dstatp->s_info[0], &dstat32p->s_info[0],
2329 for (i = 0; i < dstatp->s_nstat; i++) {
2330 sbd_dev_stat_t *dsp = &dstatp->s_stat[i];
2416 if (ddi_copyout((void *)dstatp, hp->h_sbdcmd.cmd_stat.s_statp,
2426 if (dstatp != NULL)
2427 FREESTRUCT(dstatp, char, sz);