Lines Matching refs:mfbi
501 struct mfb_info *pmfbi, *cmfbi, *mfbi = info->par; in fsl_diu_enable_panel() local
502 struct diu_ad *ad = mfbi->ad; in fsl_diu_enable_panel()
503 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_enable_panel()
506 switch (mfbi->index) { in fsl_diu_enable_panel()
553 struct mfb_info *pmfbi, *cmfbi, *mfbi = info->par; in fsl_diu_disable_panel() local
554 struct diu_ad *ad = mfbi->ad; in fsl_diu_disable_panel()
555 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_disable_panel()
558 switch (mfbi->index) { in fsl_diu_disable_panel()
607 struct mfb_info *mfbi = info->par; in enable_lcdc() local
608 struct fsl_diu_data *data = mfbi->parent; in enable_lcdc()
616 struct mfb_info *mfbi = info->par; in disable_lcdc() local
617 struct fsl_diu_data *data = mfbi->parent; in disable_lcdc()
626 struct mfb_info *lower_aoi_mfbi, *upper_aoi_mfbi, *mfbi = info->par; in adjust_aoi_size_position() local
627 struct fsl_diu_data *data = mfbi->parent; in adjust_aoi_size_position()
629 enum mfb_index index = mfbi->index; in adjust_aoi_size_position()
636 if (mfbi->x_aoi_d < 0) in adjust_aoi_size_position()
637 mfbi->x_aoi_d = 0; in adjust_aoi_size_position()
638 if (mfbi->y_aoi_d < 0) in adjust_aoi_size_position()
639 mfbi->y_aoi_d = 0; in adjust_aoi_size_position()
642 if (mfbi->x_aoi_d != 0) in adjust_aoi_size_position()
643 mfbi->x_aoi_d = 0; in adjust_aoi_size_position()
644 if (mfbi->y_aoi_d != 0) in adjust_aoi_size_position()
645 mfbi->y_aoi_d = 0; in adjust_aoi_size_position()
653 if ((mfbi->x_aoi_d + var->xres) > base_plane_width) in adjust_aoi_size_position()
654 mfbi->x_aoi_d = base_plane_width - var->xres; in adjust_aoi_size_position()
662 if ((mfbi->y_aoi_d + var->yres) > available_height) in adjust_aoi_size_position()
663 mfbi->y_aoi_d = available_height - var->yres; in adjust_aoi_size_position()
673 if ((mfbi->x_aoi_d + var->xres) > base_plane_width) in adjust_aoi_size_position()
674 mfbi->x_aoi_d = base_plane_width - var->xres; in adjust_aoi_size_position()
675 if (mfbi->y_aoi_d < 0) in adjust_aoi_size_position()
676 mfbi->y_aoi_d = 0; in adjust_aoi_size_position()
678 if (mfbi->y_aoi_d < upper_aoi_bottom) in adjust_aoi_size_position()
679 mfbi->y_aoi_d = upper_aoi_bottom; in adjust_aoi_size_position()
686 if ((mfbi->y_aoi_d + var->yres) > base_plane_height) in adjust_aoi_size_position()
687 mfbi->y_aoi_d = base_plane_height - var->yres; in adjust_aoi_size_position()
793 struct mfb_info *mfbi = info->par; in set_fix() local
795 strncpy(fix->id, mfbi->id, sizeof(fix->id)); in set_fix()
807 struct mfb_info *mfbi = info->par; in update_lcdc() local
808 struct fsl_diu_data *data = mfbi->parent; in update_lcdc()
915 struct mfb_info *mfbi = info->par; in fsl_diu_set_aoi() local
916 struct diu_ad *ad = mfbi->ad; in fsl_diu_set_aoi()
920 ad->offset_xyd = cpu_to_le32((mfbi->y_aoi_d << 16) | mfbi->x_aoi_d); in fsl_diu_set_aoi()
1003 struct mfb_info *mfbi = info->par; in fsl_diu_load_cursor_image() local
1004 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_load_cursor_image()
1030 struct mfb_info *mfbi = info->par; in fsl_diu_cursor() local
1031 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_cursor()
1139 struct mfb_info *mfbi = info->par; in fsl_diu_set_par() local
1140 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_set_par()
1141 struct diu_ad *ad = mfbi->ad; in fsl_diu_set_par()
1169 var->xres_virtual) | mfbi->g_alpha; in fsl_diu_set_par()
1173 ad->offset_xyd = cpu_to_le32((mfbi->y_aoi_d << 16) | mfbi->x_aoi_d); in fsl_diu_set_par()
1184 if (mfbi->index == PLANE0) in fsl_diu_set_par()
1278 struct mfb_info *mfbi = info->par; in fsl_diu_ioctl() local
1279 struct diu_ad *ad = mfbi->ad; in fsl_diu_ioctl()
1316 mfbi->x_aoi_d = aoi_d.x_aoi_d; in fsl_diu_ioctl()
1317 mfbi->y_aoi_d = aoi_d.y_aoi_d; in fsl_diu_ioctl()
1322 aoi_d.x_aoi_d = mfbi->x_aoi_d; in fsl_diu_ioctl()
1323 aoi_d.y_aoi_d = mfbi->y_aoi_d; in fsl_diu_ioctl()
1328 global_alpha = mfbi->g_alpha; in fsl_diu_ioctl()
1338 mfbi->g_alpha = global_alpha; in fsl_diu_ioctl()
1369 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_ioctl()
1377 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_ioctl()
1406 struct mfb_info *mfbi = info->par; in fsl_diu_open() local
1410 if ((mfbi->index == PLANE0) && diu_ops.release_bootmem) in fsl_diu_open()
1414 mfbi->count++; in fsl_diu_open()
1415 if (mfbi->count == 1) { in fsl_diu_open()
1419 mfbi->count--; in fsl_diu_open()
1421 fsl_diu_enable_interrupts(mfbi->parent); in fsl_diu_open()
1434 struct mfb_info *mfbi = info->par; in fsl_diu_release() local
1438 mfbi->count--; in fsl_diu_release()
1439 if (mfbi->count == 0) { in fsl_diu_release()
1440 struct fsl_diu_data *data = mfbi->parent; in fsl_diu_release()
1478 struct mfb_info *mfbi = info->par; in install_fb() local
1479 struct fsl_diu_data *data = mfbi->parent; in install_fb()
1489 info->pseudo_palette = mfbi->pseudo_palette; in install_fb()
1495 if (mfbi->index == PLANE0) { in install_fb()
1516 if ((mfbi->index == PLANE0) && data->has_edid) in install_fb()
1567 mfbi->registered = 1; in install_fb()
1568 dev_info(info->dev, "%s registered successfully\n", mfbi->id); in install_fb()
1575 struct mfb_info *mfbi = info->par; in uninstall_fb() local
1577 if (!mfbi->registered) in uninstall_fb()
1585 mfbi->registered = 0; in uninstall_fb()
1696 struct mfb_info *mfbi; in fsl_diu_probe() local
1739 mfbi = info->par; in fsl_diu_probe()
1740 memcpy(mfbi, &mfb_template[i], sizeof(struct mfb_info)); in fsl_diu_probe()
1741 mfbi->parent = data; in fsl_diu_probe()
1742 mfbi->ad = &data->ad[i]; in fsl_diu_probe()