Home
last modified time | relevance | path

Searched refs:smem_len (Results 1 - 25 of 297) sorted by relevance

12345678910>>...12

/kernel/linux/linux-5.10/drivers/video/fbdev/
H A Datmel_lcdfb.c46 unsigned int smem_len; member
333 dma_free_wc(info->device, info->fix.smem_len, info->screen_base, in atmel_lcdfb_free_video_memory()
342 * so no locking by fb_info->mm_lock around smem_len setting is needed.
348 unsigned int smem_len; in atmel_lcdfb_alloc_video_memory() local
350 smem_len = (var->xres_virtual * var->yres_virtual in atmel_lcdfb_alloc_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()
362 memset(info->screen_base, 0, info->fix.smem_len); in atmel_lcdfb_alloc_video_memory()
451 unsigned int smem_len = (var->xres_virtual * var->yres_virtual atmel_lcdfb_check_var() local
[all...]
H A Dp9100.c225 info->fix.smem_start, info->fix.smem_len, in p9100_mmap()
234 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in p9100_ioctl()
279 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in p9100_probe()
289 info->fix.smem_len, "p9100 ram"); in p9100_probe()
318 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len); in p9100_probe()
339 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len); in p9100_remove()
H A Dtcx.c137 for (pend = p + info->fix.smem_len; p < pend; p++) { in __tcx_set_control_plane()
306 info->fix.smem_start, info->fix.smem_len, in tcx_mmap()
318 info->fix.smem_len); in tcx_ioctl()
360 par->cplane, info->fix.smem_len * sizeof(u32)); in tcx_unmap_regs()
363 info->screen_base, info->fix.smem_len); in tcx_unmap_regs()
392 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in tcx_probe()
401 info->fix.smem_len, "tcx ram"); in tcx_probe()
409 info->fix.smem_len * sizeof(u32), in tcx_probe()
H A Defifb.c428 efifb_fix.smem_len = size_remap; in efifb_probe()
458 if ((efifb_fix.smem_start + efifb_fix.smem_len) > in efifb_probe()
478 efifb_fix.smem_len); in efifb_probe()
481 efifb_fix.smem_len); in efifb_probe()
484 efifb_fix.smem_len, MEMREMAP_WT); in efifb_probe()
487 efifb_fix.smem_len, MEMREMAP_WB); in efifb_probe()
490 efifb_fix.smem_len, efifb_fix.smem_start); in efifb_probe()
505 efifb_defined.yres_virtual = efifb_fix.smem_len / in efifb_probe()
H A Ds3c2410fb.c639 unsigned map_size = PAGE_ALIGN(info->fix.smem_len); in s3c2410fb_map_video_memory()
665 dma_free_wc(fbi->dev, PAGE_ALIGN(info->fix.smem_len), in s3c2410fb_unmap_video_memory()
942 unsigned long smem_len = mach_info->displays[i].xres; in s3c24xxfb_probe() local
944 smem_len *= mach_info->displays[i].yres; in s3c24xxfb_probe()
945 smem_len *= mach_info->displays[i].bpp; in s3c24xxfb_probe()
946 smem_len >>= 3; in s3c24xxfb_probe()
947 if (fbinfo->fix.smem_len < smem_len) in s3c24xxfb_probe()
948 fbinfo->fix.smem_len = smem_len; in s3c24xxfb_probe()
[all...]
H A Dbw2.c168 info->fix.smem_start, info->fix.smem_len, in bw2_mmap()
176 FBTYPE_SUN2BW, 1, info->fix.smem_len); in bw2_ioctl()
315 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in bw2_probe()
321 info->fix.smem_len, "bw2 ram"); in bw2_probe()
343 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in bw2_probe()
363 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in bw2_remove()
H A Dcg3.c232 info->fix.smem_start, info->fix.smem_len, in cg3_mmap()
240 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in cg3_ioctl()
380 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in cg3_probe()
390 info->fix.smem_len, "cg3 ram"); in cg3_probe()
425 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in cg3_probe()
446 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in cg3_remove()
H A Dpvr2fb.c528 if (line_length * var->yres_virtual > info->fix.smem_len) in pvr2fb_check_var()
686 if ((*ppos + len) > fb_info->fix.smem_len) { in pvr2fb_write()
700 if ((*ppos + (i << PAGE_SHIFT)) > fb_info->fix.smem_len) { in pvr2fb_write()
786 pvr2_fix.smem_len); in pvr2fb_common_init()
800 fb_memset(fb_info->screen_base, 0, pvr2_fix.smem_len); in pvr2fb_common_init()
837 (unsigned long)(fb_info->fix.smem_len >> 10)); in pvr2fb_common_init()
848 pvr2fb_map = sq_remap(fb_info->fix.smem_start, fb_info->fix.smem_len, in pvr2fb_common_init()
901 pvr2_fix.smem_len = 8 << 20; in pvr2fb_dc_init()
961 pvr2_fix.smem_len = pci_resource_len(pdev, 0); in pvr2fb_pci_probe()
H A Dcarminefb.c645 carminefb_fix.smem_len = pci_resource_len(dev, CARMINE_MEMORY_BAR); in carminefb_probe()
651 if (carminefb_fix.smem_len > CARMINE_TOTAL_DIPLAY_MEM) in carminefb_probe()
652 carminefb_fix.smem_len = CARMINE_TOTAL_DIPLAY_MEM; in carminefb_probe()
654 else if (carminefb_fix.smem_len < CARMINE_TOTAL_DIPLAY_MEM) { in carminefb_probe()
656 "are required.", carminefb_fix.smem_len, in carminefb_probe()
662 carminefb_fix.smem_len, "carminefb smem")) { in carminefb_probe()
668 carminefb_fix.smem_len); in carminefb_probe()
712 release_mem_region(carminefb_fix.smem_start, carminefb_fix.smem_len); in carminefb_probe()
745 release_mem_region(fix.smem_start, fix.smem_len); in carminefb_remove()
H A Dpmag-ba-fb.c72 .smem_len = (1024 * 1024),
194 info->fix.smem_len); in pmagbafb_probe()
200 info->screen_size = info->fix.smem_len; in pmagbafb_probe()
/kernel/linux/linux-6.6/drivers/video/fbdev/
H A Datmel_lcdfb.c46 unsigned int smem_len; member
313 dma_free_wc(info->device, info->fix.smem_len, info->screen_base, in atmel_lcdfb_free_video_memory()
322 * so no locking by fb_info->mm_lock around smem_len setting is needed.
328 unsigned int smem_len; in atmel_lcdfb_alloc_video_memory() local
330 smem_len = (var->xres_virtual * var->yres_virtual in atmel_lcdfb_alloc_video_memory()
332 info->fix.smem_len = max(smem_len, sinfo->smem_len); in atmel_lcdfb_alloc_video_memory()
334 info->screen_base = dma_alloc_wc(info->device, info->fix.smem_len, in atmel_lcdfb_alloc_video_memory()
342 memset(info->screen_base, 0, info->fix.smem_len); in atmel_lcdfb_alloc_video_memory()
431 unsigned int smem_len = (var->xres_virtual * var->yres_virtual atmel_lcdfb_check_var() local
[all...]
H A Dp9100.c226 info->fix.smem_start, info->fix.smem_len, in p9100_mmap()
235 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in p9100_ioctl()
280 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in p9100_probe()
289 info->fix.smem_len, "p9100 ram"); in p9100_probe()
318 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len); in p9100_probe()
339 of_iounmap(&op->resource[2], info->screen_base, info->fix.smem_len); in p9100_remove()
H A Dtcx.c138 for (pend = p + info->fix.smem_len; p < pend; p++) { in __tcx_set_control_plane()
307 info->fix.smem_start, info->fix.smem_len, in tcx_mmap()
319 info->fix.smem_len); in tcx_ioctl()
361 par->cplane, info->fix.smem_len * sizeof(u32)); in tcx_unmap_regs()
364 info->screen_base, info->fix.smem_len); in tcx_unmap_regs()
392 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in tcx_probe()
401 info->fix.smem_len, "tcx ram"); in tcx_probe()
409 info->fix.smem_len * sizeof(u32), in tcx_probe()
H A Defifb.c446 efifb_fix.smem_len = size_remap; in efifb_probe()
471 if ((efifb_fix.smem_start + efifb_fix.smem_len) > in efifb_probe()
491 efifb_fix.smem_len); in efifb_probe()
494 efifb_fix.smem_len); in efifb_probe()
497 efifb_fix.smem_len, MEMREMAP_WT); in efifb_probe()
500 efifb_fix.smem_len, MEMREMAP_WB); in efifb_probe()
503 efifb_fix.smem_len, efifb_fix.smem_start); in efifb_probe()
518 efifb_defined.yres_virtual = efifb_fix.smem_len / in efifb_probe()
H A Dbw2.c169 info->fix.smem_start, info->fix.smem_len, in bw2_mmap()
177 FBTYPE_SUN2BW, 1, info->fix.smem_len); in bw2_ioctl()
316 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in bw2_probe()
321 info->fix.smem_len, "bw2 ram"); in bw2_probe()
343 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in bw2_probe()
363 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in bw2_remove()
H A Dcg3.c233 info->fix.smem_start, info->fix.smem_len, in cg3_mmap()
241 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in cg3_ioctl()
381 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in cg3_probe()
390 info->fix.smem_len, "cg3 ram"); in cg3_probe()
425 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in cg3_probe()
446 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len); in cg3_remove()
H A Dcarminefb.c646 carminefb_fix.smem_len = pci_resource_len(dev, CARMINE_MEMORY_BAR); in carminefb_probe()
652 if (carminefb_fix.smem_len > CARMINE_TOTAL_DIPLAY_MEM) in carminefb_probe()
653 carminefb_fix.smem_len = CARMINE_TOTAL_DIPLAY_MEM; in carminefb_probe()
655 else if (carminefb_fix.smem_len < CARMINE_TOTAL_DIPLAY_MEM) { in carminefb_probe()
657 "are required.", carminefb_fix.smem_len, in carminefb_probe()
663 carminefb_fix.smem_len, "carminefb smem")) { in carminefb_probe()
669 carminefb_fix.smem_len); in carminefb_probe()
713 release_mem_region(carminefb_fix.smem_start, carminefb_fix.smem_len); in carminefb_probe()
746 release_mem_region(fix.smem_start, fix.smem_len); in carminefb_remove()
H A Dpvr2fb.c529 if (line_length * var->yres_virtual > info->fix.smem_len) in pvr2fb_check_var()
690 if ((*ppos + len) > fb_info->fix.smem_len) { in pvr2fb_write()
704 if ((*ppos + (i << PAGE_SHIFT)) > fb_info->fix.smem_len) { in pvr2fb_write()
790 pvr2_fix.smem_len); in pvr2fb_common_init()
804 fb_memset_io(fb_info->screen_base, 0, pvr2_fix.smem_len); in pvr2fb_common_init()
841 (unsigned long)(fb_info->fix.smem_len >> 10)); in pvr2fb_common_init()
852 pvr2fb_map = sq_remap(fb_info->fix.smem_start, fb_info->fix.smem_len, in pvr2fb_common_init()
905 pvr2_fix.smem_len = 8 << 20; in pvr2fb_dc_init()
969 pvr2_fix.smem_len = pci_resource_len(pdev, 0); in pvr2fb_pci_probe()
/kernel/linux/linux-5.10/drivers/video/fbdev/aty/
H A Dmach64_cursor.c118 aty_st_le32(CUR_OFFSET, (info->fix.smem_len >> 3) + (yoff << 1), par); in atyfb_cursor()
201 info->fix.smem_len -= PAGE_SIZE; in aty_init_cursor()
204 addr = (unsigned long) info->screen_base - 0x800000 + info->fix.smem_len; in aty_init_cursor()
208 addr = info->fix.smem_start - 0x800000 + info->fix.smem_len; in aty_init_cursor()
211 addr = (unsigned long) info->screen_base + info->fix.smem_len; in aty_init_cursor()
H A Datyfb_base.c439 (info->fix.smem_len == 0x800000 || in aty_fudge_framebuffer_len()
440 (par->bus_type == ISA && info->fix.smem_len == 0x400000))) in aty_fudge_framebuffer_len()
441 info->fix.smem_len -= GUI_RESERVE; in aty_fudge_framebuffer_len()
873 if (vyres * line_length > info->fix.smem_len) in aty_var_to_crtc()
1707 u32 videoram = (info->fix.smem_len - (PAGE_SIZE << 2)); in atyfb_release()
1829 fbtyp.fb_size = info->fix.smem_len; in atyfb_ioctl()
1941 if (((vma->vm_pgoff == 0) && (size == info->fix.smem_len)) || in atyfb_mmap()
1942 ((off == info->fix.smem_len) && (size == PAGE_SIZE))) in atyfb_mmap()
2494 info->fix.smem_len = 0x80000; in aty_init()
2497 info->fix.smem_len in aty_init()
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/aty/
H A Dmach64_cursor.c118 aty_st_le32(CUR_OFFSET, (info->fix.smem_len >> 3) + (yoff << 1), par); in atyfb_cursor()
201 info->fix.smem_len -= PAGE_SIZE; in aty_init_cursor()
204 addr = (unsigned long) info->screen_base - 0x800000 + info->fix.smem_len; in aty_init_cursor()
208 addr = info->fix.smem_start - 0x800000 + info->fix.smem_len; in aty_init_cursor()
211 addr = (unsigned long) info->screen_base + info->fix.smem_len; in aty_init_cursor()
H A Datyfb_base.c449 (info->fix.smem_len == 0x800000 || in aty_fudge_framebuffer_len()
450 (par->bus_type == ISA && info->fix.smem_len == 0x400000))) in aty_fudge_framebuffer_len()
451 info->fix.smem_len -= GUI_RESERVE; in aty_fudge_framebuffer_len()
883 if (vyres * line_length > info->fix.smem_len) in aty_var_to_crtc()
1717 u32 videoram = (info->fix.smem_len - (PAGE_SIZE << 2)); in atyfb_release()
1839 fbtyp.fb_size = info->fix.smem_len; in atyfb_ioctl()
1951 if (((vma->vm_pgoff == 0) && (size == info->fix.smem_len)) || in atyfb_mmap()
1952 ((off == info->fix.smem_len) && (size == PAGE_SIZE))) in atyfb_mmap()
2499 info->fix.smem_len = 0x80000; in aty_init()
2502 info->fix.smem_len in aty_init()
[all...]
/kernel/linux/linux-5.10/drivers/video/fbdev/core/
H A Dfb_sys_fops.c30 total_size = info->fix.smem_len; in fb_sys_read()
70 total_size = info->fix.smem_len; in fb_sys_write()
/kernel/linux/linux-6.6/drivers/video/fbdev/core/
H A Dfb_sys_fops.c31 total_size = info->fix.smem_len; in fb_sys_read()
73 total_size = info->fix.smem_len; in fb_sys_write()
H A Dfb_defio.c101 if (offset >= info->fix.smem_len) in fb_deferred_io_fault()
270 if (WARN_ON(!info->fix.smem_len)) in fb_deferred_io_init()
279 npagerefs = DIV_ROUND_UP(info->fix.smem_len, PAGE_SIZE); in fb_deferred_io_init()
319 for (i = 0 ; i < info->fix.smem_len; i += PAGE_SIZE) { in fb_deferred_io_lastclose()

Completed in 24 milliseconds

12345678910>>...12