network/uinet/sys/arm/arm/busdma_machdep.c
/*
 * Return true if a match is made.
 *
 * To find a match walk the chain of bus_dma_tag_t's looking for 'paddr'.
 *
 * If paddr is within the bounds of the dma tag then call the filter callback
 * to check for a match, if there is no filter callback then assume a match.
 */
Return true if a match is made.
To find a match walk the chain of bus_dma_tag_t's looking for 'paddr'.

If paddr is within the bounds of the dma tag then call the filter callback
to check for a match, if there is no filter callback then assume a match.
Return true if a match is made . To find a match walk the chain of bus_dma_tag_t ' s looking for ' paddr ' . If paddr is within the bounds of the dma tag then call the filter callback to check for a match if there is no filter callback then assume a match .
static int
run_filter(bus_dma_tag_t dmat, bus_addr_t paddr)
{
	int retval;
	retval = 0;
	do {
		if (((paddr > dmat->lowaddr && paddr <= dmat->highaddr)
		 || ((paddr & (dmat->alignment - 1)) != 0))
		 && (dmat->filter == NULL
		  || (*dmat->filter)(dmat->filterarg, paddr) != 0))
			retval = 1;
		dmat = dmat->parent;		
	} while (retval == 0 && dmat != NULL);
	return (retval);
}
static int run_filter ( bus_dma_tag_t dmat , bus_addr_t paddr ) { int retval ; retval = 0 ; do { if ( ( ( paddr > dmat -> lowaddr && paddr <= dmat -> highaddr ) || ( ( paddr & ( dmat -> alignment - 1 ) ) != 0 ) ) && ( dmat -> filter == NULL || ( * dmat -> filter ) ( dmat -> filterarg , paddr ) != 0 ) ) retval = 1 ; dmat = dmat -> parent ; } while ( retval == 0 && dmat != NULL ) ; return ( retval ) ; }
Return true if a match is made.
Return true if a match is made .