Lines Matching defs:stat
41 #include <sys/stat.h>
1080 drmach_board_status(drmachid_t id, drmach_status_t *stat)
1089 stat->assigned = bp->assigned;
1090 stat->powered = bp->powered;
1091 stat->busy = 0; /* assume not busy */
1092 stat->configured = 0; /* assume not configured */
1093 stat->empty = 0;
1094 stat->cond = bp->cond = SBD_COND_OK;
1095 (void) strncpy(stat->type, "System Brd", sizeof (stat->type));
1096 stat->info[0] = '\0';
1111 stat->busy |= d_stat.busy;
1112 stat->configured |= d_stat.configured;
1728 drmach_status_t stat;
1737 err = drmach_board_status(id, &stat);
1740 if (stat.configured || stat.busy)
1783 drmach_status_t stat;
1795 err = drmach_board_status(id, &stat);
1800 if (stat.configured || stat.busy) {
1916 drmach_cpu_status(drmachid_t id, drmach_status_t *stat)
1925 stat->assigned = dp->bp->assigned;
1926 stat->powered = dp->bp->powered;
1928 stat->configured = (cpu_get(cp->cpuid) != NULL);
1930 stat->busy = dp->busy;
1931 (void) strncpy(stat->type, dp->type, sizeof (stat->type));
1932 stat->info[0] = '\0';
2187 drmach_io_status(drmachid_t id, drmach_status_t *stat)
2200 stat->assigned = dp->bp->assigned;
2201 stat->powered = dp->bp->powered;
2202 stat->configured = (configured != 0);
2203 stat->busy = dp->busy;
2204 (void) strncpy(stat->type, dp->type, sizeof (stat->type));
2205 stat->info[0] = '\0';
2460 drmach_mem_status(drmachid_t id, drmach_status_t *stat)
2483 stat->assigned = dp->dev.bp->assigned;
2484 stat->powered = dp->dev.bp->powered;
2485 stat->configured = (ml != NULL);
2486 stat->busy = dp->dev.busy;
2487 (void) strncpy(stat->type, dp->dev.type, sizeof (stat->type));
2488 stat->info[0] = '\0';
2649 drmach_status(drmachid_t id, drmach_status_t *stat)
2661 err = cp->status(id, stat);
2669 drmach_i_status(drmachid_t id, drmach_status_t *stat)
2677 return (cp->status(id, stat));
3142 prog->critical->stat[cpuid] = FMEM_LOOP_COPY_READY;
3152 if (prog->critical->stat[i] ==
3166 prog->data->fmem_status.stat = FMEM_LOOP_COPY_READY;
3171 if (prog->data->fmem_status.stat ==
3227 prog->stat->nbytes[cpuid] += 32;
3237 prog->critical->stat[cpuid] = FMEM_LOOP_COPY_DONE;
3264 if (prog->critical->stat[i] ==
3287 last = prog->stat->nbytes[i];
3291 now = prog->stat->nbytes[i];
3298 if (prog->critical->stat[i] ==
3322 prog->critical->stat[cpuid] = FMEM_LOOP_FMEM_READY;
3323 prog->data->fmem_status.stat = FMEM_LOOP_FMEM_READY;
3338 (void *)&(prog->critical->stat[cpuid]));
3546 * and stat inside the copy rename structure are mapped to this
3571 prog->stat = (drmach_cr_stat_t *)(wp + DRMACH_FMEM_STAT_PAGE *
3777 prog->stat->nbytes[i] = 0;
3947 prog->critical->stat[cpuid] = FMEM_LOOP_EXIT;
3964 prog->critical->stat[cpuid] = FMEM_LOOP_EXIT;
4055 prog->critical->stat[cpuid] = FMEM_LOOP_START;
4126 last = prog->stat->nbytes[cpuid];
4140 if (prog->critical->stat[cpuid] == FMEM_LOOP_EXIT)
4144 now = prog->stat->nbytes[cpuid];
4147 if (prog->critical->stat[cpuid] ==