Lines Matching refs:vm
511 int drm_display_mode_from_videomode(const struct videomode *vm,
514 dmode->hdisplay = vm->hactive;
515 dmode->hsync_start = dmode->hdisplay + vm->hfront_porch;
516 dmode->hsync_end = dmode->hsync_start + vm->hsync_len;
517 dmode->htotal = dmode->hsync_end + vm->hback_porch;
519 dmode->vdisplay = vm->vactive;
520 dmode->vsync_start = dmode->vdisplay + vm->vfront_porch;
521 dmode->vsync_end = dmode->vsync_start + vm->vsync_len;
522 dmode->vtotal = dmode->vsync_end + vm->vback_porch;
524 dmode->clock = vm->pixelclock / 1000;
527 if (vm->flags & DISPLAY_FLAGS_HSYNC_HIGH)
529 else if (vm->flags & DISPLAY_FLAGS_HSYNC_LOW)
531 if (vm->flags & DISPLAY_FLAGS_VSYNC_HIGH)
533 else if (vm->flags & DISPLAY_FLAGS_VSYNC_LOW)
535 if (vm->flags & DISPLAY_FLAGS_INTERLACED)
537 if (vm->flags & DISPLAY_FLAGS_DOUBLESCAN)
539 if (vm->flags & DISPLAY_FLAGS_DOUBLECLK)
560 struct videomode vm;
563 ret = of_get_videomode(np, &vm, index);
567 drm_display_mode_from_videomode(&vm, dmode);
570 of_node_full_name(np), vm.hactive, vm.vactive, np->name);