cirrus 75 drivers/gpu/drm/cirrus/cirrus.c static u8 rreg_seq(struct cirrus_device *cirrus, u8 reg) cirrus 77 drivers/gpu/drm/cirrus/cirrus.c iowrite8(reg, cirrus->mmio + SEQ_INDEX); cirrus 78 drivers/gpu/drm/cirrus/cirrus.c return ioread8(cirrus->mmio + SEQ_DATA); cirrus 81 drivers/gpu/drm/cirrus/cirrus.c static void wreg_seq(struct cirrus_device *cirrus, u8 reg, u8 val) cirrus 83 drivers/gpu/drm/cirrus/cirrus.c iowrite8(reg, cirrus->mmio + SEQ_INDEX); cirrus 84 drivers/gpu/drm/cirrus/cirrus.c iowrite8(val, cirrus->mmio + SEQ_DATA); cirrus 90 drivers/gpu/drm/cirrus/cirrus.c static u8 rreg_crt(struct cirrus_device *cirrus, u8 reg) cirrus 92 drivers/gpu/drm/cirrus/cirrus.c iowrite8(reg, cirrus->mmio + CRT_INDEX); cirrus 93 drivers/gpu/drm/cirrus/cirrus.c return ioread8(cirrus->mmio + CRT_DATA); cirrus 96 drivers/gpu/drm/cirrus/cirrus.c static void wreg_crt(struct cirrus_device *cirrus, u8 reg, u8 val) cirrus 98 drivers/gpu/drm/cirrus/cirrus.c iowrite8(reg, cirrus->mmio + CRT_INDEX); cirrus 99 drivers/gpu/drm/cirrus/cirrus.c iowrite8(val, cirrus->mmio + CRT_DATA); cirrus 105 drivers/gpu/drm/cirrus/cirrus.c static void wreg_gfx(struct cirrus_device *cirrus, u8 reg, u8 val) cirrus 107 drivers/gpu/drm/cirrus/cirrus.c iowrite8(reg, cirrus->mmio + GFX_INDEX); cirrus 108 drivers/gpu/drm/cirrus/cirrus.c iowrite8(val, cirrus->mmio + GFX_DATA); cirrus 113 drivers/gpu/drm/cirrus/cirrus.c static void wreg_hdr(struct cirrus_device *cirrus, u8 val) cirrus 115 drivers/gpu/drm/cirrus/cirrus.c ioread8(cirrus->mmio + VGA_DAC_MASK); cirrus 116 drivers/gpu/drm/cirrus/cirrus.c ioread8(cirrus->mmio + VGA_DAC_MASK); cirrus 117 drivers/gpu/drm/cirrus/cirrus.c ioread8(cirrus->mmio + VGA_DAC_MASK); cirrus 118 drivers/gpu/drm/cirrus/cirrus.c ioread8(cirrus->mmio + VGA_DAC_MASK); cirrus 119 drivers/gpu/drm/cirrus/cirrus.c iowrite8(val, cirrus->mmio + VGA_DAC_MASK); cirrus 153 drivers/gpu/drm/cirrus/cirrus.c static void cirrus_set_start_address(struct cirrus_device *cirrus, u32 offset) cirrus 159 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, 0x0c, (u8)((addr >> 8) & 0xff)); cirrus 160 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, 0x0d, (u8)(addr & 0xff)); cirrus 162 drivers/gpu/drm/cirrus/cirrus.c tmp = rreg_crt(cirrus, 0x1b); cirrus 166 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, 0x1b, tmp); cirrus 168 drivers/gpu/drm/cirrus/cirrus.c tmp = rreg_crt(cirrus, 0x1d); cirrus 171 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, 0x1d, tmp); cirrus 174 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_mode_set(struct cirrus_device *cirrus, cirrus 199 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_V_SYNC_END, 0x20); cirrus 200 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_H_TOTAL, htotal); cirrus 201 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_H_DISP, hdispend); cirrus 202 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_H_SYNC_START, hsyncstart); cirrus 203 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_H_SYNC_END, hsyncend); cirrus 204 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_V_TOTAL, vtotal & 0xff); cirrus 205 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_V_DISP_END, vdispend & 0xff); cirrus 210 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_MAX_SCAN, tmp); cirrus 226 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_OVERFLOW, tmp); cirrus 241 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, CL_CRT1A, tmp); cirrus 244 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_MODE, 0x03); cirrus 246 drivers/gpu/drm/cirrus/cirrus.c sr07 = rreg_seq(cirrus, 0x07); cirrus 250 drivers/gpu/drm/cirrus/cirrus.c cirrus->cpp = cirrus_cpp(fb); cirrus 251 drivers/gpu/drm/cirrus/cirrus.c switch (cirrus->cpp * 8) { cirrus 271 drivers/gpu/drm/cirrus/cirrus.c wreg_seq(cirrus, 0x7, sr07); cirrus 274 drivers/gpu/drm/cirrus/cirrus.c cirrus->pitch = cirrus_pitch(fb); cirrus 275 drivers/gpu/drm/cirrus/cirrus.c tmp = cirrus->pitch / 8; cirrus 276 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, VGA_CRTC_OFFSET, tmp); cirrus 280 drivers/gpu/drm/cirrus/cirrus.c tmp |= (cirrus->pitch >> 7) & 0x10; cirrus 281 drivers/gpu/drm/cirrus/cirrus.c tmp |= (cirrus->pitch >> 6) & 0x40; cirrus 282 drivers/gpu/drm/cirrus/cirrus.c wreg_crt(cirrus, 0x1b, tmp); cirrus 285 drivers/gpu/drm/cirrus/cirrus.c wreg_gfx(cirrus, VGA_GFX_MODE, 0x40); cirrus 288 drivers/gpu/drm/cirrus/cirrus.c wreg_gfx(cirrus, VGA_GFX_MISC, 0x01); cirrus 290 drivers/gpu/drm/cirrus/cirrus.c wreg_hdr(cirrus, hdr); cirrus 292 drivers/gpu/drm/cirrus/cirrus.c cirrus_set_start_address(cirrus, 0); cirrus 302 drivers/gpu/drm/cirrus/cirrus.c struct cirrus_device *cirrus = fb->dev->dev_private; cirrus 309 drivers/gpu/drm/cirrus/cirrus.c if (cirrus->cpp == fb->format->cpp[0]) cirrus 310 drivers/gpu/drm/cirrus/cirrus.c drm_fb_memcpy_dstclip(cirrus->vram, cirrus 313 drivers/gpu/drm/cirrus/cirrus.c else if (fb->format->cpp[0] == 4 && cirrus->cpp == 2) cirrus 314 drivers/gpu/drm/cirrus/cirrus.c drm_fb_xrgb8888_to_rgb565_dstclip(cirrus->vram, cirrus 315 drivers/gpu/drm/cirrus/cirrus.c cirrus->pitch, cirrus 318 drivers/gpu/drm/cirrus/cirrus.c else if (fb->format->cpp[0] == 4 && cirrus->cpp == 3) cirrus 319 drivers/gpu/drm/cirrus/cirrus.c drm_fb_xrgb8888_to_rgb888_dstclip(cirrus->vram, cirrus 320 drivers/gpu/drm/cirrus/cirrus.c cirrus->pitch, cirrus 382 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_conn_init(struct cirrus_device *cirrus) cirrus 384 drivers/gpu/drm/cirrus/cirrus.c drm_connector_helper_add(&cirrus->conn, &cirrus_conn_helper_funcs); cirrus 385 drivers/gpu/drm/cirrus/cirrus.c return drm_connector_init(&cirrus->dev, &cirrus->conn, cirrus 416 drivers/gpu/drm/cirrus/cirrus.c struct cirrus_device *cirrus = pipe->crtc.dev->dev_private; cirrus 418 drivers/gpu/drm/cirrus/cirrus.c cirrus_mode_set(cirrus, &crtc_state->mode, plane_state->fb); cirrus 425 drivers/gpu/drm/cirrus/cirrus.c struct cirrus_device *cirrus = pipe->crtc.dev->dev_private; cirrus 431 drivers/gpu/drm/cirrus/cirrus.c cirrus->cpp != cirrus_cpp(pipe->plane.state->fb)) cirrus 432 drivers/gpu/drm/cirrus/cirrus.c cirrus_mode_set(cirrus, &crtc->mode, cirrus 464 drivers/gpu/drm/cirrus/cirrus.c static int cirrus_pipe_init(struct cirrus_device *cirrus) cirrus 466 drivers/gpu/drm/cirrus/cirrus.c return drm_simple_display_pipe_init(&cirrus->dev, cirrus 467 drivers/gpu/drm/cirrus/cirrus.c &cirrus->pipe, cirrus 472 drivers/gpu/drm/cirrus/cirrus.c &cirrus->conn); cirrus 497 drivers/gpu/drm/cirrus/cirrus.c static void cirrus_mode_config_init(struct cirrus_device *cirrus) cirrus 499 drivers/gpu/drm/cirrus/cirrus.c struct drm_device *dev = &cirrus->dev; cirrus 532 drivers/gpu/drm/cirrus/cirrus.c struct cirrus_device *cirrus; cirrus 548 drivers/gpu/drm/cirrus/cirrus.c cirrus = kzalloc(sizeof(*cirrus), GFP_KERNEL); cirrus 549 drivers/gpu/drm/cirrus/cirrus.c if (cirrus == NULL) cirrus 552 drivers/gpu/drm/cirrus/cirrus.c dev = &cirrus->dev; cirrus 556 drivers/gpu/drm/cirrus/cirrus.c dev->dev_private = cirrus; cirrus 559 drivers/gpu/drm/cirrus/cirrus.c cirrus->vram = ioremap(pci_resource_start(pdev, 0), cirrus 561 drivers/gpu/drm/cirrus/cirrus.c if (cirrus->vram == NULL) cirrus 564 drivers/gpu/drm/cirrus/cirrus.c cirrus->mmio = ioremap(pci_resource_start(pdev, 1), cirrus 566 drivers/gpu/drm/cirrus/cirrus.c if (cirrus->mmio == NULL) cirrus 569 drivers/gpu/drm/cirrus/cirrus.c cirrus_mode_config_init(cirrus); cirrus 571 drivers/gpu/drm/cirrus/cirrus.c ret = cirrus_conn_init(cirrus); cirrus 575 drivers/gpu/drm/cirrus/cirrus.c ret = cirrus_pipe_init(cirrus); cirrus 592 drivers/gpu/drm/cirrus/cirrus.c iounmap(cirrus->mmio); cirrus 594 drivers/gpu/drm/cirrus/cirrus.c iounmap(cirrus->vram); cirrus 598 drivers/gpu/drm/cirrus/cirrus.c kfree(cirrus); cirrus 607 drivers/gpu/drm/cirrus/cirrus.c struct cirrus_device *cirrus = dev->dev_private; cirrus 611 drivers/gpu/drm/cirrus/cirrus.c iounmap(cirrus->mmio); cirrus 612 drivers/gpu/drm/cirrus/cirrus.c iounmap(cirrus->vram); cirrus 614 drivers/gpu/drm/cirrus/cirrus.c kfree(cirrus); cirrus 217 drivers/gpu/drm/cirrus/cirrus_drv.h int cirrus_mm_init(struct cirrus_device *cirrus); cirrus 218 drivers/gpu/drm/cirrus/cirrus_drv.h void cirrus_mm_fini(struct cirrus_device *cirrus); cirrus 152 drivers/pcmcia/i82365.c struct cirrus_state cirrus; cirrus 297 drivers/pcmcia/i82365.c struct cirrus_state *p = &socket[s].state.cirrus; cirrus 309 drivers/pcmcia/i82365.c struct cirrus_state *p = &socket[s].state.cirrus; cirrus 324 drivers/pcmcia/i82365.c struct cirrus_state *p = &socket[s].state.cirrus;