Lines Matching refs:crtc
1220 struct vbe_crtc_ib *crtc = NULL; in uvesafb_set_par() local
1246 crtc = kzalloc(sizeof(struct vbe_crtc_ib), GFP_KERNEL); in uvesafb_set_par()
1247 if (!crtc) { in uvesafb_set_par()
1251 crtc->horiz_start = info->var.xres + info->var.right_margin; in uvesafb_set_par()
1252 crtc->horiz_end = crtc->horiz_start + info->var.hsync_len; in uvesafb_set_par()
1253 crtc->horiz_total = crtc->horiz_end + info->var.left_margin; in uvesafb_set_par()
1255 crtc->vert_start = info->var.yres + info->var.lower_margin; in uvesafb_set_par()
1256 crtc->vert_end = crtc->vert_start + info->var.vsync_len; in uvesafb_set_par()
1257 crtc->vert_total = crtc->vert_end + info->var.upper_margin; in uvesafb_set_par()
1259 crtc->pixel_clock = PICOS2KHZ(info->var.pixclock) * 1000; in uvesafb_set_par()
1260 crtc->refresh_rate = (u16)(100 * (crtc->pixel_clock / in uvesafb_set_par()
1261 (crtc->vert_total * crtc->horiz_total))); in uvesafb_set_par()
1264 crtc->flags |= 0x1; in uvesafb_set_par()
1266 crtc->flags |= 0x2; in uvesafb_set_par()
1268 crtc->flags |= 0x4; in uvesafb_set_par()
1270 crtc->flags |= 0x8; in uvesafb_set_par()
1271 memcpy(&par->crtc, crtc, sizeof(*crtc)); in uvesafb_set_par()
1273 memset(&par->crtc, 0, sizeof(*crtc)); in uvesafb_set_par()
1277 task->buf = &par->crtc; in uvesafb_set_par()
1285 if (crtc != NULL) { in uvesafb_set_par()
1289 kfree(crtc); in uvesafb_set_par()
1290 crtc = NULL; in uvesafb_set_par()
1323 kfree(crtc); in uvesafb_set_par()