Home
last modified time | relevance | path

Searched refs:fix (Results 1 – 25 of 195) sorted by relevance

12345678

/drivers/clk/
Dclk-fixed-factor.c25 struct clk_fixed_factor *fix = to_clk_fixed_factor(hw); in clk_factor_recalc_rate() local
28 rate = (unsigned long long int)parent_rate * fix->mult; in clk_factor_recalc_rate()
29 do_div(rate, fix->div); in clk_factor_recalc_rate()
36 struct clk_fixed_factor *fix = to_clk_fixed_factor(hw); in clk_factor_round_rate() local
41 best_parent = (rate / fix->mult) * fix->div; in clk_factor_round_rate()
45 return (*prate / fix->div) * fix->mult; in clk_factor_round_rate()
69 struct clk_fixed_factor *fix = res; in devm_clk_hw_register_fixed_factor_release() local
76 clk_hw_unregister(&fix->hw); in devm_clk_hw_register_fixed_factor_release()
85 struct clk_fixed_factor *fix; in __clk_hw_register_fixed_factor() local
96 fix = devres_alloc(devm_clk_hw_register_fixed_factor_release, in __clk_hw_register_fixed_factor()
[all …]
/drivers/video/fbdev/
Dneofb.c226 if (info->fix.accel == FB_ACCEL_NEOMAGIC_NM2200 || in neoCalcVCLK()
227 info->fix.accel == FB_ACCEL_NEOMAGIC_NM2230 || in neoCalcVCLK()
228 info->fix.accel == FB_ACCEL_NEOMAGIC_NM2360 || in neoCalcVCLK()
229 info->fix.accel == FB_ACCEL_NEOMAGIC_NM2380) { in neoCalcVCLK()
686 vramlen = info->fix.smem_len; in neofb_check_var()
968 switch (info->fix.accel) { in neofb_set_par()
1016 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in neofb_set_par()
1020 info->fix.visual = FB_VISUAL_TRUECOLOR; in neofb_set_par()
1035 info->fix.visual = FB_VISUAL_TRUECOLOR; in neofb_set_par()
1059 switch (info->fix.accel) { in neofb_set_par()
[all …]
Dstifb.c156 #define READ_BYTE(fb,reg) gsc_readb((fb)->info.fix.mmio_start + (reg))
157 #define READ_WORD(fb,reg) gsc_readl((fb)->info.fix.mmio_start + (reg))
163 # define WRITE_BYTE(value,fb,reg) gsc_writeb((value),(fb)->info.fix.mmio_start + (reg))
164 # define WRITE_WORD(value,fb,reg) gsc_writel((value),(fb)->info.fix.mmio_start + (reg))
172 gsc_writeb((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
176 gsc_writel((value),(fb)->info.fix.mmio_start + (reg)); } while (0)
530 fb_memset(fb->info.screen_base + y * fb->info.fix.line_length, in rattlerSetupPlanes()
975 if (fb->info.fix.visual == FB_VISUAL_DIRECTCOLOR) { in stifb_setcolreg()
1185 struct fb_fix_screeninfo *fix; in stifb_init_fb() local
1201 fix = &info->fix; in stifb_init_fb()
[all …]
Dsunxvr2500.c87 strlcpy(info->fix.id, "s3d", sizeof(info->fix.id)); in s3d_set_fbinfo()
88 info->fix.smem_start = sp->fb_base_phys; in s3d_set_fbinfo()
89 info->fix.smem_len = sp->fb_size; in s3d_set_fbinfo()
90 info->fix.type = FB_TYPE_PACKED_PIXELS; in s3d_set_fbinfo()
92 info->fix.visual = FB_VISUAL_TRUECOLOR; in s3d_set_fbinfo()
94 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in s3d_set_fbinfo()
169 info->fix.line_length = sp->width; in s3d_pci_register()
172 info->fix.line_length = sp->width * 2; in s3d_pci_register()
175 info->fix.line_length = sp->width * 3; in s3d_pci_register()
178 info->fix.line_length = sp->width * 4; in s3d_pci_register()
[all …]
Dp9100.c225 info->fix.smem_start, info->fix.smem_len, in p9100_mmap()
234 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in p9100_ioctl()
243 snprintf(info->fix.id, sizeof(info->fix.id), "%pOFn", dp); in p9100_init_fix()
245 info->fix.type = FB_TYPE_PACKED_PIXELS; in p9100_init_fix()
246 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in p9100_init_fix()
248 info->fix.line_length = linebytes; in p9100_init_fix()
250 info->fix.accel = FB_ACCEL_SUN_CGTHREE; in p9100_init_fix()
270 info->fix.smem_start = op->resource[2].start; in p9100_probe()
279 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in p9100_probe()
289 info->fix.smem_len, "p9100 ram"); in p9100_probe()
[all …]
Dwm8505fb.c54 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR); in wm8505fb_init_hw()
55 writel(fbi->fb.fix.smem_start, fbi->regbase + WMT_GOVR_FBADDR1); in wm8505fb_init_hw()
127 info->fix.visual = FB_VISUAL_TRUECOLOR; in wm8505fb_set_par()
128 info->fix.line_length = info->var.xres_virtual << 2; in wm8505fb_set_par()
139 info->fix.visual = FB_VISUAL_TRUECOLOR; in wm8505fb_set_par()
140 info->fix.line_length = info->var.xres_virtual << 1; in wm8505fb_set_par()
205 switch (fbi->fb.fix.visual) { in wm8505fb_setcolreg()
280 strcpy(fbi->fb.fix.id, DRIVER_NAME); in wm8505fb_probe()
282 fbi->fb.fix.type = FB_TYPE_PACKED_PIXELS; in wm8505fb_probe()
283 fbi->fb.fix.xpanstep = 1; in wm8505fb_probe()
[all …]
Dvalkyriefb.c113 static void valkyrie_par_to_fix(struct fb_par_valkyrie *par, struct fb_fix_screeninfo *fix);
114 static void valkyrie_init_fix(struct fb_fix_screeninfo *fix, struct fb_info_valkyrie *p);
140 valkyrie_par_to_fix(par, &info->fix); in valkyriefb_set_par()
379 valkyrie_init_fix(&p->info.fix, p); in valkyriefb_init()
510 static void valkyrie_init_fix(struct fb_fix_screeninfo *fix, struct fb_info_valkyrie *p) in valkyrie_init_fix() argument
512 memset(fix, 0, sizeof(*fix)); in valkyrie_init_fix()
513 strcpy(fix->id, "valkyrie"); in valkyrie_init_fix()
514 fix->mmio_start = p->valkyrie_regs_phys; in valkyrie_init_fix()
515 fix->mmio_len = sizeof(struct valkyrie_regs); in valkyrie_init_fix()
516 fix->type = FB_TYPE_PACKED_PIXELS; in valkyrie_init_fix()
[all …]
Datmel_lcdfb.c317 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()
[all …]
Dbw2.c168 info->fix.smem_start, info->fix.smem_len, in bw2_mmap()
176 FBTYPE_SUN2BW, 1, info->fix.smem_len); in bw2_ioctl()
185 strlcpy(info->fix.id, "bwtwo", sizeof(info->fix.id)); in bw2_init_fix()
187 info->fix.type = FB_TYPE_PACKED_PIXELS; in bw2_init_fix()
188 info->fix.visual = FB_VISUAL_MONO01; in bw2_init_fix()
190 info->fix.line_length = linebytes; in bw2_init_fix()
192 info->fix.accel = FB_ACCEL_SUN_BWTWO; in bw2_init_fix()
292 info->fix.smem_start = op->resource[0].start; in bw2_probe()
315 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in bw2_probe()
321 info->fix.smem_len, "bw2 ram"); in bw2_probe()
[all …]
Dvga16fb.c241 info->fix.type = FB_TYPE_PACKED_PIXELS; in vga16fb_update_fix()
242 info->fix.line_length = info->var.xres_virtual / 2; in vga16fb_update_fix()
244 info->fix.type = FB_TYPE_VGA_PLANES; in vga16fb_update_fix()
245 info->fix.type_aux = FB_AUX_VGA_PLANES_VGA4; in vga16fb_update_fix()
246 info->fix.line_length = info->var.xres_virtual / 8; in vga16fb_update_fix()
249 info->fix.type = FB_TYPE_TEXT; in vga16fb_update_fix()
250 info->fix.type_aux = FB_AUX_TEXT_CGA; in vga16fb_update_fix()
251 info->fix.line_length = info->var.xres_virtual / 4; in vga16fb_update_fix()
254 info->fix.type = FB_TYPE_VGA_PLANES; in vga16fb_update_fix()
255 info->fix.type_aux = FB_AUX_VGA_PLANES_CFB8; in vga16fb_update_fix()
[all …]
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()
336 strlcpy(info->fix.id, tcx_name, sizeof(info->fix.id)); in tcx_init_fix()
338 info->fix.type = FB_TYPE_PACKED_PIXELS; in tcx_init_fix()
339 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in tcx_init_fix()
341 info->fix.line_length = linebytes; in tcx_init_fix()
343 info->fix.accel = FB_ACCEL_SUN_TCX; in tcx_init_fix()
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()
[all …]
Dvt8500lcdfb.c67 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in vt8500lcd_set_par()
68 info->fix.line_length = info->var.xres_virtual / in vt8500lcd_set_par()
101 info->fix.visual = FB_VISUAL_TRUECOLOR; in vt8500lcd_set_par()
102 info->fix.line_length = info->var.bits_per_pixel > 16 ? in vt8500lcd_set_par()
152 switch (fbi->fb.fix.visual) { in vt8500lcd_setcolreg()
203 unsigned pixlen = info->fix.line_length / info->var.xres_virtual; in vt8500lcd_pan_display()
205 + info->fix.line_length * var->yoffset; in vt8500lcd_pan_display()
229 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR || in vt8500lcd_blank()
230 info->fix.visual == FB_VISUAL_STATIC_PSEUDOCOLOR) in vt8500lcd_blank()
235 if (info->fix.visual == FB_VISUAL_PSEUDOCOLOR || in vt8500lcd_blank()
[all …]
Datafb.c164 .fix = {
353 int (*encode_fix)(struct fb_fix_screeninfo *fix,
558 static int tt_encode_fix(struct fb_fix_screeninfo *fix, struct atafb_par *par) in tt_encode_fix() argument
562 strcpy(fix->id, "Atari Builtin"); in tt_encode_fix()
563 fix->smem_start = phys_screen_base; in tt_encode_fix()
564 fix->smem_len = screen_len; in tt_encode_fix()
565 fix->type = FB_TYPE_INTERLEAVED_PLANES; in tt_encode_fix()
566 fix->type_aux = 2; in tt_encode_fix()
567 fix->visual = FB_VISUAL_PSEUDOCOLOR; in tt_encode_fix()
570 fix->type = FB_TYPE_PACKED_PIXELS; in tt_encode_fix()
[all …]
Dsunxvr1000.c83 strlcpy(info->fix.id, "gfb", sizeof(info->fix.id)); in gfb_set_fbinfo()
84 info->fix.smem_start = gp->fb_base_phys; in gfb_set_fbinfo()
85 info->fix.smem_len = gp->fb_size; in gfb_set_fbinfo()
86 info->fix.type = FB_TYPE_PACKED_PIXELS; in gfb_set_fbinfo()
88 info->fix.visual = FB_VISUAL_TRUECOLOR; in gfb_set_fbinfo()
90 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in gfb_set_fbinfo()
139 info->fix.line_length = 16384; in gfb_probe()
140 gp->fb_size = info->fix.line_length * gp->height; in gfb_probe()
Dcg3.c232 info->fix.smem_start, info->fix.smem_len, in cg3_mmap()
240 FBTYPE_SUN3COLOR, 8, info->fix.smem_len); in cg3_ioctl()
250 snprintf(info->fix.id, sizeof(info->fix.id), "%pOFn", dp); in cg3_init_fix()
252 info->fix.type = FB_TYPE_PACKED_PIXELS; in cg3_init_fix()
253 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in cg3_init_fix()
255 info->fix.line_length = linebytes; in cg3_init_fix()
257 info->fix.accel = FB_ACCEL_SUN_CGTHREE; in cg3_init_fix()
366 info->fix.smem_start = op->resource[0].start; in cg3_probe()
380 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres); in cg3_probe()
390 info->fix.smem_len, "cg3 ram"); in cg3_probe()
[all …]
Ds1d13xxxfb.c161 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in s1d13xxxfb_setup_pseudocolour()
171 info->fix.visual = FB_VISUAL_TRUECOLOR; in s1d13xxxfb_setup_truecolour()
242 info->fix.line_length = info->var.xres * info->var.bits_per_pixel; in s1d13xxxfb_set_par()
243 info->fix.line_length /= 8; in s1d13xxxfb_set_par()
245 dbg("setting line_length to %d\n", info->fix.line_length); in s1d13xxxfb_set_par()
279 switch (info->fix.visual) { in s1d13xxxfb_setcolreg()
380 start = (info->fix.line_length >> 1) * var->yoffset; in s1d13xxxfb_pan_display()
561 if (info->fix.visual == FB_VISUAL_TRUECOLOR || in s1d13xxxfb_bitblt_solidfill()
562 info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in s1d13xxxfb_bitblt_solidfill()
636 struct fb_fix_screeninfo *fix = &info->fix; in s1d13xxxfb_fetch_hw_state() local
[all …]
Dvt8623fb.c152 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_iplan_imageblit()
164 dst1 += info->fix.line_length; in vt8623fb_iplan_imageblit()
176 dst1 = info->screen_base + (rect->dy * info->fix.line_length) in vt8623fb_iplan_fillrect()
184 dst1 += info->fix.line_length; in vt8623fb_iplan_fillrect()
208 dst1 = info->screen_base + (image->dy * info->fix.line_length) in vt8623fb_cfb4_imageblit()
220 dst1 += info->fix.line_length; in vt8623fb_cfb4_imageblit()
228 if (info->fix.type == FB_TYPE_INTERLEAVED_PLANES) in vt8623fb_imageblit()
240 && (info->fix.type == FB_TYPE_INTERLEAVED_PLANES)) in vt8623fb_fillrect()
382 info->fix.ypanstep = 1; in vt8623fb_set_par()
383 info->fix.line_length = (info->var.xres_virtual * bpp) / 8; in vt8623fb_set_par()
[all …]
Dacornfb.c203 if (current_par.using_vram && info->fix.smem_len == 2048*1024) in acornfb_set_timing()
273 if (regno < 16 && info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in acornfb_setcolreg()
348 if (min_size > info->fix.smem_len) in acornfb_adjust_timing()
354 for (size = info->fix.smem_len; in acornfb_adjust_timing()
367 size = info->fix.smem_len; in acornfb_adjust_timing()
374 current_par.screen_end = info->fix.smem_start + size; in acornfb_adjust_timing()
437 u_int off = var->yoffset * info->fix.line_length; in acornfb_update_dma()
442 iomd_writel(info->fix.smem_start + off, IOMD_VIDINIT); in acornfb_update_dma()
525 info->fix.visual = FB_VISUAL_MONO10; in acornfb_set_par()
529 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in acornfb_set_par()
[all …]
/drivers/clk/uniphier/
Dclk-uniphier-fixed-factor.c16 struct clk_fixed_factor *fix; in uniphier_clk_register_fixed_factor() local
20 fix = devm_kzalloc(dev, sizeof(*fix), GFP_KERNEL); in uniphier_clk_register_fixed_factor()
21 if (!fix) in uniphier_clk_register_fixed_factor()
30 fix->mult = data->mult; in uniphier_clk_register_fixed_factor()
31 fix->div = data->div; in uniphier_clk_register_fixed_factor()
32 fix->hw.init = &init; in uniphier_clk_register_fixed_factor()
34 ret = devm_clk_hw_register(dev, &fix->hw); in uniphier_clk_register_fixed_factor()
38 return &fix->hw; in uniphier_clk_register_fixed_factor()
/drivers/video/fbdev/geode/
Dgxfb_core.c149 if (gx_line_delta(var->xres, var->bits_per_pixel) * var->yres > info->fix.smem_len) in gxfb_check_var()
160 info->fix.visual = FB_VISUAL_TRUECOLOR; in gxfb_set_par()
162 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in gxfb_set_par()
164 info->fix.line_length = gx_line_delta(info->var.xres, info->var.bits_per_pixel); in gxfb_set_par()
188 if (info->fix.visual == FB_VISUAL_TRUECOLOR) { in gxfb_setcolreg()
250 info->fix.smem_start = pci_resource_start(dev, 0); in gxfb_map_video_memory()
251 info->fix.smem_len = vram ? vram : gx_frame_buffer_size(); in gxfb_map_video_memory()
252 info->screen_base = ioremap_wc(info->fix.smem_start, in gxfb_map_video_memory()
253 info->fix.smem_len); in gxfb_map_video_memory()
260 write_dc(par, DC_GLIU0_MEM_OFFSET, info->fix.smem_start & 0xFF000000); in gxfb_map_video_memory()
[all …]
Dgx1fb_core.c122 if (gx1_line_delta(var->xres, var->bits_per_pixel) * var->yres > info->fix.smem_len) in gx1fb_check_var()
135 info->fix.visual = FB_VISUAL_TRUECOLOR; in gx1fb_set_par()
137 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in gx1fb_set_par()
139 info->fix.line_length = gx1_line_delta(info->var.xres, info->var.bits_per_pixel); in gx1fb_set_par()
165 if (info->fix.visual == FB_VISUAL_TRUECOLOR) { in gx1fb_setcolreg()
224 info->fix.smem_start = gx_base + 0x800000; in gx1fb_map_video_memory()
225 info->fix.smem_len = fb_len; in gx1fb_map_video_memory()
226 info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); in gx1fb_map_video_memory()
231 info->fix.smem_len / 1024, info->fix.smem_start); in gx1fb_map_video_memory()
279 strcpy(info->fix.id, "GX1"); in gx1fb_init_fbinfo()
[all …]
Dlxfb_core.c262 > info->fix.smem_len) in lxfb_check_var()
271 info->fix.visual = FB_VISUAL_TRUECOLOR; in lxfb_set_par()
273 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in lxfb_set_par()
275 info->fix.line_length = lx_get_pitch(info->var.xres, in lxfb_set_par()
299 if (info->fix.visual == FB_VISUAL_TRUECOLOR) { in lxfb_setcolreg()
357 info->fix.smem_start = pci_resource_start(dev, 0); in lxfb_map_video_memory()
358 info->fix.smem_len = vram ? vram : lx_framebuffer_size(); in lxfb_map_video_memory()
360 info->screen_base = ioremap(info->fix.smem_start, info->fix.smem_len); in lxfb_map_video_memory()
383 write_dc(par, DC_GLIU0_MEM_OFFSET, info->fix.smem_start & 0xFF000000); in lxfb_map_video_memory()
387 info->fix.smem_len / 1024, info->fix.smem_start); in lxfb_map_video_memory()
[all …]
/drivers/media/test-drivers/vivid/
Dvivid-osd.c109 static int vivid_fb_get_fix(struct vivid_dev *dev, struct fb_fix_screeninfo *fix) in vivid_fb_get_fix() argument
112 memset(fix, 0, sizeof(struct fb_fix_screeninfo)); in vivid_fb_get_fix()
113 strscpy(fix->id, "vioverlay fb", sizeof(fix->id)); in vivid_fb_get_fix()
114 fix->smem_start = dev->video_pbase; in vivid_fb_get_fix()
115 fix->smem_len = dev->video_buffer_size; in vivid_fb_get_fix()
116 fix->type = FB_TYPE_PACKED_PIXELS; in vivid_fb_get_fix()
117 fix->visual = FB_VISUAL_TRUECOLOR; in vivid_fb_get_fix()
118 fix->xpanstep = 1; in vivid_fb_get_fix()
119 fix->ypanstep = 1; in vivid_fb_get_fix()
120 fix->ywrapstep = 0; in vivid_fb_get_fix()
[all …]
/drivers/staging/sm750fb/
Dsm750.c179 pitch = info->fix.line_length; in lynxfb_ops_fillrect()
217 pitch = info->fix.line_length; in lynxfb_ops_copyarea()
251 pitch = info->fix.line_length; in lynxfb_ops_imageblit()
260 if (info->fix.visual == FB_VISUAL_TRUECOLOR || in lynxfb_ops_imageblit()
261 info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in lynxfb_ops_imageblit()
304 info->fix.visual = FB_VISUAL_PSEUDOCOLOR; in lynxfb_set_visual_mode()
309 info->fix.visual = FB_VISUAL_TRUECOLOR; in lynxfb_set_visual_mode()
362 struct fb_fix_screeninfo *fix; in lynxfb_ops_set_par() local
374 fix = &info->fix; in lynxfb_ops_set_par()
379 fix->line_length = line_length; in lynxfb_ops_set_par()
[all …]
/drivers/video/fbdev/core/
Dfbmem.c91 struct fb_fix_screeninfo *fix) in fb_get_color_depth() argument
95 if (fix->visual == FB_VISUAL_MONO01 || in fb_get_color_depth()
96 fix->visual == FB_VISUAL_MONO10) in fb_get_color_depth()
281 u8 xor = (info->fix.visual == FB_VISUAL_MONO01) ? 0xff : 0; in fb_set_logo()
284 switch (fb_get_color_depth(&info->var, &info->fix)) { in fb_set_logo()
296 if (info->fix.visual == FB_VISUAL_MONO01 || in fb_set_logo()
297 info->fix.visual == FB_VISUAL_MONO10) in fb_set_logo()
571 if (info->fix.visual != FB_VISUAL_TRUECOLOR) in fb_prepare_extra_logos()
619 int depth = fb_get_color_depth(&info->var, &info->fix); in fb_prepare_logo()
629 if (info->fix.visual == FB_VISUAL_DIRECTCOLOR) { in fb_prepare_logo()
[all …]

12345678