Lines Matching defs:si
22 static inline u64 __screen_info_lfb_base(const struct screen_info *si)
24 u64 lfb_base = si->lfb_base;
26 if (si->capabilities & VIDEO_CAPABILITY_64BIT_BASE)
27 lfb_base |= (u64)si->ext_lfb_base << 32;
32 static inline void __screen_info_set_lfb_base(struct screen_info *si, u64 lfb_base)
34 si->lfb_base = lfb_base & GENMASK_ULL(31, 0);
35 si->ext_lfb_base = (lfb_base & GENMASK_ULL(63, 32)) >> 32;
37 if (si->ext_lfb_base)
38 si->capabilities |= VIDEO_CAPABILITY_64BIT_BASE;
40 si->capabilities &= ~VIDEO_CAPABILITY_64BIT_BASE;
43 static inline u64 __screen_info_lfb_size(const struct screen_info *si, unsigned int type)
45 u64 lfb_size = si->lfb_size;
77 * @si: an instance of struct screen_info
80 * A VIDEO_TYPE_ constant representing si's type of video display, or 0 otherwise.
82 static inline unsigned int screen_info_video_type(const struct screen_info *si)
87 if (!si->orig_video_isVGA)
91 type = __screen_info_video_type(si->orig_video_isVGA);
93 return si->orig_video_isVGA;
96 if (!si->orig_video_lines || !si->orig_video_cols)
100 if (si->orig_video_mode == 0x07) {
101 if ((si->orig_video_ega_bx & 0xff) != 0x10)
108 if ((si->orig_video_ega_bx & 0xff) != 0x10) {
109 if (si->orig_video_isVGA)
119 ssize_t screen_info_resources(const struct screen_info *si, struct resource *r, size_t num);
123 struct pci_dev *screen_info_pci_dev(const struct screen_info *si);
127 static inline struct pci_dev *screen_info_pci_dev(const struct screen_info *si)