Lines Matching defs:mode

40 /* Track last mode to support cards which fail on get_mode.  */
260 grub_vbe_bios_get_mode_info (grub_uint32_t mode,
265 regs.ecx = mode;
274 /* Call VESA BIOS 0x4f02 to set video mode, return status. */
276 grub_vbe_bios_set_mode (grub_uint32_t mode,
282 regs.ebx = mode;
294 grub_vbe_bios_get_mode (grub_uint32_t *mode)
301 *mode = regs.ebx & 0xffff;
607 return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "cannot get preferred mode");
624 /* Try to get mode info. */
644 /* Get current mode. */
649 /* Try to set video mode. */
652 return grub_error (GRUB_ERR_BAD_DEVICE, "cannot set VBE mode %x", vbe_mode);
657 /* If this is not a VESA mode, guess address. */
665 /* Check whether mode is text mode or graphics mode. */
668 /* Text mode. */
670 /* No special action needed for text mode as it is not supported for
675 /* Graphics mode. */
677 /* If video mode is in indexed color, setup default VGA palette. */
706 /* Copy mode info for caller. */
714 grub_vbe_get_video_mode (grub_uint32_t *mode)
723 /* Try to query current mode from VESA BIOS. */
724 status = grub_vbe_bios_get_mode (mode);
727 *mode = last_set_mode;
733 grub_vbe_get_video_mode_info (grub_uint32_t mode,
745 /* If mode is not VESA mode, skip mode info query. */
746 if (mode >= 0x100)
748 /* Try to get mode info from VESA BIOS. */
749 status = grub_vbe_bios_get_mode_info (mode, mi_tmp);
752 "cannot get information on the mode %x", mode);
754 /* Make copy of mode info block. */
758 /* Just clear mode info block if it isn't a VESA mode. */
774 Firmware note: There has been a report that some cards store video mode
793 /* Adapter could be found, figure out initial video mode. */
817 /* Restore old video mode. */
862 vbe2videoinfo (grub_uint32_t mode,
866 mode_info->mode_number = mode;
963 /* Could not retrieve mode info, retreat. */
999 mode supported by the graphics card may not be safe for the
1007 /* Walk thru mode list and try to find matching mode. */
1015 /* Could not retrieve mode info, retreat. */
1053 /* Resolution exceeds that of preferred mode. */
1065 /* Check if user requested RGB or index color mode. */
1088 /* Select mode with most of "volume" (size of framebuffer in bits). */
1096 /* Save so far best mode information for later use. */
1101 /* Try to initialize best mode found. */
1106 /* If this fails, then we have mode selection heuristics problem,
1112 /* Fill mode info details. */
1145 /* Couldn't found matching mode. */
1146 return grub_error (GRUB_ERR_UNKNOWN_DEVICE, "no matching mode found");
1155 /* TODO: Implement setting indexed color mode palette to hardware. */