Lines Matching full:seg
62 struct bus_dma_segment *seg; member
374 struct bus_dma_segment *seg; in xdma_dmamap_cb() local
378 seg = slr->seg; in xdma_dmamap_cb()
388 seg[i].ds_addr = segs[i].ds_addr; in xdma_dmamap_cb()
389 seg[i].ds_len = segs[i].ds_len; in xdma_dmamap_cb()
395 struct bus_dma_segment *seg) in _xdma_load_data_busdma() argument
411 xr->buf.map, xr->m, seg, &nsegs, BUS_DMA_NOWAIT); in _xdma_load_data_busdma()
416 slr.seg = seg; in _xdma_load_data_busdma()
442 slr.seg = seg; in _xdma_load_data_busdma()
483 struct bus_dma_segment *seg) in _xdma_load_data() argument
504 seg[0].ds_addr = (bus_addr_t)xr->buf.paddr; in _xdma_load_data()
525 seg[0].ds_addr = va; in _xdma_load_data()
527 seg[0].ds_addr = mtod(m, bus_addr_t); in _xdma_load_data()
528 seg[0].ds_len = m->m_pkthdr.len; in _xdma_load_data()
541 struct xdma_request *xr, struct bus_dma_segment *seg) in xdma_load_data() argument
548 nsegs = _xdma_load_data_busdma(xchan, xr, seg); in xdma_load_data()
550 nsegs = _xdma_load_data(xchan, xr, seg); in xdma_load_data()
564 struct bus_dma_segment seg[XDMA_MAX_SEG]; in xdma_process() local
614 nsegs = xdma_load_data(xchan, xr, seg); in xdma_process()
618 xdma_sglist_add(&sg[n], seg, nsegs, xr); in xdma_process()