FreeBSD/sys/kern/subr_bus_dma.c
/*
 * Load a list of physical addresses.
 */
Load a list of physical addresses.
Load a list of physical addresses .
static int
_bus_dmamap_load_plist(bus_dma_tag_t dmat, bus_dmamap_t map,
    bus_dma_segment_t *list, int sglist_cnt, int *nsegs, int flags)
{
	int error;
	error = 0;
	for (; sglist_cnt > 0; sglist_cnt--, list++) {
		error = _bus_dmamap_load_phys(dmat, map,
		    (vm_paddr_t)list->ds_addr, list->ds_len, flags, NULL,
		    nsegs);
		if (error)
			break;
	}
	return (error);
}
static int _bus_dmamap_load_plist ( bus_dma_tag_t dmat , bus_dmamap_t map , bus_dma_segment_t * list , int sglist_cnt , int * nsegs , int flags ) { int error ; error = 0 ; for ( ; sglist_cnt > 0 ; sglist_cnt -- , list ++ ) { error = _bus_dmamap_load_phys ( dmat , map , ( vm_paddr_t ) list -> ds_addr , list -> ds_len , flags , NULL , nsegs ) ; if ( error ) break ; } return ( error ) ; }
Load a list of physical addresses.
Load a list of physical addresses .