fb 107 arch/alpha/math-emu/math.c unsigned long fa, fb, fc, func, mode, src; fb 114 arch/alpha/math-emu/math.c fb = (insn >> 16) & 0x1f; fb 131 arch/alpha/math-emu/math.c vb = alpha_read_fp_reg_s(fb); fb 161 arch/alpha/math-emu/math.c vb = alpha_read_fp_reg(fb); fb 227 arch/alpha/math-emu/math.c vb = alpha_read_fp_reg_s(fb); fb 248 arch/alpha/math-emu/math.c vb = alpha_read_fp_reg(fb); fb 191 arch/arm/mach-integrator/impd1.c static void impd1fb_clcd_disable(struct clcd_fb *fb) fb 193 arch/arm/mach-integrator/impd1.c impd1_tweak_control(fb->dev->dev.parent, IMPD1_CTRL_DISP_MASK, 0); fb 199 arch/arm/mach-integrator/impd1.c static void impd1fb_clcd_enable(struct clcd_fb *fb) fb 201 arch/arm/mach-integrator/impd1.c impd1_tweak_control(fb->dev->dev.parent, IMPD1_CTRL_DISP_MASK, fb 202 arch/arm/mach-integrator/impd1.c fb->panel->connector | IMPD1_CTRL_DISP_ENABLE); fb 205 arch/arm/mach-integrator/impd1.c static int impd1fb_clcd_setup(struct clcd_fb *fb) fb 207 arch/arm/mach-integrator/impd1.c unsigned long framebase = fb->dev->res.start + 0x01000000; fb 211 arch/arm/mach-integrator/impd1.c fb->panel = &PANELTYPE; fb 218 arch/arm/mach-integrator/impd1.c fb->fb.screen_base = ioremap(framebase, framesize); fb 219 arch/arm/mach-integrator/impd1.c if (!fb->fb.screen_base) { fb 225 arch/arm/mach-integrator/impd1.c fb->fb.fix.smem_start = framebase; fb 226 arch/arm/mach-integrator/impd1.c fb->fb.fix.smem_len = framesize; fb 235 arch/arm/mach-integrator/impd1.c static int impd1fb_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma) fb 239 arch/arm/mach-integrator/impd1.c start = vma->vm_pgoff + (fb->fb.fix.smem_start >> PAGE_SHIFT); fb 246 arch/arm/mach-integrator/impd1.c static void impd1fb_clcd_remove(struct clcd_fb *fb) fb 248 arch/arm/mach-integrator/impd1.c iounmap(fb->fb.screen_base); fb 249 arch/arm/mach-integrator/impd1.c release_mem_region(fb->fb.fix.smem_start, fb->fb.fix.smem_len); fb 108 arch/arm/mach-mmp/pxa168.c PXA168_DEVICE(fb, "pxa168-fb", -1, LCD, 0xd420b000, 0x1c8); fb 144 arch/arm/mach-mmp/pxa910.c PXA910_DEVICE(fb, "mmp-fb", -1, NONE, 0, 0); fb 203 arch/arm/mach-pxa/cm-x270.c static int cmx270_marathon_probe(struct fb_info *fb) fb 218 arch/arm/mach-pxa/cm-x270.c static int cmx270_marathon_remove(struct fb_info *fb) fb 65 arch/arm/mach-vt8500/vt8500.c struct device_node *fb; fb 70 arch/arm/mach-vt8500/vt8500.c fb = of_find_compatible_node(NULL, NULL, "via,vt8500-fb"); fb 71 arch/arm/mach-vt8500/vt8500.c if (fb) { fb 94 arch/arm/mach-vt8500/vt8500.c of_node_put(fb); fb 99 arch/arm/mach-vt8500/vt8500.c fb = of_find_compatible_node(NULL, NULL, "wm,wm8505-fb"); fb 100 arch/arm/mach-vt8500/vt8500.c if (fb) { fb 126 arch/arm/mach-vt8500/vt8500.c of_node_put(fb); fb 11 arch/nds32/include/asm/fpuemu.h void fadds(void *ft, void *fa, void *fb); fb 12 arch/nds32/include/asm/fpuemu.h void fsubs(void *ft, void *fa, void *fb); fb 13 arch/nds32/include/asm/fpuemu.h void fmuls(void *ft, void *fa, void *fb); fb 14 arch/nds32/include/asm/fpuemu.h void fdivs(void *ft, void *fa, void *fb); fb 24 arch/nds32/include/asm/fpuemu.h int fcmps(void *ft, void *fa, void *fb, int cop); fb 29 arch/nds32/include/asm/fpuemu.h void faddd(void *ft, void *fa, void *fb); fb 30 arch/nds32/include/asm/fpuemu.h void fsubd(void *ft, void *fa, void *fb); fb 31 arch/nds32/include/asm/fpuemu.h void fmuld(void *ft, void *fa, void *fb); fb 32 arch/nds32/include/asm/fpuemu.h void fdivd(void *ft, void *fa, void *fb); fb 42 arch/nds32/include/asm/fpuemu.h int fcmpd(void *ft, void *fa, void *fb, int cop); fb 8 arch/nds32/math-emu/faddd.c void faddd(void *ft, void *fa, void *fb) fb 16 arch/nds32/math-emu/faddd.c FP_UNPACK_DP(B, fb); fb 8 arch/nds32/math-emu/fadds.c void fadds(void *ft, void *fa, void *fb) fb 16 arch/nds32/math-emu/fadds.c FP_UNPACK_SP(B, fb); fb 6 arch/nds32/math-emu/fcmpd.c int fcmpd(void *ft, void *fa, void *fb, int cmpop) fb 14 arch/nds32/math-emu/fcmpd.c FP_UNPACK_DP(B, fb); fb 6 arch/nds32/math-emu/fcmps.c int fcmps(void *ft, void *fa, void *fb, int cmpop) fb 14 arch/nds32/math-emu/fcmps.c FP_UNPACK_SP(B, fb); fb 9 arch/nds32/math-emu/fdivd.c void fdivd(void *ft, void *fa, void *fb) fb 17 arch/nds32/math-emu/fdivd.c FP_UNPACK_DP(B, fb); fb 8 arch/nds32/math-emu/fdivs.c void fdivs(void *ft, void *fa, void *fb) fb 16 arch/nds32/math-emu/fdivs.c FP_UNPACK_SP(B, fb); fb 8 arch/nds32/math-emu/fmuld.c void fmuld(void *ft, void *fa, void *fb) fb 16 arch/nds32/math-emu/fmuld.c FP_UNPACK_DP(B, fb); fb 8 arch/nds32/math-emu/fmuls.c void fmuls(void *ft, void *fa, void *fb) fb 16 arch/nds32/math-emu/fmuls.c FP_UNPACK_SP(B, fb); fb 19 arch/nds32/math-emu/fpuemu.c void fpemu_##name##p(void *ft, void *fa, void *fb) \ fb 21 arch/nds32/math-emu/fpuemu.c f1(fa, fa, fb); \ fb 26 arch/nds32/math-emu/fpuemu.c void fpemu_##name##p(void *ft, void *fa, void *fb) \ fb 28 arch/nds32/math-emu/fpuemu.c f1(fa, fa, fb); \ fb 63 arch/nds32/math-emu/fpuemu.c void (*t)(void *ft, void *fa, void *fb); fb 279 arch/nds32/math-emu/fpuemu.c void *ft, *fa, *fb; fb 283 arch/nds32/math-emu/fpuemu.c SPFROMREG(fb, NDS32Insn_OPCODE_Rb(insn)); fb 284 arch/nds32/math-emu/fpuemu.c func.t(ft, fa, fb); fb 297 arch/nds32/math-emu/fpuemu.c void *ft, *fa, *fb; fb 301 arch/nds32/math-emu/fpuemu.c SPFROMREG(fb, NDS32Insn_OPCODE_Rb(insn)); fb 304 arch/nds32/math-emu/fpuemu.c fcmps(ft, fa, fb, cmpop); fb 318 arch/nds32/math-emu/fpuemu.c void *ft, *fa, *fb; fb 322 arch/nds32/math-emu/fpuemu.c DPFROMREG(fb, NDS32Insn_OPCODE_Rb(insn)); fb 323 arch/nds32/math-emu/fpuemu.c func.t(ft, fa, fb); fb 336 arch/nds32/math-emu/fpuemu.c void *ft, *fa, *fb; fb 340 arch/nds32/math-emu/fpuemu.c DPFROMREG(fb, NDS32Insn_OPCODE_Rb(insn)); fb 343 arch/nds32/math-emu/fpuemu.c fcmpd(ft, fa, fb, cmpop); fb 8 arch/nds32/math-emu/fsubd.c void fsubd(void *ft, void *fa, void *fb) fb 17 arch/nds32/math-emu/fsubd.c FP_UNPACK_DP(B, fb); fb 8 arch/nds32/math-emu/fsubs.c void fsubs(void *ft, void *fa, void *fb) fb 17 arch/nds32/math-emu/fsubs.c FP_UNPACK_SP(B, fb); fb 46 arch/powerpc/boot/redboot.h unsigned long fb; /* Pointer to frame buffer (pixel) memory */ fb 181 arch/powerpc/math-emu/math_efp.c unsigned long type, func, fc, fa, fb, src, speinsn; fb 196 arch/powerpc/math-emu/math_efp.c fb = (speinsn >> 11) & 0x1f; fb 203 arch/powerpc/math-emu/math_efp.c vb.wp[0] = current->thread.evr[fb]; fb 204 arch/powerpc/math-emu/math_efp.c vb.wp[1] = regs->gpr[fb]; fb 728 arch/powerpc/math-emu/math_efp.c unsigned long speinsn, type, fb, fc, fptype, func; fb 756 arch/powerpc/math-emu/math_efp.c fb = (speinsn >> 11) & 0x1f; fb 788 arch/powerpc/math-emu/math_efp.c s_lo = regs->gpr[fb] & SIGN_BIT_S; fb 796 arch/powerpc/math-emu/math_efp.c s_lo = regs->gpr[fb] & SIGN_BIT_S; fb 798 arch/powerpc/math-emu/math_efp.c s_hi = current->thread.evr[fb] & SIGN_BIT_S; fb 807 arch/powerpc/math-emu/math_efp.c s_hi = current->thread.evr[fb] & SIGN_BIT_S; fb 106 arch/powerpc/xmon/spu-dis.c int fb = (insn >> (32-18)) & 0x7f; fb 107 arch/powerpc/xmon/spu-dis.c if (fb & 0x40) fb 109 arch/powerpc/xmon/spu-dis.c if (fb & 0x20) fb 111 arch/powerpc/xmon/spu-dis.c if (fb & 0x10) fb 205 arch/sh/boards/board-sh7785lcr.c .fb = &sm501_fb_pdata, fb 171 arch/sh/boards/mach-r2d/setup.c .fb = &sm501_fb_pdata, fb 458 block/partitions/msdos.c struct fat_boot_sector *fb; fb 499 block/partitions/msdos.c fb = (struct fat_boot_sector *) data; fb 500 block/partitions/msdos.c if (slot == 1 && fb->reserved && fb->fats fb 501 block/partitions/msdos.c && fat_valid_media(fb->media)) { fb 456 drivers/block/drbd/drbd_worker.c static void fifo_set(struct fifo_buffer *fb, int value) fb 460 drivers/block/drbd/drbd_worker.c for (i = 0; i < fb->size; i++) fb 461 drivers/block/drbd/drbd_worker.c fb->values[i] = value; fb 464 drivers/block/drbd/drbd_worker.c static int fifo_push(struct fifo_buffer *fb, int value) fb 468 drivers/block/drbd/drbd_worker.c ov = fb->values[fb->head_index]; fb 469 drivers/block/drbd/drbd_worker.c fb->values[fb->head_index++] = value; fb 471 drivers/block/drbd/drbd_worker.c if (fb->head_index >= fb->size) fb 472 drivers/block/drbd/drbd_worker.c fb->head_index = 0; fb 477 drivers/block/drbd/drbd_worker.c static void fifo_add_val(struct fifo_buffer *fb, int value) fb 481 drivers/block/drbd/drbd_worker.c for (i = 0; i < fb->size; i++) fb 482 drivers/block/drbd/drbd_worker.c fb->values[i] += value; fb 487 drivers/block/drbd/drbd_worker.c struct fifo_buffer *fb; fb 489 drivers/block/drbd/drbd_worker.c fb = kzalloc(sizeof(struct fifo_buffer) + sizeof(int) * fifo_size, GFP_NOIO); fb 490 drivers/block/drbd/drbd_worker.c if (!fb) fb 493 drivers/block/drbd/drbd_worker.c fb->head_index = 0; fb 494 drivers/block/drbd/drbd_worker.c fb->size = fifo_size; fb 495 drivers/block/drbd/drbd_worker.c fb->total = 0; fb 497 drivers/block/drbd/drbd_worker.c return fb; fb 407 drivers/clk/clk-versaclock5.c u8 fb[5]; fb 409 drivers/clk/clk-versaclock5.c regmap_bulk_read(vc5->regmap, VC5_FEEDBACK_INT_DIV, fb, 5); fb 411 drivers/clk/clk-versaclock5.c div_int = (fb[0] << 4) | (fb[1] >> 4); fb 412 drivers/clk/clk-versaclock5.c div_frc = (fb[2] << 16) | (fb[3] << 8) | fb[4]; fb 451 drivers/clk/clk-versaclock5.c u8 fb[5]; fb 453 drivers/clk/clk-versaclock5.c fb[0] = hwdata->div_int >> 4; fb 454 drivers/clk/clk-versaclock5.c fb[1] = hwdata->div_int << 4; fb 455 drivers/clk/clk-versaclock5.c fb[2] = hwdata->div_frc >> 16; fb 456 drivers/clk/clk-versaclock5.c fb[3] = hwdata->div_frc >> 8; fb 457 drivers/clk/clk-versaclock5.c fb[4] = hwdata->div_frc; fb 459 drivers/clk/clk-versaclock5.c return regmap_bulk_write(vc5->regmap, VC5_FEEDBACK_INT_DIV, fb, 5); fb 125 drivers/crypto/amcc/crypto4xx_alg.c u8 fb) fb 159 drivers/crypto/amcc/crypto4xx_alg.c fb, SA_EXTENDED_SN_OFF, fb 191 drivers/firmware/broadcom/bcm47xx_sprom.c bool fb = fallback; fb 197 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u32, pre, "boardflags", boardflags, 0, fb); fb 198 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffff0, u32, pre, "boardflags2", boardflags2, 0, fb); fb 199 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffff800, u32, pre, "boardflags3", boardflags3, 0, fb); fb 200 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000002, u16, pre, "boardflags", boardflags_lo, 0, fb); fb 202 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u16, pre, "boardnum", board_num, 0, fb); fb 203 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000002, u8, pre, "cc", country_code, 0, fb); fb 204 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffff8, u8, pre, "regrev", regrev, 0, fb); fb 206 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u8, pre, "ledbh0", gpio0, 0xff, fb); fb 207 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u8, pre, "ledbh1", gpio1, 0xff, fb); fb 208 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u8, pre, "ledbh2", gpio2, 0xff, fb); fb 209 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u8, pre, "ledbh3", gpio3, 0xff, fb); fb 211 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u16, pre, "pa0b0", pa0b0, 0, fb); fb 212 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u16, pre, "pa0b1", pa0b1, 0, fb); fb 213 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u16, pre, "pa0b2", pa0b2, 0, fb); fb 214 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u8, pre, "pa0itssit", itssi_bg, 0, fb); fb 215 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u8, pre, "pa0maxpwr", maxpwr_bg, 0, fb); fb 217 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u8, pre, "opo", opo, 0, fb); fb 218 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u8, pre, "aa2g", ant_available_bg, 0, fb); fb 219 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffffe, u8, pre, "aa5g", ant_available_a, 0, fb); fb 220 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000007fe, s8, pre, "ag0", antenna_gain.a0, 0, fb); fb 221 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000007fe, s8, pre, "ag1", antenna_gain.a1, 0, fb); fb 222 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000007f0, s8, pre, "ag2", antenna_gain.a2, 0, fb); fb 223 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000007f0, s8, pre, "ag3", antenna_gain.a3, 0, fb); fb 225 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u16, pre, "pa1b0", pa1b0, 0, fb); fb 226 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u16, pre, "pa1b1", pa1b1, 0, fb); fb 227 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u16, pre, "pa1b2", pa1b2, 0, fb); fb 228 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u16, pre, "pa1lob0", pa1lob0, 0, fb); fb 229 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u16, pre, "pa1lob1", pa1lob1, 0, fb); fb 230 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u16, pre, "pa1lob2", pa1lob2, 0, fb); fb 231 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u16, pre, "pa1hib0", pa1hib0, 0, fb); fb 232 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u16, pre, "pa1hib1", pa1hib1, 0, fb); fb 233 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u16, pre, "pa1hib2", pa1hib2, 0, fb); fb 234 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u8, pre, "pa1itssit", itssi_a, 0, fb); fb 235 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070e, u8, pre, "pa1maxpwr", maxpwr_a, 0, fb); fb 236 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u8, pre, "pa1lomaxpwr", maxpwr_al, 0, fb); fb 237 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x0000070c, u8, pre, "pa1himaxpwr", maxpwr_ah, 0, fb); fb 239 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "bxa2g", bxa2g, 0, fb); fb 240 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "rssisav2g", rssisav2g, 0, fb); fb 241 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "rssismc2g", rssismc2g, 0, fb); fb 242 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "rssismf2g", rssismf2g, 0, fb); fb 243 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "bxa5g", bxa5g, 0, fb); fb 244 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "rssisav5g", rssisav5g, 0, fb); fb 245 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "rssismc5g", rssismc5g, 0, fb); fb 246 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "rssismf5g", rssismf5g, 0, fb); fb 247 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "tri2g", tri2g, 0, fb); fb 248 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "tri5g", tri5g, 0, fb); fb 249 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "tri5gl", tri5gl, 0, fb); fb 250 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, u8, pre, "tri5gh", tri5gh, 0, fb); fb 251 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, s8, pre, "rxpo2g", rxpo2g, 0, fb); fb 252 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000708, s8, pre, "rxpo5g", rxpo5g, 0, fb); fb 253 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffff0, u8, pre, "txchain", txchain, 0xf, fb); fb 254 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffff0, u8, pre, "rxchain", rxchain, 0xf, fb); fb 255 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffff0, u8, pre, "antswitch", antswitch, 0xff, fb); fb 256 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "tssipos2g", fem.ghz2.tssipos, 0, fb); fb 257 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "extpagain2g", fem.ghz2.extpa_gain, 0, fb); fb 258 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "pdetrange2g", fem.ghz2.pdet_range, 0, fb); fb 259 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "triso2g", fem.ghz2.tr_iso, 0, fb); fb 260 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "antswctl2g", fem.ghz2.antswlut, 0, fb); fb 261 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "tssipos5g", fem.ghz5.tssipos, 0, fb); fb 262 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "extpagain5g", fem.ghz5.extpa_gain, 0, fb); fb 263 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "pdetrange5g", fem.ghz5.pdet_range, 0, fb); fb 264 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "triso5g", fem.ghz5.tr_iso, 0, fb); fb 265 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "antswctl5g", fem.ghz5.antswlut, 0, fb); fb 266 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid2ga0", txpid2g[0], 0, fb); fb 267 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid2ga1", txpid2g[1], 0, fb); fb 268 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid2ga2", txpid2g[2], 0, fb); fb 269 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid2ga3", txpid2g[3], 0, fb); fb 270 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5ga0", txpid5g[0], 0, fb); fb 271 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5ga1", txpid5g[1], 0, fb); fb 272 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5ga2", txpid5g[2], 0, fb); fb 273 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5ga3", txpid5g[3], 0, fb); fb 274 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gla0", txpid5gl[0], 0, fb); fb 275 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gla1", txpid5gl[1], 0, fb); fb 276 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gla2", txpid5gl[2], 0, fb); fb 277 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gla3", txpid5gl[3], 0, fb); fb 278 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gha0", txpid5gh[0], 0, fb); fb 279 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gha1", txpid5gh[1], 0, fb); fb 280 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gha2", txpid5gh[2], 0, fb); fb 281 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000000f0, u8, pre, "txpid5gha3", txpid5gh[3], 0, fb); fb 283 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "tempthresh", tempthresh, 0, fb); fb 284 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "tempoffset", tempoffset, 0, fb); fb 285 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u16, pre, "rawtempsense", rawtempsense, 0, fb); fb 286 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "measpower", measpower, 0, fb); fb 287 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "tempsense_slope", tempsense_slope, 0, fb); fb 288 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "tempcorrx", tempcorrx, 0, fb); fb 289 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "tempsense_option", tempsense_option, 0, fb); fb 290 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "freqoffset_corr", freqoffset_corr, 0, fb); fb 291 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "iqcal_swp_dis", iqcal_swp_dis, 0, fb); fb 292 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "hw_iqcal_en", hw_iqcal_en, 0, fb); fb 293 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "elna2g", elna2g, 0, fb); fb 294 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "elna5g", elna5g, 0, fb); fb 295 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "phycal_tempdelta", phycal_tempdelta, 0, fb); fb 296 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "temps_period", temps_period, 0, fb); fb 297 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "temps_hysteresis", temps_hysteresis, 0, fb); fb 298 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "measpower1", measpower1, 0, fb); fb 299 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xffffff00, u8, pre, "measpower2", measpower2, 0, fb); fb 301 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "cck2gpo", cck2gpo, 0, fb); fb 302 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u32, pre, "ofdm2gpo", ofdm2gpo, 0, fb); fb 303 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u32, pre, "ofdm5gpo", ofdm5gpo, 0, fb); fb 304 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u32, pre, "ofdm5glpo", ofdm5glpo, 0, fb); fb 305 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u32, pre, "ofdm5ghpo", ofdm5ghpo, 0, fb); fb 306 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo0", mcs2gpo[0], 0, fb); fb 307 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo1", mcs2gpo[1], 0, fb); fb 308 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo2", mcs2gpo[2], 0, fb); fb 309 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo3", mcs2gpo[3], 0, fb); fb 310 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo4", mcs2gpo[4], 0, fb); fb 311 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo5", mcs2gpo[5], 0, fb); fb 312 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo6", mcs2gpo[6], 0, fb); fb 313 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs2gpo7", mcs2gpo[7], 0, fb); fb 314 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo0", mcs5gpo[0], 0, fb); fb 315 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo1", mcs5gpo[1], 0, fb); fb 316 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo2", mcs5gpo[2], 0, fb); fb 317 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo3", mcs5gpo[3], 0, fb); fb 318 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo4", mcs5gpo[4], 0, fb); fb 319 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo5", mcs5gpo[5], 0, fb); fb 320 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo6", mcs5gpo[6], 0, fb); fb 321 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5gpo7", mcs5gpo[7], 0, fb); fb 322 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo0", mcs5glpo[0], 0, fb); fb 323 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo1", mcs5glpo[1], 0, fb); fb 324 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo2", mcs5glpo[2], 0, fb); fb 325 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo3", mcs5glpo[3], 0, fb); fb 326 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo4", mcs5glpo[4], 0, fb); fb 327 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo5", mcs5glpo[5], 0, fb); fb 328 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo6", mcs5glpo[6], 0, fb); fb 329 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5glpo7", mcs5glpo[7], 0, fb); fb 330 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo0", mcs5ghpo[0], 0, fb); fb 331 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo1", mcs5ghpo[1], 0, fb); fb 332 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo2", mcs5ghpo[2], 0, fb); fb 333 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo3", mcs5ghpo[3], 0, fb); fb 334 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo4", mcs5ghpo[4], 0, fb); fb 335 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo5", mcs5ghpo[5], 0, fb); fb 336 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo6", mcs5ghpo[6], 0, fb); fb 337 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "mcs5ghpo7", mcs5ghpo[7], 0, fb); fb 338 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "cddpo", cddpo, 0, fb); fb 339 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "stbcpo", stbcpo, 0, fb); fb 340 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "bw40po", bw40po, 0, fb); fb 341 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x000001f0, u16, pre, "bwduppo", bwduppo, 0, fb); fb 343 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u16, pre, "cckbw202gpo", cckbw202gpo, 0, fb); fb 344 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u16, pre, "cckbw20ul2gpo", cckbw20ul2gpo, 0, fb); fb 345 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw202gpo", legofdmbw202gpo, 0, fb); fb 346 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw20ul2gpo", legofdmbw20ul2gpo, 0, fb); fb 347 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw205glpo", legofdmbw205glpo, 0, fb); fb 348 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw20ul5glpo", legofdmbw20ul5glpo, 0, fb); fb 349 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw205gmpo", legofdmbw205gmpo, 0, fb); fb 350 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw20ul5gmpo", legofdmbw20ul5gmpo, 0, fb); fb 351 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw205ghpo", legofdmbw205ghpo, 0, fb); fb 352 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "legofdmbw20ul5ghpo", legofdmbw20ul5ghpo, 0, fb); fb 353 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw202gpo", mcsbw202gpo, 0, fb); fb 354 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "mcsbw20ul2gpo", mcsbw20ul2gpo, 0, fb); fb 355 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw402gpo", mcsbw402gpo, 0, fb); fb 356 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw205glpo", mcsbw205glpo, 0, fb); fb 357 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "mcsbw20ul5glpo", mcsbw20ul5glpo, 0, fb); fb 358 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw405glpo", mcsbw405glpo, 0, fb); fb 359 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw205gmpo", mcsbw205gmpo, 0, fb); fb 360 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "mcsbw20ul5gmpo", mcsbw20ul5gmpo, 0, fb); fb 361 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw405gmpo", mcsbw405gmpo, 0, fb); fb 362 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw205ghpo", mcsbw205ghpo, 0, fb); fb 363 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u32, pre, "mcsbw20ul5ghpo", mcsbw20ul5ghpo, 0, fb); fb 364 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u32, pre, "mcsbw405ghpo", mcsbw405ghpo, 0, fb); fb 365 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u16, pre, "mcs32po", mcs32po, 0, fb); fb 366 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000600, u16, pre, "legofdm40duppo", legofdm40duppo, 0, fb); fb 367 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "pcieingress_war", pcieingress_war, 0, fb); fb 370 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr2ga0", rxgainerr2ga[0], 0, fb); fb 371 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr2ga1", rxgainerr2ga[1], 0, fb); fb 372 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr2ga2", rxgainerr2ga[2], 0, fb); fb 373 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gla0", rxgainerr5gla[0], 0, fb); fb 374 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gla1", rxgainerr5gla[1], 0, fb); fb 375 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gla2", rxgainerr5gla[2], 0, fb); fb 376 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gma0", rxgainerr5gma[0], 0, fb); fb 377 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gma1", rxgainerr5gma[1], 0, fb); fb 378 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gma2", rxgainerr5gma[2], 0, fb); fb 379 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gha0", rxgainerr5gha[0], 0, fb); fb 380 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gha1", rxgainerr5gha[1], 0, fb); fb 381 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gha2", rxgainerr5gha[2], 0, fb); fb 382 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gua0", rxgainerr5gua[0], 0, fb); fb 383 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gua1", rxgainerr5gua[1], 0, fb); fb 384 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "rxgainerr5gua2", rxgainerr5gua[2], 0, fb); fb 386 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u8, pre, "sar2g", sar2g, 0, fb); fb 387 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0xfffffe00, u8, pre, "sar5g", sar5g, 0, fb); fb 390 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl2ga0", noiselvl2ga[0], 0, fb); fb 391 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl2ga1", noiselvl2ga[1], 0, fb); fb 392 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl2ga2", noiselvl2ga[2], 0, fb); fb 393 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gla0", noiselvl5gla[0], 0, fb); fb 394 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gla1", noiselvl5gla[1], 0, fb); fb 395 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gla2", noiselvl5gla[2], 0, fb); fb 396 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gma0", noiselvl5gma[0], 0, fb); fb 397 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gma1", noiselvl5gma[1], 0, fb); fb 398 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gma2", noiselvl5gma[2], 0, fb); fb 399 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gha0", noiselvl5gha[0], 0, fb); fb 400 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gha1", noiselvl5gha[1], 0, fb); fb 401 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gha2", noiselvl5gha[2], 0, fb); fb 402 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gua0", noiselvl5gua[0], 0, fb); fb 403 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gua1", noiselvl5gua[1], 0, fb); fb 404 drivers/firmware/broadcom/bcm47xx_sprom.c ENTRY(0x00000700, u8, pre, "noiselvl5gua2", noiselvl5gua[2], 0, fb); fb 512 drivers/firmware/broadcom/bcm47xx_sprom.c bool fb = fallback; fb 526 drivers/firmware/broadcom/bcm47xx_sprom.c nvram_read_macaddr(prefix, "et2macaddr", sprom->et2mac, fb); fb 527 drivers/firmware/broadcom/bcm47xx_sprom.c nvram_read_u8(prefix, NULL, "et2mdcport", &sprom->et2mdcport, 0, fb); fb 528 drivers/firmware/broadcom/bcm47xx_sprom.c nvram_read_u8(prefix, NULL, "et2phyaddr", &sprom->et2phyaddr, 0, fb); fb 29 drivers/firmware/google/framebuffer-coreboot.c struct lb_framebuffer *fb = &dev->framebuffer; fb 33 drivers/firmware/google/framebuffer-coreboot.c .width = fb->x_resolution, fb 34 drivers/firmware/google/framebuffer-coreboot.c .height = fb->y_resolution, fb 35 drivers/firmware/google/framebuffer-coreboot.c .stride = fb->bytes_per_line, fb 40 drivers/firmware/google/framebuffer-coreboot.c if (fb->bits_per_pixel == formats[i].bits_per_pixel && fb 41 drivers/firmware/google/framebuffer-coreboot.c fb->red_mask_pos == formats[i].red.offset && fb 42 drivers/firmware/google/framebuffer-coreboot.c fb->red_mask_size == formats[i].red.length && fb 43 drivers/firmware/google/framebuffer-coreboot.c fb->green_mask_pos == formats[i].green.offset && fb 44 drivers/firmware/google/framebuffer-coreboot.c fb->green_mask_size == formats[i].green.length && fb 45 drivers/firmware/google/framebuffer-coreboot.c fb->blue_mask_pos == formats[i].blue.offset && fb 46 drivers/firmware/google/framebuffer-coreboot.c fb->blue_mask_size == formats[i].blue.length && fb 47 drivers/firmware/google/framebuffer-coreboot.c fb->reserved_mask_pos == formats[i].transp.offset && fb 48 drivers/firmware/google/framebuffer-coreboot.c fb->reserved_mask_size == formats[i].transp.length) fb 57 drivers/firmware/google/framebuffer-coreboot.c res.start = fb->physical_address; fb 58 drivers/firmware/google/framebuffer-coreboot.c length = PAGE_ALIGN(fb->y_resolution * fb->bytes_per_line); fb 95 drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c crtc->x, crtc->y, crtc->primary->fb); fb 3046 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c struct drm_framebuffer *fb = crtc->primary->fb; fb 3058 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c if (fb == NULL || fb->obj[0] == NULL) { fb 3061 drivers/gpu/drm/amd/amdgpu/amdgpu_device.c robj = gem_to_amdgpu_bo(fb->obj[0]); fb 149 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c struct drm_framebuffer *fb, fb 177 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c obj = crtc->primary->fb->obj[0]; fb 183 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c obj = fb->obj[0]; fb 240 drivers/gpu/drm/amd/amdgpu/amdgpu_display.c crtc->primary->fb = fb; fb 203 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c struct drm_framebuffer *fb = NULL; fb 241 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c fb = &rfbdev->rfb.base; fb 244 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c rfbdev->helper.fb = fb; fb 270 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c DRM_INFO("fb depth is %d\n", fb->format->depth); fb 271 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c DRM_INFO(" pitch is %d\n", fb->pitches[0]); fb 280 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c if (fb && ret) { fb 282 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c drm_framebuffer_unregister_private(fb); fb 283 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c drm_framebuffer_cleanup(fb); fb 284 drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c kfree(fb); fb 604 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h int amdgpufb_remove(struct drm_device *dev, struct drm_framebuffer *fb); fb 630 drivers/gpu/drm/amd/amdgpu/amdgpu_mode.h struct drm_framebuffer *fb, fb 239 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; fb 249 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c fb->pitches[0] / fb->format->cpp[0]); fb 1830 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_framebuffer *fb, fb 1849 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!atomic && !crtc->primary->fb) { fb 1855 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c target_fb = fb; fb 1857 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c target_fb = crtc->primary->fb; fb 2061 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (!atomic && fb && fb != crtc->primary->fb) { fb 2062 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c abo = gem_to_amdgpu_bo(fb->obj[0]); fb 2543 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c if (crtc->primary->fb) { fb 2547 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c abo = gem_to_amdgpu_bo(crtc->primary->fb->obj[0]); fb 2655 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c struct drm_framebuffer *fb, fb 2658 drivers/gpu/drm/amd/amdgpu/dce_v10_0.c return dce_v10_0_crtc_do_set_base(crtc, fb, x, y, 1); fb 257 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; fb 267 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c fb->pitches[0] / fb->format->cpp[0]); fb 1872 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_framebuffer *fb, fb 1891 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!atomic && !crtc->primary->fb) { fb 1897 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c target_fb = fb; fb 1899 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c target_fb = crtc->primary->fb; fb 2103 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (!atomic && fb && fb != crtc->primary->fb) { fb 2104 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c abo = gem_to_amdgpu_bo(fb->obj[0]); fb 2622 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c if (crtc->primary->fb) { fb 2626 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c abo = gem_to_amdgpu_bo(crtc->primary->fb->obj[0]); fb 2763 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c struct drm_framebuffer *fb, fb 2766 drivers/gpu/drm/amd/amdgpu/dce_v11_0.c return dce_v11_0_crtc_do_set_base(crtc, fb, x, y, 1); fb 194 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; fb 201 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c fb->pitches[0] / fb->format->cpp[0]); fb 1788 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_framebuffer *fb, fb 1806 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!atomic && !crtc->primary->fb) { fb 1812 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c target_fb = fb; fb 1814 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c target_fb = crtc->primary->fb; fb 1996 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (!atomic && fb && fb != crtc->primary->fb) { fb 1997 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c abo = gem_to_amdgpu_bo(fb->obj[0]); fb 2431 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c if (crtc->primary->fb) { fb 2435 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c abo = gem_to_amdgpu_bo(crtc->primary->fb->obj[0]); fb 2543 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c struct drm_framebuffer *fb, fb 2546 drivers/gpu/drm/amd/amdgpu/dce_v6_0.c return dce_v6_0_crtc_do_set_base(crtc, fb, x, y, 1); fb 187 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_framebuffer *fb = amdgpu_crtc->base.primary->fb; fb 194 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c fb->pitches[0] / fb->format->cpp[0]); fb 1759 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_framebuffer *fb, fb 1778 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!atomic && !crtc->primary->fb) { fb 1784 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c target_fb = fb; fb 1786 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c target_fb = crtc->primary->fb; fb 1970 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (!atomic && fb && fb != crtc->primary->fb) { fb 1971 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c abo = gem_to_amdgpu_bo(fb->obj[0]); fb 2444 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c if (crtc->primary->fb) { fb 2448 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c abo = gem_to_amdgpu_bo(crtc->primary->fb->obj[0]); fb 2563 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c struct drm_framebuffer *fb, fb 2566 drivers/gpu/drm/amd/amdgpu/dce_v8_0.c return dce_v8_0_crtc_do_set_base(crtc, fb, x, y, 1); fb 206 drivers/gpu/drm/amd/amdgpu/dce_virtual.c struct drm_framebuffer *fb, fb 2774 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c const struct drm_framebuffer *fb = &afb->base; fb 2785 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_size->surface_size.width = fb->width; fb 2786 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_size->surface_size.height = fb->height; fb 2788 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c fb->pitches[0] / fb->format->cpp[0]; fb 2794 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c uint64_t chroma_addr = afb->address + fb->offsets[1]; fb 2798 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_size->surface_size.width = fb->width; fb 2799 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_size->surface_size.height = fb->height; fb 2801 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c fb->pitches[0] / fb->format->cpp[0]; fb 2806 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_size->chroma_size.width = fb->width / 2; fb 2807 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_size->chroma_size.height = fb->height / 2; fb 2810 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c fb->pitches[1] / fb->format->cpp[1]; fb 2909 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c uint32_t format = plane_state->fb->format->format; fb 2978 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c const struct drm_framebuffer *fb = plane_state->fb; fb 2980 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c to_amdgpu_framebuffer(plane_state->fb); fb 2986 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c switch (fb->format->format) { fb 3019 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c drm_get_format_name(fb->format->format, &format_name)); fb 3074 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c to_amdgpu_framebuffer(plane_state->fb); fb 4330 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c num_active += (new_plane_state->fb != NULL); fb 4505 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!new_state->fb) { fb 4510 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c afb = to_amdgpu_framebuffer(new_state->fb); fb 4511 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c obj = new_state->fb->obj[0]; fb 4577 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!old_state->fb) fb 4580 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c rbo = gem_to_amdgpu_bo(old_state->fb->obj[0]); fb 4632 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c swap(plane->state->fb, new_state->fb); fb 5373 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!crtc || !plane->state->fb) fb 5419 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct amdgpu_framebuffer *afb = to_amdgpu_framebuffer(plane->state->fb); fb 5428 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!plane->state->fb && !old_plane_state->fb) fb 5720 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c struct drm_framebuffer *fb = new_plane_state->fb; fb 5729 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (!fb || !crtc || pcrtc != crtc) fb 5750 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c plane_needs_flip = old_plane_state->fb && new_plane_state->fb; fb 5759 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c abo = gem_to_amdgpu_bo(fb->obj[0]); fb 6907 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c if (old_other_state->fb && new_other_state->fb && fb 6908 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c old_other_state->fb->format != new_other_state->fb->format) fb 7122 drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c to_amdgpu_framebuffer(new_plane_state->fb); fb 14 drivers/gpu/drm/arc/arcpgu.h struct drm_framebuffer *fb; fb 31 drivers/gpu/drm/arc/arcpgu_crtc.c const struct drm_framebuffer *fb = crtc->primary->state->fb; fb 32 drivers/gpu/drm/arc/arcpgu_crtc.c uint32_t pixel_format = fb->format->format; fb 166 drivers/gpu/drm/arc/arcpgu_crtc.c if (!plane->state->crtc || !plane->state->fb) fb 170 drivers/gpu/drm/arc/arcpgu_crtc.c gem = drm_fb_cma_get_gem_obj(plane->state->fb, 0); fb 172 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c struct drm_framebuffer *fb = &kfb->base; fb 173 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c const struct drm_format_info *info = fb->format; fb 182 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c malidp_write32(reg, BLK_P1_STRIDE, fb->pitches[1] * block_h); fb 187 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c malidp_write32(reg, BLK_P0_STRIDE, fb->pitches[0] * block_h); fb 202 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c struct drm_framebuffer *fb = plane_st->fb; fb 203 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c struct komeda_fb *kfb = to_kfb(fb); fb 210 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c malidp_write32(reg, AD_CONTROL, to_ad_ctrl(fb->modifier)); fb 211 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c if (fb->modifier) { fb 219 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c if (fb->modifier & AFBC_FORMAT_MOD_TILED) fb 228 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c if (fb->format->is_yuv) { fb 233 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c upsampling = fb->modifier ? LR_CHI422_BILINEAR : fb 383 drivers/gpu/drm/arm/display/komeda/d71/d71_component.c struct komeda_fb *kfb = to_kfb(conn_st->writeback_job->fb); fb 16 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c static void komeda_fb_destroy(struct drm_framebuffer *fb) fb 18 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c struct komeda_fb *kfb = to_kfb(fb); fb 21 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c for (i = 0; i < fb->format->num_planes; i++) fb 22 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c drm_gem_object_put_unlocked(fb->obj[i]); fb 24 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c drm_framebuffer_cleanup(fb); fb 28 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c static int komeda_fb_create_handle(struct drm_framebuffer *fb, fb 31 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c return drm_gem_handle_create(file, fb->obj[0], handle); fb 43 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c struct drm_framebuffer *fb = &kfb->base; fb 44 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c const struct drm_format_info *info = fb->format; fb 55 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c switch (fb->modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK) { fb 66 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c fb->modifier & AFBC_FORMAT_MOD_BLOCK_SIZE_MASK); fb 71 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if (fb->modifier & AFBC_FORMAT_MOD_TILED) { fb 79 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c kfb->aligned_w = ALIGN(fb->width, alignment_w); fb 80 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c kfb->aligned_h = ALIGN(fb->height, alignment_h); fb 82 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if (fb->offsets[0] % alignment_header) { fb 91 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c bpp = komeda_get_afbc_format_bpp(info, fb->modifier); fb 95 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c min_size = kfb->afbc_size + fb->offsets[0]; fb 102 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c fb->obj[0] = obj; fb 115 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c struct drm_framebuffer *fb = &kfb->base; fb 116 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c const struct drm_format_info *info = fb->format; fb 121 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if (komeda_fb_check_src_coords(kfb, 0, 0, fb->width, fb->height)) fb 130 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c fb->obj[i] = obj; fb 133 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if ((fb->pitches[i] * block_h) % mdev->chip.bus_width) { fb 135 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c i, fb->pitches[i], mdev->chip.bus_width); fb 139 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c min_size = komeda_fb_get_pixel_addr(kfb, 0, fb->height, i) fb 148 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if (fb->format->num_planes == 3) { fb 149 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if (fb->pitches[1] != fb->pitches[2]) { fb 211 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c const struct drm_framebuffer *fb = &kfb->base; fb 212 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c const struct drm_format_info *info = fb->format; fb 213 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c u32 block_w = drm_format_info_block_width(fb->format, 0); fb 214 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c u32 block_h = drm_format_info_block_height(fb->format, 0); fb 216 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if ((src_x + src_w > fb->width) || (src_y + src_h > fb->height)) { fb 241 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c struct drm_framebuffer *fb = &kfb->base; fb 245 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if (plane >= fb->format->num_planes) { fb 250 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c obj = drm_fb_cma_get_gem_obj(fb, plane); fb 252 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c offset = fb->offsets[plane]; fb 253 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c if (!fb->modifier) { fb 254 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c block_w = drm_format_info_block_width(fb->format, plane); fb 255 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c block_sz = fb->format->char_per_block[plane]; fb 256 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c plane_x = x / (plane ? fb->format->hsub : 1); fb 257 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c plane_y = y / (plane ? fb->format->vsub : 1); fb 260 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c + plane_y * fb->pitches[plane]; fb 270 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c struct drm_framebuffer *fb = &kfb->base; fb 271 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c struct komeda_dev *mdev = fb->dev->dev_private; fb 272 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c u32 fourcc = fb->format->format; fb 273 drivers/gpu/drm/arm/display/komeda/komeda_framebuffer.c u64 modifier = fb->modifier; fb 545 drivers/gpu/drm/arm/display/komeda/komeda_pipeline.h struct drm_framebuffer *fb); fb 326 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c struct drm_framebuffer *fb = plane_st->fb; fb 327 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c struct komeda_fb *kfb = to_kfb(fb); fb 345 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c if (fb->modifier) { fb 361 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c for (i = 0; i < fb->format->num_planes; i++) fb 386 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c struct komeda_fb *kfb = to_kfb(conn_st->writeback_job->fb); fb 789 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c struct drm_framebuffer *fb) fb 800 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c if (!fb->format->has_alpha) fb 807 drivers/gpu/drm/arm/display/komeda/komeda_pipeline_state.c dflow->is_yuv = fb->format->is_yuv; fb 21 drivers/gpu/drm/arm/display/komeda/komeda_plane.c struct drm_framebuffer *fb = st->fb; fb 22 drivers/gpu/drm/arm/display/komeda/komeda_plane.c const struct komeda_format_caps *caps = to_kfb(fb)->format_caps; fb 55 drivers/gpu/drm/arm/display/komeda/komeda_plane.c fb->modifier)); fb 59 drivers/gpu/drm/arm/display/komeda/komeda_plane.c komeda_complete_data_flow_cfg(kplane->layer, dflow, fb); fb 84 drivers/gpu/drm/arm/display/komeda/komeda_plane.c if (!state->crtc || !state->fb) fb 16 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c struct drm_framebuffer *fb = conn_st->writeback_job->fb; fb 20 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c dflow->out_w = fb->width; fb 21 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c dflow->out_h = fb->height; fb 30 drivers/gpu/drm/arm/display/komeda/komeda_wb_connector.c komeda_complete_data_flow_cfg(wb_layer, dflow, fb); fb 86 drivers/gpu/drm/arm/hdlcd_crtc.c const struct drm_framebuffer *fb = crtc->primary->state->fb; fb 91 drivers/gpu/drm/arm/hdlcd_crtc.c pixel_format = fb->format->format; fb 247 drivers/gpu/drm/arm/hdlcd_crtc.c if (!state->fb && crtc_state->active) fb 261 drivers/gpu/drm/arm/hdlcd_crtc.c struct drm_framebuffer *fb = plane->state->fb; fb 266 drivers/gpu/drm/arm/hdlcd_crtc.c if (!fb) fb 270 drivers/gpu/drm/arm/hdlcd_crtc.c scanout_start = drm_fb_cma_get_gem_addr(fb, plane->state, 0); fb 273 drivers/gpu/drm/arm/hdlcd_crtc.c hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_LENGTH, fb->pitches[0]); fb 274 drivers/gpu/drm/arm/hdlcd_crtc.c hdlcd_write(hdlcd, HDLCD_REG_FB_LINE_PITCH, fb->pitches[0]); fb 375 drivers/gpu/drm/arm/malidp_crtc.c struct drm_framebuffer *fb = pstate->fb; fb 377 drivers/gpu/drm/arm/malidp_crtc.c if ((pstate->rotation & MALIDP_ROTATED_MASK) || fb->modifier) fb 393 drivers/gpu/drm/arm/malidp_crtc.c struct drm_framebuffer *fb = pstate->fb; fb 395 drivers/gpu/drm/arm/malidp_crtc.c if ((pstate->rotation & MALIDP_ROTATED_MASK) || fb->modifier) { fb 131 drivers/gpu/drm/arm/malidp_mw.c struct drm_framebuffer *fb; fb 137 drivers/gpu/drm/arm/malidp_mw.c fb = conn_state->writeback_job->fb; fb 138 drivers/gpu/drm/arm/malidp_mw.c if ((fb->width != crtc_state->mode.hdisplay) || fb 139 drivers/gpu/drm/arm/malidp_mw.c (fb->height != crtc_state->mode.vdisplay)) { fb 141 drivers/gpu/drm/arm/malidp_mw.c fb->width, fb->height); fb 145 drivers/gpu/drm/arm/malidp_mw.c if (fb->modifier) { fb 152 drivers/gpu/drm/arm/malidp_mw.c fb->format->format, !!fb->modifier); fb 157 drivers/gpu/drm/arm/malidp_mw.c drm_get_format_name(fb->format->format, fb 162 drivers/gpu/drm/arm/malidp_mw.c n_planes = fb->format->num_planes; fb 164 drivers/gpu/drm/arm/malidp_mw.c struct drm_gem_cma_object *obj = drm_fb_cma_get_gem_obj(fb, i); fb 168 drivers/gpu/drm/arm/malidp_mw.c if (fb->pitches[i] & (alignment - 1)) { fb 170 drivers/gpu/drm/arm/malidp_mw.c fb->pitches[i], i); fb 173 drivers/gpu/drm/arm/malidp_mw.c mw_state->pitches[i] = fb->pitches[i]; fb 174 drivers/gpu/drm/arm/malidp_mw.c mw_state->addrs[i] = obj->paddr + fb->offsets[i]; fb 178 drivers/gpu/drm/arm/malidp_mw.c if (fb->format->is_yuv) fb 252 drivers/gpu/drm/arm/malidp_mw.c struct drm_framebuffer *fb = conn_state->writeback_job->fb; fb 256 drivers/gpu/drm/arm/malidp_mw.c fb->width, fb->height, fb 264 drivers/gpu/drm/arm/malidp_mw.c fb->width, fb->height, mw_state->format, fb 343 drivers/gpu/drm/arm/malidp_planes.c obj = drm_gem_fb_get_obj(ms->base.fb, i); fb 457 drivers/gpu/drm/arm/malidp_planes.c if (malidp_partial_prefetch_supported(ms->base.fb->format->format, fb 458 drivers/gpu/drm/arm/malidp_planes.c ms->base.fb->modifier, fb 510 drivers/gpu/drm/arm/malidp_planes.c struct drm_framebuffer *fb; fb 515 drivers/gpu/drm/arm/malidp_planes.c if (!state->crtc || !state->fb) fb 518 drivers/gpu/drm/arm/malidp_planes.c fb = state->fb; fb 521 drivers/gpu/drm/arm/malidp_planes.c mp->layer->id, fb->format->format, fb 522 drivers/gpu/drm/arm/malidp_planes.c !!fb->modifier); fb 526 drivers/gpu/drm/arm/malidp_planes.c ms->n_planes = fb->format->num_planes; fb 530 drivers/gpu/drm/arm/malidp_planes.c if (((fb->pitches[i] * drm_format_info_block_height(fb->format, i)) fb 531 drivers/gpu/drm/arm/malidp_planes.c & (alignment - 1)) && !(fb->modifier)) { fb 533 drivers/gpu/drm/arm/malidp_planes.c fb->pitches[i], i); fb 538 drivers/gpu/drm/arm/malidp_planes.c block_w = drm_format_info_block_width(fb->format, 0); fb 539 drivers/gpu/drm/arm/malidp_planes.c block_h = drm_format_info_block_height(fb->format, 0); fb 540 drivers/gpu/drm/arm/malidp_planes.c if (fb->width % block_w || fb->height % block_h) { fb 562 drivers/gpu/drm/arm/malidp_planes.c (state->fb->pitches[1] != state->fb->pitches[2])) fb 573 drivers/gpu/drm/arm/malidp_planes.c if ((mp->layer->rot == ROTATE_COMPRESSED) && !(fb->modifier)) fb 579 drivers/gpu/drm/arm/malidp_planes.c if ((fb->format->format == DRM_FORMAT_RGB888 || fb 580 drivers/gpu/drm/arm/malidp_planes.c fb->format->format == DRM_FORMAT_BGR888) && !(fb->modifier)) fb 585 drivers/gpu/drm/arm/malidp_planes.c if (mp->layer->id == DE_SMART && fb->modifier) { fb 596 drivers/gpu/drm/arm/malidp_planes.c fb->format->format, fb 597 drivers/gpu/drm/arm/malidp_planes.c !!(fb->modifier)); fb 607 drivers/gpu/drm/arm/malidp_planes.c fb->format->has_alpha) fb 634 drivers/gpu/drm/arm/malidp_planes.c unsigned int block_h = drm_format_info_block_height(mp->base.state->fb->format, i); fb 714 drivers/gpu/drm/arm/malidp_planes.c static void malidp_set_plane_base_addr(struct drm_framebuffer *fb, fb 721 drivers/gpu/drm/arm/malidp_planes.c bool afbc = fb->modifier ? true : false; fb 733 drivers/gpu/drm/arm/malidp_planes.c paddr = drm_fb_cma_get_gem_addr(fb, plane->state, fb 738 drivers/gpu/drm/arm/malidp_planes.c obj = drm_fb_cma_get_gem_obj(fb, plane_index); fb 753 drivers/gpu/drm/arm/malidp_planes.c struct drm_framebuffer *fb = plane->state->fb; fb 761 drivers/gpu/drm/arm/malidp_planes.c if (!fb->modifier) { fb 772 drivers/gpu/drm/arm/malidp_planes.c val = ((fb->width - (src_x + src_w)) << MALIDP_AD_CROP_RIGHT_OFFSET) | fb 777 drivers/gpu/drm/arm/malidp_planes.c val = ((fb->height - (src_y + src_h)) << MALIDP_AD_CROP_BOTTOM_OFFSET) | fb 783 drivers/gpu/drm/arm/malidp_planes.c if (fb->modifier & AFBC_FORMAT_MOD_SPLIT) fb 785 drivers/gpu/drm/arm/malidp_planes.c if (fb->modifier & AFBC_FORMAT_MOD_YTR) fb 801 drivers/gpu/drm/arm/malidp_planes.c struct drm_framebuffer *fb = plane->state->fb; fb 809 drivers/gpu/drm/arm/malidp_planes.c if (fb->modifier) { fb 810 drivers/gpu/drm/arm/malidp_planes.c src_w = fb->width; fb 811 drivers/gpu/drm/arm/malidp_planes.c src_h = fb->height; fb 826 drivers/gpu/drm/arm/malidp_planes.c malidp_set_plane_base_addr(fb, mp, i); fb 831 drivers/gpu/drm/arm/malidp_planes.c state->fb->pitches); fb 879 drivers/gpu/drm/arm/malidp_planes.c } else if (state->fb->format->has_alpha) { fb 66 drivers/gpu/drm/armada/armada_fb.c dfb->fb.obj[0] = &obj->obj; fb 68 drivers/gpu/drm/armada/armada_fb.c drm_helper_mode_fill_fb_struct(dev, &dfb->fb, mode); fb 70 drivers/gpu/drm/armada/armada_fb.c ret = drm_framebuffer_init(dev, &dfb->fb, &armada_fb_funcs); fb 134 drivers/gpu/drm/armada/armada_fb.c return &dfb->fb; fb 9 drivers/gpu/drm/armada/armada_fb.h struct drm_framebuffer fb; fb 14 drivers/gpu/drm/armada/armada_fb.h container_of(dfb, struct armada_framebuffer, fb) fb 15 drivers/gpu/drm/armada/armada_fb.h #define drm_fb_obj(fb) drm_to_armada_gem((fb)->obj[0]) fb 86 drivers/gpu/drm/armada/armada_fbdev.c fbh->fb = &dfb->fb; fb 91 drivers/gpu/drm/armada/armada_fbdev.c dfb->fb.width, dfb->fb.height, dfb->fb.format->cpp[0] * 8, fb 97 drivers/gpu/drm/armada/armada_fbdev.c dfb->fb.funcs->destroy(&dfb->fb); fb 106 drivers/gpu/drm/armada/armada_fbdev.c if (!fbh->fb) { fb 168 drivers/gpu/drm/armada/armada_fbdev.c if (fbh->fb) fb 169 drivers/gpu/drm/armada/armada_fbdev.c fbh->fb->funcs->destroy(fbh->fb); fb 79 drivers/gpu/drm/armada/armada_overlay.c if (!state->fb || WARN_ON(!state->crtc)) fb 85 drivers/gpu/drm/armada/armada_overlay.c state->fb->base.id, fb 108 drivers/gpu/drm/armada/armada_overlay.c old_state->fb != state->fb || fb 131 drivers/gpu/drm/armada/armada_overlay.c cfg = CFG_DMA_FMT(drm_fb_to_armada_fb(state->fb)->fmt) | fb 132 drivers/gpu/drm/armada/armada_overlay.c CFG_DMA_MOD(drm_fb_to_armada_fb(state->fb)->mod) | fb 142 drivers/gpu/drm/armada/armada_overlay.c format = state->fb->format; fb 229 drivers/gpu/drm/armada/armada_overlay.c old_state->fb->base.id); fb 252 drivers/gpu/drm/armada/armada_overlay.c struct drm_framebuffer *fb, fb 261 drivers/gpu/drm/armada/armada_overlay.c trace_armada_ovl_plane_update(plane, crtc, fb, fb 280 drivers/gpu/drm/armada/armada_overlay.c drm_atomic_set_fb_for_plane(plane_state, fb); fb 40 drivers/gpu/drm/armada/armada_plane.c struct drm_framebuffer *fb = state->fb; fb 41 drivers/gpu/drm/armada/armada_plane.c const struct drm_format_info *format = fb->format; fb 45 drivers/gpu/drm/armada/armada_plane.c u32 addr = drm_fb_obj(fb)->dev_addr; fb 49 drivers/gpu/drm/armada/armada_plane.c fb->pitches[0], x, y, format->cpp[0] * 8); fb 54 drivers/gpu/drm/armada/armada_plane.c addrs[0][0] = addr + fb->offsets[0] + y * fb->pitches[0] + fb 56 drivers/gpu/drm/armada/armada_plane.c pitches[0] = fb->pitches[0]; fb 62 drivers/gpu/drm/armada/armada_plane.c addrs[0][i] = addr + fb->offsets[i] + y * fb->pitches[i] + fb 64 drivers/gpu/drm/armada/armada_plane.c pitches[i] = fb->pitches[i]; fb 86 drivers/gpu/drm/armada/armada_plane.c state->fb ? state->fb->base.id : 0); fb 92 drivers/gpu/drm/armada/armada_plane.c if (state->fb) fb 93 drivers/gpu/drm/armada/armada_plane.c drm_framebuffer_get(state->fb); fb 102 drivers/gpu/drm/armada/armada_plane.c old_state->fb ? old_state->fb->base.id : 0); fb 104 drivers/gpu/drm/armada/armada_plane.c if (old_state->fb) fb 105 drivers/gpu/drm/armada/armada_plane.c drm_framebuffer_put(old_state->fb); fb 117 drivers/gpu/drm/armada/armada_plane.c if (!state->fb || WARN_ON(!state->crtc)) { fb 169 drivers/gpu/drm/armada/armada_plane.c if (!state->fb || WARN_ON(!state->crtc)) fb 175 drivers/gpu/drm/armada/armada_plane.c state->fb->base.id, fb 184 drivers/gpu/drm/armada/armada_plane.c if (drm_fb_to_armada_fb(state->fb)->fmt > CFG_420) fb 199 drivers/gpu/drm/armada/armada_plane.c old_state->fb != state->fb || fb 208 drivers/gpu/drm/armada/armada_plane.c if (old_state->fb != state->fb || fb 210 drivers/gpu/drm/armada/armada_plane.c cfg = CFG_GRA_FMT(drm_fb_to_armada_fb(state->fb)->fmt) | fb 211 drivers/gpu/drm/armada/armada_plane.c CFG_GRA_MOD(drm_fb_to_armada_fb(state->fb)->mod); fb 212 drivers/gpu/drm/armada/armada_plane.c if (drm_fb_to_armada_fb(state->fb)->fmt > CFG_420) fb 259 drivers/gpu/drm/armada/armada_plane.c old_state->fb->base.id); fb 32 drivers/gpu/drm/armada/armada_trace.h struct drm_framebuffer *fb, fb 35 drivers/gpu/drm/armada/armada_trace.h TP_ARGS(plane, crtc, fb, crtc_x, crtc_y, crtc_w, crtc_h, src_x, src_y, src_w, src_h), fb 39 drivers/gpu/drm/armada/armada_trace.h __field(struct drm_framebuffer *, fb) fb 52 drivers/gpu/drm/armada/armada_trace.h __entry->fb = fb; fb 63 drivers/gpu/drm/armada/armada_trace.h __entry->plane, __entry->crtc, __entry->fb, fb 30 drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c const u32 format = crtc->primary->state->fb->format->format; fb 167 drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c struct drm_framebuffer *fb = pipe->plane.state->fb; fb 183 drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c if (!fb) fb 186 drivers/gpu/drm/aspeed/aspeed_gfx_crtc.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 90 drivers/gpu/drm/ast/ast_mode.c const struct drm_framebuffer *fb = crtc->primary->fb; fb 96 drivers/gpu/drm/ast/ast_mode.c switch (fb->format->cpp[0] * 8) { fb 220 drivers/gpu/drm/ast/ast_mode.c fb->format->cpp[0] * 8); fb 391 drivers/gpu/drm/ast/ast_mode.c const struct drm_framebuffer *fb = crtc->primary->fb; fb 395 drivers/gpu/drm/ast/ast_mode.c offset = fb->pitches[0] >> 3; fb 422 drivers/gpu/drm/ast/ast_mode.c const struct drm_framebuffer *fb = crtc->primary->fb; fb 425 drivers/gpu/drm/ast/ast_mode.c switch (fb->format->cpp[0] * 8) { fb 481 drivers/gpu/drm/ast/ast_mode.c const struct drm_framebuffer *fb = crtc->primary->fb; fb 483 drivers/gpu/drm/ast/ast_mode.c switch (fb->format->cpp[0] * 8) { fb 529 drivers/gpu/drm/ast/ast_mode.c struct drm_framebuffer *fb, fb 536 drivers/gpu/drm/ast/ast_mode.c if (!atomic && fb) { fb 537 drivers/gpu/drm/ast/ast_mode.c gbo = drm_gem_vram_of_gem(fb->obj[0]); fb 541 drivers/gpu/drm/ast/ast_mode.c gbo = drm_gem_vram_of_gem(crtc->primary->fb->obj[0]); fb 607 drivers/gpu/drm/ast/ast_mode.c if (crtc->primary->fb) { fb 608 drivers/gpu/drm/ast/ast_mode.c struct drm_framebuffer *fb = crtc->primary->fb; fb 610 drivers/gpu/drm/ast/ast_mode.c drm_gem_vram_of_gem(fb->obj[0]); fb 614 drivers/gpu/drm/ast/ast_mode.c crtc->primary->fb = NULL; fb 362 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c const struct drm_format_info *format = state->base.fb->format; fb 400 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c ret = atmel_hlcdc_format_to_plane_mode(state->base.fb->format->format, fb 405 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c if ((state->base.fb->format->format == DRM_FORMAT_YUV422 || fb 406 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->base.fb->format->format == DRM_FORMAT_NV61) && fb 442 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c struct drm_framebuffer *fb = state->base.fb; fb 449 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c struct drm_gem_cma_object *gem = drm_fb_cma_get_gem_obj(fb, i); fb 552 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c !ovl_s->fb || fb 553 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c ovl_s->fb->format->has_alpha || fb 601 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c struct drm_framebuffer *fb = state->base.fb; fb 608 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c if (!state->base.crtc || !fb) fb 638 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->nplanes = fb->format->num_planes; fb 644 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c int xdiv = i ? fb->format->hsub : 1; fb 645 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c int ydiv = i ? fb->format->vsub : 1; fb 647 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->bpp[i] = fb->format->cpp[i]; fb 654 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c fb->pitches[i]; fb 658 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c fb->pitches[i]) - fb 660 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->pstride[i] = fb->pitches[i] - state->bpp[i]; fb 664 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c ydiv) * fb->pitches[i]; fb 668 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->bpp[i]) - fb->pitches[i]; fb 673 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c ydiv) * fb->pitches[i]; fb 676 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c fb->pitches[i]; fb 677 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->pstride[i] = -fb->pitches[i] - state->bpp[i]; fb 681 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c offset = (state->src_y / ydiv) * fb->pitches[i]; fb 683 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->xstride[i] = fb->pitches[i] - fb 690 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->offsets[i] = offset + fb->offsets[i]; fb 709 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c state->base.fb->format->has_alpha)) fb 742 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c if (!p->state->crtc || !p->state->fb) fb 881 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c if (state->base.fb) fb 882 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c drm_framebuffer_put(state->base.fb); fb 916 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c if (copy->base.fb) fb 917 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c drm_framebuffer_get(copy->base.fb); fb 935 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c if (s->fb) fb 936 drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c drm_framebuffer_put(s->fb); fb 34 drivers/gpu/drm/bochs/bochs_kms.c if (!state->fb || !bochs->stride) fb 37 drivers/gpu/drm/bochs/bochs_kms.c gbo = drm_gem_vram_of_gem(state->fb->obj[0]); fb 41 drivers/gpu/drm/bochs/bochs_kms.c state->fb->pitches[0], fb 42 drivers/gpu/drm/bochs/bochs_kms.c state->fb->offsets[0] + gbo->bo.offset); fb 43 drivers/gpu/drm/bochs/bochs_kms.c bochs_hw_setformat(bochs, state->fb->format); fb 77 drivers/gpu/drm/bochs/bochs_kms.c if (!new_state->fb) fb 79 drivers/gpu/drm/bochs/bochs_kms.c gbo = drm_gem_vram_of_gem(new_state->fb->obj[0]); fb 88 drivers/gpu/drm/bochs/bochs_kms.c if (!old_state->fb) fb 90 drivers/gpu/drm/bochs/bochs_kms.c gbo = drm_gem_vram_of_gem(old_state->fb->obj[0]); fb 122 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_convert_to(struct drm_framebuffer *fb) fb 124 drivers/gpu/drm/cirrus/cirrus.c if (fb->format->cpp[0] == 4 && fb->pitches[0] > CIRRUS_MAX_PITCH) { fb 125 drivers/gpu/drm/cirrus/cirrus.c if (fb->width * 3 <= CIRRUS_MAX_PITCH) fb 135 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_cpp(struct drm_framebuffer *fb) fb 137 drivers/gpu/drm/cirrus/cirrus.c int convert_cpp = cirrus_convert_to(fb); fb 141 drivers/gpu/drm/cirrus/cirrus.c return fb->format->cpp[0]; fb 144 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_pitch(struct drm_framebuffer *fb) fb 146 drivers/gpu/drm/cirrus/cirrus.c int convert_cpp = cirrus_convert_to(fb); fb 149 drivers/gpu/drm/cirrus/cirrus.c return convert_cpp * fb->width; fb 150 drivers/gpu/drm/cirrus/cirrus.c return fb->pitches[0]; fb 176 drivers/gpu/drm/cirrus/cirrus.c struct drm_framebuffer *fb) fb 250 drivers/gpu/drm/cirrus/cirrus.c cirrus->cpp = cirrus_cpp(fb); fb 274 drivers/gpu/drm/cirrus/cirrus.c cirrus->pitch = cirrus_pitch(fb); fb 299 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_fb_blit_rect(struct drm_framebuffer *fb, fb 302 drivers/gpu/drm/cirrus/cirrus.c struct cirrus_device *cirrus = fb->dev->dev_private; fb 305 drivers/gpu/drm/cirrus/cirrus.c vmap = drm_gem_shmem_vmap(fb->obj[0]); fb 309 drivers/gpu/drm/cirrus/cirrus.c if (cirrus->cpp == fb->format->cpp[0]) fb 311 drivers/gpu/drm/cirrus/cirrus.c vmap, fb, rect); fb 313 drivers/gpu/drm/cirrus/cirrus.c else if (fb->format->cpp[0] == 4 && cirrus->cpp == 2) fb 316 drivers/gpu/drm/cirrus/cirrus.c vmap, fb, rect, false); fb 318 drivers/gpu/drm/cirrus/cirrus.c else if (fb->format->cpp[0] == 4 && cirrus->cpp == 3) fb 321 drivers/gpu/drm/cirrus/cirrus.c vmap, fb, rect); fb 326 drivers/gpu/drm/cirrus/cirrus.c drm_gem_shmem_vunmap(fb->obj[0], vmap); fb 330 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_fb_blit_fullscreen(struct drm_framebuffer *fb) fb 334 drivers/gpu/drm/cirrus/cirrus.c .x2 = fb->width, fb 336 drivers/gpu/drm/cirrus/cirrus.c .y2 = fb->height, fb 338 drivers/gpu/drm/cirrus/cirrus.c return cirrus_fb_blit_rect(fb, &fullscreen); fb 342 drivers/gpu/drm/cirrus/cirrus.c struct drm_framebuffer *fb) fb 346 drivers/gpu/drm/cirrus/cirrus.c if (fb) fb 347 drivers/gpu/drm/cirrus/cirrus.c pitch = cirrus_pitch(fb); fb 405 drivers/gpu/drm/cirrus/cirrus.c struct drm_framebuffer *fb = plane_state->fb; fb 407 drivers/gpu/drm/cirrus/cirrus.c if (!fb) fb 409 drivers/gpu/drm/cirrus/cirrus.c return cirrus_check_size(fb->width, fb->height, fb); fb 418 drivers/gpu/drm/cirrus/cirrus.c cirrus_mode_set(cirrus, &crtc_state->mode, plane_state->fb); fb 419 drivers/gpu/drm/cirrus/cirrus.c cirrus_fb_blit_fullscreen(plane_state->fb); fb 430 drivers/gpu/drm/cirrus/cirrus.c if (pipe->plane.state->fb && fb 431 drivers/gpu/drm/cirrus/cirrus.c cirrus->cpp != cirrus_cpp(pipe->plane.state->fb)) fb 433 drivers/gpu/drm/cirrus/cirrus.c pipe->plane.state->fb); fb 436 drivers/gpu/drm/cirrus/cirrus.c cirrus_fb_blit_rect(pipe->plane.state->fb, &rect); fb 416 drivers/gpu/drm/drm_atomic.c if (writeback_job->fb && !state->crtc) { fb 426 drivers/gpu/drm/drm_atomic.c if (writeback_job->fb && !crtc_state->active) { fb 433 drivers/gpu/drm/drm_atomic.c if (!writeback_job->fb) { fb 472 drivers/gpu/drm/drm_atomic.c WARN_ON(plane->fb); fb 543 drivers/gpu/drm/drm_atomic.c const struct drm_framebuffer *fb = new_plane_state->fb; fb 550 drivers/gpu/drm/drm_atomic.c if (crtc && !fb) { fb 554 drivers/gpu/drm/drm_atomic.c } else if (fb && !crtc) { fb 573 drivers/gpu/drm/drm_atomic.c ret = drm_plane_check_pixel_format(plane, fb->format->format, fb 574 drivers/gpu/drm/drm_atomic.c fb->modifier); fb 579 drivers/gpu/drm/drm_atomic.c drm_get_format_name(fb->format->format, fb 581 drivers/gpu/drm/drm_atomic.c fb->modifier); fb 597 drivers/gpu/drm/drm_atomic.c fb_width = fb->width << 16; fb 598 drivers/gpu/drm/drm_atomic.c fb_height = fb->height << 16; fb 616 drivers/gpu/drm/drm_atomic.c fb->width, fb->height); fb 658 drivers/gpu/drm/drm_atomic.c drm_printf(p, "\tfb=%u\n", state->fb ? state->fb->base.id : 0); fb 659 drivers/gpu/drm/drm_atomic.c if (state->fb) fb 660 drivers/gpu/drm/drm_atomic.c drm_framebuffer_print_info(p, 2, state->fb); fb 1011 drivers/gpu/drm/drm_atomic.c if (state->writeback_job && state->writeback_job->fb) fb 1012 drivers/gpu/drm/drm_atomic.c drm_printf(p, "\tfb=%d\n", state->writeback_job->fb->base.id); fb 1369 drivers/gpu/drm/drm_atomic.c WARN_ON(set->fb); fb 1387 drivers/gpu/drm/drm_atomic.c WARN_ON(!set->fb); fb 1402 drivers/gpu/drm/drm_atomic.c drm_atomic_set_fb_for_plane(primary_state, set->fb); fb 774 drivers/gpu/drm/drm_atomic_helper.c struct drm_framebuffer *fb = plane_state->fb; fb 786 drivers/gpu/drm/drm_atomic_helper.c if (!fb) { fb 802 drivers/gpu/drm/drm_atomic_helper.c drm_rect_rotate(src, fb->width << 16, fb->height << 16, rotation); fb 819 drivers/gpu/drm/drm_atomic_helper.c drm_rect_rotate_inv(src, fb->width << 16, fb->height << 16, rotation); fb 1271 drivers/gpu/drm/drm_atomic_helper.c if (new_conn_state->writeback_job && new_conn_state->writeback_job->fb) { fb 1396 drivers/gpu/drm/drm_atomic_helper.c WARN_ON(!new_plane_state->fb); fb 1723 drivers/gpu/drm/drm_atomic_helper.c struct drm_framebuffer *new_fb = plane_state->fb; fb 1724 drivers/gpu/drm/drm_atomic_helper.c struct drm_framebuffer *old_fb = plane->state->fb; fb 1734 drivers/gpu/drm/drm_atomic_helper.c WARN_ON_ONCE(plane->state->fb != new_fb); fb 1744 drivers/gpu/drm/drm_atomic_helper.c WARN_ON_ONCE(plane_state->fb != old_fb); fb 2830 drivers/gpu/drm/drm_atomic_helper.c struct drm_framebuffer *fb, fb 2855 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_set_fb_for_plane(plane_state, fb); fb 3297 drivers/gpu/drm/drm_atomic_helper.c struct drm_framebuffer *fb, fb 3320 drivers/gpu/drm/drm_atomic_helper.c drm_atomic_set_fb_for_plane(plane_state, fb); fb 3351 drivers/gpu/drm/drm_atomic_helper.c struct drm_framebuffer *fb, fb 3366 drivers/gpu/drm/drm_atomic_helper.c ret = page_flip_common(state, crtc, fb, event, flags); fb 3394 drivers/gpu/drm/drm_atomic_helper.c struct drm_framebuffer *fb, fb 3411 drivers/gpu/drm/drm_atomic_helper.c ret = page_flip_common(state, crtc, fb, event, flags); fb 267 drivers/gpu/drm/drm_atomic_state_helper.c if (state->fb) fb 268 drivers/gpu/drm/drm_atomic_state_helper.c drm_framebuffer_get(state->fb); fb 309 drivers/gpu/drm/drm_atomic_state_helper.c if (state->fb) fb 310 drivers/gpu/drm/drm_atomic_state_helper.c drm_framebuffer_put(state->fb); fb 228 drivers/gpu/drm/drm_atomic_uapi.c struct drm_framebuffer *fb) fb 232 drivers/gpu/drm/drm_atomic_uapi.c if (fb) fb 234 drivers/gpu/drm/drm_atomic_uapi.c fb->base.id, plane->base.id, plane->name, fb 240 drivers/gpu/drm/drm_atomic_uapi.c drm_framebuffer_assign(&plane_state->fb, fb); fb 524 drivers/gpu/drm/drm_atomic_uapi.c struct drm_framebuffer *fb; fb 525 drivers/gpu/drm/drm_atomic_uapi.c fb = drm_framebuffer_lookup(dev, file_priv, val); fb 526 drivers/gpu/drm/drm_atomic_uapi.c drm_atomic_set_fb_for_plane(state, fb); fb 527 drivers/gpu/drm/drm_atomic_uapi.c if (fb) fb 528 drivers/gpu/drm/drm_atomic_uapi.c drm_framebuffer_put(fb); fb 608 drivers/gpu/drm/drm_atomic_uapi.c *val = (state->fb) ? state->fb->base.id : 0; fb 655 drivers/gpu/drm/drm_atomic_uapi.c struct drm_framebuffer *fb) fb 659 drivers/gpu/drm/drm_atomic_uapi.c ret = drm_writeback_set_fb(conn_state, fb); fb 663 drivers/gpu/drm/drm_atomic_uapi.c if (fb) fb 665 drivers/gpu/drm/drm_atomic_uapi.c fb->base.id, conn_state); fb 755 drivers/gpu/drm/drm_atomic_uapi.c struct drm_framebuffer *fb; fb 757 drivers/gpu/drm/drm_atomic_uapi.c fb = drm_framebuffer_lookup(dev, file_priv, val); fb 758 drivers/gpu/drm/drm_atomic_uapi.c ret = drm_atomic_set_writeback_fb_for_connector(state, fb); fb 759 drivers/gpu/drm/drm_atomic_uapi.c if (fb) fb 760 drivers/gpu/drm/drm_atomic_uapi.c drm_framebuffer_put(fb); fb 349 drivers/gpu/drm/drm_client.c if (!buffer->fb) fb 352 drivers/gpu/drm/drm_client.c ret = drm_mode_rmfb(buffer->client->dev, buffer->fb->base.id, buffer->client->file); fb 355 drivers/gpu/drm/drm_client.c "Error removing FB:%u (%d)\n", buffer->fb->base.id, ret); fb 357 drivers/gpu/drm/drm_client.c buffer->fb = NULL; fb 380 drivers/gpu/drm/drm_client.c buffer->fb = drm_framebuffer_lookup(client->dev, buffer->client->file, fb_req.fb_id); fb 381 drivers/gpu/drm/drm_client.c if (WARN_ON(!buffer->fb)) fb 385 drivers/gpu/drm/drm_client.c drm_framebuffer_put(buffer->fb); fb 387 drivers/gpu/drm/drm_client.c strscpy(buffer->fb->comm, client->name, TASK_COMM_LEN); fb 78 drivers/gpu/drm/drm_client_modeset.c modeset->fb = NULL; fb 378 drivers/gpu/drm/drm_crtc.c if (plane->state && plane->state->fb) fb 379 drivers/gpu/drm/drm_crtc.c crtc_resp->fb_id = plane->state->fb->base.id; fb 380 drivers/gpu/drm/drm_crtc.c else if (!plane->state && plane->fb) fb 381 drivers/gpu/drm/drm_crtc.c crtc_resp->fb_id = plane->fb->base.id; fb 422 drivers/gpu/drm/drm_crtc.c struct drm_framebuffer *fb; fb 436 drivers/gpu/drm/drm_crtc.c plane->old_fb = plane->fb; fb 439 drivers/gpu/drm/drm_crtc.c fb = set->fb; fb 445 drivers/gpu/drm/drm_crtc.c plane->crtc = fb ? crtc : NULL; fb 446 drivers/gpu/drm/drm_crtc.c plane->fb = fb; fb 452 drivers/gpu/drm/drm_crtc.c if (plane->fb) fb 453 drivers/gpu/drm/drm_crtc.c drm_framebuffer_get(plane->fb); fb 495 drivers/gpu/drm/drm_crtc.c const struct drm_framebuffer *fb) fb 508 drivers/gpu/drm/drm_crtc.c fb); fb 533 drivers/gpu/drm/drm_crtc.c struct drm_framebuffer *fb = NULL; fb 575 drivers/gpu/drm/drm_crtc.c old_fb = plane->state->fb; fb 577 drivers/gpu/drm/drm_crtc.c old_fb = plane->fb; fb 585 drivers/gpu/drm/drm_crtc.c fb = old_fb; fb 587 drivers/gpu/drm/drm_crtc.c drm_framebuffer_get(fb); fb 589 drivers/gpu/drm/drm_crtc.c fb = drm_framebuffer_lookup(dev, file_priv, crtc_req->fb_id); fb 590 drivers/gpu/drm/drm_crtc.c if (!fb) { fb 628 drivers/gpu/drm/drm_crtc.c fb->format->format, fb 629 drivers/gpu/drm/drm_crtc.c fb->modifier); fb 633 drivers/gpu/drm/drm_crtc.c drm_get_format_name(fb->format->format, fb 635 drivers/gpu/drm/drm_crtc.c fb->modifier); fb 641 drivers/gpu/drm/drm_crtc.c mode, fb); fb 653 drivers/gpu/drm/drm_crtc.c if (crtc_req->count_connectors > 0 && (!mode || !fb)) { fb 706 drivers/gpu/drm/drm_crtc.c set.fb = fb; fb 714 drivers/gpu/drm/drm_crtc.c if (fb) fb 715 drivers/gpu/drm/drm_crtc.c drm_framebuffer_put(fb); fb 728 drivers/gpu/drm/drm_crtc.c fb = NULL; fb 191 drivers/gpu/drm/drm_crtc_helper.c crtc->primary->fb = NULL; fb 523 drivers/gpu/drm/drm_crtc_helper.c BUG_ON(!set->mode && set->fb); fb 524 drivers/gpu/drm/drm_crtc_helper.c BUG_ON(set->fb && set->num_connectors == 0); fb 532 drivers/gpu/drm/drm_crtc_helper.c set->fb = NULL; fb 534 drivers/gpu/drm/drm_crtc_helper.c if (set->fb) { fb 537 drivers/gpu/drm/drm_crtc_helper.c set->fb->base.id, fb 584 drivers/gpu/drm/drm_crtc_helper.c save_set.fb = set->crtc->primary->fb; fb 588 drivers/gpu/drm/drm_crtc_helper.c if (set->crtc->primary->fb != set->fb) { fb 590 drivers/gpu/drm/drm_crtc_helper.c if (set->crtc->primary->fb == NULL) { fb 593 drivers/gpu/drm/drm_crtc_helper.c } else if (set->fb->format != set->crtc->primary->fb->format) { fb 709 drivers/gpu/drm/drm_crtc_helper.c set->crtc->primary->fb = set->fb; fb 712 drivers/gpu/drm/drm_crtc_helper.c save_set.fb)) { fb 715 drivers/gpu/drm/drm_crtc_helper.c set->crtc->primary->fb = save_set.fb; fb 730 drivers/gpu/drm/drm_crtc_helper.c set->crtc->primary->fb = set->fb; fb 732 drivers/gpu/drm/drm_crtc_helper.c set->x, set->y, save_set.fb); fb 736 drivers/gpu/drm/drm_crtc_helper.c set->crtc->primary->fb = save_set.fb; fb 770 drivers/gpu/drm/drm_crtc_helper.c save_set.y, save_set.fb)) fb 935 drivers/gpu/drm/drm_crtc_helper.c crtc->x, crtc->y, crtc->primary->fb); fb 68 drivers/gpu/drm/drm_crtc_internal.h const struct drm_framebuffer *fb); fb 199 drivers/gpu/drm/drm_crtc_internal.h const struct drm_framebuffer *fb); fb 160 drivers/gpu/drm/drm_damage_helper.c int drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb, fb 179 drivers/gpu/drm/drm_damage_helper.c state = drm_atomic_state_alloc(fb->dev); fb 201 drivers/gpu/drm/drm_damage_helper.c damage = drm_property_create_blob(fb->dev, fb 212 drivers/gpu/drm/drm_damage_helper.c drm_for_each_plane(plane, fb->dev) { fb 219 drivers/gpu/drm/drm_damage_helper.c if (plane->state->fb != fb) { fb 282 drivers/gpu/drm/drm_damage_helper.c if (!state || !state->crtc || !state->fb || !state->visible) fb 38 drivers/gpu/drm/drm_fb_cma_helper.c struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb, fb 43 drivers/gpu/drm/drm_fb_cma_helper.c gem = drm_gem_fb_get_obj(fb, plane); fb 62 drivers/gpu/drm/drm_fb_cma_helper.c dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb, fb 69 drivers/gpu/drm/drm_fb_cma_helper.c u32 block_w = drm_format_info_block_width(fb->format, plane); fb 70 drivers/gpu/drm/drm_fb_cma_helper.c u32 block_h = drm_format_info_block_height(fb->format, plane); fb 71 drivers/gpu/drm/drm_fb_cma_helper.c u32 block_size = fb->format->char_per_block[plane]; fb 77 drivers/gpu/drm/drm_fb_cma_helper.c obj = drm_fb_cma_get_gem_obj(fb, plane); fb 81 drivers/gpu/drm/drm_fb_cma_helper.c paddr = obj->paddr + fb->offsets[plane]; fb 84 drivers/gpu/drm/drm_fb_cma_helper.c h_div = fb->format->hsub; fb 85 drivers/gpu/drm/drm_fb_cma_helper.c v_div = fb->format->vsub; fb 93 drivers/gpu/drm/drm_fb_cma_helper.c paddr += fb->pitches[plane] * block_start_y; fb 172 drivers/gpu/drm/drm_fb_helper.c mode_set->fb, fb 195 drivers/gpu/drm/drm_fb_helper.c struct drm_framebuffer *fb; fb 204 drivers/gpu/drm/drm_fb_helper.c fb = crtc->primary->fb; fb 209 drivers/gpu/drm/drm_fb_helper.c if (!fb) { fb 218 drivers/gpu/drm/drm_fb_helper.c funcs->mode_set_base_atomic(mode_set->crtc, fb, crtc->x, fb 384 drivers/gpu/drm/drm_fb_helper.c struct drm_framebuffer *fb = fb_helper->fb; fb 385 drivers/gpu/drm/drm_fb_helper.c unsigned int cpp = fb->format->cpp[0]; fb 386 drivers/gpu/drm/drm_fb_helper.c size_t offset = clip->y1 * fb->pitches[0] + clip->x1 * cpp; fb 394 drivers/gpu/drm/drm_fb_helper.c src += fb->pitches[0]; fb 395 drivers/gpu/drm/drm_fb_helper.c dst += fb->pitches[0]; fb 424 drivers/gpu/drm/drm_fb_helper.c if (helper->fb->funcs->dirty) fb 425 drivers/gpu/drm/drm_fb_helper.c helper->fb->funcs->dirty(helper->fb, NULL, 0, 0, fb 621 drivers/gpu/drm/drm_fb_helper.c struct drm_framebuffer *fb = fb_helper->fb; fb 625 drivers/gpu/drm/drm_fb_helper.c fb->funcs->dirty; fb 1305 drivers/gpu/drm/drm_fb_helper.c struct drm_framebuffer *fb = fb_helper->fb; fb 1315 drivers/gpu/drm/drm_fb_helper.c if ((drm_format_info_block_width(fb->format, 0) > 1) || fb 1316 drivers/gpu/drm/drm_fb_helper.c (drm_format_info_block_height(fb->format, 0) > 1)) fb 1323 drivers/gpu/drm/drm_fb_helper.c if (var->bits_per_pixel > fb->format->cpp[0] * 8 || fb 1324 drivers/gpu/drm/drm_fb_helper.c var->xres > fb->width || var->yres > fb->height || fb 1325 drivers/gpu/drm/drm_fb_helper.c var->xres_virtual > fb->width || var->yres_virtual > fb->height) { fb 1330 drivers/gpu/drm/drm_fb_helper.c fb->width, fb->height, fb->format->cpp[0] * 8); fb 1345 drivers/gpu/drm/drm_fb_helper.c drm_fb_helper_fill_pixel_fmt(var, fb->format->depth); fb 1351 drivers/gpu/drm/drm_fb_helper.c var->bits_per_pixel = fb->format->cpp[0] * 8; fb 1654 drivers/gpu/drm/drm_fb_helper.c strcpy(fb_helper->fb->comm, "[fbcon]"); fb 1679 drivers/gpu/drm/drm_fb_helper.c struct drm_framebuffer *fb = fb_helper->fb; fb 1681 drivers/gpu/drm/drm_fb_helper.c WARN_ON((drm_format_info_block_width(fb->format, 0) > 1) || fb 1682 drivers/gpu/drm/drm_fb_helper.c (drm_format_info_block_height(fb->format, 0) > 1)); fb 1684 drivers/gpu/drm/drm_fb_helper.c info->var.xres_virtual = fb->width; fb 1685 drivers/gpu/drm/drm_fb_helper.c info->var.yres_virtual = fb->height; fb 1686 drivers/gpu/drm/drm_fb_helper.c info->var.bits_per_pixel = fb->format->cpp[0] * 8; fb 1692 drivers/gpu/drm/drm_fb_helper.c drm_fb_helper_fill_pixel_fmt(&info->var, fb->format->depth); fb 1715 drivers/gpu/drm/drm_fb_helper.c struct drm_framebuffer *fb = fb_helper->fb; fb 1717 drivers/gpu/drm/drm_fb_helper.c drm_fb_helper_fill_fix(info, fb->pitches[0], fb->format->depth); fb 1749 drivers/gpu/drm/drm_fb_helper.c modeset->fb = fb_helper->fb; fb 1944 drivers/gpu/drm/drm_fb_helper.c if (!fb_helper->fb || !drm_master_internal_acquire(fb_helper->dev)) { fb 1954 drivers/gpu/drm/drm_fb_helper.c drm_client_modeset_probe(&fb_helper->client, fb_helper->fb->width, fb_helper->fb->height); fb 2061 drivers/gpu/drm/drm_fb_helper.c if (fb_helper->fb) fb 2062 drivers/gpu/drm/drm_fb_helper.c drm_framebuffer_remove(fb_helper->fb); fb 2204 drivers/gpu/drm/drm_fb_helper.c struct drm_framebuffer *fb; fb 2220 drivers/gpu/drm/drm_fb_helper.c fb_helper->fb = buffer->fb; fb 2221 drivers/gpu/drm/drm_fb_helper.c fb = buffer->fb; fb 2228 drivers/gpu/drm/drm_fb_helper.c fbi->screen_size = fb->height * fb->pitches[0]; fb 36 drivers/gpu/drm/drm_format_helper.c void drm_fb_memcpy(void *dst, void *vaddr, struct drm_framebuffer *fb, fb 39 drivers/gpu/drm/drm_format_helper.c unsigned int cpp = fb->format->cpp[0]; fb 43 drivers/gpu/drm/drm_format_helper.c vaddr += clip_offset(clip, fb->pitches[0], cpp); fb 46 drivers/gpu/drm/drm_format_helper.c vaddr += fb->pitches[0]; fb 63 drivers/gpu/drm/drm_format_helper.c struct drm_framebuffer *fb, fb 66 drivers/gpu/drm/drm_format_helper.c unsigned int cpp = fb->format->cpp[0]; fb 67 drivers/gpu/drm/drm_format_helper.c unsigned int offset = clip_offset(clip, fb->pitches[0], cpp); fb 75 drivers/gpu/drm/drm_format_helper.c vaddr += fb->pitches[0]; fb 76 drivers/gpu/drm/drm_format_helper.c dst += fb->pitches[0]; fb 88 drivers/gpu/drm/drm_format_helper.c void drm_fb_swab16(u16 *dst, void *vaddr, struct drm_framebuffer *fb, fb 104 drivers/gpu/drm/drm_format_helper.c src = vaddr + (y * fb->pitches[0]); fb 149 drivers/gpu/drm/drm_format_helper.c struct drm_framebuffer *fb, fb 166 drivers/gpu/drm/drm_format_helper.c vaddr += clip_offset(clip, fb->pitches[0], sizeof(u32)); fb 170 drivers/gpu/drm/drm_format_helper.c vaddr += fb->pitches[0]; fb 194 drivers/gpu/drm/drm_format_helper.c void *vaddr, struct drm_framebuffer *fb, fb 206 drivers/gpu/drm/drm_format_helper.c vaddr += clip_offset(clip, fb->pitches[0], sizeof(u32)); fb 211 drivers/gpu/drm/drm_format_helper.c vaddr += fb->pitches[0]; fb 246 drivers/gpu/drm/drm_format_helper.c void *vaddr, struct drm_framebuffer *fb, fb 258 drivers/gpu/drm/drm_format_helper.c vaddr += clip_offset(clip, fb->pitches[0], sizeof(u32)); fb 263 drivers/gpu/drm/drm_format_helper.c vaddr += fb->pitches[0]; fb 287 drivers/gpu/drm/drm_format_helper.c void drm_fb_xrgb8888_to_gray8(u8 *dst, void *vaddr, struct drm_framebuffer *fb, fb 295 drivers/gpu/drm/drm_format_helper.c if (WARN_ON(fb->format->format != DRM_FORMAT_XRGB8888)) fb 306 drivers/gpu/drm/drm_format_helper.c src = vaddr + (y * fb->pitches[0]); fb 77 drivers/gpu/drm/drm_framebuffer.c const struct drm_framebuffer *fb) fb 81 drivers/gpu/drm/drm_framebuffer.c fb_width = fb->width << 16; fb 82 drivers/gpu/drm/drm_framebuffer.c fb_height = fb->height << 16; fb 95 drivers/gpu/drm/drm_framebuffer.c fb->width, fb->height); fb 295 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb; fb 324 drivers/gpu/drm/drm_framebuffer.c fb = dev->mode_config.funcs->fb_create(dev, file_priv, r); fb 325 drivers/gpu/drm/drm_framebuffer.c if (IS_ERR(fb)) { fb 327 drivers/gpu/drm/drm_framebuffer.c return fb; fb 330 drivers/gpu/drm/drm_framebuffer.c return fb; fb 353 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb; fb 358 drivers/gpu/drm/drm_framebuffer.c fb = drm_internal_framebuffer_create(dev, r, file_priv); fb 359 drivers/gpu/drm/drm_framebuffer.c if (IS_ERR(fb)) fb 360 drivers/gpu/drm/drm_framebuffer.c return PTR_ERR(fb); fb 362 drivers/gpu/drm/drm_framebuffer.c DRM_DEBUG_KMS("[FB:%d]\n", fb->base.id); fb 363 drivers/gpu/drm/drm_framebuffer.c r->fb_id = fb->base.id; fb 367 drivers/gpu/drm/drm_framebuffer.c list_add(&fb->filp_head, &file_priv->fbs); fb 407 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb = fb 408 drivers/gpu/drm/drm_framebuffer.c list_first_entry(&arg->fbs, typeof(*fb), filp_head); fb 410 drivers/gpu/drm/drm_framebuffer.c list_del_init(&fb->filp_head); fb 411 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_remove(fb); fb 431 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb = NULL; fb 438 drivers/gpu/drm/drm_framebuffer.c fb = drm_framebuffer_lookup(dev, file_priv, fb_id); fb 439 drivers/gpu/drm/drm_framebuffer.c if (!fb) fb 444 drivers/gpu/drm/drm_framebuffer.c if (fb == fbl) fb 451 drivers/gpu/drm/drm_framebuffer.c list_del_init(&fb->filp_head); fb 455 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_put(fb); fb 464 drivers/gpu/drm/drm_framebuffer.c if (drm_framebuffer_read_refcount(fb) > 1) { fb 469 drivers/gpu/drm/drm_framebuffer.c list_add_tail(&fb->filp_head, &arg.fbs); fb 475 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_put(fb); fb 480 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_put(fb); fb 509 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb; fb 515 drivers/gpu/drm/drm_framebuffer.c fb = drm_framebuffer_lookup(dev, file_priv, r->fb_id); fb 516 drivers/gpu/drm/drm_framebuffer.c if (!fb) fb 520 drivers/gpu/drm/drm_framebuffer.c if (fb->format->num_planes > 1) { fb 525 drivers/gpu/drm/drm_framebuffer.c if (!fb->funcs->create_handle) { fb 530 drivers/gpu/drm/drm_framebuffer.c r->height = fb->height; fb 531 drivers/gpu/drm/drm_framebuffer.c r->width = fb->width; fb 532 drivers/gpu/drm/drm_framebuffer.c r->depth = fb->format->depth; fb 533 drivers/gpu/drm/drm_framebuffer.c r->bpp = fb->format->cpp[0] * 8; fb 534 drivers/gpu/drm/drm_framebuffer.c r->pitch = fb->pitches[0]; fb 547 drivers/gpu/drm/drm_framebuffer.c ret = fb->funcs->create_handle(fb, file_priv, &r->handle); fb 550 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_put(fb); fb 580 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb; fb 588 drivers/gpu/drm/drm_framebuffer.c fb = drm_framebuffer_lookup(dev, file_priv, r->fb_id); fb 589 drivers/gpu/drm/drm_framebuffer.c if (!fb) fb 627 drivers/gpu/drm/drm_framebuffer.c if (fb->funcs->dirty) { fb 628 drivers/gpu/drm/drm_framebuffer.c ret = fb->funcs->dirty(fb, file_priv, flags, r->color, fb 637 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_put(fb); fb 655 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb, *tfb; fb 670 drivers/gpu/drm/drm_framebuffer.c list_for_each_entry_safe(fb, tfb, &priv->fbs, filp_head) { fb 671 drivers/gpu/drm/drm_framebuffer.c if (drm_framebuffer_read_refcount(fb) > 1) { fb 672 drivers/gpu/drm/drm_framebuffer.c list_move_tail(&fb->filp_head, &arg.fbs); fb 674 drivers/gpu/drm/drm_framebuffer.c list_del_init(&fb->filp_head); fb 677 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_put(fb); fb 692 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb = fb 694 drivers/gpu/drm/drm_framebuffer.c struct drm_device *dev = fb->dev; fb 700 drivers/gpu/drm/drm_framebuffer.c drm_mode_object_unregister(dev, &fb->base); fb 702 drivers/gpu/drm/drm_framebuffer.c fb->funcs->destroy(fb); fb 723 drivers/gpu/drm/drm_framebuffer.c int drm_framebuffer_init(struct drm_device *dev, struct drm_framebuffer *fb, fb 728 drivers/gpu/drm/drm_framebuffer.c if (WARN_ON_ONCE(fb->dev != dev || !fb->format)) fb 731 drivers/gpu/drm/drm_framebuffer.c INIT_LIST_HEAD(&fb->filp_head); fb 733 drivers/gpu/drm/drm_framebuffer.c fb->funcs = funcs; fb 734 drivers/gpu/drm/drm_framebuffer.c strcpy(fb->comm, current->comm); fb 736 drivers/gpu/drm/drm_framebuffer.c ret = __drm_mode_object_add(dev, &fb->base, DRM_MODE_OBJECT_FB, fb 743 drivers/gpu/drm/drm_framebuffer.c list_add(&fb->head, &dev->mode_config.fb_list); fb 746 drivers/gpu/drm/drm_framebuffer.c drm_mode_object_register(dev, &fb->base); fb 767 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb = NULL; fb 771 drivers/gpu/drm/drm_framebuffer.c fb = obj_to_fb(obj); fb 772 drivers/gpu/drm/drm_framebuffer.c return fb; fb 790 drivers/gpu/drm/drm_framebuffer.c void drm_framebuffer_unregister_private(struct drm_framebuffer *fb) fb 794 drivers/gpu/drm/drm_framebuffer.c if (!fb) fb 797 drivers/gpu/drm/drm_framebuffer.c dev = fb->dev; fb 800 drivers/gpu/drm/drm_framebuffer.c drm_mode_object_unregister(dev, &fb->base); fb 821 drivers/gpu/drm/drm_framebuffer.c void drm_framebuffer_cleanup(struct drm_framebuffer *fb) fb 823 drivers/gpu/drm/drm_framebuffer.c struct drm_device *dev = fb->dev; fb 826 drivers/gpu/drm/drm_framebuffer.c list_del(&fb->head); fb 832 drivers/gpu/drm/drm_framebuffer.c static int atomic_remove_fb(struct drm_framebuffer *fb) fb 835 drivers/gpu/drm/drm_framebuffer.c struct drm_device *dev = fb->dev; fb 863 drivers/gpu/drm/drm_framebuffer.c if (plane->state->fb != fb) fb 927 drivers/gpu/drm/drm_framebuffer.c static void legacy_remove_fb(struct drm_framebuffer *fb) fb 929 drivers/gpu/drm/drm_framebuffer.c struct drm_device *dev = fb->dev; fb 936 drivers/gpu/drm/drm_framebuffer.c if (crtc->primary->fb == fb) { fb 944 drivers/gpu/drm/drm_framebuffer.c if (plane->fb == fb) fb 962 drivers/gpu/drm/drm_framebuffer.c void drm_framebuffer_remove(struct drm_framebuffer *fb) fb 966 drivers/gpu/drm/drm_framebuffer.c if (!fb) fb 969 drivers/gpu/drm/drm_framebuffer.c dev = fb->dev; fb 971 drivers/gpu/drm/drm_framebuffer.c WARN_ON(!list_empty(&fb->filp_head)); fb 988 drivers/gpu/drm/drm_framebuffer.c if (drm_framebuffer_read_refcount(fb) > 1) { fb 990 drivers/gpu/drm/drm_framebuffer.c int ret = atomic_remove_fb(fb); fb 993 drivers/gpu/drm/drm_framebuffer.c legacy_remove_fb(fb); fb 996 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_put(fb); fb 1010 drivers/gpu/drm/drm_framebuffer.c const struct drm_framebuffer *fb, int plane) fb 1012 drivers/gpu/drm/drm_framebuffer.c if (plane >= fb->format->num_planes) fb 1015 drivers/gpu/drm/drm_framebuffer.c return fb_plane_width(width, fb->format, plane); fb 1029 drivers/gpu/drm/drm_framebuffer.c const struct drm_framebuffer *fb, int plane) fb 1031 drivers/gpu/drm/drm_framebuffer.c if (plane >= fb->format->num_planes) fb 1034 drivers/gpu/drm/drm_framebuffer.c return fb_plane_height(height, fb->format, plane); fb 1039 drivers/gpu/drm/drm_framebuffer.c const struct drm_framebuffer *fb) fb 1044 drivers/gpu/drm/drm_framebuffer.c drm_printf_indent(p, indent, "allocated by = %s\n", fb->comm); fb 1046 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_read_refcount(fb)); fb 1048 drivers/gpu/drm/drm_framebuffer.c drm_get_format_name(fb->format->format, &format_name)); fb 1049 drivers/gpu/drm/drm_framebuffer.c drm_printf_indent(p, indent, "modifier=0x%llx\n", fb->modifier); fb 1050 drivers/gpu/drm/drm_framebuffer.c drm_printf_indent(p, indent, "size=%ux%u\n", fb->width, fb->height); fb 1053 drivers/gpu/drm/drm_framebuffer.c for (i = 0; i < fb->format->num_planes; i++) { fb 1055 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_plane_width(fb->width, fb, i), fb 1056 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_plane_height(fb->height, fb, i)); fb 1057 drivers/gpu/drm/drm_framebuffer.c drm_printf_indent(p, indent + 1, "pitch[%u]=%u\n", i, fb->pitches[i]); fb 1058 drivers/gpu/drm/drm_framebuffer.c drm_printf_indent(p, indent + 1, "offset[%u]=%u\n", i, fb->offsets[i]); fb 1060 drivers/gpu/drm/drm_framebuffer.c fb->obj[i] ? "" : "(null)"); fb 1061 drivers/gpu/drm/drm_framebuffer.c if (fb->obj[i]) fb 1062 drivers/gpu/drm/drm_framebuffer.c drm_gem_print_info(p, indent + 2, fb->obj[i]); fb 1072 drivers/gpu/drm/drm_framebuffer.c struct drm_framebuffer *fb; fb 1075 drivers/gpu/drm/drm_framebuffer.c drm_for_each_fb(fb, dev) { fb 1076 drivers/gpu/drm/drm_framebuffer.c drm_printf(&p, "framebuffer[%u]:\n", fb->base.id); fb 1077 drivers/gpu/drm/drm_framebuffer.c drm_framebuffer_print_info(&p, 1, fb); fb 47 drivers/gpu/drm/drm_gem_framebuffer_helper.c struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb, fb 53 drivers/gpu/drm/drm_gem_framebuffer_helper.c return fb->obj[plane]; fb 63 drivers/gpu/drm/drm_gem_framebuffer_helper.c struct drm_framebuffer *fb; fb 66 drivers/gpu/drm/drm_gem_framebuffer_helper.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 67 drivers/gpu/drm/drm_gem_framebuffer_helper.c if (!fb) fb 70 drivers/gpu/drm/drm_gem_framebuffer_helper.c drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); fb 73 drivers/gpu/drm/drm_gem_framebuffer_helper.c fb->obj[i] = obj[i]; fb 75 drivers/gpu/drm/drm_gem_framebuffer_helper.c ret = drm_framebuffer_init(dev, fb, funcs); fb 79 drivers/gpu/drm/drm_gem_framebuffer_helper.c kfree(fb); fb 83 drivers/gpu/drm/drm_gem_framebuffer_helper.c return fb; fb 94 drivers/gpu/drm/drm_gem_framebuffer_helper.c void drm_gem_fb_destroy(struct drm_framebuffer *fb) fb 99 drivers/gpu/drm/drm_gem_framebuffer_helper.c drm_gem_object_put_unlocked(fb->obj[i]); fb 101 drivers/gpu/drm/drm_gem_framebuffer_helper.c drm_framebuffer_cleanup(fb); fb 102 drivers/gpu/drm/drm_gem_framebuffer_helper.c kfree(fb); fb 119 drivers/gpu/drm/drm_gem_framebuffer_helper.c int drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file, fb 122 drivers/gpu/drm/drm_gem_framebuffer_helper.c return drm_gem_handle_create(file, fb->obj[0], handle); fb 149 drivers/gpu/drm/drm_gem_framebuffer_helper.c struct drm_framebuffer *fb; fb 179 drivers/gpu/drm/drm_gem_framebuffer_helper.c fb = drm_gem_fb_alloc(dev, mode_cmd, objs, i, funcs); fb 180 drivers/gpu/drm/drm_gem_framebuffer_helper.c if (IS_ERR(fb)) { fb 181 drivers/gpu/drm/drm_gem_framebuffer_helper.c ret = PTR_ERR(fb); fb 185 drivers/gpu/drm/drm_gem_framebuffer_helper.c return fb; fb 293 drivers/gpu/drm/drm_gem_framebuffer_helper.c if (!state->fb) fb 296 drivers/gpu/drm/drm_gem_framebuffer_helper.c obj = drm_gem_fb_get_obj(state->fb, 0); fb 214 drivers/gpu/drm/drm_internal.h const struct drm_framebuffer *fb); fb 200 drivers/gpu/drm/drm_mipi_dbi.c int mipi_dbi_buf_copy(void *dst, struct drm_framebuffer *fb, fb 203 drivers/gpu/drm/drm_mipi_dbi.c struct drm_gem_object *gem = drm_gem_fb_get_obj(fb, 0); fb 217 drivers/gpu/drm/drm_mipi_dbi.c switch (fb->format->format) { fb 220 drivers/gpu/drm/drm_mipi_dbi.c drm_fb_swab16(dst, src, fb, clip); fb 222 drivers/gpu/drm/drm_mipi_dbi.c drm_fb_memcpy(dst, src, fb, clip); fb 225 drivers/gpu/drm/drm_mipi_dbi.c drm_fb_xrgb8888_to_rgb565(dst, src, fb, clip, swap); fb 228 drivers/gpu/drm/drm_mipi_dbi.c dev_err_once(fb->dev->dev, "Format is not supported: %s\n", fb 229 drivers/gpu/drm/drm_mipi_dbi.c drm_get_format_name(fb->format->format, fb 241 drivers/gpu/drm/drm_mipi_dbi.c static void mipi_dbi_fb_dirty(struct drm_framebuffer *fb, struct drm_rect *rect) fb 243 drivers/gpu/drm/drm_mipi_dbi.c struct drm_gem_object *gem = drm_gem_fb_get_obj(fb, 0); fb 245 drivers/gpu/drm/drm_mipi_dbi.c struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(fb->dev); fb 257 drivers/gpu/drm/drm_mipi_dbi.c if (!drm_dev_enter(fb->dev, &idx)) fb 260 drivers/gpu/drm/drm_mipi_dbi.c full = width == fb->width && height == fb->height; fb 262 drivers/gpu/drm/drm_mipi_dbi.c DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); fb 265 drivers/gpu/drm/drm_mipi_dbi.c fb->format->format == DRM_FORMAT_XRGB8888) { fb 267 drivers/gpu/drm/drm_mipi_dbi.c ret = mipi_dbi_buf_copy(dbidev->tx_buf, fb, rect, swap); fb 285 drivers/gpu/drm/drm_mipi_dbi.c dev_err_once(fb->dev->dev, "Failed to update display %d\n", ret); fb 306 drivers/gpu/drm/drm_mipi_dbi.c mipi_dbi_fb_dirty(state->fb, &rect); fb 335 drivers/gpu/drm/drm_mipi_dbi.c struct drm_framebuffer *fb = plane_state->fb; fb 338 drivers/gpu/drm/drm_mipi_dbi.c .x2 = fb->width, fb 340 drivers/gpu/drm/drm_mipi_dbi.c .y2 = fb->height, fb 348 drivers/gpu/drm/drm_mipi_dbi.c mipi_dbi_fb_dirty(fb, &rect); fb 92 drivers/gpu/drm/drm_mode_config.c struct drm_framebuffer *fb; fb 109 drivers/gpu/drm/drm_mode_config.c list_for_each_entry(fb, &file_priv->fbs, filp_head) { fb 111 drivers/gpu/drm/drm_mode_config.c put_user(fb->base.id, fb_id + count)) { fb 440 drivers/gpu/drm/drm_mode_config.c struct drm_framebuffer *fb, *fbt; fb 496 drivers/gpu/drm/drm_mode_config.c list_for_each_entry_safe(fb, fbt, &dev->mode_config.fb_list, head) { fb 498 drivers/gpu/drm/drm_mode_config.c drm_printf(&p, "framebuffer[%u]:\n", fb->base.id); fb 499 drivers/gpu/drm/drm_mode_config.c drm_framebuffer_print_info(&p, 1, fb); fb 500 drivers/gpu/drm/drm_mode_config.c drm_framebuffer_free(&fb->base.refcount); fb 80 drivers/gpu/drm/drm_modeset_helper.c struct drm_framebuffer *fb, fb 85 drivers/gpu/drm/drm_modeset_helper.c fb->dev = dev; fb 86 drivers/gpu/drm/drm_modeset_helper.c fb->format = drm_get_format_info(dev, mode_cmd); fb 87 drivers/gpu/drm/drm_modeset_helper.c fb->width = mode_cmd->width; fb 88 drivers/gpu/drm/drm_modeset_helper.c fb->height = mode_cmd->height; fb 90 drivers/gpu/drm/drm_modeset_helper.c fb->pitches[i] = mode_cmd->pitches[i]; fb 91 drivers/gpu/drm/drm_modeset_helper.c fb->offsets[i] = mode_cmd->offsets[i]; fb 93 drivers/gpu/drm/drm_modeset_helper.c fb->modifier = mode_cmd->modifier[0]; fb 94 drivers/gpu/drm/drm_modeset_helper.c fb->flags = mode_cmd->flags; fb 425 drivers/gpu/drm/drm_plane.c if (!plane->fb) fb 430 drivers/gpu/drm/drm_plane.c plane->old_fb = plane->fb; fb 440 drivers/gpu/drm/drm_plane.c plane->fb = NULL; fb 534 drivers/gpu/drm/drm_plane.c if (plane->state && plane->state->fb) fb 535 drivers/gpu/drm/drm_plane.c plane_resp->fb_id = plane->state->fb->base.id; fb 536 drivers/gpu/drm/drm_plane.c else if (!plane->state && plane->fb) fb 537 drivers/gpu/drm/drm_plane.c plane_resp->fb_id = plane->fb->base.id; fb 598 drivers/gpu/drm/drm_plane.c struct drm_framebuffer *fb, fb 613 drivers/gpu/drm/drm_plane.c ret = drm_plane_check_pixel_format(plane, fb->format->format, fb 614 drivers/gpu/drm/drm_plane.c fb->modifier); fb 619 drivers/gpu/drm/drm_plane.c drm_get_format_name(fb->format->format, fb 621 drivers/gpu/drm/drm_plane.c fb->modifier); fb 635 drivers/gpu/drm/drm_plane.c ret = drm_framebuffer_check_src_coords(src_x, src_y, src_w, src_h, fb); fb 675 drivers/gpu/drm/drm_plane.c struct drm_framebuffer *fb, fb 688 drivers/gpu/drm/drm_plane.c if (!fb) { fb 689 drivers/gpu/drm/drm_plane.c plane->old_fb = plane->fb; fb 693 drivers/gpu/drm/drm_plane.c plane->fb = NULL; fb 700 drivers/gpu/drm/drm_plane.c ret = __setplane_check(plane, crtc, fb, fb 706 drivers/gpu/drm/drm_plane.c plane->old_fb = plane->fb; fb 707 drivers/gpu/drm/drm_plane.c ret = plane->funcs->update_plane(plane, crtc, fb, fb 712 drivers/gpu/drm/drm_plane.c plane->fb = fb; fb 713 drivers/gpu/drm/drm_plane.c drm_framebuffer_get(plane->fb); fb 728 drivers/gpu/drm/drm_plane.c struct drm_framebuffer *fb, fb 740 drivers/gpu/drm/drm_plane.c if (!fb) fb 750 drivers/gpu/drm/drm_plane.c ret = __setplane_check(plane, crtc, fb, fb 756 drivers/gpu/drm/drm_plane.c return plane->funcs->update_plane(plane, crtc, fb, fb 763 drivers/gpu/drm/drm_plane.c struct drm_framebuffer *fb, fb 777 drivers/gpu/drm/drm_plane.c ret = __setplane_atomic(plane, crtc, fb, fb 781 drivers/gpu/drm/drm_plane.c ret = __setplane_internal(plane, crtc, fb, fb 796 drivers/gpu/drm/drm_plane.c struct drm_framebuffer *fb = NULL; fb 814 drivers/gpu/drm/drm_plane.c fb = drm_framebuffer_lookup(dev, file_priv, plane_req->fb_id); fb 815 drivers/gpu/drm/drm_plane.c if (!fb) { fb 823 drivers/gpu/drm/drm_plane.c drm_framebuffer_put(fb); fb 830 drivers/gpu/drm/drm_plane.c ret = setplane_internal(plane, crtc, fb, fb 836 drivers/gpu/drm/drm_plane.c if (fb) fb 837 drivers/gpu/drm/drm_plane.c drm_framebuffer_put(fb); fb 849 drivers/gpu/drm/drm_plane.c struct drm_framebuffer *fb = NULL; fb 872 drivers/gpu/drm/drm_plane.c fb = drm_internal_framebuffer_create(dev, &fbreq, file_priv); fb 873 drivers/gpu/drm/drm_plane.c if (IS_ERR(fb)) { fb 875 drivers/gpu/drm/drm_plane.c return PTR_ERR(fb); fb 878 drivers/gpu/drm/drm_plane.c fb->hot_x = req->hot_x; fb 879 drivers/gpu/drm/drm_plane.c fb->hot_y = req->hot_y; fb 881 drivers/gpu/drm/drm_plane.c fb = NULL; fb 885 drivers/gpu/drm/drm_plane.c fb = plane->state->fb; fb 887 drivers/gpu/drm/drm_plane.c fb = plane->fb; fb 889 drivers/gpu/drm/drm_plane.c if (fb) fb 890 drivers/gpu/drm/drm_plane.c drm_framebuffer_get(fb); fb 901 drivers/gpu/drm/drm_plane.c if (fb) { fb 902 drivers/gpu/drm/drm_plane.c crtc_w = fb->width; fb 903 drivers/gpu/drm/drm_plane.c crtc_h = fb->height; fb 904 drivers/gpu/drm/drm_plane.c src_w = fb->width << 16; fb 905 drivers/gpu/drm/drm_plane.c src_h = fb->height << 16; fb 909 drivers/gpu/drm/drm_plane.c ret = __setplane_atomic(plane, crtc, fb, fb 913 drivers/gpu/drm/drm_plane.c ret = __setplane_internal(plane, crtc, fb, fb 917 drivers/gpu/drm/drm_plane.c if (fb) fb 918 drivers/gpu/drm/drm_plane.c drm_framebuffer_put(fb); fb 1040 drivers/gpu/drm/drm_plane.c struct drm_framebuffer *fb = NULL, *old_fb; fb 1122 drivers/gpu/drm/drm_plane.c old_fb = plane->state->fb; fb 1124 drivers/gpu/drm/drm_plane.c old_fb = plane->fb; fb 1135 drivers/gpu/drm/drm_plane.c fb = drm_framebuffer_lookup(dev, file_priv, page_flip->fb_id); fb 1136 drivers/gpu/drm/drm_plane.c if (!fb) { fb 1148 drivers/gpu/drm/drm_plane.c fb); fb 1151 drivers/gpu/drm/drm_plane.c &crtc->mode, fb); fb 1156 drivers/gpu/drm/drm_plane.c if (old_fb->format != fb->format) { fb 1182 drivers/gpu/drm/drm_plane.c plane->old_fb = plane->fb; fb 1184 drivers/gpu/drm/drm_plane.c ret = crtc->funcs->page_flip_target(crtc, fb, e, fb 1189 drivers/gpu/drm/drm_plane.c ret = crtc->funcs->page_flip(crtc, fb, e, page_flip->flags, fb 1198 drivers/gpu/drm/drm_plane.c plane->fb = fb; fb 1199 drivers/gpu/drm/drm_plane.c drm_framebuffer_get(fb); fb 1204 drivers/gpu/drm/drm_plane.c if (fb) fb 1205 drivers/gpu/drm/drm_plane.c drm_framebuffer_put(fb); fb 103 drivers/gpu/drm/drm_plane_helper.c struct drm_framebuffer *fb, fb 116 drivers/gpu/drm/drm_plane_helper.c .fb = fb, fb 150 drivers/gpu/drm/drm_plane_helper.c struct drm_framebuffer *fb, fb 159 drivers/gpu/drm/drm_plane_helper.c .fb = fb, fb 180 drivers/gpu/drm/drm_plane_helper.c ret = drm_plane_helper_check_update(plane, crtc, fb, fb 245 drivers/gpu/drm/drm_writeback.c struct drm_framebuffer *fb) fb 259 drivers/gpu/drm/drm_writeback.c drm_framebuffer_assign(&conn_state->writeback_job->fb, fb); fb 324 drivers/gpu/drm/drm_writeback.c if (job->fb) fb 325 drivers/gpu/drm/drm_writeback.c drm_framebuffer_put(job->fb); fb 319 drivers/gpu/drm/exynos/exynos5433_drm_decon.c struct drm_framebuffer *fb) fb 328 drivers/gpu/drm/exynos/exynos5433_drm_decon.c if (fb->format->has_alpha) fb 336 drivers/gpu/drm/exynos/exynos5433_drm_decon.c switch (fb->format->format) { fb 360 drivers/gpu/drm/exynos/exynos5433_drm_decon.c DRM_DEV_DEBUG_KMS(ctx->dev, "cpp = %u\n", fb->format->cpp[0]); fb 370 drivers/gpu/drm/exynos/exynos5433_drm_decon.c if (fb->width < MIN_FB_WIDTH_FOR_16WORD_BURST) { fb 405 drivers/gpu/drm/exynos/exynos5433_drm_decon.c struct drm_framebuffer *fb = state->base.fb; fb 407 drivers/gpu/drm/exynos/exynos5433_drm_decon.c unsigned int cpp = fb->format->cpp[0]; fb 408 drivers/gpu/drm/exynos/exynos5433_drm_decon.c unsigned int pitch = fb->pitches[0]; fb 409 drivers/gpu/drm/exynos/exynos5433_drm_decon.c dma_addr_t dma_addr = exynos_drm_fb_dma_addr(fb, 0); fb 450 drivers/gpu/drm/exynos/exynos5433_drm_decon.c decon_win_set_pixfmt(ctx, win, fb); fb 262 drivers/gpu/drm/exynos/exynos7_drm_decon.c struct drm_framebuffer *fb) fb 270 drivers/gpu/drm/exynos/exynos7_drm_decon.c switch (fb->format->format) { fb 314 drivers/gpu/drm/exynos/exynos7_drm_decon.c DRM_DEV_DEBUG_KMS(ctx->dev, "cpp = %d\n", fb->format->cpp[0]); fb 324 drivers/gpu/drm/exynos/exynos7_drm_decon.c padding = (fb->pitches[0] / fb->format->cpp[0]) - fb->width; fb 325 drivers/gpu/drm/exynos/exynos7_drm_decon.c if (fb->width + padding < MIN_FB_WIDTH_FOR_16WORD_BURST) { fb 385 drivers/gpu/drm/exynos/exynos7_drm_decon.c struct drm_framebuffer *fb = state->base.fb; fb 391 drivers/gpu/drm/exynos/exynos7_drm_decon.c unsigned int cpp = fb->format->cpp[0]; fb 392 drivers/gpu/drm/exynos/exynos7_drm_decon.c unsigned int pitch = fb->pitches[0]; fb 408 drivers/gpu/drm/exynos/exynos7_drm_decon.c val = (unsigned long)exynos_drm_fb_dma_addr(fb, 0); fb 411 drivers/gpu/drm/exynos/exynos7_drm_decon.c padding = (pitch / cpp) - fb->width; fb 414 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(fb->width + padding, ctx->regs + VIDW_WHOLE_X(win)); fb 415 drivers/gpu/drm/exynos/exynos7_drm_decon.c writel(fb->height, ctx->regs + VIDW_WHOLE_Y(win)); fb 457 drivers/gpu/drm/exynos/exynos7_drm_decon.c decon_win_set_pixfmt(ctx, win, fb); fb 63 drivers/gpu/drm/exynos/exynos_drm_fb.c struct drm_framebuffer *fb; fb 67 drivers/gpu/drm/exynos/exynos_drm_fb.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 68 drivers/gpu/drm/exynos/exynos_drm_fb.c if (!fb) fb 76 drivers/gpu/drm/exynos/exynos_drm_fb.c fb->obj[i] = &exynos_gem[i]->base; fb 79 drivers/gpu/drm/exynos/exynos_drm_fb.c drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); fb 81 drivers/gpu/drm/exynos/exynos_drm_fb.c ret = drm_framebuffer_init(dev, fb, &exynos_drm_fb_funcs); fb 88 drivers/gpu/drm/exynos/exynos_drm_fb.c return fb; fb 91 drivers/gpu/drm/exynos/exynos_drm_fb.c kfree(fb); fb 101 drivers/gpu/drm/exynos/exynos_drm_fb.c struct drm_framebuffer *fb; fb 127 drivers/gpu/drm/exynos/exynos_drm_fb.c fb = exynos_drm_framebuffer_init(dev, mode_cmd, exynos_gem, i); fb 128 drivers/gpu/drm/exynos/exynos_drm_fb.c if (IS_ERR(fb)) { fb 129 drivers/gpu/drm/exynos/exynos_drm_fb.c ret = PTR_ERR(fb); fb 133 drivers/gpu/drm/exynos/exynos_drm_fb.c return fb; fb 142 drivers/gpu/drm/exynos/exynos_drm_fb.c dma_addr_t exynos_drm_fb_dma_addr(struct drm_framebuffer *fb, int index) fb 149 drivers/gpu/drm/exynos/exynos_drm_fb.c exynos_gem = to_exynos_gem(fb->obj[index]); fb 150 drivers/gpu/drm/exynos/exynos_drm_fb.c return exynos_gem->dma_addr + fb->offsets[index]; fb 21 drivers/gpu/drm/exynos/exynos_drm_fb.h dma_addr_t exynos_drm_fb_dma_addr(struct drm_framebuffer *fb, int index); fb 77 drivers/gpu/drm/exynos/exynos_drm_fbdev.c struct drm_framebuffer *fb = helper->fb; fb 78 drivers/gpu/drm/exynos/exynos_drm_fbdev.c unsigned int size = fb->width * fb->height * fb->format->cpp[0]; fb 103 drivers/gpu/drm/exynos/exynos_drm_fbdev.c offset = fbi->var.xoffset * fb->format->cpp[0]; fb 104 drivers/gpu/drm/exynos/exynos_drm_fbdev.c offset += fbi->var.yoffset * fb->pitches[0]; fb 153 drivers/gpu/drm/exynos/exynos_drm_fbdev.c helper->fb = fb 155 drivers/gpu/drm/exynos/exynos_drm_fbdev.c if (IS_ERR(helper->fb)) { fb 157 drivers/gpu/drm/exynos/exynos_drm_fbdev.c ret = PTR_ERR(helper->fb); fb 168 drivers/gpu/drm/exynos/exynos_drm_fbdev.c drm_framebuffer_cleanup(helper->fb); fb 242 drivers/gpu/drm/exynos/exynos_drm_fbdev.c struct drm_framebuffer *fb; fb 247 drivers/gpu/drm/exynos/exynos_drm_fbdev.c if (fb_helper->fb && fb_helper->fb->funcs) { fb 248 drivers/gpu/drm/exynos/exynos_drm_fbdev.c fb = fb_helper->fb; fb 249 drivers/gpu/drm/exynos/exynos_drm_fbdev.c if (fb) fb 250 drivers/gpu/drm/exynos/exynos_drm_fbdev.c drm_framebuffer_remove(fb); fb 638 drivers/gpu/drm/exynos/exynos_drm_fimd.c struct drm_framebuffer *fb, int width) fb 643 drivers/gpu/drm/exynos/exynos_drm_fimd.c uint32_t pixel_format = fb->format->format; fb 648 drivers/gpu/drm/exynos/exynos_drm_fimd.c if (fb->format->has_alpha) fb 794 drivers/gpu/drm/exynos/exynos_drm_fimd.c struct drm_framebuffer *fb = state->base.fb; fb 799 drivers/gpu/drm/exynos/exynos_drm_fimd.c unsigned int cpp = fb->format->cpp[0]; fb 800 drivers/gpu/drm/exynos/exynos_drm_fimd.c unsigned int pitch = fb->pitches[0]; fb 809 drivers/gpu/drm/exynos/exynos_drm_fimd.c dma_addr = exynos_drm_fb_dma_addr(fb, 0) + offset; fb 868 drivers/gpu/drm/exynos/exynos_drm_fimd.c fimd_win_set_pixfmt(ctx, win, fb, state->src.w); fb 179 drivers/gpu/drm/exynos/exynos_drm_plane.c struct drm_framebuffer *fb = state->base.fb; fb 180 drivers/gpu/drm/exynos/exynos_drm_plane.c struct drm_device *dev = fb->dev; fb 182 drivers/gpu/drm/exynos/exynos_drm_plane.c switch (fb->modifier) { fb 238 drivers/gpu/drm/exynos/exynos_drm_plane.c if (!state->crtc || !state->fb) fb 119 drivers/gpu/drm/exynos/exynos_drm_vidi.c addr = exynos_drm_fb_dma_addr(state->fb, 0); fb 516 drivers/gpu/drm/exynos/exynos_mixer.c struct drm_framebuffer *fb = state->base.fb; fb 523 drivers/gpu/drm/exynos/exynos_mixer.c is_nv21 = (fb->format->format == DRM_FORMAT_NV21); fb 524 drivers/gpu/drm/exynos/exynos_mixer.c is_tiled = (fb->modifier == DRM_FORMAT_MOD_SAMSUNG_64_32_TILE); fb 526 drivers/gpu/drm/exynos/exynos_mixer.c luma_addr[0] = exynos_drm_fb_dma_addr(fb, 0); fb 527 drivers/gpu/drm/exynos/exynos_mixer.c chroma_addr[0] = exynos_drm_fb_dma_addr(fb, 1); fb 534 drivers/gpu/drm/exynos/exynos_mixer.c luma_addr[1] = luma_addr[0] + fb->pitches[0]; fb 535 drivers/gpu/drm/exynos/exynos_mixer.c chroma_addr[1] = chroma_addr[0] + fb->pitches[1]; fb 554 drivers/gpu/drm/exynos/exynos_mixer.c vp_reg_write(ctx, VP_IMG_SIZE_Y, VP_IMG_HSIZE(fb->pitches[0]) | fb 555 drivers/gpu/drm/exynos/exynos_mixer.c VP_IMG_VSIZE(fb->height)); fb 557 drivers/gpu/drm/exynos/exynos_mixer.c vp_reg_write(ctx, VP_IMG_SIZE_C, VP_IMG_HSIZE(fb->pitches[1]) | fb 558 drivers/gpu/drm/exynos/exynos_mixer.c VP_IMG_VSIZE(fb->height / 2)); fb 603 drivers/gpu/drm/exynos/exynos_mixer.c struct drm_framebuffer *fb = state->base.fb; fb 614 drivers/gpu/drm/exynos/exynos_mixer.c if (fb->format->has_alpha) fb 619 drivers/gpu/drm/exynos/exynos_mixer.c switch (fb->format->format) { fb 649 drivers/gpu/drm/exynos/exynos_mixer.c dma_addr = exynos_drm_fb_dma_addr(fb, 0) fb 650 drivers/gpu/drm/exynos/exynos_mixer.c + (state->src.x * fb->format->cpp[0]) fb 651 drivers/gpu/drm/exynos/exynos_mixer.c + (state->src.y * fb->pitches[0]); fb 661 drivers/gpu/drm/exynos/exynos_mixer.c fb->pitches[0] / fb->format->cpp[0]); fb 38 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c struct drm_framebuffer *fb = state->fb; fb 40 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c if (!state->fb || !state->crtc) fb 43 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c switch (fb->format->format) { fb 81 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c struct drm_framebuffer *fb = plane->state->fb; fb 86 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c if (!fb) fb 93 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 95 drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c switch (fb->format->format) { fb 232 drivers/gpu/drm/gma500/accel_2d.c struct drm_framebuffer *fb = fbdev->psb_fb_helper.fb; fb 239 drivers/gpu/drm/gma500/accel_2d.c if (!fb) fb 242 drivers/gpu/drm/gma500/accel_2d.c offset = to_gtt_range(fb->obj[0])->offset; fb 243 drivers/gpu/drm/gma500/accel_2d.c stride = fb->pitches[0]; fb 245 drivers/gpu/drm/gma500/accel_2d.c switch (fb->format->depth) { fb 462 drivers/gpu/drm/gma500/cdv_intel_display.c if (crtc->primary->fb == NULL || !gma_crtc->active) fb 1891 drivers/gpu/drm/gma500/cdv_intel_dp.c crtc->primary->fb); fb 196 drivers/gpu/drm/gma500/cdv_intel_hdmi.c encoder->crtc->x, encoder->crtc->y, encoder->crtc->primary->fb)) fb 461 drivers/gpu/drm/gma500/cdv_intel_lvds.c encoder->crtc->primary->fb)) fb 44 drivers/gpu/drm/gma500/framebuffer.c struct drm_framebuffer *fb = fbdev->psb_fb_helper.fb; fb 47 drivers/gpu/drm/gma500/framebuffer.c if (!fb) fb 64 drivers/gpu/drm/gma500/framebuffer.c switch (fb->format->cpp[0] * 8) { fb 212 drivers/gpu/drm/gma500/framebuffer.c struct psb_framebuffer *fb, fb 230 drivers/gpu/drm/gma500/framebuffer.c drm_helper_mode_fill_fb_struct(dev, &fb->base, mode_cmd); fb 231 drivers/gpu/drm/gma500/framebuffer.c fb->base.obj[0] = >->gem; fb 232 drivers/gpu/drm/gma500/framebuffer.c ret = drm_framebuffer_init(dev, &fb->base, &psb_fb_funcs); fb 257 drivers/gpu/drm/gma500/framebuffer.c struct psb_framebuffer *fb; fb 260 drivers/gpu/drm/gma500/framebuffer.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 261 drivers/gpu/drm/gma500/framebuffer.c if (!fb) fb 264 drivers/gpu/drm/gma500/framebuffer.c ret = psb_framebuffer_init(dev, fb, mode_cmd, gt); fb 266 drivers/gpu/drm/gma500/framebuffer.c kfree(fb); fb 269 drivers/gpu/drm/gma500/framebuffer.c return &fb->base; fb 309 drivers/gpu/drm/gma500/framebuffer.c struct drm_framebuffer *fb; fb 387 drivers/gpu/drm/gma500/framebuffer.c fb = &psbfb->base; fb 390 drivers/gpu/drm/gma500/framebuffer.c fbdev->psb_fb_helper.fb = fb; fb 56 drivers/gpu/drm/gma500/gma_display.c struct drm_framebuffer *fb = crtc->primary->fb; fb 68 drivers/gpu/drm/gma500/gma_display.c if (!fb) { fb 73 drivers/gpu/drm/gma500/gma_display.c gtt = to_gtt_range(fb->obj[0]); fb 81 drivers/gpu/drm/gma500/gma_display.c offset = y * fb->pitches[0] + x * fb->format->cpp[0]; fb 83 drivers/gpu/drm/gma500/gma_display.c REG_WRITE(map->stride, fb->pitches[0]); fb 88 drivers/gpu/drm/gma500/gma_display.c switch (fb->format->cpp[0] * 8) { fb 93 drivers/gpu/drm/gma500/gma_display.c if (fb->format->depth == 15) fb 489 drivers/gpu/drm/gma500/gma_display.c if (crtc->primary->fb) { fb 490 drivers/gpu/drm/gma500/gma_display.c gt = to_gtt_range(crtc->primary->fb->obj[0]); fb 292 drivers/gpu/drm/gma500/mdfld_dsi_output.c encoder->crtc->primary->fb)) fb 137 drivers/gpu/drm/gma500/mdfld_intel_display.c static int check_fb(struct drm_framebuffer *fb) fb 139 drivers/gpu/drm/gma500/mdfld_intel_display.c if (!fb) fb 142 drivers/gpu/drm/gma500/mdfld_intel_display.c switch (fb->format->cpp[0] * 8) { fb 159 drivers/gpu/drm/gma500/mdfld_intel_display.c struct drm_framebuffer *fb = crtc->primary->fb; fb 172 drivers/gpu/drm/gma500/mdfld_intel_display.c if (!fb) { fb 177 drivers/gpu/drm/gma500/mdfld_intel_display.c ret = check_fb(fb); fb 189 drivers/gpu/drm/gma500/mdfld_intel_display.c start = to_gtt_range(fb->obj[0])->offset; fb 190 drivers/gpu/drm/gma500/mdfld_intel_display.c offset = y * fb->pitches[0] + x * fb->format->cpp[0]; fb 192 drivers/gpu/drm/gma500/mdfld_intel_display.c REG_WRITE(map->stride, fb->pitches[0]); fb 196 drivers/gpu/drm/gma500/mdfld_intel_display.c switch (fb->format->cpp[0] * 8) { fb 201 drivers/gpu/drm/gma500/mdfld_intel_display.c if (fb->format->depth == 15) fb 694 drivers/gpu/drm/gma500/mdfld_intel_display.c ret = check_fb(crtc->primary->fb); fb 594 drivers/gpu/drm/gma500/oaktrail_crtc.c struct drm_framebuffer *fb = crtc->primary->fb; fb 603 drivers/gpu/drm/gma500/oaktrail_crtc.c if (!fb) { fb 611 drivers/gpu/drm/gma500/oaktrail_crtc.c start = to_gtt_range(fb->obj[0])->offset; fb 612 drivers/gpu/drm/gma500/oaktrail_crtc.c offset = y * fb->pitches[0] + x * fb->format->cpp[0]; fb 614 drivers/gpu/drm/gma500/oaktrail_crtc.c REG_WRITE(map->stride, fb->pitches[0]); fb 619 drivers/gpu/drm/gma500/oaktrail_crtc.c switch (fb->format->cpp[0] * 8) { fb 624 drivers/gpu/drm/gma500/oaktrail_crtc.c if (fb->format->depth == 15) fb 695 drivers/gpu/drm/gma500/psb_drv.h struct drm_framebuffer *fb); fb 113 drivers/gpu/drm/gma500/psb_intel_display.c if (crtc->primary->fb == NULL) { fb 242 drivers/gpu/drm/gma500/psb_intel_drv.h struct drm_framebuffer *fb); fb 580 drivers/gpu/drm/gma500/psb_intel_lvds.c encoder->crtc->primary->fb)) fb 1805 drivers/gpu/drm/gma500/psb_intel_sdvo.c crtc->y, crtc->primary->fb); fb 60 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c struct drm_framebuffer *fb = state->fb; fb 66 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c if (!crtc || !fb) fb 106 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c if (!state->fb) fb 109 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c hibmc_fb = to_hibmc_framebuffer(state->fb); fb 125 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c reg = state->fb->width * (state->fb->format->cpp[0]); fb 129 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c line_l = state->fb->width * state->fb->format->cpp[0]; fb 139 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_de.c state->fb->format->cpp[0] * 8 / 16); fb 24 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h struct drm_framebuffer fb; fb 30 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h struct hibmc_framebuffer *fb; fb 50 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_drv.h #define to_hibmc_framebuffer(x) container_of(x, struct hibmc_framebuffer, fb) fb 110 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c hi_fbdev->fb = hibmc_framebuffer_init(priv->dev, &mode_cmd, gobj); fb 111 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c if (IS_ERR(hi_fbdev->fb)) { fb 112 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c ret = PTR_ERR(hi_fbdev->fb); fb 113 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c hi_fbdev->fb = NULL; fb 119 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c hi_fbdev->helper.fb = &hi_fbdev->fb->fb; fb 144 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c struct hibmc_framebuffer *gfb = fbdev->fb; fb 152 drivers/gpu/drm/hisilicon/hibmc/hibmc_drm_fbdev.c drm_framebuffer_put(&gfb->fb); fb 101 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c static void hibmc_user_framebuffer_destroy(struct drm_framebuffer *fb) fb 103 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c struct hibmc_framebuffer *hibmc_fb = to_hibmc_framebuffer(fb); fb 106 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c drm_framebuffer_cleanup(fb); fb 128 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c drm_helper_mode_fill_fb_struct(dev, &hibmc_fb->fb, mode_cmd); fb 130 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c ret = drm_framebuffer_init(dev, &hibmc_fb->fb, &hibmc_fb_funcs); fb 164 drivers/gpu/drm/hisilicon/hibmc/hibmc_ttm.c return &hibmc_fb->fb; fb 548 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c static void ade_rdma_set(void __iomem *base, struct drm_framebuffer *fb, fb 551 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c struct drm_gem_cma_object *obj = drm_fb_cma_get_gem_obj(fb, 0); fb 554 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c u32 stride = fb->pitches[0]; fb 560 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c addr, fb->width, fb->height, fmt, fb 561 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c drm_get_format_name(fb->format->format, &format_name)); fb 710 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c struct drm_framebuffer *fb, int crtc_x, fb 717 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c u32 fmt = ade_get_format(fb->format->format); fb 729 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c ade_rdma_set(base, fb, ch, src_y, in_h, fmt); fb 732 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c ade_clip_set(base, ch, fb->width, src_x, in_w, in_h); fb 763 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c struct drm_framebuffer *fb = state->fb; fb 776 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c if (!crtc || !fb) fb 779 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c fmt = ade_get_format(fb->format->format); fb 791 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c if (src_x + src_w > fb->width || fb 792 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c src_y + src_h > fb->height) fb 811 drivers/gpu/drm/hisilicon/kirin/kirin_drm_ade.c ade_update_channel(kplane, state->fb, state->crtc_x, state->crtc_y, fb 365 drivers/gpu/drm/i2c/ch7006_drv.c crtc->primary->fb); fb 253 drivers/gpu/drm/i915/display/intel_atomic.c if (plane_state && plane_state->base.fb && fb 254 drivers/gpu/drm/i915/display/intel_atomic.c plane_state->base.fb->format->is_yuv && fb 255 drivers/gpu/drm/i915/display/intel_atomic.c plane_state->base.fb->format->num_planes > 1) { fb 121 drivers/gpu/drm/i915/display/intel_atomic_plane.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 127 drivers/gpu/drm/i915/display/intel_atomic_plane.c cpp = fb->format->cpp[0]; fb 135 drivers/gpu/drm/i915/display/intel_atomic_plane.c if (fb->format->is_yuv && fb->format->num_planes > 1) fb 167 drivers/gpu/drm/i915/display/intel_atomic_plane.c is_planar_yuv_format(new_plane_state->base.fb->format->format)) fb 171 drivers/gpu/drm/i915/display/intel_atomic_plane.c new_plane_state->base.fb->format->format == DRM_FORMAT_C8) fb 1017 drivers/gpu/drm/i915/display/intel_display.c return crtc->active && crtc->base.primary->state->fb && fb 1897 drivers/gpu/drm/i915/display/intel_display.c intel_tile_width_bytes(const struct drm_framebuffer *fb, int color_plane) fb 1899 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_private *dev_priv = to_i915(fb->dev); fb 1900 drivers/gpu/drm/i915/display/intel_display.c unsigned int cpp = fb->format->cpp[color_plane]; fb 1902 drivers/gpu/drm/i915/display/intel_display.c switch (fb->modifier) { fb 1939 drivers/gpu/drm/i915/display/intel_display.c MISSING_CASE(fb->modifier); fb 1945 drivers/gpu/drm/i915/display/intel_display.c intel_tile_height(const struct drm_framebuffer *fb, int color_plane) fb 1947 drivers/gpu/drm/i915/display/intel_display.c return intel_tile_size(to_i915(fb->dev)) / fb 1948 drivers/gpu/drm/i915/display/intel_display.c intel_tile_width_bytes(fb, color_plane); fb 1952 drivers/gpu/drm/i915/display/intel_display.c static void intel_tile_dims(const struct drm_framebuffer *fb, int color_plane, fb 1956 drivers/gpu/drm/i915/display/intel_display.c unsigned int tile_width_bytes = intel_tile_width_bytes(fb, color_plane); fb 1957 drivers/gpu/drm/i915/display/intel_display.c unsigned int cpp = fb->format->cpp[color_plane]; fb 1960 drivers/gpu/drm/i915/display/intel_display.c *tile_height = intel_tile_size(to_i915(fb->dev)) / tile_width_bytes; fb 1964 drivers/gpu/drm/i915/display/intel_display.c intel_fb_align_height(const struct drm_framebuffer *fb, fb 1967 drivers/gpu/drm/i915/display/intel_display.c unsigned int tile_height = intel_tile_height(fb, color_plane); fb 1996 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb, fb 2002 drivers/gpu/drm/i915/display/intel_display.c view->rotated = to_intel_framebuffer(fb)->rot_info; fb 2031 drivers/gpu/drm/i915/display/intel_display.c static unsigned int intel_surf_alignment(const struct drm_framebuffer *fb, fb 2034 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_private *dev_priv = to_i915(fb->dev); fb 2040 drivers/gpu/drm/i915/display/intel_display.c switch (fb->modifier) { fb 2053 drivers/gpu/drm/i915/display/intel_display.c MISSING_CASE(fb->modifier); fb 2069 drivers/gpu/drm/i915/display/intel_display.c intel_pin_and_fence_fb_obj(struct drm_framebuffer *fb, fb 2074 drivers/gpu/drm/i915/display/intel_display.c struct drm_device *dev = fb->dev; fb 2076 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_gem_object *obj = intel_fb_obj(fb); fb 2084 drivers/gpu/drm/i915/display/intel_display.c alignment = intel_surf_alignment(fb, 0); fb 2175 drivers/gpu/drm/i915/display/intel_display.c static int intel_fb_pitch(const struct drm_framebuffer *fb, int color_plane, fb 2179 drivers/gpu/drm/i915/display/intel_display.c return to_intel_framebuffer(fb)->rotated[color_plane].pitch; fb 2181 drivers/gpu/drm/i915/display/intel_display.c return fb->pitches[color_plane]; fb 2194 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = state->base.fb; fb 2195 drivers/gpu/drm/i915/display/intel_display.c unsigned int cpp = fb->format->cpp[color_plane]; fb 2248 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb, fb 2254 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_private *dev_priv = to_i915(fb->dev); fb 2255 drivers/gpu/drm/i915/display/intel_display.c unsigned int cpp = fb->format->cpp[color_plane]; fb 2259 drivers/gpu/drm/i915/display/intel_display.c if (!is_surface_linear(fb->modifier, color_plane)) { fb 2264 drivers/gpu/drm/i915/display/intel_display.c intel_tile_dims(fb, color_plane, &tile_width, &tile_height); fb 2295 drivers/gpu/drm/i915/display/intel_display.c return intel_adjust_aligned_offset(x, y, state->base.fb, color_plane, fb 2317 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb, fb 2323 drivers/gpu/drm/i915/display/intel_display.c unsigned int cpp = fb->format->cpp[color_plane]; fb 2329 drivers/gpu/drm/i915/display/intel_display.c if (!is_surface_linear(fb->modifier, color_plane)) { fb 2334 drivers/gpu/drm/i915/display/intel_display.c intel_tile_dims(fb, color_plane, &tile_width, &tile_height); fb 2372 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = state->base.fb; fb 2380 drivers/gpu/drm/i915/display/intel_display.c alignment = intel_surf_alignment(fb, color_plane); fb 2382 drivers/gpu/drm/i915/display/intel_display.c return intel_compute_aligned_offset(dev_priv, x, y, fb, color_plane, fb 2388 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb, fb 2391 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_private *dev_priv = to_i915(fb->dev); fb 2394 drivers/gpu/drm/i915/display/intel_display.c if (fb->modifier != DRM_FORMAT_MOD_LINEAR && fb 2395 drivers/gpu/drm/i915/display/intel_display.c fb->offsets[color_plane] % intel_tile_size(dev_priv)) { fb 2397 drivers/gpu/drm/i915/display/intel_display.c fb->offsets[color_plane], color_plane); fb 2401 drivers/gpu/drm/i915/display/intel_display.c height = drm_framebuffer_plane_height(fb->height, fb, color_plane); fb 2402 drivers/gpu/drm/i915/display/intel_display.c height = ALIGN(height, intel_tile_height(fb, color_plane)); fb 2405 drivers/gpu/drm/i915/display/intel_display.c if (add_overflows_t(u32, mul_u32_u32(height, fb->pitches[color_plane]), fb 2406 drivers/gpu/drm/i915/display/intel_display.c fb->offsets[color_plane])) { fb 2408 drivers/gpu/drm/i915/display/intel_display.c fb->offsets[color_plane], fb->pitches[color_plane], fb 2417 drivers/gpu/drm/i915/display/intel_display.c fb, color_plane, DRM_MODE_ROTATE_0, fb 2418 drivers/gpu/drm/i915/display/intel_display.c fb->pitches[color_plane], fb 2419 drivers/gpu/drm/i915/display/intel_display.c fb->offsets[color_plane], 0); fb 2537 drivers/gpu/drm/i915/display/intel_display.c intel_fb_stride_alignment(const struct drm_framebuffer *fb, int color_plane) fb 2539 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_private *dev_priv = to_i915(fb->dev); fb 2541 drivers/gpu/drm/i915/display/intel_display.c if (fb->modifier == DRM_FORMAT_MOD_LINEAR) { fb 2543 drivers/gpu/drm/i915/display/intel_display.c fb->format->format, fb 2544 drivers/gpu/drm/i915/display/intel_display.c fb->modifier); fb 2550 drivers/gpu/drm/i915/display/intel_display.c if (fb->pitches[color_plane] > max_stride) fb 2555 drivers/gpu/drm/i915/display/intel_display.c return intel_tile_width_bytes(fb, color_plane); fb 2563 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 2583 drivers/gpu/drm/i915/display/intel_display.c if (is_ccs_modifier(fb->modifier)) fb 2587 drivers/gpu/drm/i915/display/intel_display.c if (fb->modifier == DRM_FORMAT_MOD_LINEAR) { fb 2590 drivers/gpu/drm/i915/display/intel_display.c for (i = 0; i < fb->format->num_planes; i++) { fb 2591 drivers/gpu/drm/i915/display/intel_display.c if (fb->pitches[i] & alignment) fb 2602 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 2620 drivers/gpu/drm/i915/display/intel_display.c stride = intel_fb_pitch(fb, 0, rotation); fb 2621 drivers/gpu/drm/i915/display/intel_display.c max_stride = plane->max_stride(plane, fb->format->format, fb 2622 drivers/gpu/drm/i915/display/intel_display.c fb->modifier, rotation); fb 2629 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb) fb 2631 drivers/gpu/drm/i915/display/intel_display.c struct intel_framebuffer *intel_fb = to_intel_framebuffer(fb); fb 2633 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_gem_object *obj = intel_fb_obj(fb); fb 2636 drivers/gpu/drm/i915/display/intel_display.c int i, num_planes = fb->format->num_planes; fb 2646 drivers/gpu/drm/i915/display/intel_display.c cpp = fb->format->cpp[i]; fb 2647 drivers/gpu/drm/i915/display/intel_display.c width = drm_framebuffer_plane_width(fb->width, fb, i); fb 2648 drivers/gpu/drm/i915/display/intel_display.c height = drm_framebuffer_plane_height(fb->height, fb, i); fb 2650 drivers/gpu/drm/i915/display/intel_display.c ret = intel_fb_offset_to_xy(&x, &y, fb, i); fb 2653 drivers/gpu/drm/i915/display/intel_display.c i, fb->offsets[i]); fb 2657 drivers/gpu/drm/i915/display/intel_display.c if (is_ccs_modifier(fb->modifier) && i == 1) { fb 2658 drivers/gpu/drm/i915/display/intel_display.c int hsub = fb->format->hsub; fb 2659 drivers/gpu/drm/i915/display/intel_display.c int vsub = fb->format->vsub; fb 2664 drivers/gpu/drm/i915/display/intel_display.c intel_tile_dims(fb, i, &tile_width, &tile_height); fb 2698 drivers/gpu/drm/i915/display/intel_display.c (x + width) * cpp > fb->pitches[i]) { fb 2700 drivers/gpu/drm/i915/display/intel_display.c i, fb->offsets[i]); fb 2711 drivers/gpu/drm/i915/display/intel_display.c offset = intel_compute_aligned_offset(dev_priv, &x, &y, fb, i, fb 2712 drivers/gpu/drm/i915/display/intel_display.c fb->pitches[i], fb 2717 drivers/gpu/drm/i915/display/intel_display.c if (!is_surface_linear(fb->modifier, i)) { fb 2722 drivers/gpu/drm/i915/display/intel_display.c intel_tile_dims(fb, i, &tile_width, &tile_height); fb 2725 drivers/gpu/drm/i915/display/intel_display.c rot_info->plane[i].stride = DIV_ROUND_UP(fb->pitches[i], tile_width * cpp); fb 2775 drivers/gpu/drm/i915/display/intel_display.c size = DIV_ROUND_UP((y + height) * fb->pitches[i] + fb 2797 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb = plane_state->base.fb; fb 2798 drivers/gpu/drm/i915/display/intel_display.c struct intel_framebuffer *intel_fb = to_intel_framebuffer(fb); fb 2801 drivers/gpu/drm/i915/display/intel_display.c int i, num_planes = fb->format->num_planes; fb 2816 drivers/gpu/drm/i915/display/intel_display.c WARN_ON(is_ccs_modifier(fb->modifier)); fb 2829 drivers/gpu/drm/i915/display/intel_display.c unsigned int hsub = i ? fb->format->hsub : 1; fb 2830 drivers/gpu/drm/i915/display/intel_display.c unsigned int vsub = i ? fb->format->vsub : 1; fb 2831 drivers/gpu/drm/i915/display/intel_display.c unsigned int cpp = fb->format->cpp[i]; fb 2838 drivers/gpu/drm/i915/display/intel_display.c intel_tile_dims(fb, i, &tile_width, &tile_height); fb 2853 drivers/gpu/drm/i915/display/intel_display.c fb, i, fb->pitches[i], fb 2858 drivers/gpu/drm/i915/display/intel_display.c info->plane[i].stride = DIV_ROUND_UP(fb->pitches[i], fb 2908 drivers/gpu/drm/i915/display/intel_display.c const struct intel_framebuffer *fb = fb 2909 drivers/gpu/drm/i915/display/intel_display.c to_intel_framebuffer(plane_state->base.fb); fb 2913 drivers/gpu/drm/i915/display/intel_display.c if (!fb) fb 2916 drivers/gpu/drm/i915/display/intel_display.c num_planes = fb->base.format->num_planes; fb 2930 drivers/gpu/drm/i915/display/intel_display.c intel_fill_fb_ggtt_view(&plane_state->view, &fb->base, rotation); fb 2933 drivers/gpu/drm/i915/display/intel_display.c plane_state->color_plane[i].stride = intel_fb_pitch(&fb->base, i, rotation); fb 2937 drivers/gpu/drm/i915/display/intel_display.c plane_state->color_plane[i].x = fb->rotated[i].x; fb 2938 drivers/gpu/drm/i915/display/intel_display.c plane_state->color_plane[i].y = fb->rotated[i].y; fb 2940 drivers/gpu/drm/i915/display/intel_display.c plane_state->color_plane[i].x = fb->normal[i].x; fb 2941 drivers/gpu/drm/i915/display/intel_display.c plane_state->color_plane[i].y = fb->normal[i].y; fb 2948 drivers/gpu/drm/i915/display/intel_display.c fb->base.width << 16, fb->base.height << 16, fb 3040 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb = &plane_config->fb->base; fb 3058 drivers/gpu/drm/i915/display/intel_display.c switch (fb->modifier) { fb 3065 drivers/gpu/drm/i915/display/intel_display.c fb->modifier); fb 3083 drivers/gpu/drm/i915/display/intel_display.c obj->tiling_and_stride = fb->pitches[0] | plane_config->tiling; fb 3090 drivers/gpu/drm/i915/display/intel_display.c mode_cmd.pixel_format = fb->format->format; fb 3091 drivers/gpu/drm/i915/display/intel_display.c mode_cmd.width = fb->width; fb 3092 drivers/gpu/drm/i915/display/intel_display.c mode_cmd.height = fb->height; fb 3093 drivers/gpu/drm/i915/display/intel_display.c mode_cmd.pitches[0] = fb->pitches[0]; fb 3094 drivers/gpu/drm/i915/display/intel_display.c mode_cmd.modifier[0] = fb->modifier; fb 3097 drivers/gpu/drm/i915/display/intel_display.c if (intel_framebuffer_init(to_intel_framebuffer(fb), obj, &mode_cmd)) { fb 3165 drivers/gpu/drm/i915/display/intel_display.c to_intel_frontbuffer(struct drm_framebuffer *fb) fb 3167 drivers/gpu/drm/i915/display/intel_display.c return fb ? to_intel_framebuffer(fb)->frontbuffer : NULL; fb 3182 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb; fb 3184 drivers/gpu/drm/i915/display/intel_display.c if (!plane_config->fb) fb 3188 drivers/gpu/drm/i915/display/intel_display.c fb = &plane_config->fb->base; fb 3192 drivers/gpu/drm/i915/display/intel_display.c kfree(plane_config->fb); fb 3212 drivers/gpu/drm/i915/display/intel_display.c fb = state->base.fb; fb 3213 drivers/gpu/drm/i915/display/intel_display.c drm_framebuffer_get(fb); fb 3231 drivers/gpu/drm/i915/display/intel_display.c intel_fill_fb_ggtt_view(&intel_state->view, fb, fb 3234 drivers/gpu/drm/i915/display/intel_display.c intel_fb_pitch(fb, 0, intel_state->base.rotation); fb 3238 drivers/gpu/drm/i915/display/intel_display.c intel_pin_and_fence_fb_obj(fb, fb 3248 drivers/gpu/drm/i915/display/intel_display.c drm_framebuffer_put(fb); fb 3252 drivers/gpu/drm/i915/display/intel_display.c intel_frontbuffer_flush(to_intel_frontbuffer(fb), ORIGIN_DIRTYFB); fb 3256 drivers/gpu/drm/i915/display/intel_display.c plane_state->src_w = fb->width << 16; fb 3257 drivers/gpu/drm/i915/display/intel_display.c plane_state->src_h = fb->height << 16; fb 3261 drivers/gpu/drm/i915/display/intel_display.c plane_state->crtc_w = fb->width; fb 3262 drivers/gpu/drm/i915/display/intel_display.c plane_state->crtc_h = fb->height; fb 3270 drivers/gpu/drm/i915/display/intel_display.c plane_state->fb = fb; fb 3274 drivers/gpu/drm/i915/display/intel_display.c &to_intel_frontbuffer(fb)->bits); fb 3277 drivers/gpu/drm/i915/display/intel_display.c static int skl_max_plane_width(const struct drm_framebuffer *fb, fb 3281 drivers/gpu/drm/i915/display/intel_display.c int cpp = fb->format->cpp[color_plane]; fb 3283 drivers/gpu/drm/i915/display/intel_display.c switch (fb->modifier) { fb 3310 drivers/gpu/drm/i915/display/intel_display.c MISSING_CASE(fb->modifier); fb 3315 drivers/gpu/drm/i915/display/intel_display.c static int glk_max_plane_width(const struct drm_framebuffer *fb, fb 3319 drivers/gpu/drm/i915/display/intel_display.c int cpp = fb->format->cpp[color_plane]; fb 3321 drivers/gpu/drm/i915/display/intel_display.c switch (fb->modifier) { fb 3338 drivers/gpu/drm/i915/display/intel_display.c MISSING_CASE(fb->modifier); fb 3343 drivers/gpu/drm/i915/display/intel_display.c static int icl_max_plane_width(const struct drm_framebuffer *fb, fb 3353 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 3354 drivers/gpu/drm/i915/display/intel_display.c int hsub = fb->format->hsub; fb 3355 drivers/gpu/drm/i915/display/intel_display.c int vsub = fb->format->vsub; fb 3359 drivers/gpu/drm/i915/display/intel_display.c u32 alignment = intel_surf_alignment(fb, 1); fb 3391 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 3402 drivers/gpu/drm/i915/display/intel_display.c max_width = icl_max_plane_width(fb, 0, rotation); fb 3404 drivers/gpu/drm/i915/display/intel_display.c max_width = glk_max_plane_width(fb, 0, rotation); fb 3406 drivers/gpu/drm/i915/display/intel_display.c max_width = skl_max_plane_width(fb, 0, rotation); fb 3416 drivers/gpu/drm/i915/display/intel_display.c alignment = intel_surf_alignment(fb, 0); fb 3433 drivers/gpu/drm/i915/display/intel_display.c if (fb->modifier == I915_FORMAT_MOD_X_TILED) { fb 3434 drivers/gpu/drm/i915/display/intel_display.c int cpp = fb->format->cpp[0]; fb 3451 drivers/gpu/drm/i915/display/intel_display.c if (is_ccs_modifier(fb->modifier)) { fb 3483 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 3485 drivers/gpu/drm/i915/display/intel_display.c int max_width = skl_max_plane_width(fb, 1, rotation); fb 3512 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 3515 drivers/gpu/drm/i915/display/intel_display.c int hsub = fb->format->hsub; fb 3516 drivers/gpu/drm/i915/display/intel_display.c int vsub = fb->format->vsub; fb 3533 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 3547 drivers/gpu/drm/i915/display/intel_display.c if (is_planar_yuv_format(fb->format->format)) { fb 3551 drivers/gpu/drm/i915/display/intel_display.c } else if (is_ccs_modifier(fb->modifier)) { fb 3618 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 3628 drivers/gpu/drm/i915/display/intel_display.c switch (fb->format->format) { fb 3651 drivers/gpu/drm/i915/display/intel_display.c MISSING_CASE(fb->format->format); fb 3656 drivers/gpu/drm/i915/display/intel_display.c fb->modifier == I915_FORMAT_MOD_X_TILED) fb 3939 drivers/gpu/drm/i915/display/intel_display.c static unsigned int skl_plane_stride_mult(const struct drm_framebuffer *fb, fb 3946 drivers/gpu/drm/i915/display/intel_display.c if (fb->modifier == DRM_FORMAT_MOD_LINEAR) fb 3949 drivers/gpu/drm/i915/display/intel_display.c return intel_tile_height(fb, color_plane); fb 3951 drivers/gpu/drm/i915/display/intel_display.c return intel_tile_width_bytes(fb, color_plane); fb 3957 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 3961 drivers/gpu/drm/i915/display/intel_display.c if (color_plane >= fb->format->num_planes) fb 3964 drivers/gpu/drm/i915/display/intel_display.c return stride / skl_plane_stride_mult(fb, color_plane, rotation); fb 4027 drivers/gpu/drm/i915/display/intel_display.c if (!plane_state->base.fb->format->has_alpha) fb 4045 drivers/gpu/drm/i915/display/intel_display.c if (!plane_state->base.fb->format->has_alpha) fb 4142 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 4160 drivers/gpu/drm/i915/display/intel_display.c plane_ctl |= skl_plane_ctl_format(fb->format->format); fb 4161 drivers/gpu/drm/i915/display/intel_display.c plane_ctl |= skl_plane_ctl_tiling(fb->modifier); fb 4198 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 4205 drivers/gpu/drm/i915/display/intel_display.c if (fb->format->is_yuv && !icl_is_hdr_plane(dev_priv, plane->id)) { fb 4213 drivers/gpu/drm/i915/display/intel_display.c } else if (fb->format->is_yuv) { fb 5535 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb = plane_state->base.fb; fb 5537 drivers/gpu/drm/i915/display/intel_display.c bool force_detach = !fb || !plane_state->base.visible; fb 5542 drivers/gpu/drm/i915/display/intel_display.c fb && is_planar_yuv_format(fb->format->format)) fb 5552 drivers/gpu/drm/i915/display/intel_display.c fb ? fb->format : NULL, need_scaler); fb 5566 drivers/gpu/drm/i915/display/intel_display.c switch (fb->format->format) { fb 5596 drivers/gpu/drm/i915/display/intel_display.c fb->base.id, fb->format->format); fb 8600 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb; fb 8614 drivers/gpu/drm/i915/display/intel_display.c fb = &intel_fb->base; fb 8616 drivers/gpu/drm/i915/display/intel_display.c fb->dev = dev; fb 8623 drivers/gpu/drm/i915/display/intel_display.c fb->modifier = I915_FORMAT_MOD_X_TILED; fb 8636 drivers/gpu/drm/i915/display/intel_display.c fb->format = drm_format_info(fourcc); fb 8653 drivers/gpu/drm/i915/display/intel_display.c fb->width = ((val >> 16) & 0xfff) + 1; fb 8654 drivers/gpu/drm/i915/display/intel_display.c fb->height = ((val >> 0) & 0xfff) + 1; fb 8657 drivers/gpu/drm/i915/display/intel_display.c fb->pitches[0] = val & 0xffffffc0; fb 8659 drivers/gpu/drm/i915/display/intel_display.c aligned_height = intel_fb_align_height(fb, 0, fb->height); fb 8661 drivers/gpu/drm/i915/display/intel_display.c plane_config->size = fb->pitches[0] * aligned_height; fb 8664 drivers/gpu/drm/i915/display/intel_display.c crtc->base.name, plane->base.name, fb->width, fb->height, fb 8665 drivers/gpu/drm/i915/display/intel_display.c fb->format->cpp[0] * 8, base, fb->pitches[0], fb 8668 drivers/gpu/drm/i915/display/intel_display.c plane_config->fb = intel_fb; fb 9803 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb; fb 9817 drivers/gpu/drm/i915/display/intel_display.c fb = &intel_fb->base; fb 9819 drivers/gpu/drm/i915/display/intel_display.c fb->dev = dev; fb 9837 drivers/gpu/drm/i915/display/intel_display.c fb->format = drm_format_info(fourcc); fb 9842 drivers/gpu/drm/i915/display/intel_display.c fb->modifier = DRM_FORMAT_MOD_LINEAR; fb 9846 drivers/gpu/drm/i915/display/intel_display.c fb->modifier = I915_FORMAT_MOD_X_TILED; fb 9851 drivers/gpu/drm/i915/display/intel_display.c fb->modifier = I915_FORMAT_MOD_Y_TILED_CCS; fb 9853 drivers/gpu/drm/i915/display/intel_display.c fb->modifier = I915_FORMAT_MOD_Y_TILED; fb 9857 drivers/gpu/drm/i915/display/intel_display.c fb->modifier = I915_FORMAT_MOD_Yf_TILED_CCS; fb 9859 drivers/gpu/drm/i915/display/intel_display.c fb->modifier = I915_FORMAT_MOD_Yf_TILED; fb 9895 drivers/gpu/drm/i915/display/intel_display.c fb->height = ((val >> 16) & 0xfff) + 1; fb 9896 drivers/gpu/drm/i915/display/intel_display.c fb->width = ((val >> 0) & 0x1fff) + 1; fb 9899 drivers/gpu/drm/i915/display/intel_display.c stride_mult = skl_plane_stride_mult(fb, 0, DRM_MODE_ROTATE_0); fb 9900 drivers/gpu/drm/i915/display/intel_display.c fb->pitches[0] = (val & 0x3ff) * stride_mult; fb 9902 drivers/gpu/drm/i915/display/intel_display.c aligned_height = intel_fb_align_height(fb, 0, fb->height); fb 9904 drivers/gpu/drm/i915/display/intel_display.c plane_config->size = fb->pitches[0] * aligned_height; fb 9907 drivers/gpu/drm/i915/display/intel_display.c crtc->base.name, plane->base.name, fb->width, fb->height, fb 9908 drivers/gpu/drm/i915/display/intel_display.c fb->format->cpp[0] * 8, base, fb->pitches[0], fb 9911 drivers/gpu/drm/i915/display/intel_display.c plane_config->fb = intel_fb; fb 10508 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 10509 drivers/gpu/drm/i915/display/intel_display.c const struct drm_i915_gem_object *obj = intel_fb_obj(fb); fb 10523 drivers/gpu/drm/i915/display/intel_display.c plane_state->base.crtc_w - 1) * fb->format->cpp[0]; fb 10593 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 10596 drivers/gpu/drm/i915/display/intel_display.c if (fb && fb->modifier != DRM_FORMAT_MOD_LINEAR) { fb 10663 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 10671 drivers/gpu/drm/i915/display/intel_display.c if (!fb) fb 10683 drivers/gpu/drm/i915/display/intel_display.c plane_state->color_plane[0].stride != fb->pitches[0]); fb 10685 drivers/gpu/drm/i915/display/intel_display.c switch (fb->pitches[0]) { fb 10693 drivers/gpu/drm/i915/display/intel_display.c fb->pitches[0]); fb 10878 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 10887 drivers/gpu/drm/i915/display/intel_display.c if (!fb) fb 10899 drivers/gpu/drm/i915/display/intel_display.c plane_state->color_plane[0].stride != fb->pitches[0]); fb 10901 drivers/gpu/drm/i915/display/intel_display.c if (fb->pitches[0] != plane_state->base.crtc_w * fb->format->cpp[0]) { fb 10903 drivers/gpu/drm/i915/display/intel_display.c fb->pitches[0], plane_state->base.crtc_w); fb 11477 drivers/gpu/drm/i915/display/intel_display.c if (!cur->base.fb || !new->base.fb) fb 11480 drivers/gpu/drm/i915/display/intel_display.c if (cur->base.fb->modifier != new->base.fb->modifier || fb 11513 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb = plane_state->base.fb; fb 11547 drivers/gpu/drm/i915/display/intel_display.c if (fb != old_plane_state->base.fb) fb 11556 drivers/gpu/drm/i915/display/intel_display.c fb ? fb->base.id : -1); fb 12047 drivers/gpu/drm/i915/display/intel_display.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 12050 drivers/gpu/drm/i915/display/intel_display.c if (!fb) { fb 12059 drivers/gpu/drm/i915/display/intel_display.c fb->base.id, fb->width, fb->height, fb 12060 drivers/gpu/drm/i915/display/intel_display.c drm_get_format_name(fb->format->format, &format_name), fb 14146 drivers/gpu/drm/i915/display/intel_display.c intel_frontbuffer_track(to_intel_frontbuffer(old_plane_state->base.fb), fb 14147 drivers/gpu/drm/i915/display/intel_display.c to_intel_frontbuffer(new_plane_state->base.fb), fb 14306 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb = plane_state->base.fb; fb 14311 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_gem_object *obj = intel_fb_obj(fb); fb 14320 drivers/gpu/drm/i915/display/intel_display.c vma = intel_pin_and_fence_fb_obj(fb, fb 14371 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb = new_state->fb; fb 14372 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_gem_object *obj = intel_fb_obj(fb); fb 14373 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_gem_object *old_obj = intel_fb_obj(plane->state->fb); fb 14687 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb, fb 14730 drivers/gpu/drm/i915/display/intel_display.c !old_plane_state->fb != !fb) fb 14743 drivers/gpu/drm/i915/display/intel_display.c drm_atomic_set_fb_for_plane(new_plane_state, fb); fb 14768 drivers/gpu/drm/i915/display/intel_display.c intel_frontbuffer_flush(to_intel_frontbuffer(fb), ORIGIN_FLIP); fb 14769 drivers/gpu/drm/i915/display/intel_display.c intel_frontbuffer_track(to_intel_frontbuffer(old_plane_state->fb), fb 14770 drivers/gpu/drm/i915/display/intel_display.c to_intel_frontbuffer(fb), fb 14808 drivers/gpu/drm/i915/display/intel_display.c return drm_atomic_helper_update_plane(plane, crtc, fb, fb 15548 drivers/gpu/drm/i915/display/intel_display.c static void intel_user_framebuffer_destroy(struct drm_framebuffer *fb) fb 15550 drivers/gpu/drm/i915/display/intel_display.c struct intel_framebuffer *intel_fb = to_intel_framebuffer(fb); fb 15552 drivers/gpu/drm/i915/display/intel_display.c drm_framebuffer_cleanup(fb); fb 15558 drivers/gpu/drm/i915/display/intel_display.c static int intel_user_framebuffer_create_handle(struct drm_framebuffer *fb, fb 15562 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_gem_object *obj = intel_fb_obj(fb); fb 15572 drivers/gpu/drm/i915/display/intel_display.c static int intel_user_framebuffer_dirty(struct drm_framebuffer *fb, fb 15578 drivers/gpu/drm/i915/display/intel_display.c struct drm_i915_gem_object *obj = intel_fb_obj(fb); fb 15581 drivers/gpu/drm/i915/display/intel_display.c intel_frontbuffer_flush(to_intel_frontbuffer(fb), ORIGIN_DIRTYFB); fb 15597 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb = &intel_fb->base; fb 15677 drivers/gpu/drm/i915/display/intel_display.c drm_helper_mode_fill_fb_struct(&dev_priv->drm, fb, mode_cmd); fb 15679 drivers/gpu/drm/i915/display/intel_display.c for (i = 0; i < fb->format->num_planes; i++) { fb 15687 drivers/gpu/drm/i915/display/intel_display.c stride_alignment = intel_fb_stride_alignment(fb, i); fb 15698 drivers/gpu/drm/i915/display/intel_display.c if (IS_GEN(dev_priv, 9) && i == 0 && fb->width > 3840 && fb 15699 drivers/gpu/drm/i915/display/intel_display.c is_ccs_modifier(fb->modifier)) fb 15702 drivers/gpu/drm/i915/display/intel_display.c if (fb->pitches[i] & (stride_alignment - 1)) { fb 15704 drivers/gpu/drm/i915/display/intel_display.c i, fb->pitches[i], stride_alignment); fb 15708 drivers/gpu/drm/i915/display/intel_display.c fb->obj[i] = &obj->base; fb 15711 drivers/gpu/drm/i915/display/intel_display.c ret = intel_fill_fb_info(dev_priv, fb); fb 15715 drivers/gpu/drm/i915/display/intel_display.c ret = drm_framebuffer_init(&dev_priv->drm, fb, &intel_fb_funcs); fb 15733 drivers/gpu/drm/i915/display/intel_display.c struct drm_framebuffer *fb; fb 15741 drivers/gpu/drm/i915/display/intel_display.c fb = intel_framebuffer_create(obj, &mode_cmd); fb 15744 drivers/gpu/drm/i915/display/intel_display.c return fb; fb 440 drivers/gpu/drm/i915/display/intel_display.h unsigned int intel_fb_align_height(const struct drm_framebuffer *fb, fb 474 drivers/gpu/drm/i915/display/intel_display.h intel_pin_and_fence_fb_obj(struct drm_framebuffer *fb, fb 103 drivers/gpu/drm/i915/display/intel_display_types.h struct intel_framebuffer *fb; fb 578 drivers/gpu/drm/i915/display/intel_display_types.h struct intel_framebuffer *fb; fb 97 drivers/gpu/drm/i915/display/intel_fbc.c return lines * cache->fb.stride; fb 129 drivers/gpu/drm/i915/display/intel_fbc.c if (params->fb.stride < cfb_pitch) fb 130 drivers/gpu/drm/i915/display/intel_fbc.c cfb_pitch = params->fb.stride; fb 174 drivers/gpu/drm/i915/display/intel_fbc.c if (params->fb.format->cpp[0] == 2) fb 221 drivers/gpu/drm/i915/display/intel_fbc.c if (params->fb.format->cpp[0] == 2) fb 304 drivers/gpu/drm/i915/display/intel_fbc.c if (params->fb.format->cpp[0] == 2) fb 500 drivers/gpu/drm/i915/display/intel_fbc.c fb_cpp = fbc->state_cache.fb.format->cpp[0]; fb 664 drivers/gpu/drm/i915/display/intel_fbc.c struct drm_framebuffer *fb = plane_state->base.fb; fb 691 drivers/gpu/drm/i915/display/intel_fbc.c cache->fb.format = fb->format; fb 692 drivers/gpu/drm/i915/display/intel_fbc.c cache->fb.stride = fb->pitches[0]; fb 752 drivers/gpu/drm/i915/display/intel_fbc.c if (!stride_is_valid(dev_priv, cache->fb.stride)) { fb 757 drivers/gpu/drm/i915/display/intel_fbc.c if (!pixel_format_is_valid(dev_priv, cache->fb.format->format)) { fb 763 drivers/gpu/drm/i915/display/intel_fbc.c cache->fb.format->has_alpha) { fb 846 drivers/gpu/drm/i915/display/intel_fbc.c params->fb.format = cache->fb.format; fb 847 drivers/gpu/drm/i915/display/intel_fbc.c params->fb.stride = cache->fb.stride; fb 52 drivers/gpu/drm/i915/display/intel_fbdev.c return ifbdev->fb->frontbuffer; fb 119 drivers/gpu/drm/i915/display/intel_fbdev.c struct drm_framebuffer *fb; fb 154 drivers/gpu/drm/i915/display/intel_fbdev.c fb = intel_framebuffer_create(obj, &mode_cmd); fb 156 drivers/gpu/drm/i915/display/intel_fbdev.c if (IS_ERR(fb)) fb 157 drivers/gpu/drm/i915/display/intel_fbdev.c return PTR_ERR(fb); fb 159 drivers/gpu/drm/i915/display/intel_fbdev.c ifbdev->fb = to_intel_framebuffer(fb); fb 168 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_framebuffer *intel_fb = ifbdev->fb; fb 192 drivers/gpu/drm/i915/display/intel_fbdev.c intel_fb = ifbdev->fb = NULL; fb 199 drivers/gpu/drm/i915/display/intel_fbdev.c intel_fb = ifbdev->fb; fb 214 drivers/gpu/drm/i915/display/intel_fbdev.c vma = intel_pin_and_fence_fb_obj(&ifbdev->fb->base, fb 230 drivers/gpu/drm/i915/display/intel_fbdev.c ifbdev->helper.fb = &ifbdev->fb->base; fb 264 drivers/gpu/drm/i915/display/intel_fbdev.c ifbdev->fb->base.width, ifbdev->fb->base.height, fb 301 drivers/gpu/drm/i915/display/intel_fbdev.c if (ifbdev->fb) fb 302 drivers/gpu/drm/i915/display/intel_fbdev.c drm_framebuffer_remove(&ifbdev->fb->base); fb 319 drivers/gpu/drm/i915/display/intel_fbdev.c struct intel_framebuffer *fb = NULL; fb 327 drivers/gpu/drm/i915/display/intel_fbdev.c intel_fb_obj(crtc->primary->state->fb); fb 339 drivers/gpu/drm/i915/display/intel_fbdev.c fb = to_intel_framebuffer(crtc->primary->state->fb); fb 344 drivers/gpu/drm/i915/display/intel_fbdev.c if (!fb) { fb 370 drivers/gpu/drm/i915/display/intel_fbdev.c cur_size = cur_size * fb->base.format->cpp[0]; fb 371 drivers/gpu/drm/i915/display/intel_fbdev.c if (fb->base.pitches[0] < cur_size) { fb 374 drivers/gpu/drm/i915/display/intel_fbdev.c cur_size, fb->base.pitches[0]); fb 375 drivers/gpu/drm/i915/display/intel_fbdev.c fb = NULL; fb 380 drivers/gpu/drm/i915/display/intel_fbdev.c cur_size = intel_fb_align_height(&fb->base, 0, cur_size); fb 381 drivers/gpu/drm/i915/display/intel_fbdev.c cur_size *= fb->base.pitches[0]; fb 386 drivers/gpu/drm/i915/display/intel_fbdev.c fb->base.format->cpp[0] * 8, fb 393 drivers/gpu/drm/i915/display/intel_fbdev.c fb = NULL; fb 402 drivers/gpu/drm/i915/display/intel_fbdev.c if (!fb) { fb 407 drivers/gpu/drm/i915/display/intel_fbdev.c ifbdev->preferred_bpp = fb->base.format->cpp[0] * 8; fb 408 drivers/gpu/drm/i915/display/intel_fbdev.c ifbdev->fb = fb; fb 410 drivers/gpu/drm/i915/display/intel_fbdev.c drm_framebuffer_get(&ifbdev->fb->base); fb 419 drivers/gpu/drm/i915/display/intel_fbdev.c WARN(!crtc->primary->state->fb, fb 593 drivers/gpu/drm/i915/display/intel_fbdev.c intel_fb_obj(&ifbdev->fb->base)->stolen) fb 673 drivers/gpu/drm/i915/display/intel_overlay.c format = state->base.fb->format->format; fb 256 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 272 drivers/gpu/drm/i915/display/intel_sprite.c max_stride = plane->max_stride(plane, fb->format->format, fb 273 drivers/gpu/drm/i915/display/intel_sprite.c fb->modifier, rotation); fb 277 drivers/gpu/drm/i915/display/intel_sprite.c fb->base.id, stride, fb 287 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 308 drivers/gpu/drm/i915/display/intel_sprite.c if (!fb->format->is_yuv) fb 313 drivers/gpu/drm/i915/display/intel_sprite.c hsub = fb->format->hsub; fb 314 drivers/gpu/drm/i915/display/intel_sprite.c vsub = fb->format->vsub; fb 316 drivers/gpu/drm/i915/display/intel_sprite.c hsub = vsub = max(fb->format->hsub, fb->format->vsub); fb 384 drivers/gpu/drm/i915/display/intel_sprite.c if (is_planar_yuv_format(plane_state->base.fb->format->format) && fb 558 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 618 drivers/gpu/drm/i915/display/intel_sprite.c if (fb->format->is_yuv && icl_is_hdr_plane(dev_priv, plane_id)) fb 735 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 764 drivers/gpu/drm/i915/display/intel_sprite.c if (!fb->format->is_yuv) fb 794 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 799 drivers/gpu/drm/i915/display/intel_sprite.c if (fb->format->is_yuv && fb 841 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 848 drivers/gpu/drm/i915/display/intel_sprite.c switch (fb->format->format) { fb 883 drivers/gpu/drm/i915/display/intel_sprite.c MISSING_CASE(fb->format->format); fb 890 drivers/gpu/drm/i915/display/intel_sprite.c if (fb->modifier == I915_FORMAT_MOD_X_TILED) fb 909 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 916 drivers/gpu/drm/i915/display/intel_sprite.c if (!fb->format->is_yuv) fb 1052 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1062 drivers/gpu/drm/i915/display/intel_sprite.c switch (fb->format->format) { fb 1082 drivers/gpu/drm/i915/display/intel_sprite.c MISSING_CASE(fb->format->format); fb 1094 drivers/gpu/drm/i915/display/intel_sprite.c if (fb->modifier == I915_FORMAT_MOD_X_TILED) fb 1286 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1296 drivers/gpu/drm/i915/display/intel_sprite.c switch (fb->format->format) { fb 1316 drivers/gpu/drm/i915/display/intel_sprite.c MISSING_CASE(fb->format->format); fb 1326 drivers/gpu/drm/i915/display/intel_sprite.c if (fb->modifier == I915_FORMAT_MOD_X_TILED) fb 1344 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1350 drivers/gpu/drm/i915/display/intel_sprite.c if (!fb->format->is_yuv) fb 1376 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1382 drivers/gpu/drm/i915/display/intel_sprite.c if (!fb->format->is_yuv) fb 1508 drivers/gpu/drm/i915/display/intel_sprite.c static bool intel_fb_scalable(const struct drm_framebuffer *fb) fb 1510 drivers/gpu/drm/i915/display/intel_sprite.c if (!fb) fb 1513 drivers/gpu/drm/i915/display/intel_sprite.c switch (fb->format->format) { fb 1525 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1532 drivers/gpu/drm/i915/display/intel_sprite.c unsigned int cpp = fb->format->cpp[0]; fb 1592 drivers/gpu/drm/i915/display/intel_sprite.c if (intel_fb_scalable(plane_state->base.fb)) { fb 1688 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1692 drivers/gpu/drm/i915/display/intel_sprite.c if (!fb) fb 1696 drivers/gpu/drm/i915/display/intel_sprite.c is_ccs_modifier(fb->modifier)) { fb 1703 drivers/gpu/drm/i915/display/intel_sprite.c fb->modifier == DRM_FORMAT_MOD_LINEAR) { fb 1709 drivers/gpu/drm/i915/display/intel_sprite.c if (fb->modifier != I915_FORMAT_MOD_Y_TILED && fb 1710 drivers/gpu/drm/i915/display/intel_sprite.c fb->modifier != I915_FORMAT_MOD_Yf_TILED) { fb 1719 drivers/gpu/drm/i915/display/intel_sprite.c switch (fb->format->format) { fb 1735 drivers/gpu/drm/i915/display/intel_sprite.c drm_get_format_name(fb->format->format, fb 1746 drivers/gpu/drm/i915/display/intel_sprite.c (fb->modifier == I915_FORMAT_MOD_Y_TILED || fb 1747 drivers/gpu/drm/i915/display/intel_sprite.c fb->modifier == I915_FORMAT_MOD_Yf_TILED || fb 1748 drivers/gpu/drm/i915/display/intel_sprite.c fb->modifier == I915_FORMAT_MOD_Y_TILED_CCS || fb 1749 drivers/gpu/drm/i915/display/intel_sprite.c fb->modifier == I915_FORMAT_MOD_Yf_TILED_CCS)) { fb 1789 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1794 drivers/gpu/drm/i915/display/intel_sprite.c if (is_planar_yuv_format(fb->format->format) && src_w & 3 && fb 1809 drivers/gpu/drm/i915/display/intel_sprite.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 1819 drivers/gpu/drm/i915/display/intel_sprite.c if (!plane_state->ckey.flags && intel_fb_scalable(fb)) { fb 1821 drivers/gpu/drm/i915/display/intel_sprite.c max_scale = skl_max_scale(crtc_state, fb->format->format); fb 1522 drivers/gpu/drm/i915/i915_debugfs.c if (dev_priv->fbdev && dev_priv->fbdev->helper.fb) { fb 1523 drivers/gpu/drm/i915/i915_debugfs.c fbdev_fb = to_intel_framebuffer(dev_priv->fbdev->helper.fb); fb 1539 drivers/gpu/drm/i915/i915_debugfs.c struct intel_framebuffer *fb = to_intel_framebuffer(drm_fb); fb 1540 drivers/gpu/drm/i915/i915_debugfs.c if (fb == fbdev_fb) fb 1544 drivers/gpu/drm/i915/i915_debugfs.c fb->base.width, fb 1545 drivers/gpu/drm/i915/i915_debugfs.c fb->base.height, fb 1546 drivers/gpu/drm/i915/i915_debugfs.c fb->base.format->depth, fb 1547 drivers/gpu/drm/i915/i915_debugfs.c fb->base.format->cpp[0] * 8, fb 1548 drivers/gpu/drm/i915/i915_debugfs.c fb->base.modifier, fb 1549 drivers/gpu/drm/i915/i915_debugfs.c drm_framebuffer_read_refcount(&fb->base)); fb 1550 drivers/gpu/drm/i915/i915_debugfs.c describe_obj(m, intel_fb_obj(&fb->base)); fb 2467 drivers/gpu/drm/i915/i915_debugfs.c struct drm_framebuffer *fb = plane_state->fb; fb 2469 drivers/gpu/drm/i915/i915_debugfs.c if (fb) fb 2471 drivers/gpu/drm/i915/i915_debugfs.c fb->base.id, plane_state->src_x >> 16, fb 2472 drivers/gpu/drm/i915/i915_debugfs.c plane_state->src_y >> 16, fb->width, fb->height); fb 2662 drivers/gpu/drm/i915/i915_debugfs.c if (state->fb) { fb 2663 drivers/gpu/drm/i915/i915_debugfs.c drm_get_format_name(state->fb->format->format, fb 408 drivers/gpu/drm/i915/i915_drv.h } fb; fb 431 drivers/gpu/drm/i915/i915_drv.h } fb; fb 841 drivers/gpu/drm/i915/intel_pm.c return plane_state->base.fb != NULL; fb 883 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = fb 884 drivers/gpu/drm/i915/intel_pm.c crtc->base.primary->state->fb; fb 885 drivers/gpu/drm/i915/intel_pm.c int cpp = fb->format->cpp[0]; fb 1128 drivers/gpu/drm/i915/intel_pm.c cpp = plane_state->base.fb->format->cpp[0]; fb 1636 drivers/gpu/drm/i915/intel_pm.c cpp = plane_state->base.fb->format->cpp[0]; fb 2223 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = fb 2224 drivers/gpu/drm/i915/intel_pm.c crtc->base.primary->state->fb; fb 2228 drivers/gpu/drm/i915/intel_pm.c int cpp = fb->format->cpp[0]; fb 2304 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = fb 2305 drivers/gpu/drm/i915/intel_pm.c crtc->base.primary->state->fb; fb 2311 drivers/gpu/drm/i915/intel_pm.c cpp = fb->format->cpp[0]; fb 2331 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = fb 2332 drivers/gpu/drm/i915/intel_pm.c crtc->base.primary->state->fb; fb 2338 drivers/gpu/drm/i915/intel_pm.c cpp = fb->format->cpp[0]; fb 2358 drivers/gpu/drm/i915/intel_pm.c obj = intel_fb_obj(enabled->base.primary->state->fb); fb 2379 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = fb 2380 drivers/gpu/drm/i915/intel_pm.c enabled->base.primary->state->fb; fb 2390 drivers/gpu/drm/i915/intel_pm.c cpp = fb->format->cpp[0]; fb 2518 drivers/gpu/drm/i915/intel_pm.c cpp = plane_state->base.fb->format->cpp[0]; fb 2550 drivers/gpu/drm/i915/intel_pm.c cpp = plane_state->base.fb->format->cpp[0]; fb 2576 drivers/gpu/drm/i915/intel_pm.c cpp = plane_state->base.fb->format->cpp[0]; fb 2593 drivers/gpu/drm/i915/intel_pm.c cpp = plane_state->base.fb->format->cpp[0]; fb 3806 drivers/gpu/drm/i915/intel_pm.c plane->base.state->fb->modifier == fb 4170 drivers/gpu/drm/i915/intel_pm.c if (WARN_ON(!plane_state->base.fb)) fb 4174 drivers/gpu/drm/i915/intel_pm.c bpp = plane_state->base.fb->format->cpp[0] * 8; fb 4209 drivers/gpu/drm/i915/intel_pm.c struct drm_framebuffer *fb; fb 4217 drivers/gpu/drm/i915/intel_pm.c fb = plane_state->base.fb; fb 4218 drivers/gpu/drm/i915/intel_pm.c format = fb->format->format; fb 4245 drivers/gpu/drm/i915/intel_pm.c rate *= fb->format->cpp[plane]; fb 4735 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 4750 drivers/gpu/drm/i915/intel_pm.c fb->format, fb->modifier, fb 5030 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 5042 drivers/gpu/drm/i915/intel_pm.c if (fb->format->is_yuv && fb->format->num_planes > 1) { fb 5063 drivers/gpu/drm/i915/intel_pm.c const struct drm_framebuffer *fb = plane_state->base.fb; fb 5067 drivers/gpu/drm/i915/intel_pm.c WARN_ON(!fb->format->is_yuv || fb 5068 drivers/gpu/drm/i915/intel_pm.c fb->format->num_planes == 1); fb 35 drivers/gpu/drm/imx/imx-drm.h struct drm_gem_cma_object *imx_drm_fb_get_obj(struct drm_framebuffer *fb); fb 95 drivers/gpu/drm/imx/ipuv3-plane.c struct drm_framebuffer *fb = state->fb; fb 100 drivers/gpu/drm/imx/ipuv3-plane.c cma_obj = drm_fb_cma_get_gem_obj(fb, plane); fb 103 drivers/gpu/drm/imx/ipuv3-plane.c return cma_obj->paddr + fb->offsets[plane] + fb->pitches[plane] * y + fb 104 drivers/gpu/drm/imx/ipuv3-plane.c fb->format->cpp[plane] * x; fb 110 drivers/gpu/drm/imx/ipuv3-plane.c struct drm_framebuffer *fb = state->fb; fb 116 drivers/gpu/drm/imx/ipuv3-plane.c cma_obj = drm_fb_cma_get_gem_obj(fb, 1); fb 119 drivers/gpu/drm/imx/ipuv3-plane.c x /= fb->format->hsub; fb 120 drivers/gpu/drm/imx/ipuv3-plane.c y /= fb->format->vsub; fb 122 drivers/gpu/drm/imx/ipuv3-plane.c return cma_obj->paddr + fb->offsets[1] + fb->pitches[1] * y + fb 123 drivers/gpu/drm/imx/ipuv3-plane.c fb->format->cpp[1] * x - eba; fb 129 drivers/gpu/drm/imx/ipuv3-plane.c struct drm_framebuffer *fb = state->fb; fb 135 drivers/gpu/drm/imx/ipuv3-plane.c cma_obj = drm_fb_cma_get_gem_obj(fb, 2); fb 138 drivers/gpu/drm/imx/ipuv3-plane.c x /= fb->format->hsub; fb 139 drivers/gpu/drm/imx/ipuv3-plane.c y /= fb->format->vsub; fb 141 drivers/gpu/drm/imx/ipuv3-plane.c return cma_obj->paddr + fb->offsets[2] + fb->pitches[2] * y + fb 142 drivers/gpu/drm/imx/ipuv3-plane.c fb->format->cpp[2] * x - eba; fb 205 drivers/gpu/drm/imx/ipuv3-plane.c switch (ipu_plane->base.state->fb->format->format) { fb 352 drivers/gpu/drm/imx/ipuv3-plane.c struct drm_framebuffer *fb = state->fb; fb 353 drivers/gpu/drm/imx/ipuv3-plane.c struct drm_framebuffer *old_fb = old_state->fb; fb 359 drivers/gpu/drm/imx/ipuv3-plane.c if (!fb) fb 407 drivers/gpu/drm/imx/ipuv3-plane.c fb->format != old_fb->format)) fb 415 drivers/gpu/drm/imx/ipuv3-plane.c if (fb->pitches[0] < 1 || fb->pitches[0] > 16384) fb 418 drivers/gpu/drm/imx/ipuv3-plane.c if (old_fb && fb->pitches[0] != old_fb->pitches[0]) fb 421 drivers/gpu/drm/imx/ipuv3-plane.c switch (fb->format->format) { fb 441 drivers/gpu/drm/imx/ipuv3-plane.c if (old_fb && (fb->format == old_fb->format)) { fb 447 drivers/gpu/drm/imx/ipuv3-plane.c if (fb->pitches[1] != fb->pitches[2]) fb 458 drivers/gpu/drm/imx/ipuv3-plane.c if (old_fb && (fb->format == old_fb->format)) { fb 464 drivers/gpu/drm/imx/ipuv3-plane.c if (fb->pitches[1] < 1 || fb->pitches[1] > 16384) fb 467 drivers/gpu/drm/imx/ipuv3-plane.c if (old_fb && old_fb->pitches[1] != fb->pitches[1]) fb 474 drivers/gpu/drm/imx/ipuv3-plane.c if (((state->src.x1 >> 16) & (fb->format->hsub - 1)) || fb 475 drivers/gpu/drm/imx/ipuv3-plane.c ((state->src.y1 >> 16) & (fb->format->vsub - 1))) fb 488 drivers/gpu/drm/imx/ipuv3-plane.c if (fb->pitches[1] < 1 || fb->pitches[1] > 16384) fb 491 drivers/gpu/drm/imx/ipuv3-plane.c if (old_fb && old_fb->pitches[1] != fb->pitches[1]) fb 551 drivers/gpu/drm/imx/ipuv3-plane.c struct drm_framebuffer *fb = state->fb; fb 569 drivers/gpu/drm/imx/ipuv3-plane.c !fb->format->has_alpha, 0xff, fb 578 drivers/gpu/drm/imx/ipuv3-plane.c !fb->format->has_alpha, 0xff, fb 595 drivers/gpu/drm/imx/ipuv3-plane.c fb->pitches[0], fb->format->format, fb 596 drivers/gpu/drm/imx/ipuv3-plane.c fb->modifier, &eba); fb 599 drivers/gpu/drm/imx/ipuv3-plane.c if (old_state->fb && !drm_atomic_crtc_needs_modeset(crtc_state)) { fb 615 drivers/gpu/drm/imx/ipuv3-plane.c ics = ipu_drm_fourcc_to_colorspace(fb->format->format); fb 630 drivers/gpu/drm/imx/ipuv3-plane.c info = drm_format_info(fb->format->format); fb 631 drivers/gpu/drm/imx/ipuv3-plane.c ipu_calculate_bursts(width, info->cpp[0], fb->pitches[0], fb 636 drivers/gpu/drm/imx/ipuv3-plane.c ipu_cpmem_set_fmt(ipu_plane->ipu_ch, fb->format->format); fb 641 drivers/gpu/drm/imx/ipuv3-plane.c ipu_cpmem_set_stride(ipu_plane->ipu_ch, fb->pitches[0]); fb 644 drivers/gpu/drm/imx/ipuv3-plane.c switch (fb->format->format) { fb 653 drivers/gpu/drm/imx/ipuv3-plane.c if (fb->format->format == DRM_FORMAT_YVU420 || fb 654 drivers/gpu/drm/imx/ipuv3-plane.c fb->format->format == DRM_FORMAT_YVU422 || fb 655 drivers/gpu/drm/imx/ipuv3-plane.c fb->format->format == DRM_FORMAT_YVU444) fb 659 drivers/gpu/drm/imx/ipuv3-plane.c fb->pitches[1], ubo, vbo); fb 670 drivers/gpu/drm/imx/ipuv3-plane.c fb->pitches[1], ubo, ubo); fb 697 drivers/gpu/drm/imx/ipuv3-plane.c ipu_cpmem_set_stride(ipu_plane->alpha_ch, fb->pitches[1]); fb 773 drivers/gpu/drm/imx/ipuv3-plane.c if (!plane_state->fb) { fb 778 drivers/gpu/drm/imx/ipuv3-plane.c if (!(plane_state->fb->flags & DRM_MODE_FB_MODIFIERS) || fb 779 drivers/gpu/drm/imx/ipuv3-plane.c plane_state->fb->modifier == DRM_FORMAT_MOD_LINEAR) fb 786 drivers/gpu/drm/imx/ipuv3-plane.c plane_state->fb->format->format, fb 787 drivers/gpu/drm/imx/ipuv3-plane.c plane_state->fb->modifier)) fb 798 drivers/gpu/drm/imx/ipuv3-plane.c if (!plane_state->fb) { fb 803 drivers/gpu/drm/imx/ipuv3-plane.c if ((plane_state->fb->flags & DRM_MODE_FB_MODIFIERS) && fb 804 drivers/gpu/drm/imx/ipuv3-plane.c plane_state->fb->modifier != DRM_FORMAT_MOD_LINEAR) fb 808 drivers/gpu/drm/imx/ipuv3-plane.c plane_state->fb->modifier = DRM_FORMAT_MOD_LINEAR; fb 812 drivers/gpu/drm/imx/ipuv3-plane.c plane_state->fb->format->format, fb 813 drivers/gpu/drm/imx/ipuv3-plane.c plane_state->fb->modifier)) { fb 39 drivers/gpu/drm/imx/ipuv3-plane.h struct drm_framebuffer *fb, int crtc_x, int crtc_y, fb 342 drivers/gpu/drm/ingenic/ingenic-drm.c struct drm_framebuffer *drm_fb = crtc->primary->state->fb; fb 376 drivers/gpu/drm/ingenic/ingenic-drm.c if (state && state->fb) { fb 377 drivers/gpu/drm/ingenic/ingenic-drm.c addr = drm_fb_cma_get_gem_addr(state->fb, state, 0); fb 380 drivers/gpu/drm/ingenic/ingenic-drm.c cpp = state->fb->format->cpp[plane->index]; fb 155 drivers/gpu/drm/mcde/mcde_display.c struct drm_framebuffer *old_fb = pipe->plane.state->fb; fb 156 drivers/gpu/drm/mcde/mcde_display.c struct drm_framebuffer *fb = pstate->fb; fb 158 drivers/gpu/drm/mcde/mcde_display.c if (fb) { fb 159 drivers/gpu/drm/mcde/mcde_display.c u32 offset = drm_fb_cma_get_gem_addr(fb, pstate, 0); fb 171 drivers/gpu/drm/mcde/mcde_display.c if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) { fb 180 drivers/gpu/drm/mcde/mcde_display.c if (old_fb && old_fb->format != fb->format) fb 821 drivers/gpu/drm/mcde/mcde_display.c struct drm_framebuffer *fb = plane->state->fb; fb 822 drivers/gpu/drm/mcde/mcde_display.c u32 format = fb->format->format; fb 826 drivers/gpu/drm/mcde/mcde_display.c int cpp = fb->format->cpp[0]; fb 1015 drivers/gpu/drm/mcde/mcde_display.c struct drm_framebuffer *fb = pstate->fb; fb 1049 drivers/gpu/drm/mcde/mcde_display.c if (fb) { fb 1050 drivers/gpu/drm/mcde/mcde_display.c mcde_set_extsrc(mcde, drm_fb_cma_get_gem_addr(fb, pstate, 0)); fb 29 drivers/gpu/drm/mediatek/mtk_drm_fb.c struct drm_framebuffer *fb; fb 35 drivers/gpu/drm/mediatek/mtk_drm_fb.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 36 drivers/gpu/drm/mediatek/mtk_drm_fb.c if (!fb) fb 39 drivers/gpu/drm/mediatek/mtk_drm_fb.c drm_helper_mode_fill_fb_struct(dev, fb, mode); fb 41 drivers/gpu/drm/mediatek/mtk_drm_fb.c fb->obj[0] = obj; fb 43 drivers/gpu/drm/mediatek/mtk_drm_fb.c ret = drm_framebuffer_init(dev, fb, &mtk_drm_fb_funcs); fb 46 drivers/gpu/drm/mediatek/mtk_drm_fb.c kfree(fb); fb 50 drivers/gpu/drm/mediatek/mtk_drm_fb.c return fb; fb 58 drivers/gpu/drm/mediatek/mtk_drm_fb.c struct drm_framebuffer *fb; fb 81 drivers/gpu/drm/mediatek/mtk_drm_fb.c fb = mtk_drm_framebuffer_init(dev, cmd, gem); fb 82 drivers/gpu/drm/mediatek/mtk_drm_fb.c if (IS_ERR(fb)) { fb 83 drivers/gpu/drm/mediatek/mtk_drm_fb.c ret = PTR_ERR(fb); fb 87 drivers/gpu/drm/mediatek/mtk_drm_fb.c return fb; fb 85 drivers/gpu/drm/mediatek/mtk_drm_plane.c struct drm_framebuffer *fb = state->fb; fb 88 drivers/gpu/drm/mediatek/mtk_drm_plane.c if (!fb) fb 109 drivers/gpu/drm/mediatek/mtk_drm_plane.c struct drm_framebuffer *fb = plane->state->fb; fb 115 drivers/gpu/drm/mediatek/mtk_drm_plane.c if (!crtc || WARN_ON(!fb)) fb 118 drivers/gpu/drm/mediatek/mtk_drm_plane.c gem = fb->obj[0]; fb 121 drivers/gpu/drm/mediatek/mtk_drm_plane.c pitch = fb->pitches[0]; fb 122 drivers/gpu/drm/mediatek/mtk_drm_plane.c format = fb->format->format; fb 124 drivers/gpu/drm/mediatek/mtk_drm_plane.c addr += (plane->state->src.x1 >> 16) * fb->format->cpp[0]; fb 341 drivers/gpu/drm/meson/meson_overlay.c struct drm_framebuffer *fb = state->fb; fb 373 drivers/gpu/drm/meson/meson_overlay.c switch (fb->format->format) { fb 395 drivers/gpu/drm/meson/meson_overlay.c if (fb->format->format == DRM_FORMAT_NV12) fb 416 drivers/gpu/drm/meson/meson_overlay.c switch (fb->format->format) { fb 458 drivers/gpu/drm/meson/meson_overlay.c priv->viu.vd1_planes = fb->format->num_planes; fb 462 drivers/gpu/drm/meson/meson_overlay.c gem = drm_fb_cma_get_gem_obj(fb, 2); fb 463 drivers/gpu/drm/meson/meson_overlay.c priv->viu.vd1_addr2 = gem->paddr + fb->offsets[2]; fb 464 drivers/gpu/drm/meson/meson_overlay.c priv->viu.vd1_stride2 = fb->pitches[2]; fb 466 drivers/gpu/drm/meson/meson_overlay.c drm_format_info_plane_height(fb->format, fb 467 drivers/gpu/drm/meson/meson_overlay.c fb->height, 2); fb 474 drivers/gpu/drm/meson/meson_overlay.c gem = drm_fb_cma_get_gem_obj(fb, 1); fb 475 drivers/gpu/drm/meson/meson_overlay.c priv->viu.vd1_addr1 = gem->paddr + fb->offsets[1]; fb 476 drivers/gpu/drm/meson/meson_overlay.c priv->viu.vd1_stride1 = fb->pitches[1]; fb 478 drivers/gpu/drm/meson/meson_overlay.c drm_format_info_plane_height(fb->format, fb 479 drivers/gpu/drm/meson/meson_overlay.c fb->height, 1); fb 486 drivers/gpu/drm/meson/meson_overlay.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 487 drivers/gpu/drm/meson/meson_overlay.c priv->viu.vd1_addr0 = gem->paddr + fb->offsets[0]; fb 488 drivers/gpu/drm/meson/meson_overlay.c priv->viu.vd1_stride0 = fb->pitches[0]; fb 490 drivers/gpu/drm/meson/meson_overlay.c drm_format_info_plane_height(fb->format, fb 491 drivers/gpu/drm/meson/meson_overlay.c fb->height, 0); fb 108 drivers/gpu/drm/meson/meson_plane.c struct drm_framebuffer *fb = state->fb; fb 144 drivers/gpu/drm/meson/meson_plane.c switch (fb->format->format) { fb 303 drivers/gpu/drm/meson/meson_plane.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 306 drivers/gpu/drm/meson/meson_plane.c priv->viu.osd1_stride = fb->pitches[0]; fb 307 drivers/gpu/drm/meson/meson_plane.c priv->viu.osd1_height = fb->height; fb 31 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_framebuffer *fb = crtc->primary->fb; fb 44 drivers/gpu/drm/mgag200/mgag200_mode.c if (fb && fb->format->cpp[0] * 8 == 16) { fb 45 drivers/gpu/drm/mgag200/mgag200_mode.c int inc = (fb->format->depth == 15) ? 8 : 4; fb 48 drivers/gpu/drm/mgag200/mgag200_mode.c if (fb->format->depth == 16) { fb 860 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_framebuffer *fb, fb 867 drivers/gpu/drm/mgag200/mgag200_mode.c if (!atomic && fb) { fb 868 drivers/gpu/drm/mgag200/mgag200_mode.c gbo = drm_gem_vram_of_gem(fb->obj[0]); fb 872 drivers/gpu/drm/mgag200/mgag200_mode.c gbo = drm_gem_vram_of_gem(crtc->primary->fb->obj[0]); fb 905 drivers/gpu/drm/mgag200/mgag200_mode.c const struct drm_framebuffer *fb = crtc->primary->fb; fb 928 drivers/gpu/drm/mgag200/mgag200_mode.c bppshift = mdev->bpp_shifts[fb->format->cpp[0] - 1]; fb 968 drivers/gpu/drm/mgag200/mgag200_mode.c switch (fb->format->cpp[0] * 8) { fb 973 drivers/gpu/drm/mgag200/mgag200_mode.c if (fb->format->depth == 15) fb 1025 drivers/gpu/drm/mgag200/mgag200_mode.c pitch = fb->pitches[0] / fb->format->cpp[0]; fb 1026 drivers/gpu/drm/mgag200/mgag200_mode.c if (fb->format->cpp[0] * 8 == 24) fb 1103 drivers/gpu/drm/mgag200/mgag200_mode.c if (fb->format->cpp[0] * 8 == 24) fb 1169 drivers/gpu/drm/mgag200/mgag200_mode.c if (fb->format->cpp[0] * 8 > 16) fb 1171 drivers/gpu/drm/mgag200/mgag200_mode.c else if (fb->format->cpp[0] * 8 > 8) fb 1405 drivers/gpu/drm/mgag200/mgag200_mode.c if (crtc->primary->fb) { fb 1406 drivers/gpu/drm/mgag200/mgag200_mode.c struct drm_framebuffer *fb = crtc->primary->fb; fb 1408 drivers/gpu/drm/mgag200/mgag200_mode.c drm_gem_vram_of_gem(fb->obj[0]); fb 1411 drivers/gpu/drm/mgag200/mgag200_mode.c crtc->primary->fb = NULL; fb 119 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_framebuffer *fb; fb 138 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fb = state->fb; fb 147 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c state->fb ? state->fb->base.id : -1); fb 149 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c format = to_dpu_format(msm_framebuffer_format(pstate->base.fb)); fb 164 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fb ? fb->modifier : 0); fb 1085 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c struct drm_framebuffer *fb; fb 1129 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c if (plane->state->fb) { fb 1130 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fb = plane->state->fb; fb 1133 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fb->base.id, (char *) &fb->format->format, fb 1134 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fb->width, fb->height); fb 1135 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c for (i = 0; i < ARRAY_SIZE(fb->format->cpp); ++i) fb 1137 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c i, fb->format->cpp[i]); fb 1140 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c seq_printf(s, "modifier:%8llu ", fb->modifier); fb 1144 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c for (i = 0; i < ARRAY_SIZE(fb->pitches); i++) fb 1146 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fb->pitches[i]); fb 1150 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c for (i = 0; i < ARRAY_SIZE(fb->offsets); i++) fb 1152 drivers/gpu/drm/msm/disp/dpu1/dpu_crtc.c fb->offsets[i]); fb 756 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c struct drm_framebuffer *fb, fb 762 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c if (!fb || !layout) { fb 768 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c base_addr = msm_framebuffer_iova(fb, aspace, 0); fb 847 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c struct drm_framebuffer *fb, fb 854 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c if (layout->plane_pitch[i] > fb->pitches[i]) { fb 856 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c i, layout->plane_pitch[i], fb->pitches[i]); fb 865 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c msm_framebuffer_iova(fb, aspace, i); fb 877 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c struct drm_framebuffer *fb, fb 883 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c if (!fb || !layout) { fb 888 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c if ((fb->width > DPU_MAX_IMG_WIDTH) || fb 889 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c (fb->height > DPU_MAX_IMG_HEIGHT)) { fb 894 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c layout->format = to_dpu_format(msm_framebuffer_format(fb)); fb 897 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c ret = dpu_format_get_plane_sizes(layout->format, fb->width, fb->height, fb 898 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c layout, fb->pitches); fb 908 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c ret = _dpu_format_populate_addrs_ubwc(aspace, fb, layout); fb 910 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.c ret = _dpu_format_populate_addrs_linear(aspace, fb, layout); fb 63 drivers/gpu/drm/msm/disp/dpu1/dpu_formats.h struct drm_framebuffer *fb, fb 223 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c struct drm_framebuffer *fb) fb 234 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c fb->format->format, fb 235 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c fb->modifier); fb 269 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c struct drm_framebuffer *fb) fb 282 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c fb->format->format, fb 283 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c fb->modifier); fb 419 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c struct drm_framebuffer *fb) fb 426 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c ret = dpu_format_populate_layout(aspace, fb, &pipe_cfg->layout); fb 650 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c msm_fmt = msm_framebuffer_format(drm_state[i]->fb); fb 765 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c struct drm_framebuffer *fb = new_state->fb; fb 772 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c if (!new_state->fb) fb 775 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c DPU_DEBUG_PLANE(pdpu, "FB[%u]\n", fb->base.id); fb 788 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c ret = msm_framebuffer_prepare(new_state->fb, fb 798 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c new_state->fb, &layout); fb 813 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c if (!old_state || !old_state->fb) fb 818 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c DPU_DEBUG_PLANE(pdpu, "FB[%u]\n", old_state->fb->base.id); fb 820 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c msm_framebuffer_cleanup(old_state->fb, old_pstate->aspace); fb 874 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c fb_rect.x2 = state->fb->width; fb 875 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c fb_rect.y2 = state->fb->height; fb 879 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c fmt = to_dpu_format(msm_framebuffer_format(state->fb)); fb 975 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c struct drm_framebuffer *fb = state->fb; fb 977 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c to_dpu_format(msm_framebuffer_format(fb)); fb 981 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c _dpu_plane_set_scanout(plane, pstate, &pdpu->pipe_cfg, fb); fb 989 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c ", %4.4s ubwc %d\n", fb->base.id, DRM_RECT_FP_ARG(&state->src), fb 1083 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c _dpu_plane_set_qos_lut(plane, fb); fb 1084 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c _dpu_plane_set_danger_lut(plane, fb); fb 1265 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c if (plane->fb && plane->state) { fb 1268 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c plane->base.id, plane->fb->width, fb 1269 drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c plane->fb->height); fb 666 drivers/gpu/drm/msm/disp/dpu1/dpu_trace.h __entry->fb_id = state ? state->fb->base.id : 0; fb 194 drivers/gpu/drm/msm/disp/mdp4/mdp4_crtc.c to_mdp_format(msm_framebuffer_format(plane->state->fb)); fb 31 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c enum mdp4_frame_format mdp4_get_frame_format(struct drm_framebuffer *fb) fb 35 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c if (fb->modifier == DRM_FORMAT_MOD_SAMSUNG_64_32_TILE) fb 38 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c if (fb->format->format == DRM_FORMAT_NV12 && is_tile) fb 45 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c struct drm_framebuffer *fb); fb 47 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c struct drm_crtc *crtc, struct drm_framebuffer *fb, fb 98 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c struct drm_framebuffer *fb = old_state->fb; fb 100 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c if (!fb) fb 103 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c DBG("%s: cleanup: FB[%u]", mdp4_plane->name, fb->base.id); fb 104 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c msm_framebuffer_cleanup(fb, kms->aspace); fb 121 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c state->crtc, state->fb, fb 138 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c struct drm_framebuffer *fb) fb 146 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c MDP4_PIPE_SRC_STRIDE_A_P0(fb->pitches[0]) | fb 147 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c MDP4_PIPE_SRC_STRIDE_A_P1(fb->pitches[1])); fb 150 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c MDP4_PIPE_SRC_STRIDE_B_P2(fb->pitches[2]) | fb 151 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c MDP4_PIPE_SRC_STRIDE_B_P3(fb->pitches[3])); fb 154 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c msm_framebuffer_iova(fb, kms->aspace, 0)); fb 156 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c msm_framebuffer_iova(fb, kms->aspace, 1)); fb 158 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c msm_framebuffer_iova(fb, kms->aspace, 2)); fb 160 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c msm_framebuffer_iova(fb, kms->aspace, 3)); fb 193 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c struct drm_crtc *crtc, struct drm_framebuffer *fb, fb 209 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c if (!(crtc && fb)) { fb 214 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c frame_type = mdp4_get_frame_format(fb); fb 223 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c fb->base.id, src_x, src_y, src_w, src_h, fb 226 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c format = to_mdp_format(msm_framebuffer_format(fb)); fb 297 drivers/gpu/drm/msm/disp/mdp4/mdp4_plane.c mdp4_plane_set_scanout(plane, fb); fb 279 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c format = to_mdp_format(msm_framebuffer_format(pstates[STAGE_BASE]->base.fb)); fb 291 drivers/gpu/drm/msm/disp/mdp5/mdp5_crtc.c msm_framebuffer_format(pstates[i]->base.fb)); fb 23 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c struct drm_crtc *crtc, struct drm_framebuffer *fb, fb 178 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c if (plane->state && plane->state->fb) fb 179 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c drm_framebuffer_put(plane->state->fb); fb 221 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c if (state->fb) fb 222 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c drm_framebuffer_put(state->fb); fb 244 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c struct drm_framebuffer *fb = old_state->fb; fb 246 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c if (!fb) fb 249 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c DBG("%s: cleanup: FB[%u]", plane->name, fb->base.id); fb 250 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c msm_framebuffer_cleanup(fb, kms->aspace); fb 313 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c format = to_mdp_format(msm_framebuffer_format(state->fb)); fb 350 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c to_mdp_format(msm_framebuffer_format(state->fb)); fb 433 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c state->crtc, state->fb, fb 468 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c !plane->state->fb || fb 469 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c plane->state->fb != state->fb) fb 497 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c struct drm_framebuffer *old_fb = plane->state->fb; fb 510 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c ret = mdp5_plane_mode_set(plane, new_state->crtc, new_state->fb, fb 522 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c new_state->fb = old_fb; fb 536 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c struct drm_framebuffer *fb) fb 541 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c MDP5_PIPE_SRC_STRIDE_A_P0(fb->pitches[0]) | fb 542 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c MDP5_PIPE_SRC_STRIDE_A_P1(fb->pitches[1])); fb 545 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c MDP5_PIPE_SRC_STRIDE_B_P2(fb->pitches[2]) | fb 546 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c MDP5_PIPE_SRC_STRIDE_B_P3(fb->pitches[3])); fb 549 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c msm_framebuffer_iova(fb, kms->aspace, 0)); fb 551 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c msm_framebuffer_iova(fb, kms->aspace, 1)); fb 553 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c msm_framebuffer_iova(fb, kms->aspace, 2)); fb 555 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c msm_framebuffer_iova(fb, kms->aspace, 3)); fb 818 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c struct drm_framebuffer *fb, fb 832 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c to_mdp_format(msm_framebuffer_format(fb)); fb 910 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c set_scanout_locked(mdp5_kms, pipe, fb); fb 914 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c struct drm_crtc *crtc, struct drm_framebuffer *fb, fb 937 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c nplanes = fb->format->num_planes; fb 943 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c format = to_mdp_format(msm_framebuffer_format(fb)); fb 962 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c src_img_w = min(fb->width, src_w); fb 963 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c src_img_h = min(fb->height, src_h); fb 966 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c fb->base.id, src_x, src_y, src_w, src_h, fb 1010 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c mdp5_hwpipe_mode_set(mdp5_kms, hwpipe, fb, &step, &pe, fb 1016 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c mdp5_hwpipe_mode_set(mdp5_kms, right_hwpipe, fb, &step, &pe, fb 22 drivers/gpu/drm/msm/msm_atomic.c if (!new_state->fb) fb 27 drivers/gpu/drm/msm/msm_atomic.c return msm_framebuffer_prepare(new_state->fb, kms->aspace); fb 139 drivers/gpu/drm/msm/msm_debugfs.c struct drm_framebuffer *fb, *fbdev_fb = NULL; fb 143 drivers/gpu/drm/msm/msm_debugfs.c fbdev_fb = priv->fbdev->fb; fb 148 drivers/gpu/drm/msm/msm_debugfs.c list_for_each_entry(fb, &dev->mode_config.fb_list, head) { fb 149 drivers/gpu/drm/msm/msm_debugfs.c if (fb == fbdev_fb) fb 153 drivers/gpu/drm/msm/msm_debugfs.c msm_framebuffer_describe(fb, m); fb 329 drivers/gpu/drm/msm/msm_drv.h int msm_framebuffer_prepare(struct drm_framebuffer *fb, fb 331 drivers/gpu/drm/msm/msm_drv.h void msm_framebuffer_cleanup(struct drm_framebuffer *fb, fb 333 drivers/gpu/drm/msm/msm_drv.h uint32_t msm_framebuffer_iova(struct drm_framebuffer *fb, fb 335 drivers/gpu/drm/msm/msm_drv.h struct drm_gem_object *msm_framebuffer_bo(struct drm_framebuffer *fb, int plane); fb 336 drivers/gpu/drm/msm/msm_drv.h const struct msm_format *msm_framebuffer_format(struct drm_framebuffer *fb); fb 386 drivers/gpu/drm/msm/msm_drv.h void msm_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m); fb 34 drivers/gpu/drm/msm/msm_fb.c void msm_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m) fb 36 drivers/gpu/drm/msm/msm_fb.c int i, n = fb->format->num_planes; fb 39 drivers/gpu/drm/msm/msm_fb.c fb->width, fb->height, (char *)&fb->format->format, fb 40 drivers/gpu/drm/msm/msm_fb.c drm_framebuffer_read_refcount(fb), fb->base.id); fb 44 drivers/gpu/drm/msm/msm_fb.c i, fb->offsets[i], fb->pitches[i]); fb 45 drivers/gpu/drm/msm/msm_fb.c msm_gem_describe(fb->obj[i], m); fb 55 drivers/gpu/drm/msm/msm_fb.c int msm_framebuffer_prepare(struct drm_framebuffer *fb, fb 58 drivers/gpu/drm/msm/msm_fb.c int ret, i, n = fb->format->num_planes; fb 62 drivers/gpu/drm/msm/msm_fb.c ret = msm_gem_get_and_pin_iova(fb->obj[i], aspace, &iova); fb 63 drivers/gpu/drm/msm/msm_fb.c DBG("FB[%u]: iova[%d]: %08llx (%d)", fb->base.id, i, iova, ret); fb 71 drivers/gpu/drm/msm/msm_fb.c void msm_framebuffer_cleanup(struct drm_framebuffer *fb, fb 74 drivers/gpu/drm/msm/msm_fb.c int i, n = fb->format->num_planes; fb 77 drivers/gpu/drm/msm/msm_fb.c msm_gem_unpin_iova(fb->obj[i], aspace); fb 80 drivers/gpu/drm/msm/msm_fb.c uint32_t msm_framebuffer_iova(struct drm_framebuffer *fb, fb 83 drivers/gpu/drm/msm/msm_fb.c if (!fb->obj[plane]) fb 85 drivers/gpu/drm/msm/msm_fb.c return msm_gem_iova(fb->obj[plane], aspace) + fb->offsets[plane]; fb 88 drivers/gpu/drm/msm/msm_fb.c struct drm_gem_object *msm_framebuffer_bo(struct drm_framebuffer *fb, int plane) fb 90 drivers/gpu/drm/msm/msm_fb.c return drm_gem_fb_get_obj(fb, plane); fb 93 drivers/gpu/drm/msm/msm_fb.c const struct msm_format *msm_framebuffer_format(struct drm_framebuffer *fb) fb 95 drivers/gpu/drm/msm/msm_fb.c struct msm_framebuffer *msm_fb = to_msm_framebuffer(fb); fb 105 drivers/gpu/drm/msm/msm_fb.c struct drm_framebuffer *fb; fb 116 drivers/gpu/drm/msm/msm_fb.c fb = msm_framebuffer_init(dev, mode_cmd, bos); fb 117 drivers/gpu/drm/msm/msm_fb.c if (IS_ERR(fb)) { fb 118 drivers/gpu/drm/msm/msm_fb.c ret = PTR_ERR(fb); fb 122 drivers/gpu/drm/msm/msm_fb.c return fb; fb 138 drivers/gpu/drm/msm/msm_fb.c struct drm_framebuffer *fb; fb 162 drivers/gpu/drm/msm/msm_fb.c fb = &msm_fb->base; fb 166 drivers/gpu/drm/msm/msm_fb.c if (n > ARRAY_SIZE(fb->obj)) { fb 188 drivers/gpu/drm/msm/msm_fb.c drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); fb 190 drivers/gpu/drm/msm/msm_fb.c ret = drm_framebuffer_init(dev, fb, &msm_framebuffer_funcs); fb 196 drivers/gpu/drm/msm/msm_fb.c DBG("create: FB ID: %d (%p)", fb->base.id, fb); fb 198 drivers/gpu/drm/msm/msm_fb.c return fb; fb 216 drivers/gpu/drm/msm/msm_fb.c struct drm_framebuffer *fb; fb 235 drivers/gpu/drm/msm/msm_fb.c fb = msm_framebuffer_init(dev, &mode_cmd, &bo); fb 236 drivers/gpu/drm/msm/msm_fb.c if (IS_ERR(fb)) { fb 242 drivers/gpu/drm/msm/msm_fb.c return ERR_CAST(fb); fb 245 drivers/gpu/drm/msm/msm_fb.c return fb; fb 26 drivers/gpu/drm/msm/msm_fbdev.c struct drm_framebuffer *fb; fb 48 drivers/gpu/drm/msm/msm_fbdev.c struct drm_gem_object *bo = msm_framebuffer_bo(fbdev->fb, 0); fb 66 drivers/gpu/drm/msm/msm_fbdev.c struct drm_framebuffer *fb = NULL; fb 80 drivers/gpu/drm/msm/msm_fbdev.c fb = msm_alloc_stolen_fb(dev, sizes->surface_width, fb 83 drivers/gpu/drm/msm/msm_fbdev.c if (IS_ERR(fb)) { fb 85 drivers/gpu/drm/msm/msm_fbdev.c return PTR_ERR(fb); fb 88 drivers/gpu/drm/msm/msm_fbdev.c bo = msm_framebuffer_bo(fb, 0); fb 112 drivers/gpu/drm/msm/msm_fbdev.c fbdev->fb = fb; fb 113 drivers/gpu/drm/msm/msm_fbdev.c helper->fb = fb; fb 131 drivers/gpu/drm/msm/msm_fbdev.c DBG("allocated %dx%d fb", fbdev->fb->width, fbdev->fb->height); fb 139 drivers/gpu/drm/msm/msm_fbdev.c drm_framebuffer_remove(fb); fb 206 drivers/gpu/drm/msm/msm_fbdev.c if (fbdev->fb) { fb 208 drivers/gpu/drm/msm/msm_fbdev.c msm_framebuffer_bo(fbdev->fb, 0); fb 210 drivers/gpu/drm/msm/msm_fbdev.c drm_framebuffer_remove(fbdev->fb); fb 50 drivers/gpu/drm/mxsfb/mxsfb_crtc.c const u32 format = crtc->primary->state->fb->format->format; fb 192 drivers/gpu/drm/mxsfb/mxsfb_crtc.c struct drm_framebuffer *fb = mxsfb->pipe.plane.state->fb; fb 195 drivers/gpu/drm/mxsfb/mxsfb_crtc.c if (!fb) fb 198 drivers/gpu/drm/mxsfb/mxsfb_crtc.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 237 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct drm_framebuffer *fb = crtc->primary->fb; fb 371 drivers/gpu/drm/nouveau/dispnv04/crtc.c regp->CRTC[NV_CIO_CR_OFFSET_INDEX] = fb->pitches[0] / 8; fb 384 drivers/gpu/drm/nouveau/dispnv04/crtc.c XLATE(fb->pitches[0] / 8, 8, NV_CIO_CRE_RPC0_OFFSET_10_8); fb 386 drivers/gpu/drm/nouveau/dispnv04/crtc.c XLATE(fb->pitches[0] / 8, 11, NV_CIO_CRE_42_OFFSET_11); fb 463 drivers/gpu/drm/nouveau/dispnv04/crtc.c const struct drm_framebuffer *fb = crtc->primary->fb; fb 573 drivers/gpu/drm/nouveau/dispnv04/crtc.c regp->CRTC[NV_CIO_CRE_PIXEL_INDEX] = (fb->format->depth + 1) / 8; fb 587 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (fb->format->depth == 16) fb 608 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nouveau_framebuffer *nvfb = nouveau_framebuffer(crtc->primary->fb); fb 806 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (!nv_crtc->base.primary->fb) { fb 826 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nouveau_framebuffer *fb; fb 832 drivers/gpu/drm/nouveau/dispnv04/crtc.c if (!atomic && !crtc->primary->fb) { fb 842 drivers/gpu/drm/nouveau/dispnv04/crtc.c fb = nouveau_framebuffer(passed_fb); fb 844 drivers/gpu/drm/nouveau/dispnv04/crtc.c drm_fb = crtc->primary->fb; fb 845 drivers/gpu/drm/nouveau/dispnv04/crtc.c fb = nouveau_framebuffer(crtc->primary->fb); fb 848 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv_crtc->fb.offset = fb->nvbo->bo.offset; fb 875 drivers/gpu/drm/nouveau/dispnv04/crtc.c regp->fb_start = nv_crtc->fb.offset & ~3; fb 908 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct drm_framebuffer *fb, fb 919 drivers/gpu/drm/nouveau/dispnv04/crtc.c return nv04_crtc_do_mode_set_base(crtc, fb, x, y, true); fb 1139 drivers/gpu/drm/nouveau/dispnv04/crtc.c nv04_crtc_page_flip(struct drm_crtc *crtc, struct drm_framebuffer *fb, fb 1146 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nouveau_bo *old_bo = nouveau_framebuffer(crtc->primary->fb)->nvbo; fb 1147 drivers/gpu/drm/nouveau/dispnv04/crtc.c struct nouveau_bo *new_bo = nouveau_framebuffer(fb)->nvbo; fb 1193 drivers/gpu/drm/nouveau/dispnv04/crtc.c { { }, event, crtc, fb->format->cpp[0] * 8, fb->pitches[0], fb 1223 drivers/gpu/drm/nouveau/dispnv04/crtc.c crtc->primary->fb = fb; fb 293 drivers/gpu/drm/nouveau/dispnv04/dfp.c const struct drm_framebuffer *fb = encoder->crtc->primary->fb; fb 419 drivers/gpu/drm/nouveau/dispnv04/dfp.c fb->format->depth > connector->display_info.bpc * 3)) { fb 57 drivers/gpu/drm/nouveau/dispnv04/disp.c nouveau_fb = nouveau_framebuffer(crtc->primary->fb); fb 109 drivers/gpu/drm/nouveau/dispnv04/disp.c nouveau_fb = nouveau_framebuffer(crtc->primary->fb); fb 92 drivers/gpu/drm/nouveau/dispnv04/overlay.c verify_scaling(const struct drm_framebuffer *fb, uint8_t shift, fb 113 drivers/gpu/drm/nouveau/dispnv04/overlay.c struct drm_framebuffer *fb, int crtc_x, int crtc_y, fb 123 drivers/gpu/drm/nouveau/dispnv04/overlay.c struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb); fb 139 drivers/gpu/drm/nouveau/dispnv04/overlay.c ret = verify_scaling(fb, shift, 0, 0, src_w, src_h, crtc_w, crtc_h); fb 161 drivers/gpu/drm/nouveau/dispnv04/overlay.c if (fb->format->format == DRM_FORMAT_YUYV || fb 162 drivers/gpu/drm/nouveau/dispnv04/overlay.c fb->format->format == DRM_FORMAT_NV12) fb 164 drivers/gpu/drm/nouveau/dispnv04/overlay.c if (fb->format->format == DRM_FORMAT_NV12 || fb 165 drivers/gpu/drm/nouveau/dispnv04/overlay.c fb->format->format == DRM_FORMAT_NV21) fb 175 drivers/gpu/drm/nouveau/dispnv04/overlay.c nv_fb->nvbo->bo.offset + fb->offsets[1]); fb 177 drivers/gpu/drm/nouveau/dispnv04/overlay.c nvif_wr32(dev, NV_PVIDEO_FORMAT(flip), format | fb->pitches[0]); fb 362 drivers/gpu/drm/nouveau/dispnv04/overlay.c struct drm_framebuffer *fb, int crtc_x, int crtc_y, fb 371 drivers/gpu/drm/nouveau/dispnv04/overlay.c struct nouveau_framebuffer *nv_fb = nouveau_framebuffer(fb); fb 383 drivers/gpu/drm/nouveau/dispnv04/overlay.c ret = verify_scaling(fb, 0, src_x, src_y, src_w, src_h, crtc_w, crtc_h); fb 401 drivers/gpu/drm/nouveau/dispnv04/overlay.c fb->pitches[0]); fb 425 drivers/gpu/drm/nouveau/dispnv04/overlay.c if (fb->format->format == DRM_FORMAT_YUYV) fb 755 drivers/gpu/drm/nouveau/dispnv04/tvnv17.c crtc->primary->fb); fb 190 drivers/gpu/drm/nouveau/dispnv50/base507c.c const struct drm_framebuffer *fb = asyw->state.fb; fb 201 drivers/gpu/drm/nouveau/dispnv50/base507c.c if ((asyh->base.cpp != 1) ^ (fb->format->cpp[0] != 1)) fb 205 drivers/gpu/drm/nouveau/dispnv50/base507c.c asyh->base.depth = fb->format->depth; fb 206 drivers/gpu/drm/nouveau/dispnv50/base507c.c asyh->base.cpp = fb->format->cpp[0]; fb 209 drivers/gpu/drm/nouveau/dispnv50/base507c.c asyh->base.w = asyw->state.fb->width; fb 210 drivers/gpu/drm/nouveau/dispnv50/base507c.c asyh->base.h = asyw->state.fb->height; fb 70 drivers/gpu/drm/nouveau/dispnv50/head917d.c switch (asyw->state.fb->width) { fb 129 drivers/gpu/drm/nouveau/dispnv50/ovly507e.c const struct drm_framebuffer *fb = asyw->state.fb; fb 139 drivers/gpu/drm/nouveau/dispnv50/ovly507e.c asyh->ovly.cpp = fb->format->cpp[0]; fb 42 drivers/gpu/drm/nouveau/dispnv50/wndw.c nv50_wndw_ctxdma_new(struct nv50_wndw *wndw, struct nouveau_framebuffer *fb) fb 44 drivers/gpu/drm/nouveau/dispnv50/wndw.c struct nouveau_drm *drm = nouveau_drm(fb->base.dev); fb 46 drivers/gpu/drm/nouveau/dispnv50/wndw.c const u8 kind = fb->nvbo->kind; fb 195 drivers/gpu/drm/nouveau/dispnv50/wndw.c switch (asyw->state.fb->format->format) { fb 209 drivers/gpu/drm/nouveau/dispnv50/wndw.c switch (asyw->state.fb->format->format) { fb 237 drivers/gpu/drm/nouveau/dispnv50/wndw.c struct nouveau_framebuffer *fb = nouveau_framebuffer(asyw->state.fb); fb 243 drivers/gpu/drm/nouveau/dispnv50/wndw.c if (asyw->state.fb != armw->state.fb || !armw->visible || modeset) { fb 244 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.w = fb->base.width; fb 245 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.h = fb->base.height; fb 246 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.kind = fb->nvbo->kind; fb 258 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.blockh = fb->nvbo->mode >> 4; fb 260 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.blockh = fb->nvbo->mode; fb 261 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.blocks[0] = fb->base.pitches[0] / 64; fb 267 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.pitch[0] = fb->base.pitches[0]; fb 335 drivers/gpu/drm/nouveau/dispnv50/wndw.c if (!ilut && asyw->state.fb->format->format == DRM_FORMAT_C8) { fb 353 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->state.fb->format->format != DRM_FORMAT_XBGR16161616F && fb 354 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->state.fb->format->format != DRM_FORMAT_ABGR16161616F) { fb 426 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->state.fb->format->format != fb 427 drivers/gpu/drm/nouveau/dispnv50/wndw.c armw->state.fb->format->format)) fb 467 drivers/gpu/drm/nouveau/dispnv50/wndw.c struct nouveau_framebuffer *fb = nouveau_framebuffer(old_state->fb); fb 470 drivers/gpu/drm/nouveau/dispnv50/wndw.c NV_ATOMIC(drm, "%s cleanup: %p\n", plane->name, old_state->fb); fb 471 drivers/gpu/drm/nouveau/dispnv50/wndw.c if (!old_state->fb) fb 474 drivers/gpu/drm/nouveau/dispnv50/wndw.c nouveau_bo_unpin(fb->nvbo); fb 480 drivers/gpu/drm/nouveau/dispnv50/wndw.c struct nouveau_framebuffer *fb = nouveau_framebuffer(state->fb); fb 488 drivers/gpu/drm/nouveau/dispnv50/wndw.c NV_ATOMIC(drm, "%s prepare: %p\n", plane->name, state->fb); fb 489 drivers/gpu/drm/nouveau/dispnv50/wndw.c if (!asyw->state.fb) fb 492 drivers/gpu/drm/nouveau/dispnv50/wndw.c ret = nouveau_bo_pin(fb->nvbo, TTM_PL_FLAG_VRAM, true); fb 497 drivers/gpu/drm/nouveau/dispnv50/wndw.c ctxdma = nv50_wndw_ctxdma_new(wndw, fb); fb 499 drivers/gpu/drm/nouveau/dispnv50/wndw.c nouveau_bo_unpin(fb->nvbo); fb 506 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->state.fence = dma_resv_get_excl_rcu(fb->nvbo->bo.base.resv); fb 507 drivers/gpu/drm/nouveau/dispnv50/wndw.c asyw->image.offset[0] = fb->nvbo->bo.offset; fb 67 drivers/gpu/drm/nouveau/include/nvif/device.h #define nvxx_fb(a) nvxx_device(a)->fb fb 138 drivers/gpu/drm/nouveau/include/nvkm/core/device.h struct nvkm_fb *fb; fb 211 drivers/gpu/drm/nouveau/include/nvkm/core/device.h int (*fb )(struct nvkm_device *, int idx, struct nvkm_fb **); fb 116 drivers/gpu/drm/nouveau/include/nvkm/subdev/fb.h struct nvkm_fb *fb; fb 57 drivers/gpu/drm/nouveau/nouveau_bo.c struct nvkm_fb *fb = nvxx_fb(&drm->client.device); fb 58 drivers/gpu/drm/nouveau/nouveau_bo.c struct nvkm_fb_tile *tile = &fb->tile.region[i]; fb 63 drivers/gpu/drm/nouveau/nouveau_bo.c nvkm_fb_tile_fini(fb, i, tile); fb 66 drivers/gpu/drm/nouveau/nouveau_bo.c nvkm_fb_tile_init(fb, i, addr, size, pitch, flags, tile); fb 68 drivers/gpu/drm/nouveau/nouveau_bo.c nvkm_fb_tile_prog(fb, i, tile); fb 108 drivers/gpu/drm/nouveau/nouveau_bo.c struct nvkm_fb *fb = nvxx_fb(&drm->client.device); fb 112 drivers/gpu/drm/nouveau/nouveau_bo.c for (i = 0; i < fb->tile.regions; i++) { fb 119 drivers/gpu/drm/nouveau/nouveau_bo.c } else if (tile && fb->tile.region[i].pitch) { fb 53 drivers/gpu/drm/nouveau/nouveau_crtc.h } fb; fb 203 drivers/gpu/drm/nouveau/nouveau_display.c struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb); fb 205 drivers/gpu/drm/nouveau/nouveau_display.c if (fb->nvbo) fb 206 drivers/gpu/drm/nouveau/nouveau_display.c drm_gem_object_put_unlocked(&fb->nvbo->bo.base); fb 209 drivers/gpu/drm/nouveau/nouveau_display.c kfree(fb); fb 217 drivers/gpu/drm/nouveau/nouveau_display.c struct nouveau_framebuffer *fb = nouveau_framebuffer(drm_fb); fb 219 drivers/gpu/drm/nouveau/nouveau_display.c return drm_gem_handle_create(file_priv, &fb->nvbo->bo.base, handle); fb 234 drivers/gpu/drm/nouveau/nouveau_display.c struct nouveau_framebuffer *fb; fb 257 drivers/gpu/drm/nouveau/nouveau_display.c if (!(fb = *pfb = kzalloc(sizeof(*fb), GFP_KERNEL))) fb 260 drivers/gpu/drm/nouveau/nouveau_display.c drm_helper_mode_fill_fb_struct(dev, &fb->base, mode_cmd); fb 261 drivers/gpu/drm/nouveau/nouveau_display.c fb->nvbo = nvbo; fb 263 drivers/gpu/drm/nouveau/nouveau_display.c ret = drm_framebuffer_init(dev, &fb->base, &nouveau_framebuffer_funcs); fb 265 drivers/gpu/drm/nouveau/nouveau_display.c kfree(fb); fb 274 drivers/gpu/drm/nouveau/nouveau_display.c struct nouveau_framebuffer *fb; fb 284 drivers/gpu/drm/nouveau/nouveau_display.c ret = nouveau_framebuffer_new(dev, mode_cmd, nvbo, &fb); fb 286 drivers/gpu/drm/nouveau/nouveau_display.c return &fb->base; fb 23 drivers/gpu/drm/nouveau/nouveau_display.h nouveau_framebuffer(struct drm_framebuffer *fb) fb 25 drivers/gpu/drm/nouveau/nouveau_display.h return container_of(fb, struct nouveau_framebuffer, base); fb 315 drivers/gpu/drm/nouveau/nouveau_fbcon.c struct nouveau_framebuffer *fb; fb 338 drivers/gpu/drm/nouveau/nouveau_fbcon.c ret = nouveau_framebuffer_new(dev, &mode_cmd, nvbo, &fb); fb 356 drivers/gpu/drm/nouveau/nouveau_fbcon.c ret = nouveau_vma_new(nvbo, chan->vmm, &fb->vma); fb 370 drivers/gpu/drm/nouveau/nouveau_fbcon.c fbcon->helper.fb = &fb->base; fb 379 drivers/gpu/drm/nouveau/nouveau_fbcon.c info->fix.smem_start = fb->nvbo->bo.mem.bus.base + fb 380 drivers/gpu/drm/nouveau/nouveau_fbcon.c fb->nvbo->bo.mem.bus.offset; fb 381 drivers/gpu/drm/nouveau/nouveau_fbcon.c info->fix.smem_len = fb->nvbo->bo.mem.num_pages << PAGE_SHIFT; fb 383 drivers/gpu/drm/nouveau/nouveau_fbcon.c info->screen_base = nvbo_kmap_obj_iovirtual(fb->nvbo); fb 384 drivers/gpu/drm/nouveau/nouveau_fbcon.c info->screen_size = fb->nvbo->bo.mem.num_pages << PAGE_SHIFT; fb 396 drivers/gpu/drm/nouveau/nouveau_fbcon.c fb->base.width, fb->base.height, fb->nvbo->bo.offset, nvbo); fb 403 drivers/gpu/drm/nouveau/nouveau_fbcon.c nouveau_vma_del(&fb->vma); fb 404 drivers/gpu/drm/nouveau/nouveau_fbcon.c nouveau_bo_unmap(fb->nvbo); fb 406 drivers/gpu/drm/nouveau/nouveau_fbcon.c nouveau_bo_unpin(fb->nvbo); fb 408 drivers/gpu/drm/nouveau/nouveau_fbcon.c nouveau_bo_ref(NULL, &fb->nvbo); fb 416 drivers/gpu/drm/nouveau/nouveau_fbcon.c struct nouveau_framebuffer *nouveau_fb = nouveau_framebuffer(fbcon->helper.fb); fb 424 drivers/gpu/drm/nouveau/nouveau_svm.c const struct nouveau_svm_fault *fb = *(struct nouveau_svm_fault **)b; fb 426 drivers/gpu/drm/nouveau/nouveau_svm.c if ((ret = (s64)fa->inst - fb->inst)) fb 428 drivers/gpu/drm/nouveau/nouveau_svm.c if ((ret = (s64)fa->addr - fb->addr)) fb 432 drivers/gpu/drm/nouveau/nouveau_svm.c (fb->access == 0 || fb->access == 3); fb 152 drivers/gpu/drm/nouveau/nv50_fbcon.c struct nouveau_framebuffer *fb = nouveau_framebuffer(nfbdev->helper.fb); fb 243 drivers/gpu/drm/nouveau/nv50_fbcon.c OUT_RING(chan, upper_32_bits(fb->vma->addr)); fb 244 drivers/gpu/drm/nouveau/nv50_fbcon.c OUT_RING(chan, lower_32_bits(fb->vma->addr)); fb 252 drivers/gpu/drm/nouveau/nv50_fbcon.c OUT_RING(chan, upper_32_bits(fb->vma->addr)); fb 253 drivers/gpu/drm/nouveau/nv50_fbcon.c OUT_RING(chan, lower_32_bits(fb->vma->addr)); fb 153 drivers/gpu/drm/nouveau/nvc0_fbcon.c struct nouveau_framebuffer *fb = nouveau_framebuffer(nfbdev->helper.fb); fb 243 drivers/gpu/drm/nouveau/nvc0_fbcon.c OUT_RING (chan, upper_32_bits(fb->vma->addr)); fb 244 drivers/gpu/drm/nouveau/nvc0_fbcon.c OUT_RING (chan, lower_32_bits(fb->vma->addr)); fb 254 drivers/gpu/drm/nouveau/nvc0_fbcon.c OUT_RING (chan, upper_32_bits(fb->vma->addr)); fb 255 drivers/gpu/drm/nouveau/nvc0_fbcon.c OUT_RING (chan, lower_32_bits(fb->vma->addr)); fb 72 drivers/gpu/drm/nouveau/nvkm/core/engine.c struct nvkm_fb *fb = engine->subdev.device->fb; fb 74 drivers/gpu/drm/nouveau/nvkm/core/engine.c engine->func->tile(engine, region, &fb->tile.region[region]); fb 113 drivers/gpu/drm/nouveau/nvkm/core/engine.c struct nvkm_fb *fb = subdev->device->fb; fb 139 drivers/gpu/drm/nouveau/nvkm/core/engine.c for (i = 0; fb && i < fb->tile.regions; i++) fb 33 drivers/gpu/drm/nouveau/nvkm/core/memory.c struct nvkm_fb *fb = device->fb; fb 36 drivers/gpu/drm/nouveau/nvkm/core/memory.c mutex_lock(&fb->subdev.mutex); fb 38 drivers/gpu/drm/nouveau/nvkm/core/memory.c nvkm_mm_free(&fb->tags, &tags->mn); fb 42 drivers/gpu/drm/nouveau/nvkm/core/memory.c mutex_unlock(&fb->subdev.mutex); fb 52 drivers/gpu/drm/nouveau/nvkm/core/memory.c struct nvkm_fb *fb = device->fb; fb 55 drivers/gpu/drm/nouveau/nvkm/core/memory.c mutex_lock(&fb->subdev.mutex); fb 62 drivers/gpu/drm/nouveau/nvkm/core/memory.c mutex_unlock(&fb->subdev.mutex); fb 67 drivers/gpu/drm/nouveau/nvkm/core/memory.c mutex_unlock(&fb->subdev.mutex); fb 73 drivers/gpu/drm/nouveau/nvkm/core/memory.c mutex_unlock(&fb->subdev.mutex); fb 77 drivers/gpu/drm/nouveau/nvkm/core/memory.c if (!nvkm_mm_head(&fb->tags, 0, 1, nr, nr, 1, &tags->mn)) { fb 95 drivers/gpu/drm/nouveau/nvkm/core/memory.c mutex_unlock(&fb->subdev.mutex); fb 84 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv04_fb_new, fb 105 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv04_fb_new, fb 126 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv10_fb_new, fb 146 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv10_fb_new, fb 168 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv10_fb_new, fb 190 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv10_fb_new, fb 212 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv10_fb_new, fb 234 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv1a_fb_new, fb 256 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv1a_fb_new, fb 278 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv20_fb_new, fb 300 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv25_fb_new, fb 322 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv25_fb_new, fb 344 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv25_fb_new, fb 366 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv30_fb_new, fb 388 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv30_fb_new, fb 411 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv10_fb_new, fb 434 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv35_fb_new, fb 456 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv36_fb_new, fb 479 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv40_fb_new, fb 505 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv41_fb_new, fb 531 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv41_fb_new, fb 557 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv41_fb_new, fb 583 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv44_fb_new, fb 609 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv40_fb_new, fb 635 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv46_fb_new, fb 661 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv47_fb_new, fb 687 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv49_fb_new, fb 713 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv44_fb_new, fb 739 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv49_fb_new, fb 765 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv46_fb_new, fb 791 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv4e_fb_new, fb 818 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv50_fb_new, fb 846 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv46_fb_new, fb 872 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv46_fb_new, fb 898 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = nv46_fb_new, fb 925 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = g84_fb_new, fb 957 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = g84_fb_new, fb 989 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = g84_fb_new, fb 1021 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = g84_fb_new, fb 1053 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = g84_fb_new, fb 1085 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = g84_fb_new, fb 1117 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = g84_fb_new, fb 1149 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gt215_fb_new, fb 1183 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gt215_fb_new, fb 1216 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gt215_fb_new, fb 1249 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = mcp77_fb_new, fb 1281 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = mcp77_fb_new, fb 1313 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = mcp89_fb_new, fb 1346 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1383 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf108_fb_new, fb 1419 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1455 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1492 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1529 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1566 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1602 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1637 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gf100_fb_new, fb 1673 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk104_fb_new, fb 1712 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk104_fb_new, fb 1751 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk104_fb_new, fb 1788 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk20a_fb_new, fb 1815 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk110_fb_new, fb 1853 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk110_fb_new, fb 1891 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk110_fb_new, fb 1929 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gk110_fb_new, fb 1967 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gm107_fb_new, fb 2001 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gm107_fb_new, fb 2034 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gm200_fb_new, fb 2069 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gm200_fb_new, fb 2104 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gm200_fb_new, fb 2138 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gm20b_fb_new, fb 2165 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gp100_fb_new, fb 2201 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gp102_fb_new, fb 2237 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gp102_fb_new, fb 2273 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gp102_fb_new, fb 2309 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gp102_fb_new, fb 2345 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gp102_fb_new, fb 2379 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gp10b_fb_new, fb 2405 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gv100_fb_new, fb 2446 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gv100_fb_new, fb 2481 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gv100_fb_new, fb 2516 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gv100_fb_new, fb 2551 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gv100_fb_new, fb 2586 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c .fb = gv100_fb_new, fb 2647 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(FB , device->fb , &device->fb->subdev); fb 3153 drivers/gpu/drm/nouveau/nvkm/engine/device/base.c _(NVKM_SUBDEV_FB , fb); fb 107 drivers/gpu/drm/nouveau/nvkm/engine/device/user.c struct nvkm_fb *fb = device->fb; fb 186 drivers/gpu/drm/nouveau/nvkm/engine/device/user.c if (fb && fb->ram) fb 187 drivers/gpu/drm/nouveau/nvkm/engine/device/user.c args->v0.ram_size = args->v0.ram_user = fb->ram->size; fb 79 drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c struct nvkm_fb *fb = device->fb; fb 113 drivers/gpu/drm/nouveau/nvkm/engine/dma/user.c if (dmaobj->limit >= fb->ram->size - instmem->reserved) fb 64 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c struct nvkm_fb *fb = device->fb; fb 95 drivers/gpu/drm/nouveau/nvkm/engine/fifo/nv40.c nvkm_wr32(device, 0x002220, ((fb->ram->size - 512 * 1024 + fb 573 drivers/gpu/drm/nouveau/nvkm/engine/gr/ctxnv50.c if (device->fb->ram->type != NVKM_RAM_TYPE_GDDR5) fb 2259 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c struct nvkm_fb *fb = device->fb; fb 2267 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x4188b4, nvkm_memory_addr(fb->mmu_wr) >> 8); fb 2268 drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c nvkm_wr32(device, 0x4188b8, nvkm_memory_addr(fb->mmu_rd) >> 8); fb 366 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c struct nvkm_fb *fb = device->fb; fb 371 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c nvkm_wr32(device, GPC_BCAST(0x08b4), nvkm_memory_addr(fb->mmu_wr) >> 8); fb 372 drivers/gpu/drm/nouveau/nvkm/engine/gr/gm107.c nvkm_wr32(device, GPC_BCAST(0x08b8), nvkm_memory_addr(fb->mmu_rd) >> 8); fb 268 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_fb *fb = subdev->device->fb; fb 283 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c if (fb && fb->ram && fb->ram->func->calc) { fb 284 drivers/gpu/drm/nouveau/nvkm/subdev/clk/base.c struct nvkm_ram *ram = fb->ram; fb 55 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_fini(struct io_mapping *fb) fb 57 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h io_mapping_free(fb); fb 61 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_peek(struct io_mapping *fb, u32 off) fb 63 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); fb 70 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_poke(struct io_mapping *fb, u32 off, u32 val) fb 72 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h u8 __iomem *p = io_mapping_map_atomic_wc(fb, off & PAGE_MASK); fb 79 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_readback(struct io_mapping *fb, u32 off, u32 val) fb 81 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h fbmem_poke(fb, off, val); fb 82 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/fbmem.h return val == fbmem_peek(fb, off); fb 41 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c struct io_mapping *fb; fb 45 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c fb = fbmem_init(device); fb 46 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if (!fb) { fb 61 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c fbmem_poke(fb, 4 * i, patt); fb 63 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c fbmem_poke(fb, 0x400000, patt + 1); fb 65 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if (fbmem_peek(fb, 0) == patt + 1) { fb 73 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c fbmem_poke(fb, 4 * i, patt); fb 75 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if ((fbmem_peek(fb, 0xc) & 0xffff) != (patt & 0xffff)) fb 81 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if ((fbmem_peek(fb, 0xc) & 0xffff0000) != (patt & 0xffff0000)) { fb 87 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if (fbmem_peek(fb, 0) != patt) { fb 88 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if (fbmem_readback(fb, 0x800000, patt)) fb 100 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c if (!fbmem_readback(fb, 0x800000, patt)) { fb 109 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv04.c fbmem_fini(fb); fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c struct io_mapping *fb; fb 57 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c fb = fbmem_init(device); fb 58 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c if (!fb) { fb 99 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c fbmem_poke(fb, 4 * i, patt); fb 101 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c if (fbmem_peek(fb, 0xc) != patt) fb 109 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c (!fbmem_readback(fb, 0x1000000, ++patt) || fb 110 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c !fbmem_readback(fb, 0, ++patt))) fb 115 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c !fbmem_readback(fb, 0x800000, ++patt)) fb 119 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c if (!fbmem_readback(fb, 0x400000, ++patt)) fb 126 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c fbmem_fini(fb); fb 40 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c struct io_mapping *fb; fb 49 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fb = fbmem_init(device); fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c if (!fb) { fb 63 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_poke(fb, 0x1c, 0); fb 65 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_poke(fb, 0x1c, patt); fb 66 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_poke(fb, 0x3c, 0); fb 68 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c if (fbmem_peek(fb, 0x1c) == patt) fb 80 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_poke(fb, off, patt); fb 81 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_poke(fb, 0, 0); fb 83 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_peek(fb, 0); fb 84 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_peek(fb, 0); fb 85 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_peek(fb, 0); fb 86 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_peek(fb, 0); fb 88 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c if (fbmem_peek(fb, off) == patt) fb 96 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv10.c fbmem_fini(fb); fb 39 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c struct io_mapping *fb; fb 42 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c fb = fbmem_init(device); fb 43 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c if (!fb) { fb 55 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c fbmem_poke(fb, off - 4, off); fb 58 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c if (amount != fbmem_peek(fb, amount - 4)) fb 62 drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv20.c fbmem_fini(fb); fb 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_fb_tile_fini(struct nvkm_fb *fb, int region, struct nvkm_fb_tile *tile) fb 37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->tile.fini(fb, region, tile); fb 41 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_fb_tile_init(struct nvkm_fb *fb, int region, u32 addr, u32 size, fb 44 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->tile.init(fb, region, addr, size, pitch, flags, tile); fb 48 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_fb_tile_prog(struct nvkm_fb *fb, int region, struct nvkm_fb_tile *tile) fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c struct nvkm_device *device = fb->subdev.device; fb 51 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->tile.prog) { fb 52 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->tile.prog(fb, region, tile); fb 91 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c struct nvkm_fb *fb = nvkm_fb(subdev); fb 92 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->intr) fb 93 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->intr(fb); fb 99 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c struct nvkm_fb *fb = nvkm_fb(subdev); fb 102 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->ram_new) { fb 103 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c int ret = fb->func->ram_new(fb, &fb->ram); fb 110 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->oneinit) { fb 111 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c int ret = fb->func->oneinit(fb); fb 120 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->tags) { fb 121 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c tags = fb->func->tags(fb); fb 125 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c return nvkm_mm_init(&fb->tags, 0, 0, tags, 1); fb 131 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c struct nvkm_fb *fb = nvkm_fb(subdev); fb 134 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->ram) { fb 135 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c ret = nvkm_ram_init(fb->ram); fb 140 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c for (i = 0; i < fb->tile.regions; i++) fb 141 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->tile.prog(fb, i, &fb->tile.region[i]); fb 143 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->init) fb 144 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->init(fb); fb 146 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->init_remapper) fb 147 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->init_remapper(fb); fb 149 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->init_page) { fb 150 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c ret = fb->func->init_page(fb); fb 155 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->init_unkn) fb 156 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->init_unkn(fb); fb 163 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c struct nvkm_fb *fb = nvkm_fb(subdev); fb 166 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_memory_unref(&fb->mmu_wr); fb 167 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_memory_unref(&fb->mmu_rd); fb 169 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c for (i = 0; i < fb->tile.regions; i++) fb 170 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->tile.fini(fb, i, &fb->tile.region[i]); fb 172 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_mm_fini(&fb->tags); fb 173 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_ram_del(&fb->ram); fb 175 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c if (fb->func->dtor) fb 176 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c return fb->func->dtor(fb); fb 177 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c return fb; fb 190 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c int index, struct nvkm_fb *fb) fb 192 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c nvkm_subdev_ctor(&nvkm_fb, device, index, &fb->subdev); fb 193 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func = func; fb 194 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->tile.regions = fb->func->tile.regions; fb 195 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->page = nvkm_longopt(device->cfgopt, "NvFbBigPage", fb 196 drivers/gpu/drm/nouveau/nvkm/subdev/fb/base.c fb->func->default_bigpage); fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct gf100_fb *fb = gf100_fb(base); fb 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct nvkm_subdev *subdev = &fb->base.subdev; fb 47 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct gf100_fb *fb = gf100_fb(base); fb 48 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct nvkm_device *device = fb->base.subdev.device; fb 49 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c int ret, size = 1 << (fb->base.page ? fb->base.page : 17); fb 55 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c true, &fb->base.mmu_rd); fb 60 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c true, &fb->base.mmu_wr); fb 64 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c fb->r100c10_page = alloc_page(GFP_KERNEL | __GFP_ZERO); fb 65 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c if (fb->r100c10_page) { fb 66 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c fb->r100c10 = dma_map_page(device->dev, fb->r100c10_page, 0, fb 68 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c if (dma_mapping_error(device->dev, fb->r100c10)) fb 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c gf100_fb_init_page(struct nvkm_fb *fb) fb 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct nvkm_device *device = fb->subdev.device; fb 79 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c switch (fb->page) { fb 91 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct gf100_fb *fb = gf100_fb(base); fb 92 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct nvkm_device *device = fb->base.subdev.device; fb 94 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c if (fb->r100c10_page) fb 95 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c nvkm_wr32(device, 0x100c10, fb->r100c10 >> 8); fb 106 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct gf100_fb *fb = gf100_fb(base); fb 107 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct nvkm_device *device = fb->base.subdev.device; fb 109 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c if (fb->r100c10_page) { fb 110 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c dma_unmap_page(device->dev, fb->r100c10, PAGE_SIZE, fb 112 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c __free_page(fb->r100c10_page); fb 115 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c return fb; fb 122 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c struct gf100_fb *fb; fb 124 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c if (!(fb = kzalloc(sizeof(*fb), GFP_KERNEL))) fb 126 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c nvkm_fb_ctor(func, device, index, &fb->base); fb 127 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gf100.c *pfb = &fb->base; fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c gm200_fb_init_page(struct nvkm_fb *fb) fb 32 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c struct nvkm_device *device = fb->subdev.device; fb 33 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c switch (fb->page) { fb 46 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c struct gf100_fb *fb = gf100_fb(base); fb 47 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c struct nvkm_device *device = fb->base.subdev.device; fb 49 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c if (fb->r100c10_page) fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c nvkm_wr32(device, 0x100c10, fb->r100c10 >> 8); fb 52 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c nvkm_wr32(device, 0x100cc8, nvkm_memory_addr(fb->base.mmu_wr) >> 8); fb 53 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c nvkm_wr32(device, 0x100ccc, nvkm_memory_addr(fb->base.mmu_rd) >> 8); fb 55 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gm200.c min(nvkm_memory_size(fb->base.mmu_rd) >> 16, (u64)2) << 17); fb 40 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c gp100_fb_init_remapper(struct nvkm_fb *fb) fb 42 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c struct nvkm_device *device = fb->subdev.device; fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c struct gf100_fb *fb = gf100_fb(base); fb 51 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c struct nvkm_device *device = fb->base.subdev.device; fb 53 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c if (fb->r100c10_page) fb 54 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c nvkm_wr32(device, 0x100c10, fb->r100c10 >> 8); fb 56 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c nvkm_wr32(device, 0x100cc8, nvkm_memory_addr(fb->base.mmu_wr) >> 8); fb 57 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c nvkm_wr32(device, 0x100ccc, nvkm_memory_addr(fb->base.mmu_rd) >> 8); fb 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gp100.c min(nvkm_memory_size(fb->base.mmu_rd) >> 16, (u64)2) << 17); fb 26 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gv100.c gv100_fb_init_page(struct nvkm_fb *fb) fb 28 drivers/gpu/drm/nouveau/nvkm/subdev/fb/gv100.c return (fb->page == 16) ? 0 : -EINVAL; fb 29 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv04.c nv04_fb_init(struct nvkm_fb *fb) fb 31 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv04.c struct nvkm_device *device = fb->subdev.device; fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv10.c nv10_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, fb 39 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv10.c nv10_fb_tile_fini(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) fb 48 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv10.c nv10_fb_tile_prog(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv10.c struct nvkm_device *device = fb->subdev.device; fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c nv20_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, fb 37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c fb->func->tile.comp(fb, i, size, flags, tile); fb 43 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c nv20_fb_tile_comp(struct nvkm_fb *fb, int i, u32 size, u32 flags, fb 47 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); fb 48 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { fb 60 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c nv20_fb_tile_fini(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) fb 66 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c nvkm_mm_free(&fb->tags, &tile->tag); fb 70 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c nv20_fb_tile_prog(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) fb 72 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c struct nvkm_device *device = fb->subdev.device; fb 81 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c nv20_fb_tags(struct nvkm_fb *fb) fb 83 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv20.c const u32 tags = nvkm_rd32(fb->subdev.device, 0x100320); fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv25.c nv25_fb_tile_comp(struct nvkm_fb *fb, int i, u32 size, u32 flags, fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv25.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); fb 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv25.c if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c nv30_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, fb 37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c if (fb->func->tile.comp) /* z compression */ fb 38 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c fb->func->tile.comp(fb, i, size, flags, tile); fb 49 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c nv30_fb_tile_comp(struct nvkm_fb *fb, int i, u32 size, u32 flags, fb 53 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); fb 54 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { fb 66 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c calc_bias(struct nvkm_fb *fb, int k, int i, int j) fb 68 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c struct nvkm_device *device = fb->subdev.device; fb 78 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c calc_ref(struct nvkm_fb *fb, int l, int k, int i) fb 83 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c int m = (l >> (8 * i) & 0xff) + calc_bias(fb, k, i, j); fb 92 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c nv30_fb_init(struct nvkm_fb *fb) fb 94 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c struct nvkm_device *device = fb->subdev.device; fb 108 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c calc_ref(fb, l, 0, j)); fb 112 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv30.c calc_ref(fb, l, 1, j)); fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv35.c nv35_fb_tile_comp(struct nvkm_fb *fb, int i, u32 size, u32 flags, fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv35.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); fb 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv35.c if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv36.c nv36_fb_tile_comp(struct nvkm_fb *fb, int i, u32 size, u32 flags, fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv36.c u32 tags = round_up(tiles / fb->ram->parts, 0x40); fb 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv36.c if (!nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c nv40_fb_tile_comp(struct nvkm_fb *fb, int i, u32 size, u32 flags, fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c u32 tags = round_up(tiles / fb->ram->parts, 0x100); fb 36 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c !nvkm_mm_head(&fb->tags, 0, 1, tags, tags, 1, &tile->tag)) { fb 47 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c nv40_fb_init(struct nvkm_fb *fb) fb 49 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv40.c nvkm_mask(fb->subdev.device, 0x10033c, 0x00008000, 0x00000000); fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv41.c nv41_fb_tile_prog(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) fb 32 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv41.c struct nvkm_device *device = fb->subdev.device; fb 41 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv41.c nv41_fb_init(struct nvkm_fb *fb) fb 43 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv41.c nvkm_wr32(fb->subdev.device, 0x100800, 0x00000001); fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv44.c nv44_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, fb 40 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv44.c nv44_fb_tile_prog(struct nvkm_fb *fb, int i, struct nvkm_fb_tile *tile) fb 42 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv44.c struct nvkm_device *device = fb->subdev.device; fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv44.c nv44_fb_init(struct nvkm_fb *fb) fb 52 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv44.c struct nvkm_device *device = fb->subdev.device; fb 30 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv46.c nv46_fb_tile_init(struct nvkm_fb *fb, int i, u32 addr, u32 size, u32 pitch, fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nv50_fb *fb = nv50_fb(base); fb 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c return fb->func->ram_new(&fb->base, pram); fb 137 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nv50_fb *fb = nv50_fb(base); fb 138 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nvkm_subdev *subdev = &fb->base.subdev; fb 198 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nv50_fb *fb = nv50_fb(base); fb 199 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nvkm_device *device = fb->base.subdev.device; fb 201 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c fb->r100c08_page = alloc_page(GFP_KERNEL | __GFP_ZERO); fb 202 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c if (fb->r100c08_page) { fb 203 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c fb->r100c08 = dma_map_page(device->dev, fb->r100c08_page, 0, fb 205 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c if (dma_mapping_error(device->dev, fb->r100c08)) fb 215 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nv50_fb *fb = nv50_fb(base); fb 216 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nvkm_device *device = fb->base.subdev.device; fb 222 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c nvkm_wr32(device, 0x100c08, fb->r100c08 >> 8); fb 226 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c nvkm_wr32(device, 0x100c90, fb->func->trap); fb 232 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nv50_fb *fb = nv50_fb(base); fb 233 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c if (fb->func->tags) fb 234 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c return fb->func->tags(&fb->base); fb 241 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nv50_fb *fb = nv50_fb(base); fb 242 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nvkm_device *device = fb->base.subdev.device; fb 244 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c if (fb->r100c08_page) { fb 245 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c dma_unmap_page(device->dev, fb->r100c08, PAGE_SIZE, fb 247 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c __free_page(fb->r100c08_page); fb 250 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c return fb; fb 267 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c struct nv50_fb *fb; fb 269 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c if (!(fb = kzalloc(sizeof(*fb), GFP_KERNEL))) fb 271 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c nvkm_fb_ctor(&nv50_fb_, device, index, &fb->base); fb 272 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c fb->func = func; fb 273 drivers/gpu/drm/nouveau/nvkm/subdev/fb/nv50.c *pfb = &fb->base; fb 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_lock(&vram->ram->fb->subdev.mutex); fb 89 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_unlock(&vram->ram->fb->subdev.mutex); fb 117 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c if (!device->fb || !(ram = device->fb->ram)) fb 119 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ram = device->fb->ram; fb 129 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_lock(&ram->fb->subdev.mutex); fb 137 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_unlock(&ram->fb->subdev.mutex); fb 146 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c mutex_unlock(&ram->fb->subdev.mutex); fb 172 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c nvkm_ram_ctor(const struct nvkm_ram_func *func, struct nvkm_fb *fb, fb 191 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c struct nvkm_subdev *subdev = &fb->subdev; fb 196 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c ram->fb = fb; fb 211 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c nvkm_ram_new_(const struct nvkm_ram_func *func, struct nvkm_fb *fb, fb 216 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ram.c return nvkm_ram_ctor(func, fb, type, size, *pram); fb 9 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h struct nvkm_fb *fb; fb 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_init(struct ramfuc *ram, struct nvkm_fb *fb) fb 61 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h int ret = nvkm_memx_init(fb->subdev.device->pmu, &ram->memx); fb 66 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ram->fb = fb; fb 74 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h if (ram->fb) { fb 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ram->fb = NULL; fb 84 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h struct nvkm_device *device = ram->fb->subdev.device; fb 147 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h ramfuc_train_result(struct nvkm_fb *fb, u32 *result, u32 rsize) fb 149 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramfuc.h return nvkm_memx_train_result(fb->subdev.device->pmu, result, rsize); fb 110 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_fb *fb = ram->base.fb; fb 111 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_device *device = fb->subdev.device; fb 131 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 180 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = ram_init(fuc, ram->base.fb); fb 410 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 438 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 491 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_ctor(const struct nvkm_ram_func *func, struct nvkm_fb *fb, fb 494 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_subdev *subdev = &fb->subdev; fb 526 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = nvkm_ram_ctor(func, fb, type, total, ram); fb 568 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_fb *fb, struct nvkm_ram **pram) fb 570 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c struct nvkm_subdev *subdev = &fb->subdev; fb 579 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c ret = gf100_ram_ctor(func, fb, &ram->base); fb 669 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c gf100_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 671 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf100.c return gf100_ram_new_(&gf100_ram, fb, pram); fb 57 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c gf108_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgf108.c return gf100_ram_new_(&gf108_ram, fb, pram); fb 232 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_fb *fb = ram->base.fb; fb 234 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_device *device = fb->subdev.device; fb 263 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) fb 664 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) fb 714 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) fb 946 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c if (nvkm_device_engine(ram->base.fb->subdev.device, NVKM_ENGINE_DISP)) fb 964 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 1044 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 1048 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = ram_init(fuc, ram->base.fb); fb 1115 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_clk *clk = ram->base.fb->subdev.device->clk; fb 1157 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 1235 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 1274 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = ram->fb->subdev.device->bios; fb 1334 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->fb->subdev; fb 1370 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c u8 ramcfg = nvbios_ramcfg_index(&ram->fb->subdev); fb 1399 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &ram->fb->subdev; fb 1441 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_bios *bios = ram->base.fb->subdev.device->bios; fb 1521 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_new_(const struct nvkm_ram_func *func, struct nvkm_fb *fb, fb 1524 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c struct nvkm_subdev *subdev = &fb->subdev; fb 1537 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c ret = gf100_ram_ctor(func, fb, &ram->base); fb 1713 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c gk104_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 1715 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgk104.c return gk104_ram_new_(&gk104_ram, fb, pram); fb 48 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c gm107_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 50 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm107.c return gk104_ram_new_(&gm107_ram, fb, pram); fb 63 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c gm200_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 65 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgm200.c return gk104_ram_new_(&gm200_ram, fb, pram); fb 33 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c struct nvkm_subdev *subdev = &ram->fb->subdev; fb 90 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c gp100_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 97 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgp100.c return gf100_ram_ctor(&gp100_ram, fb, ram); fb 158 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 246 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ram_train_result(ram->base.fb, result, 64); fb 281 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 351 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 468 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_gpio *gpio = fuc->base.fb->subdev.device->gpio; fb 497 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 559 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = ram_init(fuc, ram->base.fb); fb 887 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 940 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c gt215_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 949 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramgt215.c ret = nv50_ram_ctor(>215_ram_func, fb, &ram->base); fb 36 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 59 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c mcp77_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 61 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c struct nvkm_device *device = fb->subdev.device; fb 73 drivers/gpu/drm/nouveau/nvkm/subdev/fb/rammcp77.c ret = nvkm_ram_ctor(&mcp77_ram_func, fb, NVKM_RAM_TYPE_STOLEN, fb 32 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv04.c nv04_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv04.c struct nvkm_device *device = fb->subdev.device; fb 64 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv04.c return nvkm_ram_new_(&nv04_ram_func, fb, type, size, pram); fb 27 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv10.c nv10_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 29 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv10.c struct nvkm_device *device = fb->subdev.device; fb 39 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv10.c return nvkm_ram_new_(&nv04_ram_func, fb, type, size, pram); fb 27 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c nv1a_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 34 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c if (dev_is_pci(fb->subdev.device->dev)) fb 35 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c pdev = to_pci_dev(fb->subdev.device->dev); fb 42 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c nvkm_error(&fb->subdev, "no bridge device\n"); fb 46 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c if (fb->subdev.device->chipset == 0x1a) { fb 54 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv1a.c return nvkm_ram_new_(&nv04_ram_func, fb, NVKM_RAM_TYPE_STOLEN, fb 27 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv20.c nv20_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 29 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv20.c struct nvkm_device *device = fb->subdev.device; fb 42 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv20.c ret = nvkm_ram_new_(&nv04_ram_func, fb, type, size, pram); fb 37 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 70 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 191 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nv40_ram_new_(struct nvkm_fb *fb, enum nvkm_ram_type type, u64 size, fb 198 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c return nvkm_ram_ctor(&nv40_ram_func, fb, type, size, &ram->base); fb 202 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c nv40_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 204 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c struct nvkm_device *device = fb->subdev.device; fb 217 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.c ret = nv40_ram_new_(fb, type, size, pram); fb 13 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv40.h int nv40_ram_new_(struct nvkm_fb *fb, enum nvkm_ram_type, u64, fb 27 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv41.c nv41_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 29 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv41.c struct nvkm_device *device = fb->subdev.device; fb 42 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv41.c ret = nv40_ram_new_(fb, type, size, pram); fb 27 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv44.c nv44_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 29 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv44.c struct nvkm_device *device = fb->subdev.device; fb 41 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv44.c return nv40_ram_new_(fb, type, size, pram); fb 27 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv49.c nv49_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 29 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv49.c struct nvkm_device *device = fb->subdev.device; fb 42 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv49.c ret = nv40_ram_new_(fb, type, size, pram); fb 27 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv4e.c nv4e_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 29 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv4e.c struct nvkm_device *device = fb->subdev.device; fb 31 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv4e.c return nvkm_ram_new_(&nv04_ram_func, fb, NVKM_RAM_TYPE_UNKNOWN, fb 76 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 155 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 223 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->base.fb->subdev; fb 484 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_device *device = ram->base.fb->subdev.device; fb 506 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_subdev *subdev = &ram->fb->subdev; fb 543 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_fb *fb, struct nvkm_ram *ram) fb 545 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c struct nvkm_device *device = fb->subdev.device; fb 570 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ret = nvkm_ram_ctor(func, fb, type, size, ram); fb 586 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c nv50_ram_new(struct nvkm_fb *fb, struct nvkm_ram **pram) fb 595 drivers/gpu/drm/nouveau/nvkm/subdev/fb/ramnv50.c ret = nv50_ram_ctor(&nv50_ram_func, fb, &ram->base); fb 157 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c struct nvkm_fb *fb = device->fb; fb 158 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c struct nvkm_ram *ram = fb->ram; fb 203 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c nvkm_mm_fini(&fb->tags); fb 204 drivers/gpu/drm/nouveau/nvkm/subdev/ltc/gf100.c return nvkm_mm_init(&fb->tags, 0, 0, ltc->num_tags, 1); fb 318 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c struct nvkm_mm *mm = &device->fb->ram->vram; fb 373 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/base.c if (mmu->subdev.device->fb && mmu->subdev.device->fb->ram) fb 94 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm200.c if (device->fb->page) fb 52 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/gm20b.c if (device->fb->page) fb 407 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmgf100.c switch (mmu->subdev.device->fb->page) { fb 236 drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmmnv50.c struct nvkm_ram *ram = device->fb->ram; fb 50 drivers/gpu/drm/omapdrm/omap_debugfs.c struct drm_framebuffer *fb; fb 53 drivers/gpu/drm/omapdrm/omap_debugfs.c omap_framebuffer_describe(priv->fbdev->fb, m); fb 56 drivers/gpu/drm/omapdrm/omap_debugfs.c list_for_each_entry(fb, &dev->mode_config.fb_list, head) { fb 57 drivers/gpu/drm/omapdrm/omap_debugfs.c if (fb == priv->fbdev->fb) fb 61 drivers/gpu/drm/omapdrm/omap_debugfs.c omap_framebuffer_describe(fb, m); fb 58 drivers/gpu/drm/omapdrm/omap_fb.c static int omap_framebuffer_dirty(struct drm_framebuffer *fb, fb 66 drivers/gpu/drm/omapdrm/omap_fb.c drm_modeset_lock_all(fb->dev); fb 68 drivers/gpu/drm/omapdrm/omap_fb.c drm_for_each_crtc(crtc, fb->dev) fb 71 drivers/gpu/drm/omapdrm/omap_fb.c drm_modeset_unlock_all(fb->dev); fb 82 drivers/gpu/drm/omapdrm/omap_fb.c static u32 get_linear_addr(struct drm_framebuffer *fb, fb 85 drivers/gpu/drm/omapdrm/omap_fb.c struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); fb 89 drivers/gpu/drm/omapdrm/omap_fb.c offset = fb->offsets[n] fb 91 drivers/gpu/drm/omapdrm/omap_fb.c + (y * fb->pitches[n] / (n == 0 ? 1 : format->vsub)); fb 96 drivers/gpu/drm/omapdrm/omap_fb.c bool omap_framebuffer_supports_rotation(struct drm_framebuffer *fb) fb 98 drivers/gpu/drm/omapdrm/omap_fb.c return omap_gem_flags(fb->obj[0]) & OMAP_BO_TILED; fb 133 drivers/gpu/drm/omapdrm/omap_fb.c void omap_framebuffer_update_scanout(struct drm_framebuffer *fb, fb 136 drivers/gpu/drm/omapdrm/omap_fb.c struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); fb 141 drivers/gpu/drm/omapdrm/omap_fb.c info->fourcc = fb->format->format; fb 157 drivers/gpu/drm/omapdrm/omap_fb.c if (omap_gem_flags(fb->obj[0]) & OMAP_BO_TILED) { fb 169 drivers/gpu/drm/omapdrm/omap_fb.c if (fb->format->format == DRM_FORMAT_UYVY || fb 170 drivers/gpu/drm/omapdrm/omap_fb.c fb->format->format == DRM_FORMAT_YUYV) { fb 182 drivers/gpu/drm/omapdrm/omap_fb.c omap_gem_rotated_dma_addr(fb->obj[0], orient, x, y, fb 187 drivers/gpu/drm/omapdrm/omap_fb.c info->screen_width = omap_gem_tiled_stride(fb->obj[0], orient); fb 196 drivers/gpu/drm/omapdrm/omap_fb.c dev_warn(fb->dev->dev, fb 202 drivers/gpu/drm/omapdrm/omap_fb.c info->paddr = get_linear_addr(fb, format, 0, x, y); fb 205 drivers/gpu/drm/omapdrm/omap_fb.c info->screen_width = fb->pitches[0]; fb 211 drivers/gpu/drm/omapdrm/omap_fb.c if (fb->format->format == DRM_FORMAT_NV12) { fb 215 drivers/gpu/drm/omapdrm/omap_fb.c WARN_ON(!(omap_gem_flags(fb->obj[1]) & OMAP_BO_TILED)); fb 216 drivers/gpu/drm/omapdrm/omap_fb.c omap_gem_rotated_dma_addr(fb->obj[1], orient, x/2, y/2, fb 219 drivers/gpu/drm/omapdrm/omap_fb.c info->p_uv_addr = get_linear_addr(fb, format, 1, x, y); fb 227 drivers/gpu/drm/omapdrm/omap_fb.c int omap_framebuffer_pin(struct drm_framebuffer *fb) fb 229 drivers/gpu/drm/omapdrm/omap_fb.c struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); fb 230 drivers/gpu/drm/omapdrm/omap_fb.c int ret, i, n = fb->format->num_planes; fb 242 drivers/gpu/drm/omapdrm/omap_fb.c ret = omap_gem_pin(fb->obj[i], &plane->dma_addr); fb 245 drivers/gpu/drm/omapdrm/omap_fb.c omap_gem_dma_sync_buffer(fb->obj[i], DMA_TO_DEVICE); fb 257 drivers/gpu/drm/omapdrm/omap_fb.c omap_gem_unpin(fb->obj[i]); fb 267 drivers/gpu/drm/omapdrm/omap_fb.c void omap_framebuffer_unpin(struct drm_framebuffer *fb) fb 269 drivers/gpu/drm/omapdrm/omap_fb.c struct omap_framebuffer *omap_fb = to_omap_framebuffer(fb); fb 270 drivers/gpu/drm/omapdrm/omap_fb.c int i, n = fb->format->num_planes; fb 283 drivers/gpu/drm/omapdrm/omap_fb.c omap_gem_unpin(fb->obj[i]); fb 291 drivers/gpu/drm/omapdrm/omap_fb.c void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m) fb 293 drivers/gpu/drm/omapdrm/omap_fb.c int i, n = fb->format->num_planes; fb 295 drivers/gpu/drm/omapdrm/omap_fb.c seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width, fb->height, fb 296 drivers/gpu/drm/omapdrm/omap_fb.c (char *)&fb->format->format); fb 300 drivers/gpu/drm/omapdrm/omap_fb.c i, fb->offsets[n], fb->pitches[i]); fb 301 drivers/gpu/drm/omapdrm/omap_fb.c omap_gem_describe(fb->obj[i], m); fb 313 drivers/gpu/drm/omapdrm/omap_fb.c struct drm_framebuffer *fb; fb 319 drivers/gpu/drm/omapdrm/omap_fb.c fb = ERR_PTR(-ENOENT); fb 324 drivers/gpu/drm/omapdrm/omap_fb.c fb = omap_framebuffer_init(dev, mode_cmd, bos); fb 325 drivers/gpu/drm/omapdrm/omap_fb.c if (IS_ERR(fb)) fb 328 drivers/gpu/drm/omapdrm/omap_fb.c return fb; fb 334 drivers/gpu/drm/omapdrm/omap_fb.c return fb; fb 342 drivers/gpu/drm/omapdrm/omap_fb.c struct drm_framebuffer *fb = NULL; fb 370 drivers/gpu/drm/omapdrm/omap_fb.c fb = &omap_fb->base; fb 408 drivers/gpu/drm/omapdrm/omap_fb.c fb->obj[i] = bos[i]; fb 412 drivers/gpu/drm/omapdrm/omap_fb.c drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); fb 414 drivers/gpu/drm/omapdrm/omap_fb.c ret = drm_framebuffer_init(dev, fb, &omap_framebuffer_funcs); fb 420 drivers/gpu/drm/omapdrm/omap_fb.c DBG("create: FB ID: %d (%p)", fb->base.id, fb); fb 422 drivers/gpu/drm/omapdrm/omap_fb.c return fb; fb 26 drivers/gpu/drm/omapdrm/omap_fb.h int omap_framebuffer_pin(struct drm_framebuffer *fb); fb 27 drivers/gpu/drm/omapdrm/omap_fb.h void omap_framebuffer_unpin(struct drm_framebuffer *fb); fb 28 drivers/gpu/drm/omapdrm/omap_fb.h void omap_framebuffer_update_scanout(struct drm_framebuffer *fb, fb 30 drivers/gpu/drm/omapdrm/omap_fb.h bool omap_framebuffer_supports_rotation(struct drm_framebuffer *fb); fb 31 drivers/gpu/drm/omapdrm/omap_fb.h void omap_framebuffer_describe(struct drm_framebuffer *fb, struct seq_file *m); fb 27 drivers/gpu/drm/omapdrm/omap_fbdev.c struct drm_framebuffer *fb; fb 96 drivers/gpu/drm/omapdrm/omap_fbdev.c struct drm_framebuffer *fb = NULL; fb 137 drivers/gpu/drm/omapdrm/omap_fbdev.c fb = omap_framebuffer_init(dev, &mode_cmd, &fbdev->bo); fb 138 drivers/gpu/drm/omapdrm/omap_fbdev.c if (IS_ERR(fb)) { fb 144 drivers/gpu/drm/omapdrm/omap_fbdev.c ret = PTR_ERR(fb); fb 172 drivers/gpu/drm/omapdrm/omap_fbdev.c fbdev->fb = fb; fb 173 drivers/gpu/drm/omapdrm/omap_fbdev.c helper->fb = fb; fb 197 drivers/gpu/drm/omapdrm/omap_fbdev.c DBG("allocated %dx%d fb", fbdev->fb->width, fbdev->fb->height); fb 204 drivers/gpu/drm/omapdrm/omap_fbdev.c if (fb) fb 205 drivers/gpu/drm/omapdrm/omap_fbdev.c drm_framebuffer_remove(fb); fb 291 drivers/gpu/drm/omapdrm/omap_fbdev.c if (fbdev->fb) fb 292 drivers/gpu/drm/omapdrm/omap_fbdev.c drm_framebuffer_remove(fbdev->fb); fb 29 drivers/gpu/drm/omapdrm/omap_plane.c if (!new_state->fb) fb 32 drivers/gpu/drm/omapdrm/omap_plane.c return omap_framebuffer_pin(new_state->fb); fb 38 drivers/gpu/drm/omapdrm/omap_plane.c if (old_state->fb) fb 39 drivers/gpu/drm/omapdrm/omap_plane.c omap_framebuffer_unpin(old_state->fb); fb 51 drivers/gpu/drm/omapdrm/omap_plane.c DBG("%s, crtc=%p fb=%p", omap_plane->name, state->crtc, state->fb); fb 64 drivers/gpu/drm/omapdrm/omap_plane.c omap_framebuffer_update_scanout(state->fb, state, &info); fb 104 drivers/gpu/drm/omapdrm/omap_plane.c if (!state->fb) fb 129 drivers/gpu/drm/omapdrm/omap_plane.c !omap_framebuffer_supports_rotation(state->fb)) fb 90 drivers/gpu/drm/pl111/pl111_display.c struct drm_framebuffer *old_fb = pipe->plane.state->fb; fb 91 drivers/gpu/drm/pl111/pl111_display.c struct drm_framebuffer *fb = pstate->fb; fb 96 drivers/gpu/drm/pl111/pl111_display.c if (fb) { fb 97 drivers/gpu/drm/pl111/pl111_display.c u32 offset = drm_fb_cma_get_gem_addr(fb, pstate, 0); fb 106 drivers/gpu/drm/pl111/pl111_display.c if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) fb 112 drivers/gpu/drm/pl111/pl111_display.c if (old_fb && old_fb->format != fb->format) fb 128 drivers/gpu/drm/pl111/pl111_display.c struct drm_framebuffer *fb = plane->state->fb; fb 258 drivers/gpu/drm/pl111/pl111_display.c switch (fb->format->format) { fb 329 drivers/gpu/drm/pl111/pl111_display.c fb->format->format); fb 347 drivers/gpu/drm/pl111/pl111_display.c priv->variant_display_enable(drm, fb->format->format); fb 398 drivers/gpu/drm/pl111/pl111_display.c struct drm_framebuffer *fb = pstate->fb; fb 400 drivers/gpu/drm/pl111/pl111_display.c if (fb) { fb 401 drivers/gpu/drm/pl111/pl111_display.c u32 addr = drm_fb_cma_get_gem_addr(fb, pstate, 0); fb 409 drivers/gpu/drm/qxl/qxl_display.c static int qxl_framebuffer_surface_dirty(struct drm_framebuffer *fb, fb 416 drivers/gpu/drm/qxl/qxl_display.c struct qxl_device *qdev = fb->dev->dev_private; fb 422 drivers/gpu/drm/qxl/qxl_display.c drm_modeset_lock_all(fb->dev); fb 424 drivers/gpu/drm/qxl/qxl_display.c qobj = gem_to_qxl_bo(fb->obj[0]); fb 428 drivers/gpu/drm/qxl/qxl_display.c drm_modeset_unlock_all(fb->dev); fb 436 drivers/gpu/drm/qxl/qxl_display.c norect.x2 = fb->width; fb 437 drivers/gpu/drm/qxl/qxl_display.c norect.y2 = fb->height; fb 443 drivers/gpu/drm/qxl/qxl_display.c qxl_draw_dirty_fb(qdev, fb, qobj, flags, color, fb 446 drivers/gpu/drm/qxl/qxl_display.c drm_modeset_unlock_all(fb->dev); fb 481 drivers/gpu/drm/qxl/qxl_display.c if (!state->crtc || !state->fb) fb 484 drivers/gpu/drm/qxl/qxl_display.c bo = gem_to_qxl_bo(state->fb->obj[0]); fb 493 drivers/gpu/drm/qxl/qxl_display.c struct drm_framebuffer *fb = plane->state->fb; fb 518 drivers/gpu/drm/qxl/qxl_display.c cmd->u.set.position.x = plane->state->crtc_x + fb->hot_x; fb 519 drivers/gpu/drm/qxl/qxl_display.c cmd->u.set.position.y = plane->state->crtc_y + fb->hot_y; fb 540 drivers/gpu/drm/qxl/qxl_display.c struct qxl_bo *bo = gem_to_qxl_bo(plane->state->fb->obj[0]); fb 545 drivers/gpu/drm/qxl/qxl_display.c .x2 = plane->state->fb->width, fb 546 drivers/gpu/drm/qxl/qxl_display.c .y2 = plane->state->fb->height fb 563 drivers/gpu/drm/qxl/qxl_display.c qxl_draw_dirty_fb(qdev, plane->state->fb, bo, 0, 0, &norect, 1, 1, fb 572 drivers/gpu/drm/qxl/qxl_display.c if (old_state->fb) { fb 573 drivers/gpu/drm/qxl/qxl_display.c struct qxl_bo *bo = gem_to_qxl_bo(old_state->fb->obj[0]); fb 587 drivers/gpu/drm/qxl/qxl_display.c struct drm_framebuffer *fb = plane->state->fb; fb 604 drivers/gpu/drm/qxl/qxl_display.c if (fb != old_state->fb) { fb 605 drivers/gpu/drm/qxl/qxl_display.c obj = fb->obj[0]; fb 635 drivers/gpu/drm/qxl/qxl_display.c cursor->header.hot_spot_x = fb->hot_x; fb 636 drivers/gpu/drm/qxl/qxl_display.c cursor->header.hot_spot_y = fb->hot_y; fb 664 drivers/gpu/drm/qxl/qxl_display.c cmd->u.position.x = plane->state->crtc_x + fb->hot_x; fb 665 drivers/gpu/drm/qxl/qxl_display.c cmd->u.position.y = plane->state->crtc_y + fb->hot_y; fb 784 drivers/gpu/drm/qxl/qxl_display.c if (!new_state->fb) fb 787 drivers/gpu/drm/qxl/qxl_display.c obj = new_state->fb->obj[0]; fb 831 drivers/gpu/drm/qxl/qxl_display.c if (!old_state->fb) { fb 839 drivers/gpu/drm/qxl/qxl_display.c obj = old_state->fb->obj[0]; fb 843 drivers/gpu/drm/qxl/qxl_display.c if (old_state->fb != plane->state->fb && user_bo->shadow) { fb 122 drivers/gpu/drm/qxl/qxl_draw.c struct drm_framebuffer *fb, fb 142 drivers/gpu/drm/qxl/qxl_draw.c int stride = fb->pitches[0]; fb 144 drivers/gpu/drm/qxl/qxl_draw.c int depth = fb->format->cpp[0] * 8; fb 424 drivers/gpu/drm/qxl/qxl_drv.h struct drm_framebuffer *fb, fb 1145 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_framebuffer *fb, fb 1164 drivers/gpu/drm/radeon/atombios_crtc.c if (!atomic && !crtc->primary->fb) { fb 1170 drivers/gpu/drm/radeon/atombios_crtc.c target_fb = fb; fb 1172 drivers/gpu/drm/radeon/atombios_crtc.c target_fb = crtc->primary->fb; fb 1451 drivers/gpu/drm/radeon/atombios_crtc.c if (!atomic && fb && fb != crtc->primary->fb) { fb 1452 drivers/gpu/drm/radeon/atombios_crtc.c rbo = gem_to_radeon_bo(fb->obj[0]); fb 1467 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_framebuffer *fb, fb 1485 drivers/gpu/drm/radeon/atombios_crtc.c if (!atomic && !crtc->primary->fb) { fb 1491 drivers/gpu/drm/radeon/atombios_crtc.c target_fb = fb; fb 1493 drivers/gpu/drm/radeon/atombios_crtc.c target_fb = crtc->primary->fb; fb 1660 drivers/gpu/drm/radeon/atombios_crtc.c if (!atomic && fb && fb != crtc->primary->fb) { fb 1661 drivers/gpu/drm/radeon/atombios_crtc.c rbo = gem_to_radeon_bo(fb->obj[0]); fb 1690 drivers/gpu/drm/radeon/atombios_crtc.c struct drm_framebuffer *fb, fb 1697 drivers/gpu/drm/radeon/atombios_crtc.c return dce4_crtc_do_set_base(crtc, fb, x, y, 1); fb 1699 drivers/gpu/drm/radeon/atombios_crtc.c return avivo_crtc_do_set_base(crtc, fb, x, y, 1); fb 1701 drivers/gpu/drm/radeon/atombios_crtc.c return radeon_crtc_do_set_base(crtc, fb, x, y, 1); fb 2166 drivers/gpu/drm/radeon/atombios_crtc.c if (crtc->primary->fb) { fb 2170 drivers/gpu/drm/radeon/atombios_crtc.c rbo = gem_to_radeon_bo(crtc->primary->fb->obj[0]); fb 3228 drivers/gpu/drm/radeon/r100.c const struct drm_framebuffer *fb = fb 3229 drivers/gpu/drm/radeon/r100.c rdev->mode_info.crtcs[0]->base.primary->fb; fb 3232 drivers/gpu/drm/radeon/r100.c pixel_bytes1 = fb->format->cpp[0]; fb 3236 drivers/gpu/drm/radeon/r100.c const struct drm_framebuffer *fb = fb 3237 drivers/gpu/drm/radeon/r100.c rdev->mode_info.crtcs[1]->base.primary->fb; fb 3240 drivers/gpu/drm/radeon/r100.c pixel_bytes2 = fb->format->cpp[0]; fb 116 drivers/gpu/drm/radeon/radeon_connectors.c crtc->x, crtc->y, crtc->primary->fb); fb 1592 drivers/gpu/drm/radeon/radeon_device.c struct drm_framebuffer *fb = crtc->primary->fb; fb 1604 drivers/gpu/drm/radeon/radeon_device.c if (fb == NULL || fb->obj[0] == NULL) { fb 1607 drivers/gpu/drm/radeon/radeon_device.c robj = gem_to_radeon_bo(fb->obj[0]); fb 481 drivers/gpu/drm/radeon/radeon_display.c struct drm_framebuffer *fb, fb 511 drivers/gpu/drm/radeon/radeon_display.c obj = crtc->primary->fb->obj[0]; fb 517 drivers/gpu/drm/radeon/radeon_display.c obj = fb->obj[0]; fb 545 drivers/gpu/drm/radeon/radeon_display.c pitch_pixels = fb->pitches[0] / fb->format->cpp[0]; fb 551 drivers/gpu/drm/radeon/radeon_display.c int byteshift = fb->format->cpp[0] * 8 >> 4; fb 557 drivers/gpu/drm/radeon/radeon_display.c switch (fb->format->cpp[0] * 8) { fb 594 drivers/gpu/drm/radeon/radeon_display.c crtc->primary->fb = fb; fb 1300 drivers/gpu/drm/radeon/radeon_display.c struct drm_framebuffer *fb, fb 1305 drivers/gpu/drm/radeon/radeon_display.c fb->obj[0] = obj; fb 1306 drivers/gpu/drm/radeon/radeon_display.c drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); fb 1307 drivers/gpu/drm/radeon/radeon_display.c ret = drm_framebuffer_init(dev, fb, &radeon_fb_funcs); fb 1309 drivers/gpu/drm/radeon/radeon_display.c fb->obj[0] = NULL; fb 1321 drivers/gpu/drm/radeon/radeon_display.c struct drm_framebuffer *fb; fb 1337 drivers/gpu/drm/radeon/radeon_display.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 1338 drivers/gpu/drm/radeon/radeon_display.c if (fb == NULL) { fb 1343 drivers/gpu/drm/radeon/radeon_display.c ret = radeon_framebuffer_init(dev, fb, mode_cmd, obj); fb 1345 drivers/gpu/drm/radeon/radeon_display.c kfree(fb); fb 1350 drivers/gpu/drm/radeon/radeon_display.c return fb; fb 47 drivers/gpu/drm/radeon/radeon_fb.c struct drm_framebuffer fb; fb 218 drivers/gpu/drm/radeon/radeon_fb.c struct drm_framebuffer *fb = NULL; fb 253 drivers/gpu/drm/radeon/radeon_fb.c ret = radeon_framebuffer_init(rdev->ddev, &rfbdev->fb, &mode_cmd, gobj); fb 259 drivers/gpu/drm/radeon/radeon_fb.c fb = &rfbdev->fb; fb 262 drivers/gpu/drm/radeon/radeon_fb.c rfbdev->helper.fb = fb; fb 290 drivers/gpu/drm/radeon/radeon_fb.c DRM_INFO("fb depth is %d\n", fb->format->depth); fb 291 drivers/gpu/drm/radeon/radeon_fb.c DRM_INFO(" pitch is %d\n", fb->pitches[0]); fb 300 drivers/gpu/drm/radeon/radeon_fb.c if (fb && ret) { fb 302 drivers/gpu/drm/radeon/radeon_fb.c drm_framebuffer_unregister_private(fb); fb 303 drivers/gpu/drm/radeon/radeon_fb.c drm_framebuffer_cleanup(fb); fb 304 drivers/gpu/drm/radeon/radeon_fb.c kfree(fb); fb 311 drivers/gpu/drm/radeon/radeon_fb.c struct drm_framebuffer *fb = &rfbdev->fb; fb 315 drivers/gpu/drm/radeon/radeon_fb.c if (fb->obj[0]) { fb 316 drivers/gpu/drm/radeon/radeon_fb.c radeonfb_destroy_pinned_object(fb->obj[0]); fb 317 drivers/gpu/drm/radeon/radeon_fb.c fb->obj[0] = NULL; fb 318 drivers/gpu/drm/radeon/radeon_fb.c drm_framebuffer_unregister_private(fb); fb 319 drivers/gpu/drm/radeon/radeon_fb.c drm_framebuffer_cleanup(fb); fb 403 drivers/gpu/drm/radeon/radeon_fb.c if (robj == gem_to_radeon_bo(rdev->mode_info.rfbdev->fb.obj[0])) fb 367 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct drm_framebuffer *fb, fb 370 drivers/gpu/drm/radeon/radeon_legacy_crtc.c return radeon_crtc_do_set_base(crtc, fb, x, y, 1); fb 374 drivers/gpu/drm/radeon/radeon_legacy_crtc.c struct drm_framebuffer *fb, fb 393 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (!atomic && !crtc->primary->fb) { fb 399 drivers/gpu/drm/radeon/radeon_legacy_crtc.c target_fb = fb; fb 401 drivers/gpu/drm/radeon/radeon_legacy_crtc.c target_fb = crtc->primary->fb; fb 448 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (!atomic && fb && fb != crtc->primary->fb) { fb 452 drivers/gpu/drm/radeon/radeon_legacy_crtc.c old_rbo = gem_to_radeon_bo(fb->obj[0]); fb 458 drivers/gpu/drm/radeon/radeon_legacy_crtc.c fb = NULL; fb 558 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (!atomic && fb && fb != crtc->primary->fb) { fb 559 drivers/gpu/drm/radeon/radeon_legacy_crtc.c rbo = gem_to_radeon_bo(fb->obj[0]); fb 578 drivers/gpu/drm/radeon/radeon_legacy_crtc.c const struct drm_framebuffer *fb = crtc->primary->fb; fb 602 drivers/gpu/drm/radeon/radeon_legacy_crtc.c switch (fb->format->cpp[0] * 8) { fb 1091 drivers/gpu/drm/radeon/radeon_legacy_crtc.c if (crtc->primary->fb) { fb 1095 drivers/gpu/drm/radeon/radeon_legacy_crtc.c rbo = gem_to_radeon_bo(crtc->primary->fb->obj[0]); fb 849 drivers/gpu/drm/radeon/radeon_mode.h struct drm_framebuffer *fb, fb 862 drivers/gpu/drm/radeon/radeon_mode.h struct drm_framebuffer *fb, fb 866 drivers/gpu/drm/radeon/radeon_mode.h struct drm_framebuffer *fb, fb 933 drivers/gpu/drm/radeon/radeon_mode.h int radeonfb_remove(struct drm_device *dev, struct drm_framebuffer *fb); fb 342 drivers/gpu/drm/rcar-du/rcar_du_plane.c struct drm_framebuffer *fb = state->state.fb; fb 347 drivers/gpu/drm/rcar-du/rcar_du_plane.c pitch = fb->pitches[0]; fb 349 drivers/gpu/drm/rcar-du/rcar_du_plane.c pitch = fb->pitches[0] * 8 / state->format->bpp; fb 352 drivers/gpu/drm/rcar-du/rcar_du_plane.c gem = drm_fb_cma_get_gem_obj(fb, i); fb 353 drivers/gpu/drm/rcar-du/rcar_du_plane.c dma[i] = gem->paddr + fb->offsets[i]; fb 599 drivers/gpu/drm/rcar-du/rcar_du_plane.c *format = rcar_du_format_info(state->fb->format->format); fb 602 drivers/gpu/drm/rcar-du/rcar_du_plane.c state->fb->format->format); fb 152 drivers/gpu/drm/rcar-du/rcar_du_vsp.c struct drm_framebuffer *fb = plane->plane.state->fb; fb 156 drivers/gpu/drm/rcar-du/rcar_du_vsp.c .pitch = fb->pitches[0], fb 174 drivers/gpu/drm/rcar-du/rcar_du_vsp.c + fb->offsets[i]; fb 183 drivers/gpu/drm/rcar-du/rcar_du_vsp.c int rcar_du_vsp_map_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, fb 190 drivers/gpu/drm/rcar-du/rcar_du_vsp.c for (i = 0; i < fb->format->num_planes; ++i) { fb 191 drivers/gpu/drm/rcar-du/rcar_du_vsp.c struct drm_gem_cma_object *gem = drm_fb_cma_get_gem_obj(fb, i); fb 234 drivers/gpu/drm/rcar-du/rcar_du_vsp.c ret = rcar_du_vsp_map_fb(vsp, state->fb, rstate->sg_tables); fb 241 drivers/gpu/drm/rcar-du/rcar_du_vsp.c void rcar_du_vsp_unmap_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, fb 246 drivers/gpu/drm/rcar-du/rcar_du_vsp.c for (i = 0; i < fb->format->num_planes; ++i) { fb 263 drivers/gpu/drm/rcar-du/rcar_du_vsp.c rcar_du_vsp_unmap_fb(vsp, state->fb, rstate->sg_tables); fb 65 drivers/gpu/drm/rcar-du/rcar_du_vsp.h int rcar_du_vsp_map_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, fb 67 drivers/gpu/drm/rcar-du/rcar_du_vsp.h void rcar_du_vsp_unmap_fb(struct rcar_du_vsp *vsp, struct drm_framebuffer *fb, fb 81 drivers/gpu/drm/rcar-du/rcar_du_vsp.h struct drm_framebuffer *fb, fb 87 drivers/gpu/drm/rcar-du/rcar_du_vsp.h struct drm_framebuffer *fb, fb 55 drivers/gpu/drm/rcar-du/rcar_du_writeback.c if (!job->fb) fb 63 drivers/gpu/drm/rcar-du/rcar_du_writeback.c ret = rcar_du_vsp_map_fb(rcrtc->vsp, job->fb, rjob->sg_tables); fb 79 drivers/gpu/drm/rcar-du/rcar_du_writeback.c if (!job->fb) fb 82 drivers/gpu/drm/rcar-du/rcar_du_writeback.c rcar_du_vsp_unmap_fb(rcrtc->vsp, job->fb, rjob->sg_tables); fb 148 drivers/gpu/drm/rcar-du/rcar_du_writeback.c struct drm_framebuffer *fb; fb 153 drivers/gpu/drm/rcar-du/rcar_du_writeback.c fb = conn_state->writeback_job->fb; fb 159 drivers/gpu/drm/rcar-du/rcar_du_writeback.c if (fb->width != mode->hdisplay || fb->height != mode->vdisplay) { fb 161 drivers/gpu/drm/rcar-du/rcar_du_writeback.c __func__, fb->width, fb->height); fb 165 drivers/gpu/drm/rcar-du/rcar_du_writeback.c wb_state->format = rcar_du_format_info(fb->format->format); fb 168 drivers/gpu/drm/rcar-du/rcar_du_writeback.c fb->format->format); fb 220 drivers/gpu/drm/rcar-du/rcar_du_writeback.c struct drm_framebuffer *fb; fb 227 drivers/gpu/drm/rcar-du/rcar_du_writeback.c fb = state->writeback_job->fb; fb 232 drivers/gpu/drm/rcar-du/rcar_du_writeback.c cfg->pitch = fb->pitches[0]; fb 236 drivers/gpu/drm/rcar-du/rcar_du_writeback.c + fb->offsets[i]; fb 31 drivers/gpu/drm/rockchip/rockchip_drm_fb.c struct drm_framebuffer *fb; fb 35 drivers/gpu/drm/rockchip/rockchip_drm_fb.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 36 drivers/gpu/drm/rockchip/rockchip_drm_fb.c if (!fb) fb 39 drivers/gpu/drm/rockchip/rockchip_drm_fb.c drm_helper_mode_fill_fb_struct(dev, fb, mode_cmd); fb 42 drivers/gpu/drm/rockchip/rockchip_drm_fb.c fb->obj[i] = obj[i]; fb 44 drivers/gpu/drm/rockchip/rockchip_drm_fb.c ret = drm_framebuffer_init(dev, fb, &rockchip_drm_fb_funcs); fb 49 drivers/gpu/drm/rockchip/rockchip_drm_fb.c kfree(fb); fb 53 drivers/gpu/drm/rockchip/rockchip_drm_fb.c return fb; fb 62 drivers/gpu/drm/rockchip/rockchip_drm_fb.c struct drm_framebuffer *fb; fb 94 drivers/gpu/drm/rockchip/rockchip_drm_fb.c fb = rockchip_fb_alloc(dev, mode_cmd, objs, i); fb 95 drivers/gpu/drm/rockchip/rockchip_drm_fb.c if (IS_ERR(fb)) { fb 96 drivers/gpu/drm/rockchip/rockchip_drm_fb.c ret = PTR_ERR(fb); fb 100 drivers/gpu/drm/rockchip/rockchip_drm_fb.c return fb; fb 124 drivers/gpu/drm/rockchip/rockchip_drm_fb.c struct drm_framebuffer *fb; fb 126 drivers/gpu/drm/rockchip/rockchip_drm_fb.c fb = rockchip_fb_alloc(dev, mode_cmd, &obj, 1); fb 127 drivers/gpu/drm/rockchip/rockchip_drm_fb.c if (IS_ERR(fb)) fb 128 drivers/gpu/drm/rockchip/rockchip_drm_fb.c return ERR_CAST(fb); fb 130 drivers/gpu/drm/rockchip/rockchip_drm_fb.c return fb; fb 14 drivers/gpu/drm/rockchip/rockchip_drm_fb.h void rockchip_drm_framebuffer_fini(struct drm_framebuffer *fb); fb 46 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c struct drm_framebuffer *fb; fb 76 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c helper->fb = rockchip_drm_framebuffer_init(dev, &mode_cmd, fb 78 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c if (IS_ERR(helper->fb)) { fb 81 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c ret = PTR_ERR(helper->fb); fb 87 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c fb = helper->fb; fb 91 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c offset += fbi->var.yoffset * fb->pitches[0]; fb 99 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c fb->width, fb->height, fb->format->depth, fb 166 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c if (helper->fb) fb 167 drivers/gpu/drm/rockchip/rockchip_drm_fbdev.c drm_framebuffer_put(helper->fb); fb 717 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct drm_framebuffer *fb = state->fb; fb 726 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (!crtc || !fb) fb 742 drivers/gpu/drm/rockchip/rockchip_drm_vop.c ret = vop_convert_format(fb->format->format); fb 750 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (fb->format->is_yuv && ((state->src.x1 >> 16) % 2)) { fb 755 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (fb->format->is_yuv && state->rotation & DRM_MODE_REFLECT_Y) { fb 788 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct drm_framebuffer *fb = state->fb; fb 802 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int is_yuv = fb->format->is_yuv; fb 819 drivers/gpu/drm/rockchip/rockchip_drm_vop.c obj = fb->obj[0]; fb 833 drivers/gpu/drm/rockchip/rockchip_drm_vop.c offset = (src->x1 >> 16) * fb->format->cpp[0]; fb 834 drivers/gpu/drm/rockchip/rockchip_drm_vop.c offset += (src->y1 >> 16) * fb->pitches[0]; fb 835 drivers/gpu/drm/rockchip/rockchip_drm_vop.c dma_addr = rk_obj->dma_addr + offset + fb->offsets[0]; fb 842 drivers/gpu/drm/rockchip/rockchip_drm_vop.c dma_addr += (actual_h - 1) * fb->pitches[0]; fb 844 drivers/gpu/drm/rockchip/rockchip_drm_vop.c format = vop_convert_format(fb->format->format); fb 849 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, yrgb_vir, DIV_ROUND_UP(fb->pitches[0], 4)); fb 858 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int hsub = fb->format->hsub; fb 859 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int vsub = fb->format->vsub; fb 860 drivers/gpu/drm/rockchip/rockchip_drm_vop.c int bpp = fb->format->cpp[1]; fb 862 drivers/gpu/drm/rockchip/rockchip_drm_vop.c uv_obj = fb->obj[1]; fb 866 drivers/gpu/drm/rockchip/rockchip_drm_vop.c offset += (src->y1 >> 16) * fb->pitches[1] / vsub; fb 868 drivers/gpu/drm/rockchip/rockchip_drm_vop.c dma_addr = rk_uv_obj->dma_addr + offset + fb->offsets[1]; fb 869 drivers/gpu/drm/rockchip/rockchip_drm_vop.c VOP_WIN_SET(vop, win, uv_vir, DIV_ROUND_UP(fb->pitches[1], 4)); fb 883 drivers/gpu/drm/rockchip/rockchip_drm_vop.c fb->format); fb 889 drivers/gpu/drm/rockchip/rockchip_drm_vop.c rb_swap = has_rb_swapped(fb->format->format); fb 899 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (fb->format->has_alpha && win_index > 0) { fb 934 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (!plane->state->fb) fb 952 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct drm_framebuffer *old_fb = plane->state->fb; fb 962 drivers/gpu/drm/rockchip/rockchip_drm_vop.c swap(plane->state->fb, new_state->fb); fb 978 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (old_fb && plane->state->fb != old_fb) { fb 1262 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (!old_plane_state->fb) fb 1265 drivers/gpu/drm/rockchip/rockchip_drm_vop.c if (old_plane_state->fb == new_plane_state->fb) fb 1268 drivers/gpu/drm/rockchip/rockchip_drm_vop.c drm_framebuffer_get(old_plane_state->fb); fb 1270 drivers/gpu/drm/rockchip/rockchip_drm_vop.c drm_flip_work_queue(&vop->fb_unref_work, old_plane_state->fb); fb 1400 drivers/gpu/drm/rockchip/rockchip_drm_vop.c struct drm_framebuffer *fb = val; fb 1403 drivers/gpu/drm/rockchip/rockchip_drm_vop.c drm_framebuffer_put(fb); fb 644 drivers/gpu/drm/savage/savage_bci.c _DRM_WRITE_COMBINING, &dev_priv->fb); fb 162 drivers/gpu/drm/savage/savage_drv.h drm_local_map_t *fb; fb 80 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 87 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 92 drivers/gpu/drm/selftests/test-drm_damage_helper.c set_plane_src(&old_state, 0, 0, fb.width << 16, fb.height << 16); fb 93 drivers/gpu/drm/selftests/test-drm_damage_helper.c set_plane_src(&state, 0, 0, fb.width << 16, fb.height << 16); fb 111 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 118 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 144 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 151 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 176 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 183 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 209 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 216 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 238 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 245 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 268 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = 0, fb 291 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 298 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 327 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 334 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 362 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 369 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 398 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 405 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 433 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 440 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 471 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 478 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 510 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 517 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 548 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 555 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 585 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 592 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 624 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 631 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 665 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 672 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 708 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 715 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 745 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 752 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 784 drivers/gpu/drm/selftests/test-drm_damage_helper.c struct drm_framebuffer fb = { fb 791 drivers/gpu/drm/selftests/test-drm_damage_helper.c .fb = &fb, fb 333 drivers/gpu/drm/selftests/test-drm_framebuffer.c struct drm_framebuffer *fb; fb 336 drivers/gpu/drm/selftests/test-drm_framebuffer.c fb = drm_internal_framebuffer_create(&mock_drm_device, r, NULL); fb 90 drivers/gpu/drm/selftests/test-drm_plane_helper.c struct drm_framebuffer fb = { fb 96 drivers/gpu/drm/selftests/test-drm_plane_helper.c .fb = &fb, fb 101 drivers/gpu/drm/selftests/test-drm_plane_helper.c set_src(&plane_state, 0, 0, fb.width << 16, fb.height << 16); fb 102 drivers/gpu/drm/selftests/test-drm_plane_helper.c set_crtc(&plane_state, 0, 0, fb.width, fb.height); fb 165 drivers/gpu/drm/shmobile/shmob_drm_crtc.c format = shmob_drm_format_info(crtc->primary->fb->format->format); fb 289 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_framebuffer *fb = crtc->primary->fb; fb 294 drivers/gpu/drm/shmobile/shmob_drm_crtc.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 295 drivers/gpu/drm/shmobile/shmob_drm_crtc.c scrtc->dma[0] = gem->paddr + fb->offsets[0] fb 296 drivers/gpu/drm/shmobile/shmob_drm_crtc.c + y * fb->pitches[0] + x * bpp / 8; fb 300 drivers/gpu/drm/shmobile/shmob_drm_crtc.c gem = drm_fb_cma_get_gem_obj(fb, 1); fb 301 drivers/gpu/drm/shmobile/shmob_drm_crtc.c scrtc->dma[1] = gem->paddr + fb->offsets[1] fb 302 drivers/gpu/drm/shmobile/shmob_drm_crtc.c + y / (bpp == 4 ? 2 : 1) * fb->pitches[1] fb 353 drivers/gpu/drm/shmobile/shmob_drm_crtc.c format = shmob_drm_format_info(crtc->primary->fb->format->format); fb 356 drivers/gpu/drm/shmobile/shmob_drm_crtc.c crtc->primary->fb->format->format); fb 361 drivers/gpu/drm/shmobile/shmob_drm_crtc.c scrtc->line_size = crtc->primary->fb->pitches[0]; fb 406 drivers/gpu/drm/shmobile/shmob_drm_crtc.c struct drm_framebuffer *fb, fb 422 drivers/gpu/drm/shmobile/shmob_drm_crtc.c crtc->primary->fb = fb; fb 40 drivers/gpu/drm/shmobile/shmob_drm_plane.c struct drm_framebuffer *fb, fb 47 drivers/gpu/drm/shmobile/shmob_drm_plane.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 48 drivers/gpu/drm/shmobile/shmob_drm_plane.c splane->dma[0] = gem->paddr + fb->offsets[0] fb 49 drivers/gpu/drm/shmobile/shmob_drm_plane.c + y * fb->pitches[0] + x * bpp / 8; fb 53 drivers/gpu/drm/shmobile/shmob_drm_plane.c gem = drm_fb_cma_get_gem_obj(fb, 1); fb 54 drivers/gpu/drm/shmobile/shmob_drm_plane.c splane->dma[1] = gem->paddr + fb->offsets[1] fb 55 drivers/gpu/drm/shmobile/shmob_drm_plane.c + y / (bpp == 4 ? 2 : 1) * fb->pitches[1] fb 61 drivers/gpu/drm/shmobile/shmob_drm_plane.c struct drm_framebuffer *fb) fb 138 drivers/gpu/drm/shmobile/shmob_drm_plane.c fb->pitches[0] << LDBBSMWR_BSMW_SHIFT); fb 140 drivers/gpu/drm/shmobile/shmob_drm_plane.c shmob_drm_plane_compute_base(splane, fb, splane->src_x, splane->src_y); fb 163 drivers/gpu/drm/shmobile/shmob_drm_plane.c if (plane->fb == NULL) fb 166 drivers/gpu/drm/shmobile/shmob_drm_plane.c __shmob_drm_plane_setup(splane, plane->fb); fb 171 drivers/gpu/drm/shmobile/shmob_drm_plane.c struct drm_framebuffer *fb, int crtc_x, int crtc_y, fb 181 drivers/gpu/drm/shmobile/shmob_drm_plane.c format = shmob_drm_format_info(fb->format->format); fb 184 drivers/gpu/drm/shmobile/shmob_drm_plane.c fb->format->format); fb 202 drivers/gpu/drm/shmobile/shmob_drm_plane.c __shmob_drm_plane_setup(splane, fb); fb 69 drivers/gpu/drm/sis/sis_mm.c drm_sis_fb_t *fb = data; fb 74 drivers/gpu/drm/sis/sis_mm.c drm_mm_init(&dev_priv->vram_mm, 0, fb->size >> SIS_MM_ALIGN_SHIFT); fb 77 drivers/gpu/drm/sis/sis_mm.c dev_priv->vram_offset = fb->offset; fb 80 drivers/gpu/drm/sis/sis_mm.c DRM_DEBUG("offset = %lu, size = %lu\n", fb->offset, fb->size); fb 189 drivers/gpu/drm/sti/sti_cursor.c struct drm_framebuffer *fb = state->fb; fb 196 drivers/gpu/drm/sti/sti_cursor.c if (!crtc || !fb) fb 241 drivers/gpu/drm/sti/sti_cursor.c if (!drm_fb_cma_get_gem_obj(fb, 0)) { fb 261 drivers/gpu/drm/sti/sti_cursor.c struct drm_framebuffer *fb = state->fb; fb 268 drivers/gpu/drm/sti/sti_cursor.c if (!crtc || !fb) fb 275 drivers/gpu/drm/sti/sti_cursor.c cma_obj = drm_fb_cma_get_gem_obj(fb, 0); fb 622 drivers/gpu/drm/sti/sti_gdp.c struct drm_framebuffer *fb = state->fb; fb 631 drivers/gpu/drm/sti/sti_gdp.c if (!crtc || !fb) fb 647 drivers/gpu/drm/sti/sti_gdp.c format = sti_gdp_fourcc2format(fb->format->format); fb 650 drivers/gpu/drm/sti/sti_gdp.c (char *)&fb->format->format); fb 654 drivers/gpu/drm/sti/sti_gdp.c if (!drm_fb_cma_get_gem_obj(fb, 0)) { fb 703 drivers/gpu/drm/sti/sti_gdp.c struct drm_framebuffer *fb = state->fb; fb 717 drivers/gpu/drm/sti/sti_gdp.c if (!crtc || !fb) fb 720 drivers/gpu/drm/sti/sti_gdp.c if ((oldstate->fb == state->fb) && fb 766 drivers/gpu/drm/sti/sti_gdp.c format = sti_gdp_fourcc2format(fb->format->format); fb 771 drivers/gpu/drm/sti/sti_gdp.c cma_obj = drm_fb_cma_get_gem_obj(fb, 0); fb 773 drivers/gpu/drm/sti/sti_gdp.c DRM_DEBUG_DRIVER("drm FB:%d format:%.4s phys@:0x%lx\n", fb->base.id, fb 774 drivers/gpu/drm/sti/sti_gdp.c (char *)&fb->format->format, fb 778 drivers/gpu/drm/sti/sti_gdp.c bpp = fb->format->cpp[0]; fb 779 drivers/gpu/drm/sti/sti_gdp.c top_field->gam_gdp_pml = (u32)cma_obj->paddr + fb->offsets[0]; fb 781 drivers/gpu/drm/sti/sti_gdp.c top_field->gam_gdp_pml += src_y * fb->pitches[0]; fb 795 drivers/gpu/drm/sti/sti_gdp.c top_field->gam_gdp_pmp = fb->pitches[0]; fb 806 drivers/gpu/drm/sti/sti_gdp.c fb->pitches[0]; fb 1025 drivers/gpu/drm/sti/sti_hqvdp.c struct drm_framebuffer *fb = state->fb; fb 1032 drivers/gpu/drm/sti/sti_hqvdp.c if (!crtc || !fb) fb 1054 drivers/gpu/drm/sti/sti_hqvdp.c if (!drm_fb_cma_get_gem_obj(fb, 0)) { fb 1116 drivers/gpu/drm/sti/sti_hqvdp.c struct drm_framebuffer *fb = state->fb; fb 1125 drivers/gpu/drm/sti/sti_hqvdp.c if (!crtc || !fb) fb 1128 drivers/gpu/drm/sti/sti_hqvdp.c if ((oldstate->fb == state->fb) && fb 1174 drivers/gpu/drm/sti/sti_hqvdp.c cma_obj = drm_fb_cma_get_gem_obj(fb, 0); fb 1176 drivers/gpu/drm/sti/sti_hqvdp.c DRM_DEBUG_DRIVER("drm FB:%d format:%.4s phys@:0x%lx\n", fb->base.id, fb 1177 drivers/gpu/drm/sti/sti_hqvdp.c (char *)&fb->format->format, fb 1181 drivers/gpu/drm/sti/sti_hqvdp.c cmd->top.current_luma = (u32)cma_obj->paddr + fb->offsets[0]; fb 1182 drivers/gpu/drm/sti/sti_hqvdp.c cmd->top.current_chroma = (u32)cma_obj->paddr + fb->offsets[1]; fb 1185 drivers/gpu/drm/sti/sti_hqvdp.c cmd->top.luma_processed_pitch = fb->pitches[0]; fb 1186 drivers/gpu/drm/sti/sti_hqvdp.c cmd->top.luma_src_pitch = fb->pitches[0]; fb 1187 drivers/gpu/drm/sti/sti_hqvdp.c cmd->top.chroma_processed_pitch = fb->pitches[1]; fb 1188 drivers/gpu/drm/sti/sti_hqvdp.c cmd->top.chroma_src_pitch = fb->pitches[1]; fb 1201 drivers/gpu/drm/sti/sti_hqvdp.c if (fb->flags & DRM_MODE_FB_INTERLACED) { fb 1229 drivers/gpu/drm/sti/sti_hqvdp.c if (fb->flags & DRM_MODE_FB_INTERLACED) fb 72 drivers/gpu/drm/sti/sti_plane.c if (state->fb) { fb 77 drivers/gpu/drm/sti/sti_plane.c state->fb->width, fb 78 drivers/gpu/drm/sti/sti_plane.c state->fb->height, fb 79 drivers/gpu/drm/sti/sti_plane.c (char *)&state->fb->format->format, fb 737 drivers/gpu/drm/stm/ltdc.c struct drm_framebuffer *fb = state->fb; fb 742 drivers/gpu/drm/stm/ltdc.c if (!fb) fb 763 drivers/gpu/drm/stm/ltdc.c struct drm_framebuffer *fb = state->fb; fb 773 drivers/gpu/drm/stm/ltdc.c if (!state->crtc || !fb) { fb 785 drivers/gpu/drm/stm/ltdc.c plane->base.id, fb->base.id, fb 805 drivers/gpu/drm/stm/ltdc.c pf = to_ltdc_pixelformat(fb->format->format); fb 812 drivers/gpu/drm/stm/ltdc.c (char *)&fb->format->format); fb 818 drivers/gpu/drm/stm/ltdc.c pitch_in_bytes = fb->pitches[0]; fb 819 drivers/gpu/drm/stm/ltdc.c line_length = fb->format->cpp[0] * fb 831 drivers/gpu/drm/stm/ltdc.c if (!fb->format->has_alpha) fb 847 drivers/gpu/drm/stm/ltdc.c paddr = (u32)drm_fb_cma_get_gem_addr(fb, state, 0); fb 853 drivers/gpu/drm/stm/ltdc.c val = fb->format->format == DRM_FORMAT_C8 ? LXCR_CLUTEN : 0; fb 203 drivers/gpu/drm/sun4i/sun4i_backend.c struct drm_framebuffer *fb = state->fb; fb 204 drivers/gpu/drm/sun4i/sun4i_backend.c const struct drm_format_info *format = fb->format; fb 260 drivers/gpu/drm/sun4i/sun4i_backend.c struct drm_framebuffer *fb = state->fb; fb 289 drivers/gpu/drm/sun4i/sun4i_backend.c if (fb->format->is_yuv) fb 292 drivers/gpu/drm/sun4i/sun4i_backend.c ret = sun4i_backend_drm_format_to_layer(fb->format->format, &val); fb 330 drivers/gpu/drm/sun4i/sun4i_backend.c struct drm_framebuffer *fb, fb 337 drivers/gpu/drm/sun4i/sun4i_backend.c DRM_DEBUG_DRIVER("Layer line width: %d bits\n", fb->pitches[0] * 8); fb 339 drivers/gpu/drm/sun4i/sun4i_backend.c fb->pitches[0] * 8); fb 348 drivers/gpu/drm/sun4i/sun4i_backend.c struct drm_framebuffer *fb = state->fb; fb 353 drivers/gpu/drm/sun4i/sun4i_backend.c DRM_DEBUG_DRIVER("Layer line width: %d bits\n", fb->pitches[0] * 8); fb 356 drivers/gpu/drm/sun4i/sun4i_backend.c fb->pitches[0] * 8); fb 359 drivers/gpu/drm/sun4i/sun4i_backend.c paddr = drm_fb_cma_get_gem_addr(fb, state, 0); fb 362 drivers/gpu/drm/sun4i/sun4i_backend.c if (fb->format->is_yuv) fb 363 drivers/gpu/drm/sun4i/sun4i_backend.c return sun4i_backend_update_yuv_buffer(backend, fb, paddr); fb 428 drivers/gpu/drm/sun4i/sun4i_backend.c uint32_t format = state->fb->format->format; fb 429 drivers/gpu/drm/sun4i/sun4i_backend.c uint64_t modifier = state->fb->modifier; fb 511 drivers/gpu/drm/sun4i/sun4i_backend.c struct drm_framebuffer *fb = plane_state->fb; fb 523 drivers/gpu/drm/sun4i/sun4i_backend.c if (fb->format->is_yuv) { fb 530 drivers/gpu/drm/sun4i/sun4i_backend.c drm_get_format_name(fb->format->format, fb 532 drivers/gpu/drm/sun4i/sun4i_backend.c if (fb->format->has_alpha || (plane_state->alpha != DRM_BLEND_ALPHA_OPAQUE)) fb 592 drivers/gpu/drm/sun4i/sun4i_backend.c (plane_states[0]->fb->format->has_alpha || fb 598 drivers/gpu/drm/sun4i/sun4i_backend.c struct drm_framebuffer *fb = p_state->fb; fb 605 drivers/gpu/drm/sun4i/sun4i_backend.c if (fb->format->has_alpha || (p_state->alpha != DRM_BLEND_ALPHA_OPAQUE)) fb 160 drivers/gpu/drm/sun4i/sun4i_frontend.c struct drm_framebuffer *fb = state->fb; fb 166 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->modifier == DRM_FORMAT_MOD_ALLWINNER_TILED) { fb 170 drivers/gpu/drm/sun4i/sun4i_frontend.c strides[0] = SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[0]); fb 182 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 1) { fb 184 drivers/gpu/drm/sun4i/sun4i_frontend.c SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[1]); fb 190 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 2) { fb 192 drivers/gpu/drm/sun4i/sun4i_frontend.c SUN4I_FRONTEND_LINESTRD_TILED(fb->pitches[2]); fb 198 drivers/gpu/drm/sun4i/sun4i_frontend.c strides[0] = fb->pitches[0]; fb 200 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 1) fb 201 drivers/gpu/drm/sun4i/sun4i_frontend.c strides[1] = fb->pitches[1]; fb 203 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 2) fb 204 drivers/gpu/drm/sun4i/sun4i_frontend.c strides[2] = fb->pitches[2]; fb 208 drivers/gpu/drm/sun4i/sun4i_frontend.c DRM_DEBUG_DRIVER("Frontend stride: %d bytes\n", fb->pitches[0]); fb 212 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 1) fb 216 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 2) fb 221 drivers/gpu/drm/sun4i/sun4i_frontend.c swap = sun4i_frontend_format_chroma_requires_swap(fb->format->format); fb 224 drivers/gpu/drm/sun4i/sun4i_frontend.c paddr = drm_fb_cma_get_gem_addr(fb, state, 0); fb 229 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 1) { fb 230 drivers/gpu/drm/sun4i/sun4i_frontend.c paddr = drm_fb_cma_get_gem_addr(fb, state, swap ? 2 : 1); fb 237 drivers/gpu/drm/sun4i/sun4i_frontend.c if (fb->format->num_planes > 2) { fb 238 drivers/gpu/drm/sun4i/sun4i_frontend.c paddr = drm_fb_cma_get_gem_addr(fb, state, swap ? 1 : 2); fb 407 drivers/gpu/drm/sun4i/sun4i_frontend.c struct drm_framebuffer *fb = state->fb; fb 408 drivers/gpu/drm/sun4i/sun4i_frontend.c const struct drm_format_info *format = fb->format; fb 409 drivers/gpu/drm/sun4i/sun4i_frontend.c uint64_t modifier = fb->modifier; fb 498 drivers/gpu/drm/sun4i/sun4i_frontend.c struct drm_framebuffer *fb = state->fb; fb 509 drivers/gpu/drm/sun4i/sun4i_frontend.c chroma_width = DIV_ROUND_UP(luma_width, fb->format->hsub); fb 510 drivers/gpu/drm/sun4i/sun4i_frontend.c chroma_height = DIV_ROUND_UP(luma_height, fb->format->vsub); fb 182 drivers/gpu/drm/sun4i/sun8i_ui_layer.c fmt_info = sun8i_mixer_format_info(state->fb->format->format); fb 200 drivers/gpu/drm/sun4i/sun8i_ui_layer.c struct drm_framebuffer *fb = state->fb; fb 209 drivers/gpu/drm/sun4i/sun8i_ui_layer.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 214 drivers/gpu/drm/sun4i/sun8i_ui_layer.c bpp = fb->format->cpp[0]; fb 215 drivers/gpu/drm/sun4i/sun8i_ui_layer.c paddr = gem->paddr + fb->offsets[0]; fb 219 drivers/gpu/drm/sun4i/sun8i_ui_layer.c paddr += (state->src.y1 >> 16) * fb->pitches[0]; fb 222 drivers/gpu/drm/sun4i/sun8i_ui_layer.c DRM_DEBUG_DRIVER("Layer line width: %d bytes\n", fb->pitches[0]); fb 225 drivers/gpu/drm/sun4i/sun8i_ui_layer.c fb->pitches[0]); fb 73 drivers/gpu/drm/sun4i/sun8i_vi_layer.c const struct drm_format_info *format = state->fb->format; fb 222 drivers/gpu/drm/sun4i/sun8i_vi_layer.c fmt_info = sun8i_mixer_format_info(state->fb->format->format); fb 266 drivers/gpu/drm/sun4i/sun8i_vi_layer.c struct drm_framebuffer *fb = state->fb; fb 267 drivers/gpu/drm/sun4i/sun8i_vi_layer.c const struct drm_format_info *format = fb->format; fb 282 drivers/gpu/drm/sun4i/sun8i_vi_layer.c gem = drm_fb_cma_get_gem_obj(fb, i); fb 287 drivers/gpu/drm/sun4i/sun8i_vi_layer.c paddr = gem->paddr + fb->offsets[i]; fb 299 drivers/gpu/drm/sun4i/sun8i_vi_layer.c paddr += dy * fb->pitches[i]; fb 303 drivers/gpu/drm/sun4i/sun8i_vi_layer.c i + 1, fb->pitches[i]); fb 307 drivers/gpu/drm/sun4i/sun8i_vi_layer.c fb->pitches[i]); fb 614 drivers/gpu/drm/tegra/dc.c err = tegra_plane_format(state->fb->format->format, fb 632 drivers/gpu/drm/tegra/dc.c err = tegra_fb_get_tiling(state->fb, tiling); fb 654 drivers/gpu/drm/tegra/dc.c if (state->fb->format->num_planes > 2) { fb 655 drivers/gpu/drm/tegra/dc.c if (state->fb->pitches[2] != state->fb->pitches[1]) { fb 687 drivers/gpu/drm/tegra/dc.c struct drm_framebuffer *fb = plane->state->fb; fb 693 drivers/gpu/drm/tegra/dc.c if (!plane->state->crtc || !plane->state->fb) fb 708 drivers/gpu/drm/tegra/dc.c window.bits_per_pixel = fb->format->cpp[0] * 8; fb 709 drivers/gpu/drm/tegra/dc.c window.bottom_up = tegra_fb_is_bottom_up(fb) || state->bottom_up; fb 717 drivers/gpu/drm/tegra/dc.c for (i = 0; i < fb->format->num_planes; i++) { fb 718 drivers/gpu/drm/tegra/dc.c struct tegra_bo *bo = tegra_fb_get_plane(fb, i); fb 720 drivers/gpu/drm/tegra/dc.c window.base[i] = bo->paddr + fb->offsets[i]; fb 728 drivers/gpu/drm/tegra/dc.c window.stride[i] = fb->pitches[i]; fb 840 drivers/gpu/drm/tegra/dc.c struct tegra_bo *bo = tegra_fb_get_plane(plane->state->fb, 0); fb 846 drivers/gpu/drm/tegra/dc.c if (!plane->state->crtc || !plane->state->fb) fb 968 drivers/gpu/drm/tegra/drm.c struct drm_framebuffer *fb; fb 972 drivers/gpu/drm/tegra/drm.c list_for_each_entry(fb, &drm->mode_config.fb_list, head) { fb 974 drivers/gpu/drm/tegra/drm.c fb->base.id, fb->width, fb->height, fb 975 drivers/gpu/drm/tegra/drm.c fb->format->depth, fb 976 drivers/gpu/drm/tegra/drm.c fb->format->cpp[0] * 8, fb 977 drivers/gpu/drm/tegra/drm.c drm_framebuffer_read_refcount(fb)); fb 31 drivers/gpu/drm/tegra/drm.h struct drm_framebuffer *fb; fb 105 drivers/gpu/drm/tegra/fb.c struct drm_framebuffer *fb; fb 109 drivers/gpu/drm/tegra/fb.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 110 drivers/gpu/drm/tegra/fb.c if (!fb) fb 113 drivers/gpu/drm/tegra/fb.c drm_helper_mode_fill_fb_struct(drm, fb, mode_cmd); fb 115 drivers/gpu/drm/tegra/fb.c for (i = 0; i < fb->format->num_planes; i++) fb 116 drivers/gpu/drm/tegra/fb.c fb->obj[i] = &planes[i]->gem; fb 118 drivers/gpu/drm/tegra/fb.c err = drm_framebuffer_init(drm, fb, &tegra_fb_funcs); fb 122 drivers/gpu/drm/tegra/fb.c kfree(fb); fb 126 drivers/gpu/drm/tegra/fb.c return fb; fb 136 drivers/gpu/drm/tegra/fb.c struct drm_framebuffer *fb; fb 164 drivers/gpu/drm/tegra/fb.c fb = tegra_fb_alloc(drm, cmd, planes, i); fb 165 drivers/gpu/drm/tegra/fb.c if (IS_ERR(fb)) { fb 166 drivers/gpu/drm/tegra/fb.c err = PTR_ERR(fb); fb 170 drivers/gpu/drm/tegra/fb.c return fb; fb 186 drivers/gpu/drm/tegra/fb.c bo = tegra_fb_get_plane(helper->fb, 0); fb 212 drivers/gpu/drm/tegra/fb.c struct drm_framebuffer *fb; fb 242 drivers/gpu/drm/tegra/fb.c fbdev->fb = tegra_fb_alloc(drm, &cmd, &bo, 1); fb 243 drivers/gpu/drm/tegra/fb.c if (IS_ERR(fbdev->fb)) { fb 244 drivers/gpu/drm/tegra/fb.c err = PTR_ERR(fbdev->fb); fb 248 drivers/gpu/drm/tegra/fb.c return PTR_ERR(fbdev->fb); fb 251 drivers/gpu/drm/tegra/fb.c fb = fbdev->fb; fb 252 drivers/gpu/drm/tegra/fb.c helper->fb = fb; fb 260 drivers/gpu/drm/tegra/fb.c info->var.yoffset * fb->pitches[0]; fb 281 drivers/gpu/drm/tegra/fb.c drm_framebuffer_remove(fb); fb 348 drivers/gpu/drm/tegra/fb.c if (fbdev->fb) { fb 349 drivers/gpu/drm/tegra/fb.c struct tegra_bo *bo = tegra_fb_get_plane(fbdev->fb, 0); fb 357 drivers/gpu/drm/tegra/fb.c drm_framebuffer_remove(fbdev->fb); fb 336 drivers/gpu/drm/tegra/hub.c if (!state->crtc || !state->fb) fb 339 drivers/gpu/drm/tegra/hub.c err = tegra_plane_format(state->fb->format->format, fb 345 drivers/gpu/drm/tegra/hub.c err = tegra_fb_get_tiling(state->fb, tiling); fb 360 drivers/gpu/drm/tegra/hub.c if (state->fb->format->num_planes > 2) { fb 361 drivers/gpu/drm/tegra/hub.c if (state->fb->pitches[2] != state->fb->pitches[1]) { fb 414 drivers/gpu/drm/tegra/hub.c struct drm_framebuffer *fb = plane->state->fb; fb 421 drivers/gpu/drm/tegra/hub.c if (!plane->state->crtc || !plane->state->fb) fb 459 drivers/gpu/drm/tegra/hub.c bo = tegra_fb_get_plane(fb, 0); fb 481 drivers/gpu/drm/tegra/hub.c value = PITCH(fb->pitches[0]); fb 403 drivers/gpu/drm/tegra/plane.c if (new->fb && __drm_format_has_alpha(new->fb->format->format)) fb 419 drivers/gpu/drm/tegra/plane.c if (!new->fb) fb 459 drivers/gpu/drm/tegra/plane.c if (new->fb) fb 62 drivers/gpu/drm/tilcdc/tilcdc_crtc.c static void set_scanout(struct drm_crtc *crtc, struct drm_framebuffer *fb) fb 70 drivers/gpu/drm/tilcdc/tilcdc_crtc.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 72 drivers/gpu/drm/tilcdc/tilcdc_crtc.c start = gem->paddr + fb->offsets[0] + fb 73 drivers/gpu/drm/tilcdc/tilcdc_crtc.c crtc->y * fb->pitches[0] + fb 74 drivers/gpu/drm/tilcdc/tilcdc_crtc.c crtc->x * fb->format->cpp[0]; fb 76 drivers/gpu/drm/tilcdc/tilcdc_crtc.c end = start + (crtc->mode.vdisplay * fb->pitches[0]); fb 282 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct drm_framebuffer *fb = crtc->primary->state->fb; fb 287 drivers/gpu/drm/tilcdc/tilcdc_crtc.c if (WARN_ON(!fb)) fb 382 drivers/gpu/drm/tilcdc/tilcdc_crtc.c switch (fb->format->format) { fb 436 drivers/gpu/drm/tilcdc/tilcdc_crtc.c set_scanout(crtc, fb); fb 582 drivers/gpu/drm/tilcdc/tilcdc_crtc.c struct drm_framebuffer *fb, fb 609 drivers/gpu/drm/tilcdc/tilcdc_crtc.c tilcdc_crtc->next_fb = fb; fb 611 drivers/gpu/drm/tilcdc/tilcdc_crtc.c set_scanout(crtc, fb); fb 164 drivers/gpu/drm/tilcdc/tilcdc_drv.h struct drm_framebuffer *fb, fb 33 drivers/gpu/drm/tilcdc/tilcdc_plane.c if (WARN_ON(!state->fb)) fb 58 drivers/gpu/drm/tilcdc/tilcdc_plane.c state->fb->format->cpp[0]; fb 59 drivers/gpu/drm/tilcdc/tilcdc_plane.c if (state->fb->pitches[0] != pitch) { fb 65 drivers/gpu/drm/tilcdc/tilcdc_plane.c if (state->fb && old_state->fb && fb 66 drivers/gpu/drm/tilcdc/tilcdc_plane.c state->fb->format != old_state->fb->format) { fb 84 drivers/gpu/drm/tilcdc/tilcdc_plane.c if (WARN_ON(!state->fb || !state->crtc->state)) fb 88 drivers/gpu/drm/tilcdc/tilcdc_plane.c state->fb, fb 98 drivers/gpu/drm/tiny/gm12u320.c struct drm_framebuffer *fb; fb 266 drivers/gpu/drm/tiny/gm12u320.c struct drm_framebuffer *fb; fb 272 drivers/gpu/drm/tiny/gm12u320.c if (!gm12u320->fb_update.fb) fb 275 drivers/gpu/drm/tiny/gm12u320.c fb = gm12u320->fb_update.fb; fb 281 drivers/gpu/drm/tiny/gm12u320.c vaddr = drm_gem_shmem_vmap(fb->obj[0]); fb 287 drivers/gpu/drm/tiny/gm12u320.c if (fb->obj[0]->import_attach) { fb 289 drivers/gpu/drm/tiny/gm12u320.c fb->obj[0]->import_attach->dmabuf, DMA_FROM_DEVICE); fb 296 drivers/gpu/drm/tiny/gm12u320.c src = vaddr + y1 * fb->pitches[0] + x1 * 4; fb 327 drivers/gpu/drm/tiny/gm12u320.c src += fb->pitches[0]; fb 330 drivers/gpu/drm/tiny/gm12u320.c if (fb->obj[0]->import_attach) { fb 331 drivers/gpu/drm/tiny/gm12u320.c ret = dma_buf_end_cpu_access(fb->obj[0]->import_attach->dmabuf, fb 337 drivers/gpu/drm/tiny/gm12u320.c drm_gem_shmem_vunmap(fb->obj[0], vaddr); fb 339 drivers/gpu/drm/tiny/gm12u320.c drm_framebuffer_put(fb); fb 340 drivers/gpu/drm/tiny/gm12u320.c gm12u320->fb_update.fb = NULL; fb 419 drivers/gpu/drm/tiny/gm12u320.c gm12u320->fb_update.fb != NULL, fb 429 drivers/gpu/drm/tiny/gm12u320.c static void gm12u320_fb_mark_dirty(struct drm_framebuffer *fb, fb 432 drivers/gpu/drm/tiny/gm12u320.c struct gm12u320_device *gm12u320 = fb->dev->dev_private; fb 438 drivers/gpu/drm/tiny/gm12u320.c if (gm12u320->fb_update.fb != fb) { fb 439 drivers/gpu/drm/tiny/gm12u320.c old_fb = gm12u320->fb_update.fb; fb 440 drivers/gpu/drm/tiny/gm12u320.c drm_framebuffer_get(fb); fb 441 drivers/gpu/drm/tiny/gm12u320.c gm12u320->fb_update.fb = fb; fb 481 drivers/gpu/drm/tiny/gm12u320.c if (gm12u320->fb_update.fb) { fb 482 drivers/gpu/drm/tiny/gm12u320.c drm_framebuffer_put(gm12u320->fb_update.fb); fb 483 drivers/gpu/drm/tiny/gm12u320.c gm12u320->fb_update.fb = NULL; fb 596 drivers/gpu/drm/tiny/gm12u320.c gm12u320_fb_mark_dirty(plane_state->fb, &rect); fb 617 drivers/gpu/drm/tiny/gm12u320.c gm12u320_fb_mark_dirty(pipe->plane.state->fb, &rect); fb 78 drivers/gpu/drm/tiny/ili9225.c static void ili9225_fb_dirty(struct drm_framebuffer *fb, struct drm_rect *rect) fb 80 drivers/gpu/drm/tiny/ili9225.c struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); fb 81 drivers/gpu/drm/tiny/ili9225.c struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(fb->dev); fb 95 drivers/gpu/drm/tiny/ili9225.c if (!drm_dev_enter(fb->dev, &idx)) fb 98 drivers/gpu/drm/tiny/ili9225.c full = width == fb->width && height == fb->height; fb 100 drivers/gpu/drm/tiny/ili9225.c DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); fb 103 drivers/gpu/drm/tiny/ili9225.c fb->format->format == DRM_FORMAT_XRGB8888) { fb 105 drivers/gpu/drm/tiny/ili9225.c ret = mipi_dbi_buf_copy(dbidev->tx_buf, fb, rect, swap); fb 124 drivers/gpu/drm/tiny/ili9225.c y1 = fb->width - rect->x2; fb 125 drivers/gpu/drm/tiny/ili9225.c y2 = fb->width - rect->x1 - 1; fb 130 drivers/gpu/drm/tiny/ili9225.c x1 = fb->width - rect->x2; fb 131 drivers/gpu/drm/tiny/ili9225.c x2 = fb->width - rect->x1 - 1; fb 132 drivers/gpu/drm/tiny/ili9225.c y1 = fb->height - rect->y2; fb 133 drivers/gpu/drm/tiny/ili9225.c y2 = fb->height - rect->y1 - 1; fb 138 drivers/gpu/drm/tiny/ili9225.c x1 = fb->height - rect->y2; fb 139 drivers/gpu/drm/tiny/ili9225.c x2 = fb->height - rect->y1 - 1; fb 159 drivers/gpu/drm/tiny/ili9225.c dev_err_once(fb->dev->dev, "Failed to update display %d\n", ret); fb 172 drivers/gpu/drm/tiny/ili9225.c ili9225_fb_dirty(state->fb, &rect); fb 187 drivers/gpu/drm/tiny/ili9225.c struct drm_framebuffer *fb = plane_state->fb; fb 192 drivers/gpu/drm/tiny/ili9225.c .x2 = fb->width, fb 194 drivers/gpu/drm/tiny/ili9225.c .y2 = fb->height, fb 287 drivers/gpu/drm/tiny/ili9225.c ili9225_fb_dirty(fb, &rect); fb 531 drivers/gpu/drm/tiny/repaper.c static int repaper_fb_dirty(struct drm_framebuffer *fb) fb 533 drivers/gpu/drm/tiny/repaper.c struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); fb 535 drivers/gpu/drm/tiny/repaper.c struct repaper_epd *epd = drm_to_epd(fb->dev); fb 543 drivers/gpu/drm/tiny/repaper.c if (!drm_dev_enter(fb->dev, &idx)) fb 548 drivers/gpu/drm/tiny/repaper.c clip.x2 = fb->width; fb 550 drivers/gpu/drm/tiny/repaper.c clip.y2 = fb->height; fb 554 drivers/gpu/drm/tiny/repaper.c DRM_DEBUG("Flushing [FB:%d] st=%ums\n", fb->base.id, fb 557 drivers/gpu/drm/tiny/repaper.c buf = kmalloc_array(fb->width, fb->height, GFP_KERNEL); fb 570 drivers/gpu/drm/tiny/repaper.c drm_fb_xrgb8888_to_gray8(buf, cma_obj->vaddr, fb, &clip); fb 579 drivers/gpu/drm/tiny/repaper.c repaper_gray8_to_mono_reversed(buf, fb->width, fb->height); fb 610 drivers/gpu/drm/tiny/repaper.c memcpy(epd->current_frame, buf, fb->width * fb->height / 8); fb 619 drivers/gpu/drm/tiny/repaper.c for (x = 0; x < (fb->width / 8); x++) fb 620 drivers/gpu/drm/tiny/repaper.c if (buf[x + (fb->width * (fb->height - 1) / 8)]) { fb 863 drivers/gpu/drm/tiny/repaper.c repaper_fb_dirty(state->fb); fb 65 drivers/gpu/drm/tiny/st7586.c struct drm_framebuffer *fb, fb 76 drivers/gpu/drm/tiny/st7586.c drm_fb_xrgb8888_to_gray8(buf, vaddr, fb, clip); fb 91 drivers/gpu/drm/tiny/st7586.c static int st7586_buf_copy(void *dst, struct drm_framebuffer *fb, fb 94 drivers/gpu/drm/tiny/st7586.c struct drm_gem_cma_object *cma_obj = drm_fb_cma_get_gem_obj(fb, 0); fb 106 drivers/gpu/drm/tiny/st7586.c st7586_xrgb8888_to_gray332(dst, src, fb, clip); fb 115 drivers/gpu/drm/tiny/st7586.c static void st7586_fb_dirty(struct drm_framebuffer *fb, struct drm_rect *rect) fb 117 drivers/gpu/drm/tiny/st7586.c struct mipi_dbi_dev *dbidev = drm_to_mipi_dbi_dev(fb->dev); fb 124 drivers/gpu/drm/tiny/st7586.c if (!drm_dev_enter(fb->dev, &idx)) fb 131 drivers/gpu/drm/tiny/st7586.c DRM_DEBUG_KMS("Flushing [FB:%d] " DRM_RECT_FMT "\n", fb->base.id, DRM_RECT_ARG(rect)); fb 133 drivers/gpu/drm/tiny/st7586.c ret = st7586_buf_copy(dbidev->tx_buf, fb, rect); fb 153 drivers/gpu/drm/tiny/st7586.c dev_err_once(fb->dev->dev, "Failed to update display %d\n", ret); fb 166 drivers/gpu/drm/tiny/st7586.c st7586_fb_dirty(state->fb, &rect); fb 181 drivers/gpu/drm/tiny/st7586.c struct drm_framebuffer *fb = plane_state->fb; fb 185 drivers/gpu/drm/tiny/st7586.c .x2 = fb->width, fb 187 drivers/gpu/drm/tiny/st7586.c .y2 = fb->height, fb 249 drivers/gpu/drm/tiny/st7586.c st7586_fb_dirty(fb, &rect); fb 75 drivers/gpu/drm/tve200/tve200_display.c struct drm_framebuffer *old_fb = pipe->plane.state->fb; fb 76 drivers/gpu/drm/tve200/tve200_display.c struct drm_framebuffer *fb = pstate->fb; fb 91 drivers/gpu/drm/tve200/tve200_display.c if (fb) { fb 92 drivers/gpu/drm/tve200/tve200_display.c u32 offset = drm_fb_cma_get_gem_addr(fb, pstate, 0); fb 104 drivers/gpu/drm/tve200/tve200_display.c if (fb->pitches[0] != mode->hdisplay * fb->format->cpp[0]) { fb 113 drivers/gpu/drm/tve200/tve200_display.c if (old_fb && old_fb->format != fb->format) fb 129 drivers/gpu/drm/tve200/tve200_display.c struct drm_framebuffer *fb = plane->state->fb; fb 131 drivers/gpu/drm/tve200/tve200_display.c u32 format = fb->format->format; fb 213 drivers/gpu/drm/tve200/tve200_display.c fb->format->format); fb 248 drivers/gpu/drm/tve200/tve200_display.c struct drm_framebuffer *fb = pstate->fb; fb 250 drivers/gpu/drm/tve200/tve200_display.c if (fb) { fb 252 drivers/gpu/drm/tve200/tve200_display.c writel(drm_fb_cma_get_gem_addr(fb, pstate, 0), fb 256 drivers/gpu/drm/tve200/tve200_display.c if (fb->format->format == DRM_FORMAT_YUV420) { fb 257 drivers/gpu/drm/tve200/tve200_display.c writel(drm_fb_cma_get_gem_addr(fb, pstate, 1), fb 259 drivers/gpu/drm/tve200/tve200_display.c writel(drm_fb_cma_get_gem_addr(fb, pstate, 2), fb 146 drivers/gpu/drm/udl/udl_drv.h int udl_handle_damage(struct udl_framebuffer *fb, int x, int y, fb 77 drivers/gpu/drm/udl/udl_fb.c int udl_handle_damage(struct udl_framebuffer *fb, int x, int y, fb 80 drivers/gpu/drm/udl/udl_fb.c struct drm_device *dev = fb->base.dev; fb 91 drivers/gpu/drm/udl/udl_fb.c BUG_ON(!is_power_of_2(fb->base.format->cpp[0])); fb 92 drivers/gpu/drm/udl/udl_fb.c log_bpp = __ffs(fb->base.format->cpp[0]); fb 94 drivers/gpu/drm/udl/udl_fb.c if (!fb->active_16) fb 97 drivers/gpu/drm/udl/udl_fb.c if (!fb->obj->vmapping) { fb 98 drivers/gpu/drm/udl/udl_fb.c ret = udl_gem_vmap(fb->obj); fb 103 drivers/gpu/drm/udl/udl_fb.c if (!fb->obj->vmapping) { fb 114 drivers/gpu/drm/udl/udl_fb.c (x + width > fb->base.width) || fb 115 drivers/gpu/drm/udl/udl_fb.c (y + height > fb->base.height)) fb 126 drivers/gpu/drm/udl/udl_fb.c const int line_offset = fb->base.pitches[0] * i; fb 128 drivers/gpu/drm/udl/udl_fb.c const int dev_byte_offset = (fb->base.width * i + x) << log_bpp; fb 130 drivers/gpu/drm/udl/udl_fb.c (char *) fb->obj->vmapping, fb 277 drivers/gpu/drm/udl/udl_fb.c static int udl_user_framebuffer_dirty(struct drm_framebuffer *fb, fb 283 drivers/gpu/drm/udl/udl_fb.c struct udl_framebuffer *ufb = to_udl_fb(fb); fb 287 drivers/gpu/drm/udl/udl_fb.c drm_modeset_lock_all(fb->dev); fb 313 drivers/gpu/drm/udl/udl_fb.c drm_modeset_unlock_all(fb->dev); fb 318 drivers/gpu/drm/udl/udl_fb.c static void udl_user_framebuffer_destroy(struct drm_framebuffer *fb) fb 320 drivers/gpu/drm/udl/udl_fb.c struct udl_framebuffer *ufb = to_udl_fb(fb); fb 325 drivers/gpu/drm/udl/udl_fb.c drm_framebuffer_cleanup(fb); fb 357 drivers/gpu/drm/udl/udl_fb.c struct drm_framebuffer *fb; fb 396 drivers/gpu/drm/udl/udl_fb.c fb = &ufbdev->ufb.base; fb 398 drivers/gpu/drm/udl/udl_fb.c ufbdev->helper.fb = fb; fb 408 drivers/gpu/drm/udl/udl_fb.c fb->width, fb->height, fb 282 drivers/gpu/drm/udl/udl_modeset.c udl_pipe_set_base_atomic(struct drm_crtc *crtc, struct drm_framebuffer *fb, fb 304 drivers/gpu/drm/udl/udl_modeset.c struct udl_framebuffer *ufb = to_udl_fb(crtc->primary->fb); fb 360 drivers/gpu/drm/udl/udl_modeset.c struct drm_framebuffer *fb, fb 365 drivers/gpu/drm/udl/udl_modeset.c struct udl_framebuffer *ufb = to_udl_fb(fb); fb 368 drivers/gpu/drm/udl/udl_modeset.c struct drm_framebuffer *old_fb = crtc->primary->fb; fb 375 drivers/gpu/drm/udl/udl_modeset.c udl_handle_damage(ufb, 0, 0, fb->width, fb->height); fb 381 drivers/gpu/drm/udl/udl_modeset.c crtc->primary->fb = fb; fb 458 drivers/gpu/drm/udl/udl_modeset.c if (!udl->crtc || !udl->crtc->primary->fb) fb 461 drivers/gpu/drm/udl/udl_modeset.c ufb = to_udl_fb(udl->crtc->primary->fb); fb 151 drivers/gpu/drm/vboxvideo/vbox_drv.h void vbox_framebuffer_dirty_rectangles(struct drm_framebuffer *fb, fb 51 drivers/gpu/drm/vboxvideo/vbox_fb.c struct drm_framebuffer *fb; fb 93 drivers/gpu/drm/vboxvideo/vbox_fb.c fb = &vbox->afb.base; fb 94 drivers/gpu/drm/vboxvideo/vbox_fb.c helper->fb = fb; fb 120 drivers/gpu/drm/vboxvideo/vbox_fb.c DRM_DEBUG_KMS("allocated %dx%d\n", fb->width, fb->height); fb 19 drivers/gpu/drm/vboxvideo/vbox_main.c static void vbox_user_framebuffer_destroy(struct drm_framebuffer *fb) fb 21 drivers/gpu/drm/vboxvideo/vbox_main.c struct vbox_framebuffer *vbox_fb = to_vbox_framebuffer(fb); fb 26 drivers/gpu/drm/vboxvideo/vbox_main.c drm_framebuffer_cleanup(fb); fb 27 drivers/gpu/drm/vboxvideo/vbox_main.c kfree(fb); fb 42 drivers/gpu/drm/vboxvideo/vbox_main.c void vbox_framebuffer_dirty_rectangles(struct drm_framebuffer *fb, fb 46 drivers/gpu/drm/vboxvideo/vbox_main.c struct vbox_private *vbox = fb->dev->dev_private; fb 53 drivers/gpu/drm/vboxvideo/vbox_main.c list_for_each_entry(crtc, &fb->dev->mode_config.crtc_list, head) { fb 54 drivers/gpu/drm/vboxvideo/vbox_main.c if (crtc->primary->state->fb != fb) fb 88 drivers/gpu/drm/vboxvideo/vbox_main.c static int vbox_user_framebuffer_dirty(struct drm_framebuffer *fb, fb 94 drivers/gpu/drm/vboxvideo/vbox_main.c vbox_framebuffer_dirty_rectangles(fb, rects, num_rects); fb 31 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_framebuffer *fb = crtc->primary->state->fb; fb 41 drivers/gpu/drm/vboxvideo/vbox_mode.c bpp = fb ? fb->format->cpp[0] * 8 : 32; fb 42 drivers/gpu/drm/vboxvideo/vbox_mode.c pitch = fb ? fb->pitches[0] : width * bpp / 8; fb 52 drivers/gpu/drm/vboxvideo/vbox_mode.c if (vbox_crtc->crtc_id == 0 && fb && fb 67 drivers/gpu/drm/vboxvideo/vbox_mode.c flags |= (fb && crtc->state->enable) ? 0 : VBVA_SCREEN_F_BLANK; fb 119 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_framebuffer *fb, *fb1 = NULL; fb 130 drivers/gpu/drm/vboxvideo/vbox_mode.c fb = crtci->primary->state->fb; fb 131 drivers/gpu/drm/vboxvideo/vbox_mode.c if (!fb) fb 135 drivers/gpu/drm/vboxvideo/vbox_mode.c fb1 = fb; fb 138 drivers/gpu/drm/vboxvideo/vbox_mode.c } else if (fb != fb1) { fb 172 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_framebuffer *fb, fb 176 drivers/gpu/drm/vboxvideo/vbox_mode.c drm_gem_vram_of_gem(to_vbox_framebuffer(fb)->obj); fb 285 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_framebuffer *fb = plane->state->fb; fb 287 drivers/gpu/drm/vboxvideo/vbox_mode.c vbox_crtc_set_base_and_mode(crtc, fb, fb 298 drivers/gpu/drm/vboxvideo/vbox_mode.c vbox_crtc_set_base_and_mode(crtc, old_state->fb, fb 309 drivers/gpu/drm/vboxvideo/vbox_mode.c if (!new_state->fb) fb 312 drivers/gpu/drm/vboxvideo/vbox_mode.c gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(new_state->fb)->obj); fb 325 drivers/gpu/drm/vboxvideo/vbox_mode.c if (!old_state->fb) fb 328 drivers/gpu/drm/vboxvideo/vbox_mode.c gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(old_state->fb)->obj); fb 354 drivers/gpu/drm/vboxvideo/vbox_mode.c if (!new_state->fb) fb 388 drivers/gpu/drm/vboxvideo/vbox_mode.c struct drm_framebuffer *fb = plane->state->fb; fb 390 drivers/gpu/drm/vboxvideo/vbox_mode.c drm_gem_vram_of_gem(to_vbox_framebuffer(fb)->obj); fb 401 drivers/gpu/drm/vboxvideo/vbox_mode.c if (fb == old_state->fb) fb 430 drivers/gpu/drm/vboxvideo/vbox_mode.c min_t(u32, max(fb->hot_x, 0), width), fb 431 drivers/gpu/drm/vboxvideo/vbox_mode.c min_t(u32, max(fb->hot_y, 0), height), fb 467 drivers/gpu/drm/vboxvideo/vbox_mode.c if (!new_state->fb) fb 470 drivers/gpu/drm/vboxvideo/vbox_mode.c gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(new_state->fb)->obj); fb 479 drivers/gpu/drm/vboxvideo/vbox_mode.c if (!plane->state->fb) fb 482 drivers/gpu/drm/vboxvideo/vbox_mode.c gbo = drm_gem_vram_of_gem(to_vbox_framebuffer(plane->state->fb)->obj); fb 833 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_framebuffer *fb; fb 853 drivers/gpu/drm/vc4/vc4_crtc.c vc4_plane_async_set_fb(plane, flip_state->fb); fb 863 drivers/gpu/drm/vc4/vc4_crtc.c drm_framebuffer_put(flip_state->fb); fb 893 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_framebuffer *fb, fb 902 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_gem_cma_object *cma_bo = drm_fb_cma_get_gem_obj(fb, 0); fb 922 drivers/gpu/drm/vc4/vc4_crtc.c drm_framebuffer_get(fb); fb 923 drivers/gpu/drm/vc4/vc4_crtc.c flip_state->fb = fb; fb 930 drivers/gpu/drm/vc4/vc4_crtc.c drm_framebuffer_put(fb); fb 944 drivers/gpu/drm/vc4/vc4_crtc.c flip_state->old_fb = plane->state->fb; fb 954 drivers/gpu/drm/vc4/vc4_crtc.c drm_atomic_set_fb_for_plane(plane->state, fb); fb 964 drivers/gpu/drm/vc4/vc4_crtc.c struct drm_framebuffer *fb, fb 970 drivers/gpu/drm/vc4/vc4_crtc.c return vc4_async_page_flip(crtc, fb, event, flags); fb 972 drivers/gpu/drm/vc4/vc4_crtc.c return drm_atomic_helper_page_flip(crtc, fb, event, flags, ctx); fb 845 drivers/gpu/drm/vc4/vc4_drv.h struct drm_framebuffer *fb); fb 428 drivers/gpu/drm/vc4/vc4_kms.c if (old_plane_state->fb && old_plane_state->crtc) { fb 434 drivers/gpu/drm/vc4/vc4_kms.c if (new_plane_state->fb && new_plane_state->crtc) { fb 142 drivers/gpu/drm/vc4/vc4_plane.c return state->fb && state->crtc; fb 310 drivers/gpu/drm/vc4/vc4_plane.c struct drm_framebuffer *fb = state->fb; fb 311 drivers/gpu/drm/vc4/vc4_plane.c struct drm_gem_cma_object *bo = drm_fb_cma_get_gem_obj(fb, 0); fb 313 drivers/gpu/drm/vc4/vc4_plane.c int num_planes = fb->format->num_planes; fb 315 drivers/gpu/drm/vc4/vc4_plane.c u32 h_subsample = fb->format->hsub; fb 316 drivers/gpu/drm/vc4/vc4_plane.c u32 v_subsample = fb->format->vsub; fb 332 drivers/gpu/drm/vc4/vc4_plane.c vc4_state->offsets[i] = bo->paddr + fb->offsets[i]; fb 491 drivers/gpu/drm/vc4/vc4_plane.c struct drm_framebuffer *fb = state->fb; fb 518 drivers/gpu/drm/vc4/vc4_plane.c for (i = 0; i < fb->format->num_planes; i++) { fb 534 drivers/gpu/drm/vc4/vc4_plane.c fb->format->cpp[i]; fb 588 drivers/gpu/drm/vc4/vc4_plane.c struct drm_framebuffer *fb = state->fb; fb 590 drivers/gpu/drm/vc4/vc4_plane.c const struct hvs_format *format = vc4_get_hvs_format(fb->format->format); fb 591 drivers/gpu/drm/vc4/vc4_plane.c u64 base_format_mod = fourcc_mod_broadcom_mod(fb->modifier); fb 592 drivers/gpu/drm/vc4/vc4_plane.c int num_planes = fb->format->num_planes; fb 593 drivers/gpu/drm/vc4/vc4_plane.c u32 h_subsample = fb->format->hsub; fb 594 drivers/gpu/drm/vc4/vc4_plane.c u32 v_subsample = fb->format->vsub; fb 637 drivers/gpu/drm/vc4/vc4_plane.c pitch0 = VC4_SET_FIELD(fb->pitches[0], SCALER_SRC_PITCH); fb 645 drivers/gpu/drm/vc4/vc4_plane.c fb->pitches[i]; fb 649 drivers/gpu/drm/vc4/vc4_plane.c fb->format->cpp[i]; fb 657 drivers/gpu/drm/vc4/vc4_plane.c u32 tile_w_shift = fb->format->cpp[0] == 2 ? 6 : 5; fb 669 drivers/gpu/drm/vc4/vc4_plane.c u32 tiles_w = fb->pitches[0] >> (tile_size_shift - tile_h_shift); fb 725 drivers/gpu/drm/vc4/vc4_plane.c uint32_t param = fourcc_mod_broadcom_param(fb->modifier); fb 752 drivers/gpu/drm/vc4/vc4_plane.c pix_per_tile = tile_w / fb->format->cpp[0]; fb 766 drivers/gpu/drm/vc4/vc4_plane.c fb->format->cpp[i]; fb 775 drivers/gpu/drm/vc4/vc4_plane.c (long long)fb->modifier); fb 813 drivers/gpu/drm/vc4/vc4_plane.c fb->format->has_alpha; fb 818 drivers/gpu/drm/vc4/vc4_plane.c VC4_SET_FIELD(fb->format->has_alpha ? fb 823 drivers/gpu/drm/vc4/vc4_plane.c (fb->format->has_alpha ? SCALER_POS2_ALPHA_PREMULT : 0) | fb 850 drivers/gpu/drm/vc4/vc4_plane.c VC4_SET_FIELD(fb->pitches[i], fb 918 drivers/gpu/drm/vc4/vc4_plane.c vc4_state->needs_bg_fill = fb->format->has_alpha || !covers_screen || fb 993 drivers/gpu/drm/vc4/vc4_plane.c void vc4_plane_async_set_fb(struct drm_plane *plane, struct drm_framebuffer *fb) fb 996 drivers/gpu/drm/vc4/vc4_plane.c struct drm_gem_cma_object *bo = drm_fb_cma_get_gem_obj(fb, 0); fb 1003 drivers/gpu/drm/vc4/vc4_plane.c addr = bo->paddr + fb->offsets[0]; fb 1023 drivers/gpu/drm/vc4/vc4_plane.c swap(plane->state->fb, state->fb); fb 1131 drivers/gpu/drm/vc4/vc4_plane.c if (!state->fb) fb 1134 drivers/gpu/drm/vc4/vc4_plane.c bo = to_vc4_bo(&drm_fb_cma_get_gem_obj(state->fb, 0)->base); fb 1138 drivers/gpu/drm/vc4/vc4_plane.c if (plane->state->fb == state->fb) fb 1153 drivers/gpu/drm/vc4/vc4_plane.c if (plane->state->fb == state->fb || !state->fb) fb 1156 drivers/gpu/drm/vc4/vc4_plane.c bo = to_vc4_bo(&drm_fb_cma_get_gem_obj(state->fb, 0)->base); fb 230 drivers/gpu/drm/vc4/vc4_txp.c struct drm_framebuffer *fb; fb 239 drivers/gpu/drm/vc4/vc4_txp.c fb = conn_state->writeback_job->fb; fb 240 drivers/gpu/drm/vc4/vc4_txp.c if (fb->width != crtc_state->mode.hdisplay || fb 241 drivers/gpu/drm/vc4/vc4_txp.c fb->height != crtc_state->mode.vdisplay) { fb 243 drivers/gpu/drm/vc4/vc4_txp.c fb->width, fb->height); fb 248 drivers/gpu/drm/vc4/vc4_txp.c if (fb->format->format == drm_fmts[i]) fb 256 drivers/gpu/drm/vc4/vc4_txp.c if (fb->pitches[0] & GENMASK(3, 0)) fb 270 drivers/gpu/drm/vc4/vc4_txp.c struct drm_framebuffer *fb; fb 278 drivers/gpu/drm/vc4/vc4_txp.c fb = conn_state->writeback_job->fb; fb 281 drivers/gpu/drm/vc4/vc4_txp.c if (fb->format->format == drm_fmts[i]) fb 292 drivers/gpu/drm/vc4/vc4_txp.c if (fb->format->has_alpha) fb 295 drivers/gpu/drm/vc4/vc4_txp.c gem = drm_fb_cma_get_gem_obj(fb, 0); fb 296 drivers/gpu/drm/vc4/vc4_txp.c TXP_WRITE(TXP_DST_PTR, gem->paddr + fb->offsets[0]); fb 297 drivers/gpu/drm/vc4/vc4_txp.c TXP_WRITE(TXP_DST_PITCH, fb->pitches[0]); fb 73 drivers/gpu/drm/via/via_drv.h drm_local_map_t *fb; fb 46 drivers/gpu/drm/via/via_map.c dev_priv->fb = drm_legacy_findmap(dev, init->fb_offset); fb 47 drivers/gpu/drm/via/via_map.c if (!dev_priv->fb) { fb 63 drivers/gpu/drm/via/via_mm.c drm_via_fb_t *fb = data; fb 67 drivers/gpu/drm/via/via_mm.c drm_mm_init(&dev_priv->vram_mm, 0, fb->size >> VIA_MM_ALIGN_SHIFT); fb 70 drivers/gpu/drm/via/via_mm.c dev_priv->vram_offset = fb->offset; fb 73 drivers/gpu/drm/via/via_mm.c DRM_DEBUG("offset = %u, size = %u\n", fb->offset, fb->size); fb 107 drivers/gpu/drm/virtio/virtgpu_plane.c if (plane->state->fb && output->enabled) { fb 108 drivers/gpu/drm/virtio/virtgpu_plane.c vgfb = to_virtio_gpu_framebuffer(plane->state->fb); fb 151 drivers/gpu/drm/virtio/virtgpu_plane.c if (!new_state->fb) fb 154 drivers/gpu/drm/virtio/virtgpu_plane.c vgfb = to_virtio_gpu_framebuffer(new_state->fb); fb 156 drivers/gpu/drm/virtio/virtgpu_plane.c if (bo && bo->dumb && (plane->state->fb != new_state->fb)) { fb 170 drivers/gpu/drm/virtio/virtgpu_plane.c if (!plane->state->fb) fb 173 drivers/gpu/drm/virtio/virtgpu_plane.c vgfb = to_virtio_gpu_framebuffer(plane->state->fb); fb 198 drivers/gpu/drm/virtio/virtgpu_plane.c if (plane->state->fb) { fb 199 drivers/gpu/drm/virtio/virtgpu_plane.c vgfb = to_virtio_gpu_framebuffer(plane->state->fb); fb 206 drivers/gpu/drm/virtio/virtgpu_plane.c if (bo && bo->dumb && (plane->state->fb != old_state->fb)) { fb 224 drivers/gpu/drm/virtio/virtgpu_plane.c if (plane->state->fb != old_state->fb) { fb 228 drivers/gpu/drm/virtio/virtgpu_plane.c plane->state->fb ? plane->state->fb->hot_x : 0, fb 229 drivers/gpu/drm/virtio/virtgpu_plane.c plane->state->fb ? plane->state->fb->hot_y : 0); fb 233 drivers/gpu/drm/virtio/virtgpu_plane.c if (plane->state->fb) { fb 235 drivers/gpu/drm/virtio/virtgpu_plane.c cpu_to_le32(plane->state->fb->hot_x); fb 237 drivers/gpu/drm/virtio/virtgpu_plane.c cpu_to_le32(plane->state->fb->hot_y); fb 101 drivers/gpu/drm/vkms/vkms_composer.c cursor_obj = drm_gem_fb_get_obj(&cursor_composer->fb, 0); fb 114 drivers/gpu/drm/vkms/vkms_composer.c struct drm_framebuffer *fb = &primary_composer->fb; fb 115 drivers/gpu/drm/vkms/vkms_composer.c struct drm_gem_object *gem_obj = drm_gem_fb_get_obj(fb, 0); fb 24 drivers/gpu/drm/vkms/vkms_drv.h struct drm_framebuffer fb; fb 54 drivers/gpu/drm/vkms/vkms_plane.c if (drm_framebuffer_read_refcount(&vkms_state->composer->fb)) fb 55 drivers/gpu/drm/vkms/vkms_plane.c drm_framebuffer_put(&vkms_state->composer->fb); fb 95 drivers/gpu/drm/vkms/vkms_plane.c struct drm_framebuffer *fb = plane->state->fb; fb 98 drivers/gpu/drm/vkms/vkms_plane.c if (!plane->state->crtc || !fb) fb 106 drivers/gpu/drm/vkms/vkms_plane.c memcpy(&composer->fb, fb, sizeof(struct drm_framebuffer)); fb 107 drivers/gpu/drm/vkms/vkms_plane.c drm_framebuffer_get(&composer->fb); fb 108 drivers/gpu/drm/vkms/vkms_plane.c composer->offset = fb->offsets[0]; fb 109 drivers/gpu/drm/vkms/vkms_plane.c composer->pitch = fb->pitches[0]; fb 110 drivers/gpu/drm/vkms/vkms_plane.c composer->cpp = fb->format->cpp[0]; fb 120 drivers/gpu/drm/vkms/vkms_plane.c if (!state->fb | !state->crtc) fb 150 drivers/gpu/drm/vkms/vkms_plane.c if (!state->fb) fb 153 drivers/gpu/drm/vkms/vkms_plane.c gem_obj = drm_gem_fb_get_obj(state->fb, 0); fb 166 drivers/gpu/drm/vkms/vkms_plane.c if (!old_state->fb) fb 169 drivers/gpu/drm/vkms/vkms_plane.c gem_obj = drm_gem_fb_get_obj(old_state->fb, 0); fb 476 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c set.fb = NULL; fb 600 drivers/gpu/drm/vmwgfx/vmwgfx_fb.c set.fb = par->set_fb; fb 258 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c struct drm_framebuffer *fb; fb 292 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id); fb 293 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c if (!fb) { fb 298 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c vfb = vmw_framebuffer_to_vfb(fb); fb 322 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c drm_framebuffer_put(fb); fb 342 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c struct drm_framebuffer *fb; fb 375 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c fb = drm_framebuffer_lookup(dev, file_priv, arg->fb_id); fb 376 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c if (!fb) { fb 382 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c vfb = vmw_framebuffer_to_vfb(fb); fb 399 drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c drm_framebuffer_put(fb); fb 351 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c struct drm_framebuffer *fb = new_state->fb; fb 361 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (fb) { fb 362 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (vmw_framebuffer_to_vfb(fb)->bo) { fb 363 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c vps->bo = vmw_framebuffer_to_vfbd(fb)->buffer; fb 366 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c vps->surf = vmw_framebuffer_to_vfbs(fb)->surface; fb 390 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (plane->state->fb) { fb 391 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c hotspot_x += plane->state->fb->hot_x; fb 392 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c hotspot_y += plane->state->fb->hot_y; fb 447 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c struct drm_framebuffer *new_fb = state->fb; fb 488 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c struct drm_framebuffer *fb = new_state->fb; fb 502 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (!fb) fb 512 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (!vmw_framebuffer_to_vfb(fb)->bo) fb 513 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c surface = vmw_framebuffer_to_vfbs(fb)->surface; fb 1585 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c implicit_fb = plane_state->fb; fb 1586 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c else if (implicit_fb != plane_state->fb) fb 2462 drivers/gpu/drm/vmwgfx/vmwgfx_kms.c if (plane->state->fb == &framebuffer->base) fb 219 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h int (*pin)(struct vmw_framebuffer *fb); fb 220 drivers/gpu/drm/vmwgfx/vmwgfx_kms.h int (*unpin)(struct vmw_framebuffer *fb); fb 49 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c struct vmw_framebuffer *fb; fb 82 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c struct drm_framebuffer *fb = NULL; fb 100 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c fb = entry->base.crtc.primary->state->fb; fb 102 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c return vmw_kms_write_svga(dev_priv, w, h, fb->pitches[0], fb 103 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c fb->format->cpp[0] * 8, fb 104 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c fb->format->depth); fb 109 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c fb = entry->base.crtc.primary->state->fb; fb 111 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c vmw_kms_write_svga(dev_priv, fb->width, fb->height, fb->pitches[0], fb 112 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c fb->format->cpp[0] * 8, fb->format->depth); fb 151 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c BUG_ON(!ld->fb); fb 152 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c if (ld->fb->unpin) fb 153 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c ld->fb->unpin(ld->fb); fb 154 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c ld->fb = NULL; fb 168 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c BUG_ON(!ld->num_active && ld->fb); fb 169 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c if (vfb != ld->fb) { fb 170 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c if (ld->fb && ld->fb->unpin) fb 171 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c ld->fb->unpin(ld->fb); fb 175 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c ld->fb = vfb; fb 289 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c struct drm_framebuffer *fb; fb 295 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c fb = plane->state->fb; fb 297 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c vfb = (fb) ? vmw_framebuffer_to_vfb(fb) : NULL; fb 501 drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c dev_priv->ldu_priv->fb = NULL; fb 217 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c struct drm_framebuffer *fb; fb 225 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c fb = ps->fb; fb 228 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c vfb = (fb) ? vmw_framebuffer_to_vfb(fb) : NULL; fb 408 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c struct drm_framebuffer *new_fb = new_state->fb; fb 736 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c if (crtc && plane->state->fb) { fb 739 drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c vmw_framebuffer_to_vfb(plane->state->fb); fb 1036 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c struct drm_framebuffer *new_fb = new_state->fb; fb 1601 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c if (crtc && plane->state->fb) { fb 1603 drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c vmw_framebuffer_to_vfb(plane->state->fb); fb 132 drivers/gpu/drm/xen/xen_drm_front.h static inline u64 xen_drm_front_fb_to_cookie(struct drm_framebuffer *fb) fb 134 drivers/gpu/drm/xen/xen_drm_front.h return (uintptr_t)fb; fb 36 drivers/gpu/drm/xen/xen_drm_front_kms.c static void fb_destroy(struct drm_framebuffer *fb) fb 38 drivers/gpu/drm/xen/xen_drm_front_kms.c struct xen_drm_front_drm_info *drm_info = fb->dev->dev_private; fb 41 drivers/gpu/drm/xen/xen_drm_front_kms.c if (drm_dev_enter(fb->dev, &idx)) { fb 43 drivers/gpu/drm/xen/xen_drm_front_kms.c xen_drm_front_fb_to_cookie(fb)); fb 46 drivers/gpu/drm/xen/xen_drm_front_kms.c drm_gem_fb_destroy(fb); fb 58 drivers/gpu/drm/xen/xen_drm_front_kms.c struct drm_framebuffer *fb; fb 62 drivers/gpu/drm/xen/xen_drm_front_kms.c fb = drm_gem_fb_create_with_funcs(dev, filp, mode_cmd, &fb_funcs); fb 63 drivers/gpu/drm/xen/xen_drm_front_kms.c if (IS_ERR_OR_NULL(fb)) fb 64 drivers/gpu/drm/xen/xen_drm_front_kms.c return fb; fb 77 drivers/gpu/drm/xen/xen_drm_front_kms.c xen_drm_front_fb_to_cookie(fb), fb 78 drivers/gpu/drm/xen/xen_drm_front_kms.c fb->width, fb->height, fb 79 drivers/gpu/drm/xen/xen_drm_front_kms.c fb->format->format); fb 81 drivers/gpu/drm/xen/xen_drm_front_kms.c DRM_ERROR("Back failed to attach FB %p: %d\n", fb, ret); fb 85 drivers/gpu/drm/xen/xen_drm_front_kms.c return fb; fb 88 drivers/gpu/drm/xen/xen_drm_front_kms.c drm_gem_fb_destroy(fb); fb 118 drivers/gpu/drm/xen/xen_drm_front_kms.c struct drm_framebuffer *fb = plane_state->fb; fb 125 drivers/gpu/drm/xen/xen_drm_front_kms.c fb->width, fb->height, fb 126 drivers/gpu/drm/xen/xen_drm_front_kms.c fb->format->cpp[0] * 8, fb 127 drivers/gpu/drm/xen/xen_drm_front_kms.c xen_drm_front_fb_to_cookie(fb)); fb 198 drivers/gpu/drm/xen/xen_drm_front_kms.c if (old_plane_state->fb && plane_state->fb) { fb 209 drivers/gpu/drm/xen/xen_drm_front_kms.c xen_drm_front_fb_to_cookie(plane_state->fb)); fb 51 drivers/gpu/drm/zte/zx_plane.c struct drm_framebuffer *fb = plane_state->fb; fb 57 drivers/gpu/drm/zte/zx_plane.c if (!crtc || !fb) fb 186 drivers/gpu/drm/zte/zx_plane.c struct drm_framebuffer *fb = state->fb; fb 200 drivers/gpu/drm/zte/zx_plane.c if (!fb) fb 203 drivers/gpu/drm/zte/zx_plane.c format = fb->format->format; fb 217 drivers/gpu/drm/zte/zx_plane.c for (i = 0; i < fb->format->num_planes; i++) { fb 218 drivers/gpu/drm/zte/zx_plane.c cma_obj = drm_fb_cma_get_gem_obj(fb, i); fb 219 drivers/gpu/drm/zte/zx_plane.c paddr = cma_obj->paddr + fb->offsets[i]; fb 220 drivers/gpu/drm/zte/zx_plane.c paddr += src_y * fb->pitches[i]; fb 221 drivers/gpu/drm/zte/zx_plane.c paddr += src_x * fb->format->cpp[i]; fb 237 drivers/gpu/drm/zte/zx_plane.c zx_writel(layer + VL_STRIDE, LUMA_STRIDE(fb->pitches[0]) | fb 238 drivers/gpu/drm/zte/zx_plane.c CHROMA_STRIDE(fb->pitches[1])); fb 280 drivers/gpu/drm/zte/zx_plane.c struct drm_framebuffer *fb = plane_state->fb; fb 284 drivers/gpu/drm/zte/zx_plane.c if (!crtc || !fb) fb 353 drivers/gpu/drm/zte/zx_plane.c struct drm_framebuffer *fb = plane->state->fb; fb 366 drivers/gpu/drm/zte/zx_plane.c if (!fb) fb 369 drivers/gpu/drm/zte/zx_plane.c format = fb->format->format; fb 370 drivers/gpu/drm/zte/zx_plane.c stride = fb->pitches[0]; fb 382 drivers/gpu/drm/zte/zx_plane.c bpp = fb->format->cpp[0]; fb 384 drivers/gpu/drm/zte/zx_plane.c cma_obj = drm_fb_cma_get_gem_obj(fb, 0); fb 385 drivers/gpu/drm/zte/zx_plane.c paddr = cma_obj->paddr + fb->offsets[0]; fb 42 drivers/hid/hid-picolcd_backlight.c static int picolcd_check_bl_fb(struct backlight_device *bdev, struct fb_info *fb) fb 44 drivers/hid/hid-picolcd_backlight.c return fb && fb == picolcd_fbinfo((struct picolcd_data *)bl_get_data(bdev)); fb 44 drivers/hid/hid-picolcd_lcd.c static int picolcd_check_lcd_fb(struct lcd_device *ldev, struct fb_info *fb) fb 46 drivers/hid/hid-picolcd_lcd.c return fb && fb == picolcd_fbinfo((struct picolcd_data *)lcd_get_data(ldev)); fb 453 drivers/media/common/saa7146/saa7146_video.c static int vidioc_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) fb 458 drivers/media/common/saa7146/saa7146_video.c *fb = vv->ov_fb; fb 459 drivers/media/common/saa7146/saa7146_video.c fb->capability = V4L2_FBUF_CAP_LIST_CLIPPING; fb 460 drivers/media/common/saa7146/saa7146_video.c fb->flags = V4L2_FBUF_FLAG_PRIMARY; fb 464 drivers/media/common/saa7146/saa7146_video.c static int vidioc_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) fb 476 drivers/media/common/saa7146/saa7146_video.c fmt = saa7146_format_by_fourcc(dev, fb->fmt.pixelformat); fb 494 drivers/media/common/saa7146/saa7146_video.c vv->ov_fb = *fb; fb 2522 drivers/media/pci/bt8xx/bttv-driver.c struct v4l2_framebuffer *fb) fb 2527 drivers/media/pci/bt8xx/bttv-driver.c *fb = btv->fbuf; fb 2528 drivers/media/pci/bt8xx/bttv-driver.c fb->capability = V4L2_FBUF_CAP_LIST_CLIPPING; fb 2529 drivers/media/pci/bt8xx/bttv-driver.c fb->flags = V4L2_FBUF_FLAG_PRIMARY; fb 2531 drivers/media/pci/bt8xx/bttv-driver.c fb->fmt.pixelformat = fh->ovfmt->fourcc; fb 2573 drivers/media/pci/bt8xx/bttv-driver.c const struct v4l2_framebuffer *fb) fb 2585 drivers/media/pci/bt8xx/bttv-driver.c fmt = format_by_fourcc(fb->fmt.pixelformat); fb 2592 drivers/media/pci/bt8xx/bttv-driver.c if (fb->flags & V4L2_FBUF_FLAG_OVERLAY) { fb 2593 drivers/media/pci/bt8xx/bttv-driver.c __s32 width = fb->fmt.width; fb 2594 drivers/media/pci/bt8xx/bttv-driver.c __s32 height = fb->fmt.height; fb 2607 drivers/media/pci/bt8xx/bttv-driver.c btv->fbuf.base = fb->base; fb 2608 drivers/media/pci/bt8xx/bttv-driver.c btv->fbuf.fmt.width = fb->fmt.width; fb 2609 drivers/media/pci/bt8xx/bttv-driver.c btv->fbuf.fmt.height = fb->fmt.height; fb 2610 drivers/media/pci/bt8xx/bttv-driver.c if (0 != fb->fmt.bytesperline) fb 2611 drivers/media/pci/bt8xx/bttv-driver.c btv->fbuf.fmt.bytesperline = fb->fmt.bytesperline; fb 2618 drivers/media/pci/bt8xx/bttv-driver.c if (fb->flags & V4L2_FBUF_FLAG_OVERLAY) { fb 2621 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w.width = fb->fmt.width; fb 2622 drivers/media/pci/bt8xx/bttv-driver.c fh->ov.w.height = fb->fmt.height; fb 2623 drivers/media/pci/bt8xx/bttv-driver.c btv->init.ov.w.width = fb->fmt.width; fb 2624 drivers/media/pci/bt8xx/bttv-driver.c btv->init.ov.w.height = fb->fmt.height; fb 1362 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_g_fbuf(struct file *file, void *fh, struct v4l2_framebuffer *fb) fb 1394 drivers/media/pci/ivtv/ivtv-ioctl.c fb->capability = V4L2_FBUF_CAP_EXTERNOVERLAY | V4L2_FBUF_CAP_CHROMAKEY | fb 1401 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.pixelformat = pixel_format[pixfmt]; fb 1402 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.width = itv->osd_rect.width; fb 1403 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.height = itv->osd_rect.height; fb 1404 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.field = V4L2_FIELD_INTERLACED; fb 1405 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.bytesperline = fb->fmt.width; fb 1406 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.colorspace = V4L2_COLORSPACE_SMPTE170M; fb 1407 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.field = V4L2_FIELD_INTERLACED; fb 1408 drivers/media/pci/ivtv/ivtv-ioctl.c if (fb->fmt.pixelformat != V4L2_PIX_FMT_PAL8) fb 1409 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.bytesperline *= 2; fb 1410 drivers/media/pci/ivtv/ivtv-ioctl.c if (fb->fmt.pixelformat == V4L2_PIX_FMT_RGB32 || fb 1411 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.pixelformat == V4L2_PIX_FMT_YUV32) fb 1412 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.bytesperline *= 2; fb 1413 drivers/media/pci/ivtv/ivtv-ioctl.c fb->fmt.sizeimage = fb->fmt.bytesperline * fb->fmt.height; fb 1414 drivers/media/pci/ivtv/ivtv-ioctl.c fb->base = (void *)itv->osd_video_pbase; fb 1415 drivers/media/pci/ivtv/ivtv-ioctl.c fb->flags = 0; fb 1418 drivers/media/pci/ivtv/ivtv-ioctl.c fb->flags |= V4L2_FBUF_FLAG_CHROMAKEY; fb 1421 drivers/media/pci/ivtv/ivtv-ioctl.c fb->flags |= V4L2_FBUF_FLAG_GLOBAL_ALPHA; fb 1424 drivers/media/pci/ivtv/ivtv-ioctl.c fb->flags |= V4L2_FBUF_FLAG_OVERLAY; fb 1434 drivers/media/pci/ivtv/ivtv-ioctl.c fb->capability |= V4L2_FBUF_CAP_LOCAL_INV_ALPHA; fb 1436 drivers/media/pci/ivtv/ivtv-ioctl.c fb->capability |= V4L2_FBUF_CAP_LOCAL_ALPHA; fb 1441 drivers/media/pci/ivtv/ivtv-ioctl.c fb->flags |= V4L2_FBUF_FLAG_LOCAL_INV_ALPHA; fb 1443 drivers/media/pci/ivtv/ivtv-ioctl.c fb->flags |= V4L2_FBUF_FLAG_LOCAL_ALPHA; fb 1449 drivers/media/pci/ivtv/ivtv-ioctl.c static int ivtv_s_fbuf(struct file *file, void *fh, const struct v4l2_framebuffer *fb) fb 1461 drivers/media/pci/ivtv/ivtv-ioctl.c itv->osd_global_alpha_state = (fb->flags & V4L2_FBUF_FLAG_GLOBAL_ALPHA) != 0; fb 1463 drivers/media/pci/ivtv/ivtv-ioctl.c (fb->flags & (V4L2_FBUF_FLAG_LOCAL_ALPHA|V4L2_FBUF_FLAG_LOCAL_INV_ALPHA)) != 0; fb 1464 drivers/media/pci/ivtv/ivtv-ioctl.c itv->osd_chroma_key_state = (fb->flags & V4L2_FBUF_FLAG_CHROMAKEY) != 0; fb 1466 drivers/media/pci/ivtv/ivtv-ioctl.c yi->track_osd = (fb->flags & V4L2_FBUF_FLAG_OVERLAY) != 0; fb 1791 drivers/media/pci/saa7134/saa7134-video.c struct v4l2_framebuffer *fb) fb 1795 drivers/media/pci/saa7134/saa7134-video.c *fb = dev->ovbuf; fb 1796 drivers/media/pci/saa7134/saa7134-video.c fb->capability = V4L2_FBUF_CAP_LIST_CLIPPING; fb 1802 drivers/media/pci/saa7134/saa7134-video.c const struct v4l2_framebuffer *fb) fb 1812 drivers/media/pci/saa7134/saa7134-video.c fmt = format_by_fourcc(fb->fmt.pixelformat); fb 1817 drivers/media/pci/saa7134/saa7134-video.c dev->ovbuf = *fb; fb 800 drivers/media/platform/fsl-viu.c struct v4l2_framebuffer *fb = arg; fb 802 drivers/media/platform/fsl-viu.c *fb = dev->ovbuf; fb 803 drivers/media/platform/fsl-viu.c fb->capability = V4L2_FBUF_CAP_LIST_CLIPPING; fb 811 drivers/media/platform/fsl-viu.c const struct v4l2_framebuffer *fb = arg; fb 818 drivers/media/platform/fsl-viu.c fmt = format_by_fourcc(fb->fmt.pixelformat); fb 823 drivers/media/platform/fsl-viu.c dev->ovbuf = *fb; fb 774 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct mtk_jpeg_fb *fb) fb 792 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c fb->plane_addr[i] = vb2_dma_contig_plane_dma_addr(dst_buf, i); fb 807 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c struct mtk_jpeg_fb fb; fb 829 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c if (mtk_jpeg_set_dec_dst(ctx, &jpeg_src_buf->dec_param, &dst_buf->vb2_buf, &fb)) fb 835 drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c &jpeg_src_buf->dec_param, &bs, &fb); fb 378 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c struct mtk_jpeg_fb *fb) fb 403 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c mtk_jpeg_dec_set_dst_bank0(base, fb->plane_addr[0], fb 404 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.c fb->plane_addr[1], fb->plane_addr[2]); fb 79 drivers/media/platform/mtk-jpeg/mtk_jpeg_hw.h struct mtk_jpeg_fb *fb); fb 221 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c static void put_fb_to_free(struct vdec_h264_inst *inst, struct vdec_fb *fb) fb 225 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c if (fb) { fb 236 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c fb->base_y.va, (u64)fb->base_y.dma_addr); fb 238 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c list->fb_list[list->write_idx].vdec_fb_va = (u64)(uintptr_t)fb; fb 338 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c struct vdec_fb *fb, bool *res_chg) fb 349 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c uint64_t vdec_fb_va = (u64)(uintptr_t)fb; fb 350 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c uint64_t y_fb_dma = fb ? (u64)fb->base_y.dma_addr : 0; fb 351 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c uint64_t c_fb_dma = fb ? (u64)fb->base_c.dma_addr : 0; fb 354 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c ++inst->num_nalu, y_fb_dma, c_fb_dma, fb); fb 430 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c put_fb_to_free(inst, fb); fb 439 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c struct vdec_fb *fb; fb 451 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c fb = (struct vdec_fb *) fb 453 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c fb->status |= (disp_list ? FB_ST_DISPLAY : FB_ST_FREE); fb 455 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c *out_fb = fb; fb 458 drivers/media/platform/mtk-vcodec/vdec/vdec_h264_if.c fb->status, list->fb_list[list->read_idx].poc, fb 303 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_fb *fb = (struct vdec_fb *)node->fb; fb 305 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c if (prev_y_dma == (uint64_t)fb->base_y.dma_addr) { fb 316 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node->fb = inst->cur_fb; fb 323 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node->fb = inst->cur_fb; fb 347 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->dec_fb[i].fb = NULL; fb 353 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c static void add_fb_to_free_list(struct vdec_vp8_inst *inst, void *fb) fb 357 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c if (fb) { fb 360 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node->fb = fb; fb 433 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_fb *fb, bool *res_chg) fb 450 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c y_fb_dma = fb ? (u64)fb->base_y.dma_addr : 0; fb 451 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c c_fb_dma = fb ? (u64)fb->base_c.dma_addr : 0; fb 454 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->frm_cnt, y_fb_dma, c_fb_dma, fb); fb 456 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c inst->cur_fb = fb; fb 475 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c add_fb_to_free_list(inst, fb); fb 487 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c add_fb_to_free_list(inst, fb); fb 519 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_fb *fb; fb 525 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c fb = (struct vdec_fb *)node->fb; fb 526 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c fb->status |= FB_ST_DISPLAY; fb 528 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node->fb, fb->status); fb 530 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c fb = NULL; fb 534 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c *out_fb = fb; fb 540 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c struct vdec_fb *fb; fb 546 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c fb = (struct vdec_fb *)node->fb; fb 547 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c fb->status |= FB_ST_FREE; fb 549 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c node->fb, fb->status); fb 551 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c fb = NULL; fb 555 drivers/media/platform/mtk-vcodec/vdec/vdec_vp8_if.c *out_fb = fb; fb 48 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb; fb 82 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb fb; fb 139 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb fb; fb 202 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static bool vp9_is_sf_ref_fb(struct vdec_vp9_inst *inst, struct vdec_fb *fb) fb 208 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (fb == &vsi->sf_ref_fb[i].fb) fb 217 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb = NULL; fb 221 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb = (struct vdec_fb *)node->fb; fb 222 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (fb->base_y.va == addr) { fb 228 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c return fb; fb 232 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb) fb 236 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (fb) { fb 241 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node->fb = fb; fb 249 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c static void vp9_free_sf_ref_fb(struct vdec_fb *fb) fb 252 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c container_of(fb, struct vp9_sf_ref_fb, fb); fb 268 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->frm_bufs[ref_idx].buf.fb)) { fb 269 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb; fb 271 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb = vp9_rm_from_fb_use_list(inst, fb 272 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->frm_bufs[ref_idx].buf.fb->base_y.va); fb 273 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_free_list(inst, fb); fb 276 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->frm_bufs[ref_idx].buf.fb); fb 290 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vsi->sf_ref_fb[i].fb.base_y.va) { fb 292 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c &vsi->sf_ref_fb[i].fb.base_y); fb 294 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c &vsi->sf_ref_fb[i].fb.base_c); fb 315 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vsi->sf_ref_fb[idx].fb.base_y.va && fb 324 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (vsi->sf_ref_fb[idx].fb.base_y.va == NULL) fb 333 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mem_basy_y = &vsi->sf_ref_fb[idx].fb.base_y; fb 342 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c mem_basy_c = &vsi->sf_ref_fb[idx].fb.base_c; fb 430 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb) fb 434 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!fb) { fb 442 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node->fb = fb; fb 469 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (frm_to_show->fb != inst->cur_fb) { fb 474 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if ((frm_to_show->fb != NULL) && fb 476 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c frm_to_show->fb->base_y.size) && fb 478 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c frm_to_show->fb->base_c.size)) { fb 480 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c (void *)frm_to_show->fb->base_y.va, fb 481 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c frm_to_show->fb->base_y.size); fb 483 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c (void *)frm_to_show->fb->base_c.va, fb 484 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c frm_to_show->fb->base_c.size); fb 490 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (frm_to_show->fb != NULL) fb 494 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c frm_to_show->fb->base_y.size); fb 503 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_disp_list(inst, frm_to_show->fb); fb 512 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst, vsi->frm_bufs[vsi->new_fb_idx].buf.fb)) { fb 513 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb; fb 515 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb = vp9_rm_from_fb_use_list(inst, fb 516 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->frm_bufs[vsi->new_fb_idx].buf.fb->base_y.va); fb 518 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_free_list(inst, fb); fb 521 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->frm_bufs[vsi->new_fb_idx].buf.fb); fb 615 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb = NULL; fb 620 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb = (struct vdec_fb *)node->fb; fb 621 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb->status |= FB_ST_DISPLAY; fb 624 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node->fb, fb->status); fb 628 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c return fb; fb 632 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb) fb 636 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (!fb) { fb 644 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node->fb = fb; fb 689 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->dec_fb[i].fb = NULL; fb 723 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb = NULL; fb 729 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb = (struct vdec_fb *)node->fb; fb 730 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c fb->status |= FB_ST_FREE; fb 732 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c node->fb, fb->status); fb 737 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c *out_fb = fb; fb 816 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c struct vdec_fb *fb, bool *res_chg) fb 826 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if ((bs == NULL) && (fb == NULL)) { fb 848 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c if (fb) fb 849 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->fb = *fb; fb 895 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c cur_fb = &vsi->sf_ref_fb[vsi->sf_next_ref_fb_idx].fb; fb 900 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->cur_fb = fb; fb 902 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c inst->cur_fb = fb; fb 905 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vsi->frm_bufs[vsi->new_fb_idx].buf.fb = inst->cur_fb; fb 957 drivers/media/platform/mtk-vcodec/vdec/vdec_vp9_if.c vp9_add_to_fb_free_list(inst, fb); fb 30 drivers/media/platform/mtk-vcodec/vdec_drv_base.h struct vdec_fb *fb, bool *res_chg); fb 46 drivers/media/platform/mtk-vcodec/vdec_drv_if.c struct vdec_fb *fb, bool *res_chg) fb 57 drivers/media/platform/mtk-vcodec/vdec_drv_if.c if (fb) { fb 58 drivers/media/platform/mtk-vcodec/vdec_drv_if.c if (((fb->base_y.dma_addr & 511) != 0) || fb 59 drivers/media/platform/mtk-vcodec/vdec_drv_if.c ((fb->base_c.dma_addr & 511) != 0)) { fb 73 drivers/media/platform/mtk-vcodec/vdec_drv_if.c ret = ctx->dec_if->decode(ctx->drv_handle, bs, fb, res_chg); fb 54 drivers/media/platform/mtk-vcodec/vdec_drv_if.h struct vdec_fb *fb; fb 88 drivers/media/platform/mtk-vcodec/vdec_drv_if.h struct vdec_fb *fb, bool *res_chg); fb 315 drivers/media/usb/stkwebcam/stk-webcam.c struct stk_sio_buffer *fb; fb 342 drivers/media/usb/stkwebcam/stk-webcam.c fb = list_first_entry(&dev->sio_avail, fb 344 drivers/media/usb/stkwebcam/stk-webcam.c fill = fb->buffer + fb->v4lbuf.bytesused; fb 372 drivers/media/usb/stkwebcam/stk-webcam.c if (fb->v4lbuf.bytesused != 0 fb 373 drivers/media/usb/stkwebcam/stk-webcam.c && fb->v4lbuf.bytesused != dev->frame_size) { fb 375 drivers/media/usb/stkwebcam/stk-webcam.c i, fb->v4lbuf.bytesused); fb 376 drivers/media/usb/stkwebcam/stk-webcam.c fb->v4lbuf.bytesused = 0; fb 377 drivers/media/usb/stkwebcam/stk-webcam.c fill = fb->buffer; fb 378 drivers/media/usb/stkwebcam/stk-webcam.c } else if (fb->v4lbuf.bytesused == dev->frame_size) { fb 381 drivers/media/usb/stkwebcam/stk-webcam.c fb->v4lbuf.bytesused = 0; fb 382 drivers/media/usb/stkwebcam/stk-webcam.c fill = fb->buffer; fb 387 drivers/media/usb/stkwebcam/stk-webcam.c fb = list_first_entry(&dev->sio_avail, fb 389 drivers/media/usb/stkwebcam/stk-webcam.c fb->v4lbuf.bytesused = 0; fb 390 drivers/media/usb/stkwebcam/stk-webcam.c fill = fb->buffer; fb 399 drivers/media/usb/stkwebcam/stk-webcam.c if (framelen + fb->v4lbuf.bytesused > dev->frame_size) { fb 410 drivers/media/usb/stkwebcam/stk-webcam.c fb->v4lbuf.bytesused += framelen; fb 1561 drivers/mfd/sm501.c .fb = &sm501_fb_pdata, fb 309 drivers/mfd/tc6393xb.c int tc6393xb_lcd_set_power(struct platform_device *fb, bool on) fb 311 drivers/mfd/tc6393xb.c struct tc6393xb *tc6393xb = dev_get_drvdata(fb->dev.parent); fb 330 drivers/mfd/tc6393xb.c int tc6393xb_lcd_mode(struct platform_device *fb, fb 332 drivers/mfd/tc6393xb.c struct tc6393xb *tc6393xb = dev_get_drvdata(fb->dev.parent); fb 1746 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h #define SHMEM_ARRAY_BITPOS(i, eb, fb) \ fb 1747 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h ((((32/(fb)) - 1 - ((i)/((fb)/(eb))) % (32/(fb))) * (fb)) + \ fb 1748 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h (((i)%((fb)/(eb))) * (eb))) fb 1750 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h #define SHMEM_ARRAY_GET(a, i, eb, fb) \ fb 1751 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h ((a[SHMEM_ARRAY_ENTRY(i, eb)] >> SHMEM_ARRAY_BITPOS(i, eb, fb)) & \ fb 1754 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h #define SHMEM_ARRAY_SET(a, i, eb, fb, val) \ fb 1757 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h SHMEM_ARRAY_BITPOS(i, eb, fb)); \ fb 1759 drivers/net/ethernet/broadcom/bnx2x/bnx2x_hsi.h SHMEM_ARRAY_BITPOS(i, eb, fb)); \ fb 32 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 34 drivers/staging/fieldbus/dev_core.c return sprintf(buf, "%d\n", !!fb->online); fb 41 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 43 drivers/staging/fieldbus/dev_core.c if (!fb->enable_get) fb 45 drivers/staging/fieldbus/dev_core.c return sprintf(buf, "%d\n", !!fb->enable_get(fb)); fb 51 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 55 drivers/staging/fieldbus/dev_core.c if (!fb->simple_enable_set) fb 60 drivers/staging/fieldbus/dev_core.c ret = fb->simple_enable_set(fb, value); fb 70 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 76 drivers/staging/fieldbus/dev_core.c return snprintf(buf, PAGE_SIZE, "%s\n", fb->card_name); fb 83 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 85 drivers/staging/fieldbus/dev_core.c return sprintf(buf, "%zu\n", fb->read_area_sz); fb 92 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 94 drivers/staging/fieldbus/dev_core.c return sprintf(buf, "%zu\n", fb->write_area_sz); fb 101 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 103 drivers/staging/fieldbus/dev_core.c return fb->fieldbus_id_get(fb, buf, PAGE_SIZE); fb 110 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 113 drivers/staging/fieldbus/dev_core.c switch (fb->fieldbus_type) { fb 141 drivers/staging/fieldbus/dev_core.c struct fieldbus_dev *fb = dev_get_drvdata(dev); fb 146 drivers/staging/fieldbus/dev_core.c if (fb->enable_get) fb 148 drivers/staging/fieldbus/dev_core.c if (fb->simple_enable_set) fb 237 drivers/staging/fieldbus/dev_core.c void fieldbus_dev_area_updated(struct fieldbus_dev *fb) fb 239 drivers/staging/fieldbus/dev_core.c fb->dc_event++; fb 240 drivers/staging/fieldbus/dev_core.c wake_up_all(&fb->dc_wq); fb 244 drivers/staging/fieldbus/dev_core.c void fieldbus_dev_online_changed(struct fieldbus_dev *fb, bool online) fb 246 drivers/staging/fieldbus/dev_core.c fb->online = online; fb 247 drivers/staging/fieldbus/dev_core.c kobject_uevent(&fb->dev->kobj, KOBJ_CHANGE); fb 251 drivers/staging/fieldbus/dev_core.c static void __fieldbus_dev_unregister(struct fieldbus_dev *fb) fb 253 drivers/staging/fieldbus/dev_core.c if (!fb) fb 255 drivers/staging/fieldbus/dev_core.c device_destroy(&fieldbus_class, fb->cdev.dev); fb 256 drivers/staging/fieldbus/dev_core.c cdev_del(&fb->cdev); fb 257 drivers/staging/fieldbus/dev_core.c ida_simple_remove(&fieldbus_ida, fb->id); fb 260 drivers/staging/fieldbus/dev_core.c void fieldbus_dev_unregister(struct fieldbus_dev *fb) fb 263 drivers/staging/fieldbus/dev_core.c __fieldbus_dev_unregister(fb); fb 268 drivers/staging/fieldbus/dev_core.c static int __fieldbus_dev_register(struct fieldbus_dev *fb) fb 273 drivers/staging/fieldbus/dev_core.c if (!fb) fb 275 drivers/staging/fieldbus/dev_core.c if (!fb->read_area || !fb->write_area || !fb->fieldbus_id_get) fb 277 drivers/staging/fieldbus/dev_core.c fb->id = ida_simple_get(&fieldbus_ida, 0, MAX_FIELDBUSES, GFP_KERNEL); fb 278 drivers/staging/fieldbus/dev_core.c if (fb->id < 0) fb 279 drivers/staging/fieldbus/dev_core.c return fb->id; fb 280 drivers/staging/fieldbus/dev_core.c devno = MKDEV(MAJOR(fieldbus_devt), fb->id); fb 281 drivers/staging/fieldbus/dev_core.c init_waitqueue_head(&fb->dc_wq); fb 282 drivers/staging/fieldbus/dev_core.c cdev_init(&fb->cdev, &fieldbus_fops); fb 283 drivers/staging/fieldbus/dev_core.c err = cdev_add(&fb->cdev, devno, 1); fb 286 drivers/staging/fieldbus/dev_core.c fb->id, MAJOR(fieldbus_devt), fb->id); fb 289 drivers/staging/fieldbus/dev_core.c fb->dev = device_create(&fieldbus_class, fb->parent, devno, fb, fb 290 drivers/staging/fieldbus/dev_core.c "fieldbus_dev%d", fb->id); fb 291 drivers/staging/fieldbus/dev_core.c if (IS_ERR(fb->dev)) { fb 292 drivers/staging/fieldbus/dev_core.c err = PTR_ERR(fb->dev); fb 298 drivers/staging/fieldbus/dev_core.c cdev_del(&fb->cdev); fb 300 drivers/staging/fieldbus/dev_core.c ida_simple_remove(&fieldbus_ida, fb->id); fb 304 drivers/staging/fieldbus/dev_core.c int fieldbus_dev_register(struct fieldbus_dev *fb) fb 309 drivers/staging/fieldbus/dev_core.c err = __fieldbus_dev_register(fb); fb 71 drivers/staging/fieldbus/fieldbus_dev.h void fieldbus_dev_unregister(struct fieldbus_dev *fb); fb 78 drivers/staging/fieldbus/fieldbus_dev.h int __must_check fieldbus_dev_register(struct fieldbus_dev *fb); fb 86 drivers/staging/fieldbus/fieldbus_dev.h void fieldbus_dev_area_updated(struct fieldbus_dev *fb); fb 93 drivers/staging/fieldbus/fieldbus_dev.h void fieldbus_dev_online_changed(struct fieldbus_dev *fb, bool online); fb 97 drivers/staging/fieldbus/fieldbus_dev.h static inline void fieldbus_dev_unregister(struct fieldbus_dev *fb) {} fb 98 drivers/staging/fieldbus/fieldbus_dev.h static inline int __must_check fieldbus_dev_register(struct fieldbus_dev *fb) fb 103 drivers/staging/fieldbus/fieldbus_dev.h static inline void fieldbus_dev_area_updated(struct fieldbus_dev *fb) {} fb 104 drivers/staging/fieldbus/fieldbus_dev.h static inline void fieldbus_dev_online_changed(struct fieldbus_dev *fb, fb 260 drivers/video/backlight/as3711_bl.c struct device_node *bl, *fb; fb 269 drivers/video/backlight/as3711_bl.c fb = of_parse_phandle(bl, "su1-dev", 0); fb 270 drivers/video/backlight/as3711_bl.c if (fb) { fb 271 drivers/video/backlight/as3711_bl.c of_node_put(fb); fb 282 drivers/video/backlight/as3711_bl.c fb = of_parse_phandle(bl, "su2-dev", 0); fb 283 drivers/video/backlight/as3711_bl.c if (fb) { fb 286 drivers/video/backlight/as3711_bl.c of_node_put(fb); fb 33 drivers/video/fbdev/amba-clcd.c #define to_clcd(info) container_of(info, struct clcd_fb, fb) fb 51 drivers/video/fbdev/amba-clcd.c static inline void clcdfb_set_start(struct clcd_fb *fb) fb 53 drivers/video/fbdev/amba-clcd.c unsigned long ustart = fb->fb.fix.smem_start; fb 56 drivers/video/fbdev/amba-clcd.c ustart += fb->fb.var.yoffset * fb->fb.fix.line_length; fb 57 drivers/video/fbdev/amba-clcd.c lstart = ustart + fb->fb.var.yres * fb->fb.fix.line_length / 2; fb 59 drivers/video/fbdev/amba-clcd.c writel(ustart, fb->regs + CLCD_UBAS); fb 60 drivers/video/fbdev/amba-clcd.c writel(lstart, fb->regs + CLCD_LBAS); fb 63 drivers/video/fbdev/amba-clcd.c static void clcdfb_disable(struct clcd_fb *fb) fb 67 drivers/video/fbdev/amba-clcd.c if (fb->board->disable) fb 68 drivers/video/fbdev/amba-clcd.c fb->board->disable(fb); fb 70 drivers/video/fbdev/amba-clcd.c if (fb->panel->backlight) { fb 71 drivers/video/fbdev/amba-clcd.c fb->panel->backlight->props.power = FB_BLANK_POWERDOWN; fb 72 drivers/video/fbdev/amba-clcd.c backlight_update_status(fb->panel->backlight); fb 75 drivers/video/fbdev/amba-clcd.c val = readl(fb->regs + fb->off_cntl); fb 78 drivers/video/fbdev/amba-clcd.c writel(val, fb->regs + fb->off_cntl); fb 84 drivers/video/fbdev/amba-clcd.c writel(val, fb->regs + fb->off_cntl); fb 90 drivers/video/fbdev/amba-clcd.c if (fb->clk_enabled) { fb 91 drivers/video/fbdev/amba-clcd.c fb->clk_enabled = false; fb 92 drivers/video/fbdev/amba-clcd.c clk_disable(fb->clk); fb 96 drivers/video/fbdev/amba-clcd.c static void clcdfb_enable(struct clcd_fb *fb, u32 cntl) fb 101 drivers/video/fbdev/amba-clcd.c if (!fb->clk_enabled) { fb 102 drivers/video/fbdev/amba-clcd.c fb->clk_enabled = true; fb 103 drivers/video/fbdev/amba-clcd.c clk_enable(fb->clk); fb 110 drivers/video/fbdev/amba-clcd.c writel(cntl, fb->regs + fb->off_cntl); fb 118 drivers/video/fbdev/amba-clcd.c writel(cntl, fb->regs + fb->off_cntl); fb 123 drivers/video/fbdev/amba-clcd.c if (fb->panel->backlight) { fb 124 drivers/video/fbdev/amba-clcd.c fb->panel->backlight->props.power = FB_BLANK_UNBLANK; fb 125 drivers/video/fbdev/amba-clcd.c backlight_update_status(fb->panel->backlight); fb 131 drivers/video/fbdev/amba-clcd.c if (fb->board->enable) fb 132 drivers/video/fbdev/amba-clcd.c fb->board->enable(fb); fb 136 drivers/video/fbdev/amba-clcd.c clcdfb_set_bitfields(struct clcd_fb *fb, struct fb_var_screeninfo *var) fb 141 drivers/video/fbdev/amba-clcd.c if (fb->panel->caps && fb->board->caps) fb 142 drivers/video/fbdev/amba-clcd.c caps = fb->panel->caps & fb->board->caps; fb 145 drivers/video/fbdev/amba-clcd.c caps = fb->panel->cntl & CNTL_BGR ? fb 152 drivers/video/fbdev/amba-clcd.c if (!(fb->panel->cntl & CNTL_LCDTFT)) fb 275 drivers/video/fbdev/amba-clcd.c struct clcd_fb *fb = to_clcd(info); fb 278 drivers/video/fbdev/amba-clcd.c if (fb->board->check) fb 279 drivers/video/fbdev/amba-clcd.c ret = fb->board->check(fb, var); fb 283 drivers/video/fbdev/amba-clcd.c var->yres_virtual > fb->fb.fix.smem_len) fb 287 drivers/video/fbdev/amba-clcd.c ret = clcdfb_set_bitfields(fb, var); fb 294 drivers/video/fbdev/amba-clcd.c struct clcd_fb *fb = to_clcd(info); fb 297 drivers/video/fbdev/amba-clcd.c fb->fb.fix.line_length = fb->fb.var.xres_virtual * fb 298 drivers/video/fbdev/amba-clcd.c fb->fb.var.bits_per_pixel / 8; fb 300 drivers/video/fbdev/amba-clcd.c if (fb->fb.var.bits_per_pixel <= 8) fb 301 drivers/video/fbdev/amba-clcd.c fb->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; fb 303 drivers/video/fbdev/amba-clcd.c fb->fb.fix.visual = FB_VISUAL_TRUECOLOR; fb 305 drivers/video/fbdev/amba-clcd.c fb->board->decode(fb, ®s); fb 307 drivers/video/fbdev/amba-clcd.c clcdfb_disable(fb); fb 309 drivers/video/fbdev/amba-clcd.c writel(regs.tim0, fb->regs + CLCD_TIM0); fb 310 drivers/video/fbdev/amba-clcd.c writel(regs.tim1, fb->regs + CLCD_TIM1); fb 311 drivers/video/fbdev/amba-clcd.c writel(regs.tim2, fb->regs + CLCD_TIM2); fb 312 drivers/video/fbdev/amba-clcd.c writel(regs.tim3, fb->regs + CLCD_TIM3); fb 314 drivers/video/fbdev/amba-clcd.c clcdfb_set_start(fb); fb 316 drivers/video/fbdev/amba-clcd.c clk_set_rate(fb->clk, (1000000000 / regs.pixclock) * 1000); fb 318 drivers/video/fbdev/amba-clcd.c fb->clcd_cntl = regs.cntl; fb 320 drivers/video/fbdev/amba-clcd.c clcdfb_enable(fb, regs.cntl); fb 327 drivers/video/fbdev/amba-clcd.c readl(fb->regs + CLCD_TIM0), readl(fb->regs + CLCD_TIM1), fb 328 drivers/video/fbdev/amba-clcd.c readl(fb->regs + CLCD_TIM2), readl(fb->regs + CLCD_TIM3), fb 329 drivers/video/fbdev/amba-clcd.c readl(fb->regs + CLCD_UBAS), readl(fb->regs + CLCD_LBAS), fb 330 drivers/video/fbdev/amba-clcd.c readl(fb->regs + fb->off_ienb), readl(fb->regs + fb->off_cntl)); fb 351 drivers/video/fbdev/amba-clcd.c struct clcd_fb *fb = to_clcd(info); fb 354 drivers/video/fbdev/amba-clcd.c fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) | fb 355 drivers/video/fbdev/amba-clcd.c convert_bitfield(blue, &fb->fb.var.blue) | fb 356 drivers/video/fbdev/amba-clcd.c convert_bitfield(green, &fb->fb.var.green) | fb 357 drivers/video/fbdev/amba-clcd.c convert_bitfield(red, &fb->fb.var.red); fb 359 drivers/video/fbdev/amba-clcd.c if (fb->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR && regno < 256) { fb 371 drivers/video/fbdev/amba-clcd.c if (fb->clcd_cntl & CNTL_BEBO) fb 381 drivers/video/fbdev/amba-clcd.c val = readl(fb->regs + hw_reg) & mask; fb 382 drivers/video/fbdev/amba-clcd.c writel(val | newval, fb->regs + hw_reg); fb 400 drivers/video/fbdev/amba-clcd.c struct clcd_fb *fb = to_clcd(info); fb 403 drivers/video/fbdev/amba-clcd.c clcdfb_disable(fb); fb 405 drivers/video/fbdev/amba-clcd.c clcdfb_enable(fb, fb->clcd_cntl); fb 413 drivers/video/fbdev/amba-clcd.c struct clcd_fb *fb = to_clcd(info); fb 420 drivers/video/fbdev/amba-clcd.c fb->board->mmap) fb 421 drivers/video/fbdev/amba-clcd.c ret = fb->board->mmap(fb, vma); fb 438 drivers/video/fbdev/amba-clcd.c static int clcdfb_register(struct clcd_fb *fb) fb 446 drivers/video/fbdev/amba-clcd.c if (amba_manf(fb->dev) == 0x41 && amba_part(fb->dev) == 0x111) { fb 447 drivers/video/fbdev/amba-clcd.c fb->off_ienb = CLCD_PL111_IENB; fb 448 drivers/video/fbdev/amba-clcd.c fb->off_cntl = CLCD_PL111_CNTL; fb 450 drivers/video/fbdev/amba-clcd.c fb->off_ienb = CLCD_PL110_IENB; fb 451 drivers/video/fbdev/amba-clcd.c fb->off_cntl = CLCD_PL110_CNTL; fb 454 drivers/video/fbdev/amba-clcd.c fb->clk = clk_get(&fb->dev->dev, NULL); fb 455 drivers/video/fbdev/amba-clcd.c if (IS_ERR(fb->clk)) { fb 456 drivers/video/fbdev/amba-clcd.c ret = PTR_ERR(fb->clk); fb 460 drivers/video/fbdev/amba-clcd.c ret = clk_prepare(fb->clk); fb 464 drivers/video/fbdev/amba-clcd.c fb->fb.device = &fb->dev->dev; fb 466 drivers/video/fbdev/amba-clcd.c fb->fb.fix.mmio_start = fb->dev->res.start; fb 467 drivers/video/fbdev/amba-clcd.c fb->fb.fix.mmio_len = resource_size(&fb->dev->res); fb 469 drivers/video/fbdev/amba-clcd.c fb->regs = ioremap(fb->fb.fix.mmio_start, fb->fb.fix.mmio_len); fb 470 drivers/video/fbdev/amba-clcd.c if (!fb->regs) { fb 476 drivers/video/fbdev/amba-clcd.c fb->fb.fbops = &clcdfb_ops; fb 477 drivers/video/fbdev/amba-clcd.c fb->fb.flags = FBINFO_FLAG_DEFAULT; fb 478 drivers/video/fbdev/amba-clcd.c fb->fb.pseudo_palette = fb->cmap; fb 480 drivers/video/fbdev/amba-clcd.c strncpy(fb->fb.fix.id, clcd_name, sizeof(fb->fb.fix.id)); fb 481 drivers/video/fbdev/amba-clcd.c fb->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 482 drivers/video/fbdev/amba-clcd.c fb->fb.fix.type_aux = 0; fb 483 drivers/video/fbdev/amba-clcd.c fb->fb.fix.xpanstep = 0; fb 484 drivers/video/fbdev/amba-clcd.c fb->fb.fix.ypanstep = 0; fb 485 drivers/video/fbdev/amba-clcd.c fb->fb.fix.ywrapstep = 0; fb 486 drivers/video/fbdev/amba-clcd.c fb->fb.fix.accel = FB_ACCEL_NONE; fb 488 drivers/video/fbdev/amba-clcd.c fb->fb.var.xres = fb->panel->mode.xres; fb 489 drivers/video/fbdev/amba-clcd.c fb->fb.var.yres = fb->panel->mode.yres; fb 490 drivers/video/fbdev/amba-clcd.c fb->fb.var.xres_virtual = fb->panel->mode.xres; fb 491 drivers/video/fbdev/amba-clcd.c fb->fb.var.yres_virtual = fb->panel->mode.yres; fb 492 drivers/video/fbdev/amba-clcd.c fb->fb.var.bits_per_pixel = fb->panel->bpp; fb 493 drivers/video/fbdev/amba-clcd.c fb->fb.var.grayscale = fb->panel->grayscale; fb 494 drivers/video/fbdev/amba-clcd.c fb->fb.var.pixclock = fb->panel->mode.pixclock; fb 495 drivers/video/fbdev/amba-clcd.c fb->fb.var.left_margin = fb->panel->mode.left_margin; fb 496 drivers/video/fbdev/amba-clcd.c fb->fb.var.right_margin = fb->panel->mode.right_margin; fb 497 drivers/video/fbdev/amba-clcd.c fb->fb.var.upper_margin = fb->panel->mode.upper_margin; fb 498 drivers/video/fbdev/amba-clcd.c fb->fb.var.lower_margin = fb->panel->mode.lower_margin; fb 499 drivers/video/fbdev/amba-clcd.c fb->fb.var.hsync_len = fb->panel->mode.hsync_len; fb 500 drivers/video/fbdev/amba-clcd.c fb->fb.var.vsync_len = fb->panel->mode.vsync_len; fb 501 drivers/video/fbdev/amba-clcd.c fb->fb.var.sync = fb->panel->mode.sync; fb 502 drivers/video/fbdev/amba-clcd.c fb->fb.var.vmode = fb->panel->mode.vmode; fb 503 drivers/video/fbdev/amba-clcd.c fb->fb.var.activate = FB_ACTIVATE_NOW; fb 504 drivers/video/fbdev/amba-clcd.c fb->fb.var.nonstd = 0; fb 505 drivers/video/fbdev/amba-clcd.c fb->fb.var.height = fb->panel->height; fb 506 drivers/video/fbdev/amba-clcd.c fb->fb.var.width = fb->panel->width; fb 507 drivers/video/fbdev/amba-clcd.c fb->fb.var.accel_flags = 0; fb 509 drivers/video/fbdev/amba-clcd.c fb->fb.monspecs.hfmin = 0; fb 510 drivers/video/fbdev/amba-clcd.c fb->fb.monspecs.hfmax = 100000; fb 511 drivers/video/fbdev/amba-clcd.c fb->fb.monspecs.vfmin = 0; fb 512 drivers/video/fbdev/amba-clcd.c fb->fb.monspecs.vfmax = 400; fb 513 drivers/video/fbdev/amba-clcd.c fb->fb.monspecs.dclkmin = 1000000; fb 514 drivers/video/fbdev/amba-clcd.c fb->fb.monspecs.dclkmax = 100000000; fb 519 drivers/video/fbdev/amba-clcd.c clcdfb_set_bitfields(fb, &fb->fb.var); fb 524 drivers/video/fbdev/amba-clcd.c ret = fb_alloc_cmap(&fb->fb.cmap, 256, 0); fb 531 drivers/video/fbdev/amba-clcd.c writel(0, fb->regs + fb->off_ienb); fb 533 drivers/video/fbdev/amba-clcd.c fb_set_var(&fb->fb, &fb->fb.var); fb 535 drivers/video/fbdev/amba-clcd.c dev_info(&fb->dev->dev, "%s hardware, %s display\n", fb 536 drivers/video/fbdev/amba-clcd.c fb->board->name, fb->panel->mode.name); fb 538 drivers/video/fbdev/amba-clcd.c ret = register_framebuffer(&fb->fb); fb 544 drivers/video/fbdev/amba-clcd.c fb_dealloc_cmap(&fb->fb.cmap); fb 546 drivers/video/fbdev/amba-clcd.c iounmap(fb->regs); fb 548 drivers/video/fbdev/amba-clcd.c clk_unprepare(fb->clk); fb 550 drivers/video/fbdev/amba-clcd.c clk_put(fb->clk); fb 650 drivers/video/fbdev/amba-clcd.c static int clcdfb_of_init_tft_panel(struct clcd_fb *fb, u32 r0, u32 g0, u32 b0) fb 670 drivers/video/fbdev/amba-clcd.c fb->panel->tim2 |= TIM2_BCD; fb 673 drivers/video/fbdev/amba-clcd.c fb->panel->cntl |= CNTL_LCDTFT | CNTL_LCDVCOMP(1); fb 675 drivers/video/fbdev/amba-clcd.c fb->panel->caps = 0; fb 678 drivers/video/fbdev/amba-clcd.c for (i = 0; i < ARRAY_SIZE(panels) && !fb->panel->caps; i++) { fb 679 drivers/video/fbdev/amba-clcd.c if (amba_part(fb->dev) != panels[i].part) fb 684 drivers/video/fbdev/amba-clcd.c fb->panel->caps = panels[i].caps; fb 692 drivers/video/fbdev/amba-clcd.c fb->panel->bgr_connection = true; fb 694 drivers/video/fbdev/amba-clcd.c return fb->panel->caps ? 0 : -EINVAL; fb 697 drivers/video/fbdev/amba-clcd.c static int clcdfb_of_init_display(struct clcd_fb *fb) fb 705 drivers/video/fbdev/amba-clcd.c fb->panel = devm_kzalloc(&fb->dev->dev, sizeof(*fb->panel), GFP_KERNEL); fb 706 drivers/video/fbdev/amba-clcd.c if (!fb->panel) fb 712 drivers/video/fbdev/amba-clcd.c endpoint = of_graph_get_next_endpoint(fb->dev->dev.of_node, NULL); fb 720 drivers/video/fbdev/amba-clcd.c err = clcdfb_of_get_backlight(panel, fb->panel); fb 724 drivers/video/fbdev/amba-clcd.c err = clcdfb_of_get_mode(&fb->dev->dev, panel, fb->panel); fb 728 drivers/video/fbdev/amba-clcd.c err = of_property_read_u32(fb->dev->dev.of_node, "max-memory-bandwidth", fb 739 drivers/video/fbdev/amba-clcd.c / PICOS2KHZ(fb->panel->mode.pixclock); fb 745 drivers/video/fbdev/amba-clcd.c fb->panel->bpp = bpp; fb 748 drivers/video/fbdev/amba-clcd.c fb->panel->cntl |= CNTL_BEBO; fb 750 drivers/video/fbdev/amba-clcd.c fb->panel->width = -1; fb 751 drivers/video/fbdev/amba-clcd.c fb->panel->height = -1; fb 758 drivers/video/fbdev/amba-clcd.c return clcdfb_of_init_tft_panel(fb, tft_r0b0g0[0], fb 762 drivers/video/fbdev/amba-clcd.c static int clcdfb_of_vram_setup(struct clcd_fb *fb) fb 768 drivers/video/fbdev/amba-clcd.c err = clcdfb_of_init_display(fb); fb 772 drivers/video/fbdev/amba-clcd.c memory = of_parse_phandle(fb->dev->dev.of_node, "memory-region", 0); fb 776 drivers/video/fbdev/amba-clcd.c fb->fb.screen_base = of_iomap(memory, 0); fb 777 drivers/video/fbdev/amba-clcd.c if (!fb->fb.screen_base) fb 780 drivers/video/fbdev/amba-clcd.c fb->fb.fix.smem_start = of_translate_address(memory, fb 782 drivers/video/fbdev/amba-clcd.c fb->fb.fix.smem_len = size; fb 787 drivers/video/fbdev/amba-clcd.c static int clcdfb_of_vram_mmap(struct clcd_fb *fb, struct vm_area_struct *vma) fb 794 drivers/video/fbdev/amba-clcd.c kernel_size = fb->fb.fix.smem_len; fb 800 drivers/video/fbdev/amba-clcd.c __phys_to_pfn(fb->fb.fix.smem_start) + vma->vm_pgoff, fb 805 drivers/video/fbdev/amba-clcd.c static void clcdfb_of_vram_remove(struct clcd_fb *fb) fb 807 drivers/video/fbdev/amba-clcd.c iounmap(fb->fb.screen_base); fb 810 drivers/video/fbdev/amba-clcd.c static int clcdfb_of_dma_setup(struct clcd_fb *fb) fb 816 drivers/video/fbdev/amba-clcd.c err = clcdfb_of_init_display(fb); fb 820 drivers/video/fbdev/amba-clcd.c framesize = PAGE_ALIGN(fb->panel->mode.xres * fb->panel->mode.yres * fb 821 drivers/video/fbdev/amba-clcd.c fb->panel->bpp / 8); fb 822 drivers/video/fbdev/amba-clcd.c fb->fb.screen_base = dma_alloc_coherent(&fb->dev->dev, framesize, fb 824 drivers/video/fbdev/amba-clcd.c if (!fb->fb.screen_base) fb 827 drivers/video/fbdev/amba-clcd.c fb->fb.fix.smem_start = dma; fb 828 drivers/video/fbdev/amba-clcd.c fb->fb.fix.smem_len = framesize; fb 833 drivers/video/fbdev/amba-clcd.c static int clcdfb_of_dma_mmap(struct clcd_fb *fb, struct vm_area_struct *vma) fb 835 drivers/video/fbdev/amba-clcd.c return dma_mmap_wc(&fb->dev->dev, vma, fb->fb.screen_base, fb 836 drivers/video/fbdev/amba-clcd.c fb->fb.fix.smem_start, fb->fb.fix.smem_len); fb 839 drivers/video/fbdev/amba-clcd.c static void clcdfb_of_dma_remove(struct clcd_fb *fb) fb 841 drivers/video/fbdev/amba-clcd.c dma_free_coherent(&fb->dev->dev, fb->fb.fix.smem_len, fb 842 drivers/video/fbdev/amba-clcd.c fb->fb.screen_base, fb->fb.fix.smem_start); fb 880 drivers/video/fbdev/amba-clcd.c struct clcd_fb *fb; fb 899 drivers/video/fbdev/amba-clcd.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 900 drivers/video/fbdev/amba-clcd.c if (!fb) { fb 905 drivers/video/fbdev/amba-clcd.c fb->dev = dev; fb 906 drivers/video/fbdev/amba-clcd.c fb->board = board; fb 908 drivers/video/fbdev/amba-clcd.c dev_info(&fb->dev->dev, "PL%03x designer %02x rev%u at 0x%08llx\n", fb 912 drivers/video/fbdev/amba-clcd.c ret = fb->board->setup(fb); fb 916 drivers/video/fbdev/amba-clcd.c ret = clcdfb_register(fb); fb 918 drivers/video/fbdev/amba-clcd.c amba_set_drvdata(dev, fb); fb 922 drivers/video/fbdev/amba-clcd.c fb->board->remove(fb); fb 924 drivers/video/fbdev/amba-clcd.c kfree(fb); fb 933 drivers/video/fbdev/amba-clcd.c struct clcd_fb *fb = amba_get_drvdata(dev); fb 935 drivers/video/fbdev/amba-clcd.c clcdfb_disable(fb); fb 936 drivers/video/fbdev/amba-clcd.c unregister_framebuffer(&fb->fb); fb 937 drivers/video/fbdev/amba-clcd.c if (fb->fb.cmap.len) fb 938 drivers/video/fbdev/amba-clcd.c fb_dealloc_cmap(&fb->fb.cmap); fb 939 drivers/video/fbdev/amba-clcd.c iounmap(fb->regs); fb 940 drivers/video/fbdev/amba-clcd.c clk_unprepare(fb->clk); fb 941 drivers/video/fbdev/amba-clcd.c clk_put(fb->clk); fb 943 drivers/video/fbdev/amba-clcd.c fb->board->remove(fb); fb 945 drivers/video/fbdev/amba-clcd.c kfree(fb); fb 122 drivers/video/fbdev/arkfb.c u8 __iomem *fb = (u8 __iomem *)info->screen_base; fb 132 drivers/video/fbdev/arkfb.c fb += 2; fb 135 drivers/video/fbdev/arkfb.c fb_writeb(font[i], &fb[i * 4]); fb 136 drivers/video/fbdev/arkfb.c fb_writeb(font[i], &fb[i * 4 + (128 * 8)]); fb 138 drivers/video/fbdev/arkfb.c fb += 128; fb 141 drivers/video/fbdev/arkfb.c fb += 128*8; fb 803 drivers/video/fbdev/arkfb.c u_int transp, struct fb_info *fb) fb 805 drivers/video/fbdev/arkfb.c switch (fb->var.bits_per_pixel) { fb 811 drivers/video/fbdev/arkfb.c if ((fb->var.bits_per_pixel == 4) && fb 812 drivers/video/fbdev/arkfb.c (fb->var.nonstd == 0)) { fb 837 drivers/video/fbdev/arkfb.c if (fb->var.green.length == 5) fb 838 drivers/video/fbdev/arkfb.c ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | fb 840 drivers/video/fbdev/arkfb.c else if (fb->var.green.length == 6) fb 841 drivers/video/fbdev/arkfb.c ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | fb 851 drivers/video/fbdev/arkfb.c ((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) | fb 477 drivers/video/fbdev/aty/aty128fb.c struct fb_info *fb); fb 478 drivers/video/fbdev/aty/aty128fb.c static int aty128fb_blank(int blank, struct fb_info *fb); fb 1625 drivers/video/fbdev/aty/aty128fb.c struct fb_info *fb) fb 1627 drivers/video/fbdev/aty/aty128fb.c struct aty128fb_par *par = fb->par; fb 2196 drivers/video/fbdev/aty/aty128fb.c static int aty128fb_blank(int blank, struct fb_info *fb) fb 2198 drivers/video/fbdev/aty/aty128fb.c struct aty128fb_par *par = fb->par; fb 57 drivers/video/fbdev/carminefb.c struct fb_info *fb[MAX_DISPLAY]; fb 687 drivers/video/fbdev/carminefb.c hw->fb[0] = info; fb 698 drivers/video/fbdev/carminefb.c hw->fb[1] = info; fb 705 drivers/video/fbdev/carminefb.c cleanup_fb_device(hw->fb[0]); fb 731 drivers/video/fbdev/carminefb.c if (hw->fb[0]) fb 732 drivers/video/fbdev/carminefb.c fix = hw->fb[0]->fix; fb 734 drivers/video/fbdev/carminefb.c fix = hw->fb[1]->fix; fb 742 drivers/video/fbdev/carminefb.c cleanup_fb_device(hw->fb[i]); fb 1082 drivers/video/fbdev/core/fbmem.c struct fb_ops *fb; fb 1164 drivers/video/fbdev/core/fbmem.c fb = info->fbops; fb 1165 drivers/video/fbdev/core/fbmem.c if (fb->fb_ioctl) fb 1166 drivers/video/fbdev/core/fbmem.c ret = fb->fb_ioctl(info, cmd, arg); fb 1295 drivers/video/fbdev/core/fbmem.c struct fb_ops *fb; fb 1300 drivers/video/fbdev/core/fbmem.c fb = info->fbops; fb 1323 drivers/video/fbdev/core/fbmem.c if (fb->fb_compat_ioctl) fb 1324 drivers/video/fbdev/core/fbmem.c ret = fb->fb_compat_ioctl(info, cmd, arg); fb 1335 drivers/video/fbdev/core/fbmem.c struct fb_ops *fb; fb 1342 drivers/video/fbdev/core/fbmem.c fb = info->fbops; fb 1344 drivers/video/fbdev/core/fbmem.c if (fb->fb_mmap) { fb 1352 drivers/video/fbdev/core/fbmem.c res = fb->fb_mmap(info, vma); fb 1379 drivers/video/fbdev/core/fbmon.c int of_get_fb_videomode(struct device_node *np, struct fb_videomode *fb, fb 1389 drivers/video/fbdev/core/fbmon.c ret = fb_videomode_from_videomode(&vm, fb); fb 1395 drivers/video/fbdev/core/fbmon.c dump_fb_videomode(fb); fb 196 drivers/video/fbdev/core/svgalib.c u8 __iomem *fb = (u8 __iomem *)info->screen_base; fb 206 drivers/video/fbdev/core/svgalib.c fb += 2; fb 209 drivers/video/fbdev/core/svgalib.c fb_writeb(font[i], fb + i * 4); fb 212 drivers/video/fbdev/core/svgalib.c fb += 128; fb 224 drivers/video/fbdev/core/svgalib.c u16 __iomem *fb = (u16 __iomem *) info->screen_base; fb 229 drivers/video/fbdev/core/svgalib.c src = fb + area->sx * colstride + area->sy * rowstride; fb 230 drivers/video/fbdev/core/svgalib.c dst = fb + area->dx * colstride + area->dy * rowstride; fb 232 drivers/video/fbdev/core/svgalib.c src = fb + (area->sx + area->width - 1) * colstride fb 234 drivers/video/fbdev/core/svgalib.c dst = fb + (area->dx + area->width - 1) * colstride fb 262 drivers/video/fbdev/core/svgalib.c u8 __iomem *fb = (u8 __iomem *)info->screen_base; fb 263 drivers/video/fbdev/core/svgalib.c fb += rect->sx * colstride + rect->sy * rowstride; fb 266 drivers/video/fbdev/core/svgalib.c u8 __iomem *fb2 = fb; fb 272 drivers/video/fbdev/core/svgalib.c fb += rowstride; fb 283 drivers/video/fbdev/core/svgalib.c u8 __iomem *fb = (u8 __iomem *)info->screen_base; fb 284 drivers/video/fbdev/core/svgalib.c fb += blit->sx * colstride + blit->sy * rowstride; fb 288 drivers/video/fbdev/core/svgalib.c u8 __iomem *fb2 = fb; fb 296 drivers/video/fbdev/core/svgalib.c fb += rowstride; fb 59 drivers/video/fbdev/cyber2000fb.c struct fb_info fb; fb 158 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 161 drivers/video/fbdev/cyber2000fb.c if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) { fb 171 drivers/video/fbdev/cyber2000fb.c if (cfb->fb.var.bits_per_pixel > 8) fb 172 drivers/video/fbdev/cyber2000fb.c col = ((u32 *)cfb->fb.pseudo_palette)[col]; fb 175 drivers/video/fbdev/cyber2000fb.c dst = rect->dx + rect->dy * cfb->fb.var.xres_virtual; fb 176 drivers/video/fbdev/cyber2000fb.c if (cfb->fb.var.bits_per_pixel == 24) { fb 190 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 194 drivers/video/fbdev/cyber2000fb.c if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) { fb 203 drivers/video/fbdev/cyber2000fb.c src = region->sx + region->sy * cfb->fb.var.xres_virtual; fb 204 drivers/video/fbdev/cyber2000fb.c dst = region->dx + region->dy * cfb->fb.var.xres_virtual; fb 213 drivers/video/fbdev/cyber2000fb.c src += (region->height - 1) * cfb->fb.var.xres_virtual; fb 214 drivers/video/fbdev/cyber2000fb.c dst += (region->height - 1) * cfb->fb.var.xres_virtual; fb 218 drivers/video/fbdev/cyber2000fb.c if (cfb->fb.var.bits_per_pixel == 24) { fb 240 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 243 drivers/video/fbdev/cyber2000fb.c if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) fb 275 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 276 drivers/video/fbdev/cyber2000fb.c struct fb_var_screeninfo *var = &cfb->fb.var; fb 280 drivers/video/fbdev/cyber2000fb.c switch (cfb->fb.fix.visual) { fb 409 drivers/video/fbdev/cyber2000fb.c ((u32 *)cfb->fb.pseudo_palette)[regno] = pseudo_val; fb 757 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 838 drivers/video/fbdev/cyber2000fb.c if (mem > cfb->fb.fix.smem_len) fb 839 drivers/video/fbdev/cyber2000fb.c var->yres_virtual = cfb->fb.fix.smem_len * 8 / fb 860 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 861 drivers/video/fbdev/cyber2000fb.c struct fb_var_screeninfo *var = &cfb->fb.var; fb 933 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.line_length = var->xres_virtual * var->bits_per_pixel / 8; fb 942 drivers/video/fbdev/cyber2000fb.c mem = cfb->fb.fix.line_length * var->yres_virtual; fb 943 drivers/video/fbdev/cyber2000fb.c BUG_ON(mem > cfb->fb.fix.smem_len); fb 952 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; fb 954 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.visual = FB_VISUAL_TRUECOLOR; fb 956 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.visual = FB_VISUAL_DIRECTCOLOR; fb 970 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 975 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.xoffset = var->xoffset; fb 976 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.yoffset = var->yoffset; fb 979 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.vmode |= FB_VMODE_YWRAP; fb 981 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.vmode &= ~FB_VMODE_YWRAP; fb 1006 drivers/video/fbdev/cyber2000fb.c struct cfb_info *cfb = container_of(info, struct cfb_info, fb); fb 1126 drivers/video/fbdev/cyber2000fb.c info->dev = int_cfb_info->fb.device; fb 1134 drivers/video/fbdev/cyber2000fb.c info->fb = int_cfb_info->fb.screen_base; fb 1135 drivers/video/fbdev/cyber2000fb.c info->fb_size = int_cfb_info->fb.fix.smem_len; fb 1138 drivers/video/fbdev/cyber2000fb.c strlcpy(info->dev_name, int_cfb_info->fb.fix.id, fb 1231 drivers/video/fbdev/cyber2000fb.c strlcpy(cfb->ddc_adapter.name, cfb->fb.fix.id, fb 1236 drivers/video/fbdev/cyber2000fb.c cfb->ddc_adapter.dev.parent = cfb->fb.device; fb 1306 drivers/video/fbdev/cyber2000fb.c strlcpy(cfb->i2c_adapter.name, cfb->fb.fix.id, fb 1310 drivers/video/fbdev/cyber2000fb.c cfb->i2c_adapter.dev.parent = cfb->fb.device; fb 1428 drivers/video/fbdev/cyber2000fb.c strcpy(cfb->fb.fix.id, name); fb 1430 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 1431 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.type_aux = 0; fb 1432 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.xpanstep = 0; fb 1433 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.ypanstep = 1; fb 1434 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.ywrapstep = 0; fb 1438 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.accel = 0; fb 1442 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER2000; fb 1446 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER2010; fb 1450 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER5000; fb 1454 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.nonstd = 0; fb 1455 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.activate = FB_ACTIVATE_NOW; fb 1456 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.height = -1; fb 1457 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.width = -1; fb 1458 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.accel_flags = FB_ACCELF_TEXT; fb 1460 drivers/video/fbdev/cyber2000fb.c cfb->fb.fbops = &cyber2000fb_ops; fb 1461 drivers/video/fbdev/cyber2000fb.c cfb->fb.flags = FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN; fb 1462 drivers/video/fbdev/cyber2000fb.c cfb->fb.pseudo_palette = cfb->pseudo_palette; fb 1466 drivers/video/fbdev/cyber2000fb.c fb_alloc_cmap(&cfb->fb.cmap, NR_PALETTE, 0); fb 1477 drivers/video/fbdev/cyber2000fb.c fb_alloc_cmap(&cfb->fb.cmap, 0, 0); fb 1556 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.smem_len = smem_size; fb 1557 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.mmio_len = MMIO_SIZE; fb 1558 drivers/video/fbdev/cyber2000fb.c cfb->fb.screen_base = cfb->region; fb 1566 drivers/video/fbdev/cyber2000fb.c if (!fb_find_mode(&cfb->fb.var, &cfb->fb, NULL, NULL, 0, fb 1568 drivers/video/fbdev/cyber2000fb.c printk(KERN_ERR "%s: no valid mode found\n", cfb->fb.fix.id); fb 1572 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.yres_virtual = cfb->fb.fix.smem_len * 8 / fb 1573 drivers/video/fbdev/cyber2000fb.c (cfb->fb.var.bits_per_pixel * cfb->fb.var.xres_virtual); fb 1575 drivers/video/fbdev/cyber2000fb.c if (cfb->fb.var.yres_virtual < cfb->fb.var.yres) fb 1576 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.yres_virtual = cfb->fb.var.yres; fb 1586 drivers/video/fbdev/cyber2000fb.c h_sync = 1953125000 / cfb->fb.var.pixclock; fb 1587 drivers/video/fbdev/cyber2000fb.c h_sync = h_sync * 512 / (cfb->fb.var.xres + cfb->fb.var.left_margin + fb 1588 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.right_margin + cfb->fb.var.hsync_len); fb 1589 drivers/video/fbdev/cyber2000fb.c v_sync = h_sync / (cfb->fb.var.yres + cfb->fb.var.upper_margin + fb 1590 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.lower_margin + cfb->fb.var.vsync_len); fb 1593 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.id, cfb->fb.fix.smem_len >> 10, fb 1594 drivers/video/fbdev/cyber2000fb.c cfb->fb.var.xres, cfb->fb.var.yres, fb 1601 drivers/video/fbdev/cyber2000fb.c err = register_framebuffer(&cfb->fb); fb 1615 drivers/video/fbdev/cyber2000fb.c unregister_framebuffer(&cfb->fb); fb 1637 drivers/video/fbdev/cyber2000fb.c cyber2000fb_set_par(&cfb->fb); fb 1694 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.id); fb 1699 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.id); fb 1731 drivers/video/fbdev/cyber2000fb.c err = pci_request_regions(dev, cfb->fb.fix.id); fb 1743 drivers/video/fbdev/cyber2000fb.c cfb->fb.device = &dev->dev; fb 1744 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.mmio_start = pci_resource_start(dev, 0) + MMIO_OFFSET; fb 1745 drivers/video/fbdev/cyber2000fb.c cfb->fb.fix.smem_start = pci_resource_start(dev, 0); fb 467 drivers/video/fbdev/cyber2000fb.h char __iomem *fb; fb 44 drivers/video/fbdev/goldfishfb.c struct fb_info fb; fb 51 drivers/video/fbdev/goldfishfb.c struct goldfish_fb *fb = dev_id; fb 54 drivers/video/fbdev/goldfishfb.c spin_lock_irqsave(&fb->lock, irq_flags); fb 55 drivers/video/fbdev/goldfishfb.c status = readl(fb->reg_base + FB_INT_STATUS); fb 57 drivers/video/fbdev/goldfishfb.c fb->base_update_count++; fb 58 drivers/video/fbdev/goldfishfb.c wake_up(&fb->wait); fb 60 drivers/video/fbdev/goldfishfb.c spin_unlock_irqrestore(&fb->lock, irq_flags); fb 75 drivers/video/fbdev/goldfishfb.c struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); fb 78 drivers/video/fbdev/goldfishfb.c fb->cmap[regno] = convert_bitfield(transp, &fb->fb.var.transp) | fb 79 drivers/video/fbdev/goldfishfb.c convert_bitfield(blue, &fb->fb.var.blue) | fb 80 drivers/video/fbdev/goldfishfb.c convert_bitfield(green, &fb->fb.var.green) | fb 81 drivers/video/fbdev/goldfishfb.c convert_bitfield(red, &fb->fb.var.red); fb 118 drivers/video/fbdev/goldfishfb.c struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); fb 120 drivers/video/fbdev/goldfishfb.c if (fb->rotation != fb->fb.var.rotate) { fb 122 drivers/video/fbdev/goldfishfb.c fb->rotation = fb->fb.var.rotate; fb 123 drivers/video/fbdev/goldfishfb.c writel(fb->rotation, fb->reg_base + FB_SET_ROTATION); fb 134 drivers/video/fbdev/goldfishfb.c struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); fb 136 drivers/video/fbdev/goldfishfb.c spin_lock_irqsave(&fb->lock, irq_flags); fb 137 drivers/video/fbdev/goldfishfb.c base_update_count = fb->base_update_count; fb 138 drivers/video/fbdev/goldfishfb.c writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, fb 139 drivers/video/fbdev/goldfishfb.c fb->reg_base + FB_SET_BASE); fb 140 drivers/video/fbdev/goldfishfb.c spin_unlock_irqrestore(&fb->lock, irq_flags); fb 141 drivers/video/fbdev/goldfishfb.c wait_event_timeout(fb->wait, fb 142 drivers/video/fbdev/goldfishfb.c fb->base_update_count != base_update_count, HZ / 15); fb 143 drivers/video/fbdev/goldfishfb.c if (fb->base_update_count == base_update_count) fb 150 drivers/video/fbdev/goldfishfb.c struct goldfish_fb *fb = container_of(info, struct goldfish_fb, fb); fb 154 drivers/video/fbdev/goldfishfb.c writel(1, fb->reg_base + FB_SET_BLANK); fb 157 drivers/video/fbdev/goldfishfb.c writel(0, fb->reg_base + FB_SET_BLANK); fb 180 drivers/video/fbdev/goldfishfb.c struct goldfish_fb *fb; fb 185 drivers/video/fbdev/goldfishfb.c fb = kzalloc(sizeof(*fb), GFP_KERNEL); fb 186 drivers/video/fbdev/goldfishfb.c if (fb == NULL) { fb 190 drivers/video/fbdev/goldfishfb.c spin_lock_init(&fb->lock); fb 191 drivers/video/fbdev/goldfishfb.c init_waitqueue_head(&fb->wait); fb 192 drivers/video/fbdev/goldfishfb.c platform_set_drvdata(pdev, fb); fb 199 drivers/video/fbdev/goldfishfb.c fb->reg_base = ioremap(r->start, PAGE_SIZE); fb 200 drivers/video/fbdev/goldfishfb.c if (fb->reg_base == NULL) { fb 205 drivers/video/fbdev/goldfishfb.c fb->irq = platform_get_irq(pdev, 0); fb 206 drivers/video/fbdev/goldfishfb.c if (fb->irq <= 0) { fb 211 drivers/video/fbdev/goldfishfb.c width = readl(fb->reg_base + FB_GET_WIDTH); fb 212 drivers/video/fbdev/goldfishfb.c height = readl(fb->reg_base + FB_GET_HEIGHT); fb 214 drivers/video/fbdev/goldfishfb.c fb->fb.fbops = &goldfish_fb_ops; fb 215 drivers/video/fbdev/goldfishfb.c fb->fb.flags = FBINFO_FLAG_DEFAULT; fb 216 drivers/video/fbdev/goldfishfb.c fb->fb.pseudo_palette = fb->cmap; fb 217 drivers/video/fbdev/goldfishfb.c fb->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 218 drivers/video/fbdev/goldfishfb.c fb->fb.fix.visual = FB_VISUAL_TRUECOLOR; fb 219 drivers/video/fbdev/goldfishfb.c fb->fb.fix.line_length = width * 2; fb 220 drivers/video/fbdev/goldfishfb.c fb->fb.fix.accel = FB_ACCEL_NONE; fb 221 drivers/video/fbdev/goldfishfb.c fb->fb.fix.ypanstep = 1; fb 223 drivers/video/fbdev/goldfishfb.c fb->fb.var.xres = width; fb 224 drivers/video/fbdev/goldfishfb.c fb->fb.var.yres = height; fb 225 drivers/video/fbdev/goldfishfb.c fb->fb.var.xres_virtual = width; fb 226 drivers/video/fbdev/goldfishfb.c fb->fb.var.yres_virtual = height * 2; fb 227 drivers/video/fbdev/goldfishfb.c fb->fb.var.bits_per_pixel = 16; fb 228 drivers/video/fbdev/goldfishfb.c fb->fb.var.activate = FB_ACTIVATE_NOW; fb 229 drivers/video/fbdev/goldfishfb.c fb->fb.var.height = readl(fb->reg_base + FB_GET_PHYS_HEIGHT); fb 230 drivers/video/fbdev/goldfishfb.c fb->fb.var.width = readl(fb->reg_base + FB_GET_PHYS_WIDTH); fb 231 drivers/video/fbdev/goldfishfb.c fb->fb.var.pixclock = 0; fb 233 drivers/video/fbdev/goldfishfb.c fb->fb.var.red.offset = 11; fb 234 drivers/video/fbdev/goldfishfb.c fb->fb.var.red.length = 5; fb 235 drivers/video/fbdev/goldfishfb.c fb->fb.var.green.offset = 5; fb 236 drivers/video/fbdev/goldfishfb.c fb->fb.var.green.length = 6; fb 237 drivers/video/fbdev/goldfishfb.c fb->fb.var.blue.offset = 0; fb 238 drivers/video/fbdev/goldfishfb.c fb->fb.var.blue.length = 5; fb 241 drivers/video/fbdev/goldfishfb.c fb->fb.screen_base = (char __force __iomem *)dma_alloc_coherent( fb 245 drivers/video/fbdev/goldfishfb.c width, height, fb->fb.screen_base); fb 246 drivers/video/fbdev/goldfishfb.c if (fb->fb.screen_base == NULL) { fb 250 drivers/video/fbdev/goldfishfb.c fb->fb.fix.smem_start = fbpaddr; fb 251 drivers/video/fbdev/goldfishfb.c fb->fb.fix.smem_len = framesize; fb 253 drivers/video/fbdev/goldfishfb.c ret = fb_set_var(&fb->fb, &fb->fb.var); fb 257 drivers/video/fbdev/goldfishfb.c ret = request_irq(fb->irq, goldfish_fb_interrupt, IRQF_SHARED, fb 258 drivers/video/fbdev/goldfishfb.c pdev->name, fb); fb 262 drivers/video/fbdev/goldfishfb.c writel(FB_INT_BASE_UPDATE_DONE, fb->reg_base + FB_INT_ENABLE); fb 263 drivers/video/fbdev/goldfishfb.c goldfish_fb_pan_display(&fb->fb.var, &fb->fb); /* updates base */ fb 265 drivers/video/fbdev/goldfishfb.c ret = register_framebuffer(&fb->fb); fb 271 drivers/video/fbdev/goldfishfb.c free_irq(fb->irq, fb); fb 275 drivers/video/fbdev/goldfishfb.c (void *)fb->fb.screen_base, fb 276 drivers/video/fbdev/goldfishfb.c fb->fb.fix.smem_start); fb 279 drivers/video/fbdev/goldfishfb.c iounmap(fb->reg_base); fb 281 drivers/video/fbdev/goldfishfb.c kfree(fb); fb 289 drivers/video/fbdev/goldfishfb.c struct goldfish_fb *fb = platform_get_drvdata(pdev); fb 291 drivers/video/fbdev/goldfishfb.c framesize = fb->fb.var.xres_virtual * fb->fb.var.yres_virtual * 2; fb 292 drivers/video/fbdev/goldfishfb.c unregister_framebuffer(&fb->fb); fb 293 drivers/video/fbdev/goldfishfb.c free_irq(fb->irq, fb); fb 295 drivers/video/fbdev/goldfishfb.c dma_free_coherent(&pdev->dev, framesize, (void *)fb->fb.screen_base, fb 296 drivers/video/fbdev/goldfishfb.c fb->fb.fix.smem_start); fb 297 drivers/video/fbdev/goldfishfb.c iounmap(fb->reg_base); fb 298 drivers/video/fbdev/goldfishfb.c kfree(fb); fb 260 drivers/video/fbdev/i810/i810.h struct heap_data fb; fb 270 drivers/video/fbdev/i810/i810_accel.c PUT_RING((par->fb.offset << 12) + offset); fb 421 drivers/video/fbdev/i810/i810_accel.c i810_writel(DPLYBASE, mmio, par->fb.physical + offset); fb 1004 drivers/video/fbdev/i810/i810_main.c if (vidmem > par->fb.size) { fb 1005 drivers/video/fbdev/i810/i810_main.c vyres = par->fb.size/line_length; fb 1008 drivers/video/fbdev/i810/i810_main.c vxres = par->fb.size/vyres; fb 1095 drivers/video/fbdev/i810/i810_main.c fix->smem_start = par->fb.physical; fb 1096 drivers/video/fbdev/i810/i810_main.c fix->smem_len = par->fb.size; fb 1618 drivers/video/fbdev/i810/i810_main.c par->fb.offset); fb 1634 drivers/video/fbdev/i810/i810_main.c par->fb.physical = par->aperture.physical+(par->fb.offset << 12); fb 1635 drivers/video/fbdev/i810/i810_main.c par->fb.virtual = par->aperture.virtual+(par->fb.offset << 12); fb 1653 drivers/video/fbdev/i810/i810_main.c par->fb.size = vram << 20; fb 1654 drivers/video/fbdev/i810/i810_main.c par->fb.offset = v_offset_default << 20; fb 1655 drivers/video/fbdev/i810/i810_main.c par->fb.offset >>= 12; fb 1657 drivers/video/fbdev/i810/i810_main.c par->iring.offset = par->fb.offset + (par->fb.size >> 12); fb 1671 drivers/video/fbdev/i810/i810_main.c size = par->fb.size + par->iring.size; fb 1685 drivers/video/fbdev/i810/i810_main.c par->fb.offset)) { fb 2049 drivers/video/fbdev/i810/i810_main.c info->screen_base = par->fb.virtual; fb 2087 drivers/video/fbdev/i810/i810_main.c (int) par->fb.size>>10, info->monspecs.hfmin/1000, fb 293 drivers/video/fbdev/intelfb/intelfb.h struct intelfb_heap_data fb; fb 597 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.size = ROUND_UP_TO_PAGE(stolen_size); fb 600 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.size = MB(vram); fb 639 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.offset = offset + fb 647 drivers/video/fbdev/intelfb/intelfbdrv.c (dinfo->aperture.physical, ((offset + dinfo->fb.offset) << 12) fb 648 drivers/video/fbdev/intelfb/intelfbdrv.c + dinfo->fb.size); fb 717 drivers/video/fbdev/intelfb/intelfbdrv.c agp_allocate_memory(bridge, dinfo->fb.size >> 12, fb 724 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.offset)) { fb 733 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.offset = 0; /* starts at offset 0 */ fb 734 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.physical = dinfo->aperture.physical fb 735 drivers/video/fbdev/intelfb/intelfbdrv.c + (dinfo->fb.offset << 12); fb 736 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.virtual = dinfo->aperture.virtual + (dinfo->fb.offset << 12); fb 737 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb_start = dinfo->fb.offset << 12; fb 747 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.physical, dinfo->fb.offset, dinfo->fb.size, fb 748 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.virtual); fb 1072 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->fb.size / 2 / (var->bits_per_pixel * var->xres); fb 1107 drivers/video/fbdev/intelfb/intelfbdrv.c info->fix.smem_start = dinfo->fb.physical; fb 1108 drivers/video/fbdev/intelfb/intelfbdrv.c info->fix.smem_len = dinfo->fb.size; fb 1161 drivers/video/fbdev/intelfb/intelfbdrv.c dinfo->info->screen_base = (char __iomem *)dinfo->fb.virtual; fb 329 drivers/video/fbdev/intelfb/intelfbhw.c if (tmp > dinfo->fb.size) { fb 332 drivers/video/fbdev/intelfb/intelfbhw.c BtoKB(tmp), BtoKB(dinfo->fb.size)); fb 402 drivers/video/fbdev/intelfb/intelfbhw.c offset += dinfo->fb.offset << 12; fb 1254 drivers/video/fbdev/intelfb/intelfbhw.c hw->disp_a_base += dinfo->fb.offset << 12; fb 72 drivers/video/fbdev/mbx/mbxfb.c int (*platform_probe) (struct fb_info * fb); fb 73 drivers/video/fbdev/mbx/mbxfb.c int (*platform_remove) (struct fb_info * fb); fb 1207 drivers/video/fbdev/neofb.c u_int transp, struct fb_info *fb) fb 1209 drivers/video/fbdev/neofb.c if (regno >= fb->cmap.len || regno > 255) fb 1212 drivers/video/fbdev/neofb.c if (fb->var.bits_per_pixel <= 8) { fb 1219 drivers/video/fbdev/neofb.c switch (fb->var.bits_per_pixel) { fb 1221 drivers/video/fbdev/neofb.c ((u32 *) fb->pseudo_palette)[regno] = fb 1226 drivers/video/fbdev/neofb.c ((u32 *) fb->pseudo_palette)[regno] = fb 1232 drivers/video/fbdev/neofb.c ((u32 *) fb->pseudo_palette)[regno] = fb 152 drivers/video/fbdev/platinumfb.c static int platinumfb_blank(int blank, struct fb_info *fb) fb 145 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 151 drivers/video/fbdev/pxafb.c if (fbi->fb.var.grayscale) { fb 190 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 210 drivers/video/fbdev/pxafb.c if (fbi->fb.var.grayscale) fb 214 drivers/video/fbdev/pxafb.c switch (fbi->fb.fix.visual) { fb 221 drivers/video/fbdev/pxafb.c u32 *pal = fbi->fb.pseudo_palette; fb 223 drivers/video/fbdev/pxafb.c val = chan_to_field(red, &fbi->fb.var.red); fb 224 drivers/video/fbdev/pxafb.c val |= chan_to_field(green, &fbi->fb.var.green); fb 225 drivers/video/fbdev/pxafb.c val |= chan_to_field(blue, &fbi->fb.var.blue); fb 438 drivers/video/fbdev/pxafb.c var->yres_virtual = fbi->fb.fix.smem_len / line_length; fb 463 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 501 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 505 drivers/video/fbdev/pxafb.c fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; fb 507 drivers/video/fbdev/pxafb.c fbi->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; fb 514 drivers/video/fbdev/pxafb.c fbi->fb.fix.visual = FB_VISUAL_STATIC_PSEUDOCOLOR; fb 517 drivers/video/fbdev/pxafb.c fbi->fb.fix.line_length = var->xres_virtual * fb 527 drivers/video/fbdev/pxafb.c if (fbi->fb.var.bits_per_pixel >= 16) fb 528 drivers/video/fbdev/pxafb.c fb_dealloc_cmap(&fbi->fb.cmap); fb 530 drivers/video/fbdev/pxafb.c fb_alloc_cmap(&fbi->fb.cmap, 1<<fbi->fb.var.bits_per_pixel, 0); fb 540 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 550 drivers/video/fbdev/pxafb.c memcpy(&newvar, &fbi->fb.var, sizeof(newvar)); fb 573 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 581 drivers/video/fbdev/pxafb.c if (fbi->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR || fb 582 drivers/video/fbdev/pxafb.c fbi->fb.fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) fb 592 drivers/video/fbdev/pxafb.c if (fbi->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR || fb 593 drivers/video/fbdev/pxafb.c fbi->fb.fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) fb 594 drivers/video/fbdev/pxafb.c fb_set_cmap(&fbi->fb.cmap, info); fb 615 drivers/video/fbdev/pxafb.c int size = ofb->fb.fix.line_length * ofb->fb.var.yres_virtual; fb 656 drivers/video/fbdev/pxafb.c int size, div = 1, pfor = NONSTD_TO_PFOR(ofb->fb.var.nonstd); fb 660 drivers/video/fbdev/pxafb.c size = ofb->fb.fix.line_length * ofb->fb.var.yres_virtual; fb 663 drivers/video/fbdev/pxafb.c size = ofb->fb.var.xres_virtual * ofb->fb.var.yres_virtual; fb 679 drivers/video/fbdev/pxafb.c int pfor = NONSTD_TO_PFOR(ofb->fb.var.nonstd); fb 732 drivers/video/fbdev/pxafb.c struct pxafb_layer *ofb = container_of(info, struct pxafb_layer, fb); fb 741 drivers/video/fbdev/pxafb.c fb_blank(&ofb->fbi->fb, FB_BLANK_UNBLANK); fb 750 drivers/video/fbdev/pxafb.c struct pxafb_layer *ofb = container_of(info, struct pxafb_layer, fb); fb 754 drivers/video/fbdev/pxafb.c ofb->fb.var.height = -1; fb 755 drivers/video/fbdev/pxafb.c ofb->fb.var.width = -1; fb 756 drivers/video/fbdev/pxafb.c ofb->fb.var.xres = ofb->fb.var.xres_virtual = 0; fb 757 drivers/video/fbdev/pxafb.c ofb->fb.var.yres = ofb->fb.var.yres_virtual = 0; fb 767 drivers/video/fbdev/pxafb.c struct pxafb_layer *ofb = container_of(info, struct pxafb_layer, fb); fb 768 drivers/video/fbdev/pxafb.c struct fb_var_screeninfo *base_var = &ofb->fbi->fb.var; fb 818 drivers/video/fbdev/pxafb.c struct fb_var_screeninfo *var = &ofb->fb.var; fb 830 drivers/video/fbdev/pxafb.c ofb->fb.fix.line_length = var->xres_virtual * bpp / 8; fb 832 drivers/video/fbdev/pxafb.c size = PAGE_ALIGN(ofb->fb.fix.line_length * var->yres_virtual); fb 843 drivers/video/fbdev/pxafb.c struct pxafb_layer *ofb = container_of(info, struct pxafb_layer, fb); fb 879 drivers/video/fbdev/pxafb.c sprintf(ofb->fb.fix.id, "overlay%d", id + 1); fb 881 drivers/video/fbdev/pxafb.c ofb->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 882 drivers/video/fbdev/pxafb.c ofb->fb.fix.xpanstep = 0; fb 883 drivers/video/fbdev/pxafb.c ofb->fb.fix.ypanstep = 1; fb 885 drivers/video/fbdev/pxafb.c ofb->fb.var.activate = FB_ACTIVATE_NOW; fb 886 drivers/video/fbdev/pxafb.c ofb->fb.var.height = -1; fb 887 drivers/video/fbdev/pxafb.c ofb->fb.var.width = -1; fb 888 drivers/video/fbdev/pxafb.c ofb->fb.var.vmode = FB_VMODE_NONINTERLACED; fb 890 drivers/video/fbdev/pxafb.c ofb->fb.fbops = &overlay_fb_ops; fb 891 drivers/video/fbdev/pxafb.c ofb->fb.flags = FBINFO_FLAG_DEFAULT; fb 892 drivers/video/fbdev/pxafb.c ofb->fb.node = -1; fb 893 drivers/video/fbdev/pxafb.c ofb->fb.pseudo_palette = NULL; fb 924 drivers/video/fbdev/pxafb.c mutex_lock(&ofb->fb.mm_lock); fb 925 drivers/video/fbdev/pxafb.c ofb->fb.fix.smem_start = ofb->video_mem_phys; fb 926 drivers/video/fbdev/pxafb.c ofb->fb.fix.smem_len = pxafb->video_mem_size; fb 927 drivers/video/fbdev/pxafb.c mutex_unlock(&ofb->fb.mm_lock); fb 929 drivers/video/fbdev/pxafb.c ofb->fb.screen_base = ofb->video_mem; fb 944 drivers/video/fbdev/pxafb.c ret = register_framebuffer(&ofb->fb); fb 954 drivers/video/fbdev/pxafb.c unregister_framebuffer(&ofb->fb); fb 979 drivers/video/fbdev/pxafb.c unregister_framebuffer(&ofb->fb); fb 1044 drivers/video/fbdev/pxafb.c if ((pcd == 0) || (fbi->fb.var.hsync_len == 0)) { fb 1049 drivers/video/fbdev/pxafb.c htime = clk_get_rate(fbi->clk) / (pcd * fbi->fb.var.hsync_len); fb 1112 drivers/video/fbdev/pxafb.c struct fb_fix_screeninfo *fix = &fbi->fb.fix; fb 1151 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 1207 drivers/video/fbdev/pxafb.c struct pxafb_info *fbi = container_of(info, struct pxafb_info, fb); fb 1283 drivers/video/fbdev/pxafb.c inf->smart_update(&fbi->fb); fb 1426 drivers/video/fbdev/pxafb.c fbi->lcd_power(on, &fbi->fb.var); fb 1672 drivers/video/fbdev/pxafb.c pcd = get_pcd(fbi, fbi->fb.var.pixclock); fb 1721 drivers/video/fbdev/pxafb.c fbi->fb.fix.smem_start = fbi->video_mem_phys; fb 1722 drivers/video/fbdev/pxafb.c fbi->fb.fix.smem_len = fbi->video_mem_size; fb 1723 drivers/video/fbdev/pxafb.c fbi->fb.screen_base = fbi->video_mem; fb 1775 drivers/video/fbdev/pxafb.c pxafb_setmode(&fbi->fb.var, &inf->modes[0]); fb 1812 drivers/video/fbdev/pxafb.c strcpy(fbi->fb.fix.id, PXA_NAME); fb 1814 drivers/video/fbdev/pxafb.c fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 1815 drivers/video/fbdev/pxafb.c fbi->fb.fix.type_aux = 0; fb 1816 drivers/video/fbdev/pxafb.c fbi->fb.fix.xpanstep = 0; fb 1817 drivers/video/fbdev/pxafb.c fbi->fb.fix.ypanstep = 1; fb 1818 drivers/video/fbdev/pxafb.c fbi->fb.fix.ywrapstep = 0; fb 1819 drivers/video/fbdev/pxafb.c fbi->fb.fix.accel = FB_ACCEL_NONE; fb 1821 drivers/video/fbdev/pxafb.c fbi->fb.var.nonstd = 0; fb 1822 drivers/video/fbdev/pxafb.c fbi->fb.var.activate = FB_ACTIVATE_NOW; fb 1823 drivers/video/fbdev/pxafb.c fbi->fb.var.height = -1; fb 1824 drivers/video/fbdev/pxafb.c fbi->fb.var.width = -1; fb 1825 drivers/video/fbdev/pxafb.c fbi->fb.var.accel_flags = FB_ACCELF_TEXT; fb 1826 drivers/video/fbdev/pxafb.c fbi->fb.var.vmode = FB_VMODE_NONINTERLACED; fb 1828 drivers/video/fbdev/pxafb.c fbi->fb.fbops = &pxafb_ops; fb 1829 drivers/video/fbdev/pxafb.c fbi->fb.flags = FBINFO_DEFAULT; fb 1830 drivers/video/fbdev/pxafb.c fbi->fb.node = -1; fb 1834 drivers/video/fbdev/pxafb.c fbi->fb.pseudo_palette = addr; fb 2293 drivers/video/fbdev/pxafb.c fbi->fb.fix.accel = FB_ACCEL_PXA3XX; fb 2360 drivers/video/fbdev/pxafb.c ret = pxafb_check_var(&fbi->fb.var, &fbi->fb); fb 2366 drivers/video/fbdev/pxafb.c ret = pxafb_set_par(&fbi->fb); fb 2374 drivers/video/fbdev/pxafb.c ret = register_framebuffer(&fbi->fb); fb 2397 drivers/video/fbdev/pxafb.c if (fbi->fb.cmap.len) fb 2398 drivers/video/fbdev/pxafb.c fb_dealloc_cmap(&fbi->fb.cmap); fb 2416 drivers/video/fbdev/pxafb.c info = &fbi->fb; fb 2423 drivers/video/fbdev/pxafb.c if (fbi->fb.cmap.len) fb 2424 drivers/video/fbdev/pxafb.c fb_dealloc_cmap(&fbi->fb.cmap); fb 93 drivers/video/fbdev/pxafb.h struct fb_info fb; fb 110 drivers/video/fbdev/pxafb.h struct fb_info fb; fb 293 drivers/video/fbdev/s3fb.c u8 __iomem *fb = (u8 __iomem *) info->screen_base; fb 303 drivers/video/fbdev/s3fb.c fb += 2; fb 306 drivers/video/fbdev/s3fb.c fb_writeb(font[c * map->height + i], fb + c * 4); fb 308 drivers/video/fbdev/s3fb.c fb += 1024; fb 916 drivers/video/fbdev/s3fb.c u_int transp, struct fb_info *fb) fb 918 drivers/video/fbdev/s3fb.c switch (fb->var.bits_per_pixel) { fb 924 drivers/video/fbdev/s3fb.c if ((fb->var.bits_per_pixel == 4) && fb 925 drivers/video/fbdev/s3fb.c (fb->var.nonstd == 0)) { fb 950 drivers/video/fbdev/s3fb.c if (fb->var.green.length == 5) fb 951 drivers/video/fbdev/s3fb.c ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | fb 953 drivers/video/fbdev/s3fb.c else if (fb->var.green.length == 6) fb 954 drivers/video/fbdev/s3fb.c ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | fb 963 drivers/video/fbdev/s3fb.c ((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) | fb 273 drivers/video/fbdev/sa1100fb.c container_of(info, struct sa1100fb_info, fb); fb 282 drivers/video/fbdev/sa1100fb.c val |= palette_pbs(&fbi->fb.var); fb 295 drivers/video/fbdev/sa1100fb.c container_of(info, struct sa1100fb_info, fb); fb 315 drivers/video/fbdev/sa1100fb.c if (fbi->fb.var.grayscale) fb 319 drivers/video/fbdev/sa1100fb.c switch (fbi->fb.fix.visual) { fb 326 drivers/video/fbdev/sa1100fb.c val = chan_to_field(red, &fbi->fb.var.red); fb 327 drivers/video/fbdev/sa1100fb.c val |= chan_to_field(green, &fbi->fb.var.green); fb 328 drivers/video/fbdev/sa1100fb.c val |= chan_to_field(blue, &fbi->fb.var.blue); fb 371 drivers/video/fbdev/sa1100fb.c container_of(info, struct sa1100fb_info, fb); fb 439 drivers/video/fbdev/sa1100fb.c container_of(info, struct sa1100fb_info, fb); fb 446 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.visual = FB_VISUAL_TRUECOLOR; fb 448 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR; fb 455 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.visual = FB_VISUAL_STATIC_PSEUDOCOLOR; fb 458 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.line_length = var->xres_virtual * fb 472 drivers/video/fbdev/sa1100fb.c sa1100fb_set_visual(fbi, fbi->fb.fix.visual); fb 488 drivers/video/fbdev/sa1100fb.c if (!kspc && (fbi->fb.var.bits_per_pixel == 16 || fbi->inf->cmap_static)) fb 533 drivers/video/fbdev/sa1100fb.c container_of(info, struct sa1100fb_info, fb); fb 543 drivers/video/fbdev/sa1100fb.c if (fbi->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR || fb 544 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) fb 551 drivers/video/fbdev/sa1100fb.c if (fbi->fb.fix.visual == FB_VISUAL_PSEUDOCOLOR || fb 552 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) fb 553 drivers/video/fbdev/sa1100fb.c fb_set_cmap(&fbi->fb.cmap, info); fb 563 drivers/video/fbdev/sa1100fb.c container_of(info, struct sa1100fb_info, fb); fb 628 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->xres); fb 631 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->hsync_len); fb 634 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->left_margin); fb 637 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->right_margin); fb 640 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->yres); fb 643 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->vsync_len); fb 646 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->upper_margin); fb 649 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.id, var->lower_margin); fb 757 drivers/video/fbdev/sa1100fb.c if (fbi->fb.var.bits_per_pixel > 8 || fb 788 drivers/video/fbdev/sa1100fb.c fbi->palette_cpu[0] |= palette_pbs(&fbi->fb.var); fb 980 drivers/video/fbdev/sa1100fb.c return sa1100fb_display_dma_period(&fbi->fb.var); fb 1001 drivers/video/fbdev/sa1100fb.c pcd = get_pcd(fbi, fbi->fb.var.pixclock); fb 1049 drivers/video/fbdev/sa1100fb.c fbi->map_size = PAGE_ALIGN(fbi->fb.fix.smem_len + PAGE_SIZE); fb 1054 drivers/video/fbdev/sa1100fb.c fbi->fb.screen_base = fbi->map_cpu + PAGE_SIZE; fb 1062 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.smem_start = fbi->screen_dma; fb 1089 drivers/video/fbdev/sa1100fb.c strcpy(fbi->fb.fix.id, SA1100_NAME); fb 1091 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 1092 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.type_aux = 0; fb 1093 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.xpanstep = 0; fb 1094 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.ypanstep = 0; fb 1095 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.ywrapstep = 0; fb 1096 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.accel = FB_ACCEL_NONE; fb 1098 drivers/video/fbdev/sa1100fb.c fbi->fb.var.nonstd = 0; fb 1099 drivers/video/fbdev/sa1100fb.c fbi->fb.var.activate = FB_ACTIVATE_NOW; fb 1100 drivers/video/fbdev/sa1100fb.c fbi->fb.var.height = -1; fb 1101 drivers/video/fbdev/sa1100fb.c fbi->fb.var.width = -1; fb 1102 drivers/video/fbdev/sa1100fb.c fbi->fb.var.accel_flags = 0; fb 1103 drivers/video/fbdev/sa1100fb.c fbi->fb.var.vmode = FB_VMODE_NONINTERLACED; fb 1105 drivers/video/fbdev/sa1100fb.c fbi->fb.fbops = &sa1100fb_ops; fb 1106 drivers/video/fbdev/sa1100fb.c fbi->fb.flags = FBINFO_DEFAULT; fb 1107 drivers/video/fbdev/sa1100fb.c fbi->fb.monspecs = monspecs; fb 1108 drivers/video/fbdev/sa1100fb.c fbi->fb.pseudo_palette = fbi->pseudo_palette; fb 1124 drivers/video/fbdev/sa1100fb.c fbi->fb.var.xres = inf->xres; fb 1125 drivers/video/fbdev/sa1100fb.c fbi->fb.var.xres_virtual = inf->xres; fb 1126 drivers/video/fbdev/sa1100fb.c fbi->fb.var.yres = inf->yres; fb 1127 drivers/video/fbdev/sa1100fb.c fbi->fb.var.yres_virtual = inf->yres; fb 1128 drivers/video/fbdev/sa1100fb.c fbi->fb.var.bits_per_pixel = inf->bpp; fb 1129 drivers/video/fbdev/sa1100fb.c fbi->fb.var.pixclock = inf->pixclock; fb 1130 drivers/video/fbdev/sa1100fb.c fbi->fb.var.hsync_len = inf->hsync_len; fb 1131 drivers/video/fbdev/sa1100fb.c fbi->fb.var.left_margin = inf->left_margin; fb 1132 drivers/video/fbdev/sa1100fb.c fbi->fb.var.right_margin = inf->right_margin; fb 1133 drivers/video/fbdev/sa1100fb.c fbi->fb.var.vsync_len = inf->vsync_len; fb 1134 drivers/video/fbdev/sa1100fb.c fbi->fb.var.upper_margin = inf->upper_margin; fb 1135 drivers/video/fbdev/sa1100fb.c fbi->fb.var.lower_margin = inf->lower_margin; fb 1136 drivers/video/fbdev/sa1100fb.c fbi->fb.var.sync = inf->sync; fb 1137 drivers/video/fbdev/sa1100fb.c fbi->fb.var.grayscale = inf->cmap_greyscale; fb 1140 drivers/video/fbdev/sa1100fb.c fbi->fb.fix.smem_len = inf->xres * inf->yres * fb 1207 drivers/video/fbdev/sa1100fb.c sa1100fb_check_var(&fbi->fb.var, &fbi->fb); fb 1211 drivers/video/fbdev/sa1100fb.c ret = register_framebuffer(&fbi->fb); fb 32 drivers/video/fbdev/sa1100fb.h struct fb_info fb; fb 83 drivers/video/fbdev/sm501fb.c struct fb_info *fb[2]; /* fb info for both heads */ fb 186 drivers/video/fbdev/sm501fb.c fbi = inf->fb[HEAD_CRT]; fb 206 drivers/video/fbdev/sm501fb.c fbi = inf->fb[HEAD_PANEL]; fb 219 drivers/video/fbdev/sm501fb.c fbi = inf->fb[HEAD_CRT]; fb 222 drivers/video/fbdev/sm501fb.c fbi = inf->fb[HEAD_PANEL]; fb 1629 drivers/video/fbdev/sm501fb.c sm501_init_cursor(info->fb[HEAD_CRT], SM501_DC_CRT_HWC_ADDR); fb 1630 drivers/video/fbdev/sm501fb.c sm501_init_cursor(info->fb[HEAD_PANEL], SM501_DC_PANEL_HWC_ADDR); fb 1674 drivers/video/fbdev/sm501fb.c static int sm501fb_init_fb(struct fb_info *fb, enum sm501_controller head, fb 1678 drivers/video/fbdev/sm501fb.c struct sm501fb_par *par = fb->par; fb 1722 drivers/video/fbdev/sm501fb.c strlcpy(fb->fix.id, fbname, sizeof(fb->fix.id)); fb 1733 drivers/video/fbdev/sm501fb.c fb->fbops = &par->ops; fb 1734 drivers/video/fbdev/sm501fb.c fb->flags = FBINFO_FLAG_DEFAULT | FBINFO_READS_FAST | fb 1741 drivers/video/fbdev/sm501fb.c fb->flags |= FBINFO_FOREIGN_ENDIAN; fb 1744 drivers/video/fbdev/sm501fb.c fb->flags |= FBINFO_FOREIGN_ENDIAN; fb 1749 drivers/video/fbdev/sm501fb.c fb->fix.type = FB_TYPE_PACKED_PIXELS; fb 1750 drivers/video/fbdev/sm501fb.c fb->fix.type_aux = 0; fb 1751 drivers/video/fbdev/sm501fb.c fb->fix.xpanstep = 1; fb 1752 drivers/video/fbdev/sm501fb.c fb->fix.ypanstep = 1; fb 1753 drivers/video/fbdev/sm501fb.c fb->fix.ywrapstep = 0; fb 1754 drivers/video/fbdev/sm501fb.c fb->fix.accel = FB_ACCEL_NONE; fb 1758 drivers/video/fbdev/sm501fb.c fb->var.nonstd = 0; fb 1759 drivers/video/fbdev/sm501fb.c fb->var.activate = FB_ACTIVATE_NOW; fb 1760 drivers/video/fbdev/sm501fb.c fb->var.accel_flags = 0; fb 1761 drivers/video/fbdev/sm501fb.c fb->var.vmode = FB_VMODE_NONINTERLACED; fb 1762 drivers/video/fbdev/sm501fb.c fb->var.bits_per_pixel = 16; fb 1766 drivers/video/fbdev/sm501fb.c fb_edid_to_monspecs(info->edid_data, &fb->monspecs); fb 1767 drivers/video/fbdev/sm501fb.c fb_videomode_to_modelist(fb->monspecs.modedb, fb 1768 drivers/video/fbdev/sm501fb.c fb->monspecs.modedb_len, fb 1769 drivers/video/fbdev/sm501fb.c &fb->modelist); fb 1777 drivers/video/fbdev/sm501fb.c fb_videomode_to_var(&fb->var, pd->def_mode); fb 1779 drivers/video/fbdev/sm501fb.c fb->var.bits_per_pixel = pd->def_bpp ? pd->def_bpp : 8; fb 1780 drivers/video/fbdev/sm501fb.c fb->var.xres_virtual = fb->var.xres; fb 1781 drivers/video/fbdev/sm501fb.c fb->var.yres_virtual = fb->var.yres; fb 1784 drivers/video/fbdev/sm501fb.c ret = fb_find_mode(&fb->var, fb, fb_mode, fb 1785 drivers/video/fbdev/sm501fb.c fb->monspecs.modedb, fb 1786 drivers/video/fbdev/sm501fb.c fb->monspecs.modedb_len, fb 1791 drivers/video/fbdev/sm501fb.c ret = fb_find_mode(&fb->var, fb, fb 1820 drivers/video/fbdev/sm501fb.c if (fb_alloc_cmap(&fb->cmap, NR_PALETTE, 0)) { fb 1824 drivers/video/fbdev/sm501fb.c fb_set_cmap(&fb->cmap, fb); fb 1826 drivers/video/fbdev/sm501fb.c ret = (fb->fbops->fb_check_var)(&fb->var, fb); fb 1884 drivers/video/fbdev/sm501fb.c info->fb[head] = fbi; fb 1894 drivers/video/fbdev/sm501fb.c struct fb_info *fbi = info->fb[head]; fb 1905 drivers/video/fbdev/sm501fb.c struct fb_info *fbi = info->fb[head]; fb 1911 drivers/video/fbdev/sm501fb.c mutex_init(&info->fb[head]->mm_lock); fb 1913 drivers/video/fbdev/sm501fb.c ret = sm501fb_init_fb(info->fb[head], head, drvname); fb 1919 drivers/video/fbdev/sm501fb.c ret = register_framebuffer(info->fb[head]); fb 1949 drivers/video/fbdev/sm501fb.c info->pdata = pd->fb; fb 1995 drivers/video/fbdev/sm501fb.c if (info->fb[HEAD_PANEL] == NULL && fb 1996 drivers/video/fbdev/sm501fb.c info->fb[HEAD_CRT] == NULL) { fb 2026 drivers/video/fbdev/sm501fb.c unregister_framebuffer(info->fb[HEAD_CRT]); fb 2033 drivers/video/fbdev/sm501fb.c framebuffer_release(info->fb[HEAD_PANEL]); fb 2036 drivers/video/fbdev/sm501fb.c framebuffer_release(info->fb[HEAD_CRT]); fb 2051 drivers/video/fbdev/sm501fb.c struct fb_info *fbinfo_crt = info->fb[0]; fb 2052 drivers/video/fbdev/sm501fb.c struct fb_info *fbinfo_pnl = info->fb[1]; fb 2076 drivers/video/fbdev/sm501fb.c struct fb_info *fbi = info->fb[head]; fb 2127 drivers/video/fbdev/sm501fb.c struct fb_info *fbi = info->fb[head]; fb 40 drivers/video/fbdev/sm712fb.c struct fb_info *fb; fb 983 drivers/video/fbdev/sm712fb.c switch (sfb->fb->fix.visual) { fb 991 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 16) { fb 992 drivers/video/fbdev/sm712fb.c u32 *pal = sfb->fb->pseudo_palette; fb 994 drivers/video/fbdev/sm712fb.c val = chan_to_field(red, &sfb->fb->var.red); fb 995 drivers/video/fbdev/sm712fb.c val |= chan_to_field(green, &sfb->fb->var.green); fb 996 drivers/video/fbdev/sm712fb.c val |= chan_to_field(blue, &sfb->fb->var.blue); fb 999 drivers/video/fbdev/sm712fb.c u32 *pal = sfb->fb->pseudo_palette; fb 1001 drivers/video/fbdev/sm712fb.c val = chan_to_field(red, &sfb->fb->var.red); fb 1002 drivers/video/fbdev/sm712fb.c val |= chan_to_field(green, &sfb->fb->var.green); fb 1003 drivers/video/fbdev/sm712fb.c val |= chan_to_field(blue, &sfb->fb->var.blue); fb 1188 drivers/video/fbdev/sm712fb.c sfb->width, sfb->height, sfb->fb->var.bits_per_pixel, sfb->hz); fb 1193 drivers/video/fbdev/sm712fb.c vgamode[j].bpp != sfb->fb->var.bits_per_pixel || fb 1266 drivers/video/fbdev/sm712fb.c m_nscreenstride = (sfb->width * sfb->fb->var.bits_per_pixel) / 64; fb 1267 drivers/video/fbdev/sm712fb.c switch (sfb->fb->var.bits_per_pixel) { fb 1298 drivers/video/fbdev/sm712fb.c switch (sfb->fb->var.bits_per_pixel) { fb 1300 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_TRUECOLOR; fb 1301 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres * 4; fb 1302 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 8; fb 1303 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 8; fb 1304 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 8; fb 1305 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 16; fb 1306 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 8; fb 1307 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; fb 1310 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_TRUECOLOR; fb 1311 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres * 3; fb 1312 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 8; fb 1313 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 8; fb 1314 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 8; fb 1315 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 16; fb 1316 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 8; fb 1317 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; fb 1320 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_PSEUDOCOLOR; fb 1321 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres; fb 1322 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 3; fb 1323 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 3; fb 1324 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 2; fb 1325 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 5; fb 1326 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 2; fb 1327 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; fb 1331 drivers/video/fbdev/sm712fb.c sfb->fb->fix.visual = FB_VISUAL_TRUECOLOR; fb 1332 drivers/video/fbdev/sm712fb.c sfb->fb->fix.line_length = sfb->fb->var.xres * 2; fb 1333 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.length = 5; fb 1334 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.length = 6; fb 1335 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.length = 5; fb 1336 drivers/video/fbdev/sm712fb.c sfb->fb->var.red.offset = 11; fb 1337 drivers/video/fbdev/sm712fb.c sfb->fb->var.green.offset = 5; fb 1338 drivers/video/fbdev/sm712fb.c sfb->fb->var.blue.offset = 0; fb 1342 drivers/video/fbdev/sm712fb.c sfb->width = sfb->fb->var.xres; fb 1343 drivers/video/fbdev/sm712fb.c sfb->height = sfb->fb->var.yres; fb 1402 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_start = pci_resource_start(pdev, 0); fb 1406 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_start += 0x00200000; fb 1409 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) fb 1410 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_start += big_addr; fb 1412 drivers/video/fbdev/sm712fb.c sfb->fb->fix.smem_len = smem_len; fb 1414 drivers/video/fbdev/sm712fb.c sfb->fb->screen_base = sfb->lfb; fb 1416 drivers/video/fbdev/sm712fb.c if (!sfb->fb->screen_base) { fb 1418 drivers/video/fbdev/sm712fb.c "%s: unable to map screen memory\n", sfb->fb->fix.id); fb 1431 drivers/video/fbdev/sm712fb.c if (sfb && sfb->fb->screen_base) { fb 1432 drivers/video/fbdev/sm712fb.c iounmap(sfb->fb->screen_base); fb 1433 drivers/video/fbdev/sm712fb.c sfb->fb->screen_base = NULL; fb 1483 drivers/video/fbdev/sm712fb.c sfb->fb->var.xres = smtc_scr_info.lfb_width; fb 1484 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres = smtc_scr_info.lfb_height; fb 1485 drivers/video/fbdev/sm712fb.c sfb->fb->var.bits_per_pixel = smtc_scr_info.lfb_depth; fb 1495 drivers/video/fbdev/sm712fb.c sfb->fb->var.xres = SCREEN_X_RES; fb 1496 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres = SCREEN_Y_RES_PC; fb 1497 drivers/video/fbdev/sm712fb.c sfb->fb->var.bits_per_pixel = SCREEN_BPP; fb 1509 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres = SCREEN_Y_RES_NETBOOK; fb 1513 drivers/video/fbdev/sm712fb.c big_pixel_depth(sfb->fb->var.bits_per_pixel, smtc_scr_info.lfb_depth); fb 1546 drivers/video/fbdev/sm712fb.c sfb->fb = info; fb 1571 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_start = mmio_base + 0x00400000; fb 1572 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_len = 0x00400000; fb 1577 drivers/video/fbdev/sm712fb.c sfb->fb->fix.id); fb 1586 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) { fb 1598 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) fb 1602 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_start = mmio_base; fb 1603 drivers/video/fbdev/sm712fb.c sfb->fb->fix.mmio_len = 0x00200000; fb 1625 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 15) fb 1626 drivers/video/fbdev/sm712fb.c sfb->fb->var.bits_per_pixel = 16; fb 1628 drivers/video/fbdev/sm712fb.c sfb->fb->var.xres_virtual = sfb->fb->var.xres; fb 1629 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres_virtual = sfb->fb->var.yres; fb 1638 drivers/video/fbdev/sm712fb.c memset_io(sfb->lfb, 0, sfb->fb->fix.smem_len); fb 1646 drivers/video/fbdev/sm712fb.c sfb->chip_id, sfb->chip_rev_id, sfb->fb->var.xres, fb 1647 drivers/video/fbdev/sm712fb.c sfb->fb->var.yres, sfb->fb->var.bits_per_pixel); fb 1689 drivers/video/fbdev/sm712fb.c unregister_framebuffer(sfb->fb); fb 1690 drivers/video/fbdev/sm712fb.c framebuffer_release(sfb->fb); fb 1707 drivers/video/fbdev/sm712fb.c fb_set_suspend(sfb->fb, 1); fb 1732 drivers/video/fbdev/sm712fb.c if (sfb->fb->var.bits_per_pixel == 32) fb 1748 drivers/video/fbdev/sm712fb.c fb_set_suspend(sfb->fb, 0); fb 156 drivers/video/fbdev/stifb.c #define READ_BYTE(fb,reg) gsc_readb((fb)->info.fix.mmio_start + (reg)) fb 157 drivers/video/fbdev/stifb.c #define READ_WORD(fb,reg) gsc_readl((fb)->info.fix.mmio_start + (reg)) fb 163 drivers/video/fbdev/stifb.c # define WRITE_BYTE(value,fb,reg) gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)) fb 164 drivers/video/fbdev/stifb.c # define WRITE_WORD(value,fb,reg) gsc_writel((value),(fb)->info.fix.mmio_start + (reg)) fb 169 drivers/video/fbdev/stifb.c # define WRITE_BYTE(value,fb,reg) do { if (debug_on) \ fb 171 drivers/video/fbdev/stifb.c __func__, reg, value, READ_BYTE(fb,reg)); \ fb 172 drivers/video/fbdev/stifb.c gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)); } while (0) fb 173 drivers/video/fbdev/stifb.c # define WRITE_WORD(value,fb,reg) do { if (debug_on) \ fb 175 drivers/video/fbdev/stifb.c __func__, reg, value, READ_WORD(fb,reg)); \ fb 176 drivers/video/fbdev/stifb.c gsc_writel((value),(fb)->info.fix.mmio_start + (reg)); } while (0) fb 187 drivers/video/fbdev/stifb.c SETUP_HW(struct stifb_info *fb) fb 192 drivers/video/fbdev/stifb.c stat = READ_BYTE(fb, REG_15b0); fb 194 drivers/video/fbdev/stifb.c stat = READ_BYTE(fb, REG_15b0); fb 200 drivers/video/fbdev/stifb.c SETUP_FB(struct stifb_info *fb) fb 204 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 205 drivers/video/fbdev/stifb.c switch (fb->id) fb 213 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 32) fb 219 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 32) fb 230 drivers/video/fbdev/stifb.c WRITE_WORD(reg10_value, fb, REG_10); fb 231 drivers/video/fbdev/stifb.c WRITE_WORD(0x83000300, fb, REG_14); fb 232 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 233 drivers/video/fbdev/stifb.c WRITE_BYTE(1, fb, REG_16b1); fb 237 drivers/video/fbdev/stifb.c START_IMAGE_COLORMAP_ACCESS(struct stifb_info *fb) fb 239 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 240 drivers/video/fbdev/stifb.c WRITE_WORD(0xBBE0F000, fb, REG_10); fb 241 drivers/video/fbdev/stifb.c WRITE_WORD(0x03000300, fb, REG_14); fb 242 drivers/video/fbdev/stifb.c WRITE_WORD(~0, fb, REG_13); fb 246 drivers/video/fbdev/stifb.c WRITE_IMAGE_COLOR(struct stifb_info *fb, int index, int color) fb 248 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 249 drivers/video/fbdev/stifb.c WRITE_WORD(((0x100+index)<<2), fb, REG_3); fb 250 drivers/video/fbdev/stifb.c WRITE_WORD(color, fb, REG_4); fb 254 drivers/video/fbdev/stifb.c FINISH_IMAGE_COLORMAP_ACCESS(struct stifb_info *fb) fb 256 drivers/video/fbdev/stifb.c WRITE_WORD(0x400, fb, REG_2); fb 257 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 32) { fb 258 drivers/video/fbdev/stifb.c WRITE_WORD(0x83000100, fb, REG_1); fb 260 drivers/video/fbdev/stifb.c if (fb->id == S9000_ID_ARTIST || fb->id == CRT_ID_VISUALIZE_EG) fb 261 drivers/video/fbdev/stifb.c WRITE_WORD(0x80000100, fb, REG_26); fb 263 drivers/video/fbdev/stifb.c WRITE_WORD(0x80000100, fb, REG_1); fb 265 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 269 drivers/video/fbdev/stifb.c SETUP_RAMDAC(struct stifb_info *fb) fb 271 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 272 drivers/video/fbdev/stifb.c WRITE_WORD(0x04000000, fb, 0x1020); fb 273 drivers/video/fbdev/stifb.c WRITE_WORD(0xff000000, fb, 0x1028); fb 277 drivers/video/fbdev/stifb.c CRX24_SETUP_RAMDAC(struct stifb_info *fb) fb 279 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 280 drivers/video/fbdev/stifb.c WRITE_WORD(0x04000000, fb, 0x1000); fb 281 drivers/video/fbdev/stifb.c WRITE_WORD(0x02000000, fb, 0x1004); fb 282 drivers/video/fbdev/stifb.c WRITE_WORD(0xff000000, fb, 0x1008); fb 283 drivers/video/fbdev/stifb.c WRITE_WORD(0x05000000, fb, 0x1000); fb 284 drivers/video/fbdev/stifb.c WRITE_WORD(0x02000000, fb, 0x1004); fb 285 drivers/video/fbdev/stifb.c WRITE_WORD(0x03000000, fb, 0x1008); fb 290 drivers/video/fbdev/stifb.c HCRX_SETUP_RAMDAC(struct stifb_info *fb) fb 292 drivers/video/fbdev/stifb.c WRITE_WORD(0xffffffff, fb, REG_32); fb 297 drivers/video/fbdev/stifb.c CRX24_SET_OVLY_MASK(struct stifb_info *fb) fb 299 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 300 drivers/video/fbdev/stifb.c WRITE_WORD(0x13a02000, fb, REG_11); fb 301 drivers/video/fbdev/stifb.c WRITE_WORD(0x03000300, fb, REG_14); fb 302 drivers/video/fbdev/stifb.c WRITE_WORD(0x000017f0, fb, REG_3); fb 303 drivers/video/fbdev/stifb.c WRITE_WORD(0xffffffff, fb, REG_13); fb 304 drivers/video/fbdev/stifb.c WRITE_WORD(0xffffffff, fb, REG_22); fb 305 drivers/video/fbdev/stifb.c WRITE_WORD(0x00000000, fb, REG_23); fb 309 drivers/video/fbdev/stifb.c ENABLE_DISABLE_DISPLAY(struct stifb_info *fb, int enable) fb 312 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 313 drivers/video/fbdev/stifb.c WRITE_WORD(0x06000000, fb, 0x1030); fb 314 drivers/video/fbdev/stifb.c WRITE_WORD(value, fb, 0x1038); fb 318 drivers/video/fbdev/stifb.c CRX24_ENABLE_DISABLE_DISPLAY(struct stifb_info *fb, int enable) fb 321 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 322 drivers/video/fbdev/stifb.c WRITE_WORD(0x01000000, fb, 0x1000); fb 323 drivers/video/fbdev/stifb.c WRITE_WORD(0x02000000, fb, 0x1004); fb 324 drivers/video/fbdev/stifb.c WRITE_WORD(value, fb, 0x1008); fb 328 drivers/video/fbdev/stifb.c ARTIST_ENABLE_DISABLE_DISPLAY(struct stifb_info *fb, int enable) fb 333 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 335 drivers/video/fbdev/stifb.c WRITE_WORD(READ_WORD(fb, DregsMiscVideo) | 0x0A000000, fb, DregsMiscVideo); fb 336 drivers/video/fbdev/stifb.c WRITE_WORD(READ_WORD(fb, DregsMiscCtl) | 0x00800000, fb, DregsMiscCtl); fb 338 drivers/video/fbdev/stifb.c WRITE_WORD(READ_WORD(fb, DregsMiscVideo) & ~0x0A000000, fb, DregsMiscVideo); fb 339 drivers/video/fbdev/stifb.c WRITE_WORD(READ_WORD(fb, DregsMiscCtl) & ~0x00800000, fb, DregsMiscCtl); fb 343 drivers/video/fbdev/stifb.c #define GET_ROMTABLE_INDEX(fb) \ fb 344 drivers/video/fbdev/stifb.c (READ_BYTE(fb, REG_16b3) - 1) fb 348 drivers/video/fbdev/stifb.c #define IS_24_DEVICE(fb) \ fb 349 drivers/video/fbdev/stifb.c (fb->deviceSpecificConfig & HYPER_CONFIG_PLANES_24) fb 351 drivers/video/fbdev/stifb.c #define IS_888_DEVICE(fb) \ fb 352 drivers/video/fbdev/stifb.c (!(IS_24_DEVICE(fb))) fb 354 drivers/video/fbdev/stifb.c #define GET_FIFO_SLOTS(fb, cnt, numslots) \ fb 356 drivers/video/fbdev/stifb.c cnt = READ_WORD(fb, REG_34); \ fb 391 drivers/video/fbdev/stifb.c #define NGLE_QUICK_SET_IMAGE_BITMAP_OP(fb, val) \ fb 392 drivers/video/fbdev/stifb.c WRITE_WORD(val, fb, REG_14) fb 394 drivers/video/fbdev/stifb.c #define NGLE_QUICK_SET_DST_BM_ACCESS(fb, val) \ fb 395 drivers/video/fbdev/stifb.c WRITE_WORD(val, fb, REG_11) fb 397 drivers/video/fbdev/stifb.c #define NGLE_QUICK_SET_CTL_PLN_REG(fb, val) \ fb 398 drivers/video/fbdev/stifb.c WRITE_WORD(val, fb, REG_12) fb 400 drivers/video/fbdev/stifb.c #define NGLE_REALLY_SET_IMAGE_PLANEMASK(fb, plnmsk32) \ fb 401 drivers/video/fbdev/stifb.c WRITE_WORD(plnmsk32, fb, REG_13) fb 403 drivers/video/fbdev/stifb.c #define NGLE_REALLY_SET_IMAGE_FG_COLOR(fb, fg32) \ fb 404 drivers/video/fbdev/stifb.c WRITE_WORD(fg32, fb, REG_35) fb 406 drivers/video/fbdev/stifb.c #define NGLE_SET_TRANSFERDATA(fb, val) \ fb 407 drivers/video/fbdev/stifb.c WRITE_WORD(val, fb, REG_8) fb 409 drivers/video/fbdev/stifb.c #define NGLE_SET_DSTXY(fb, val) \ fb 410 drivers/video/fbdev/stifb.c WRITE_WORD(val, fb, REG_6) fb 418 drivers/video/fbdev/stifb.c #define NGLE_BINC_SET_DSTADDR(fb, addr) \ fb 419 drivers/video/fbdev/stifb.c WRITE_WORD(addr, fb, REG_3) fb 421 drivers/video/fbdev/stifb.c #define NGLE_BINC_SET_SRCADDR(fb, addr) \ fb 422 drivers/video/fbdev/stifb.c WRITE_WORD(addr, fb, REG_2) fb 424 drivers/video/fbdev/stifb.c #define NGLE_BINC_SET_DSTMASK(fb, mask) \ fb 425 drivers/video/fbdev/stifb.c WRITE_WORD(mask, fb, REG_22) fb 427 drivers/video/fbdev/stifb.c #define NGLE_BINC_WRITE32(fb, data32) \ fb 428 drivers/video/fbdev/stifb.c WRITE_WORD(data32, fb, REG_23) fb 430 drivers/video/fbdev/stifb.c #define START_COLORMAPLOAD(fb, cmapBltCtlData32) \ fb 431 drivers/video/fbdev/stifb.c WRITE_WORD((cmapBltCtlData32), fb, REG_38) fb 433 drivers/video/fbdev/stifb.c #define SET_LENXY_START_RECFILL(fb, lenxy) \ fb 434 drivers/video/fbdev/stifb.c WRITE_WORD(lenxy, fb, REG_9) fb 436 drivers/video/fbdev/stifb.c #define SETUP_COPYAREA(fb) \ fb 437 drivers/video/fbdev/stifb.c WRITE_BYTE(0, fb, REG_16b1) fb 440 drivers/video/fbdev/stifb.c HYPER_ENABLE_DISABLE_DISPLAY(struct stifb_info *fb, int enable) fb 444 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 445 drivers/video/fbdev/stifb.c value = READ_WORD(fb, DregsHypMiscVideo); fb 450 drivers/video/fbdev/stifb.c WRITE_WORD(value, fb, DregsHypMiscVideo); fb 463 drivers/video/fbdev/stifb.c SETUP_ATTR_ACCESS(struct stifb_info *fb, unsigned BufferNumber) fb 465 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 466 drivers/video/fbdev/stifb.c WRITE_WORD(0x2EA0D000, fb, REG_11); fb 467 drivers/video/fbdev/stifb.c WRITE_WORD(0x23000302, fb, REG_14); fb 468 drivers/video/fbdev/stifb.c WRITE_WORD(BufferNumber, fb, REG_12); fb 469 drivers/video/fbdev/stifb.c WRITE_WORD(0xffffffff, fb, REG_8); fb 473 drivers/video/fbdev/stifb.c SET_ATTR_SIZE(struct stifb_info *fb, int width, int height) fb 482 drivers/video/fbdev/stifb.c WRITE_WORD(0x00000000, fb, REG_6); fb 483 drivers/video/fbdev/stifb.c WRITE_WORD((width<<16) | height, fb, REG_9); fb 484 drivers/video/fbdev/stifb.c WRITE_WORD(0x05000000, fb, REG_6); fb 485 drivers/video/fbdev/stifb.c WRITE_WORD(0x00040001, fb, REG_9); fb 489 drivers/video/fbdev/stifb.c FINISH_ATTR_ACCESS(struct stifb_info *fb) fb 491 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 492 drivers/video/fbdev/stifb.c WRITE_WORD(0x00000000, fb, REG_12); fb 496 drivers/video/fbdev/stifb.c elkSetupPlanes(struct stifb_info *fb) fb 498 drivers/video/fbdev/stifb.c SETUP_RAMDAC(fb); fb 499 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 503 drivers/video/fbdev/stifb.c ngleSetupAttrPlanes(struct stifb_info *fb, int BufferNumber) fb 505 drivers/video/fbdev/stifb.c SETUP_ATTR_ACCESS(fb, BufferNumber); fb 506 drivers/video/fbdev/stifb.c SET_ATTR_SIZE(fb, fb->info.var.xres, fb->info.var.yres); fb 507 drivers/video/fbdev/stifb.c FINISH_ATTR_ACCESS(fb); fb 508 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 513 drivers/video/fbdev/stifb.c rattlerSetupPlanes(struct stifb_info *fb) fb 521 drivers/video/fbdev/stifb.c CRX24_SETUP_RAMDAC(fb); fb 524 drivers/video/fbdev/stifb.c saved_id = fb->id; fb 525 drivers/video/fbdev/stifb.c fb->id = CRX24_OVERLAY_PLANES; fb 526 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 527 drivers/video/fbdev/stifb.c fb->id = saved_id; fb 529 drivers/video/fbdev/stifb.c for (y = 0; y < fb->info.var.yres; ++y) fb 530 drivers/video/fbdev/stifb.c fb_memset(fb->info.screen_base + y * fb->info.fix.line_length, fb 531 drivers/video/fbdev/stifb.c 0xff, fb->info.var.xres * fb->info.var.bits_per_pixel/8); fb 533 drivers/video/fbdev/stifb.c CRX24_SET_OVLY_MASK(fb); fb 534 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 560 drivers/video/fbdev/stifb.c setNgleLutBltCtl(struct stifb_info *fb, int offsetWithinLut, int length) fb 568 drivers/video/fbdev/stifb.c switch (fb->id) fb 571 drivers/video/fbdev/stifb.c if (fb->var.bits_per_pixel == 8) { fb 599 drivers/video/fbdev/stifb.c setHyperLutBltCtl(struct stifb_info *fb, int offsetWithinLut, int length) fb 610 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 8) fb 622 drivers/video/fbdev/stifb.c static void hyperUndoITE(struct stifb_info *fb) fb 627 drivers/video/fbdev/stifb.c NGLE_LOCK(fb); fb 629 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 1); fb 630 drivers/video/fbdev/stifb.c WRITE_WORD(0xffffffff, fb, REG_32); fb 635 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 7); fb 636 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_DST_BM_ACCESS(fb, fb 639 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_IMAGE_BITMAP_OP(fb, fb 646 drivers/video/fbdev/stifb.c NGLE_BINC_SET_DSTADDR(fb, fbAddr); fb 647 drivers/video/fbdev/stifb.c NGLE_REALLY_SET_IMAGE_PLANEMASK(fb, 0xffffff); fb 648 drivers/video/fbdev/stifb.c NGLE_BINC_SET_DSTMASK(fb, 0xffffffff); fb 651 drivers/video/fbdev/stifb.c NGLE_BINC_WRITE32(fb, 0); fb 653 drivers/video/fbdev/stifb.c NGLE_UNLOCK(fb); fb 657 drivers/video/fbdev/stifb.c ngleDepth8_ClearImagePlanes(struct stifb_info *fb) fb 663 drivers/video/fbdev/stifb.c ngleDepth24_ClearImagePlanes(struct stifb_info *fb) fb 669 drivers/video/fbdev/stifb.c ngleResetAttrPlanes(struct stifb_info *fb, unsigned int ctlPlaneReg) fb 675 drivers/video/fbdev/stifb.c NGLE_LOCK(fb); fb 677 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 4); fb 678 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_DST_BM_ACCESS(fb, fb 682 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_CTL_PLN_REG(fb, ctlPlaneReg); fb 683 drivers/video/fbdev/stifb.c NGLE_SET_TRANSFERDATA(fb, 0xffffffff); fb 685 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_IMAGE_BITMAP_OP(fb, fb 691 drivers/video/fbdev/stifb.c packed_len = (fb->info.var.xres << 16) | fb->info.var.yres; fb 692 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 2); fb 693 drivers/video/fbdev/stifb.c NGLE_SET_DSTXY(fb, packed_dst); fb 694 drivers/video/fbdev/stifb.c SET_LENXY_START_RECFILL(fb, packed_len); fb 704 drivers/video/fbdev/stifb.c if (fb->id == S9000_ID_A1659A) { /* ELK_DEVICE_ID */ fb 707 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 2); fb 708 drivers/video/fbdev/stifb.c NGLE_SET_DSTXY(fb, packed_dst); fb 710 drivers/video/fbdev/stifb.c SET_LENXY_START_RECFILL(fb, packed_len); fb 714 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 1); fb 715 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_CTL_PLN_REG(fb, 0); fb 717 drivers/video/fbdev/stifb.c NGLE_UNLOCK(fb); fb 721 drivers/video/fbdev/stifb.c ngleClearOverlayPlanes(struct stifb_info *fb, int mask, int data) fb 727 drivers/video/fbdev/stifb.c NGLE_LOCK(fb); fb 730 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 8); fb 731 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_DST_BM_ACCESS(fb, fb 735 drivers/video/fbdev/stifb.c NGLE_SET_TRANSFERDATA(fb, 0xffffffff); /* Write foreground color */ fb 737 drivers/video/fbdev/stifb.c NGLE_REALLY_SET_IMAGE_FG_COLOR(fb, data); fb 738 drivers/video/fbdev/stifb.c NGLE_REALLY_SET_IMAGE_PLANEMASK(fb, mask); fb 741 drivers/video/fbdev/stifb.c packed_len = (fb->info.var.xres << 16) | fb->info.var.yres; fb 742 drivers/video/fbdev/stifb.c NGLE_SET_DSTXY(fb, packed_dst); fb 745 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_IMAGE_BITMAP_OP(fb, fb 750 drivers/video/fbdev/stifb.c SET_LENXY_START_RECFILL(fb, packed_len); fb 752 drivers/video/fbdev/stifb.c NGLE_UNLOCK(fb); fb 756 drivers/video/fbdev/stifb.c hyperResetPlanes(struct stifb_info *fb, int enable) fb 760 drivers/video/fbdev/stifb.c NGLE_LOCK(fb); fb 762 drivers/video/fbdev/stifb.c if (IS_24_DEVICE(fb)) fb 763 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 32) fb 773 drivers/video/fbdev/stifb.c if (IS_24_DEVICE(fb)) fb 774 drivers/video/fbdev/stifb.c ngleDepth24_ClearImagePlanes(fb); fb 776 drivers/video/fbdev/stifb.c ngleDepth8_ClearImagePlanes(fb); fb 780 drivers/video/fbdev/stifb.c ngleResetAttrPlanes(fb, controlPlaneReg); fb 783 drivers/video/fbdev/stifb.c ngleClearOverlayPlanes(fb, 0xff, 255); fb 788 drivers/video/fbdev/stifb.c hyperUndoITE(fb); fb 793 drivers/video/fbdev/stifb.c if (IS_24_DEVICE(fb)) fb 794 drivers/video/fbdev/stifb.c ngleDepth24_ClearImagePlanes(fb); fb 796 drivers/video/fbdev/stifb.c ngleDepth8_ClearImagePlanes(fb); fb 797 drivers/video/fbdev/stifb.c ngleResetAttrPlanes(fb, controlPlaneReg); fb 798 drivers/video/fbdev/stifb.c ngleClearOverlayPlanes(fb, 0xff, 0); fb 802 drivers/video/fbdev/stifb.c hyperUndoITE(fb); fb 803 drivers/video/fbdev/stifb.c ngleResetAttrPlanes(fb, controlPlaneReg); fb 807 drivers/video/fbdev/stifb.c NGLE_UNLOCK(fb); fb 813 drivers/video/fbdev/stifb.c ngleGetDeviceRomData(struct stifb_info *fb) fb 827 drivers/video/fbdev/stifb.c pPackedDevRomData = fb->ngle_rom; fb 829 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 830 drivers/video/fbdev/stifb.c if (fb->id == S9000_ID_ARTIST) { fb 835 drivers/video/fbdev/stifb.c pBytePerLongDevDepData = fb->sti->regions[NGLEDEVDEPROM_CRT_REGION]; fb 838 drivers/video/fbdev/stifb.c if (fb->id == S9000_ID_TOMCAT) fb 869 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 881 drivers/video/fbdev/stifb.c SETUP_HCRX(struct stifb_info *fb) fb 886 drivers/video/fbdev/stifb.c if (fb->id != S9000_ID_HCRX) fb 890 drivers/video/fbdev/stifb.c GET_FIFO_SLOTS(fb, nFreeFifoSlots, 7); fb 892 drivers/video/fbdev/stifb.c if (IS_24_DEVICE(fb)) { fb 893 drivers/video/fbdev/stifb.c hyperbowl = (fb->info.var.bits_per_pixel == 32) ? fb 898 drivers/video/fbdev/stifb.c WRITE_WORD(hyperbowl, fb, REG_40); fb 899 drivers/video/fbdev/stifb.c WRITE_WORD(hyperbowl, fb, REG_40); fb 901 drivers/video/fbdev/stifb.c WRITE_WORD(HYPERBOWL_MODE2_8_24, fb, REG_39); fb 903 drivers/video/fbdev/stifb.c WRITE_WORD(0x014c0148, fb, REG_42); /* Set lut 0 to be the direct color */ fb 904 drivers/video/fbdev/stifb.c WRITE_WORD(0x404c4048, fb, REG_43); fb 905 drivers/video/fbdev/stifb.c WRITE_WORD(0x034c0348, fb, REG_44); fb 906 drivers/video/fbdev/stifb.c WRITE_WORD(0x444c4448, fb, REG_45); fb 911 drivers/video/fbdev/stifb.c WRITE_WORD(hyperbowl, fb, REG_40); fb 912 drivers/video/fbdev/stifb.c WRITE_WORD(hyperbowl, fb, REG_40); fb 914 drivers/video/fbdev/stifb.c WRITE_WORD(0x00000000, fb, REG_42); fb 915 drivers/video/fbdev/stifb.c WRITE_WORD(0x00000000, fb, REG_43); fb 916 drivers/video/fbdev/stifb.c WRITE_WORD(0x00000000, fb, REG_44); fb 917 drivers/video/fbdev/stifb.c WRITE_WORD(0x444c4048, fb, REG_45); fb 928 drivers/video/fbdev/stifb.c struct stifb_info *fb = container_of(info, struct stifb_info, info); fb 940 drivers/video/fbdev/stifb.c START_IMAGE_COLORMAP_ACCESS(fb); fb 942 drivers/video/fbdev/stifb.c if (unlikely(fb->info.var.grayscale)) { fb 953 drivers/video/fbdev/stifb.c if (fb->info.fix.visual == FB_VISUAL_DIRECTCOLOR) { fb 954 drivers/video/fbdev/stifb.c struct fb_var_screeninfo *var = &fb->info.var; fb 956 drivers/video/fbdev/stifb.c ((u32 *)fb->info.pseudo_palette)[regno] = fb 962 drivers/video/fbdev/stifb.c WRITE_IMAGE_COLOR(fb, regno, color); fb 964 drivers/video/fbdev/stifb.c if (fb->id == S9000_ID_HCRX) { fb 967 drivers/video/fbdev/stifb.c lutBltCtl = setHyperLutBltCtl(fb, fb 970 drivers/video/fbdev/stifb.c NGLE_BINC_SET_SRCADDR(fb, fb 973 drivers/video/fbdev/stifb.c START_COLORMAPLOAD(fb, lutBltCtl.all); fb 974 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 977 drivers/video/fbdev/stifb.c FINISH_IMAGE_COLORMAP_ACCESS(fb); fb 988 drivers/video/fbdev/stifb.c struct stifb_info *fb = container_of(info, struct stifb_info, info); fb 991 drivers/video/fbdev/stifb.c switch (fb->id) { fb 993 drivers/video/fbdev/stifb.c CRX24_ENABLE_DISABLE_DISPLAY(fb, enable); fb 997 drivers/video/fbdev/stifb.c ARTIST_ENABLE_DISABLE_DISPLAY(fb, enable); fb 1000 drivers/video/fbdev/stifb.c HYPER_ENABLE_DISABLE_DISPLAY(fb, enable); fb 1006 drivers/video/fbdev/stifb.c ENABLE_DISABLE_DISPLAY(fb, enable); fb 1010 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 1017 drivers/video/fbdev/stifb.c struct stifb_info *fb = container_of(info, struct stifb_info, info); fb 1019 drivers/video/fbdev/stifb.c SETUP_COPYAREA(fb); fb 1021 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 1022 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 32) { fb 1023 drivers/video/fbdev/stifb.c WRITE_WORD(0xBBA0A000, fb, REG_10); fb 1025 drivers/video/fbdev/stifb.c NGLE_REALLY_SET_IMAGE_PLANEMASK(fb, 0xffffffff); fb 1027 drivers/video/fbdev/stifb.c WRITE_WORD(fb->id == S9000_ID_HCRX ? 0x13a02000 : 0x13a01000, fb, REG_10); fb 1029 drivers/video/fbdev/stifb.c NGLE_REALLY_SET_IMAGE_PLANEMASK(fb, 0xff); fb 1032 drivers/video/fbdev/stifb.c NGLE_QUICK_SET_IMAGE_BITMAP_OP(fb, fb 1037 drivers/video/fbdev/stifb.c WRITE_WORD(((area->sx << 16) | area->sy), fb, REG_24); fb 1038 drivers/video/fbdev/stifb.c WRITE_WORD(((area->width << 16) | area->height), fb, REG_7); fb 1039 drivers/video/fbdev/stifb.c WRITE_WORD(((area->dx << 16) | area->dy), fb, REG_25); fb 1041 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 1045 drivers/video/fbdev/stifb.c stifb_init_display(struct stifb_info *fb) fb 1047 drivers/video/fbdev/stifb.c int id = fb->id; fb 1049 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 1052 drivers/video/fbdev/stifb.c SETUP_HCRX(fb); fb 1064 drivers/video/fbdev/stifb.c hyperResetPlanes(fb, ENABLE); fb 1067 drivers/video/fbdev/stifb.c rattlerSetupPlanes(fb); fb 1072 drivers/video/fbdev/stifb.c elkSetupPlanes(fb); fb 1080 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 32) fb 1081 drivers/video/fbdev/stifb.c ngleSetupAttrPlanes(fb, BUFF1_CMAP3); fb 1083 drivers/video/fbdev/stifb.c ngleSetupAttrPlanes(fb, BUFF1_CMAP0); fb 1086 drivers/video/fbdev/stifb.c ngleClearOverlayPlanes(fb, 0xff, 0); fb 1090 drivers/video/fbdev/stifb.c if (fb->info.var.bits_per_pixel == 32) fb 1091 drivers/video/fbdev/stifb.c ngleSetupAttrPlanes(fb, BUFF1_CMAP3); fb 1093 drivers/video/fbdev/stifb.c ngleSetupAttrPlanes(fb, ARTIST_CMAP0); fb 1097 drivers/video/fbdev/stifb.c stifb_blank(0, (struct fb_info *)fb); /* 0=enable screen */ fb 1099 drivers/video/fbdev/stifb.c SETUP_FB(fb); fb 1122 drivers/video/fbdev/stifb.c struct stifb_info *fb; fb 1128 drivers/video/fbdev/stifb.c fb = kzalloc(sizeof(*fb), GFP_ATOMIC); fb 1129 drivers/video/fbdev/stifb.c if (!fb) fb 1132 drivers/video/fbdev/stifb.c info = &fb->info; fb 1138 drivers/video/fbdev/stifb.c fb->sti = sti; fb 1141 drivers/video/fbdev/stifb.c fb->id = fb->sti->graphics_id[0]; fb 1144 drivers/video/fbdev/stifb.c switch (fb->id) { fb 1169 drivers/video/fbdev/stifb.c dev_name, fb->id); fb 1175 drivers/video/fbdev/stifb.c xres = sti_onscreen_x(fb->sti); fb 1176 drivers/video/fbdev/stifb.c yres = sti_onscreen_y(fb->sti); fb 1178 drivers/video/fbdev/stifb.c ngleGetDeviceRomData(fb); fb 1181 drivers/video/fbdev/stifb.c fix->mmio_start = REGION_BASE(fb,2); fb 1185 drivers/video/fbdev/stifb.c switch (fb->id) { fb 1190 drivers/video/fbdev/stifb.c fb->id = S9000_ID_A1659A; fb 1203 drivers/video/fbdev/stifb.c xres = fb->ngle_rom.x_size_visible; fb 1204 drivers/video/fbdev/stifb.c yres = fb->ngle_rom.y_size_visible; fb 1205 drivers/video/fbdev/stifb.c fb->id = S9000_ID_A1659A; fb 1211 drivers/video/fbdev/stifb.c memset(&fb->ngle_rom, 0, sizeof(fb->ngle_rom)); fb 1212 drivers/video/fbdev/stifb.c if ((fb->sti->regions_phys[0] & 0xfc000000) == fb 1213 drivers/video/fbdev/stifb.c (fb->sti->regions_phys[2] & 0xfc000000)) fb 1214 drivers/video/fbdev/stifb.c sti_rom_address = F_EXTEND(fb->sti->regions_phys[0]); fb 1216 drivers/video/fbdev/stifb.c sti_rom_address = F_EXTEND(fb->sti->regions_phys[1]); fb 1218 drivers/video/fbdev/stifb.c fb->deviceSpecificConfig = gsc_readl(sti_rom_address); fb 1219 drivers/video/fbdev/stifb.c if (IS_24_DEVICE(fb)) { fb 1226 drivers/video/fbdev/stifb.c READ_WORD(fb, REG_15); fb 1227 drivers/video/fbdev/stifb.c SETUP_HW(fb); fb 1237 drivers/video/fbdev/stifb.c fb->id); fb 1244 drivers/video/fbdev/stifb.c fb->id); fb 1251 drivers/video/fbdev/stifb.c fix->smem_start = F_EXTEND(fb->sti->regions_phys[1]); fb 1252 drivers/video/fbdev/stifb.c fix->smem_len = fb->sti->regions[1].region_desc.length * 4096; fb 1254 drivers/video/fbdev/stifb.c fix->line_length = (fb->sti->glob_cfg->total_x * bpp) / 8; fb 1294 drivers/video/fbdev/stifb.c info->screen_base = ioremap_nocache(REGION_BASE(fb,1), fix->smem_len); fb 1301 drivers/video/fbdev/stifb.c info->pseudo_palette = &fb->pseudo_palette; fb 1306 drivers/video/fbdev/stifb.c stifb_init_display(fb); fb 1320 drivers/video/fbdev/stifb.c if (register_framebuffer(&fb->info) < 0) fb 1325 drivers/video/fbdev/stifb.c fb_info(&fb->info, "%s %dx%d-%d frame buffer device, %s, id: %04x, mmio: 0x%04lx\n", fb 1331 drivers/video/fbdev/stifb.c fb->id, fb 1346 drivers/video/fbdev/stifb.c kfree(fb); fb 37 drivers/video/fbdev/vt8500lcdfb.c struct vt8500lcd_info, fb) fb 152 drivers/video/fbdev/vt8500lcdfb.c switch (fbi->fb.fix.visual) { fb 155 drivers/video/fbdev/vt8500lcdfb.c u32 *pal = fbi->fb.pseudo_palette; fb 157 drivers/video/fbdev/vt8500lcdfb.c val = chan_to_field(red, &fbi->fb.var.red); fb 158 drivers/video/fbdev/vt8500lcdfb.c val |= chan_to_field(green, &fbi->fb.var.green); fb 159 drivers/video/fbdev/vt8500lcdfb.c val |= chan_to_field(blue, &fbi->fb.var.blue); fb 288 drivers/video/fbdev/vt8500lcdfb.c strcpy(fbi->fb.fix.id, "VT8500 LCD"); fb 290 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 291 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fix.xpanstep = 0; fb 292 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fix.ypanstep = 1; fb 293 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fix.ywrapstep = 0; fb 294 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fix.accel = FB_ACCEL_NONE; fb 296 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.nonstd = 0; fb 297 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.activate = FB_ACTIVATE_NOW; fb 298 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.height = -1; fb 299 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.width = -1; fb 300 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.vmode = FB_VMODE_NONINTERLACED; fb 302 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fbops = &vt8500lcd_ops; fb 303 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.flags = FBINFO_DEFAULT fb 309 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.node = -1; fb 313 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.pseudo_palette = addr; fb 359 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fix.smem_start = fb_mem_phys; fb 360 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.fix.smem_len = fb_mem_len; fb 361 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.screen_base = fb_mem_virt; fb 390 drivers/video/fbdev/vt8500lcdfb.c if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { fb 396 drivers/video/fbdev/vt8500lcdfb.c fb_videomode_to_var(&fbi->fb.var, &of_mode); fb 398 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.xres_virtual = of_mode.xres; fb 399 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.yres_virtual = of_mode.yres * 2; fb 400 drivers/video/fbdev/vt8500lcdfb.c fbi->fb.var.bits_per_pixel = bpp; fb 402 drivers/video/fbdev/vt8500lcdfb.c ret = vt8500lcd_set_par(&fbi->fb); fb 408 drivers/video/fbdev/vt8500lcdfb.c writel(fbi->fb.fix.smem_start >> 22, fbi->regbase + 0x1c); fb 413 drivers/video/fbdev/vt8500lcdfb.c ret = register_framebuffer(&fbi->fb); fb 428 drivers/video/fbdev/vt8500lcdfb.c if (fbi->fb.cmap.len) fb 429 drivers/video/fbdev/vt8500lcdfb.c fb_dealloc_cmap(&fbi->fb.cmap); fb 448 drivers/video/fbdev/vt8500lcdfb.c unregister_framebuffer(&fbi->fb); fb 452 drivers/video/fbdev/vt8500lcdfb.c if (fbi->fb.cmap.len) fb 453 drivers/video/fbdev/vt8500lcdfb.c fb_dealloc_cmap(&fbi->fb.cmap); fb 9 drivers/video/fbdev/vt8500lcdfb.h struct fb_info fb; fb 519 drivers/video/fbdev/vt8623fb.c u_int transp, struct fb_info *fb) fb 521 drivers/video/fbdev/vt8623fb.c switch (fb->var.bits_per_pixel) { fb 547 drivers/video/fbdev/vt8623fb.c if (fb->var.green.length == 5) fb 548 drivers/video/fbdev/vt8623fb.c ((u32*)fb->pseudo_palette)[regno] = ((red & 0xF800) >> 1) | fb 550 drivers/video/fbdev/vt8623fb.c else if (fb->var.green.length == 6) fb 551 drivers/video/fbdev/vt8623fb.c ((u32*)fb->pseudo_palette)[regno] = (red & 0xF800) | fb 562 drivers/video/fbdev/vt8623fb.c ((u32*)fb->pseudo_palette)[regno] = ((red & 0xFF00) << 8) | fb 35 drivers/video/fbdev/wm8505fb.c struct wm8505fb_info, fb) fb 37 drivers/video/fbdev/wm8505fb.c struct fb_info fb; fb 54 drivers/video/fbdev/wm8505fb.c writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR); fb 55 drivers/video/fbdev/wm8505fb.c writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR1); fb 205 drivers/video/fbdev/wm8505fb.c switch (fbi->fb.fix.visual) { fb 210 drivers/video/fbdev/wm8505fb.c val = chan_to_field(red, &fbi->fb.var.red); fb 211 drivers/video/fbdev/wm8505fb.c val |= chan_to_field(green, &fbi->fb.var.green); fb 212 drivers/video/fbdev/wm8505fb.c val |= chan_to_field(blue, &fbi->fb.var.blue); fb 280 drivers/video/fbdev/wm8505fb.c strcpy(fbi->fb.fix.id, DRIVER_NAME); fb 282 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; fb 283 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.xpanstep = 1; fb 284 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.ypanstep = 1; fb 285 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.ywrapstep = 0; fb 286 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.accel = FB_ACCEL_NONE; fb 288 drivers/video/fbdev/wm8505fb.c fbi->fb.fbops = &wm8505fb_ops; fb 289 drivers/video/fbdev/wm8505fb.c fbi->fb.flags = FBINFO_DEFAULT fb 296 drivers/video/fbdev/wm8505fb.c fbi->fb.node = -1; fb 300 drivers/video/fbdev/wm8505fb.c fbi->fb.pseudo_palette = addr; fb 319 drivers/video/fbdev/wm8505fb.c fb_videomode_to_var(&fbi->fb.var, &mode); fb 321 drivers/video/fbdev/wm8505fb.c fbi->fb.var.nonstd = 0; fb 322 drivers/video/fbdev/wm8505fb.c fbi->fb.var.activate = FB_ACTIVATE_NOW; fb 324 drivers/video/fbdev/wm8505fb.c fbi->fb.var.height = -1; fb 325 drivers/video/fbdev/wm8505fb.c fbi->fb.var.width = -1; fb 336 drivers/video/fbdev/wm8505fb.c fbi->fb.var.xres_virtual = mode.xres; fb 337 drivers/video/fbdev/wm8505fb.c fbi->fb.var.yres_virtual = mode.yres * 2; fb 338 drivers/video/fbdev/wm8505fb.c fbi->fb.var.bits_per_pixel = bpp; fb 340 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.smem_start = fb_mem_phys; fb 341 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.smem_len = fb_mem_len; fb 342 drivers/video/fbdev/wm8505fb.c fbi->fb.screen_base = fb_mem_virt; fb 343 drivers/video/fbdev/wm8505fb.c fbi->fb.screen_size = fb_mem_len; fb 346 drivers/video/fbdev/wm8505fb.c ret = wm8505fb_set_par(&fbi->fb); fb 352 drivers/video/fbdev/wm8505fb.c if (fb_alloc_cmap(&fbi->fb.cmap, 256, 0) < 0) { fb 357 drivers/video/fbdev/wm8505fb.c wm8505fb_init_hw(&fbi->fb); fb 361 drivers/video/fbdev/wm8505fb.c ret = register_framebuffer(&fbi->fb); fb 365 drivers/video/fbdev/wm8505fb.c if (fbi->fb.cmap.len) fb 366 drivers/video/fbdev/wm8505fb.c fb_dealloc_cmap(&fbi->fb.cmap); fb 370 drivers/video/fbdev/wm8505fb.c fb_info(&fbi->fb, "%s frame buffer at 0x%lx-0x%lx\n", fb 371 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.id, fbi->fb.fix.smem_start, fb 372 drivers/video/fbdev/wm8505fb.c fbi->fb.fix.smem_start + fbi->fb.fix.smem_len - 1); fb 381 drivers/video/fbdev/wm8505fb.c unregister_framebuffer(&fbi->fb); fb 385 drivers/video/fbdev/wm8505fb.c if (fbi->fb.cmap.len) fb 386 drivers/video/fbdev/wm8505fb.c fb_dealloc_cmap(&fbi->fb.cmap); fb 43 drivers/video/fbdev/xen-fbfront.c unsigned char *fb; fb 409 drivers/video/fbdev/xen-fbfront.c info->fb = vzalloc(fb_size); fb 410 drivers/video/fbdev/xen-fbfront.c if (info->fb == NULL) fb 433 drivers/video/fbdev/xen-fbfront.c fb_info->screen_base = info->fb; fb 544 drivers/video/fbdev/xen-fbfront.c vfree(info->fb); fb 562 drivers/video/fbdev/xen-fbfront.c info->gfns[i] = vmalloc_to_gfn(info->fb + i * PAGE_SIZE); fb 595 fs/btrfs/raid56.c int fb = last->failb; fb 601 fs/btrfs/raid56.c fb = last->faila; fb 609 fs/btrfs/raid56.c if (fa != cur_fa || fb != cur_fb) fb 358 fs/ext4/fsmap.c struct ext4_fsmap *fb; fb 361 fs/ext4/fsmap.c fb = container_of(b, struct ext4_fsmap, fmr_list); fb 362 fs/ext4/fsmap.c if (fa->fmr_physical < fb->fmr_physical) fb 364 fs/ext4/fsmap.c else if (fa->fmr_physical > fb->fmr_physical) fb 112 include/drm/drm_atomic_helper.h struct drm_framebuffer *fb, fb 136 include/drm/drm_atomic_helper.h struct drm_framebuffer *fb, fb 142 include/drm/drm_atomic_helper.h struct drm_framebuffer *fb, fb 221 include/drm/drm_atomic_helper.h WARN_ON((new_plane_state->crtc == NULL && new_plane_state->fb != NULL) || fb 222 include/drm/drm_atomic_helper.h (new_plane_state->crtc != NULL && new_plane_state->fb == NULL)); fb 51 include/drm/drm_atomic_uapi.h struct drm_framebuffer *fb); fb 146 include/drm/drm_client.h struct drm_framebuffer *fb; fb 565 include/drm/drm_crtc.h struct drm_framebuffer *fb, fb 584 include/drm/drm_crtc.h struct drm_framebuffer *fb, fb 1130 include/drm/drm_crtc.h struct drm_framebuffer *fb; fb 70 include/drm/drm_damage_helper.h int drm_atomic_helper_dirtyfb(struct drm_framebuffer *fb, fb 8 include/drm/drm_fb_cma_helper.h struct drm_gem_cma_object *drm_fb_cma_get_gem_obj(struct drm_framebuffer *fb, fb 11 include/drm/drm_fb_cma_helper.h dma_addr_t drm_fb_cma_get_gem_addr(struct drm_framebuffer *fb, fb 129 include/drm/drm_fb_helper.h struct drm_framebuffer *fb; fb 12 include/drm/drm_format_helper.h void drm_fb_memcpy(void *dst, void *vaddr, struct drm_framebuffer *fb, fb 15 include/drm/drm_format_helper.h struct drm_framebuffer *fb, fb 17 include/drm/drm_format_helper.h void drm_fb_swab16(u16 *dst, void *vaddr, struct drm_framebuffer *fb, fb 20 include/drm/drm_format_helper.h struct drm_framebuffer *fb, fb 23 include/drm/drm_format_helper.h void *vaddr, struct drm_framebuffer *fb, fb 26 include/drm/drm_format_helper.h void *vaddr, struct drm_framebuffer *fb, fb 28 include/drm/drm_format_helper.h void drm_fb_xrgb8888_to_gray8(u8 *dst, void *vaddr, struct drm_framebuffer *fb, fb 73 include/drm/drm_framebuffer.h int (*create_handle)(struct drm_framebuffer *fb, fb 219 include/drm/drm_framebuffer.h struct drm_framebuffer *fb, fb 224 include/drm/drm_framebuffer.h void drm_framebuffer_remove(struct drm_framebuffer *fb); fb 225 include/drm/drm_framebuffer.h void drm_framebuffer_cleanup(struct drm_framebuffer *fb); fb 226 include/drm/drm_framebuffer.h void drm_framebuffer_unregister_private(struct drm_framebuffer *fb); fb 234 include/drm/drm_framebuffer.h static inline void drm_framebuffer_get(struct drm_framebuffer *fb) fb 236 include/drm/drm_framebuffer.h drm_mode_object_get(&fb->base); fb 246 include/drm/drm_framebuffer.h static inline void drm_framebuffer_put(struct drm_framebuffer *fb) fb 248 include/drm/drm_framebuffer.h drm_mode_object_put(&fb->base); fb 257 include/drm/drm_framebuffer.h static inline uint32_t drm_framebuffer_read_refcount(const struct drm_framebuffer *fb) fb 259 include/drm/drm_framebuffer.h return kref_read(&fb->base.refcount); fb 271 include/drm/drm_framebuffer.h struct drm_framebuffer *fb) fb 273 include/drm/drm_framebuffer.h if (fb) fb 274 include/drm/drm_framebuffer.h drm_framebuffer_get(fb); fb 277 include/drm/drm_framebuffer.h *p = fb; fb 288 include/drm/drm_framebuffer.h #define drm_for_each_fb(fb, dev) \ fb 290 include/drm/drm_framebuffer.h fb = list_first_entry(&(dev)->mode_config.fb_list, \ fb 292 include/drm/drm_framebuffer.h &fb->head != (&(dev)->mode_config.fb_list); \ fb 293 include/drm/drm_framebuffer.h fb = list_next_entry(fb, head)) fb 296 include/drm/drm_framebuffer.h const struct drm_framebuffer *fb, int plane); fb 298 include/drm/drm_framebuffer.h const struct drm_framebuffer *fb, int plane); fb 15 include/drm/drm_gem_framebuffer_helper.h struct drm_gem_object *drm_gem_fb_get_obj(struct drm_framebuffer *fb, fb 17 include/drm/drm_gem_framebuffer_helper.h void drm_gem_fb_destroy(struct drm_framebuffer *fb); fb 18 include/drm/drm_gem_framebuffer_helper.h int drm_gem_fb_create_handle(struct drm_framebuffer *fb, struct drm_file *file, fb 162 include/drm/drm_mipi_dbi.h int mipi_dbi_buf_copy(void *dst, struct drm_framebuffer *fb, fb 35 include/drm/drm_modeset_helper.h struct drm_framebuffer *fb, fb 268 include/drm/drm_modeset_helper_vtables.h struct drm_framebuffer *fb, int x, int y, fb 65 include/drm/drm_plane.h struct drm_framebuffer *fb; fb 265 include/drm/drm_plane.h struct drm_crtc *crtc, struct drm_framebuffer *fb, fb 622 include/drm/drm_plane.h struct drm_framebuffer *fb; fb 117 include/drm/drm_writeback.h struct drm_framebuffer *fb; fb 147 include/drm/drm_writeback.h struct drm_framebuffer *fb); fb 90 include/linux/amba/clcd.h int (*check)(struct clcd_fb *fb, struct fb_var_screeninfo *var); fb 96 include/linux/amba/clcd.h void (*decode)(struct clcd_fb *fb, struct clcd_regs *regs); fb 129 include/linux/amba/clcd.h struct fb_info fb; fb 143 include/linux/amba/clcd.h static inline void clcdfb_decode(struct clcd_fb *fb, struct clcd_regs *regs) fb 145 include/linux/amba/clcd.h struct fb_var_screeninfo *var = &fb->fb.var; fb 158 include/linux/amba/clcd.h if (fb->panel->cntl & CNTL_LCDDUAL) fb 166 include/linux/amba/clcd.h val = fb->panel->tim2; fb 171 include/linux/amba/clcd.h if (fb->panel->cntl & CNTL_LCDTFT) /* TFT */ fb 175 include/linux/amba/clcd.h else if (fb->panel->cntl & CNTL_LCDMONO8) /* STN monochrome, 8bit */ fb 182 include/linux/amba/clcd.h regs->tim3 = fb->panel->tim3; fb 184 include/linux/amba/clcd.h val = fb->panel->cntl; fb 188 include/linux/amba/clcd.h if (fb->panel->caps && fb->board->caps && var->bits_per_pixel >= 16) { fb 202 include/linux/amba/clcd.h if (fb->panel->bgr_connection) fb 225 include/linux/amba/clcd.h if (amba_part(fb->dev) == 0x110 || fb 242 include/linux/amba/clcd.h static inline int clcdfb_check(struct clcd_fb *fb, struct fb_var_screeninfo *var) fb 266 include/linux/amba/clcd.h if (var->grayscale != fb->fb.var.grayscale || fb 270 include/linux/amba/clcd.h #define CHECK(e) (var->e != fb->fb.var.e) fb 271 include/linux/amba/clcd.h if (fb->panel->fixedtimings && fb 725 include/linux/fb.h struct fb_videomode *fb, fb 42 include/linux/mfd/tc6393xb.h extern int tc6393xb_lcd_mode(struct platform_device *fb, fb 44 include/linux/mfd/tc6393xb.h extern int tc6393xb_lcd_set_power(struct platform_device *fb, bool on); fb 152 include/linux/sm501.h struct sm501_platdata_fb *fb; fb 200 include/uapi/linux/media.h } fb; fb 28 include/video/mbxfb.h int (*probe)(struct fb_info *fb); fb 29 include/video/mbxfb.h int (*remove)(struct fb_info *fb); fb 20 lib/reed_solomon/encode_rs.c uint16_t fb; fb 29 lib/reed_solomon/encode_rs.c fb = index_of[((((uint16_t) data[i])^invmsk) & msk) ^ par[0]]; fb 31 lib/reed_solomon/encode_rs.c if (fb != nn) { fb 33 lib/reed_solomon/encode_rs.c par[j] ^= alpha_to[rs_modnn(rs, fb + fb 39 lib/reed_solomon/encode_rs.c if (fb != nn) { fb 41 lib/reed_solomon/encode_rs.c fb + genpoly[0])]; fb 412 tools/lib/traceevent/event-parse.c const struct func_map *fb = b; fb 414 tools/lib/traceevent/event-parse.c if (fa->addr < fb->addr) fb 416 tools/lib/traceevent/event-parse.c if (fa->addr > fb->addr) fb 429 tools/lib/traceevent/event-parse.c const struct func_map *fb = b; fb 431 tools/lib/traceevent/event-parse.c if ((fa->addr == fb->addr) || fb 433 tools/lib/traceevent/event-parse.c (fa->addr > fb->addr && fb 434 tools/lib/traceevent/event-parse.c fa->addr < (fb+1)->addr)) fb 437 tools/lib/traceevent/event-parse.c if (fa->addr < fb->addr) fb 311 tools/perf/builtin-kmem.c const struct alloc_func *fb = b; fb 313 tools/perf/builtin-kmem.c if (fa->start > fb->start) fb 322 tools/perf/builtin-kmem.c const struct alloc_func *fb = b; fb 324 tools/perf/builtin-kmem.c if (fb->start <= fa->start && fa->end < fb->end) fb 327 tools/perf/builtin-kmem.c if (fa->start > fb->start) fb 621 tools/perf/builtin-kmem.c const struct gfp_flag *fb = b; fb 623 tools/perf/builtin-kmem.c return fa->flags - fb->flags;