Lines Matching refs:ncon
223 static int ncon;
522 for (i = 0; i < ncon; i++) {
820 for (i = 0; i < ncon; i++)
891 for (i = 0; i < ncon; i++)
956 for (i = 0; i < ncon; i++)
968 for (i = 0; i < ncon; i++)
988 for (i = 0; i < ncon; i++)
1105 for (i = 0; i < ncon; i++)
1132 if (i == ncon)
1402 ncon = 0;
1414 con_outputs[ncon].output = output;
1415 con_outputs[ncon].nsmodes = 0;
1419 con_outputs[ncon].smodes =
1420 realloc(con_outputs[ncon].smodes,
1421 (con_outputs[ncon].nsmodes + 1) * sizeof (XRRModeInfo *));
1422 con_outputs[ncon].smodes[j] = rmode;
1423 con_outputs[ncon].nsmodes ++;
1427 qsort((void *) con_outputs[ncon].smodes,
1428 con_outputs[ncon].nsmodes, sizeof(XRRModeInfo *),
1434 con_outputs[ncon].on = True;
1446 con_outputs[ncon].output->mode_info =
1450 con_outputs[ncon].on = False;
1451 ncon ++;
1458 qsort((void **) con_outputs, ncon,
1462 fprintf(stderr, "Total connected outputs = %d :\n", ncon);
1463 for (j = 0; j < ncon; j++) {
1499 if ((ncon != 2) || (start < 3))
1502 if ((ncon < 1) || (ncon > 3)) {
1503 if ((ncon < 1) && verbose)
1505 else if ((ncon > 3) && verbose)
1506 fprintf (stderr, "warn: too many (more than 3) connections: %d: can't switch\n", ncon);
1555 if (ncon <= 0)
1558 for (i = 0; i < ncon; i++) {
1574 if (ncon == 2) {
1609 if (ncon == 3) {
1654 if (ncon == 1) {
1665 for (i = 0; i < ncon; i++) {
1691 if ((ncon == 2) && (start >= 4)) {
2015 for (i = 0; i < ncon; i++) {
2026 } else if (ncon == 1)
2028 } else if (ncon == 1)
2032 if ((ncon == 2) && (start == 1))
2039 if ((ncon == 2) && (start == 4)) {