Lines Matching refs:si
430 setup_pixel_info(struct screen_info *si, u32 pixels_per_scan_line, in setup_pixel_info() argument
435 &si->red_pos, &si->red_size); in setup_pixel_info()
437 &si->green_pos, &si->green_size); in setup_pixel_info()
439 &si->blue_pos, &si->blue_size); in setup_pixel_info()
441 &si->rsvd_pos, &si->rsvd_size); in setup_pixel_info()
442 si->lfb_depth = si->red_size + si->green_size + in setup_pixel_info()
443 si->blue_size + si->rsvd_size; in setup_pixel_info()
444 si->lfb_linelength = (pixels_per_scan_line * si->lfb_depth) / 8; in setup_pixel_info()
447 si->red_pos = 0; in setup_pixel_info()
448 si->blue_pos = 16; in setup_pixel_info()
450 si->blue_pos = 0; in setup_pixel_info()
451 si->red_pos = 16; in setup_pixel_info()
454 si->green_pos = 8; in setup_pixel_info()
455 si->rsvd_pos = 24; in setup_pixel_info()
456 si->red_size = si->green_size = in setup_pixel_info()
457 si->blue_size = si->rsvd_size = 8; in setup_pixel_info()
459 si->lfb_depth = 32; in setup_pixel_info()
460 si->lfb_linelength = pixels_per_scan_line * 4; in setup_pixel_info()
514 static efi_status_t setup_gop(struct screen_info *si, efi_guid_t *proto, in setup_gop() argument
534 si->orig_video_isVGA = VIDEO_TYPE_EFI; in setup_gop()
536 si->lfb_width = info->horizontal_resolution; in setup_gop()
537 si->lfb_height = info->vertical_resolution; in setup_gop()
540 &si->lfb_base, &si->ext_lfb_base); in setup_gop()
541 if (si->ext_lfb_base) in setup_gop()
542 si->capabilities |= VIDEO_CAPABILITY_64BIT_BASE; in setup_gop()
544 si->pages = 1; in setup_gop()
546 setup_pixel_info(si, info->pixels_per_scan_line, in setup_gop()
549 si->lfb_size = si->lfb_linelength * si->lfb_height; in setup_gop()
551 si->capabilities |= VIDEO_CAPABILITY_SKIP_QUIRKS; in setup_gop()
559 efi_status_t efi_setup_gop(struct screen_info *si, efi_guid_t *proto, in efi_setup_gop() argument
575 status = setup_gop(si, proto, size, gop_handle); in efi_setup_gop()