Lines Matching refs:base

39 	container_of(x, struct vmw_screen_target_display_unit, base.crtc)
41 container_of(x, struct vmw_screen_target_display_unit, base.encoder)
43 container_of(x, struct vmw_screen_target_display_unit, base.connector)
56 * @base: The base type we derive from. Used by vmw_kms_helper_dirty().
68 struct vmw_kms_dirty base;
106 * @base: VMW specific DU structure
116 struct vmw_display_unit base;
180 cmd->body.stid = stdu->base.unit;
188 stdu->base.set_gui_x = cmd->body.xRoot;
189 stdu->base.set_gui_y = cmd->body.yRoot;
239 cmd->body.stid = stdu->base.unit;
300 vmw_stdu_populate_update(cmd, stdu->base.unit,
339 cmd->body.stid = stdu->base.unit;
374 conn_state = stdu->base.connector.state;
457 container_of(dirty, struct vmw_stdu_dirty, base);
492 container_of(dirty, struct vmw_stdu_dirty, base);
494 container_of(dirty->unit, typeof(*stdu), base);
508 vmw_bo_get_guest_ptr(&ddirty->buf->base, &cmd->body.guest.ptr);
515 suffix->maximumOffset = ddirty->buf->base.num_pages * PAGE_SIZE;
520 vmw_stdu_populate_update(&suffix[1], stdu->base.unit,
543 container_of(dirty, struct vmw_stdu_dirty, base);
574 container_of(dirty, struct vmw_stdu_dirty, base);
576 container_of(dirty->unit, typeof(*stdu), base);
594 dst_bo = &stdu->display_srf->res.backup->base;
598 src_bo = &ddirty->buf->base;
630 dev_priv = vmw_priv(stdu->base.crtc.dev);
635 vmw_stdu_populate_update(cmd, stdu->base.unit,
684 container_of(vfb, struct vmw_framebuffer_bo, base)->buffer;
708 ddirty.pitch = vfb->base.pitches[0];
710 ddirty.base.fifo_commit = vmw_stdu_bo_fifo_commit;
711 ddirty.base.clip = vmw_stdu_bo_clip;
712 ddirty.base.fifo_reserve_size = sizeof(struct vmw_stdu_dma) +
716 ddirty.base.fifo_reserve_size += sizeof(struct vmw_stdu_update);
720 ddirty.base.fifo_commit = vmw_stdu_bo_cpu_commit;
721 ddirty.base.clip = vmw_stdu_bo_cpu_clip;
722 ddirty.base.fifo_reserve_size = 0;
725 ddirty.base.crtc = crtc;
728 0, 0, num_clips, increment, &ddirty.base);
750 container_of(dirty, struct vmw_stdu_dirty, base);
753 container_of(dirty->unit, typeof(*stdu), base);
789 container_of(dirty, struct vmw_stdu_dirty, base);
791 container_of(dirty->unit, typeof(*stdu), base);
817 vmw_stdu_populate_update(update, stdu->base.unit, sdirty->left,
860 container_of(framebuffer, typeof(*vfbs), base);
883 sdirty.base.fifo_commit = vmw_kms_stdu_surface_fifo_commit;
884 sdirty.base.clip = vmw_kms_stdu_surface_clip;
885 sdirty.base.fifo_reserve_size = sizeof(struct vmw_stdu_surface_copy) +
888 sdirty.base.crtc = crtc;
895 &sdirty.base);
1194 stdu = container_of(update->du, typeof(*stdu), base);
1195 vfbbo = container_of(update->vfb, typeof(*vfbbo), base);
1201 vmw_bo_get_guest_ptr(&vfbbo->buffer->base, &cmd_dma->body.guest.ptr);
1202 cmd_dma->body.guest.pitch = update->vfb->base.pitches[0];
1237 stdu = container_of(update->du, typeof(*stdu), base);
1238 vfbbo = container_of(update->vfb, typeof(*vfbbo), base);
1241 suffix->maximumOffset = vfbbo->buffer->base.num_pages * PAGE_SIZE;
1243 vmw_stdu_populate_update(&suffix[1], stdu->base.unit, bb->x1, bb->x2,
1253 container_of(update, typeof(*bo_update), base);
1266 container_of(update, typeof(*bo_update), base);
1289 bo_update = container_of(update, typeof(*bo_update), base);
1290 stdu = container_of(update->du, typeof(*stdu), base);
1291 vfbbo = container_of(update->vfb, typeof(*vfbbo), base);
1298 dst_bo = &stdu->display_srf->res.backup->base;
1302 src_bo = &vfbbo->buffer->base;
1303 src_pitch = update->vfb->base.pitches[0];
1328 vmw_stdu_populate_update(cmd_update, stdu->base.unit,
1359 bo_update.base.plane = plane;
1360 bo_update.base.old_state = old_state;
1361 bo_update.base.dev_priv = dev_priv;
1362 bo_update.base.du = vmw_crtc_to_du(plane->state->crtc);
1363 bo_update.base.vfb = vfb;
1364 bo_update.base.out_fence = out_fence;
1365 bo_update.base.mutex = NULL;
1366 bo_update.base.cpu_blit = !(dev_priv->capabilities & SVGA_CAP_3D);
1367 bo_update.base.intr = false;
1373 if (bo_update.base.cpu_blit) {
1374 bo_update.base.calc_fifo_size = vmw_stdu_bo_fifo_size_cpu;
1375 bo_update.base.pre_clip = vmw_stdu_bo_pre_clip_cpu;
1376 bo_update.base.clip = vmw_stdu_bo_clip_cpu;
1377 bo_update.base.post_clip = vmw_stdu_bo_populate_update_cpu;
1379 bo_update.base.calc_fifo_size = vmw_stdu_bo_fifo_size;
1380 bo_update.base.pre_clip = vmw_stdu_bo_populate_dma;
1381 bo_update.base.clip = vmw_stdu_bo_populate_clip;
1382 bo_update.base.post_clip = vmw_stdu_bo_populate_update;
1385 return vmw_du_helper_plane_update(&bo_update.base);
1395 vfbs = container_of(update->vfb, typeof(*vfbs), base);
1411 vfbs = container_of(update->vfb, typeof(*vfbs), base);
1433 vfbs = container_of(update->vfb, typeof(*vfbs), base);
1471 stdu = container_of(update->du, typeof(*stdu), base);
1472 vfbs = container_of(update->vfb, typeof(*vfbs), base);
1536 vfbs = container_of(vfb, typeof(*vfbs), base);
1635 struct drm_file *file_priv = event->base.file_priv;
1639 &event->base,
1728 stdu->base.unit = unit;
1729 crtc = &stdu->base.crtc;
1730 encoder = &stdu->base.encoder;
1731 connector = &stdu->base.connector;
1732 primary = &stdu->base.primary;
1733 cursor = &stdu->base.cursor;
1735 stdu->base.pref_active = (unit == 0);
1736 stdu->base.pref_width = dev_priv->initial_width;
1737 stdu->base.pref_height = dev_priv->initial_height;
1738 stdu->base.is_implicit = false;
1762 drm_plane_cleanup(&stdu->base.primary);
1795 ret = drm_crtc_init_with_planes(dev, crtc, &stdu->base.primary,
1796 &stdu->base.cursor,
1807 drm_object_attach_property(&connector->base,
1809 drm_object_attach_property(&connector->base,
1811 drm_object_attach_property(&connector->base,
1837 vmw_du_cleanup(&stdu->base);