Lines Matching full:sg
52 xchan->sg = malloc(sz, M_XDMA, M_WAITOK | M_ZERO); in xchan_sglist_alloc()
63 free(xchan->sg, M_XDMA); in xchan_sglist_free()
69 xdma_sglist_add(struct xdma_sglist *sg, struct bus_dma_segment *seg, in xdma_sglist_add() argument
78 sg[i].src_width = xr->src_width; in xdma_sglist_add()
79 sg[i].dst_width = xr->dst_width; in xdma_sglist_add()
82 sg[i].src_addr = seg[i].ds_addr; in xdma_sglist_add()
83 sg[i].dst_addr = xr->dst_addr; in xdma_sglist_add()
85 sg[i].src_addr = xr->src_addr; in xdma_sglist_add()
86 sg[i].dst_addr = seg[i].ds_addr; in xdma_sglist_add()
88 sg[i].len = seg[i].ds_len; in xdma_sglist_add()
89 sg[i].direction = xr->direction; in xdma_sglist_add()
91 sg[i].first = 0; in xdma_sglist_add()
92 sg[i].last = 0; in xdma_sglist_add()
95 sg[0].first = 1; in xdma_sglist_add()
96 sg[nsegs - 1].last = 1; in xdma_sglist_add()