sfb 79 arch/s390/kernel/perf_cpum_sf.c struct sf_buffer sfb; sfb 92 arch/s390/kernel/perf_cpum_sf.c struct sf_buffer sfb; /* Sampling buffer */ sfb 118 arch/s390/kernel/perf_cpum_sf.c return !!cpuhw->sfb.sdbt; sfb 124 arch/s390/kernel/perf_cpum_sf.c static void free_sampling_buffer(struct sf_buffer *sfb) sfb 128 arch/s390/kernel/perf_cpum_sf.c if (!sfb->sdbt) sfb 131 arch/s390/kernel/perf_cpum_sf.c sdbt = sfb->sdbt; sfb 146 arch/s390/kernel/perf_cpum_sf.c if (curr == sfb->sdbt) sfb 160 arch/s390/kernel/perf_cpum_sf.c "free_sampling_buffer: freed sdbt=%p\n", sfb->sdbt); sfb 161 arch/s390/kernel/perf_cpum_sf.c memset(sfb, 0, sizeof(*sfb)); sfb 192 arch/s390/kernel/perf_cpum_sf.c static int realloc_sampling_buffer(struct sf_buffer *sfb, sfb 198 arch/s390/kernel/perf_cpum_sf.c if (!sfb->sdbt || !sfb->tail) sfb 201 arch/s390/kernel/perf_cpum_sf.c if (!is_link_entry(sfb->tail)) sfb 209 arch/s390/kernel/perf_cpum_sf.c tail = sfb->tail; sfb 214 arch/s390/kernel/perf_cpum_sf.c if (sfb->sdbt != get_next_sdbt(tail)) { sfb 218 arch/s390/kernel/perf_cpum_sf.c (void *) sfb->sdbt, (void *) tail); sfb 232 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdbt++; sfb 252 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdbt--; sfb 258 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdb++; sfb 264 arch/s390/kernel/perf_cpum_sf.c *tail = (unsigned long) sfb->sdbt + 1; sfb 265 arch/s390/kernel/perf_cpum_sf.c sfb->tail = tail; sfb 269 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdbt, sfb->num_sdb); sfb 284 arch/s390/kernel/perf_cpum_sf.c static int alloc_sampling_buffer(struct sf_buffer *sfb, unsigned long num_sdb) sfb 288 arch/s390/kernel/perf_cpum_sf.c if (sfb->sdbt) sfb 292 arch/s390/kernel/perf_cpum_sf.c sfb->sdbt = (unsigned long *) get_zeroed_page(GFP_KERNEL); sfb 293 arch/s390/kernel/perf_cpum_sf.c if (!sfb->sdbt) sfb 295 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdb = 0; sfb 296 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdbt = 1; sfb 301 arch/s390/kernel/perf_cpum_sf.c sfb->tail = sfb->sdbt; sfb 302 arch/s390/kernel/perf_cpum_sf.c *sfb->tail = (unsigned long)(void *) sfb->sdbt + 1; sfb 305 arch/s390/kernel/perf_cpum_sf.c rc = realloc_sampling_buffer(sfb, num_sdb, GFP_KERNEL); sfb 307 arch/s390/kernel/perf_cpum_sf.c free_sampling_buffer(sfb); sfb 313 arch/s390/kernel/perf_cpum_sf.c sfb->sdbt, (void *) *sfb->sdbt); sfb 335 arch/s390/kernel/perf_cpum_sf.c static unsigned long sfb_pending_allocs(struct sf_buffer *sfb, sfb 338 arch/s390/kernel/perf_cpum_sf.c if (!sfb->sdbt) sfb 340 arch/s390/kernel/perf_cpum_sf.c if (SFB_ALLOC_REG(hwc) > sfb->num_sdb) sfb 341 arch/s390/kernel/perf_cpum_sf.c return SFB_ALLOC_REG(hwc) - sfb->num_sdb; sfb 345 arch/s390/kernel/perf_cpum_sf.c static int sfb_has_pending_allocs(struct sf_buffer *sfb, sfb 348 arch/s390/kernel/perf_cpum_sf.c return sfb_pending_allocs(sfb, hwc) > 0; sfb 367 arch/s390/kernel/perf_cpum_sf.c if (cpuhw->sfb.sdbt) sfb 368 arch/s390/kernel/perf_cpum_sf.c free_sampling_buffer(&cpuhw->sfb); sfb 425 arch/s390/kernel/perf_cpum_sf.c return alloc_sampling_buffer(&cpuhw->sfb, sfb 426 arch/s390/kernel/perf_cpum_sf.c sfb_pending_allocs(&cpuhw->sfb, hwc)); sfb 473 arch/s390/kernel/perf_cpum_sf.c ratio = DIV_ROUND_UP(100 * OVERFLOW_REG(hwc) * cpuhw->sfb.num_sdb, sfb 477 arch/s390/kernel/perf_cpum_sf.c num = compute_sfb_extent(ratio, cpuhw->sfb.num_sdb); sfb 497 arch/s390/kernel/perf_cpum_sf.c static void extend_sampling_buffer(struct sf_buffer *sfb, sfb 503 arch/s390/kernel/perf_cpum_sf.c num = sfb_pending_allocs(sfb, hwc); sfb 506 arch/s390/kernel/perf_cpum_sf.c num_old = sfb->num_sdb; sfb 518 arch/s390/kernel/perf_cpum_sf.c rc = realloc_sampling_buffer(sfb, num, GFP_ATOMIC); sfb 523 arch/s390/kernel/perf_cpum_sf.c if (sfb_has_pending_allocs(sfb, hwc)) sfb 526 arch/s390/kernel/perf_cpum_sf.c num, sfb->num_sdb - num_old, sfb 527 arch/s390/kernel/perf_cpum_sf.c sfb_pending_allocs(sfb, hwc)); sfb 965 arch/s390/kernel/perf_cpum_sf.c if (sfb_has_pending_allocs(&cpuhw->sfb, hwc)) sfb 966 arch/s390/kernel/perf_cpum_sf.c extend_sampling_buffer(&cpuhw->sfb, hwc); sfb 1344 arch/s390/kernel/perf_cpum_sf.c #define AUX_SDB_INDEX(aux, i) ((i) % aux->sfb.num_sdb) sfb 1590 arch/s390/kernel/perf_cpum_sf.c num_sdb = aux->sfb.num_sdb; sfb 1592 arch/s390/kernel/perf_cpum_sf.c num_sdb = aux->sfb.num_sdb; sfb 1654 arch/s390/kernel/perf_cpum_sf.c num_sdbt = aux->sfb.num_sdbt; sfb 1694 arch/s390/kernel/perf_cpum_sf.c struct sf_buffer *sfb; sfb 1718 arch/s390/kernel/perf_cpum_sf.c sfb = &aux->sfb; sfb 1732 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdbt = 0; sfb 1733 arch/s390/kernel/perf_cpum_sf.c sfb->sdbt = (unsigned long *) get_zeroed_page(GFP_KERNEL); sfb 1734 arch/s390/kernel/perf_cpum_sf.c if (!sfb->sdbt) sfb 1736 arch/s390/kernel/perf_cpum_sf.c aux->sdbt_index[sfb->num_sdbt++] = (unsigned long)sfb->sdbt; sfb 1737 arch/s390/kernel/perf_cpum_sf.c tail = sfb->tail = sfb->sdbt; sfb 1748 arch/s390/kernel/perf_cpum_sf.c aux->sdbt_index[sfb->num_sdbt++] = (unsigned long)new; sfb 1758 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdb = nr_pages; sfb 1761 arch/s390/kernel/perf_cpum_sf.c *tail = (unsigned long) sfb->sdbt + 1; sfb 1762 arch/s390/kernel/perf_cpum_sf.c sfb->tail = tail; sfb 1769 arch/s390/kernel/perf_cpum_sf.c aux->empty_mark = sfb->num_sdb - 1; sfb 1773 arch/s390/kernel/perf_cpum_sf.c sfb->num_sdbt, sfb->num_sdb); sfb 1779 arch/s390/kernel/perf_cpum_sf.c for (i = 0; i < sfb->num_sdbt; i++) sfb 1885 arch/s390/kernel/perf_cpum_sf.c if (!SAMPL_DIAG_MODE(&event->hw) && !cpuhw->sfb.sdbt) sfb 1902 arch/s390/kernel/perf_cpum_sf.c cpuhw->lsctl.tear = (unsigned long) cpuhw->sfb.sdbt; sfb 1903 arch/s390/kernel/perf_cpum_sf.c cpuhw->lsctl.dear = *(unsigned long *) cpuhw->sfb.sdbt; sfb 1904 arch/s390/kernel/perf_cpum_sf.c hw_reset_registers(&event->hw, cpuhw->sfb.sdbt); sfb 39 drivers/video/fbdev/pmagb-b-fb.c volatile u32 __iomem *sfb; sfb 71 drivers/video/fbdev/pmagb-b-fb.c writel(v, par->sfb + reg / 4); sfb 76 drivers/video/fbdev/pmagb-b-fb.c return readl(par->sfb + reg / 4); sfb 296 drivers/video/fbdev/pmagb-b-fb.c par->sfb = par->mmio + PMAGB_B_SFB; sfb 243 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 245 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "checking parameters\n"); sfb 251 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "win %d: unsupported bpp %d\n", sfb 265 drivers/video/fbdev/s3c-fb.c if (sfb->variant.palette[win->index] != 0) { sfb 328 drivers/video/fbdev/s3c-fb.c dev_err(sfb->dev, "invalid bpp\n"); sfb 332 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "%s: verified parameters\n", __func__); sfb 344 drivers/video/fbdev/s3c-fb.c static int s3c_fb_calc_pixclk(struct s3c_fb *sfb, unsigned int pixclk) sfb 350 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_clksel) sfb 351 drivers/video/fbdev/s3c-fb.c clk = clk_get_rate(sfb->bus_clk); sfb 353 drivers/video/fbdev/s3c-fb.c clk = clk_get_rate(sfb->lcd_clk); sfb 361 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "pixclk=%u, clk=%lu, div=%d (%lu)\n", sfb 394 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 398 drivers/video/fbdev/s3c-fb.c writel(size, sfb->regs + OSD_BASE(win->index, sfb->variant) sfb 410 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 413 drivers/video/fbdev/s3c-fb.c writel(alpha, sfb->regs + VIDOSD_C(win->index, sfb->variant)); sfb 424 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 428 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_prtcon) { sfb 429 drivers/video/fbdev/s3c-fb.c writel(PRTCON_PROTECT, sfb->regs + PRTCON); sfb 430 drivers/video/fbdev/s3c-fb.c } else if (sfb->variant.has_shadowcon) { sfb 431 drivers/video/fbdev/s3c-fb.c reg = readl(sfb->regs + SHADOWCON); sfb 433 drivers/video/fbdev/s3c-fb.c sfb->regs + SHADOWCON); sfb 436 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_prtcon) { sfb 437 drivers/video/fbdev/s3c-fb.c writel(0, sfb->regs + PRTCON); sfb 438 drivers/video/fbdev/s3c-fb.c } else if (sfb->variant.has_shadowcon) { sfb 439 drivers/video/fbdev/s3c-fb.c reg = readl(sfb->regs + SHADOWCON); sfb 441 drivers/video/fbdev/s3c-fb.c sfb->regs + SHADOWCON); sfb 451 drivers/video/fbdev/s3c-fb.c static void s3c_fb_enable(struct s3c_fb *sfb, int enable) sfb 453 drivers/video/fbdev/s3c-fb.c u32 vidcon0 = readl(sfb->regs + VIDCON0); sfb 455 drivers/video/fbdev/s3c-fb.c if (enable && !sfb->output_on) sfb 456 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 471 drivers/video/fbdev/s3c-fb.c writel(vidcon0, sfb->regs + VIDCON0); sfb 473 drivers/video/fbdev/s3c-fb.c if (!enable && sfb->output_on) sfb 474 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 476 drivers/video/fbdev/s3c-fb.c sfb->output_on = enable; sfb 489 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 490 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs; sfb 497 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "setting framebuffer parameters\n"); sfb 499 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 532 drivers/video/fbdev/s3c-fb.c if (!sfb->output_on) sfb 533 drivers/video/fbdev/s3c-fb.c s3c_fb_enable(sfb, 1); sfb 540 drivers/video/fbdev/s3c-fb.c writel(info->fix.smem_start, buf + sfb->variant.buf_start); sfb 543 drivers/video/fbdev/s3c-fb.c writel(data, buf + sfb->variant.buf_end); sfb 550 drivers/video/fbdev/s3c-fb.c writel(data, regs + sfb->variant.buf_size + (win_no * 4)); sfb 556 drivers/video/fbdev/s3c-fb.c writel(data, regs + VIDOSD_A(win_no, sfb->variant)); sfb 565 drivers/video/fbdev/s3c-fb.c writel(data, regs + VIDOSD_B(win_no, sfb->variant)); sfb 577 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_shadowcon) { sfb 578 drivers/video/fbdev/s3c-fb.c data = readl(sfb->regs + SHADOWCON); sfb 580 drivers/video/fbdev/s3c-fb.c writel(data, sfb->regs + SHADOWCON); sfb 584 drivers/video/fbdev/s3c-fb.c sfb->enabled |= (1 << win->index); sfb 647 drivers/video/fbdev/s3c-fb.c void __iomem *keycon = regs + sfb->variant.keycon; sfb 661 drivers/video/fbdev/s3c-fb.c writel(data, regs + sfb->variant.wincon + (win_no * 4)); sfb 662 drivers/video/fbdev/s3c-fb.c writel(0x0, regs + sfb->variant.winmap + (win_no * 4)); sfb 665 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_blendcon) { sfb 666 drivers/video/fbdev/s3c-fb.c data = readl(sfb->regs + BLENDCON); sfb 672 drivers/video/fbdev/s3c-fb.c writel(data, sfb->regs + BLENDCON); sfb 677 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 696 drivers/video/fbdev/s3c-fb.c static void s3c_fb_update_palette(struct s3c_fb *sfb, sfb 704 drivers/video/fbdev/s3c-fb.c palreg = sfb->regs + sfb->variant.palette[win->index]; sfb 706 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "%s: win %d, reg %d (%p): %08x\n", sfb 711 drivers/video/fbdev/s3c-fb.c palcon = readl(sfb->regs + WPALCON); sfb 712 drivers/video/fbdev/s3c-fb.c writel(palcon | WPALCON_PAL_UPDATE, sfb->regs + WPALCON); sfb 719 drivers/video/fbdev/s3c-fb.c writel(palcon, sfb->regs + WPALCON); sfb 744 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 747 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "%s: win %d: %d => rgb=%d/%d/%d\n", sfb 750 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 773 drivers/video/fbdev/s3c-fb.c s3c_fb_update_palette(sfb, win, regno, val); sfb 779 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 783 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 797 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 800 drivers/video/fbdev/s3c-fb.c u32 output_on = sfb->output_on; sfb 802 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "blank mode %d\n", blank_mode); sfb 804 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 806 drivers/video/fbdev/s3c-fb.c wincon = readl(sfb->regs + sfb->variant.wincon + (index * 4)); sfb 811 drivers/video/fbdev/s3c-fb.c sfb->enabled &= ~(1 << index); sfb 818 drivers/video/fbdev/s3c-fb.c sfb->regs + sfb->variant.winmap + (index * 4)); sfb 824 drivers/video/fbdev/s3c-fb.c writel(0x0, sfb->regs + sfb->variant.winmap + (index * 4)); sfb 827 drivers/video/fbdev/s3c-fb.c sfb->enabled |= (1 << index); sfb 833 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 838 drivers/video/fbdev/s3c-fb.c writel(wincon, sfb->regs + sfb->variant.wincon + (index * 4)); sfb 845 drivers/video/fbdev/s3c-fb.c s3c_fb_enable(sfb, sfb->enabled ? 1 : 0); sfb 848 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 850 drivers/video/fbdev/s3c-fb.c return output_on == sfb->output_on; sfb 868 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 869 drivers/video/fbdev/s3c-fb.c void __iomem *buf = sfb->regs + win->index * 8; sfb 872 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 891 drivers/video/fbdev/s3c-fb.c dev_err(sfb->dev, "invalid bpp\n"); sfb 892 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 903 drivers/video/fbdev/s3c-fb.c writel(info->fix.smem_start + start_boff, buf + sfb->variant.buf_start); sfb 904 drivers/video/fbdev/s3c-fb.c writel(info->fix.smem_start + end_boff, buf + sfb->variant.buf_end); sfb 908 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 916 drivers/video/fbdev/s3c-fb.c static void s3c_fb_enable_irq(struct s3c_fb *sfb) sfb 918 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs; sfb 921 drivers/video/fbdev/s3c-fb.c if (!test_and_set_bit(S3C_FB_VSYNC_IRQ_EN, &sfb->irq_flags)) { sfb 941 drivers/video/fbdev/s3c-fb.c static void s3c_fb_disable_irq(struct s3c_fb *sfb) sfb 943 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs; sfb 946 drivers/video/fbdev/s3c-fb.c if (test_and_clear_bit(S3C_FB_VSYNC_IRQ_EN, &sfb->irq_flags)) { sfb 959 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = dev_id; sfb 960 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs; sfb 963 drivers/video/fbdev/s3c-fb.c spin_lock(&sfb->slock); sfb 972 drivers/video/fbdev/s3c-fb.c sfb->vsync_info.count++; sfb 973 drivers/video/fbdev/s3c-fb.c wake_up_interruptible(&sfb->vsync_info.wait); sfb 979 drivers/video/fbdev/s3c-fb.c s3c_fb_disable_irq(sfb); sfb 981 drivers/video/fbdev/s3c-fb.c spin_unlock(&sfb->slock); sfb 990 drivers/video/fbdev/s3c-fb.c static int s3c_fb_wait_for_vsync(struct s3c_fb *sfb, u32 crtc) sfb 998 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 1000 drivers/video/fbdev/s3c-fb.c count = sfb->vsync_info.count; sfb 1001 drivers/video/fbdev/s3c-fb.c s3c_fb_enable_irq(sfb); sfb 1002 drivers/video/fbdev/s3c-fb.c ret = wait_event_interruptible_timeout(sfb->vsync_info.wait, sfb 1003 drivers/video/fbdev/s3c-fb.c count != sfb->vsync_info.count, sfb 1006 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 1018 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = win->parent; sfb 1029 drivers/video/fbdev/s3c-fb.c ret = s3c_fb_wait_for_vsync(sfb, crtc); sfb 1080 drivers/video/fbdev/s3c-fb.c static int s3c_fb_alloc_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) sfb 1087 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "allocating memory for display\n"); sfb 1092 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "real_size=%u (%u.%u), virt_size=%u (%u.%u)\n", sfb 1103 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "want %u bytes for window\n", size); sfb 1105 drivers/video/fbdev/s3c-fb.c fbi->screen_buffer = dma_alloc_wc(sfb->dev, size, &map_dma, GFP_KERNEL); sfb 1109 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "mapped %x to %p\n", sfb 1125 drivers/video/fbdev/s3c-fb.c static void s3c_fb_free_memory(struct s3c_fb *sfb, struct s3c_fb_win *win) sfb 1130 drivers/video/fbdev/s3c-fb.c dma_free_wc(sfb->dev, PAGE_ALIGN(fbi->fix.smem_len), sfb 1141 drivers/video/fbdev/s3c-fb.c static void s3c_fb_release_win(struct s3c_fb *sfb, struct s3c_fb_win *win) sfb 1146 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_shadowcon) { sfb 1147 drivers/video/fbdev/s3c-fb.c data = readl(sfb->regs + SHADOWCON); sfb 1150 drivers/video/fbdev/s3c-fb.c writel(data, sfb->regs + SHADOWCON); sfb 1155 drivers/video/fbdev/s3c-fb.c s3c_fb_free_memory(sfb, win); sfb 1169 drivers/video/fbdev/s3c-fb.c static int s3c_fb_probe_win(struct s3c_fb *sfb, unsigned int win_no, sfb 1181 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "probing window %d, variant %p\n", win_no, variant); sfb 1183 drivers/video/fbdev/s3c-fb.c init_waitqueue_head(&sfb->vsync_info.wait); sfb 1188 drivers/video/fbdev/s3c-fb.c palette_size * sizeof(u32), sfb->dev); sfb 1192 drivers/video/fbdev/s3c-fb.c windata = sfb->pdata->win[win_no]; sfb 1193 drivers/video/fbdev/s3c-fb.c initmode = *sfb->pdata->vtiming; sfb 1204 drivers/video/fbdev/s3c-fb.c win->parent = sfb; sfb 1209 drivers/video/fbdev/s3c-fb.c ret = s3c_fb_alloc_memory(sfb, win); sfb 1211 drivers/video/fbdev/s3c-fb.c dev_err(sfb->dev, "failed to allocate display memory\n"); sfb 1253 drivers/video/fbdev/s3c-fb.c dev_err(sfb->dev, "check_var failed on initial video params\n"); sfb 1263 drivers/video/fbdev/s3c-fb.c dev_err(sfb->dev, "failed to allocate fb cmap\n"); sfb 1267 drivers/video/fbdev/s3c-fb.c dev_dbg(sfb->dev, "about to register framebuffer\n"); sfb 1273 drivers/video/fbdev/s3c-fb.c dev_err(sfb->dev, "failed to register framebuffer\n"); sfb 1277 drivers/video/fbdev/s3c-fb.c dev_info(sfb->dev, "window %d: fb %s\n", win_no, fbinfo->fix.id); sfb 1288 drivers/video/fbdev/s3c-fb.c static void s3c_fb_set_rgb_timing(struct s3c_fb *sfb) sfb 1290 drivers/video/fbdev/s3c-fb.c struct fb_videomode *vmode = sfb->pdata->vtiming; sfb 1291 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs; sfb 1298 drivers/video/fbdev/s3c-fb.c clkdiv = s3c_fb_calc_pixclk(sfb, vmode->pixclock); sfb 1300 drivers/video/fbdev/s3c-fb.c data = sfb->pdata->vidcon0; sfb 1308 drivers/video/fbdev/s3c-fb.c if (sfb->variant.is_2443) sfb 1315 drivers/video/fbdev/s3c-fb.c writel(data, regs + sfb->variant.vidtcon); sfb 1320 drivers/video/fbdev/s3c-fb.c writel(data, regs + sfb->variant.vidtcon + 4); sfb 1326 drivers/video/fbdev/s3c-fb.c writel(data, regs + sfb->variant.vidtcon + 8); sfb 1336 drivers/video/fbdev/s3c-fb.c static void s3c_fb_clear_win(struct s3c_fb *sfb, int win) sfb 1338 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs; sfb 1341 drivers/video/fbdev/s3c-fb.c writel(0, regs + sfb->variant.wincon + (win * 4)); sfb 1342 drivers/video/fbdev/s3c-fb.c writel(0, regs + VIDOSD_A(win, sfb->variant)); sfb 1343 drivers/video/fbdev/s3c-fb.c writel(0, regs + VIDOSD_B(win, sfb->variant)); sfb 1344 drivers/video/fbdev/s3c-fb.c writel(0, regs + VIDOSD_C(win, sfb->variant)); sfb 1346 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_shadowcon) { sfb 1347 drivers/video/fbdev/s3c-fb.c reg = readl(sfb->regs + SHADOWCON); sfb 1351 drivers/video/fbdev/s3c-fb.c writel(reg, sfb->regs + SHADOWCON); sfb 1361 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb; sfb 1381 drivers/video/fbdev/s3c-fb.c sfb = devm_kzalloc(dev, sizeof(*sfb), GFP_KERNEL); sfb 1382 drivers/video/fbdev/s3c-fb.c if (!sfb) sfb 1385 drivers/video/fbdev/s3c-fb.c dev_dbg(dev, "allocate new framebuffer %p\n", sfb); sfb 1387 drivers/video/fbdev/s3c-fb.c sfb->dev = dev; sfb 1388 drivers/video/fbdev/s3c-fb.c sfb->pdata = pd; sfb 1389 drivers/video/fbdev/s3c-fb.c sfb->variant = fbdrv->variant; sfb 1391 drivers/video/fbdev/s3c-fb.c spin_lock_init(&sfb->slock); sfb 1393 drivers/video/fbdev/s3c-fb.c sfb->bus_clk = devm_clk_get(dev, "lcd"); sfb 1394 drivers/video/fbdev/s3c-fb.c if (IS_ERR(sfb->bus_clk)) { sfb 1396 drivers/video/fbdev/s3c-fb.c return PTR_ERR(sfb->bus_clk); sfb 1399 drivers/video/fbdev/s3c-fb.c clk_prepare_enable(sfb->bus_clk); sfb 1401 drivers/video/fbdev/s3c-fb.c if (!sfb->variant.has_clksel) { sfb 1402 drivers/video/fbdev/s3c-fb.c sfb->lcd_clk = devm_clk_get(dev, "sclk_fimd"); sfb 1403 drivers/video/fbdev/s3c-fb.c if (IS_ERR(sfb->lcd_clk)) { sfb 1405 drivers/video/fbdev/s3c-fb.c ret = PTR_ERR(sfb->lcd_clk); sfb 1409 drivers/video/fbdev/s3c-fb.c clk_prepare_enable(sfb->lcd_clk); sfb 1412 drivers/video/fbdev/s3c-fb.c pm_runtime_enable(sfb->dev); sfb 1415 drivers/video/fbdev/s3c-fb.c sfb->regs = devm_ioremap_resource(dev, res); sfb 1416 drivers/video/fbdev/s3c-fb.c if (IS_ERR(sfb->regs)) { sfb 1417 drivers/video/fbdev/s3c-fb.c ret = PTR_ERR(sfb->regs); sfb 1427 drivers/video/fbdev/s3c-fb.c sfb->irq_no = res->start; sfb 1428 drivers/video/fbdev/s3c-fb.c ret = devm_request_irq(dev, sfb->irq_no, s3c_fb_irq, sfb 1429 drivers/video/fbdev/s3c-fb.c 0, "s3c_fb", sfb); sfb 1435 drivers/video/fbdev/s3c-fb.c dev_dbg(dev, "got resources (regs %p), probing windows\n", sfb->regs); sfb 1437 drivers/video/fbdev/s3c-fb.c platform_set_drvdata(pdev, sfb); sfb 1438 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 1444 drivers/video/fbdev/s3c-fb.c writel(pd->vidcon1, sfb->regs + VIDCON1); sfb 1447 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_fixvclk) { sfb 1448 drivers/video/fbdev/s3c-fb.c reg = readl(sfb->regs + VIDCON1); sfb 1451 drivers/video/fbdev/s3c-fb.c writel(reg, sfb->regs + VIDCON1); sfb 1457 drivers/video/fbdev/s3c-fb.c s3c_fb_clear_win(sfb, win); sfb 1461 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs + sfb->variant.keycon; sfb 1468 drivers/video/fbdev/s3c-fb.c s3c_fb_set_rgb_timing(sfb); sfb 1476 drivers/video/fbdev/s3c-fb.c ret = s3c_fb_probe_win(sfb, win, fbdrv->win[win], sfb 1477 drivers/video/fbdev/s3c-fb.c &sfb->windows[win]); sfb 1481 drivers/video/fbdev/s3c-fb.c s3c_fb_release_win(sfb, sfb->windows[win]); sfb 1486 drivers/video/fbdev/s3c-fb.c platform_set_drvdata(pdev, sfb); sfb 1487 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 1492 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 1495 drivers/video/fbdev/s3c-fb.c pm_runtime_disable(sfb->dev); sfb 1497 drivers/video/fbdev/s3c-fb.c if (!sfb->variant.has_clksel) sfb 1498 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->lcd_clk); sfb 1501 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->bus_clk); sfb 1515 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = platform_get_drvdata(pdev); sfb 1518 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 1521 drivers/video/fbdev/s3c-fb.c if (sfb->windows[win]) sfb 1522 drivers/video/fbdev/s3c-fb.c s3c_fb_release_win(sfb, sfb->windows[win]); sfb 1524 drivers/video/fbdev/s3c-fb.c if (!sfb->variant.has_clksel) sfb 1525 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->lcd_clk); sfb 1527 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->bus_clk); sfb 1529 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 1530 drivers/video/fbdev/s3c-fb.c pm_runtime_disable(sfb->dev); sfb 1538 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = dev_get_drvdata(dev); sfb 1542 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 1545 drivers/video/fbdev/s3c-fb.c win = sfb->windows[win_no]; sfb 1553 drivers/video/fbdev/s3c-fb.c if (!sfb->variant.has_clksel) sfb 1554 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->lcd_clk); sfb 1556 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->bus_clk); sfb 1558 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 1565 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = dev_get_drvdata(dev); sfb 1566 drivers/video/fbdev/s3c-fb.c struct s3c_fb_platdata *pd = sfb->pdata; sfb 1571 drivers/video/fbdev/s3c-fb.c pm_runtime_get_sync(sfb->dev); sfb 1573 drivers/video/fbdev/s3c-fb.c clk_prepare_enable(sfb->bus_clk); sfb 1575 drivers/video/fbdev/s3c-fb.c if (!sfb->variant.has_clksel) sfb 1576 drivers/video/fbdev/s3c-fb.c clk_prepare_enable(sfb->lcd_clk); sfb 1580 drivers/video/fbdev/s3c-fb.c writel(pd->vidcon1, sfb->regs + VIDCON1); sfb 1583 drivers/video/fbdev/s3c-fb.c if (sfb->variant.has_fixvclk) { sfb 1584 drivers/video/fbdev/s3c-fb.c reg = readl(sfb->regs + VIDCON1); sfb 1587 drivers/video/fbdev/s3c-fb.c writel(reg, sfb->regs + VIDCON1); sfb 1591 drivers/video/fbdev/s3c-fb.c for (win_no = 0; win_no < sfb->variant.nr_windows; win_no++) sfb 1592 drivers/video/fbdev/s3c-fb.c s3c_fb_clear_win(sfb, win_no); sfb 1594 drivers/video/fbdev/s3c-fb.c for (win_no = 0; win_no < sfb->variant.nr_windows - 1; win_no++) { sfb 1595 drivers/video/fbdev/s3c-fb.c void __iomem *regs = sfb->regs + sfb->variant.keycon; sfb 1596 drivers/video/fbdev/s3c-fb.c win = sfb->windows[win_no]; sfb 1607 drivers/video/fbdev/s3c-fb.c s3c_fb_set_rgb_timing(sfb); sfb 1611 drivers/video/fbdev/s3c-fb.c win = sfb->windows[win_no]; sfb 1619 drivers/video/fbdev/s3c-fb.c pm_runtime_put_sync(sfb->dev); sfb 1628 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = dev_get_drvdata(dev); sfb 1630 drivers/video/fbdev/s3c-fb.c if (!sfb->variant.has_clksel) sfb 1631 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->lcd_clk); sfb 1633 drivers/video/fbdev/s3c-fb.c clk_disable_unprepare(sfb->bus_clk); sfb 1640 drivers/video/fbdev/s3c-fb.c struct s3c_fb *sfb = dev_get_drvdata(dev); sfb 1641 drivers/video/fbdev/s3c-fb.c struct s3c_fb_platdata *pd = sfb->pdata; sfb 1643 drivers/video/fbdev/s3c-fb.c clk_prepare_enable(sfb->bus_clk); sfb 1645 drivers/video/fbdev/s3c-fb.c if (!sfb->variant.has_clksel) sfb 1646 drivers/video/fbdev/s3c-fb.c clk_prepare_enable(sfb->lcd_clk); sfb 1650 drivers/video/fbdev/s3c-fb.c writel(pd->vidcon1, sfb->regs + VIDCON1); sfb 889 drivers/video/fbdev/sm712fb.c struct smtcfb_info *sfb = info->par; sfb 896 drivers/video/fbdev/sm712fb.c switch (sfb->chip_id) { sfb 975 drivers/video/fbdev/sm712fb.c struct smtcfb_info *sfb; sfb 978 drivers/video/fbdev/sm712fb.c sfb = info->par; sfb 983 drivers/video/fbdev/sm712fb.c switch (sfb->fb->fix.visual) { sfb 991 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 16) { sfb 992 drivers/video/fbdev/sm712fb.c u32 *pal = sfb->fb->pseudo_palette; sfb 994 drivers/video/fbdev/sm712fb.c val = chan_to_field(red, &sfb->fb->var.red); sfb 995 drivers/video/fbdev/sm712fb.c val |= chan_to_field(green, &sfb->fb->var.green); sfb 996 drivers/video/fbdev/sm712fb.c val |= chan_to_field(blue, &sfb->fb->var.blue); sfb 999 drivers/video/fbdev/sm712fb.c u32 *pal = sfb->fb->pseudo_palette; sfb 1001 drivers/video/fbdev/sm712fb.c val = chan_to_field(red, &sfb->fb->var.red); sfb 1002 drivers/video/fbdev/sm712fb.c val |= chan_to_field(green, &sfb->fb->var.green); sfb 1003 drivers/video/fbdev/sm712fb.c val |= chan_to_field(blue, &sfb->fb->var.blue); sfb 1181 drivers/video/fbdev/sm712fb.c static void sm7xx_set_timing(struct smtcfb_info *sfb) sfb 1186 drivers/video/fbdev/sm712fb.c dev_dbg(&sfb->pdev->dev, sfb 1188 drivers/video/fbdev/sm712fb.c sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz); sfb 1191 drivers/video/fbdev/sm712fb.c if (vgamode[j].mmsizex != sfb->width || sfb 1192 drivers/video/fbdev/sm712fb.c vgamode[j].mmsizey != sfb->height || sfb 1193 drivers/video/fbdev/sm712fb.c vgamode[j].bpp != sfb->fb->var.bits_per_pixel || sfb 1194 drivers/video/fbdev/sm712fb.c vgamode[j].hz != sfb->hz) sfb 1197 drivers/video/fbdev/sm712fb.c dev_dbg(&sfb->pdev->dev, sfb 1202 drivers/video/fbdev/sm712fb.c dev_dbg(&sfb->pdev->dev, "vgamode index=%d\n", j); sfb 1262 drivers/video/fbdev/sm712fb.c writel(0x0, sfb->vp_regs + 0x0C); sfb 1263 drivers/video/fbdev/sm712fb.c writel(0x0, sfb->vp_regs + 0x40); sfb 1266 drivers/video/fbdev/sm712fb.c m_nscreenstride = (sfb->width * sfb->fb->var.bits_per_pixel) / 64; sfb 1267 drivers/video/fbdev/sm712fb.c switch (sfb->fb->var.bits_per_pixel) { sfb 1269 drivers/video/fbdev/sm712fb.c writel(0x0, sfb->vp_regs + 0x0); sfb 1272 drivers/video/fbdev/sm712fb.c writel(0x00020000, sfb->vp_regs + 0x0); sfb 1275 drivers/video/fbdev/sm712fb.c writel(0x00040000, sfb->vp_regs + 0x0); sfb 1278 drivers/video/fbdev/sm712fb.c writel(0x00030000, sfb->vp_regs + 0x0); sfb 1282 drivers/video/fbdev/sm712fb.c sfb->vp_regs + 0x10); sfb 1285 drivers/video/fbdev/sm712fb.c static void smtc_set_timing(struct smtcfb_info *sfb) sfb 1287 drivers/video/fbdev/sm712fb.c switch (sfb->chip_id) { sfb 1291 drivers/video/fbdev/sm712fb.c sm7xx_set_timing(sfb); sfb 1296 drivers/video/fbdev/sm712fb.c static void smtcfb_setmode(struct smtcfb_info *sfb) sfb 1298 drivers/video/fbdev/sm712fb.c switch (sfb->fb->var.bits_per_pixel) { sfb 1300 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_TRUECOLOR; sfb 1301 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres * 4; sfb 1302 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 8; sfb 1303 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 8; sfb 1304 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 8; sfb 1305 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 16; sfb 1306 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 8; sfb 1307 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; sfb 1310 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_TRUECOLOR; sfb 1311 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres * 3; sfb 1312 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 8; sfb 1313 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 8; sfb 1314 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 8; sfb 1315 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 16; sfb 1316 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 8; sfb 1317 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; sfb 1320 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_PSEUDOCOLOR; sfb 1321 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres; sfb 1322 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 3; sfb 1323 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 3; sfb 1324 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 2; sfb 1325 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 5; sfb 1326 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 2; sfb 1327 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; sfb 1331 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_TRUECOLOR; sfb 1332 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres * 2; sfb 1333 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 5; sfb 1334 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 6; sfb 1335 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 5; sfb 1336 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 11; sfb 1337 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 5; sfb 1338 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; sfb 1342 drivers/video/fbdev/sm712fb.c sfb->width = sfb->fb->var.xres; sfb 1343 drivers/video/fbdev/sm712fb.c sfb->height = sfb->fb->var.yres; sfb 1344 drivers/video/fbdev/sm712fb.c sfb->hz = 60; sfb 1345 drivers/video/fbdev/sm712fb.c smtc_set_timing(sfb); sfb 1389 drivers/video/fbdev/sm712fb.c static void smtc_unmap_mmio(struct smtcfb_info *sfb) sfb 1391 drivers/video/fbdev/sm712fb.c if (sfb && smtc_regbaseaddress) sfb 1399 drivers/video/fbdev/sm712fb.c static int smtc_map_smem(struct smtcfb_info *sfb, sfb 1402 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_start = pci_resource_start(pdev, 0); sfb 1404 drivers/video/fbdev/sm712fb.c if (sfb->chip_id == 0x720) sfb 1406 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_start += 0x00200000; sfb 1409 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) sfb 1410 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_start += big_addr; sfb 1412 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_len = smem_len; sfb 1414 drivers/video/fbdev/sm712fb.c sfb->fb->screen_base = sfb->lfb; sfb 1416 drivers/video/fbdev/sm712fb.c if (!sfb->fb->screen_base) { sfb 1418 drivers/video/fbdev/sm712fb.c "%s: unable to map screen memory\n", sfb->fb->fix.id); sfb 1429 drivers/video/fbdev/sm712fb.c static void smtc_unmap_smem(struct smtcfb_info *sfb) sfb 1431 drivers/video/fbdev/sm712fb.c if (sfb && sfb->fb->screen_base) { sfb 1432 drivers/video/fbdev/sm712fb.c iounmap(sfb->fb->screen_base); sfb 1433 drivers/video/fbdev/sm712fb.c sfb->fb->screen_base = NULL; sfb 1446 drivers/video/fbdev/sm712fb.c static u_long sm7xx_vram_probe(struct smtcfb_info *sfb) sfb 1450 drivers/video/fbdev/sm712fb.c switch (sfb->chip_id) { sfb 1479 drivers/video/fbdev/sm712fb.c static void sm7xx_resolution_probe(struct smtcfb_info *sfb) sfb 1483 drivers/video/fbdev/sm712fb.c sfb->fb->var.xres = smtc_scr_info.lfb_width; sfb 1484 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres = smtc_scr_info.lfb_height; sfb 1485 drivers/video/fbdev/sm712fb.c sfb->fb->var.bits_per_pixel = smtc_scr_info.lfb_depth; sfb 1495 drivers/video/fbdev/sm712fb.c sfb->fb->var.xres = SCREEN_X_RES; sfb 1496 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres = SCREEN_Y_RES_PC; sfb 1497 drivers/video/fbdev/sm712fb.c sfb->fb->var.bits_per_pixel = SCREEN_BPP; sfb 1509 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres = SCREEN_Y_RES_NETBOOK; sfb 1513 drivers/video/fbdev/sm712fb.c big_pixel_depth(sfb->fb->var.bits_per_pixel, smtc_scr_info.lfb_depth); sfb 1519 drivers/video/fbdev/sm712fb.c struct smtcfb_info *sfb; sfb 1539 drivers/video/fbdev/sm712fb.c info = framebuffer_alloc(sizeof(*sfb), &pdev->dev); sfb 1545 drivers/video/fbdev/sm712fb.c sfb = info->par; sfb 1546 drivers/video/fbdev/sm712fb.c sfb->fb = info; sfb 1547 drivers/video/fbdev/sm712fb.c sfb->chip_id = ent->device; sfb 1548 drivers/video/fbdev/sm712fb.c sfb->pdev = pdev; sfb 1553 drivers/video/fbdev/sm712fb.c info->pseudo_palette = sfb->colreg; sfb 1554 drivers/video/fbdev/sm712fb.c info->par = sfb; sfb 1556 drivers/video/fbdev/sm712fb.c pci_set_drvdata(pdev, sfb); sfb 1562 drivers/video/fbdev/sm712fb.c pci_read_config_byte(pdev, PCI_REVISION_ID, &sfb->chip_rev_id); sfb 1564 drivers/video/fbdev/sm712fb.c smem_size = sm7xx_vram_probe(sfb); sfb 1568 drivers/video/fbdev/sm712fb.c switch (sfb->chip_id) { sfb 1571 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_start = mmio_base + 0x00400000; sfb 1572 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_len = 0x00400000; sfb 1573 drivers/video/fbdev/sm712fb.c sfb->lfb = ioremap(mmio_base, mmio_addr); sfb 1574 drivers/video/fbdev/sm712fb.c if (!sfb->lfb) { sfb 1577 drivers/video/fbdev/sm712fb.c sfb->fb->fix.id); sfb 1582 drivers/video/fbdev/sm712fb.c sfb->mmio = (smtc_regbaseaddress = sfb 1583 drivers/video/fbdev/sm712fb.c sfb->lfb + 0x00700000); sfb 1584 drivers/video/fbdev/sm712fb.c sfb->dp_regs = sfb->lfb + 0x00408000; sfb 1585 drivers/video/fbdev/sm712fb.c sfb->vp_regs = sfb->lfb + 0x0040c000; sfb 1586 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) { sfb 1587 drivers/video/fbdev/sm712fb.c sfb->lfb += big_addr; sfb 1588 drivers/video/fbdev/sm712fb.c dev_info(&pdev->dev, "sfb->lfb=%p\n", sfb->lfb); sfb 1598 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) sfb 1602 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_start = mmio_base; sfb 1603 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_len = 0x00200000; sfb 1604 drivers/video/fbdev/sm712fb.c sfb->dp_regs = ioremap(mmio_base, 0x00200000 + smem_size); sfb 1605 drivers/video/fbdev/sm712fb.c sfb->lfb = sfb->dp_regs + 0x00200000; sfb 1606 drivers/video/fbdev/sm712fb.c sfb->mmio = (smtc_regbaseaddress = sfb 1607 drivers/video/fbdev/sm712fb.c sfb->dp_regs + 0x000c0000); sfb 1608 drivers/video/fbdev/sm712fb.c sfb->vp_regs = sfb->dp_regs + 0x800; sfb 1622 drivers/video/fbdev/sm712fb.c sm7xx_resolution_probe(sfb); sfb 1625 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 15) sfb 1626 drivers/video/fbdev/sm712fb.c sfb->fb->var.bits_per_pixel = 16; sfb 1628 drivers/video/fbdev/sm712fb.c sfb->fb->var.xres_virtual = sfb->fb->var.xres; sfb 1629 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres_virtual = sfb->fb->var.yres; sfb 1630 drivers/video/fbdev/sm712fb.c err = smtc_map_smem(sfb, pdev, smem_size); sfb 1638 drivers/video/fbdev/sm712fb.c memset_io(sfb->lfb, 0, sfb->fb->fix.smem_len); sfb 1646 drivers/video/fbdev/sm712fb.c sfb->chip_id, sfb->chip_rev_id, sfb->fb->var.xres, sfb 1647 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres, sfb->fb->var.bits_per_pixel); sfb 1654 drivers/video/fbdev/sm712fb.c smtc_unmap_smem(sfb); sfb 1655 drivers/video/fbdev/sm712fb.c smtc_unmap_mmio(sfb); sfb 1684 drivers/video/fbdev/sm712fb.c struct smtcfb_info *sfb; sfb 1686 drivers/video/fbdev/sm712fb.c sfb = pci_get_drvdata(pdev); sfb 1687 drivers/video/fbdev/sm712fb.c smtc_unmap_smem(sfb); sfb 1688 drivers/video/fbdev/sm712fb.c smtc_unmap_mmio(sfb); sfb 1689 drivers/video/fbdev/sm712fb.c unregister_framebuffer(sfb->fb); sfb 1690 drivers/video/fbdev/sm712fb.c framebuffer_release(sfb->fb); sfb 1697 drivers/video/fbdev/sm712fb.c struct smtcfb_info *sfb = dev_get_drvdata(device); sfb 1707 drivers/video/fbdev/sm712fb.c fb_set_suspend(sfb->fb, 1); sfb 1718 drivers/video/fbdev/sm712fb.c struct smtcfb_info *sfb = dev_get_drvdata(device); sfb 1723 drivers/video/fbdev/sm712fb.c switch (sfb->chip_id) { sfb 1732 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) sfb 1745 drivers/video/fbdev/sm712fb.c smtcfb_setmode(sfb); sfb 1748 drivers/video/fbdev/sm712fb.c fb_set_suspend(sfb->fb, 0); sfb 1204 drivers/video/fbdev/tgafb.c void __iomem *sfb; sfb 1207 drivers/video/fbdev/tgafb.c sfb = tga_fb + sepos; sfb 1212 drivers/video/fbdev/tgafb.c !(((unsigned long)sfb | (unsigned long)dfb) & 63)) { sfb 1214 drivers/video/fbdev/tgafb.c __raw_writel(sfb - tga_fb, tga_regs+TGA_COPY64_SRC); sfb 1218 drivers/video/fbdev/tgafb.c sfb += 64; sfb 1225 drivers/video/fbdev/tgafb.c __raw_writel(0xffffffff, sfb); sfb 1229 drivers/video/fbdev/tgafb.c sfb += step; sfb 1234 drivers/video/fbdev/tgafb.c sfb += last_step - step; sfb 1236 drivers/video/fbdev/tgafb.c __raw_writel(mask_last, sfb);