Lines Matching refs:sglist

42 #include <sys/sglist.h>
52 static MALLOC_DEFINE(M_SGLIST, "sglist", "scatter/gather lists");
55 * Convenience macros to save the state of an sglist so it can be restored
56 * if an append attempt fails. Since sglist's only grow we only need to
81 * Append a single (paddr, len) to a sglist. sg is the list and ss is
86 _sglist_append_range(struct sglist *sg, struct sglist_seg **ssp,
111 _sglist_append_buf(struct sglist *sg, void *buf, size_t len, pmap_t pmap,
283 struct sglist *
286 struct sglist *sg;
288 sg = malloc(sizeof(struct sglist) + nsegs * sizeof(struct sglist_seg),
300 sglist_free(struct sglist *sg)
316 sglist_append(struct sglist *sg, void *buf, size_t len)
337 sglist_append_bio(struct sglist *sg, struct bio *bp)
354 sglist_append_phys(struct sglist *sg, vm_paddr_t paddr, size_t len)
384 sglist_append_mbuf_epg(struct sglist *sg, struct mbuf *m, size_t off,
441 sglist_append_mbuf(struct sglist *sg, struct mbuf *m0)
475 sglist_append_vmpages(struct sglist *sg, vm_page_t *m, size_t pgoff,
520 sglist_append_user(struct sglist *sg, void *buf, size_t len, struct thread *td)
541 sglist_append_sglist(struct sglist *sg, struct sglist *source, size_t offset,
584 sglist_append_uio(struct sglist *sg, struct uio *uio)
632 sglist_consume_uio(struct sglist *sg, struct uio *uio, size_t resid)
681 struct sglist *
684 struct sglist *sg;
704 struct sglist *
705 sglist_clone(struct sglist *sg, int mflags)
707 struct sglist *new;
725 sglist_length(struct sglist *sg)
745 * If '*head' is not NULL, it should point to an empty sglist. If it
754 sglist_split(struct sglist *original, struct sglist **head, size_t length,
757 struct sglist *sg;
764 /* Figure out how big of a sglist '*head' has to hold. */
832 sglist_join(struct sglist *first, struct sglist *second)
879 * If '*slice' is not NULL, it should point to an empty sglist. If it
885 sglist_slice(struct sglist *original, struct sglist **slice, size_t offset,
888 struct sglist *sg;