Lines Matching full:si
22 static inline u64 __screen_info_lfb_base(const struct screen_info *si) in __screen_info_lfb_base() argument
24 u64 lfb_base = si->lfb_base; in __screen_info_lfb_base()
26 if (si->capabilities & VIDEO_CAPABILITY_64BIT_BASE) in __screen_info_lfb_base()
27 lfb_base |= (u64)si->ext_lfb_base << 32; in __screen_info_lfb_base()
32 static inline void __screen_info_set_lfb_base(struct screen_info *si, u64 lfb_base) in __screen_info_set_lfb_base() argument
34 si->lfb_base = lfb_base & GENMASK_ULL(31, 0); in __screen_info_set_lfb_base()
35 si->ext_lfb_base = (lfb_base & GENMASK_ULL(63, 32)) >> 32; in __screen_info_set_lfb_base()
37 if (si->ext_lfb_base) in __screen_info_set_lfb_base()
38 si->capabilities |= VIDEO_CAPABILITY_64BIT_BASE; in __screen_info_set_lfb_base()
40 si->capabilities &= ~VIDEO_CAPABILITY_64BIT_BASE; in __screen_info_set_lfb_base()
43 static inline u64 __screen_info_lfb_size(const struct screen_info *si, unsigned int type) in __screen_info_lfb_size() argument
45 u64 lfb_size = si->lfb_size; in __screen_info_lfb_size()
52 static inline bool __screen_info_vbe_mode_nonvga(const struct screen_info *si) in __screen_info_vbe_mode_nonvga() argument
59 return si->vesa_attributes & BIT(5); in __screen_info_vbe_mode_nonvga()
87 * @si: an instance of struct screen_info
90 * A VIDEO_TYPE_ constant representing si's type of video display, or 0 otherwise.
92 static inline unsigned int screen_info_video_type(const struct screen_info *si) in screen_info_video_type() argument
97 if (!si->orig_video_isVGA) in screen_info_video_type()
101 type = __screen_info_video_type(si->orig_video_isVGA); in screen_info_video_type()
103 return si->orig_video_isVGA; in screen_info_video_type()
106 if (!si->orig_video_lines || !si->orig_video_cols) in screen_info_video_type()
110 if (si->orig_video_mode == 0x07) { in screen_info_video_type()
111 if ((si->orig_video_ega_bx & 0xff) != 0x10) in screen_info_video_type()
118 if ((si->orig_video_ega_bx & 0xff) != 0x10) { in screen_info_video_type()
119 if (si->orig_video_isVGA) in screen_info_video_type()
129 ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num);
133 struct pci_dev *screen_info_pci_dev(const struct screen_info *si);
137 static inline struct pci_dev *screen_info_pci_dev(const struct screen_info *si) in screen_info_pci_dev() argument