lib/dma.h
/* Convert a start address and length to its containing page numbers. */
Convert a start address and length to its containing page numbers.
Convert a start address and length to its containing page numbers .
static inline void
range_to_pages(size_t start, size_t len, size_t pgsize,
               size_t *pgstart, size_t *pgend)
{
    *pgstart = start / pgsize;
    *pgend = ROUND_UP(start + len, pgsize) / pgsize;
}
static inline void range_to_pages ( size_t start , size_t len , size_t pgsize , size_t * pgstart , size_t * pgend ) { * pgstart = start / pgsize ; * pgend = ROUND_UP ( start + len , pgsize ) / pgsize ; }
Convert a start address and length to its containing page numbers.
Convert a start address and length to its containing page numbers .