Lines Matching refs:vlist

587 	bus_dma_segment_t *vlist;  in md_malloc_move_vlist()  local
592 vlist = *pvlist; in md_malloc_move_vlist()
597 seg_len = imin(vlist->ds_len - ma_offs, len); in md_malloc_move_vlist()
598 p = (uint8_t *)(uintptr_t)vlist->ds_addr + ma_offs; in md_malloc_move_vlist()
628 if (ma_offs == vlist->ds_len) { in md_malloc_move_vlist()
630 vlist++; in md_malloc_move_vlist()
634 *pvlist = vlist; in md_malloc_move_vlist()
645 bus_dma_segment_t *vlist; in mdstart_malloc() local
662 vlist = (bp->bio_flags & BIO_VLIST) != 0 ? in mdstart_malloc()
668 KASSERT(vlist == NULL, ("vlists cannot be unmapped")); in mdstart_malloc()
669 } else if (vlist != NULL) { in mdstart_malloc()
690 } else if (vlist != NULL) { in mdstart_malloc()
691 error = md_malloc_move_vlist(&vlist, in mdstart_malloc()
701 } else if (vlist != NULL) { in mdstart_malloc()
702 error = md_malloc_move_vlist(&vlist, in mdstart_malloc()
712 } else if (vlist != NULL) { in mdstart_malloc()
713 error = md_malloc_move_vlist(&vlist, in mdstart_malloc()
730 } else if (vlist != NULL) { in mdstart_malloc()
731 error1 = md_malloc_move_vlist(&vlist, in mdstart_malloc()
763 } else if (vlist != NULL) { in mdstart_malloc()
765 &vlist, &ma_offs, in mdstart_malloc()
779 } else if (vlist != NULL) { in mdstart_malloc()
781 &vlist, &ma_offs, in mdstart_malloc()
799 if (!notmapped && vlist == NULL) in mdstart_malloc()
807 mdcopyto_vlist(void *src, bus_dma_segment_t *vlist, off_t offset, off_t len) in mdcopyto_vlist() argument
811 while (offset >= vlist->ds_len) { in mdcopyto_vlist()
812 offset -= vlist->ds_len; in mdcopyto_vlist()
813 vlist++; in mdcopyto_vlist()
817 seg_len = omin(len, vlist->ds_len - offset); in mdcopyto_vlist()
818 bcopy(src, (void *)(uintptr_t)(vlist->ds_addr + offset), in mdcopyto_vlist()
823 vlist++; in mdcopyto_vlist()
828 mdcopyfrom_vlist(bus_dma_segment_t *vlist, off_t offset, void *dst, off_t len) in mdcopyfrom_vlist() argument
832 while (offset >= vlist->ds_len) { in mdcopyfrom_vlist()
833 offset -= vlist->ds_len; in mdcopyfrom_vlist()
834 vlist++; in mdcopyfrom_vlist()
838 seg_len = omin(len, vlist->ds_len - offset); in mdcopyfrom_vlist()
839 bcopy((void *)(uintptr_t)(vlist->ds_addr + offset), dst, in mdcopyfrom_vlist()
844 vlist++; in mdcopyfrom_vlist()
886 bus_dma_segment_t *vlist; in mdstart_vnode() local
949 vlist = (bus_dma_segment_t *)bp->bio_data; in mdstart_vnode()
951 piov->iov_base = (void *)(uintptr_t)(vlist->ds_addr + in mdstart_vnode()
953 piov->iov_len = vlist->ds_len - ma_offs; in mdstart_vnode()
958 vlist++; in mdstart_vnode()
1029 bus_dma_segment_t *vlist; in mdstart_swap() local
1046 vlist = (bp->bio_flags & BIO_VLIST) != 0 ? in mdstart_swap()
1091 vlist, ma_offs, len); in mdstart_swap()
1115 physcopyin_vlist(vlist, ma_offs, in mdstart_swap()