Lines Matching defs:dev_priv

167 get_i915_private(struct drm_i915_private *dev_priv)
176 if (mdb_vread(dev_priv, sizeof (struct drm_i915_private),
227 struct drm_i915_private *dev_priv;
229 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
231 ret = get_i915_private(dev_priv);
233 mdb_printf("gtt total size 0x%x", dev_priv->gtt.total);
235 dev_priv->gtt.mappable_end);
236 mdb_printf("gtt stolen size 0x%x", dev_priv->gtt.stolen_size);
239 mdb_free(dev_priv, sizeof (struct drm_i915_private));
435 struct drm_i915_private *dev_priv;
456 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
457 ret = get_i915_private(dev_priv);
463 dev_priv->mm.object_count, dev_priv->mm.object_memory);
512 ret = obj_walk_list((uintptr_t)dev_priv->mm.active_list.next,
523 ret = obj_walk_list((uintptr_t)dev_priv->mm.inactive_list.next,
533 ret = obj_walk_list((uintptr_t)dev_priv->mm.bound_list.next,
544 ret = obj_walk_list((uintptr_t)dev_priv->mm.unbound_list.next,
552 mdb_free(dev_priv, sizeof (struct drm_i915_private));
575 struct drm_i915_private *dev_priv;
595 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
596 ret = get_i915_private(dev_priv);
606 dev_priv->ring[0].mmio_base,
607 dev_priv->ring[0].obj);
612 dev_priv->ring[2].mmio_base,
613 dev_priv->ring[2].obj);
618 dev_priv->ring[1].mmio_base,
619 dev_priv->ring[1].obj);
623 mdb_free(dev_priv, sizeof (struct drm_i915_private));
662 i915_read(struct drm_i915_private *dev_priv, uintptr_t addr, uint32_t *val)
668 (intptr_t)dev_priv->regs) == -1) {
669 mdb_warn("Failed to read dev_priv->regs\n");
696 struct drm_i915_private *dev_priv;
704 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
705 ret = get_i915_private(dev_priv);
709 ret = i915_read(dev_priv, addr, &val);
716 mdb_free(dev_priv, sizeof (struct drm_i915_private));
744 struct drm_i915_private *dev_priv;
758 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
759 ret = get_i915_private(dev_priv);
764 ret = i915_read(dev_priv, (uintptr_t)PGTBL_ER, &val);
768 ret = i915_read(dev_priv, (uintptr_t)INSTPM, &val);
772 ret = i915_read(dev_priv, (uintptr_t)EIR, &val);
776 ret = i915_read(dev_priv, (uintptr_t)ERROR_GEN6, &val);
781 ret = i915_read(dev_priv, (uintptr_t)0x22064, &val);
785 ret = i915_read(dev_priv, (uintptr_t)0x22068, &val);
789 ret = i915_read(dev_priv, (uintptr_t)0x2206C, &val);
793 ret = i915_read(dev_priv, (uintptr_t)0x22074, &val);
799 ret = i915_read(dev_priv, (uintptr_t)IPEIR_I965, &val);
803 ret = i915_read(dev_priv, (uintptr_t)IPEHR_I965, &val);
807 ret = i915_read(dev_priv, (uintptr_t)INSTDONE_I965, &val);
811 ret = i915_read(dev_priv, (uintptr_t)INSTPS, &val);
815 ret = i915_read(dev_priv, (uintptr_t)INSTDONE1, &val);
819 ret = i915_read(dev_priv, (uintptr_t)ACTHD_I965, &val);
823 ret = i915_read(dev_priv, (uintptr_t)0x2078, &val);
827 ret = i915_read(dev_priv, (uintptr_t)0x04094, &val);
831 ret = i915_read(dev_priv, (uintptr_t)0x04194, &val);
835 ret = i915_read(dev_priv, (uintptr_t)0x04294, &val);
844 mdb_free(dev_priv, sizeof (struct drm_i915_private));
954 struct drm_i915_private *dev_priv;
958 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
960 ret = get_i915_private(dev_priv);
977 temp = (uintptr_t)dev_priv->batch_list.next;
1019 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1065 struct drm_i915_private *dev_priv;
1079 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1080 ret = get_i915_private(dev_priv);
1086 (uintptr_t)dev_priv->info) == -1) {
1093 mdb_printf("pch: %d\n", dev_priv->pch_type);
1105 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1196 struct drm_i915_private *dev_priv;
1204 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1205 ret = get_i915_private(dev_priv);
1210 ret = request_walk_list((uintptr_t)dev_priv->ring[0].request_list.next,
1215 ret = request_walk_list((uintptr_t)dev_priv->ring[1].request_list.next,
1220 ret = request_walk_list((uintptr_t)dev_priv->ring[2].request_list.next,
1227 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1270 struct drm_i915_private *dev_priv;
1278 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1279 ret = get_i915_private(dev_priv);
1284 ret = get_hws_info((uintptr_t)dev_priv->ring[0].status_page.page_addr,
1289 ret = get_hws_info((uintptr_t)dev_priv->ring[1].status_page.page_addr,
1294 ret = get_hws_info((uintptr_t)dev_priv->ring[2].status_page.page_addr,
1302 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1323 struct drm_i915_private *dev_priv;
1332 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1333 ret = get_i915_private(dev_priv);
1338 mdb_printf("Reserved fences start = %d\n", dev_priv->fence_reg_start);
1339 mdb_printf("Total fences = %d\n", dev_priv->num_fence_regs);
1341 for (i = 0; i < dev_priv->num_fence_regs; i++) {
1344 i, dev_priv->fence_regs[i].pin_count);
1346 if (dev_priv->fence_regs[i].obj != NULL) {
1348 (uintptr_t)dev_priv->fence_regs[i].obj);
1357 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1379 struct drm_i915_private *dev_priv;
1394 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1395 ret = get_i915_private(dev_priv);
1401 (uintptr_t)dev_priv->info) == -1) {
1408 ret = i915_read(dev_priv, (uintptr_t)VLV_IER, &val);
1412 ret = i915_read(dev_priv, (uintptr_t)VLV_IIR, &val);
1416 ret = i915_read(dev_priv, (uintptr_t)VLV_IIR_RW, &val);
1420 ret = i915_read(dev_priv, (uintptr_t)VLV_IMR, &val);
1425 ret = i915_read(dev_priv, PIPESTAT(pipe), &val);
1430 ret = i915_read(dev_priv, (uintptr_t)VLV_MASTER_IER, &val);
1434 ret = i915_read(dev_priv, (uintptr_t)GTIER, &val);
1438 ret = i915_read(dev_priv, (uintptr_t)GTIIR, &val);
1442 ret = i915_read(dev_priv, (uintptr_t)GTIMR, &val);
1446 ret = i915_read(dev_priv, (uintptr_t)GEN6_PMIER, &val);
1450 ret = i915_read(dev_priv, (uintptr_t)GEN6_PMIIR, &val);
1454 ret = i915_read(dev_priv, (uintptr_t)GEN6_PMIMR, &val);
1458 ret = i915_read(dev_priv, (uintptr_t)PORT_HOTPLUG_EN, &val);
1462 ret = i915_read(dev_priv, (uintptr_t)VLV_DPFLIPSTAT, &val);
1466 ret = i915_read(dev_priv, (uintptr_t)DPINVGTT, &val);
1469 } else if (dev_priv->pch_type == PCH_NONE) {
1470 ret = i915_read(dev_priv, (uintptr_t)IER, &val);
1474 ret = i915_read(dev_priv, (uintptr_t)IIR, &val);
1478 ret = i915_read(dev_priv, (uintptr_t)IMR, &val);
1483 ret = i915_read(dev_priv, (uintptr_t)PIPESTAT(pipe),
1490 ret = i915_read(dev_priv, (uintptr_t)DEIER, &val);
1496 ret = i915_read(dev_priv, (uintptr_t)DEIIR, &val);
1501 ret = i915_read(dev_priv, (uintptr_t)DEIMR, &val);
1507 ret = i915_read(dev_priv, (uintptr_t)SDEIER, &val);
1513 ret = i915_read(dev_priv, (uintptr_t)SDEIIR, &val);
1518 ret = i915_read(dev_priv, (uintptr_t)SDEIMR, &val);
1524 ret = i915_read(dev_priv, (uintptr_t)GTIER, &val);
1529 ret = i915_read(dev_priv, (uintptr_t)GTIIR, &val);
1535 ret = i915_read(dev_priv, (uintptr_t)GTIMR, &val);
1540 mdb_printf("Interrupts received: %d\n", dev_priv->irq_received);
1543 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1561 struct drm_i915_private *dev_priv;
1569 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1570 ret = get_i915_private(dev_priv);
1576 ret = get_hws_info((uintptr_t)dev_priv->ring[0].status_page.page_addr,
1583 ret = get_hws_info((uintptr_t)dev_priv->ring[1].status_page.page_addr,
1590 ret = get_hws_info((uintptr_t)dev_priv->ring[2].status_page.page_addr,
1597 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1614 struct drm_i915_private *dev_priv;
1629 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1630 ret = get_i915_private(dev_priv);
1636 (uintptr_t)dev_priv->info) == -1) {
1647 if (dev_priv->pch_type != PCH_NONE) {
1648 ret = i915_read(dev_priv, (uintptr_t)ILK_DPFC_CONTROL, &val);
1656 ret = i915_read(dev_priv, (uintptr_t)DPFC_CONTROL, &val);
1664 ret = i915_read(dev_priv, (uintptr_t)FBC_CONTROL, &val);
1677 switch (dev_priv->no_fbc_reason) {
1709 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1721 struct drm_i915_private *dev_priv;
1736 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1737 ret = get_i915_private(dev_priv);
1743 (uintptr_t)dev_priv->info) == -1) {
1749 if (dev_priv->pch_type != PCH_NONE) {
1750 ret = i915_read(dev_priv, (uintptr_t)WM1_LP_ILK, &val);
1758 ret = i915_read(dev_priv, (uintptr_t)FW_BLC_SELF, &val);
1766 ret = i915_read(dev_priv, (uintptr_t)INSTPM, &val);
1774 ret = i915_read(dev_priv, (uintptr_t)DSPFW3, &val);
1787 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1808 struct drm_i915_private *dev_priv;
1823 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1824 ret = get_i915_private(dev_priv);
1830 (uintptr_t)dev_priv->fbdev) == -1) {
1852 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1864 struct drm_i915_private *dev_priv;
1873 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1874 ret = get_i915_private(dev_priv);
1879 forcewake_count = dev_priv->forcewake_count;
1884 mdb_free(dev_priv, sizeof (struct drm_i915_private));
1929 struct drm_i915_private *dev_priv;
1944 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
1945 ret = get_i915_private(dev_priv);
1951 (uintptr_t)dev_priv->info) == -1) {
1958 swizzle_string(dev_priv->mm.bit_6_swizzle_x));
1960 swizzle_string(dev_priv->mm.bit_6_swizzle_y));
1963 ret = i915_read(dev_priv, (uintptr_t)DCC, &val);
1967 ret = i915_read(dev_priv, (uintptr_t)C0DRB3, &val);
1971 ret = i915_read(dev_priv, (uintptr_t)C1DRB3, &val);
1976 ret = i915_read(dev_priv, (uintptr_t)MAD_DIMM_C0, &val);
1980 ret = i915_read(dev_priv, (uintptr_t)MAD_DIMM_C1, &val);
1984 ret = i915_read(dev_priv, (uintptr_t)MAD_DIMM_C2, &val);
1988 ret = i915_read(dev_priv, (uintptr_t)TILECTL, &val);
1992 ret = i915_read(dev_priv, (uintptr_t)ARB_MODE, &val);
1996 ret = i915_read(dev_priv, (uintptr_t)DISP_ARB_CTL, &val);
2003 mdb_free(dev_priv, sizeof (struct drm_i915_private));
2025 struct drm_i915_private *dev_priv;
2040 dev_priv = mdb_alloc(sizeof (struct drm_i915_private), UM_SLEEP);
2041 ret = get_i915_private(dev_priv);
2047 (uintptr_t)dev_priv->info) == -1) {
2054 ret = i915_read(dev_priv, (uintptr_t)GFX_MODE, &val);
2062 ret = i915_read(dev_priv,
2063 (uintptr_t)(dev_priv->ring[i].mmio_base + 0x29c),
2068 ret = i915_read(dev_priv,
2069 (uintptr_t)(dev_priv->ring[i].mmio_base + 0x228), &val);
2073 ret = i915_read(dev_priv,
2074 (uintptr_t)(dev_priv->ring[i].mmio_base + 0x518), &val);
2078 ret = i915_read(dev_priv,
2079 (uintptr_t)(dev_priv->ring[i].mmio_base + 0x220), &val);
2084 if (dev_priv->mm.aliasing_ppgtt) {
2087 (uintptr_t)dev_priv->mm.aliasing_ppgtt) == -1) {
2097 ret = i915_read(dev_priv, (uintptr_t)GAM_ECOCHK, &val);
2102 mdb_free(dev_priv, sizeof (struct drm_i915_private));