/linux/drivers/video/fbdev/ |
A D | amba-clcd.c | 43 ustart += fb->fb.var.yoffset * fb->fb.fix.line_length; in clcdfb_set_start() 44 lstart = ustart + fb->fb.var.yres * fb->fb.fix.line_length / 2; in clcdfb_set_start() 284 fb->fb.fix.line_length = fb->fb.var.xres_virtual * in clcdfb_set_par() 451 fb->fb.device = &fb->dev->dev; in clcdfb_register() 456 fb->regs = ioremap(fb->fb.fix.mmio_start, fb->fb.fix.mmio_len); in clcdfb_register() 465 fb->fb.pseudo_palette = fb->cmap; in clcdfb_register() 467 strncpy(fb->fb.fix.id, clcd_name, sizeof(fb->fb.fix.id)); in clcdfb_register() 493 fb->fb.var.width = fb->panel->width; in clcdfb_register() 520 fb_set_var(&fb->fb, &fb->fb.var); in clcdfb_register() 820 fb->fb.fix.smem_start, fb->fb.fix.smem_len); in clcdfb_of_dma_mmap() [all …]
|
A D | goldfishfb.c | 120 if (fb->rotation != fb->fb.var.rotate) { in goldfish_fb_set_par() 122 fb->rotation = fb->fb.var.rotate; in goldfish_fb_set_par() 138 writel(fb->fb.fix.smem_start + fb->fb.var.xres * 2 * var->yoffset, in goldfish_fb_pan_display() 216 fb->fb.pseudo_palette = fb->cmap; in goldfish_fb_probe() 221 fb->fb.fix.ypanstep = 1; in goldfish_fb_probe() 231 fb->fb.var.pixclock = 0; in goldfish_fb_probe() 253 ret = fb_set_var(&fb->fb, &fb->fb.var); in goldfish_fb_probe() 263 goldfish_fb_pan_display(&fb->fb.var, &fb->fb); /* updates base */ in goldfish_fb_probe() 271 free_irq(fb->irq, fb); in goldfish_fb_probe() 291 framesize = fb->fb.var.xres_virtual * fb->fb.var.yres_virtual * 2; in goldfish_fb_remove() [all …]
|
A D | stifb.c | 204 SETUP_HW(fb); in SETUP_FB() 232 SETUP_HW(fb); in SETUP_FB() 506 SET_ATTR_SIZE(fb, fb->info.var.xres, fb->info.var.yres); in ngleSetupAttrPlanes() 1128 fb = kzalloc(sizeof(*fb), GFP_ATOMIC); in stifb_init_fb() 1129 if (!fb) in stifb_init_fb() 1141 fb->id = fb->sti->graphics_id[0]; in stifb_init_fb() 1211 memset(&fb->ngle_rom, 0, sizeof(fb->ngle_rom)); in stifb_init_fb() 1237 fb->id); in stifb_init_fb() 1244 fb->id); in stifb_init_fb() 1331 fb->id, in stifb_init_fb() [all …]
|
A D | sm712fb.c | 40 struct fb_info *fb; member 1301 sfb->fb->fix.line_length = sfb->fb->var.xres * 4; in smtcfb_setmode() 1311 sfb->fb->fix.line_length = sfb->fb->var.xres * 3; in smtcfb_setmode() 1321 sfb->fb->fix.line_length = sfb->fb->var.xres; in smtcfb_setmode() 1332 sfb->fb->fix.line_length = sfb->fb->var.xres * 2; in smtcfb_setmode() 1548 sfb->fb = info; in smtcfb_pci_probe() 1579 sfb->fb->fix.id); in smtcfb_pci_probe() 1610 sfb->fb->fix.id); in smtcfb_pci_probe() 1638 sfb->fb->var.xres_virtual = sfb->fb->var.xres; in smtcfb_pci_probe() 1639 sfb->fb->var.yres_virtual = sfb->fb->var.yres; in smtcfb_pci_probe() [all …]
|
A D | wm8505fb.c | 37 struct fb_info fb; member 283 fbi->fb.fix.xpanstep = 1; in wm8505fb_probe() 284 fbi->fb.fix.ypanstep = 1; in wm8505fb_probe() 296 fbi->fb.node = -1; in wm8505fb_probe() 321 fbi->fb.var.nonstd = 0; in wm8505fb_probe() 324 fbi->fb.var.height = -1; in wm8505fb_probe() 325 fbi->fb.var.width = -1; in wm8505fb_probe() 365 if (fbi->fb.cmap.len) in wm8505fb_probe() 371 fbi->fb.fix.id, fbi->fb.fix.smem_start, in wm8505fb_probe() 372 fbi->fb.fix.smem_start + fbi->fb.fix.smem_len - 1); in wm8505fb_probe() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/fb/ |
A D | base.c | 93 fb->func->intr(fb); in nvkm_fb_intr() 103 int ret = fb->func->ram_new(fb, &fb->ram); in nvkm_fb_oneinit() 121 tags = fb->func->tags(fb); in nvkm_fb_oneinit() 141 ret = fb->func->vpr.scrub(fb); in nvkm_fb_init_scrub_vpr() 169 fb->func->tile.prog(fb, i, &fb->tile.region[i]); in nvkm_fb_init() 172 fb->func->init(fb); in nvkm_fb_init() 175 fb->func->init_remapper(fb); in nvkm_fb_init() 178 ret = fb->func->init_page(fb); in nvkm_fb_init() 184 fb->func->init_unkn(fb); in nvkm_fb_init() 206 fb->func->tile.fini(fb, i, &fb->tile.region[i]); in nvkm_fb_dtor() [all …]
|
A D | Kbuild | 2 nvkm-y += nvkm/subdev/fb/base.o 3 nvkm-y += nvkm/subdev/fb/nv04.o 4 nvkm-y += nvkm/subdev/fb/nv10.o 5 nvkm-y += nvkm/subdev/fb/nv1a.o 6 nvkm-y += nvkm/subdev/fb/nv20.o 7 nvkm-y += nvkm/subdev/fb/nv25.o 8 nvkm-y += nvkm/subdev/fb/nv30.o 9 nvkm-y += nvkm/subdev/fb/nv35.o 10 nvkm-y += nvkm/subdev/fb/nv36.o 11 nvkm-y += nvkm/subdev/fb/nv40.o [all …]
|
A D | gf100.c | 49 int ret, size = 1 << (fb->base.page ? fb->base.page : 17); in gf100_fb_oneinit() 55 true, &fb->base.mmu_rd); in gf100_fb_oneinit() 65 if (fb->r100c10_page) { in gf100_fb_oneinit() 66 fb->r100c10 = dma_map_page(device->dev, fb->r100c10_page, 0, in gf100_fb_oneinit() 79 switch (fb->page) { in gf100_fb_init_page() 94 if (fb->r100c10_page) in gf100_fb_init() 109 if (fb->r100c10_page) { in gf100_fb_dtor() 115 return fb; in gf100_fb_dtor() 122 struct gf100_fb *fb; in gf100_fb_new_() local 124 if (!(fb = kzalloc(sizeof(*fb), GFP_KERNEL))) in gf100_fb_new_() [all …]
|
A D | nv50.c | 35 return fb->func->ram_new(&fb->base, pram); in nv50_fb_ram_new() 202 if (fb->r100c08_page) { in nv50_fb_oneinit() 203 fb->r100c08 = dma_map_page(device->dev, fb->r100c08_page, 0, in nv50_fb_oneinit() 233 if (fb->func->tags) in nv50_fb_tags() 234 return fb->func->tags(&fb->base); in nv50_fb_tags() 244 if (fb->r100c08_page) { in nv50_fb_dtor() 250 return fb; in nv50_fb_dtor() 267 struct nv50_fb *fb; in nv50_fb_new_() local 269 if (!(fb = kzalloc(sizeof(*fb), GFP_KERNEL))) in nv50_fb_new_() 272 fb->func = func; in nv50_fb_new_() [all …]
|
/linux/drivers/gpu/drm/i915/display/ |
A D | intel_fb.c | 26 return is_gen12_ccs_modifier(fb->modifier) && is_ccs_plane(fb, plane); in is_gen12_ccs_plane() 49 drm_WARN_ON(fb->dev, !is_ccs_modifier(fb->modifier) || in main_to_ccs_plane() 57 drm_WARN_ON(fb->dev, !is_ccs_modifier(fb->modifier) || in skl_ccs_to_main_plane() 541 const struct drm_framebuffer *fb = state->hw.fb; in intel_plane_compute_aligned_offset() local 587 fb->offsets[color_plane], fb->pitches[color_plane], in intel_fb_offset_to_xy() 656 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_can_remap() local 1066 struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_remap_gtt() local 1212 const struct drm_framebuffer *fb = plane_state->hw.fb; in intel_plane_check_stride() local 1247 if (!fb) in intel_plane_compute_gtt() 1267 fb->base.width << 16, fb->base.height << 16, in intel_plane_compute_gtt() [all …]
|
A D | intel_plane_initial.c | 35 *fb = plane_state->hw.fb; in intel_reuse_initial_plane_obj() 121 struct drm_framebuffer *fb = &plane_config->fb->base; in intel_alloc_initial_plane_obj() local 124 switch (fb->modifier) { in intel_alloc_initial_plane_obj() 132 fb->modifier); in intel_alloc_initial_plane_obj() 181 if (!plane_config->fb) in intel_find_initial_plane_obj() 185 fb = &plane_config->fb->base; in intel_find_initial_plane_obj() 237 plane_state->uapi.fb = fb; in intel_find_initial_plane_obj() 238 drm_framebuffer_get(fb); in intel_find_initial_plane_obj() 248 if (plane_config->fb) { in plane_config_fini() 249 struct drm_framebuffer *fb = &plane_config->fb->base; in plane_config_fini() local [all …]
|
A D | intel_fb.h | 21 bool is_ccs_plane(const struct drm_framebuffer *fb, int plane); 22 bool is_gen12_ccs_plane(const struct drm_framebuffer *fb, int plane); 23 bool is_gen12_ccs_cc_plane(const struct drm_framebuffer *fb, int plane); 26 bool is_surface_linear(const struct drm_framebuffer *fb, int color_plane); 28 int main_to_ccs_plane(const struct drm_framebuffer *fb, int main_plane); 29 int skl_ccs_to_main_plane(const struct drm_framebuffer *fb, int ccs_plane); 30 int skl_main_to_aux_plane(const struct drm_framebuffer *fb, int main_plane); 36 unsigned int intel_fb_align_height(const struct drm_framebuffer *fb, 39 unsigned int intel_surf_alignment(const struct drm_framebuffer *fb, 43 const struct drm_framebuffer *fb, [all …]
|
/linux/drivers/firmware/broadcom/ |
A D | bcm47xx_sprom.c | 192 bool fb = fallback; in bcm47xx_sprom_fill_auto() local 212 ENTRY(0x0000070e, u16, pre, "pa0b0", pa0b0, 0, fb); in bcm47xx_sprom_fill_auto() 213 ENTRY(0x0000070e, u16, pre, "pa0b1", pa0b1, 0, fb); in bcm47xx_sprom_fill_auto() 214 ENTRY(0x0000070e, u16, pre, "pa0b2", pa0b2, 0, fb); in bcm47xx_sprom_fill_auto() 218 ENTRY(0x0000070c, u8, pre, "opo", opo, 0, fb); in bcm47xx_sprom_fill_auto() 226 ENTRY(0x0000070e, u16, pre, "pa1b0", pa1b0, 0, fb); in bcm47xx_sprom_fill_auto() 240 ENTRY(0x00000708, u8, pre, "bxa2g", bxa2g, 0, fb); in bcm47xx_sprom_fill_auto() 244 ENTRY(0x00000708, u8, pre, "bxa5g", bxa5g, 0, fb); in bcm47xx_sprom_fill_auto() 248 ENTRY(0x00000708, u8, pre, "tri2g", tri2g, 0, fb); in bcm47xx_sprom_fill_auto() 249 ENTRY(0x00000708, u8, pre, "tri5g", tri5g, 0, fb); in bcm47xx_sprom_fill_auto() [all …]
|
/linux/drivers/gpu/drm/ |
A D | drm_framebuffer.c | 96 fb->width, fb->height); in drm_framebuffer_check_src_coords() 439 if (!fb) in drm_mode_rmfb() 516 if (!fb) in drm_mode_getfb() 579 if (!fb) in drm_mode_getfb2_ioctl() 631 if (fb->obj[i] == fb->obj[j]) { in drm_mode_getfb2_ioctl() 645 ret = fb->funcs->create_handle(fb, file_priv, in drm_mode_getfb2_ioctl() 710 if (!fb) in drm_mode_dirtyfb_ioctl() 823 fb->funcs->destroy(fb); in drm_framebuffer_free() 984 if (plane->state->fb != fb) in atomic_remove_fb() 1066 if (crtc->primary->fb == fb) { in legacy_remove_fb() [all …]
|
A D | drm_gem_framebuffer_helper.c | 59 return fb->obj[plane]; in drm_gem_fb_get_obj() 65 struct drm_framebuffer *fb, in drm_gem_fb_init() argument 76 fb->obj[i] = obj[i]; in drm_gem_fb_init() 100 drm_framebuffer_cleanup(fb); in drm_gem_fb_destroy() 101 kfree(fb); in drm_gem_fb_destroy() 226 struct drm_framebuffer *fb; in drm_gem_fb_create_with_funcs() local 229 fb = kzalloc(sizeof(*fb), GFP_KERNEL); in drm_gem_fb_create_with_funcs() 230 if (!fb) in drm_gem_fb_create_with_funcs() 235 kfree(fb); in drm_gem_fb_create_with_funcs() 239 return fb; in drm_gem_fb_create_with_funcs() [all …]
|
A D | drm_format_helper.c | 46 vaddr += fb->pitches[0]; in drm_fb_memcpy() 76 vaddr += fb->pitches[0]; in drm_fb_memcpy_dstclip() 131 src += fb->pitches[0]; in drm_fb_swab() 180 src += fb->pitches[0]; in drm_fb_xrgb8888_to_rgb332() 242 vaddr += fb->pitches[0]; in drm_fb_xrgb8888_to_rgb565() 283 vaddr += fb->pitches[0]; in drm_fb_xrgb8888_to_rgb565_dstclip() 333 src += fb->pitches[0]; in drm_fb_xrgb8888_to_rgb888() 475 vmap, fb, clip, in drm_fb_blit_rect_dstclip() 482 vmap, fb, clip); in drm_fb_blit_rect_dstclip() 514 .x2 = fb->width, in drm_fb_blit_dstclip() [all …]
|
/linux/drivers/staging/fieldbus/ |
A D | dev_core.c | 42 return sprintf(buf, "%d\n", !!fb->enable_get(fb)); in enabled_show() 57 ret = fb->simple_enable_set(fb, value); in enabled_store() 100 return fb->fieldbus_id_get(fb, buf, PAGE_SIZE); in fieldbus_id_show() 236 fb->dc_event++; in fieldbus_dev_area_updated() 250 if (!fb) in __fieldbus_dev_unregister() 270 if (!fb) in __fieldbus_dev_register() 272 if (!fb->read_area || !fb->write_area || !fb->fieldbus_id_get) in __fieldbus_dev_register() 275 if (fb->id < 0) in __fieldbus_dev_register() 276 return fb->id; in __fieldbus_dev_register() 283 fb->id, MAJOR(fieldbus_devt), fb->id); in __fieldbus_dev_register() [all …]
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_framebuffer.c | 18 struct komeda_fb *kfb = to_kfb(fb); in komeda_fb_destroy() 22 drm_gem_object_put(fb->obj[i]); in komeda_fb_destroy() 24 drm_framebuffer_cleanup(fb); in komeda_fb_destroy() 102 fb->obj[0] = obj; in komeda_fb_afbc_size_check() 121 if (komeda_fb_check_src_coords(kfb, 0, 0, fb->width, fb->height)) in komeda_fb_none_afbc_size_check() 130 fb->obj[i] = obj; in komeda_fb_none_afbc_size_check() 149 if (fb->pitches[1] != fb->pitches[2]) { in komeda_fb_none_afbc_size_check() 216 if ((src_x + src_w > fb->width) || (src_y + src_h > fb->height)) { in komeda_fb_check_src_coords() 252 offset = fb->offsets[plane]; in komeda_fb_get_pixel_addr() 253 if (!fb->modifier) { in komeda_fb_get_pixel_addr() [all …]
|
/linux/drivers/gpu/drm/msm/ |
A D | msm_fb.c | 40 fb->width, fb->height, (char *)&fb->format->format, in msm_framebuffer_describe() 41 drm_framebuffer_read_refcount(fb), fb->base.id); in msm_framebuffer_describe() 45 i, fb->offsets[i], fb->pitches[i]); in msm_framebuffer_describe() 86 return msm_gem_iova(fb->obj[plane], aspace) + fb->offsets[plane]; in msm_framebuffer_iova() 118 if (IS_ERR(fb)) { in msm_framebuffer_create() 119 ret = PTR_ERR(fb); in msm_framebuffer_create() 123 return fb; in msm_framebuffer_create() 197 drm_dbg_state(dev, "create: FB ID: %d (%p)", fb->base.id, fb); in msm_framebuffer_init() 199 return fb; in msm_framebuffer_init() 237 if (IS_ERR(fb)) { in msm_alloc_stolen_fb() [all …]
|
/linux/drivers/gpu/drm/omapdrm/ |
A D | omap_fb.c | 89 offset = fb->offsets[n] in get_linear_addr() 195 dev_warn(fb->dev->dev, in omap_framebuffer_update_scanout() 292 seq_printf(m, "fb: %dx%d@%4.4s\n", fb->width, fb->height, in omap_framebuffer_describe() 297 i, fb->offsets[n], fb->pitches[i]); in omap_framebuffer_describe() 316 fb = ERR_PTR(-ENOENT); in omap_framebuffer_create() 322 if (IS_ERR(fb)) in omap_framebuffer_create() 325 return fb; in omap_framebuffer_create() 331 return fb; in omap_framebuffer_create() 367 fb = &omap_fb->base; in omap_framebuffer_init() 417 DBG("create: FB ID: %d (%p)", fb->base.id, fb); in omap_framebuffer_init() [all …]
|
/linux/include/drm/ |
A D | drm_framebuffer.h | 73 int (*create_handle)(struct drm_framebuffer *fb, 219 struct drm_framebuffer *fb, 236 drm_mode_object_get(&fb->base); in drm_framebuffer_get() 248 drm_mode_object_put(&fb->base); in drm_framebuffer_put() 259 return kref_read(&fb->base.refcount); in drm_framebuffer_read_refcount() 271 struct drm_framebuffer *fb) in drm_framebuffer_assign() argument 273 if (fb) in drm_framebuffer_assign() 274 drm_framebuffer_get(fb); in drm_framebuffer_assign() 277 *p = fb; in drm_framebuffer_assign() 288 #define drm_for_each_fb(fb, dev) \ argument [all …]
|
/linux/drivers/media/platform/mtk-vcodec/vdec/ |
A D | vdec_vp9_if.c | 212 if (fb == &vsi->sf_ref_fb[i].fb) in vp9_is_sf_ref_fb() 225 fb = (struct vdec_fb *)node->fb; in vp9_rm_from_fb_use_list() 245 node->fb = fb; in vp9_add_to_fb_free_list() 256 container_of(fb, struct vp9_sf_ref_fb, fb); in vp9_free_sf_ref_fb() 446 node->fb = fb; in vp9_add_to_fb_disp_list() 624 fb = (struct vdec_fb *)node->fb; in vp9_rm_from_fb_disp_list() 628 node->fb, fb->status); in vp9_rm_from_fb_disp_list() 648 node->fb = fb; in vp9_add_to_fb_use_list() 733 fb = (struct vdec_fb *)node->fb; in get_free_fb() 736 node->fb, fb->status); in get_free_fb() [all …]
|
/linux/drivers/gpu/drm/gud/ |
A D | gud_pipe.c | 346 if (!gdrm->fb) { in gud_retry_failed_flush() 348 gdrm->fb = fb; in gud_retry_failed_flush() 373 fb = gdrm->fb; in gud_flush_work() 374 gdrm->fb = NULL; in gud_flush_work() 379 if (!fb) in gud_flush_work() 428 if (fb != gdrm->fb) { in gud_fb_queue_damage() 431 gdrm->fb = fb; in gud_fb_queue_damage() 454 struct drm_framebuffer *fb = new_plane_state->fb; in gud_pipe_check() local 566 struct drm_framebuffer *fb = state->fb; in gud_pipe_update() local 574 if (gdrm->fb) { in gud_pipe_update() [all …]
|
/linux/drivers/gpu/drm/imx/ |
A D | ipuv3-plane.c | 126 struct drm_framebuffer *fb = state->fb; in drm_plane_state_to_eba() local 141 struct drm_framebuffer *fb = state->fb; in drm_plane_state_to_ubo() local 160 struct drm_framebuffer *fb = state->fb; in drm_plane_state_to_vbo() local 380 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_check() local 387 if (!fb) in ipu_plane_atomic_check() 444 if (fb->pitches[0] < 1 || fb->pitches[0] > 16384) in ipu_plane_atomic_check() 450 if (ALIGN(fb->width, 8) * fb->format->cpp[0] > in ipu_plane_atomic_check() 451 fb->pitches[0] + fb->offsets[0]) { in ipu_plane_atomic_check() 482 if (fb->pitches[1] != fb->pitches[2]) in ipu_plane_atomic_check() 589 struct drm_framebuffer *fb = new_state->fb; in ipu_plane_atomic_update() local [all …]
|
/linux/drivers/gpu/drm/imx/dcss/ |
A D | dcss-plane.c | 146 struct drm_framebuffer *fb = new_plane_state->fb; in dcss_plane_atomic_check() local 168 fb->format->format)) { in dcss_plane_atomic_check() 187 fb->modifier, in dcss_plane_atomic_check() 203 fb->format->format, in dcss_plane_atomic_check() 204 fb->modifier)) { in dcss_plane_atomic_check() 217 struct drm_framebuffer *fb = state->fb; in dcss_plane_atomic_set_base() local 243 fb->pitches[0]); in dcss_plane_atomic_set_base() 249 struct drm_framebuffer *fb = state->fb; in dcss_plane_needs_setup() local 275 struct drm_framebuffer *fb = new_state->fb; in dcss_plane_atomic_update() local 311 new_state->fb->format, in dcss_plane_atomic_update() [all …]
|