.\" This manpage has been automatically generated by docbook2man .\" from a DocBook document. This tool can be found at: .\" .\" Please send any bug reports, improvements, comments, patches, .\" etc. to Steve Cheng . .TH "SBA_COALESCE_CHUNKS" "" "06 October 2005" "" "" .SH NAME sba_coalesce_chunks \- preprocess the SG list .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp SBA_INLINE int sba_coalesce_chunks (struct ioc * \fIioc\fB, struct scatterlist * \fIstartsg\fB, int \fInents\fB); \fR .SH "ARGUMENTS" .TP \fB\fIioc\fB\fR IO MMU structure which owns the pdir we are interested in. .TP \fB\fIstartsg\fB\fR list of IOVA/size pairs .TP \fB\fInents\fB\fR number of entries in startsg list .SH "DESCRIPTION" .PP First pass is to walk the SG list and determine where the breaks are in the DMA stream. Allocates PDIR entries but does not fill them. Returns the number of DMA chunks. .PP Doing the fill separate from the coalescing/allocation keeps the code simpler. Future enhancement could make one pass through the sglist do both.