Lines Matching refs:seg
453 int seg; in _bus_dmamap_addseg() local
472 seg = *segp; in _bus_dmamap_addseg()
473 if (seg == -1) { in _bus_dmamap_addseg()
474 seg = 0; in _bus_dmamap_addseg()
475 segs[seg].ds_addr = curaddr; in _bus_dmamap_addseg()
476 segs[seg].ds_len = sgsize; in _bus_dmamap_addseg()
478 if (curaddr == segs[seg].ds_addr + segs[seg].ds_len && in _bus_dmamap_addseg()
479 (segs[seg].ds_len + sgsize) <= dmat_maxsegsz(dmat) && in _bus_dmamap_addseg()
480 vm_addr_bound_ok(segs[seg].ds_addr, in _bus_dmamap_addseg()
481 segs[seg].ds_len + sgsize, dmat_boundary(dmat))) in _bus_dmamap_addseg()
482 segs[seg].ds_len += sgsize; in _bus_dmamap_addseg()
484 if (++seg >= dmat_nsegments(dmat)) in _bus_dmamap_addseg()
486 segs[seg].ds_addr = curaddr; in _bus_dmamap_addseg()
487 segs[seg].ds_len = sgsize; in _bus_dmamap_addseg()
490 *segp = seg; in _bus_dmamap_addseg()