Lines Matching refs:sgt_append
442 int sg_alloc_append_table_from_pages(struct sg_append_table *sgt_append, in sg_alloc_append_table_from_pages() argument
449 struct scatterlist *s = sgt_append->prv; in sg_alloc_append_table_from_pages()
459 if (IS_ENABLED(CONFIG_ARCH_NO_SG_CHAIN) && sgt_append->prv) in sg_alloc_append_table_from_pages()
462 if (sgt_append->prv) { in sg_alloc_append_table_from_pages()
464 (page_to_pfn(sg_page(sgt_append->prv)) * PAGE_SIZE + in sg_alloc_append_table_from_pages()
465 sgt_append->prv->offset + sgt_append->prv->length) / in sg_alloc_append_table_from_pages()
472 prv_len = sgt_append->prv->length; in sg_alloc_append_table_from_pages()
474 if (sgt_append->prv->length + PAGE_SIZE > max_segment) in sg_alloc_append_table_from_pages()
476 sgt_append->prv->length += PAGE_SIZE; in sg_alloc_append_table_from_pages()
513 s = get_next_sg(sgt_append, s, chunks - i + left_pages, in sg_alloc_append_table_from_pages()
520 if (sgt_append->prv) in sg_alloc_append_table_from_pages()
521 sgt_append->prv->length = prv_len; in sg_alloc_append_table_from_pages()
532 sgt_append->sgt.nents += added_nents; in sg_alloc_append_table_from_pages()
533 sgt_append->sgt.orig_nents = sgt_append->sgt.nents; in sg_alloc_append_table_from_pages()
534 sgt_append->prv = s; in sg_alloc_append_table_from_pages()