Lines Matching full:pr
13 static bool __screen_info_relocation_is_valid(const struct screen_info *si, struct resource *pr) in __screen_info_relocation_is_valid() argument
17 if (screen_info_lfb_offset > resource_size(pr)) in __screen_info_relocation_is_valid()
19 if (size > resource_size(pr)) in __screen_info_relocation_is_valid()
21 if (resource_size(pr) - size < screen_info_lfb_offset) in __screen_info_relocation_is_valid()
32 struct resource *pr = &screen_info_lfb_pdev->resource[screen_info_lfb_bar]; in screen_info_apply_fixups() local
34 if (pr->start != screen_info_lfb_res.start) { in screen_info_apply_fixups()
35 if (__screen_info_relocation_is_valid(si, pr)) { in screen_info_apply_fixups()
40 __screen_info_set_lfb_base(si, pr->start + screen_info_lfb_offset); in screen_info_apply_fixups()
41 pr_info("Relocating firmware framebuffer to offset %pa[d] within %pr\n", in screen_info_apply_fixups()
42 &screen_info_lfb_offset, pr); in screen_info_apply_fixups()
72 const struct resource *pr; in screen_info_fixup_lfb() local
76 pr = pci_find_resource(pdev, r); in screen_info_fixup_lfb()
77 if (!pr) in screen_info_fixup_lfb()
86 screen_info_lfb_bar = pr - pdev->resource; in screen_info_fixup_lfb()
87 screen_info_lfb_offset = r->start - pr->start; in screen_info_fixup_lfb()