• Home
  • Raw
  • Download

Lines Matching refs:offset

390 				unsigned int n_pages, unsigned int offset,  in __sg_alloc_table_from_pages()  argument
432 chunk_size = ((j - cur_page) << PAGE_SHIFT) - offset; in __sg_alloc_table_from_pages()
434 min_t(unsigned long, size, chunk_size), offset); in __sg_alloc_table_from_pages()
436 offset = 0; in __sg_alloc_table_from_pages()
465 unsigned int n_pages, unsigned int offset, in sg_alloc_table_from_pages() argument
468 return __sg_alloc_table_from_pages(sgt, pages, n_pages, offset, size, in sg_alloc_table_from_pages()
614 return PAGE_ALIGN(sg->offset + sg->length) >> PAGE_SHIFT; in sg_page_count()
638 return PAGE_ALIGN(sg->offset + sg_dma_len(sg)) >> PAGE_SHIFT; in sg_dma_page_count()
695 miter->__offset = miter->piter.sg_pgoffset ? 0 : sg->offset; in sg_miter_get_next_page()
698 miter->__remaining = sg->offset + sg->length - in sg_miter_get_next_page()
726 bool sg_miter_skip(struct sg_mapping_iter *miter, off_t offset) in sg_miter_skip() argument
730 while (offset) { in sg_miter_skip()
736 consumed = min_t(off_t, offset, miter->__remaining); in sg_miter_skip()
739 offset -= consumed; in sg_miter_skip()
843 unsigned int offset = 0; in sg_copy_buffer() local
857 while ((offset < buflen) && sg_miter_next(&miter)) { in sg_copy_buffer()
860 len = min(miter.length, buflen - offset); in sg_copy_buffer()
863 memcpy(buf + offset, miter.addr, len); in sg_copy_buffer()
865 memcpy(miter.addr, buf + offset, len); in sg_copy_buffer()
867 offset += len; in sg_copy_buffer()
872 return offset; in sg_copy_buffer()
958 unsigned int offset = 0; in sg_zero_buffer() local
967 while (offset < buflen && sg_miter_next(&miter)) { in sg_zero_buffer()
970 len = min(miter.length, buflen - offset); in sg_zero_buffer()
973 offset += len; in sg_zero_buffer()
977 return offset; in sg_zero_buffer()