cfb                51 drivers/crypto/amcc/crypto4xx_alg.c 				     u32 hmac_mc, u32 cfb, u32 esn,
cfb                58 drivers/crypto/amcc/crypto4xx_alg.c 	sa->sa_command_1.bf.feedback_mode = cfb,
cfb               318 drivers/crypto/bcm/spu2.c 	u8 cfb;
cfb               337 drivers/crypto/bcm/spu2.c 	cfb = (ctrl0 & SPU2_CFB_MASK) >> SPU2_CFB_MASK_SHIFT;
cfb               338 drivers/crypto/bcm/spu2.c 	packet_log("  CFB %#x\n", cfb);
cfb                47 drivers/video/fbdev/clps711x-fb.c 	struct clps711x_fb_info *cfb = info->par;
cfb                57 drivers/video/fbdev/clps711x-fb.c 	if (cfb->cmap_invert)
cfb                62 drivers/video/fbdev/clps711x-fb.c 	writel((readl(cfb->base + regno) & ~mask) | level, cfb->base + regno);
cfb               103 drivers/video/fbdev/clps711x-fb.c 	struct clps711x_fb_info *cfb = info->par;
cfb               108 drivers/video/fbdev/clps711x-fb.c 	if (size > cfb->buffsize)
cfb               129 drivers/video/fbdev/clps711x-fb.c 	lcdcon |= (cfb->ac_prescale & 0x1f) << 25;
cfb               131 drivers/video/fbdev/clps711x-fb.c 	pps = clk_get_rate(cfb->clk) / (PICOS2KHZ(info->var.pixclock) * 1000);
cfb               142 drivers/video/fbdev/clps711x-fb.c 	regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0);
cfb               143 drivers/video/fbdev/clps711x-fb.c 	writel(lcdcon, cfb->base + CLPS711X_LCDCON);
cfb               144 drivers/video/fbdev/clps711x-fb.c 	regmap_update_bits(cfb->syscon, SYSCON_OFFSET,
cfb               169 drivers/video/fbdev/clps711x-fb.c 	struct clps711x_fb_info *cfb = dev_get_drvdata(&lcddev->dev);
cfb               171 drivers/video/fbdev/clps711x-fb.c 	return (!fi || fi->par == cfb) ? 1 : 0;
cfb               176 drivers/video/fbdev/clps711x-fb.c 	struct clps711x_fb_info *cfb = dev_get_drvdata(&lcddev->dev);
cfb               178 drivers/video/fbdev/clps711x-fb.c 	if (!IS_ERR_OR_NULL(cfb->lcd_pwr))
cfb               179 drivers/video/fbdev/clps711x-fb.c 		if (!regulator_is_enabled(cfb->lcd_pwr))
cfb               187 drivers/video/fbdev/clps711x-fb.c 	struct clps711x_fb_info *cfb = dev_get_drvdata(&lcddev->dev);
cfb               189 drivers/video/fbdev/clps711x-fb.c 	if (!IS_ERR_OR_NULL(cfb->lcd_pwr)) {
cfb               191 drivers/video/fbdev/clps711x-fb.c 			if (!regulator_is_enabled(cfb->lcd_pwr))
cfb               192 drivers/video/fbdev/clps711x-fb.c 				return regulator_enable(cfb->lcd_pwr);
cfb               194 drivers/video/fbdev/clps711x-fb.c 			if (regulator_is_enabled(cfb->lcd_pwr))
cfb               195 drivers/video/fbdev/clps711x-fb.c 				return regulator_disable(cfb->lcd_pwr);
cfb               212 drivers/video/fbdev/clps711x-fb.c 	struct clps711x_fb_info *cfb;
cfb               222 drivers/video/fbdev/clps711x-fb.c 	info = framebuffer_alloc(sizeof(*cfb), dev);
cfb               226 drivers/video/fbdev/clps711x-fb.c 	cfb = info->par;
cfb               232 drivers/video/fbdev/clps711x-fb.c 	cfb->base = devm_ioremap(dev, res->start, resource_size(res));
cfb               233 drivers/video/fbdev/clps711x-fb.c 	if (!cfb->base) {
cfb               260 drivers/video/fbdev/clps711x-fb.c 	cfb->buffsize = resource_size(res);
cfb               263 drivers/video/fbdev/clps711x-fb.c 	info->apertures->ranges[0].size = cfb->buffsize;
cfb               265 drivers/video/fbdev/clps711x-fb.c 	cfb->clk = devm_clk_get(dev, NULL);
cfb               266 drivers/video/fbdev/clps711x-fb.c 	if (IS_ERR(cfb->clk)) {
cfb               267 drivers/video/fbdev/clps711x-fb.c 		ret = PTR_ERR(cfb->clk);
cfb               271 drivers/video/fbdev/clps711x-fb.c 	cfb->syscon =
cfb               273 drivers/video/fbdev/clps711x-fb.c 	if (IS_ERR(cfb->syscon)) {
cfb               274 drivers/video/fbdev/clps711x-fb.c 		ret = PTR_ERR(cfb->syscon);
cfb               285 drivers/video/fbdev/clps711x-fb.c 	ret = of_get_fb_videomode(disp, &cfb->mode, OF_USE_NATIVE_MODE);
cfb               291 drivers/video/fbdev/clps711x-fb.c 	of_property_read_u32(disp, "ac-prescale", &cfb->ac_prescale);
cfb               292 drivers/video/fbdev/clps711x-fb.c 	cfb->cmap_invert = of_property_read_bool(disp, "cmap-invert");
cfb               301 drivers/video/fbdev/clps711x-fb.c 	if (info->fix.smem_start != (readb(cfb->base + CLPS711X_FBADDR) << 28))
cfb               302 drivers/video/fbdev/clps711x-fb.c 		regmap_update_bits(cfb->syscon, SYSCON_OFFSET,
cfb               305 drivers/video/fbdev/clps711x-fb.c 	ret = regmap_read(cfb->syscon, SYSCON_OFFSET, &val);
cfb               311 drivers/video/fbdev/clps711x-fb.c 		writeb(info->fix.smem_start >> 28, cfb->base + CLPS711X_FBADDR);
cfb               313 drivers/video/fbdev/clps711x-fb.c 		memset_io(info->screen_base, 0, cfb->buffsize);
cfb               316 drivers/video/fbdev/clps711x-fb.c 	cfb->lcd_pwr = devm_regulator_get(dev, "lcd");
cfb               317 drivers/video/fbdev/clps711x-fb.c 	if (PTR_ERR(cfb->lcd_pwr) == -EPROBE_DEFER) {
cfb               331 drivers/video/fbdev/clps711x-fb.c 	fb_videomode_to_var(&info->var, &cfb->mode);
cfb               345 drivers/video/fbdev/clps711x-fb.c 	lcd = devm_lcd_device_register(dev, "clps711x-lcd", dev, cfb,
cfb               354 drivers/video/fbdev/clps711x-fb.c 	regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0);
cfb               366 drivers/video/fbdev/clps711x-fb.c 	struct clps711x_fb_info *cfb = info->par;
cfb               368 drivers/video/fbdev/clps711x-fb.c 	regmap_update_bits(cfb->syscon, SYSCON_OFFSET, SYSCON1_LCDEN, 0);
cfb               110 drivers/video/fbdev/cyber2000fb.c #define cyber2000fb_writel(val, reg, cfb)	writel(val, (cfb)->regs + (reg))
cfb               111 drivers/video/fbdev/cyber2000fb.c #define cyber2000fb_writew(val, reg, cfb)	writew(val, (cfb)->regs + (reg))
cfb               112 drivers/video/fbdev/cyber2000fb.c #define cyber2000fb_writeb(val, reg, cfb)	writeb(val, (cfb)->regs + (reg))
cfb               114 drivers/video/fbdev/cyber2000fb.c #define cyber2000fb_readb(reg, cfb)		readb((cfb)->regs + (reg))
cfb               117 drivers/video/fbdev/cyber2000fb.c cyber2000_crtcw(unsigned int reg, unsigned int val, struct cfb_info *cfb)
cfb               119 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew((reg & 255) | val << 8, 0x3d4, cfb);
cfb               123 drivers/video/fbdev/cyber2000fb.c cyber2000_grphw(unsigned int reg, unsigned int val, struct cfb_info *cfb)
cfb               125 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew((reg & 255) | val << 8, 0x3ce, cfb);
cfb               129 drivers/video/fbdev/cyber2000fb.c cyber2000_grphr(unsigned int reg, struct cfb_info *cfb)
cfb               131 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(reg, 0x3ce, cfb);
cfb               132 drivers/video/fbdev/cyber2000fb.c 	return cyber2000fb_readb(0x3cf, cfb);
cfb               136 drivers/video/fbdev/cyber2000fb.c cyber2000_attrw(unsigned int reg, unsigned int val, struct cfb_info *cfb)
cfb               138 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_readb(0x3da, cfb);
cfb               139 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(reg, 0x3c0, cfb);
cfb               140 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_readb(0x3c1, cfb);
cfb               141 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(val, 0x3c0, cfb);
cfb               145 drivers/video/fbdev/cyber2000fb.c cyber2000_seqw(unsigned int reg, unsigned int val, struct cfb_info *cfb)
cfb               147 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew((reg & 255) | val << 8, 0x3c4, cfb);
cfb               158 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb               161 drivers/video/fbdev/cyber2000fb.c 	if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) {
cfb               166 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(0, CO_REG_CONTROL, cfb);
cfb               167 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(rect->width - 1, CO_REG_PIXWIDTH, cfb);
cfb               168 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(rect->height - 1, CO_REG_PIXHEIGHT, cfb);
cfb               171 drivers/video/fbdev/cyber2000fb.c 	if (cfb->fb.var.bits_per_pixel > 8)
cfb               172 drivers/video/fbdev/cyber2000fb.c 		col = ((u32 *)cfb->fb.pseudo_palette)[col];
cfb               173 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writel(col, CO_REG_FGCOLOUR, cfb);
cfb               175 drivers/video/fbdev/cyber2000fb.c 	dst = rect->dx + rect->dy * cfb->fb.var.xres_virtual;
cfb               176 drivers/video/fbdev/cyber2000fb.c 	if (cfb->fb.var.bits_per_pixel == 24) {
cfb               177 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(dst, CO_REG_X_PHASE, cfb);
cfb               181 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writel(dst, CO_REG_DEST_PTR, cfb);
cfb               182 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(CO_FG_MIX_SRC, CO_REG_FGMIX, cfb);
cfb               183 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(CO_CMD_L_PATTERN_FGCOL, CO_REG_CMD_L, cfb);
cfb               184 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(CO_CMD_H_BLITTER, CO_REG_CMD_H, cfb);
cfb               190 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb               194 drivers/video/fbdev/cyber2000fb.c 	if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT)) {
cfb               199 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(0, CO_REG_CONTROL, cfb);
cfb               200 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(region->width - 1, CO_REG_PIXWIDTH, cfb);
cfb               201 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(region->height - 1, CO_REG_PIXHEIGHT, cfb);
cfb               203 drivers/video/fbdev/cyber2000fb.c 	src = region->sx + region->sy * cfb->fb.var.xres_virtual;
cfb               204 drivers/video/fbdev/cyber2000fb.c 	dst = region->dx + region->dy * cfb->fb.var.xres_virtual;
cfb               213 drivers/video/fbdev/cyber2000fb.c 		src += (region->height - 1) * cfb->fb.var.xres_virtual;
cfb               214 drivers/video/fbdev/cyber2000fb.c 		dst += (region->height - 1) * cfb->fb.var.xres_virtual;
cfb               218 drivers/video/fbdev/cyber2000fb.c 	if (cfb->fb.var.bits_per_pixel == 24) {
cfb               219 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(dst, CO_REG_X_PHASE, cfb);
cfb               223 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writel(src, CO_REG_SRC1_PTR, cfb);
cfb               224 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writel(dst, CO_REG_DEST_PTR, cfb);
cfb               225 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(CO_FG_MIX_SRC, CO_REG_FGMIX, cfb);
cfb               226 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(cmd, CO_REG_CMD_L, cfb);
cfb               228 drivers/video/fbdev/cyber2000fb.c 			   CO_REG_CMD_H, cfb);
cfb               240 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb               243 drivers/video/fbdev/cyber2000fb.c 	if (!(cfb->fb.var.accel_flags & FB_ACCELF_TEXT))
cfb               246 drivers/video/fbdev/cyber2000fb.c 	while (cyber2000fb_readb(CO_REG_CONTROL, cfb) & CO_CTRL_BUSY) {
cfb               249 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(0, CO_REG_CONTROL, cfb);
cfb               275 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb               276 drivers/video/fbdev/cyber2000fb.c 	struct fb_var_screeninfo *var = &cfb->fb.var;
cfb               280 drivers/video/fbdev/cyber2000fb.c 	switch (cfb->fb.fix.visual) {
cfb               301 drivers/video/fbdev/cyber2000fb.c 		cfb->palette[regno].red = red;
cfb               302 drivers/video/fbdev/cyber2000fb.c 		cfb->palette[regno].green = green;
cfb               303 drivers/video/fbdev/cyber2000fb.c 		cfb->palette[regno].blue = blue;
cfb               305 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(regno, 0x3c8, cfb);
cfb               306 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(red, 0x3c9, cfb);
cfb               307 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(green, 0x3c9, cfb);
cfb               308 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(blue, 0x3c9, cfb);
cfb               327 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 2].green = green;
cfb               333 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(regno << 2, 0x3c8, cfb);
cfb               334 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(cfb->palette[regno >> 1].red,
cfb               335 drivers/video/fbdev/cyber2000fb.c 					   0x3c9, cfb);
cfb               336 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(green, 0x3c9, cfb);
cfb               337 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(cfb->palette[regno >> 1].blue,
cfb               338 drivers/video/fbdev/cyber2000fb.c 					   0x3c9, cfb);
cfb               340 drivers/video/fbdev/cyber2000fb.c 			green = cfb->palette[regno << 3].green;
cfb               346 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 3].red = red;
cfb               347 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 3].green = green;
cfb               348 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 3].blue = blue;
cfb               354 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(regno << 3, 0x3c8, cfb);
cfb               355 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(red, 0x3c9, cfb);
cfb               356 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(green, 0x3c9, cfb);
cfb               357 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(blue, 0x3c9, cfb);
cfb               362 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 4].red = red;
cfb               363 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 4].green = green;
cfb               364 drivers/video/fbdev/cyber2000fb.c 			cfb->palette[regno << 4].blue = blue;
cfb               370 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(regno << 4, 0x3c8, cfb);
cfb               371 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(red, 0x3c9, cfb);
cfb               372 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(green, 0x3c9, cfb);
cfb               373 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(blue, 0x3c9, cfb);
cfb               409 drivers/video/fbdev/cyber2000fb.c 		((u32 *)cfb->fb.pseudo_palette)[regno] = pseudo_val;
cfb               440 drivers/video/fbdev/cyber2000fb.c static void cyber2000fb_write_ramdac_ctrl(struct cfb_info *cfb)
cfb               443 drivers/video/fbdev/cyber2000fb.c 	unsigned int val = cfb->ramdac_ctrl | cfb->ramdac_powerdown;
cfb               445 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(0x56, 0x3ce, cfb);
cfb               446 drivers/video/fbdev/cyber2000fb.c 	i = cyber2000fb_readb(0x3cf, cfb);
cfb               447 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(i | 4, 0x3cf, cfb);
cfb               448 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(val, 0x3c6, cfb);
cfb               449 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(i, 0x3cf, cfb);
cfb               451 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_readb(0x3cf, cfb);
cfb               454 drivers/video/fbdev/cyber2000fb.c static void cyber2000fb_set_timing(struct cfb_info *cfb, struct par_info *hw)
cfb               462 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(i, 0x3c8, cfb);
cfb               463 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(0, 0x3c9, cfb);
cfb               464 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(0, 0x3c9, cfb);
cfb               465 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(0, 0x3c9, cfb);
cfb               468 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(0xef, 0x3c2, cfb);
cfb               469 drivers/video/fbdev/cyber2000fb.c 	cyber2000_crtcw(0x11, 0x0b, cfb);
cfb               470 drivers/video/fbdev/cyber2000fb.c 	cyber2000_attrw(0x11, 0x00, cfb);
cfb               472 drivers/video/fbdev/cyber2000fb.c 	cyber2000_seqw(0x00, 0x01, cfb);
cfb               473 drivers/video/fbdev/cyber2000fb.c 	cyber2000_seqw(0x01, 0x01, cfb);
cfb               474 drivers/video/fbdev/cyber2000fb.c 	cyber2000_seqw(0x02, 0x0f, cfb);
cfb               475 drivers/video/fbdev/cyber2000fb.c 	cyber2000_seqw(0x03, 0x00, cfb);
cfb               476 drivers/video/fbdev/cyber2000fb.c 	cyber2000_seqw(0x04, 0x0e, cfb);
cfb               477 drivers/video/fbdev/cyber2000fb.c 	cyber2000_seqw(0x00, 0x03, cfb);
cfb               480 drivers/video/fbdev/cyber2000fb.c 		cyber2000_crtcw(crtc_idx[i], hw->crtc[i], cfb);
cfb               483 drivers/video/fbdev/cyber2000fb.c 		cyber2000_crtcw(i, 0, cfb);
cfb               485 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_CRT_VRTOFL, hw->crtc_ofl, cfb);
cfb               486 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x00, 0x00, cfb);
cfb               487 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x01, 0x00, cfb);
cfb               488 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x02, 0x00, cfb);
cfb               489 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x03, 0x00, cfb);
cfb               490 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x04, 0x00, cfb);
cfb               491 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x05, 0x60, cfb);
cfb               492 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x06, 0x05, cfb);
cfb               493 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x07, 0x0f, cfb);
cfb               494 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x08, 0xff, cfb);
cfb               498 drivers/video/fbdev/cyber2000fb.c 		cyber2000_attrw(i, i, cfb);
cfb               500 drivers/video/fbdev/cyber2000fb.c 	cyber2000_attrw(0x10, 0x01, cfb);
cfb               501 drivers/video/fbdev/cyber2000fb.c 	cyber2000_attrw(0x11, 0x00, cfb);
cfb               502 drivers/video/fbdev/cyber2000fb.c 	cyber2000_attrw(0x12, 0x0f, cfb);
cfb               503 drivers/video/fbdev/cyber2000fb.c 	cyber2000_attrw(0x13, 0x00, cfb);
cfb               504 drivers/video/fbdev/cyber2000fb.c 	cyber2000_attrw(0x14, 0x00, cfb);
cfb               507 drivers/video/fbdev/cyber2000fb.c 	spin_lock(&cfb->reg_b0_lock);
cfb               508 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_DCLK_MULT, hw->clock_mult, cfb);
cfb               509 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_DCLK_DIV, hw->clock_div, cfb);
cfb               510 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_MCLK_MULT, cfb->mclk_mult, cfb);
cfb               511 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_MCLK_DIV, cfb->mclk_div, cfb);
cfb               512 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x90, 0x01, cfb);
cfb               513 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0xb9, 0x80, cfb);
cfb               514 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0xb9, 0x00, cfb);
cfb               515 drivers/video/fbdev/cyber2000fb.c 	spin_unlock(&cfb->reg_b0_lock);
cfb               517 drivers/video/fbdev/cyber2000fb.c 	cfb->ramdac_ctrl = hw->ramdac;
cfb               518 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_write_ramdac_ctrl(cfb);
cfb               520 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(0x20, 0x3c0, cfb);
cfb               521 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(0xff, 0x3c6, cfb);
cfb               523 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x14, hw->fetch, cfb);
cfb               525 drivers/video/fbdev/cyber2000fb.c 			      ((hw->pitch >> 4) & 0x30), cfb);
cfb               526 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_SEQ_MISC, hw->extseqmisc, cfb);
cfb               531 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(hw->width, CO_REG_SRC_WIDTH, cfb);
cfb               532 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(hw->width, CO_REG_DEST_WIDTH, cfb);
cfb               533 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writeb(hw->co_pixfmt, CO_REG_PIXFMT, cfb);
cfb               537 drivers/video/fbdev/cyber2000fb.c cyber2000fb_update_start(struct cfb_info *cfb, struct fb_var_screeninfo *var)
cfb               552 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(0x10, base >> 16 | 0x10, cfb);
cfb               553 drivers/video/fbdev/cyber2000fb.c 	cyber2000_crtcw(0x0c, base >> 8, cfb);
cfb               554 drivers/video/fbdev/cyber2000fb.c 	cyber2000_crtcw(0x0d, base, cfb);
cfb               560 drivers/video/fbdev/cyber2000fb.c cyber2000fb_decode_crtc(struct par_info *hw, struct cfb_info *cfb,
cfb               661 drivers/video/fbdev/cyber2000fb.c cyber2000fb_decode_clock(struct par_info *hw, struct cfb_info *cfb,
cfb               665 drivers/video/fbdev/cyber2000fb.c 	const u_long ref_ps = cfb->ref_ps;
cfb               678 drivers/video/fbdev/cyber2000fb.c 		new_pll = pll_ps / cfb->divisors[div2];
cfb               757 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb               838 drivers/video/fbdev/cyber2000fb.c 	if (mem > cfb->fb.fix.smem_len)
cfb               839 drivers/video/fbdev/cyber2000fb.c 		var->yres_virtual = cfb->fb.fix.smem_len * 8 /
cfb               847 drivers/video/fbdev/cyber2000fb.c 	err = cyber2000fb_decode_clock(&hw, cfb, var);
cfb               851 drivers/video/fbdev/cyber2000fb.c 	err = cyber2000fb_decode_crtc(&hw, cfb, var);
cfb               860 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb               861 drivers/video/fbdev/cyber2000fb.c 	struct fb_var_screeninfo *var = &cfb->fb.var;
cfb               924 drivers/video/fbdev/cyber2000fb.c 	BUG_ON(cyber2000fb_decode_clock(&hw, cfb, var) != 0);
cfb               925 drivers/video/fbdev/cyber2000fb.c 	BUG_ON(cyber2000fb_decode_crtc(&hw, cfb, var) != 0);
cfb               929 drivers/video/fbdev/cyber2000fb.c 	if (!(cfb->mem_ctl2 & MEM_CTL2_64BIT))
cfb               933 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.line_length = var->xres_virtual * var->bits_per_pixel / 8;
cfb               942 drivers/video/fbdev/cyber2000fb.c 	mem = cfb->fb.fix.line_length * var->yres_virtual;
cfb               943 drivers/video/fbdev/cyber2000fb.c 	BUG_ON(mem > cfb->fb.fix.smem_len);
cfb               952 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.visual = FB_VISUAL_PSEUDOCOLOR;
cfb               954 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.visual = FB_VISUAL_TRUECOLOR;
cfb               956 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.visual = FB_VISUAL_DIRECTCOLOR;
cfb               958 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_set_timing(cfb, &hw);
cfb               959 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_update_start(cfb, var);
cfb               970 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb               972 drivers/video/fbdev/cyber2000fb.c 	if (cyber2000fb_update_start(cfb, var))
cfb               975 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.xoffset = var->xoffset;
cfb               976 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.yoffset = var->yoffset;
cfb               979 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.var.vmode |= FB_VMODE_YWRAP;
cfb               981 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.var.vmode &= ~FB_VMODE_YWRAP;
cfb              1006 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = container_of(info, struct cfb_info, fb);
cfb              1025 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_SYNC_CTL, sync, cfb);
cfb              1029 drivers/video/fbdev/cyber2000fb.c 		cfb->ramdac_powerdown &= ~(RAMDAC_DACPWRDN | RAMDAC_BYPASS |
cfb              1031 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_write_ramdac_ctrl(cfb);
cfb              1039 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(i, 0x3c8, cfb);
cfb              1040 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(0, 0x3c9, cfb);
cfb              1041 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(0, 0x3c9, cfb);
cfb              1042 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(0, 0x3c9, cfb);
cfb              1046 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(i, 0x3c8, cfb);
cfb              1047 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(cfb->palette[i].red, 0x3c9, cfb);
cfb              1048 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(cfb->palette[i].green, 0x3c9, cfb);
cfb              1049 drivers/video/fbdev/cyber2000fb.c 			cyber2000fb_writeb(cfb->palette[i].blue, 0x3c9, cfb);
cfb              1055 drivers/video/fbdev/cyber2000fb.c 		cfb->ramdac_powerdown |= RAMDAC_DACPWRDN | RAMDAC_BYPASS |
cfb              1057 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_write_ramdac_ctrl(cfb);
cfb              1086 drivers/video/fbdev/cyber2000fb.c void cyber2000fb_enable_extregs(struct cfb_info *cfb)
cfb              1088 drivers/video/fbdev/cyber2000fb.c 	cfb->func_use_count += 1;
cfb              1090 drivers/video/fbdev/cyber2000fb.c 	if (cfb->func_use_count == 1) {
cfb              1093 drivers/video/fbdev/cyber2000fb.c 		old = cyber2000_grphr(EXT_FUNC_CTL, cfb);
cfb              1095 drivers/video/fbdev/cyber2000fb.c 		cyber2000_grphw(EXT_FUNC_CTL, old, cfb);
cfb              1103 drivers/video/fbdev/cyber2000fb.c void cyber2000fb_disable_extregs(struct cfb_info *cfb)
cfb              1105 drivers/video/fbdev/cyber2000fb.c 	if (cfb->func_use_count == 1) {
cfb              1108 drivers/video/fbdev/cyber2000fb.c 		old = cyber2000_grphr(EXT_FUNC_CTL, cfb);
cfb              1110 drivers/video/fbdev/cyber2000fb.c 		cyber2000_grphw(EXT_FUNC_CTL, old, cfb);
cfb              1113 drivers/video/fbdev/cyber2000fb.c 	if (cfb->func_use_count == 0)
cfb              1116 drivers/video/fbdev/cyber2000fb.c 		cfb->func_use_count -= 1;
cfb              1162 drivers/video/fbdev/cyber2000fb.c static void cyber2000fb_enable_ddc(struct cfb_info *cfb)
cfb              1164 drivers/video/fbdev/cyber2000fb.c 	spin_lock(&cfb->reg_b0_lock);
cfb              1165 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(0x1bf, 0x3ce, cfb);
cfb              1168 drivers/video/fbdev/cyber2000fb.c static void cyber2000fb_disable_ddc(struct cfb_info *cfb)
cfb              1170 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_writew(0x0bf, 0x3ce, cfb);
cfb              1171 drivers/video/fbdev/cyber2000fb.c 	spin_unlock(&cfb->reg_b0_lock);
cfb              1177 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1180 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_enable_ddc(cfb);
cfb              1181 drivers/video/fbdev/cyber2000fb.c 	reg = cyber2000_grphr(DDC_REG, cfb);
cfb              1186 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(DDC_REG, reg, cfb);
cfb              1187 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_disable_ddc(cfb);
cfb              1192 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1195 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_enable_ddc(cfb);
cfb              1196 drivers/video/fbdev/cyber2000fb.c 	reg = cyber2000_grphr(DDC_REG, cfb);
cfb              1201 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(DDC_REG, reg, cfb);
cfb              1202 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_disable_ddc(cfb);
cfb              1207 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1210 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_enable_ddc(cfb);
cfb              1211 drivers/video/fbdev/cyber2000fb.c 	retval = !!(cyber2000_grphr(DDC_REG, cfb) & DDC_SCL_IN);
cfb              1212 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_disable_ddc(cfb);
cfb              1219 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1222 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_enable_ddc(cfb);
cfb              1223 drivers/video/fbdev/cyber2000fb.c 	retval = !!(cyber2000_grphr(DDC_REG, cfb) & DDC_SDA_IN);
cfb              1224 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_disable_ddc(cfb);
cfb              1229 drivers/video/fbdev/cyber2000fb.c static int cyber2000fb_setup_ddc_bus(struct cfb_info *cfb)
cfb              1231 drivers/video/fbdev/cyber2000fb.c 	strlcpy(cfb->ddc_adapter.name, cfb->fb.fix.id,
cfb              1232 drivers/video/fbdev/cyber2000fb.c 		sizeof(cfb->ddc_adapter.name));
cfb              1233 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_adapter.owner		= THIS_MODULE;
cfb              1234 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_adapter.class		= I2C_CLASS_DDC;
cfb              1235 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_adapter.algo_data	= &cfb->ddc_algo;
cfb              1236 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_adapter.dev.parent	= cfb->fb.device;
cfb              1237 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_algo.setsda		= cyber2000fb_ddc_setsda;
cfb              1238 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_algo.setscl		= cyber2000fb_ddc_setscl;
cfb              1239 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_algo.getsda		= cyber2000fb_ddc_getsda;
cfb              1240 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_algo.getscl		= cyber2000fb_ddc_getscl;
cfb              1241 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_algo.udelay		= 10;
cfb              1242 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_algo.timeout		= 20;
cfb              1243 drivers/video/fbdev/cyber2000fb.c 	cfb->ddc_algo.data		= cfb;
cfb              1245 drivers/video/fbdev/cyber2000fb.c 	i2c_set_adapdata(&cfb->ddc_adapter, cfb);
cfb              1247 drivers/video/fbdev/cyber2000fb.c 	return i2c_bit_add_bus(&cfb->ddc_adapter);
cfb              1254 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1257 drivers/video/fbdev/cyber2000fb.c 	spin_lock(&cfb->reg_b0_lock);
cfb              1258 drivers/video/fbdev/cyber2000fb.c 	latch2 = cyber2000_grphr(EXT_LATCH2, cfb);
cfb              1262 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_LATCH2, latch2, cfb);
cfb              1263 drivers/video/fbdev/cyber2000fb.c 	spin_unlock(&cfb->reg_b0_lock);
cfb              1268 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1271 drivers/video/fbdev/cyber2000fb.c 	spin_lock(&cfb->reg_b0_lock);
cfb              1272 drivers/video/fbdev/cyber2000fb.c 	latch2 = cyber2000_grphr(EXT_LATCH2, cfb);
cfb              1276 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_LATCH2, latch2, cfb);
cfb              1277 drivers/video/fbdev/cyber2000fb.c 	spin_unlock(&cfb->reg_b0_lock);
cfb              1282 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1285 drivers/video/fbdev/cyber2000fb.c 	spin_lock(&cfb->reg_b0_lock);
cfb              1286 drivers/video/fbdev/cyber2000fb.c 	ret = !!(cyber2000_grphr(EXT_LATCH2, cfb) & EXT_LATCH2_I2C_DAT);
cfb              1287 drivers/video/fbdev/cyber2000fb.c 	spin_unlock(&cfb->reg_b0_lock);
cfb              1294 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = data;
cfb              1297 drivers/video/fbdev/cyber2000fb.c 	spin_lock(&cfb->reg_b0_lock);
cfb              1298 drivers/video/fbdev/cyber2000fb.c 	ret = !!(cyber2000_grphr(EXT_LATCH2, cfb) & EXT_LATCH2_I2C_CLK);
cfb              1299 drivers/video/fbdev/cyber2000fb.c 	spin_unlock(&cfb->reg_b0_lock);
cfb              1304 drivers/video/fbdev/cyber2000fb.c static int cyber2000fb_i2c_register(struct cfb_info *cfb)
cfb              1306 drivers/video/fbdev/cyber2000fb.c 	strlcpy(cfb->i2c_adapter.name, cfb->fb.fix.id,
cfb              1307 drivers/video/fbdev/cyber2000fb.c 		sizeof(cfb->i2c_adapter.name));
cfb              1308 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_adapter.owner = THIS_MODULE;
cfb              1309 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_adapter.algo_data = &cfb->i2c_algo;
cfb              1310 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_adapter.dev.parent = cfb->fb.device;
cfb              1311 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_algo.setsda = cyber2000fb_i2c_setsda;
cfb              1312 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_algo.setscl = cyber2000fb_i2c_setscl;
cfb              1313 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_algo.getsda = cyber2000fb_i2c_getsda;
cfb              1314 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_algo.getscl = cyber2000fb_i2c_getscl;
cfb              1315 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_algo.udelay = 5;
cfb              1316 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_algo.timeout = msecs_to_jiffies(100);
cfb              1317 drivers/video/fbdev/cyber2000fb.c 	cfb->i2c_algo.data = cfb;
cfb              1319 drivers/video/fbdev/cyber2000fb.c 	return i2c_bit_add_bus(&cfb->i2c_adapter);
cfb              1322 drivers/video/fbdev/cyber2000fb.c static void cyber2000fb_i2c_unregister(struct cfb_info *cfb)
cfb              1324 drivers/video/fbdev/cyber2000fb.c 	i2c_del_adapter(&cfb->i2c_adapter);
cfb              1327 drivers/video/fbdev/cyber2000fb.c #define cyber2000fb_i2c_register(cfb)	(0)
cfb              1328 drivers/video/fbdev/cyber2000fb.c #define cyber2000fb_i2c_unregister(cfb)	do { } while (0)
cfb              1388 drivers/video/fbdev/cyber2000fb.c static void cyberpro_init_hw(struct cfb_info *cfb)
cfb              1393 drivers/video/fbdev/cyber2000fb.c 		cyber2000_grphw(igs_regs[i], igs_regs[i + 1], cfb);
cfb              1395 drivers/video/fbdev/cyber2000fb.c 	if (cfb->id == ID_CYBERPRO_5000) {
cfb              1397 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(0xba, 0x3ce, cfb);
cfb              1398 drivers/video/fbdev/cyber2000fb.c 		val = cyber2000fb_readb(0x3cf, cfb) & 0x80;
cfb              1399 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_writeb(val, 0x3cf, cfb);
cfb              1405 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb;
cfb              1407 drivers/video/fbdev/cyber2000fb.c 	cfb = kzalloc(sizeof(struct cfb_info), GFP_KERNEL);
cfb              1408 drivers/video/fbdev/cyber2000fb.c 	if (!cfb)
cfb              1412 drivers/video/fbdev/cyber2000fb.c 	cfb->id			= id;
cfb              1415 drivers/video/fbdev/cyber2000fb.c 		cfb->ref_ps	= 40690; /* 24.576 MHz */
cfb              1417 drivers/video/fbdev/cyber2000fb.c 		cfb->ref_ps	= 69842; /* 14.31818 MHz (69841?) */
cfb              1419 drivers/video/fbdev/cyber2000fb.c 	cfb->divisors[0]	= 1;
cfb              1420 drivers/video/fbdev/cyber2000fb.c 	cfb->divisors[1]	= 2;
cfb              1421 drivers/video/fbdev/cyber2000fb.c 	cfb->divisors[2]	= 4;
cfb              1424 drivers/video/fbdev/cyber2000fb.c 		cfb->divisors[3] = 8;
cfb              1426 drivers/video/fbdev/cyber2000fb.c 		cfb->divisors[3] = 6;
cfb              1428 drivers/video/fbdev/cyber2000fb.c 	strcpy(cfb->fb.fix.id, name);
cfb              1430 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.type	= FB_TYPE_PACKED_PIXELS;
cfb              1431 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.type_aux	= 0;
cfb              1432 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.xpanstep	= 0;
cfb              1433 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.ypanstep	= 1;
cfb              1434 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.ywrapstep	= 0;
cfb              1438 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.accel = 0;
cfb              1442 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER2000;
cfb              1446 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER2010;
cfb              1450 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.accel = FB_ACCEL_IGS_CYBER5000;
cfb              1454 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.nonstd	= 0;
cfb              1455 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.activate	= FB_ACTIVATE_NOW;
cfb              1456 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.height	= -1;
cfb              1457 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.width	= -1;
cfb              1458 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.accel_flags	= FB_ACCELF_TEXT;
cfb              1460 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fbops		= &cyber2000fb_ops;
cfb              1461 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.flags		= FBINFO_DEFAULT | FBINFO_HWACCEL_YPAN;
cfb              1462 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.pseudo_palette	= cfb->pseudo_palette;
cfb              1464 drivers/video/fbdev/cyber2000fb.c 	spin_lock_init(&cfb->reg_b0_lock);
cfb              1466 drivers/video/fbdev/cyber2000fb.c 	fb_alloc_cmap(&cfb->fb.cmap, NR_PALETTE, 0);
cfb              1468 drivers/video/fbdev/cyber2000fb.c 	return cfb;
cfb              1471 drivers/video/fbdev/cyber2000fb.c static void cyberpro_free_fb_info(struct cfb_info *cfb)
cfb              1473 drivers/video/fbdev/cyber2000fb.c 	if (cfb) {
cfb              1477 drivers/video/fbdev/cyber2000fb.c 		fb_alloc_cmap(&cfb->fb.cmap, 0, 0);
cfb              1479 drivers/video/fbdev/cyber2000fb.c 		kfree(cfb);
cfb              1522 drivers/video/fbdev/cyber2000fb.c static int cyberpro_common_probe(struct cfb_info *cfb)
cfb              1528 drivers/video/fbdev/cyber2000fb.c 	cyberpro_init_hw(cfb);
cfb              1535 drivers/video/fbdev/cyber2000fb.c 	cfb->mem_ctl1 = cyber2000_grphr(EXT_MEM_CTL1, cfb);
cfb              1536 drivers/video/fbdev/cyber2000fb.c 	cfb->mem_ctl2 = cyber2000_grphr(EXT_MEM_CTL2, cfb);
cfb              1541 drivers/video/fbdev/cyber2000fb.c 	switch (cfb->mem_ctl2 & MEM_CTL2_SIZE_MASK) {
cfb              1556 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.smem_len   = smem_size;
cfb              1557 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.mmio_len   = MMIO_SIZE;
cfb              1558 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.screen_base    = cfb->region;
cfb              1561 drivers/video/fbdev/cyber2000fb.c 	if (cyber2000fb_setup_ddc_bus(cfb) == 0)
cfb              1562 drivers/video/fbdev/cyber2000fb.c 		cfb->ddc_registered = true;
cfb              1566 drivers/video/fbdev/cyber2000fb.c 	if (!fb_find_mode(&cfb->fb.var, &cfb->fb, NULL, NULL, 0,
cfb              1568 drivers/video/fbdev/cyber2000fb.c 		printk(KERN_ERR "%s: no valid mode found\n", cfb->fb.fix.id);
cfb              1572 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.var.yres_virtual = cfb->fb.fix.smem_len * 8 /
cfb              1573 drivers/video/fbdev/cyber2000fb.c 			(cfb->fb.var.bits_per_pixel * cfb->fb.var.xres_virtual);
cfb              1575 drivers/video/fbdev/cyber2000fb.c 	if (cfb->fb.var.yres_virtual < cfb->fb.var.yres)
cfb              1576 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.var.yres_virtual = cfb->fb.var.yres;
cfb              1586 drivers/video/fbdev/cyber2000fb.c 	h_sync = 1953125000 / cfb->fb.var.pixclock;
cfb              1587 drivers/video/fbdev/cyber2000fb.c 	h_sync = h_sync * 512 / (cfb->fb.var.xres + cfb->fb.var.left_margin +
cfb              1588 drivers/video/fbdev/cyber2000fb.c 		 cfb->fb.var.right_margin + cfb->fb.var.hsync_len);
cfb              1589 drivers/video/fbdev/cyber2000fb.c 	v_sync = h_sync / (cfb->fb.var.yres + cfb->fb.var.upper_margin +
cfb              1590 drivers/video/fbdev/cyber2000fb.c 		 cfb->fb.var.lower_margin + cfb->fb.var.vsync_len);
cfb              1593 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.fix.id, cfb->fb.fix.smem_len >> 10,
cfb              1594 drivers/video/fbdev/cyber2000fb.c 		cfb->fb.var.xres, cfb->fb.var.yres,
cfb              1597 drivers/video/fbdev/cyber2000fb.c 	err = cyber2000fb_i2c_register(cfb);
cfb              1601 drivers/video/fbdev/cyber2000fb.c 	err = register_framebuffer(&cfb->fb);
cfb              1603 drivers/video/fbdev/cyber2000fb.c 		cyber2000fb_i2c_unregister(cfb);
cfb              1607 drivers/video/fbdev/cyber2000fb.c 	if (err && cfb->ddc_registered)
cfb              1608 drivers/video/fbdev/cyber2000fb.c 		i2c_del_adapter(&cfb->ddc_adapter);
cfb              1613 drivers/video/fbdev/cyber2000fb.c static void cyberpro_common_remove(struct cfb_info *cfb)
cfb              1615 drivers/video/fbdev/cyber2000fb.c 	unregister_framebuffer(&cfb->fb);
cfb              1617 drivers/video/fbdev/cyber2000fb.c 	if (cfb->ddc_registered)
cfb              1618 drivers/video/fbdev/cyber2000fb.c 		i2c_del_adapter(&cfb->ddc_adapter);
cfb              1620 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_i2c_unregister(cfb);
cfb              1623 drivers/video/fbdev/cyber2000fb.c static void cyberpro_common_resume(struct cfb_info *cfb)
cfb              1625 drivers/video/fbdev/cyber2000fb.c 	cyberpro_init_hw(cfb);
cfb              1630 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_MEM_CTL1, cfb->mem_ctl1, cfb);
cfb              1631 drivers/video/fbdev/cyber2000fb.c 	cyber2000_grphw(EXT_MEM_CTL2, cfb->mem_ctl2, cfb);
cfb              1637 drivers/video/fbdev/cyber2000fb.c 	cyber2000fb_set_par(&cfb->fb);
cfb              1650 drivers/video/fbdev/cyber2000fb.c static int cyberpro_pci_enable_mmio(struct cfb_info *cfb)
cfb              1692 drivers/video/fbdev/cyber2000fb.c 	if (cfb->id == ID_CYBERPRO_2010) {
cfb              1694 drivers/video/fbdev/cyber2000fb.c 		       cfb->fb.fix.id);
cfb              1696 drivers/video/fbdev/cyber2000fb.c 		val = cyber2000_grphr(EXT_BUS_CTL, cfb);
cfb              1699 drivers/video/fbdev/cyber2000fb.c 				cfb->fb.fix.id);
cfb              1703 drivers/video/fbdev/cyber2000fb.c 			if (cfb->id == ID_CYBERPRO_5000)
cfb              1706 drivers/video/fbdev/cyber2000fb.c 			cyber2000_grphw(EXT_BUS_CTL, val, cfb);
cfb              1716 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb;
cfb              1727 drivers/video/fbdev/cyber2000fb.c 	cfb = cyberpro_alloc_fb_info(id->driver_data, name);
cfb              1728 drivers/video/fbdev/cyber2000fb.c 	if (!cfb)
cfb              1731 drivers/video/fbdev/cyber2000fb.c 	err = pci_request_regions(dev, cfb->fb.fix.id);
cfb              1735 drivers/video/fbdev/cyber2000fb.c 	cfb->irq = dev->irq;
cfb              1736 drivers/video/fbdev/cyber2000fb.c 	cfb->region = pci_ioremap_bar(dev, 0);
cfb              1737 drivers/video/fbdev/cyber2000fb.c 	if (!cfb->region) {
cfb              1742 drivers/video/fbdev/cyber2000fb.c 	cfb->regs = cfb->region + MMIO_OFFSET;
cfb              1743 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.device = &dev->dev;
cfb              1744 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.mmio_start = pci_resource_start(dev, 0) + MMIO_OFFSET;
cfb              1745 drivers/video/fbdev/cyber2000fb.c 	cfb->fb.fix.smem_start = pci_resource_start(dev, 0);
cfb              1753 drivers/video/fbdev/cyber2000fb.c 	err = cyberpro_pci_enable_mmio(cfb);
cfb              1760 drivers/video/fbdev/cyber2000fb.c 	cfb->mclk_mult = cyber2000_grphr(EXT_MCLK_MULT, cfb);
cfb              1761 drivers/video/fbdev/cyber2000fb.c 	cfb->mclk_div  = cyber2000_grphr(EXT_MCLK_DIV, cfb);
cfb              1768 drivers/video/fbdev/cyber2000fb.c 		cfb->mclk_mult = 0xdb;
cfb              1769 drivers/video/fbdev/cyber2000fb.c 		cfb->mclk_div  = 0x54;
cfb              1773 drivers/video/fbdev/cyber2000fb.c 	err = cyberpro_common_probe(cfb);
cfb              1780 drivers/video/fbdev/cyber2000fb.c 	pci_set_drvdata(dev, cfb);
cfb              1782 drivers/video/fbdev/cyber2000fb.c 		int_cfb_info = cfb;
cfb              1787 drivers/video/fbdev/cyber2000fb.c 	iounmap(cfb->region);
cfb              1791 drivers/video/fbdev/cyber2000fb.c 	cyberpro_free_fb_info(cfb);
cfb              1798 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = pci_get_drvdata(dev);
cfb              1800 drivers/video/fbdev/cyber2000fb.c 	if (cfb) {
cfb              1801 drivers/video/fbdev/cyber2000fb.c 		cyberpro_common_remove(cfb);
cfb              1802 drivers/video/fbdev/cyber2000fb.c 		iounmap(cfb->region);
cfb              1803 drivers/video/fbdev/cyber2000fb.c 		cyberpro_free_fb_info(cfb);
cfb              1805 drivers/video/fbdev/cyber2000fb.c 		if (cfb == int_cfb_info)
cfb              1822 drivers/video/fbdev/cyber2000fb.c 	struct cfb_info *cfb = pci_get_drvdata(dev);
cfb              1824 drivers/video/fbdev/cyber2000fb.c 	if (cfb) {
cfb              1825 drivers/video/fbdev/cyber2000fb.c 		cyberpro_pci_enable_mmio(cfb);
cfb              1826 drivers/video/fbdev/cyber2000fb.c 		cyberpro_common_resume(cfb);
cfb               493 drivers/video/fbdev/cyber2000fb.h void cyber2000fb_enable_extregs(struct cfb_info *cfb);
cfb               494 drivers/video/fbdev/cyber2000fb.h void cyber2000fb_disable_extregs(struct cfb_info *cfb);