Lines Matching defs:sc

327 sysc_cmd_init(sysc_cfga_cmd_t *sc, char *outputstr, int force)
329 sc->force = force;
330 sc->outputstr = outputstr;
331 sc->errtype = SYSC_ERR_DEFAULT;
344 cfga_err(sysc_cfga_cmd_t *sc, char **errstring, ...)
446 if (sc)
447 i = cfga_sid(errno, (int)sc->errtype);
451 DBG4("cfga_sid(%d,%d)=%d\n", errno, sc->errtype, i);
887 sysc_cfga_cmd_t *sc, sysc_cmd;
934 sc = &sysc_cmd;
935 sysc_cmd_init(sc, outputstr, force);
949 } else if (ioctl(fd, SYSC_CFGA_CMD_CONNECT, sc) == -1)
950 cfga_err(sc, errstring, CMD_CONNECT, 0);
961 (ioctl(fd, SYSC_CFGA_CMD_UNCONFIGURE, sc) == -1)) {
962 cfga_err(sc, errstring, CMD_UNCONFIGURE, 0);
966 sysc_cmd_init(sc, outputstr, force);
969 if (ioctl(fd, SYSC_CFGA_CMD_DISCONNECT, sc) == -1)
970 cfga_err(sc, errstring, CMD_DISCONNECT, 0);
992 } else if (ioctl(fd, SYSC_CFGA_CMD_CONNECT, sc) == -1) {
993 cfga_err(sc, errstring, CMD_CONNECT, 0);
997 sysc_cmd_init(sc, outputstr, force);
1000 if (ioctl(fd, SYSC_CFGA_CMD_CONFIGURE, sc) == -1)
1001 cfga_err(sc, errstring, CMD_CONFIGURE, 0);
1015 else if (ioctl(fd, SYSC_CFGA_CMD_UNCONFIGURE, sc) == -1)
1016 cfga_err(sc, errstring, CMD_UNCONFIGURE, 0);
1080 sysc_cfga_cmd_t *sc, sysc_cmd;
1099 sc = &sysc_cmd;
1107 sc->arg = cond;
1122 sysc_cmd_init(sc, outputstr, 0);
1127 (ioctl(fd, cmd, sc) == -1))
1206 cond_cvt(sysc_cfga_cond_t sc)
1210 switch (sc) {
1271 info_set(sysc_cfga_stat_t *sc, cfga_info_t info, int disabled)
1275 union bd_un *bd = &sc->bd;
1279 switch (sc->type) {
1324 if (sc->no_detach)
1327 if (sc->plus_board)
1332 sysc_cvt(sysc_cfga_stat_t *sc, cfga_stat_data_t *cs, int disabled)
1334 (void) strcpy(cs->ap_type, type_str(sc->type));
1335 cs->ap_r_state = rstate_cvt(sc->rstate);
1336 cs->ap_o_state = ostate_cvt(sc->ostate);
1337 cs->ap_cond = cond_cvt(sc->condition);
1338 cs->ap_busy = (cfga_busy_t)sc->in_transition;
1339 cs->ap_status_time = sc->last_change;
1340 info_set(sc, cs->ap_info, disabled);
1356 sysc_cfga_stat_t *sc;
1366 else if ((sc = sysc_stat(ap_id, NULL)) == NULL)
1373 for (*nlist = 0, i = 0; i < MAX_BOARDS; i++, sc++) {
1374 if (sc->board == -1)
1376 sysc_cvt(sc, cs++, 0); /* XXX - disable */
1401 sysc_cfga_stat_t *sc;
1420 else if ((sc = sysc_stat(ap_id, NULL)) == NULL)
1424 sysc_cvt(sc + idx, cs, disabled);