Lines Matching defs:out
1066 * Fills out @dmode using the display mode specified in @vm.
1107 * Fills out @vm using the display mode specified in @dmode.
1716 * This function is a helper which can be used to filter out any YCBCR420
2339 * @mode: preallocated drm_cmdline_mode structure to fill out
2574 * @out: drm_mode_modeinfo struct to return to the user
2580 void drm_mode_convert_to_umode(struct drm_mode_modeinfo *out,
2583 out->clock = in->clock;
2584 out->hdisplay = in->hdisplay;
2585 out->hsync_start = in->hsync_start;
2586 out->hsync_end = in->hsync_end;
2587 out->htotal = in->htotal;
2588 out->hskew = in->hskew;
2589 out->vdisplay = in->vdisplay;
2590 out->vsync_start = in->vsync_start;
2591 out->vsync_end = in->vsync_end;
2592 out->vtotal = in->vtotal;
2593 out->vscan = in->vscan;
2594 out->vrefresh = drm_mode_vrefresh(in);
2595 out->flags = in->flags;
2596 out->type = in->type;
2600 out->flags |= DRM_MODE_FLAG_PIC_AR_4_3;
2603 out->flags |= DRM_MODE_FLAG_PIC_AR_16_9;
2606 out->flags |= DRM_MODE_FLAG_PIC_AR_64_27;
2609 out->flags |= DRM_MODE_FLAG_PIC_AR_256_135;
2616 out->flags |= DRM_MODE_FLAG_PIC_AR_NONE;
2620 strncpy(out->name, in->name, DRM_DISPLAY_MODE_LEN);
2621 out->name[DRM_DISPLAY_MODE_LEN-1] = 0;
2627 * @out: drm_display_mode to return to the user
2637 struct drm_display_mode *out,
2643 out->clock = in->clock;
2644 out->hdisplay = in->hdisplay;
2645 out->hsync_start = in->hsync_start;
2646 out->hsync_end = in->hsync_end;
2647 out->htotal = in->htotal;
2648 out->hskew = in->hskew;
2649 out->vdisplay = in->vdisplay;
2650 out->vsync_start = in->vsync_start;
2651 out->vsync_end = in->vsync_end;
2652 out->vtotal = in->vtotal;
2653 out->vscan = in->vscan;
2654 out->flags = in->flags;
2661 out->type = in->type & DRM_MODE_TYPE_ALL;
2662 strncpy(out->name, in->name, DRM_DISPLAY_MODE_LEN);
2663 out->name[DRM_DISPLAY_MODE_LEN-1] = 0;
2665 /* Clearing picture aspect ratio bits from out flags,
2669 out->flags &= ~DRM_MODE_FLAG_PIC_AR_MASK;
2673 out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_4_3;
2676 out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_16_9;
2679 out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_64_27;
2682 out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_256_135;
2685 out->picture_aspect_ratio = HDMI_PICTURE_ASPECT_NONE;
2691 out->status = drm_mode_validate_driver(dev, out);
2692 if (out->status != MODE_OK)
2695 drm_mode_set_crtcinfo(out, CRTC_INTERLACE_HALVE_V);