Lines Matching refs:con_outputs
218 static con_output_t con_outputs[MAX_OUTPUT];
523 output = con_outputs[i].output;
822 other = con_outputs[i].output;
893 output_t *output = con_outputs[i].output;
958 output_t *output = con_outputs[i].output;
970 output_t *output = con_outputs[i].output;
990 output_t *output = con_outputs[i].output;
1107 output = con_outputs[i].output;
1394 /* Initialize con_outputs array */
1396 con_outputs[i].output = NULL;
1397 con_outputs[i].on = False;
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;
1458 qsort((void **) con_outputs, ncon,
1465 con_outputs[j].output->output_info->name,
1466 con_outputs[j].smodes[0]->name,
1467 con_outputs[j].output->rotation);
1468 for (i = 0; i < con_outputs[j].output->output_info->ncrtc; i++)
1469 fprintf(stderr, " 0x%lx", con_outputs[j].output->output_info->crtcs[i]);
1470 fprintf(stderr, ", using 0x%lx", con_outputs[j].output->output_info->crtc);
1485 i = con_outputs[2].on * 4 + con_outputs[1].on * 2 + con_outputs[0].on;
1492 start_mode[j] = con_outputs[j].output->mode_info;
1493 init_rotation = con_outputs[j].output->rotation;
1494 init_x = con_outputs[j].output->x;
1495 init_y = con_outputs[j].output->y;
1559 output_t *output = con_outputs[i].output;
1587 if (get_common_mode(&con_outputs[0], &con_outputs[1], &m0, &m1)) {
1588 new_mode[0] = con_outputs[0].smodes[m0];
1589 new_mode[1] = con_outputs[1].smodes[m1];
1591 new_mode[0] = get_largest_mode (&con_outputs[0],
1592 con_outputs[0].smodes[0]);
1593 new_mode[1] = get_largest_mode (&con_outputs[1],
1594 con_outputs[1].smodes[0]);
1597 if (start_mode[start -1] && valid_mode(&con_outputs[start -1],
1601 if (con_outputs[start -1].smodes[0])
1603 get_largest_mode (&con_outputs[start-1],
1604 con_outputs[start -1].smodes[0]);
1631 if (start_mode[i] && valid_mode(&con_outputs[i], start_mode[i]))
1634 if (con_outputs[i].smodes[0])
1635 new_mode[i] = get_largest_mode (&con_outputs[i],
1636 con_outputs[i].smodes[0]);
1642 if (get_common_mode(&con_outputs[i], &con_outputs[j], &m0, &m1)) {
1643 new_mode[i] = con_outputs[i].smodes[m0];
1644 new_mode[j] = con_outputs[j].smodes[m1];
1646 new_mode[i] = get_largest_mode (&con_outputs[i],
1647 con_outputs[i].smodes[0]);
1648 new_mode[j] = get_largest_mode (&con_outputs[j],
1649 con_outputs[j].smodes[0]);
1655 if (start_mode[0] && valid_mode(&con_outputs[0], start_mode[0]))
1658 if (con_outputs[0].smodes[0])
1659 new_mode[0] = get_largest_mode (&con_outputs[0],
1660 con_outputs[0].smodes[0]);
1668 output = con_outputs[i].output;
1672 con_outputs[i].on = True;
1675 con_outputs[i].output->output_info->name,
1676 con_outputs[i].output->mode_info->name,
1677 con_outputs[i].output->rotation);
1679 } else if (con_outputs[i].on ) {
1682 con_outputs[i].on = False;
1685 i, con_outputs[i].output->output_info->name);
1693 con_outputs[1].output->relative_to = con_outputs[0].output;
1694 con_outputs[1].output->relation = right_of;
1695 con_outputs[1].output->changes = changes_relation;
1696 con_outputs[0].output->changes = 0;
1699 con_outputs[0].output->relative_to = con_outputs[1].output;
1700 con_outputs[0].output->relation = right_of;
1701 con_outputs[0].output->changes = changes_relation;
1702 con_outputs[1].output->changes = 0;
1733 output = con_outputs[save].output;
1735 con_outputs[save].on = False;
1738 save, con_outputs[save].output->output_info->name);
2016 con_outputs[i].output = NULL;
2017 con_outputs[i].on = False;
2018 if (con_outputs[i].smodes) {
2019 free(con_outputs[i].smodes);
2020 con_outputs[i].smodes = NULL;
2022 con_outputs[i].nsmodes = 0;