Lines Matching defs:in

11  * to deal in the Software without restriction, including without limitation
16 * The above copyright notice and this permission notice shall be included in
27 * Except as contained in this notice, the name of the copyright holder(s)
28 * and author(s) shall not be used in advertising or otherwise to promote
29 * the sale, use or other dealings in this Software without prior written
108 * then in a second step get filtered and all the modes actually supported by
302 * pulses, consisting in 5 short sync pulses
310 * In interlace, the even field is in the
319 * can't be in either the front porch or sync
528 * @pixel_clock_hz: Pixel Clock Frequency, in Hertz
613 * And it is copied from xf86CVTmode in xserver/hw/xfree86/modes/xf86cvt.c.
617 * The modeline based on the CVT algorithm stored in a drm_display_mode object.
727 /* 9. Find number of lines in sync + backporch */
732 /* 10. Find number of lines in back porch */
784 /* 9. Find number of lines in vertical blanking */
789 /* 11. Find total number of lines in vertical field */
791 /* 12. Find total number of pixels in a line */
793 /* Fill in HSync values */
796 /* Fill in VSync values */
801 tmp = drm_mode->htotal; /* perform intermediate calcs in u64 */
838 * GTF feature blocks specify C and J in multiples of 0.5, so we pass them
839 * in here multiplied by two. For a C of 40, pass in 80.
842 * The modeline based on the full GTF algorithm stored in a drm_display_mode object.
856 /* width of vsync in lines */
910 /* 4. Find number of lines in Top margin: */
915 /* 5. Find number of lines in bottom margin: */
932 /* 8. Find the number of lines in V sync + back porch */
936 /* 9. Find the number of lines in V back porch alone: */
938 /* 10. Find the total number of lines in Vertical field period: */
953 /* 15. Find number of pixels in left margin: */
960 /* 16.Find number of pixels in right margin: */
962 /* 17.Find total number of active pixels in image and left and right */
967 /* 19.Find the number of pixels in the blanking time to the nearest
981 /* 17. Find the number of pixels in the horizontal sync period: */
985 /* 18. Find the number of pixels in horizontal front porch period */
987 /* 36. Find the number of lines in the odd front porch period: */
990 /* finally, pack the results in the mode struct */
1036 * I also refer to the function of fb_get_mode in the file of
1047 * The modeline based on the GTF algorithm stored in a drm_display_mode object.
1063 * drm_display_mode_from_videomode - fill in @dmode using @vm,
1067 * Fills out @dmode using the display mode specified in @vm.
1104 * drm_display_mode_to_videomode - fill in @vm using @dmode,
1108 * Fills out @vm using the display mode specified in @dmode.
1145 * DE polarity from videomode and store it in a separate variable
1151 * and DISPLAY_FLAGS_SYNC_(POS|NEG)EDGE in @bus_flags according to DISPLAY_FLAGS
1152 * found in @vm
1180 * @index: index into the list of display timings in devicetree
1263 * @mode: name will be set in this mode
1283 * @modes's vrefresh rate in Hz, rounded to the nearest integer. Calculates the
1310 * @hdisplay: hdisplay value to fill in
1311 * @vdisplay: vdisplay value to fill in
1433 * garbage in on-stack modes.
1908 * preferred (in case the match isn't 100%). If
2295 * If there's an equal sign in the name, the command-line
2348 * separate each option. Valid options can be found in
2573 * @in: drm_display_mode to use
2579 const struct drm_display_mode *in)
2581 out->clock = in->clock;
2582 out->hdisplay = in->hdisplay;
2583 out->hsync_start = in->hsync_start;
2584 out->hsync_end = in->hsync_end;
2585 out->htotal = in->htotal;
2586 out->hskew = in->hskew;
2587 out->vdisplay = in->vdisplay;
2588 out->vsync_start = in->vsync_start;
2589 out->vsync_end = in->vsync_end;
2590 out->vtotal = in->vtotal;
2591 out->vscan = in->vscan;
2592 out->vrefresh = drm_mode_vrefresh(in);
2593 out->flags = in->flags;
2594 out->type = in->type;
2596 switch (in->picture_aspect_ratio) {
2611 in->picture_aspect_ratio);
2618 strscpy_pad(out->name, in->name, sizeof(out->name));
2625 * @in: drm_mode_modeinfo to use
2635 const struct drm_mode_modeinfo *in)
2637 if (in->clock > INT_MAX || in->vrefresh > INT_MAX)
2640 out->clock = in->clock;
2641 out->hdisplay = in->hdisplay;
2642 out->hsync_start = in->hsync_start;
2643 out->hsync_end = in->hsync_end;
2644 out->htotal = in->htotal;
2645 out->hskew = in->hskew;
2646 out->vdisplay = in->vdisplay;
2647 out->vsync_start = in->vsync_start;
2648 out->vsync_end = in->vsync_end;
2649 out->vtotal = in->vtotal;
2650 out->vscan = in->vscan;
2651 out->flags = in->flags;
2658 out->type = in->type & DRM_MODE_TYPE_ALL;
2659 strscpy_pad(out->name, in->name, sizeof(out->name));
2662 * as the aspect-ratio information is not stored in
2663 * flags for kernel-mode, but in picture_aspect_ratio.
2667 switch (in->flags & DRM_MODE_FLAG_PIC_AR_MASK) {
2697 * drm_mode_is_420_only - if a given videomode can be only supported in YCBCR420
2704 * true if the mode can be supported in YCBCR420 format
2717 * drm_mode_is_420_also - if a given videomode can be supported in YCBCR420
2736 * drm_mode_is_420 - if a given videomode can be supported in YCBCR420
2743 * true if the mode can be supported in YCBCR420 format