Lines Matching refs:fix
317 struct fb_fix_screeninfo *fix = &info->fix; in atmel_lcdfb_update_dma() local
320 dma_addr = (fix->smem_start + var->yoffset * fix->line_length in atmel_lcdfb_update_dma()
333 dma_free_wc(info->device, info->fix.smem_len, info->screen_base, in atmel_lcdfb_free_video_memory()
334 info->fix.smem_start); in atmel_lcdfb_free_video_memory()
352 info->fix.smem_len = max(smem_len, sinfo->smem_len); in atmel_lcdfb_alloc_video_memory()
354 info->screen_base = dma_alloc_wc(info->device, info->fix.smem_len, in atmel_lcdfb_alloc_video_memory()
355 (dma_addr_t *)&info->fix.smem_start, in atmel_lcdfb_alloc_video_memory()
362 memset(info->screen_base, 0, info->fix.smem_len); in atmel_lcdfb_alloc_video_memory()
450 if (info->fix.smem_len) { in atmel_lcdfb_check_var()
453 if (smem_len > info->fix.smem_len) { in atmel_lcdfb_check_var()
455 info->fix.smem_len, smem_len); in atmel_lcdfb_check_var()
579 info->fix.visual = FB_VISUAL_MONO01; in atmel_lcdfb_set_par()
581 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in atmel_lcdfb_set_par()
583 info->fix.visual = FB_VISUAL_TRUECOLOR; in atmel_lcdfb_set_par()
586 info->fix.line_length = DIV_ROUND_UP(bits_per_line, 8); in atmel_lcdfb_set_par()
737 switch (info->fix.visual) { in atmel_lcdfb_setcolreg()
875 (unsigned long)info->fix.smem_len / 1024, in atmel_lcdfb_init_fbinfo()
876 (unsigned long)info->fix.smem_start, in atmel_lcdfb_init_fbinfo()
1086 info->fix = atmel_lcdfb_fix; in atmel_lcdfb_probe()
1087 strcpy(info->fix.id, sinfo->pdev->name); in atmel_lcdfb_probe()
1125 info->fix.smem_start = map->start; in atmel_lcdfb_probe()
1126 info->fix.smem_len = resource_size(map); in atmel_lcdfb_probe()
1127 if (!request_mem_region(info->fix.smem_start, in atmel_lcdfb_probe()
1128 info->fix.smem_len, pdev->name)) { in atmel_lcdfb_probe()
1133 info->screen_base = ioremap_wc(info->fix.smem_start, in atmel_lcdfb_probe()
1134 info->fix.smem_len); in atmel_lcdfb_probe()
1154 info->fix.mmio_start = regs->start; in atmel_lcdfb_probe()
1155 info->fix.mmio_len = resource_size(regs); in atmel_lcdfb_probe()
1157 if (!request_mem_region(info->fix.mmio_start, in atmel_lcdfb_probe()
1158 info->fix.mmio_len, pdev->name)) { in atmel_lcdfb_probe()
1163 sinfo->mmio = ioremap(info->fix.mmio_start, info->fix.mmio_len); in atmel_lcdfb_probe()
1211 info->node, info->fix.mmio_start, sinfo->mmio, sinfo->irq_base); in atmel_lcdfb_probe()
1225 release_mem_region(info->fix.mmio_start, info->fix.mmio_len); in atmel_lcdfb_probe()
1234 release_mem_region(info->fix.smem_start, info->fix.smem_len); in atmel_lcdfb_probe()
1267 release_mem_region(info->fix.mmio_start, info->fix.mmio_len); in atmel_lcdfb_remove()
1270 release_mem_region(info->fix.smem_start, info->fix.smem_len); in atmel_lcdfb_remove()