Lines Matching refs:ret

170 	int ret;
173 ret = get_drm_dev(drm_dev);
175 if (ret == DCMD_OK) {
184 return (ret);
197 int ret;
207 ret = get_drm_dev(drm_dev);
208 if (ret == DCMD_OK)
213 return (ret);
226 int ret;
231 ret = get_i915_private(dev_priv);
232 if (ret == DCMD_OK) {
240 return (ret);
347 int ret = DCMD_OK;
368 ret = DCMD_ERR;
377 return (ret);
384 int ret = DCMD_OK;
390 ret = DCMD_ERR;
400 ret = DCMD_ERR;
405 return (ret);
436 int ret = DCMD_OK;
457 ret = get_i915_private(dev_priv);
458 if (ret != DCMD_OK) {
482 ret = get_drm_dev(drm_dev);
483 if (ret != DCMD_OK)
490 ret = DCMD_ERR;
501 ret = DCMD_ERR;
512 ret = obj_walk_list((uintptr_t)dev_priv->mm.active_list.next,
514 if (ret != DCMD_OK)
523 ret = obj_walk_list((uintptr_t)dev_priv->mm.inactive_list.next,
525 if (ret != DCMD_OK)
533 ret = obj_walk_list((uintptr_t)dev_priv->mm.bound_list.next,
535 if (ret != DCMD_OK)
544 ret = obj_walk_list((uintptr_t)dev_priv->mm.unbound_list.next,
546 if (ret != DCMD_OK)
553 return (ret);
577 int ret = DCMD_OK;
596 ret = get_i915_private(dev_priv);
597 if (ret != DCMD_OK) {
624 return (ret);
643 int ret = DCMD_OK;
646 ret = get_drm_dev(drm_dev);
647 if (ret != DCMD_OK) {
658 return (ret);
665 int ret = DCMD_OK;
670 ret = DCMD_ERR;
671 return (ret);
677 ret = DCMD_ERR;
678 return (ret);
681 return (ret);
697 int ret = DCMD_OK;
705 ret = get_i915_private(dev_priv);
706 if (ret != DCMD_OK) {
709 ret = i915_read(dev_priv, addr, &val);
710 if (ret == DCMD_ERR) {
717 return (ret);
745 int ret = DCMD_OK;
754 ret = get_drm_dev(dev);
755 if (ret == DCMD_ERR)
759 ret = get_i915_private(dev_priv);
760 if (ret != DCMD_OK) {
764 ret = i915_read(dev_priv, (uintptr_t)PGTBL_ER, &val);
765 if (ret == DCMD_OK)
768 ret = i915_read(dev_priv, (uintptr_t)INSTPM, &val);
769 if (ret == DCMD_OK)
772 ret = i915_read(dev_priv, (uintptr_t)EIR, &val);
773 if (ret == DCMD_OK)
776 ret = i915_read(dev_priv, (uintptr_t)ERROR_GEN6, &val);
777 if (ret == DCMD_OK)
781 ret = i915_read(dev_priv, (uintptr_t)0x22064, &val);
782 if (ret == DCMD_OK)
785 ret = i915_read(dev_priv, (uintptr_t)0x22068, &val);
786 if (ret == DCMD_OK)
789 ret = i915_read(dev_priv, (uintptr_t)0x2206C, &val);
790 if (ret == DCMD_OK)
793 ret = i915_read(dev_priv, (uintptr_t)0x22074, &val);
794 if (ret == DCMD_OK)
799 ret = i915_read(dev_priv, (uintptr_t)IPEIR_I965, &val);
800 if (ret == DCMD_OK)
803 ret = i915_read(dev_priv, (uintptr_t)IPEHR_I965, &val);
804 if (ret == DCMD_OK)
807 ret = i915_read(dev_priv, (uintptr_t)INSTDONE_I965, &val);
808 if (ret == DCMD_OK)
811 ret = i915_read(dev_priv, (uintptr_t)INSTPS, &val);
812 if (ret == DCMD_OK)
815 ret = i915_read(dev_priv, (uintptr_t)INSTDONE1, &val);
816 if (ret == DCMD_OK)
819 ret = i915_read(dev_priv, (uintptr_t)ACTHD_I965, &val);
820 if (ret == DCMD_OK)
823 ret = i915_read(dev_priv, (uintptr_t)0x2078, &val);
824 if (ret == DCMD_OK)
827 ret = i915_read(dev_priv, (uintptr_t)0x04094, &val);
828 if (ret == DCMD_OK)
831 ret = i915_read(dev_priv, (uintptr_t)0x04194, &val);
832 if (ret == DCMD_OK)
835 ret = i915_read(dev_priv, (uintptr_t)0x04294, &val);
836 if (ret == DCMD_OK)
848 return (ret);
874 int ret = DCMD_OK;
884 ret = DCMD_ERR;
906 ret = DCMD_ERR;
916 ret = DCMD_ERR;
928 return (ret);
953 int ret, i;
960 ret = get_i915_private(dev_priv);
961 if (ret != DCMD_OK) {
982 ret = DCMD_ERR;
992 ret = DCMD_ERR;
1004 ret = DCMD_ERR;
1020 return (ret);
1063 int ret;
1075 ret = get_drm_dev(drm_dev);
1076 if (ret == DCMD_ERR)
1080 ret = get_i915_private(dev_priv);
1081 if (ret != DCMD_OK) {
1088 ret = DCMD_ERR;
1106 return (ret);
1121 int ret = DCMD_OK;
1142 ret = DCMD_ERR;
1151 return (ret);
1158 int ret = DCMD_OK;
1165 ret = DCMD_ERR;
1172 ret = DCMD_ERR;
1178 return (ret);
1195 int ret = DCMD_OK;
1203 ret = get_i915_private(dev_priv);
1204 if (ret != DCMD_OK) {
1208 ret = request_walk_list((uintptr_t)dev_priv->ring[0].request_list.next,
1210 if (ret != DCMD_OK) {
1213 ret = request_walk_list((uintptr_t)dev_priv->ring[1].request_list.next,
1215 if (ret != DCMD_OK) {
1218 ret = request_walk_list((uintptr_t)dev_priv->ring[2].request_list.next,
1220 if (ret != DCMD_OK) {
1226 return (ret);
1233 int i, ret = DCMD_OK;
1239 ret = DCMD_ERR;
1253 return (ret);
1269 int ret = DCMD_OK;
1277 ret = get_i915_private(dev_priv);
1278 if (ret != DCMD_OK) {
1282 ret = get_hws_info((uintptr_t)dev_priv->ring[0].status_page.page_addr,
1284 if (ret != DCMD_OK) {
1287 ret = get_hws_info((uintptr_t)dev_priv->ring[1].status_page.page_addr,
1289 if (ret != DCMD_OK) {
1292 ret = get_hws_info((uintptr_t)dev_priv->ring[2].status_page.page_addr,
1294 if (ret != DCMD_OK) {
1301 return (ret);
1322 int i, ret = DCMD_OK;
1331 ret = get_i915_private(dev_priv);
1332 if (ret != DCMD_OK) {
1356 return (ret);
1379 int pipe, ret = DCMD_OK;
1388 ret = get_drm_dev(dev);
1389 if (ret == DCMD_ERR)
1393 ret = get_i915_private(dev_priv);
1394 if (ret != DCMD_OK) {
1401 ret = DCMD_ERR;
1406 ret = i915_read(dev_priv, (uintptr_t)VLV_IER, &val);
1407 if (ret == DCMD_OK)
1410 ret = i915_read(dev_priv, (uintptr_t)VLV_IIR, &val);
1411 if (ret == DCMD_OK)
1414 ret = i915_read(dev_priv, (uintptr_t)VLV_IIR_RW, &val);
1415 if (ret == DCMD_OK)
1418 ret = i915_read(dev_priv, (uintptr_t)VLV_IMR, &val);
1419 if (ret == DCMD_OK)
1423 ret = i915_read(dev_priv, PIPESTAT(pipe), &val);
1424 if (ret == DCMD_OK)
1428 ret = i915_read(dev_priv, (uintptr_t)VLV_MASTER_IER, &val);
1429 if (ret == DCMD_OK)
1432 ret = i915_read(dev_priv, (uintptr_t)GTIER, &val);
1433 if (ret == DCMD_OK)
1436 ret = i915_read(dev_priv, (uintptr_t)GTIIR, &val);
1437 if (ret == DCMD_OK)
1440 ret = i915_read(dev_priv, (uintptr_t)GTIMR, &val);
1441 if (ret == DCMD_OK)
1444 ret = i915_read(dev_priv, (uintptr_t)GEN6_PMIER, &val);
1445 if (ret == DCMD_OK)
1448 ret = i915_read(dev_priv, (uintptr_t)GEN6_PMIIR, &val);
1449 if (ret == DCMD_OK)
1452 ret = i915_read(dev_priv, (uintptr_t)GEN6_PMIMR, &val);
1453 if (ret == DCMD_OK)
1456 ret = i915_read(dev_priv, (uintptr_t)PORT_HOTPLUG_EN, &val);
1457 if (ret == DCMD_OK)
1460 ret = i915_read(dev_priv, (uintptr_t)VLV_DPFLIPSTAT, &val);
1461 if (ret == DCMD_OK)
1464 ret = i915_read(dev_priv, (uintptr_t)DPINVGTT, &val);
1465 if (ret == DCMD_OK)
1468 ret = i915_read(dev_priv, (uintptr_t)IER, &val);
1469 if (ret == DCMD_OK)
1472 ret = i915_read(dev_priv, (uintptr_t)IIR, &val);
1473 if (ret == DCMD_OK)
1476 ret = i915_read(dev_priv, (uintptr_t)IMR, &val);
1477 if (ret == DCMD_OK)
1481 ret = i915_read(dev_priv, (uintptr_t)PIPESTAT(pipe),
1483 if (ret == DCMD_OK)
1488 ret = i915_read(dev_priv, (uintptr_t)DEIER, &val);
1489 if (ret == DCMD_OK)
1494 ret = i915_read(dev_priv, (uintptr_t)DEIIR, &val);
1495 if (ret == DCMD_OK)
1499 ret = i915_read(dev_priv, (uintptr_t)DEIMR, &val);
1500 if (ret == DCMD_OK)
1505 ret = i915_read(dev_priv, (uintptr_t)SDEIER, &val);
1506 if (ret == DCMD_OK)
1511 ret = i915_read(dev_priv, (uintptr_t)SDEIIR, &val);
1512 if (ret == DCMD_OK)
1516 ret = i915_read(dev_priv, (uintptr_t)SDEIMR, &val);
1517 if (ret == DCMD_OK)
1522 ret = i915_read(dev_priv, (uintptr_t)GTIER, &val);
1523 if (ret == DCMD_OK)
1527 ret = i915_read(dev_priv, (uintptr_t)GTIIR, &val);
1528 if (ret == DCMD_OK)
1533 ret = i915_read(dev_priv, (uintptr_t)GTIMR, &val);
1534 if (ret == DCMD_OK)
1545 return (ret);
1560 int ret = DCMD_OK;
1568 ret = get_i915_private(dev_priv);
1569 if (ret != DCMD_OK) {
1574 ret = get_hws_info((uintptr_t)dev_priv->ring[0].status_page.page_addr,
1576 if (ret != DCMD_OK) {
1581 ret = get_hws_info((uintptr_t)dev_priv->ring[1].status_page.page_addr,
1583 if (ret != DCMD_OK) {
1588 ret = get_hws_info((uintptr_t)dev_priv->ring[2].status_page.page_addr,
1590 if (ret != DCMD_OK) {
1596 return (ret);
1614 int ret = DCMD_OK;
1623 ret = get_drm_dev(dev);
1624 if (ret == DCMD_ERR)
1628 ret = get_i915_private(dev_priv);
1629 if (ret != DCMD_OK) {
1636 ret = DCMD_ERR;
1646 ret = i915_read(dev_priv, (uintptr_t)ILK_DPFC_CONTROL, &val);
1647 if (ret == DCMD_OK) {
1654 ret = i915_read(dev_priv, (uintptr_t)DPFC_CONTROL, &val);
1655 if (ret == DCMD_OK) {
1662 ret = i915_read(dev_priv, (uintptr_t)FBC_CONTROL, &val);
1663 if (ret == DCMD_OK) {
1711 return (ret);
1721 int ret = DCMD_OK;
1730 ret = get_drm_dev(dev);
1731 if (ret == DCMD_ERR)
1735 ret = get_i915_private(dev_priv);
1736 if (ret != DCMD_OK) {
1743 ret = DCMD_ERR;
1748 ret = i915_read(dev_priv, (uintptr_t)WM1_LP_ILK, &val);
1749 if (ret == DCMD_OK) {
1756 ret = i915_read(dev_priv, (uintptr_t)FW_BLC_SELF, &val);
1757 if (ret == DCMD_OK) {
1764 ret = i915_read(dev_priv, (uintptr_t)INSTPM, &val);
1765 if (ret == DCMD_OK) {
1772 ret = i915_read(dev_priv, (uintptr_t)DSPFW3, &val);
1773 if (ret == DCMD_OK) {
1789 return (ret);
1809 int ret = DCMD_OK;
1817 ret = get_drm_dev(dev);
1818 if (ret == DCMD_ERR)
1822 ret = get_i915_private(dev_priv);
1823 if (ret != DCMD_OK) {
1830 ret = DCMD_ERR;
1837 ret = DCMD_ERR;
1854 return (ret);
1863 int ret = DCMD_OK;
1872 ret = get_i915_private(dev_priv);
1873 if (ret != DCMD_OK) {
1884 return (ret);
1929 int ret = DCMD_OK;
1938 ret = get_drm_dev(dev);
1939 if (ret == DCMD_ERR)
1943 ret = get_i915_private(dev_priv);
1944 if (ret != DCMD_OK) {
1951 ret = DCMD_ERR;
1961 ret = i915_read(dev_priv, (uintptr_t)DCC, &val);
1962 if (ret == DCMD_OK)
1965 ret = i915_read(dev_priv, (uintptr_t)C0DRB3, &val);
1966 if (ret == DCMD_OK)
1969 ret = i915_read(dev_priv, (uintptr_t)C1DRB3, &val);
1970 if (ret == DCMD_OK)
1974 ret = i915_read(dev_priv, (uintptr_t)MAD_DIMM_C0, &val);
1975 if (ret == DCMD_OK)
1978 ret = i915_read(dev_priv, (uintptr_t)MAD_DIMM_C1, &val);
1979 if (ret == DCMD_OK)
1982 ret = i915_read(dev_priv, (uintptr_t)MAD_DIMM_C2, &val);
1983 if (ret == DCMD_OK)
1986 ret = i915_read(dev_priv, (uintptr_t)TILECTL, &val);
1987 if (ret == DCMD_OK)
1990 ret = i915_read(dev_priv, (uintptr_t)ARB_MODE, &val);
1991 if (ret == DCMD_OK)
1994 ret = i915_read(dev_priv, (uintptr_t)DISP_ARB_CTL, &val);
1995 if (ret == DCMD_OK)
2005 return (ret);
2025 int i, ret = DCMD_OK;
2034 ret = get_drm_dev(dev);
2035 if (ret == DCMD_ERR)
2039 ret = get_i915_private(dev_priv);
2040 if (ret != DCMD_OK) {
2047 ret = DCMD_ERR;
2052 ret = i915_read(dev_priv, (uintptr_t)GFX_MODE, &val);
2053 if (ret == DCMD_OK)
2060 ret = i915_read(dev_priv,
2063 if (ret == DCMD_OK)
2066 ret = i915_read(dev_priv,
2068 if (ret == DCMD_OK)
2071 ret = i915_read(dev_priv,
2073 if (ret == DCMD_OK)
2076 ret = i915_read(dev_priv,
2078 if (ret == DCMD_OK)
2087 ret = DCMD_ERR;
2095 ret = i915_read(dev_priv, (uintptr_t)GAM_ECOCHK, &val);
2096 if (ret == DCMD_OK)
2104 return (ret);