vmwgfx/vmwgfx_hosted.h
static inline int
vmwgfx_hosted_drm_fd(const struct vmwgfx_hosted_driver *driver,
		     struct vmwgfx_hosted *hosted,
		     const struct pci_device *pci)
{
    if (!vmwgfx_is_hosted(driver))
	return -1;

    return driver->drm_fd(hosted, pci);
}
/**
 * vmwgfx_hosted_drm_fd - Return a drm file descriptor
 *
 * @driver: Pointer to a struct vmwgfx_hosted_driver as returned by
 * vmwgfx_hosted_detect()
 * @hosted: Pointer to a struct vmwgfx_hosted, as returned by
 * vmwgfx_hosted_create()
 * @pci: Pointer to a valid struct pci_device, describing our device.
 *
 * Convenience wrapper around the hosted_driver function. Returns an
 * invalid file descriptor if we're not hosted.
 */
Return a drm file descriptor
@driver: Pointer to a struct vmwgfx_hosted_driver as returned by
vmwgfx_hosted_detect()
@hosted: Pointer to a struct vmwgfx_hosted, as returned by
vmwgfx_hosted_create()
@pci: Pointer to a valid struct pci_device, describing our device.

Convenience wrapper around the hosted_driver function. Returns an
invalid file descriptor if we're not hosted.
Return a drm file descriptor @driver : Pointer to a struct vmwgfx_hosted_driver as returned by vmwgfx_hosted_detect () @hosted : Pointer to a struct vmwgfx_hosted as returned by vmwgfx_hosted_create () @pci : Pointer to a valid struct pci_device describing our device . Convenience wrapper around the hosted_driver function . Returns an invalid file descriptor if we ' re not hosted .
static inline int
vmwgfx_hosted_drm_fd(const struct vmwgfx_hosted_driver *driver,
		     struct vmwgfx_hosted *hosted,
		     const struct pci_device *pci)
{
    if (!vmwgfx_is_hosted(driver))
	return -1;
    return driver->drm_fd(hosted, pci);
}
static inline int vmwgfx_hosted_drm_fd ( const struct vmwgfx_hosted_driver * driver , struct vmwgfx_hosted * hosted , const struct pci_device * pci ) { if ( ! vmwgfx_is_hosted ( driver ) ) return -1 ; return driver -> drm_fd ( hosted , pci ) ; }
vmwgfx_hosted_drm_fd - Return a drm file descriptor
 @driver: Pointer to a struct vmwgfx_hosted_driver as returned by
 vmwgfx_hosted_detect()
 @hosted: Pointer to a struct vmwgfx_hosted, as returned by
 vmwgfx_hosted_create()
 @pci: Pointer to a valid struct pci_device, describing our device.
vmwgfx_hosted_drm_fd - Return a drm file descriptor @driver : Pointer to a struct vmwgfx_hosted_driver as returned by vmwgfx_hosted_detect () @hosted : Pointer to a struct vmwgfx_hosted as returned by vmwgfx_hosted_create () @pci : Pointer to a valid struct pci_device describing our device .