Home
last modified time | relevance | path

Searched refs:fb_base (Results 1 – 25 of 58) sorted by relevance

123

/drivers/gpu/drm/amd/display/dmub/src/
Ddmub_dcn30.c61 uint64_t *fb_base, in dmub_dcn30_get_fb_base_offset() argument
66 if (dmub->fb_base || dmub->fb_offset) { in dmub_dcn30_get_fb_base_offset()
67 *fb_base = dmub->fb_base; in dmub_dcn30_get_fb_base_offset()
73 *fb_base = (uint64_t)tmp << 24; in dmub_dcn30_get_fb_base_offset()
80 uint64_t fb_base, in dmub_dcn30_translate_addr() argument
84 addr_out->quad_part = addr_in->quad_part - fb_base + fb_offset; in dmub_dcn30_translate_addr()
92 uint64_t fb_base, fb_offset; in dmub_dcn30_backdoor_load() local
94 dmub_dcn30_get_fb_base_offset(dmub, &fb_base, &fb_offset); in dmub_dcn30_backdoor_load()
100 dmub_dcn30_translate_addr(&cw0->offset, fb_base, fb_offset, &offset); in dmub_dcn30_backdoor_load()
109 dmub_dcn30_translate_addr(&cw1->offset, fb_base, fb_offset, &offset); in dmub_dcn30_backdoor_load()
Ddmub_dcn20.c61 uint64_t *fb_base, in dmub_dcn20_get_fb_base_offset() argument
66 if (dmub->fb_base || dmub->fb_offset) { in dmub_dcn20_get_fb_base_offset()
67 *fb_base = dmub->fb_base; in dmub_dcn20_get_fb_base_offset()
73 *fb_base = (uint64_t)tmp << 24; in dmub_dcn20_get_fb_base_offset()
80 uint64_t fb_base, in dmub_dcn20_translate_addr() argument
84 addr_out->quad_part = addr_in->quad_part - fb_base + fb_offset; in dmub_dcn20_translate_addr()
159 uint64_t fb_base, fb_offset; in dmub_dcn20_backdoor_load() local
161 dmub_dcn20_get_fb_base_offset(dmub, &fb_base, &fb_offset); in dmub_dcn20_backdoor_load()
167 dmub_dcn20_translate_addr(&cw0->offset, fb_base, fb_offset, &offset); in dmub_dcn20_backdoor_load()
176 dmub_dcn20_translate_addr(&cw1->offset, fb_base, fb_offset, &offset); in dmub_dcn20_backdoor_load()
[all …]
Ddmub_dcn31.c57 uint64_t *fb_base, in dmub_dcn31_get_fb_base_offset() argument
62 if (dmub->fb_base || dmub->fb_offset) { in dmub_dcn31_get_fb_base_offset()
63 *fb_base = dmub->fb_base; in dmub_dcn31_get_fb_base_offset()
69 *fb_base = (uint64_t)tmp << 24; in dmub_dcn31_get_fb_base_offset()
76 uint64_t fb_base, in dmub_dcn31_translate_addr() argument
80 addr_out->quad_part = addr_in->quad_part - fb_base + fb_offset; in dmub_dcn31_translate_addr()
148 uint64_t fb_base, fb_offset; in dmub_dcn31_backdoor_load() local
150 dmub_dcn31_get_fb_base_offset(dmub, &fb_base, &fb_offset); in dmub_dcn31_backdoor_load()
154 dmub_dcn31_translate_addr(&cw0->offset, fb_base, fb_offset, &offset); in dmub_dcn31_backdoor_load()
163 dmub_dcn31_translate_addr(&cw1->offset, fb_base, fb_offset, &offset); in dmub_dcn31_backdoor_load()
/drivers/video/fbdev/
Dsunxvr1000.c16 char __iomem *fb_base; member
77 info->screen_base = gp->fb_base; in gfb_set_fbinfo()
142 gp->fb_base = of_ioremap(&op->resource[6], 0, in gfb_probe()
144 if (!gp->fb_base) { in gfb_probe()
167 of_iounmap(&op->resource[6], gp->fb_base, gp->fb_size); in gfb_probe()
Dsunxvr2500.c20 char __iomem *fb_base; member
81 info->screen_base = sp->fb_base; in s3d_set_fbinfo()
183 sp->fb_base = ioremap(sp->fb_base_phys, sp->fb_size); in s3d_pci_register()
184 if (!sp->fb_base) { in s3d_pci_register()
207 iounmap(sp->fb_base); in s3d_pci_register()
Dsunxvr500.c33 char __iomem *fb_base; member
204 info->screen_base = ep->fb_base; in e3d_set_fbinfo()
347 ep->fb_base = ioremap(ep->fb_base_phys, ep->fb_size); in e3d_pci_register()
348 if (!ep->fb_base) { in e3d_pci_register()
374 iounmap(ep->fb_base); in e3d_pci_register()
Dtgafb.c631 void __iomem *fb_base; local
656 fb_base = par->tga_fb_base;
720 __raw_writel(mask << shift, fb_base + pos);
749 __raw_writel(mask, fb_base + pos + j*bincr);
769 __raw_writel(mask, fb_base + pos);
798 __raw_writel(mask, fb_base + pos + j*bincr);
819 __raw_writel(mask, fb_base + pos);
843 void __iomem *fb_base; local
861 fb_base = par->tga_fb_base;
870 __raw_writel(color, fb_base + pos + j*4);
[all …]
/drivers/gpu/drm/hyperv/
Dhyperv_drm_drv.c100 hv->fb_base = pci_resource_start(pdev, 0); in hyperv_setup_gen1()
102 if (!hv->fb_base) { in hyperv_setup_gen1()
110 hv->vram = devm_ioremap(&pdev->dev, hv->fb_base, hv->fb_size); in hyperv_setup_gen1()
153 hv->fb_base = hv->mem->start; in hyperv_setup_gen2()
197 ret = hyperv_update_vram_location(hdev, hv->fb_base); in hyperv_vmbus_probe()
277 ret = hyperv_update_vram_location(hdev, hv->fb_base); in hyperv_vmbus_resume()
Dhyperv_drm.h27 unsigned long fb_base; member
/drivers/firmware/efi/
Dearlycon.c19 static u64 fb_base; variable
36 efi_fb = memremap(fb_base, screen_info.lfb_size, in efi_earlycon_remap_fb()
60 return early_memremap_prot(fb_base + start, len, pgprot_val(fb_prot)); in efi_earlycon_map()
217 fb_base = screen_info.lfb_base; in efi_earlycon_setup()
219 fb_base |= (u64)screen_info.ext_lfb_base << 32; in efi_earlycon_setup()
Dsysfb_efi.c290 u64 fb_base = screen_info.lfb_base; in efifb_overlaps_pci_range() local
293 fb_base |= (u64)(unsigned long)screen_info.ext_lfb_base << 32; in efifb_overlaps_pci_range()
295 return fb_base >= range->cpu_addr && in efifb_overlaps_pci_range()
296 fb_base < (range->cpu_addr + range->size); in efifb_overlaps_pci_range()
/drivers/gpu/drm/savage/
Dsavage_bci.c577 unsigned long mmio_base, fb_base, fb_size, aperture_base; in savage_driver_firstopen() local
581 fb_base = pci_resource_start(pdev, 0); in savage_driver_firstopen()
583 mmio_base = fb_base + SAVAGE_FB_SIZE_S3; in savage_driver_firstopen()
584 aperture_base = fb_base + SAVAGE_APERTURE_OFFSET; in savage_driver_firstopen()
590 arch_phys_wc_add(fb_base, 0x01000000); in savage_driver_firstopen()
592 arch_phys_wc_add(fb_base + 0x02000000, in savage_driver_firstopen()
595 arch_phys_wc_add(fb_base + 0x04000000, in savage_driver_firstopen()
605 fb_base = pci_resource_start(pdev, 1); in savage_driver_firstopen()
607 aperture_base = fb_base + SAVAGE_APERTURE_OFFSET; in savage_driver_firstopen()
613 arch_phys_wc_add(fb_base, in savage_driver_firstopen()
[all …]
/drivers/video/fbdev/geode/
Ddisplay_gx1.c54 unsigned dram_size = 0, fb_base; in gx1_frame_buffer_size() local
70 fb_base = (readl(mc_regs + MC_GBASE_ADD) & MC_GADD_GBADD_MASK) << 19; in gx1_frame_buffer_size()
74 return dram_size - fb_base; in gx1_frame_buffer_size()
/drivers/video/fbdev/mb862xx/
Dmb862xxfbdrv.c429 fbi->screen_base = par->fb_base; in mb862xxfb_init_fbinfo()
719 par->fb_base = ioremap(par->fb_base_phys, par->mapped_vram); in of_platform_mb862xx_probe()
720 if (par->fb_base == NULL) { in of_platform_mb862xx_probe()
774 iounmap(par->fb_base); in of_platform_mb862xx_probe()
810 iounmap(par->fb_base); in of_platform_mb862xx_remove()
859 writel(1, par->fb_base + MB862XX_MMIO_BASE + GC_RSW); in coralp_init()
1052 par->fb_base = ioremap(par->fb_base_phys, par->mapped_vram); in mb862xx_pci_probe()
1053 if (par->fb_base == NULL) { in mb862xx_pci_probe()
1118 iounmap(par->fb_base); in mb862xx_pci_probe()
1158 iounmap(par->fb_base); in mb862xx_pci_remove()
Dmb862xxfb.h58 void __iomem *fb_base; /* remapped framebuffer */ member
/drivers/gpu/drm/radeon/
Datom.c256 val = gctx->fb_base; in atom_get_src_int()
282 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_get_src_int()
284 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_get_src_int()
287 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
523 gctx->fb_base = val; in atom_put_dst()
538 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_put_dst()
540 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_put_dst()
542 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
851 ctx->ctx->fb_base = atom_get_src(ctx, attr, ptr); in atom_op_setfbbase()
1228 ctx->fb_base = 0; in atom_execute_table_scratch_unlocked()
/drivers/gpu/drm/tiny/
Dbochs.c74 unsigned long fb_base; member
265 bochs->fb_base = addr; in bochs_hw_init()
542 bochs->dev->mode_config.fb_base = bochs->fb_base; in bochs_kms_init()
582 ret = drmm_vram_helper_init(dev, bochs->fb_base, bochs->fb_size); in bochs_load()
/drivers/gpu/drm/hisilicon/hibmc/
Dhibmc_drm_drv.c107 dev->mode_config.fb_base = priv->fb_base; in hibmc_kms_init()
231 priv->fb_base = addr; in hibmc_hw_map()
Dhibmc_drm_drv.h36 resource_size_t fb_base; member
/drivers/gpu/drm/amd/amdgpu/
Datom.c253 val = gctx->fb_base; in atom_get_src_int()
279 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_get_src_int()
281 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_get_src_int()
284 val = gctx->scratch[(gctx->fb_base / 4) + idx]; in atom_get_src_int()
520 gctx->fb_base = val; in atom_put_dst()
535 if ((gctx->fb_base + (idx * 4)) > gctx->scratch_size_bytes) { in atom_put_dst()
537 gctx->fb_base + (idx * 4), gctx->scratch_size_bytes); in atom_put_dst()
539 gctx->scratch[(gctx->fb_base / 4) + idx] = val; in atom_put_dst()
884 ctx->ctx->fb_base = atom_get_src(ctx, attr, ptr); in atom_op_setfbbase()
1276 ctx->fb_base = 0; in amdgpu_atom_execute_table()
/drivers/gpu/drm/gma500/
Dframebuffer.c313 info->fix.smem_start = dev->mode_config.fb_base; in psbfb_create()
323 info->apertures->ranges[0].base = dev->mode_config.fb_base; in psbfb_create()
550 pci_read_config_dword(pdev, PSB_BSM, (u32 *)&(dev->mode_config.fb_base)); in psb_modeset_init()
/drivers/gpu/drm/amd/display/dc/dcn21/
Ddcn21_hwseq.c73 config.system_aperture.fb_base = pa_config->system_aperture.fb_base; in dcn21_init_sys_ctx()
/drivers/gpu/drm/nouveau/
Dnv04_fbcon.c213 0x0308, info->fix.smem_start - dev->mode_config.fb_base, in nv04_fbcon_accel_init()
214 0x030c, info->fix.smem_start - dev->mode_config.fb_base); in nv04_fbcon_accel_init()
/drivers/gpu/drm/amd/display/dmub/
Ddmub_srv.h238 uint64_t fb_base; member
421 uint64_t fb_base; member
/drivers/video/console/
Dsticore.c983 unsigned long fb_base, rom_base; in sticore_pci_init() local
994 fb_base = pci_resource_start(pd, 0); in sticore_pci_init()
1004 rom_base, rom_len/1024, fb_base, fb_len/1024/1024); in sticore_pci_init()
1007 rom_base, fb_base); in sticore_pci_init()
1009 sti = sti_try_rom_generic(rom_base, fb_base, pd); in sticore_pci_init()

123