Lines Matching refs:vm
510 int drm_display_mode_from_videomode(const struct videomode *vm, in drm_display_mode_from_videomode() argument
513 dmode->hdisplay = vm->hactive; in drm_display_mode_from_videomode()
514 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch; in drm_display_mode_from_videomode()
515 dmode->hsync_end = dmode->hsync_start + vm->hsync_len; in drm_display_mode_from_videomode()
516 dmode->htotal = dmode->hsync_end + vm->hback_porch; in drm_display_mode_from_videomode()
518 dmode->vdisplay = vm->vactive; in drm_display_mode_from_videomode()
519 dmode->vsync_start = dmode->vdisplay + vm->vfront_porch; in drm_display_mode_from_videomode()
520 dmode->vsync_end = dmode->vsync_start + vm->vsync_len; in drm_display_mode_from_videomode()
521 dmode->vtotal = dmode->vsync_end + vm->vback_porch; in drm_display_mode_from_videomode()
523 dmode->clock = vm->pixelclock / 1000; in drm_display_mode_from_videomode()
526 if (vm->flags & DISPLAY_FLAGS_HSYNC_HIGH) in drm_display_mode_from_videomode()
528 else if (vm->flags & DISPLAY_FLAGS_HSYNC_LOW) in drm_display_mode_from_videomode()
530 if (vm->flags & DISPLAY_FLAGS_VSYNC_HIGH) in drm_display_mode_from_videomode()
532 else if (vm->flags & DISPLAY_FLAGS_VSYNC_LOW) in drm_display_mode_from_videomode()
534 if (vm->flags & DISPLAY_FLAGS_INTERLACED) in drm_display_mode_from_videomode()
536 if (vm->flags & DISPLAY_FLAGS_DOUBLESCAN) in drm_display_mode_from_videomode()
558 struct videomode vm; in of_get_drm_display_mode() local
561 ret = of_get_videomode(np, &vm, index); in of_get_drm_display_mode()
565 drm_display_mode_from_videomode(&vm, dmode); in of_get_drm_display_mode()
568 of_node_full_name(np), vm.hactive, vm.vactive, np->name); in of_get_drm_display_mode()