Searched refs:surf (Results 1 – 1 of 1) sorted by relevance
53 static int adf_surface_init(adf_pdata *pdata, drm_mode_modeinfo *mode, adf_surface_pdata *surf) { in adf_surface_init() argument54 memset(surf, 0, sizeof(*surf)); in adf_surface_init()56 surf->fd = adf_interface_simple_buffer_alloc(pdata->intf_fd, mode->hdisplay, in adf_surface_init()57 mode->vdisplay, pdata->format, &surf->offset, &surf->pitch); in adf_surface_init()58 if (surf->fd < 0) in adf_surface_init()59 return surf->fd; in adf_surface_init()61 surf->base.width = mode->hdisplay; in adf_surface_init()62 surf->base.height = mode->vdisplay; in adf_surface_init()63 surf->base.row_bytes = surf->pitch; in adf_surface_init()64 surf->base.pixel_bytes = (pdata->format == DRM_FORMAT_RGB565) ? 2 : 4; in adf_surface_init()[all …]