Lines Matching refs:ad

336 	struct diu_ad *ad;  member
377 struct diu_ad ad[NUM_AOIS] __aligned(8); member
503 struct diu_ad *ad = mfbi->ad; in fsl_diu_enable_panel() local
509 wr_reg_wa(&hw->desc[0], ad->paddr); in fsl_diu_enable_panel()
513 if (hw->desc[1] != ad->paddr) { /* AOI0 closed */ in fsl_diu_enable_panel()
515 ad->next_ad = in fsl_diu_enable_panel()
516 cpu_to_le32(cmfbi->ad->paddr); in fsl_diu_enable_panel()
518 ad->next_ad = 0; in fsl_diu_enable_panel()
519 wr_reg_wa(&hw->desc[1], ad->paddr); in fsl_diu_enable_panel()
524 if (hw->desc[2] != ad->paddr) { /* AOI0 closed */ in fsl_diu_enable_panel()
526 ad->next_ad = in fsl_diu_enable_panel()
527 cpu_to_le32(cmfbi->ad->paddr); in fsl_diu_enable_panel()
529 ad->next_ad = 0; in fsl_diu_enable_panel()
530 wr_reg_wa(&hw->desc[2], ad->paddr); in fsl_diu_enable_panel()
535 ad->next_ad = 0; in fsl_diu_enable_panel()
537 wr_reg_wa(&hw->desc[1], ad->paddr); in fsl_diu_enable_panel()
539 pmfbi->ad->next_ad = cpu_to_le32(ad->paddr); in fsl_diu_enable_panel()
543 ad->next_ad = 0; in fsl_diu_enable_panel()
545 wr_reg_wa(&hw->desc[2], ad->paddr); in fsl_diu_enable_panel()
547 pmfbi->ad->next_ad = cpu_to_le32(ad->paddr); in fsl_diu_enable_panel()
555 struct diu_ad *ad = mfbi->ad; in fsl_diu_disable_panel() local
566 wr_reg_wa(&hw->desc[1], cmfbi->ad->paddr); in fsl_diu_disable_panel()
575 wr_reg_wa(&hw->desc[2], cmfbi->ad->paddr); in fsl_diu_disable_panel()
583 if (hw->desc[1] != ad->paddr) { in fsl_diu_disable_panel()
587 pmfbi->ad->next_ad = 0; in fsl_diu_disable_panel()
594 if (hw->desc[2] != ad->paddr) { in fsl_diu_disable_panel()
598 pmfbi->ad->next_ad = 0; in fsl_diu_disable_panel()
911 struct diu_ad *ad = mfbi->ad; in fsl_diu_set_aoi() local
914 ad->offset_xyi = cpu_to_le32((var->yoffset << 16) | var->xoffset); in fsl_diu_set_aoi()
915 ad->offset_xyd = cpu_to_le32((mfbi->y_aoi_d << 16) | mfbi->x_aoi_d); in fsl_diu_set_aoi()
1133 struct diu_ad *ad = mfbi->ad; in fsl_diu_set_par() local
1154 ad->pix_fmt = diu_ops.get_pixel_format(data->monitor_port, in fsl_diu_set_par()
1157 ad->pix_fmt = fsl_diu_get_pixel_format(var->bits_per_pixel); in fsl_diu_set_par()
1159 ad->addr = cpu_to_le32(info->fix.smem_start); in fsl_diu_set_par()
1160 ad->src_size_g_alpha = cpu_to_le32((var->yres_virtual << 12) | in fsl_diu_set_par()
1163 ad->aoi_size = cpu_to_le32((var->yres << 16) | var->xres); in fsl_diu_set_par()
1164 ad->offset_xyi = cpu_to_le32((var->yoffset << 16) | var->xoffset); in fsl_diu_set_par()
1165 ad->offset_xyd = cpu_to_le32((mfbi->y_aoi_d << 16) | mfbi->x_aoi_d); in fsl_diu_set_par()
1168 ad->ckmax_r = 0; in fsl_diu_set_par()
1169 ad->ckmax_g = 0; in fsl_diu_set_par()
1170 ad->ckmax_b = 0; in fsl_diu_set_par()
1172 ad->ckmin_r = 255; in fsl_diu_set_par()
1173 ad->ckmin_g = 255; in fsl_diu_set_par()
1174 ad->ckmin_b = 255; in fsl_diu_set_par()
1270 struct diu_ad *ad = mfbi->ad; in fsl_diu_ioctl() local
1294 ad->pix_fmt = pix_fmt; in fsl_diu_ioctl()
1302 pix_fmt = ad->pix_fmt; in fsl_diu_ioctl()
1329 ad->src_size_g_alpha = (ad->src_size_g_alpha & (~0xff)) | in fsl_diu_ioctl()
1345 ad->ckmax_r = 0; in fsl_diu_ioctl()
1346 ad->ckmax_g = 0; in fsl_diu_ioctl()
1347 ad->ckmax_b = 0; in fsl_diu_ioctl()
1348 ad->ckmin_r = 255; in fsl_diu_ioctl()
1349 ad->ckmin_g = 255; in fsl_diu_ioctl()
1350 ad->ckmin_b = 255; in fsl_diu_ioctl()
1352 ad->ckmax_r = ck.red_max; in fsl_diu_ioctl()
1353 ad->ckmax_g = ck.green_max; in fsl_diu_ioctl()
1354 ad->ckmax_b = ck.blue_max; in fsl_diu_ioctl()
1355 ad->ckmin_r = ck.red_min; in fsl_diu_ioctl()
1356 ad->ckmin_g = ck.green_min; in fsl_diu_ioctl()
1357 ad->ckmin_b = ck.blue_min; in fsl_diu_ioctl()
1723 data->ad[i].paddr = DMA_ADDR(data, ad[i]); in fsl_diu_probe()
1731 mfbi->ad = &data->ad[i]; in fsl_diu_probe()