FreeBSD/sys/dev/drm2/radeon/radeon_device.c
/**
 * radeon_dummy_page_init - init dummy page used by the driver
 *
 * @rdev: radeon_device pointer
 *
 * Allocate the dummy page used by the driver (all asics).
 * This dummy page is used by the driver as a filler for gart entries
 * when pages are taken out of the GART
 * Returns 0 on success, -ENOMEM on failure.
 */
init dummy page used by the driver
@rdev: radeon_device pointer

Allocate the dummy page used by the driver (all asics).
This dummy page is used by the driver as a filler for gart entries
when pages are taken out of the GART
Returns 0 on success, -ENOMEM on failure.
init dummy page used by the driver @rdev : radeon_device pointer Allocate the dummy page used by the driver ( all asics ) . This dummy page is used by the driver as a filler for gart entries when pages are taken out of the GART Returns 0 on success - ENOMEM on failure .
int radeon_dummy_page_init(struct radeon_device *rdev)
{
	if (rdev->dummy_page.dmah)
		return 0;
	rdev->dummy_page.dmah = drm_pci_alloc(rdev->ddev,
	    PAGE_SIZE, PAGE_SIZE, BUS_SPACE_MAXADDR_32BIT);
	if (rdev->dummy_page.dmah == NULL)
		return -ENOMEM;
	rdev->dummy_page.addr = rdev->dummy_page.dmah->busaddr;
	return 0;
}
int radeon_dummy_page_init ( struct radeon_device * rdev ) { if ( rdev -> dummy_page . dmah ) return 0 ; rdev -> dummy_page . dmah = drm_pci_alloc ( rdev -> ddev , PAGE_SIZE , PAGE_SIZE , BUS_SPACE_MAXADDR_32BIT ) ; if ( rdev -> dummy_page . dmah == NULL ) return - ENOMEM ; rdev -> dummy_page . addr = rdev -> dummy_page . dmah -> busaddr ; return 0 ; }
radeon_dummy_page_init - init dummy page used by the driver
 @rdev: radeon_device pointer
radeon_dummy_page_init - init dummy page used by the driver @rdev : radeon_device pointer