Lines Matching refs:c0
1277 get_common_mode(con_output_t *c0, con_output_t *c1, int *m0, int *m1) {
1281 output_t *output = c0->output;
1285 if (!c0 ||!c1 || !c0->smodes || !c1->smodes)
1289 for (i = 0; i < c0->nsmodes; i ++) {
1291 if ((c0->smodes[i]->width == c1->smodes[j]->width) &&
1292 (c0->smodes[i]->height == c1->smodes[j]->height)) {
1295 w = mode_width (c0->smodes[i], output->rotation);
1296 h = mode_height (c0->smodes[i], output->rotation);
1310 for (i = 0; i < c0->nsmodes; i ++) {
1312 if (c0->smodes[i] == c1->smodes[j]) {
1315 w = mode_width (c0->smodes[i], output->rotation);
1316 h = mode_height (c0->smodes[i], output->rotation);
1331 if ((mode_width (c0->smodes[i1], output->rotation) >
1332 mode_width (c0->smodes[i2], output->rotation)) &&
1333 (mode_height (c0->smodes[i1], output->rotation) >
1334 mode_height (c0->smodes[i2], output->rotation))) {