'\" t .\" Title: drm_prime_sg_to_page_addr_arrays .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: May 2018 .\" Manual: DRM Core .\" Source: Kernel Hackers Manual 3.16.56 .\" Language: English .\" .TH "DRM_PRIME_SG_TO_PAGE" "9" "May 2018" "Kernel Hackers Manual 3\&.16\&" "DRM Core" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" drm_prime_sg_to_page_addr_arrays \- convert an sg table into a page array .SH "SYNOPSIS" .HP \w'int\ drm_prime_sg_to_page_addr_arrays('u .BI "int drm_prime_sg_to_page_addr_arrays(struct\ sg_table\ *\ " "sgt" ", struct\ page\ **\ " "pages" ", dma_addr_t\ *\ " "addrs" ", int\ " "max_pages" ");" .SH "ARGUMENTS" .PP \fIsgt\fR .RS 4 scatter\-gather table to convert .RE .PP \fIpages\fR .RS 4 array of page pointers to store the page array in .RE .PP \fIaddrs\fR .RS 4 optional array to store the dma bus address of each page .RE .PP \fImax_pages\fR .RS 4 size of both the passed\-in arrays .RE .SH "DESCRIPTION" .PP Exports an sg table into an array of pages and addresses\&. This is currently required by the TTM driver in order to do correct fault handling\&. .SH "AUTHORS" .PP \fBJesse Barnes\fR <\&jesse.barnes@intel.com\&> .br Intel Corporation, .RS 4 Initial version .RE .PP \fBLaurent Pinchart\fR <\&laurent.pinchart@ideasonboard.com\&> .br Ideas on board SPRL, .RS 4 Driver internals .RE .PP \fBDaniel Vetter\fR <\&daniel.vetter@ffwll.ch\&> .br Intel Corporation, .RS 4 Contributions all over the place .RE .SH "COPYRIGHT" .br