• Home
  • Raw
  • Download

Lines Matching +full:vm +full:- +full:pointer

47 /*--------------------------------------------------------------------------*/
48 /* --------------------------- Defines ------------------------------------ */
49 /*--------------------------------------------------------------------------*/
70 /*--------------------------------------------------------------------------*/
71 /* ----------------------------- Enums ------------------------------------ */
72 /*--------------------------------------------------------------------------*/
87 /** DMA-buf fd handle */
96 /** Define known types of GPU VM VA ranges */
107 /*--------------------------------------------------------------------------*/
108 /* -------------------------- Datatypes ----------------------------------- */
109 /*--------------------------------------------------------------------------*/
112 * Define opaque pointer to context associated with fd.
120 * Define GPU Context type as pointer to opaque structure
146 /*--------------------------------------------------------------------------*/
147 /* -------------------------- Structures ---------------------------------- */
148 /*--------------------------------------------------------------------------*/
162 * for physical back-up storage (e.g. for displayable surface).
193 * ASIC-specific tiling information (also used by DCE).
218 * for physical back-up storage.
303 * - The size is in units of dwords (4 bytes).
304 * - Could be 0
383 * Structure which provide information about GPU VM MC Address space
493 /*--------------------------------------------------------------------------*/
494 /*------------------------- Functions --------------------------------------*/
495 /*--------------------------------------------------------------------------*/
504 * \param fd - \c [in] File descriptor for AMD GPU device
510 * \param major_version - \c [out] Major version of library. It is assumed
513 * \param minor_version - \c [out] Minor version of library
514 * \param device_handle - \c [out] Pointer to opaque context which should
520 * <0 - Negative POSIX Error code
536 * \param device_handle - \c [in] Context associated with file
542 * <0 - Negative POSIX Error code
551 * /param device_handle - \c [in] Device handle.
570 * \param dev - \c [in] Device handle.
572 * \param alloc_buffer - \c [in] Pointer to the structure describing an
574 * \param buf_handle - \c [out] Allocated buffer handle
577 * <0 - Negative POSIX Error code
588 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
589 * \param buf_handle - \c [in] Buffer handle
590 * \param info - \c [in] Metadata to associated with buffer
593 * <0 - Negative POSIX Error code
602 * \param dev - \c [in] Device handle.
604 * \param buf_handle - \c [in] Buffer handle
605 * \param info - \c [out] Structure describing buffer
608 * <0 - Negative POSIX Error code
618 * \param dev - \c [in] Device handle.
620 * \param buf_handle - \c [in] Buffer handle
621 * \param type - \c [in] Type of handle requested
622 * \param shared_handle - \c [out] Special "shared" handle
625 * <0 - Negative POSIX Error code
637 * \param dev - \c [in] Device handle.
639 * \param type - \c [in] Type of handle requested
640 * \param shared_handle - \c [in] Shared handle received as result "import"
642 * \param output - \c [out] Pointer to structure with information
646 * <0 - Negative POSIX Error code
662 * \param dev - [in] Device handle. See #amdgpu_device_initialize()
663 * \param cpu - [in] CPU address of user allocated memory which we
666 * \param size - [in] Size of allocation (must be correctly aligned)
667 * \param buf_handle - [out] Buffer handle for the userptr memory
672 * <0 - Negative POSIX Error code
676 * "locked" / make non-pageable. The purpose of this call is to provide
697 * \param dev - [in] Device handle. See #amdgpu_device_initialize()
698 * \param cpu - [in] CPU address of user allocated memory which we
701 * \param size - [in] Size of allocation (must be correctly aligned)
702 * \param buf_handle - [out] Buffer handle for the userptr memory
704 * \param offset_in_bo - [out] offset in this BO for this user memory
708 * <0 - Negative POSIX Error code
720 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
721 * \param buf_handle - \c [in] Buffer handle to free
724 * <0 - Negative POSIX Error code
740 * \param bo - \c [in] Buffer object handle to increase the reference count
750 * \param buf_handle - \c [in] Buffer handle
751 * \param cpu - \c [out] CPU address to be used for access
754 * <0 - Negative POSIX Error code
764 * \param buf_handle - \c [in] Buffer handle
767 * <0 - Negative POSIX Error code
777 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
778 * \param buf_handle - \c [in] Buffer handle.
779 * \param timeout_ns - Timeout in nanoseconds.
780 * \param buffer_busy - 0 if buffer is idle, all GPU access was completed
784 * \return 0 - on success
785 * <0 - Negative POSIX Error code
794 * \param dev - \c [in] Device handle.
796 * \param number_of_buffers - \c [in] Number of BOs in the list
797 * \param buffers - \c [in] List of BO handles
798 * \param result - \c [out] Created BO list handle
801 * <0 - Negative POSIX Error code
813 * \param bo_list - \c [in] BO list handle.
816 * <0 - Negative POSIX Error code
825 * \param dev - \c [in] Device handle.
827 * \param number_of_resources - \c [in] Number of BOs in the list
828 * \param resources - \c [in] List of BO handles
829 * \param resource_prios - \c [in] Optional priority for each handle
830 * \param result - \c [out] Created BO list handle
833 * <0 - Negative POSIX Error code
846 * \param handle - \c [in] BO list handle.
849 * <0 - Negative POSIX Error code
858 * \param handle - \c [in] BO list handle
859 * \param number_of_resources - \c [in] Number of BOs in the list
860 * \param resources - \c [in] List of BO handles
861 * \param resource_prios - \c [in] Optional priority for each handle
864 * <0 - Negative POSIX Error code
888 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
889 * \param priority - \c [in] Context creation flags. See AMDGPU_CTX_PRIORITY_*
890 * \param context - \c [out] GPU Context handle
893 * <0 - Negative POSIX Error code
917 * \param context - \c [in] GPU Context handle
920 * <0 - Negative POSIX Error code
930 * \param dev - \c [in] device handle
931 * \param context - \c [in] context handle for context id
932 * \param master_fd - \c [in] The master fd to authorize the override.
933 * \param priority - \c [in] The priority to assign to the context.
945 * \param dev - \c [in] device handle
946 * \param op - \c [in] AMDGPU_CTX_OP_{GET,SET}_STABLE_PSTATE
947 * \param flags - \c [in] AMDGPU_CTX_STABLE_PSTATE_*
948 * \param out_flags - \c [out] output current stable pstate
960 * \param context - \c [in] GPU Context handle
961 * \param state - \c [out] One of AMDGPU_CTX_*_RESET
962 * \param hangs - \c [out] Number of hangs caused by the context.
965 * <0 - Negative POSIX Error code
976 * \param context - \c [in] GPU Context handle
977 * \param flags - \c [out] A combination of AMDGPU_CTX_QUERY2_FLAGS_*
980 * <0 - Negative POSIX Error code
1007 * \param dev - \c [in] Device handle.
1009 * \param context - \c [in] GPU Context
1010 * \param flags - \c [in] Global submission flags
1011 * \param ibs_request - \c [in/out] Pointer to submission requests.
1015 * \param number_of_requests - \c [in] Number of submission requests
1018 * <0 - Negative POSIX Error code
1037 * \param fence - \c [in] Structure describing fence to query
1038 * \param timeout_ns - \c [in] Timeout value to wait
1039 * \param flags - \c [in] Flags for the query
1040 * \param expired - \c [out] If fence expired or not.\n
1042 * !0 - otherwise
1045 * <0 - Negative POSIX Error code
1062 * \param fences - \c [in] The fence array to wait
1063 * \param fence_count - \c [in] The fence count
1064 * \param wait_all - \c [in] If true, wait all fences to be signaled,
1066 * \param timeout_ns - \c [in] The timeout to wait, in nanoseconds
1067 * \param status - \c [out] '1' for signaled, '0' for timeout
1068 * \param first - \c [out] the index of the first signaled fence from @fences
1071 * <0 - Negative POSIX Error code
1090 * UMD should query information about GPU VM MC size alignments requirements
1094 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1095 * \param info - \c [out] Pointer to structure to get size alignment
1099 * <0 - Negative POSIX Error code
1109 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1110 * \param fw_type - \c [in] AMDGPU_INFO_FW_*
1111 * \param ip_instance - \c [in] Index of the IP block of the same type.
1112 * \param index - \c [in] Index of the engine. (for SDMA and MEC)
1113 * \param version - \c [out] Pointer to to the "version" return value
1114 * \param feature - \c [out] Pointer to to the "feature" return value
1117 * <0 - Negative POSIX Error code
1127 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1128 * \param type - \c [in] Hardware IP block type = AMDGPU_HW_IP_*
1129 * \param count - \c [out] Pointer to structure to get information
1132 * <0 - Negative POSIX Error code
1143 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1144 * \param type - \c [in] Hardware IP block type = AMDGPU_HW_IP_*
1145 * \param ip_instance - \c [in] Index of the IP block of the same type.
1146 * \param info - \c [out] Pointer to structure to get information
1149 * <0 - Negative POSIX Error code
1161 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1162 * \param heap - \c [in] Heap type
1163 * \param info - \c [in] Pointer to structure to get needed information
1166 * <0 - Negative POSIX Error code
1175 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1176 * \param id - \c [in] Mode object ID
1177 * \param result - \c [in] Pointer to the CRTC ID
1180 * <0 - Negative POSIX Error code
1191 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1192 * \param heap - \c [in] Heap type
1193 * \param info - \c [in] Pointer to structure to get needed information
1196 * <0 - Negative POSIX Error code
1205 * The return size is query-specific and depends on the "info_id" parameter.
1208 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1209 * \param info_id - \c [in] AMDGPU_INFO_*
1210 * \param size - \c [in] Size of the returned value.
1211 * \param value - \c [out] Pointer to the return value.
1214 * <0 - Negative POSIX error code
1223 * The return size is query-specific and depends on the "info_id" parameter.
1226 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1227 * \param info - \c [in] amdgpu_sw_info_*
1228 * \param value - \c [out] Pointer to the return value.
1231 * <0 - Negative POSIX error code
1240 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1241 * \param gds_info - \c [out] Pointer to structure to get GDS information
1244 * <0 - Negative POSIX Error code
1253 * The return size is query-specific and depends on the "sensor_type"
1256 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1257 * \param sensor_type - \c [in] AMDGPU_INFO_SENSOR_*
1258 * \param size - \c [in] Size of the returned value.
1259 * \param value - \c [out] Pointer to the return value.
1262 * <0 - Negative POSIX Error code
1273 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1274 * \param caps_type - \c [in] AMDGPU_INFO_VIDEO_CAPS_DECODE(ENCODE)
1275 * \param size - \c [in] Size of the returned value.
1276 * \param value - \c [out] Pointer to the return value.
1279 * <0 - Negative POSIX Error code
1286 * Query information about VM faults
1290 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1291 * \param size - \c [in] Size of the returned value.
1292 * \param value - \c [out] Pointer to the return value.
1295 * <0 - Negative POSIX Error code
1302 * Read a set of consecutive memory-mapped registers.
1305 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize(
1306 * \param dword_offset - \c [in] Register offset in dwords
1307 * \param count - \c [in] The number of registers to read starting
1309 * \param instance - \c [in] GRBM_GFX_INDEX selector. It may have other
1311 * \param flags - \c [in] Flags with additional information.
1312 * \param values - \c [out] The pointer to return values.
1315 * <0 - Negative POSIX error code
1332 * \param dev - [in] Device handle. See #amdgpu_device_initialize()
1333 * \param va_range_type - \c [in] Type of MC va range from which to allocate
1334 * \param size - \c [in] Size of range. Size must be correctly* aligned.
1337 * \param va_base_alignment - \c [in] Overwrite base address alignment
1338 * requirement for GPU VM MC virtual
1342 * \param va_base_required - \c [in] Specified required va base address.
1346 * \param va_base_allocated - \c [out] On return: Allocated VA base to be used
1348 * \param va_range_handle - \c [out] On return: Handle assigned to allocation
1349 * \param flags - \c [in] flags for special VA range
1352 * >0 - AMD specific error code\n
1353 * <0 - Negative POSIX Error code
1360 * It is client responsibility to correctly handle multi-GPU cases and to pass
1378 * \param va_range_handle - \c [in] Handle assigned to VA allocation
1381 * >0 - AMD specific error code\n
1382 * <0 - Negative POSIX Error code
1395 * UMD can query GPU VM range supported by each device
1398 * \param dev - [in] Device handle. See #amdgpu_device_initialize()
1399 * \param type - \c [in] Type of virtual address range
1400 * \param offset - \c [out] Start offset of virtual address range
1401 * \param size - \c [out] Size of virtual address range
1404 * <0 - Negative POSIX Error code
1416 * \param bo - \c [in] BO handle
1417 * \param offset - \c [in] Start offset to map
1418 * \param size - \c [in] Size to map
1419 * \param addr - \c [in] Start virtual address.
1420 * \param flags - \c [in] Supported flags for mapping/unmapping
1421 * \param ops - \c [in] AMDGPU_VA_OP_MAP or AMDGPU_VA_OP_UNMAP
1424 * <0 - Negative POSIX Error code
1438 * This is not a simple drop-in extension for amdgpu_bo_va_op; instead, all
1442 * \param dev - \c [in] device handle
1443 * \param bo - \c [in] BO handle (may be NULL)
1444 * \param offset - \c [in] Start offset to map
1445 * \param size - \c [in] Size to map
1446 * \param addr - \c [in] Start virtual address.
1447 * \param flags - \c [in] Supported flags for mapping/unmapping
1448 * \param ops - \c [in] AMDGPU_VA_OP_MAP or AMDGPU_VA_OP_UNMAP
1451 * <0 - Negative POSIX Error code
1466 * \param sem - \c [out] semaphore handle
1469 * <0 - Negative POSIX Error code
1477 * \param context - \c [in] GPU Context
1478 * \param ip_type - \c [in] Hardware IP block type = AMDGPU_HW_IP_*
1479 * \param ip_instance - \c [in] Index of the IP block of the same type
1480 * \param ring - \c [in] Specify ring index of the IP
1481 * \param sem - \c [in] semaphore handle
1484 * <0 - Negative POSIX Error code
1496 * \param context - \c [in] GPU Context
1497 * \param ip_type - \c [in] Hardware IP block type = AMDGPU_HW_IP_*
1498 * \param ip_instance - \c [in] Index of the IP block of the same type
1499 * \param ring - \c [in] Specify ring index of the IP
1500 * \param sem - \c [in] semaphore handle
1503 * <0 - Negative POSIX Error code
1515 * \param sem - \c [in] semaphore handle
1518 * <0 - Negative POSIX Error code
1526 * \param dev - \c [in] Device handle. See #amdgpu_device_initialize()
1536 * \param dev - \c [in] device handle
1537 * \param flags - \c [in] flags that affect creation
1538 * \param syncobj - \c [out] sync object handle
1541 * <0 - Negative POSIX Error code
1551 * \param dev - \c [in] device handle
1552 * \param syncobj - \c [out] sync object handle
1555 * <0 - Negative POSIX Error code
1563 * \param dev - \c [in] device handle
1564 * \param syncobj - \c [in] sync object handle
1567 * <0 - Negative POSIX Error code
1576 * \param dev - \c [in] device handle
1577 * \param syncobjs - \c [in] array of sync object handles
1578 * \param syncobj_count - \c [in] number of handles in syncobjs
1581 * <0 - Negative POSIX Error code
1590 * \param dev - \c [in] device handle
1591 * \param syncobjs - \c [in] array of sync object handles
1592 * \param syncobj_count - \c [in] number of handles in syncobjs
1595 * <0 - Negative POSIX Error code
1604 * \param dev - \c [in] device handle
1605 * \param syncobjs - \c [in] array of sync object handles
1606 * \param points - \c [in] array of timeline points
1607 * \param syncobj_count - \c [in] number of handles in syncobjs
1610 * <0 - Negative POSIX Error code
1621 * \param dev - \c [in] self-explanatory
1622 * \param handles - \c [in] array of sync object handles
1623 * \param num_handles - \c [in] self-explanatory
1624 * \param timeout_nsec - \c [in] self-explanatory
1625 * \param flags - \c [in] a bitmask of DRM_SYNCOBJ_WAIT_FLAGS_*
1626 * \param first_signaled - \c [in] self-explanatory
1629 * -ETIME - Timeout
1630 * <0 - Negative POSIX Error code
1641 * \param dev - \c [in] self-explanatory
1642 * \param handles - \c [in] array of sync object handles
1643 * \param points - \c [in] array of sync points to wait
1644 * \param num_handles - \c [in] self-explanatory
1645 * \param timeout_nsec - \c [in] self-explanatory
1646 * \param flags - \c [in] a bitmask of DRM_SYNCOBJ_WAIT_FLAGS_*
1647 * \param first_signaled - \c [in] self-explanatory
1650 * -ETIME - Timeout
1651 * <0 - Negative POSIX Error code
1662 * \param dev - \c [in] self-explanatory
1663 * \param handles - \c [in] array of sync object handles
1664 * \param points - \c [out] array of sync points returned, which presents
1666 * \param num_handles - \c [in] self-explanatory
1669 * -ETIME - Timeout
1670 * <0 - Negative POSIX Error code
1679 * \param dev - \c [in] self-explanatory
1680 * \param handles - \c [in] array of sync object handles
1681 * \param points - \c [out] array of sync points returned, which presents
1683 * \param num_handles - \c [in] self-explanatory
1684 * \param flags - \c [in] a bitmask of DRM_SYNCOBJ_QUERY_FLAGS_*
1687 * -ETIME - Timeout
1688 * <0 - Negative POSIX Error code
1698 * \param dev - \c [in] device handle
1699 * \param syncobj - \c [in] sync object handle
1700 * \param shared_fd - \c [out] shared file descriptor.
1703 * <0 - Negative POSIX Error code
1712 * \param dev - \c [in] device handle
1713 * \param shared_fd - \c [in] shared file descriptor.
1714 * \param syncobj - \c [out] sync object handle
1717 * <0 - Negative POSIX Error code
1727 * \param dev - \c [in] device handle
1728 * \param syncobj - \c [in] sync object handle
1729 * \param sync_file_fd - \c [out] sync_file file descriptor.
1732 * <0 - Negative POSIX Error code
1742 * \param dev - \c [in] device handle
1743 * \param syncobj - \c [in] sync object handle
1744 * \param sync_file_fd - \c [in] sync_file file descriptor.
1747 * <0 - Negative POSIX Error code
1756 * \param dev - \c [in] device handle
1757 * \param syncobj - \c [in] sync object handle
1758 * \param point - \c [in] timeline point
1759 * \param flags - \c [in] flags
1760 * \param sync_file_fd - \c [out] sync_file file descriptor.
1763 * <0 - Negative POSIX Error code
1775 * \param dev - \c [in] device handle
1776 * \param syncobj - \c [in] sync object handle
1777 * \param point - \c [in] timeline point
1778 * \param sync_file_fd - \c [in] sync_file file descriptor.
1781 * <0 - Negative POSIX Error code
1792 * \param dev - \c [in] device handle
1793 * \param dst_handle - \c [in] sync object handle
1794 * \param dst_point - \c [in] timeline point, 0 presents dst is binary
1795 * \param src_handle - \c [in] sync object handle
1796 * \param src_point - \c [in] timeline point, 0 presents src is binary
1797 * \param flags - \c [in] flags
1800 * <0 - Negative POSIX Error code
1817 * <0 - Negative POSIX Error code
1827 * \param dev - \c [in] device handle
1828 * \param context - \c [in] context handle for context id
1829 * \param bo_list_handle - \c [in] request bo list handle (0 for none)
1830 * \param num_chunks - \c [in] number of CS chunks to submit
1831 * \param chunks - \c [in] array of CS chunks
1832 * \param seq_no - \c [out] output sequence number for submission.
1835 * <0 - Negative POSIX Error code
1852 * \param dev - \c [in] device handle
1853 * \param context - \c [in] context handle for context id
1854 * \param bo_list_handle - \c [in] raw bo list handle (0 for none)
1855 * \param num_chunks - \c [in] number of CS chunks to submit
1856 * \param chunks - \c [in] array of CS chunks
1857 * \param seq_no - \c [out] output sequence number for submission.
1860 * <0 - Negative POSIX Error code
1878 * \param context - \c [in] GPU Context
1879 * \param flags - \c [in] TBD
1887 * \param context - \c [in] GPU Context
1888 * \param flags - \c [in] TBD