plateform stringclasses 1
value | repo_name stringclasses 2
values | name stringlengths 1 78 | ext stringclasses 2
values | path stringlengths 15 1.11k | size int64 1 8.55M | source_encoding stringclasses 11
values | md5 stringlengths 32 32 | text stringlengths 0 8.49M |
|---|---|---|---|---|---|---|---|---|
google | android | output | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/output.c | 5,258 | utf_8 | e85b336343b6fb0a83634fe93ca83e83 | /*
*/
#include <drm/drm_atomic_helper.h>
#include <drm/drm_panel.h>
#include "drm.h"
int tegra_output_connector_get_modes(struct drm_connector *connector)
{
struct tegra_output *output = connector_to_output(connector);
struct edid *edid = NULL;
int err = 0;
/*
* If the panel provides one or more modes, use them ... |
google | android | dsi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/dsi.c | 40,907 | utf_8 | 15871d0428ea992e57c1e6cd811b3df4 | /*
*/
#include <linux/clk.h>
#include <linux/debugfs.h>
#include <linux/host1x.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <linux/regulator/consumer.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_mipi_ds... |
google | android | mipi-phy | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/mipi-phy.c | 3,397 | utf_8 | c07d246209074f6763537fc6ee9b0f14 | /*
*/
#include <linux/errno.h>
#include <linux/kernel.h>
#include "mipi-phy.h"
/*
* Default D-PHY timings based on MIPI D-PHY specification. Derived from the
* valid ranges specified in Section 6.9, Table 14, Page 40 of the D-PHY
* specification (v1.2) with minor adjustments.
*/
int mipi_dphy_timing_get_default(st... |
google | android | fb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/fb.c | 9,753 | utf_8 | f7dedb6a0b24398726a0fc84c83c5a0b | /*
*/
#include "drm.h"
#include "gem.h"
static inline struct tegra_fb *to_tegra_fb(struct drm_framebuffer *fb)
{
return container_of(fb, struct tegra_fb, base);
}
#ifdef CONFIG_DRM_TEGRA_FBDEV
static inline struct tegra_fbdev *to_tegra_fbdev(struct drm_fb_helper *helper)
{
return container_of(helper, struct tegra_fb... |
google | android | dpaux | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/dpaux.c | 14,375 | utf_8 | 52d4ca5568aad81330df72f0cedd4323 | /*
*/
#include <linux/clk.h>
#include <linux/delay.h>
#include <linux/gpio.h>
#include <linux/interrupt.h>
#include <linux/io.h>
#include <linux/of_gpio.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <linux/regulator/consumer.h>
#include <linux/workqueue.h>
#include <drm/drm_dp_helper.h>
#incl... |
google | android | dc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/dc.c | 55,296 | utf_8 | a940d26e3c550b619076ee5d844355a5 | /*
*/
#include <linux/clk.h>
#include <linux/debugfs.h>
#include <linux/iommu.h>
#include <linux/reset.h>
#include <soc/tegra/pmc.h>
#include "dc.h"
#include "drm.h"
#include "gem.h"
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_plane_helper.h>
struct tegra_dc_soc_info {
bool suppor... |
google | android | gr3d | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/gr3d.c | 8,936 | utf_8 | 24db3e40552e8a59e7fd5c2ff229a9c7 | /*
*/
#include <linux/clk.h>
#include <linux/host1x.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <soc/tegra/pmc.h>
#include "drm.h"
#include "gem.h"
#include "gr3d.h"
struct gr3d {
struct tegra_drm_client client;
struct host1x_channel *channel;
struct clk *clk_se... |
google | android | hdmi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/hdmi.c | 46,633 | utf_8 | 1379ebe2cf26a36d4bf09fbeb3239bf7 | /*
*/
#include <linux/clk.h>
#include <linux/debugfs.h>
#include <linux/gpio.h>
#include <linux/hdmi.h>
#include <linux/regulator/consumer.h>
#include <linux/reset.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include "hdmi.h"
#include "drm.h"
#include "dc.h"
struct ... |
google | android | drm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/drm.c | 27,714 | utf_8 | 81e3583db71d0ebf042bb5a82c06f3bc | /*
*/
#include <linux/host1x.h>
#include <linux/iommu.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include "drm.h"
#include "gem.h"
#define DRIVER_NAME "tegra"
#define DRIVER_DESC "NVIDIA Tegra graphics"
#define DRIVER_DATE "20120330"
#define DRIVER_MAJOR 0
#define DRIVER_MINOR 0
#define DRIVER_P... |
google | android | gr2d | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/gr2d.c | 4,886 | utf_8 | f48e58a75cd9133ffed3b97c4b1427ee | /*
*/
#include <linux/clk.h>
#include "drm.h"
#include "gem.h"
#include "gr2d.h"
struct gr2d {
struct tegra_drm_client client;
struct host1x_channel *channel;
struct clk *clk;
DECLARE_BITMAP(addr_regs, GR2D_NUM_REGS);
};
static inline struct gr2d *to_gr2d(struct tegra_drm_client *client)
{
return container_of(cli... |
google | android | sor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/sor.c | 65,612 | utf_8 | a70b27b5cf5def0726553bbf73dabcbe | /*
*/
#include <linux/clk.h>
#include <linux/debugfs.h>
#include <linux/gpio.h>
#include <linux/io.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/regulator/consumer.h>
#include <linux/reset.h>
#include <soc/tegra/pmc.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_dp_helper.... |
google | android | rgb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/rgb.c | 9,452 | utf_8 | 71514e12613d082773320fa661a41be5 | /*
*/
#include <linux/clk.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_panel.h>
#include "drm.h"
#include "dc.h"
struct tegra_rgb {
struct tegra_output output;
struct tegra_dc *dc;
struct clk *clk_parent;
struct clk *clk;
};
static inline struct tegra_rgb *to_rgb(struct tegra_output *output)
{
return c... |
google | android | gem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/tegra/gem.c | 13,685 | utf_8 | 2069f192e457929176c8853e4e6ee890 | /*
* NVIDIA Tegra DRM GEM helper functions
*
*/
#include <linux/dma-buf.h>
#include <linux/iommu.h>
#include <drm/tegra_drm.h>
#include "drm.h"
#include "gem.h"
static inline struct tegra_bo *host1x_to_tegra_bo(struct host1x_bo *bo)
{
return container_of(bo, struct tegra_bo, base);
}
static void tegra_bo_put(struct... |
google | android | vc4_crtc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_crtc.c | 18,701 | utf_8 | 37a23871996823f2b34a7a6fbd67d5c3 | /*
*/
/**
* DOC: VC4 CRTC module
*
* In VC4, the Pixel Valve is what most closely corresponds to the
* DRM's concept of a CRTC. The PV generates video timings from the
* output's clock plus its configuration. It pulls scaled pixels from
* the HVS at that timing, and feeds it to the encoder.
*
* However, the ... |
google | android | vc4_bo | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_bo.c | 1,362 | utf_8 | dbc7164d0158e6de55554cd8de69cc1c | /*
*/
/* DOC: VC4 GEM BO management support.
*
* The VC4 GPU architecture (both scanout and rendering) has direct
* access to system memory with no MMU in between. To support it, we
* use the GEM CMA helper functions to allocate contiguous ranges of
* physical memory for our BOs.
*/
#include "vc4_drv.h"
struct ... |
google | android | vc4_hdmi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_hdmi.c | 16,656 | utf_8 | 648f5bf218c4cfb06502568c022d57aa | /*
*/
/**
* DOC: VC4 Falcon HDMI module
*
* The HDMI core has a state machine and a PHY. Most of the unit
* operates off of the HSM clock from CPRMAN. It also internally uses
* the PLLH_PIX clock for the PHY.
*/
#include "drm_atomic_helper.h"
#include "drm_crtc_helper.h"
#include "drm_edid.h"
#include "linux/c... |
google | android | vc4_kms | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_kms.c | 1,646 | utf_8 | 2590e399ca695a1eeb4077d823c0af7f | /*
*/
/**
* DOC: VC4 KMS
*
* This is the general code for implementing KMS mode setting that
* doesn't clearly associate with any of the other objects (plane,
* crtc, HDMI encoder).
*/
#include "drm_crtc.h"
#include "drm_atomic_helper.h"
#include "drm_crtc_helper.h"
#include "drm_plane_helper.h"
#include "drm_fb... |
google | android | vc4_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_drv.c | 6,992 | utf_8 | 86fe61fe0a21a0c99676c1cc6705b193 | /*
*/
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/device.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include "drm_fb_cma_helper.h"
#include "vc4_drv.h"
#include "vc4_regs.h"
#define DRIVER_NAME "vc4"
#define DRIVER_DESC "... |
google | android | vc4_debugfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_debugfs.c | 1,084 | utf_8 | 0634ed5bae41b8e1357f1b90e63e75d9 | /*
*/
#include <linux/seq_file.h>
#include <linux/circ_buf.h>
#include <linux/ctype.h>
#include <linux/debugfs.h>
#include <drm/drmP.h>
#include "vc4_drv.h"
#include "vc4_regs.h"
static const struct drm_info_list vc4_debugfs_list[] = {
{"hdmi_regs", vc4_hdmi_debugfs_regs, 0},
{"hvs_regs", vc4_hvs_debugfs_regs, 0},
... |
google | android | vc4_plane | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_plane.c | 8,943 | utf_8 | 5421608f9e906d157f4ee30de9d14c16 | /*
*/
/**
* DOC: VC4 plane module
*
* Each DRM plane is a layer of pixels being scanned out by the HVS.
*
* At atomic modeset check time, we compute the HVS display element
* state that would be necessary for displaying the plane (giving us a
* chance to figure out if a plane configuration is invalid), then at
... |
google | android | vc4_hvs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vc4/vc4_hvs.c | 4,196 | utf_8 | 9ecc5567ca6e079e0faa0e366220b30e | /*
*/
/**
* DOC: VC4 HVS module.
*
* The HVS is the piece of hardware that does translation, scaling,
* colorspace conversion, and compositing of pixels stored in
* framebuffers into a FIFO of pixels going out to the Pixel Valve
* (CRTC). It operates at the system clock rate (the system audio
* clock gate, spe... |
google | android | mgag200_i2c | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mgag200/mgag200_i2c.c | 3,975 | utf_8 | 74a0f94fbcc83375af9f0229b30206cb | /*
*/
#include <linux/export.h>
#include <linux/i2c.h>
#include <linux/i2c-algo-bit.h>
#include <drm/drmP.h>
#include "mgag200_drv.h"
static int mga_i2c_read_gpio(struct mga_device *mdev)
{
WREG8(DAC_INDEX, MGA1064_GEN_IO_DATA);
return RREG8(DAC_DATA);
}
static void mga_i2c_set_gpio(struct mga_device *mdev, int mask... |
google | android | mgag200_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mgag200/mgag200_drv.c | 3,541 | utf_8 | f2b3ab5cae93b9fa46fbdf31d0f3eb6a | /*
* directory of this archive for more details.
*
* Authors: Matthew Garrett
* Dave Airlie
*/
#include <linux/module.h>
#include <linux/console.h>
#include <drm/drmP.h>
#include "mgag200_drv.h"
#include <drm/drm_pciids.h>
/*
* This is the generic driver code. This binds the driver to the drm core,
* wh... |
google | android | mgag200_main | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mgag200/mgag200_main.c | 8,432 | utf_8 | 4c62c1852e81b00e7d86f45f44d306c3 | /*
* directory of this archive for more details.
*
* Authors: Matthew Garrett
* Matt Turner
* Dave Airlie
*/
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "mgag200_drv.h"
static void mga_user_framebuffer_destroy(struct drm_framebuffer *fb)
{
struct mga_framebuffer *mga_fb = to... |
google | android | mgag200_cursor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mgag200/mgag200_cursor.c | 7,379 | utf_8 | f5e96e96afb661962b2e2723fb3ba556 | /*
*/
#include <drm/drmP.h>
#include "mgag200_drv.h"
static bool warn_transparent = true;
static bool warn_palette = true;
/*
Hide the cursor off screen. We can't disable the cursor hardware because it
takes too long to re-activate and causes momentary corruption
*/
static void mga_hide_cursor(struct mga_device *m... |
google | android | mgag200_fb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mgag200/mgag200_fb.c | 7,663 | utf_8 | c26eb318b7cd1646abba8c854e442f66 | /*
* directory of this archive for more details.
*
* Authors: Matthew Garrett
* Matt Turner
* Dave Airlie
*/
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_crtc_helper.h>
#include <linux/fb.h>
#include "mgag200_drv.h"
static void mga_dirty_update... |
google | android | mgag200_ttm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mgag200/mgag200_ttm.c | 10,922 | utf_8 | 139fb57c7e58d0598b53a0b65442051d | /*
*/
#include <drm/drmP.h>
#include "mgag200_drv.h"
#include <ttm/ttm_page_alloc.h>
static inline struct mga_device *
mgag200_bdev(struct ttm_bo_device *bd)
{
return container_of(bd, struct mga_device, ttm.bdev);
}
static int
mgag200_ttm_mem_global_init(struct drm_global_reference *ref)
{
return ttm_mem_global_init... |
google | android | mgag200_mode | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mgag200/mgag200_mode.c | 42,746 | utf_8 | aae874575cdfe4da7701033786d6ab0c | /*
* directory of this archive for more details.
*
* Authors: Matthew Garrett
* Matt Turner
* Dave Airlie
*/
#include <linux/delay.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_plane_helper.h>
#include "mgag200_drv.h"
#define MGAG200_LUT_SIZE 256
/*
* This file contains setu... |
google | android | sti_compositor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_compositor.c | 7,553 | utf_8 | 54debabc63a10c7fb8027fdeda255356 | /*
*/
#include <linux/component.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <drm/drmP.h>
#include "sti_compositor.h"
#include "sti_crtc.h"
#include "sti_cursor.h"
#include "sti_drv.h"
#include "sti_gdp.h"
#include "sti_plane.h"
#include "sti_vid.h"
#include "sti_vt... |
google | android | sti_hdmi_tx3g4c28phy | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_hdmi_tx3g4c28phy.c | 5,887 | utf_8 | 69c2dfe331b1e6742640b36c76c488e0 | /*
*/
#include "sti_hdmi_tx3g4c28phy.h"
#define HDMI_SRZ_CFG 0x504
#define HDMI_SRZ_PLL_CFG 0x510
#define HDMI_SRZ_ICNTL 0x518
#define HDMI_SRZ_CALCODE_EXT 0x520
#define HDMI_SRZ_CFG_EN BIT(0)
#de... |
google | android | sti_plane | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_plane.c | 2,931 | utf_8 | 9719baefeb66e0f78f95f1655a8f68a1 | /*
*/
#include <drm/drmP.h>
#include <drm/drm_fb_cma_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include "sti_compositor.h"
#include "sti_drv.h"
#include "sti_plane.h"
/* (Background) < GDP0 < GDP1 < HQVDP0 < GDP2 < GDP3 < (ForeGround) */
enum sti_plane_desc sti_plane_default_zorder[] = {
STI_GDP_0,
STI_GDP_1,
S... |
google | android | sti_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_drv.c | 8,232 | utf_8 | f69dd94ded6ad30e600809fb134534d4 | /*
*/
#include <drm/drmP.h>
#include <linux/component.h>
#include <linux/debugfs.h>
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/drm_fb... |
google | android | sti_vid | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_vid.c | 3,469 | utf_8 | 7c57fd428dcdf173699ea713b5e6785d | /*
*/
#include <drm/drmP.h>
#include "sti_plane.h"
#include "sti_vid.h"
#include "sti_vtg.h"
/* Registers */
#define VID_CTL 0x00
#define VID_ALP 0x04
#define VID_CLF 0x08
#define VID_VPO 0x0C
#define VID_VPS 0x10
#define VID_KEY1 ... |
google | android | sti_vtac | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_vtac.c | 5,846 | utf_8 | 9e1e2b1583870eb1443dd162be24af2e | /*
*/
#include <linux/clk.h>
#include <linux/io.h>
#include <linux/module.h>
#include <linux/of.h>
#include <linux/platform_device.h>
#include <drm/drmP.h>
/* registers offset */
#define VTAC_CONFIG 0x00
#define VTAC_RX_FIFO_CONFIG 0x04
#define VTAC_FIFO_CONFIG_VAL 0x04
#defi... |
google | android | sti_mixer | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_mixer.c | 6,823 | utf_8 | 392e9012503e157f7ccffa79bf403944 | /*
*/
#include "sti_compositor.h"
#include "sti_mixer.h"
#include "sti_vtg.h"
/* Module parameter to set the background color of the mixer */
static unsigned int bkg_color = 0x000000;
MODULE_PARM_DESC(bkgcolor, "Value of the background color 0xRRGGBB");
module_param_named(bkgcolor, bkg_color, int, 0644);
/* Identity: ... |
google | android | sti_hdmi_tx3g0c55phy | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_hdmi_tx3g0c55phy.c | 10,591 | utf_8 | 5fd675e2c12f83935dd33edc5754ab3a | /*
*/
#include "sti_hdmi_tx3g0c55phy.h"
#define HDMI_SRZ_PLL_CFG 0x0504
#define HDMI_SRZ_TAP_1 0x0508
#define HDMI_SRZ_TAP_2 0x050C
#define HDMI_SRZ_TAP_3 0x0510
#define HDMI_SRZ_CTRL 0x0514
#define HDMI_SRZ_PLL_CFG_POWER_DOWN BIT(... |
google | android | sti_hda | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_hda.c | 21,885 | utf_8 | 8ccd4e1e2bddf296835db01281f3e320 | /*
*/
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <drm/drmP.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
/* HDformatter registers */
#define HDA_ANA_CFG 0x0000
#define HDA_ANA_SCALE_CTRL_Y ... |
google | android | sti_hdmi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_hdmi.c | 24,340 | utf_8 | 04ca93c9f0b6ccd5108f8883e3d0c15f | /*
*/
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/hdmi.h>
#include <linux/module.h>
#include <linux/of_gpio.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <drm/drmP.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_edid.h>
#include... |
google | android | sti_dvo | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_dvo.c | 14,520 | utf_8 | 8bf6ce0e3688f9260cf8a880146a88a0 | /*
*/
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/module.h>
#include <linux/of_gpio.h>
#include <linux/platform_device.h>
#include <drm/drmP.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_panel.h>
#include "sti_awg_utils.h"
#include "sti_mixer.h"
/* DVO... |
google | android | sti_hqvdp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_hqvdp.c | 30,707 | utf_8 | 10ad7a5033028a285e1e7bdd8d7ffce1 | /*
*/
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <drm/drmP.h>
#include <drm/drm_fb_cma_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include "sti_compositor.h"
#include "sti_hqvdp_lut.h"... |
google | android | sti_cursor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_cursor.c | 7,962 | utf_8 | 39a5785599d91f29993ecd6e6cf9ea7e | /*
*/
#include <drm/drmP.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_fb_cma_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/drm_plane_helper.h>
#include "sti_compositor.h"
#include "sti_cursor.h"
#include "sti_plane.h"
#include "sti_vtg.h"
/* Registers */
#define CUR_CTL 0x00
#defin... |
google | android | sti_vtg | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_vtg.c | 10,513 | utf_8 | 6a1d866173594a12c5dbae399bba2db9 | /*
*/
#include <linux/module.h>
#include <linux/notifier.h>
#include <linux/platform_device.h>
#include <drm/drmP.h>
#include "sti_vtg.h"
#define VTG_TYPE_MASTER 0
#define VTG_TYPE_SLAVE_BY_EXT0 1
/* registers offset */
#define VTG_MODE 0x0000
#define VTG_CLKLN 0x0008
#define VTG_HLFLN ... |
google | android | sti_gdp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_gdp.c | 17,335 | utf_8 | 61c02d38b6e253923d00aa2f8ad9b7f7 | /*
*/
#include <linux/clk.h>
#include <linux/dma-mapping.h>
#include <drm/drm_fb_cma_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include "sti_compositor.h"
#include "sti_gdp.h"
#include "sti_plane.h"
#include "sti_vtg.h"
#define ALPHASWITCH BIT(6)
#define ENA_COLOR_FILL BIT(8)
#define BIGNOTLITTLE BIT(23)
#... |
google | android | sti_awg_utils | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_awg_utils.c | 3,984 | utf_8 | bfa6966244f9b9c6cb915cdd3c8d69b1 | /*
*/
#include "sti_awg_utils.h"
#define AWG_OPCODE_OFFSET 10
enum opcode {
SET,
RPTSET,
RPLSET,
SKIP,
STOP,
REPEAT,
REPLAY,
JUMP,
HOLD,
};
static int awg_generate_instr(enum opcode opcode,
long int arg,
long int mux_sel,
long int data_en,
struct awg_code_generation_params ... |
google | android | sti_crtc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_crtc.c | 10,049 | utf_8 | 7e197749b1626c827d8e21f7ff0b348d | /*
*/
#include <linux/clk.h>
#include <drm/drmP.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_plane_helper.h>
#include "sti_compositor.h"
#include "sti_crtc.h"
#include "sti_drv.h"
#include "sti_vid.h"
#include "sti_vtg.h"
static void sti_crtc_enab... |
google | android | sti_tvout | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/sti/sti_tvout.c | 20,703 | utf_8 | 7a8a24a8ac7e3766a2f43fea82d2e139 | /*
*/
#include <linux/clk.h>
#include <linux/component.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "sti_crtc.h"
/* glue registers */
#define TVO_CSC_MAIN_M0 0x000... |
google | android | fsl_dcu_drm_crtc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_crtc.c | 6,098 | utf_8 | 18614fbfde3b6f1d95a7ac234c212854 | /*
* (at your option) any later version.
*/
#include <linux/clk.h>
#include <linux/regmap.h>
#include <drm/drmP.h>
#include <drm/drm_atomic.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include "fsl_dcu_drm_crtc.h"
#include "fsl_dcu_drm_drv.h"
#include "fsl_dcu_drm_... |
google | android | fsl_dcu_drm_kms | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_kms.c | 1,324 | utf_8 | 6dd2b849d804d5a9746bb0880d62a888 | /*
* (at your option) any later version.
*/
#include <drm/drmP.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_cma_helper.h>
#include "fsl_dcu_drm_crtc.h"
#include "fsl_dcu_drm_drv.h"
static const struct drm_mode_config_funcs fsl_dcu_drm_mode_config_funcs = {
.atomic_check... |
google | android | fsl_dcu_drm_rgb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_rgb.c | 4,823 | utf_8 | 69de256999488cef4b87af57973038bc | /*
* (at your option) any later version.
*/
#include <linux/backlight.h>
#include <drm/drmP.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_panel.h>
#include "fsl_dcu_drm_drv.h"
static int
fsl_dcu_drm_encoder_atomic_check(struct drm_encoder *encoder,
struct drm_crtc_state... |
google | android | fsl_dcu_drm_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_drv.c | 9,995 | utf_8 | 3611080cba9c722e6dd0e96f9ab97b52 | /*
* (at your option) any later version.
*/
#include <linux/clk.h>
#include <linux/clk-provider.h>
#include <linux/io.h>
#include <linux/mfd/syscon.h>
#include <linux/mm.h>
#include <linux/module.h>
#include <linux/of_platform.h>
#include <linux/platform_device.h>
#include <linux/pm.h>
#include <linux/pm_runtime.h>
#... |
google | android | fsl_dcu_drm_plane | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_plane.c | 6,782 | utf_8 | e66bdcb135fc8b7369353551e68fabdd | /*
* (at your option) any later version.
*/
#include <linux/regmap.h>
#include <drm/drmP.h>
#include <drm/drm_atomic_helper.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_cma_helper.h>
#include <drm/drm_gem_cma_helper.h>
#include <drm/drm_plane_helper.h>
#include "fsl_dcu_drm_drv.h... |
google | android | fsl_dcu_drm_fbdev | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/fsl-dcu/fsl_dcu_drm_fbdev.c | 638 | utf_8 | 68e51bcaa8f61502c84d065dfb348b18 | /*
* (at your option) any later version.
*/
#include <drm/drmP.h>
#include <drm/drm_fb_cma_helper.h>
#include "fsl_dcu_drm_drv.h"
/* initialize fbdev helper */
void fsl_dcu_fbdev_init(struct drm_device *dev)
{
struct fsl_dcu_drm_device *fsl_dev = dev_get_drvdata(dev->dev);
fsl_dev->fbdev = drm_fbdev_cma_init(dev, 2... |
google | android | vmwgfx_ldu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_ldu.c | 12,374 | utf_8 | 34a540fc7f83e72e6e7fea204c4e6204 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_kms.h"
#include <drm/drm_plane_helper.h>
#define vmw_crtc_to_ldu(x) \
container_of(x, struct vmw_legacy_display_unit, base.crtc)
#define vmw_en... |
google | android | vmwgfx_so | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_so.c | 17,648 | utf_8 | abfa04b70a266000632215597b5dab4b | /**************************************************************************
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include "vmwgfx_resource_priv.h"
#include "vmwgfx_so.h"
#include "vmwgfx_binding.h"
/*
* The currently only reason we need to keep track o... |
google | android | vmwgfx_irq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_irq.c | 8,395 | utf_8 | 7cc09941f3969427bf47e07f1ded0d94 | /**************************************************************************
*
*
**************************************************************************/
#include <drm/drmP.h>
#include "vmwgfx_drv.h"
#define VMW_FENCE_WRAP (1 << 24)
irqreturn_t vmw_irq_handler(int irq, void *arg)
{
struct drm_device *dev = (struc... |
google | android | vmwgfx_surface | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_surface.c | 44,847 | utf_8 | 0f88a02c8ea69f218a874a51e7bfc421 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include "vmwgfx_resource_priv.h"
#include "vmwgfx_so.h"
#include "vmwgfx_binding.h"
#include <ttm/ttm_placement.h>
#include "device_incl... |
google | android | vmwgfx_stdu | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_stdu.c | 35,244 | utf_8 | 0ea5376080daafdb56795c8b0d2a69d9 | /******************************************************************************
*
*
******************************************************************************/
#include "vmwgfx_kms.h"
#include "device_include/svga3d_surfacedefs.h"
#include <drm/drm_plane_helper.h>
#define vmw_crtc_to_stdu(x) \
container_of(x, s... |
google | android | vmwgfx_cotable | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_cotable.c | 19,442 | utf_8 | b9fbb5f0a958c7b1ef03f0b9b5e5f201 | /**************************************************************************
*
*
**************************************************************************/
/*
* Treat context OTables as resources to make use of the resource
* backing MOB eviction mechanism, that is used to read back the COTable
* whenever the bac... |
google | android | vmwgfx_marker | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_marker.c | 3,920 | utf_8 | e0864e74a816b78b580e1daec7344b87 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
struct vmw_marker {
struct list_head head;
uint32_t seqno;
u64 submitted;
};
void vmw_marker_queue_init(struct vmw_marker_queue *queue... |
google | android | vmwgfx_scrn | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_scrn.c | 28,537 | utf_8 | 9ba918f91012e70d5a87391a2739cc51 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_kms.h"
#include <drm/drm_plane_helper.h>
#define vmw_crtc_to_sou(x) \
container_of(x, struct vmw_screen_object_unit, base.crtc)
#define vmw_enc... |
google | android | vmwgfx_ttm_glue | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_glue.c | 3,268 | utf_8 | 3f7582650cdbb086ea1ccbdc24e8702b | /**************************************************************************
*
*
**************************************************************************/
#include <drm/drmP.h>
#include "vmwgfx_drv.h"
int vmw_mmap(struct file *filp, struct vm_area_struct *vma)
{
struct drm_file *file_priv;
struct vmw_private *dev... |
google | android | vmwgfx_mob | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_mob.c | 19,417 | utf_8 | bf3e7cb02ab08eef362a9033ee1d0e58 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
/*
* If we set up the screen target otable, screen objects stop working.
*/
#define VMW_OTABLE_SETUP_SUB ((VMWGFX_ENABLE_SCREEN_TARGET_... |
google | android | vmwgfx_gmr | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_gmr.c | 4,485 | utf_8 | e51c1dcbff3a8d1a44f9bdddd7d0a81f | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include <drm/drmP.h>
#include <drm/ttm/ttm_bo_driver.h>
#define VMW_PPN_SIZE (sizeof(unsigned long))
/* A future safe maximum remap size... |
google | android | vmwgfx_resource | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_resource.c | 48,422 | utf_8 | 1692c994b4028bfaa94b32605459e9b4 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include <drm/vmwgfx_drm.h>
#include <drm/ttm/ttm_object.h>
#include <drm/ttm/ttm_placement.h>
#include <drm/drmP.h>
#include "vmwgfx_res... |
google | android | vmwgfx_overlay | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_overlay.c | 15,199 | utf_8 | c3a684fd7f7de629f73e6de7da617b01 | /**************************************************************************
*
*
**************************************************************************/
#include <drm/drmP.h>
#include "vmwgfx_drv.h"
#include <drm/ttm/ttm_placement.h>
#include "device_include/svga_overlay.h"
#include "device_include/svga_escape.h"... |
google | android | vmwgfx_fifo | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_fifo.c | 19,369 | utf_8 | 0333d5a18c1a366c4288dce64a34cf86 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include <drm/drmP.h>
#include <drm/ttm/ttm_placement.h>
struct vmw_temp_set_context {
SVGA3dCmdHeader header;
SVGA3dCmdDXTempSetContex... |
google | android | vmwgfx_buffer | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_buffer.c | 22,224 | utf_8 | 51745eb397028bca45d54e125bc0c385 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include <drm/ttm/ttm_bo_driver.h>
#include <drm/ttm/ttm_placement.h>
#include <drm/ttm/ttm_page_alloc.h>
static struct ttm_place vram_pl... |
google | android | vmwgfx_execbuf | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_execbuf.c | 127,678 | utf_8 | b194722818f1edece6c6b121e43291ed | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include "vmwgfx_reg.h"
#include <drm/ttm/ttm_bo_api.h>
#include <drm/ttm/ttm_placement.h>
#include "vmwgfx_so.h"
#include "vmwgfx_bindin... |
google | android | vmwgfx_fb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_fb.c | 19,929 | utf_8 | 0952fe70f66c9160434aece20d7f8415 | /**************************************************************************
*
*
**************************************************************************/
#include <linux/export.h>
#include <drm/drmP.h>
#include "vmwgfx_drv.h"
#include "vmwgfx_kms.h"
#include <drm/ttm/ttm_placement.h>
#define VMW_DIRTY_DELAY (HZ / ... |
google | android | vmwgfx_cmdbuf | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 37,054 | utf_8 | e8924c1fc108c5a334b1c5b807ce8041 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include "ttm/ttm_bo_api.h"
/*
* Size of inline command buffers. Try to make sure that a page size is a
* multiple of the DMA pool allo... |
google | android | vmwgfx_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_drv.c | 44,564 | utf_8 | 174f94c9caf5e6216a0310b0db104d56 | /**************************************************************************
*
*
**************************************************************************/
#include <linux/module.h>
#include <linux/console.h>
#include <drm/drmP.h>
#include "vmwgfx_drv.h"
#include "vmwgfx_binding.h"
#include <drm/ttm/ttm_placement.h>... |
google | android | vmwgfx_dmabuf | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_dmabuf.c | 8,115 | utf_8 | feb8e93a87d08f3e87d7b01b921e79f8 | /**************************************************************************
*
*
**************************************************************************/
#include <drm/ttm/ttm_placement.h>
#include <drm/drmP.h>
#include "vmwgfx_drv.h"
/**
* vmw_dmabuf_pin_in_placement - Validate a buffer to placement.
*
*
* Re... |
google | android | vmwgfx_shader | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_shader.c | 28,192 | utf_8 | d69d2d1f8292e329d7e172123cd3a70b | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include "vmwgfx_resource_priv.h"
#include "vmwgfx_binding.h"
#include "ttm/ttm_placement.h"
struct vmw_shader {
struct vmw_resource res... |
google | android | vmwgfx_kms | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_kms.c | 58,117 | utf_8 | 2d0cfffadf77c5606852cf0a93fd23d5 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_kms.h"
/* Might need a hrtimer here? */
#define VMWGFX_PRESENT_RATE ((HZ / 60 > 0) ? HZ / 60 : 1)
void vmw_du_cleanup(struct vmw_display_unit *d... |
google | android | vmwgfx_fence | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 32,132 | utf_8 | caacd32ee308704c177205a21eb22e18 | /**************************************************************************
*
*
**************************************************************************/
#include <drm/drmP.h>
#include "vmwgfx_drv.h"
#define VMW_FENCE_WRAP (1 << 31)
struct vmw_fence_manager {
int num_fence_objects;
struct vmw_private *dev_priv;
... |
google | android | vmwgfx_ioctl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_ioctl.c | 12,561 | utf_8 | 06b78938d6538cd508732196f0a8bb8e | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include <drm/vmwgfx_drm.h>
#include "vmwgfx_kms.h"
#include "device_include/svga3d_caps.h"
struct svga_3d_compat_cap {
SVGA3dCapsRecord... |
google | android | vmwgfx_context | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_context.c | 24,343 | utf_8 | 1e92e2f7b7001321aebcbf28f5e3c8e7 | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include "vmwgfx_resource_priv.h"
#include "vmwgfx_binding.h"
#include "ttm/ttm_placement.h"
struct vmw_user_context {
struct ttm_base_o... |
google | android | vmwgfx_binding | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_binding.c | 39,906 | utf_8 | 26b457f11d109d722f9574ee5d227128 | /**************************************************************************
*
*
**************************************************************************/
/*
* This file implements the vmwgfx context binding manager,
* The sole reason for having to use this code is that vmware guest
* backed contexts can be swap... |
google | android | vmwgfx_gmrid_manager | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_gmrid_manager.c | 4,608 | utf_8 | 7f7edfa539f60581b2f904449ea0dab3 | /**************************************************************************
*
*
**************************************************************************/
/*
* Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
*/
#include "vmwgfx_drv.h"
#include <drm/ttm/ttm_module.h>
#include <drm/ttm/ttm_bo_driver.h>
#in... |
google | android | vmwgfx_cmdbuf_res | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 10,113 | utf_8 | 656e34128de50296e15919e0dc0001bf | /**************************************************************************
*
*
**************************************************************************/
#include "vmwgfx_drv.h"
#include "vmwgfx_resource_priv.h"
#define VMW_CMDBUF_RES_MAN_HT_ORDER 12
/**
* struct vmw_cmdbuf_res - Command buffer managed resource e... |
google | android | vmwgfx_prime | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/vmwgfx/vmwgfx_prime.c | 3,951 | utf_8 | 523ed53c78e803587d7214ca20bb63dc | /**************************************************************************
*
*
*/
#include "vmwgfx_drv.h"
#include <linux/dma-buf.h>
#include <drm/ttm/ttm_object.h>
/*
* DMA-BUF attach- and mapping methods. No need to implement
* these until we have other virtual devices use them.
*/
static int vmw_prime_map_att... |
google | android | qxl_object | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_object.c | 8,109 | utf_8 | 44f499a2c0806cd7752197cdd2ce34d7 | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include "qxl_drv.h"
#include "qxl_object.h"
#include <linux/io-mapping.h>
static void qxl_ttm_bo_destroy(struct ttm_buffer_object *tbo)
{
struct qxl_bo *bo;
struct qxl_device *qdev;
bo = container_of(tbo, struct qxl_bo, tbo);
qdev = (struct qxl_device *)bo->g... |
google | android | qxl_fb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_fb.c | 14,462 | utf_8 | 9452fed7e3b6b822fbbe1abee67615e8 | /*
*
* Authors:
* David Airlie
*/
#include <linux/module.h>
#include <linux/fb.h>
#include "drmP.h"
#include "drm/drm.h"
#include "drm/drm_crtc.h"
#include "drm/drm_crtc_helper.h"
#include "qxl_drv.h"
#include "qxl_object.h"
#include "drm_fb_helper.h"
#define QXL_DIRTY_DELAY (HZ / 30)
struct qxl_fbdev {
struct... |
google | android | qxl_irq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_irq.c | 3,423 | utf_8 | af0991887cadfc81b07b0d8bd6628770 | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include "qxl_drv.h"
irqreturn_t qxl_irq_handler(int irq, void *arg)
{
struct drm_device *dev = (struct drm_device *) arg;
struct qxl_device *qdev = (struct qxl_device *)dev->dev_private;
uint32_t pending;
pending = xchg(&qdev->ram_header->int_pending, 0);
if... |
google | android | qxl_prime | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_prime.c | 2,203 | utf_8 | 39d2a0ecda64c50ffac6135b8285a04d | /*
*
* Authors: Andreas Pokorny
*/
#include "qxl_drv.h"
/* Empty Implementations as there should not be any other driver for a virtual
* device that might share buffers with qxl */
int qxl_gem_prime_pin(struct drm_gem_object *obj)
{
WARN_ONCE(1, "not implemented");
return -ENOSYS;
}
void qxl_gem_prime_unpin(struc... |
google | android | qxl_display | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_display.c | 30,657 | utf_8 | dae5832c64b09ff1f267df92f3995efa | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include <linux/crc32.h>
#include "qxl_drv.h"
#include "qxl_object.h"
#include "drm_crtc_helper.h"
#include <drm/drm_plane_helper.h>
static bool qxl_head_enabled(struct qxl_head *head)
{
return head->width && head->height;
}
void qxl_alloc_client_monitors_config(... |
google | android | qxl_cmd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_cmd.c | 18,021 | utf_8 | 3e28959a6a40908c14ea764714298c2d | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
/* QXL cmd/ring handling */
#include "qxl_drv.h"
#include "qxl_object.h"
static int qxl_reap_surface_id(struct qxl_device *qdev, int max_to_reap);
struct ring {
struct qxl_ring_header header;
uint8_t elements[0];
};
struct qxl_ring {
st... |
google | android | qxl_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_drv.c | 7,848 | utf_8 | 414ac27b52ac198535dbd9cdb7b0c987 | /* vim: set ts=8 sw=8 tw=78 ai noexpandtab */
/* qxl_drv.c -- QXL driver -*- linux-c -*-
*
*/
#include <linux/module.h>
#include <linux/console.h>
#include "drmP.h"
#include "drm/drm.h"
#include "drm_crtc_helper.h"
#include "qxl_drv.h"
#include "qxl_object.h"
extern int qxl_max_ioctls;
static const struct pci_device_... |
google | android | qxl_kms | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_kms.c | 10,055 | utf_8 | b7dafbd432d70676ec97977957e5f229 | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include "qxl_drv.h"
#include "qxl_object.h"
#include <drm/drm_crtc_helper.h>
#include <linux/io-mapping.h>
int qxl_log_level;
static void qxl_dump_mode(struct qxl_device *qdev, void *p)
{
struct qxl_mode *m = p;
DRM_DEBUG_KMS("%d: %dx%d %d bits, stride %d, %dmm... |
google | android | qxl_image | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_image.c | 6,319 | utf_8 | 8bf29fde022aabcb87fa7a91de8ed1e7 | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include <linux/gfp.h>
#include <linux/slab.h>
#include "qxl_drv.h"
#include "qxl_object.h"
static int
qxl_allocate_chunk(struct qxl_device *qdev,
struct qxl_release *release,
struct qxl_drm_image *image,
unsigned int chunk_size)
{
struct qxl_drm_c... |
google | android | qxl_draw | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_draw.c | 13,973 | utf_8 | 0ce22faa10cfb8dcc2d4c03bb595d1cd | /*
*/
#include "qxl_drv.h"
#include "qxl_object.h"
static int alloc_clips(struct qxl_device *qdev,
struct qxl_release *release,
unsigned num_clips,
struct qxl_bo **clips_bo)
{
int size = sizeof(struct qxl_clip_rects) + sizeof(struct qxl_rect) * num_clips;
return qxl_alloc_bo_reserved(qdev,... |
google | android | qxl_release | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_release.c | 12,697 | utf_8 | a43165f69c534d9bfc14285bcd1e7d70 | /*
*/
#include "qxl_drv.h"
#include "qxl_object.h"
#include <trace/events/fence.h>
/*
* drawable cmd cache - allocate a bunch of VRAM pages, suballocate
* into 256 byte chunks for now - gives 16 cmds per page.
*
* use an ida to index into the chunks?
*/
/* manage releaseables */
/* stack them 16 high for now -dra... |
google | android | qxl_ioctl | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_ioctl.c | 11,933 | utf_8 | 6fee18116baa6cc153b8c8dcaf5cd358 | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include "qxl_drv.h"
#include "qxl_object.h"
/*
* TODO: allocating a new gem(in qxl_bo) for each request.
* This is wasteful since bo's are page aligned.
*/
static int qxl_alloc_ioctl(struct drm_device *dev, void *data,
struct drm_file *file_priv)
{
stru... |
google | android | qxl_debugfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_debugfs.c | 4,319 | utf_8 | 42e7f0b8a80036778a58d3182ecf5006 | /*
*/
#include <linux/debugfs.h>
#include "drmP.h"
#include "qxl_drv.h"
#include "qxl_object.h"
#if defined(CONFIG_DEBUG_FS)
static int
qxl_debugfs_irq_received(struct seq_file *m, void *data)
{
struct drm_info_node *node = (struct drm_info_node *) m->private;
struct qxl_device *qdev = node->minor->dev->dev_private;... |
google | android | qxl_dumb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_dumb.c | 2,566 | utf_8 | 9a4b04636b1c305ef81435e7776f6ba5 | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include "qxl_drv.h"
#include "qxl_object.h"
/* dumb ioctls implementation */
int qxl_mode_dumb_create(struct drm_file *file_priv,
struct drm_device *dev,
struct drm_mode_create_dumb *args)
{
struct qxl_device *qdev = dev->dev_private;
struct qxl_b... |
google | android | qxl_gem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_gem.c | 3,291 | utf_8 | 4a9fc982835aaf5764698ba1e442bc30 | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include "drmP.h"
#include "drm/drm.h"
#include "qxl_drv.h"
#include "qxl_object.h"
void qxl_gem_object_free(struct drm_gem_object *gobj)
{
struct qxl_bo *qobj = gem_to_qxl_bo(gobj);
struct qxl_device *qdev;
struct ttm_buffer_object *tbo;
qdev = (struct qxl_de... |
google | android | qxl_ttm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/qxl/qxl_ttm.c | 13,145 | utf_8 | 2d2464bbc65379858075c4d7327189ce | /*
*
* Authors: Dave Airlie
* Alon Levy
*/
#include <ttm/ttm_bo_api.h>
#include <ttm/ttm_bo_driver.h>
#include <ttm/ttm_placement.h>
#include <ttm/ttm_page_alloc.h>
#include <ttm/ttm_module.h>
#include <drm/drmP.h>
#include <drm/drm.h>
#include <drm/qxl_drm.h>
#include "qxl_drv.h"
#include "qxl_object.h"
#... |
google | android | ttm_object | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/ttm/ttm_object.c | 20,639 | utf_8 | e1301054fe62eb4e80767814af0b0393 | /**************************************************************************
*
*
**************************************************************************/
/*
* Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
*
* While no substantial code is shared, the prime code is inspired by
* drm_prime.c, with
* A... |
google | android | ttm_lock | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/ttm/ttm_lock.c | 7,253 | utf_8 | 3b4e21faf85af8839b03668760c0839e | /**************************************************************************
*
*
**************************************************************************/
/*
* Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
*/
#include <drm/ttm/ttm_lock.h>
#include <drm/ttm/ttm_module.h>
#include <linux/atomic.h>
#inclu... |
google | android | ttm_page_alloc_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/ttm/ttm_page_alloc_dma.c | 31,026 | utf_8 | e96d2456357ef860f6b351b29641582c | /*
*/
/*
* A simple DMA pool losely based on dmapool.c. It has certain advantages
* over the DMA pools:
* - Pool collects resently freed pages for reuse (and hooks up to
* the shrinker).
* - Tracks currently in use pages
* - Tracks whether the page is UC, WB or cached (and reverts to WB
* when freed).
*/
#... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.