Lines Matching refs:sgl
4413 static int sgl_map_user_pages(struct scatterlist *sgl, const unsigned int max_pages,
4460 sgl[0].page = pages[0];
4461 sgl[0].offset = uaddr & ~PAGE_MASK;
4463 sgl[0].length = PAGE_SIZE - sgl[0].offset;
4464 count -= sgl[0].length;
4466 sgl[i].offset = 0;
4467 sgl[i].page = pages[i];
4468 sgl[i].length = count < PAGE_SIZE ? count : PAGE_SIZE;
4473 sgl[0].length = count;
4491 static int sgl_unmap_user_pages(struct scatterlist *sgl, const unsigned int nr_pages,
4497 struct page *page = sgl[i].page;