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 | dce3_1_afmt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/dce3_1_afmt.c | 7,975 | utf_8 | fc931c86f1d5d7f9599918a94aa2d494 | /*
*/
#include <linux/hdmi.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_audio.h"
#include "r600d.h"
void dce3_2_afmt_hdmi_write_speaker_allocation(struct drm_encoder *encoder,
u8 *sadb, int sad_count)
{
struct radeon_device *rdev = encoder->dev->dev_private;
u32 tmp;
/* pr... |
google | android | cypress_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/cypress_dpm.c | 60,924 | utf_8 | 34ac51fad370eed844fbad09c8f0770a | /*
*
* Authors: Alex Deucher
*/
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "evergreend.h"
#include "r600_dpm.h"
#include "cypress_dpm.h"
#include "atom.h"
#define SMC_RAM_END 0x8000
#define MC_CG_ARB_FREQ_F0 0x0a
#define MC_CG_ARB_FREQ_F1 0x0b
#define MC_CG_ARB_FREQ_F... |
google | android | radeon_asic | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_asic.c | 83,827 | utf_8 | 88074573ec4da6ecc286d7689781473c | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <linux/console.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/radeon_drm.h>
#include <linux/vgaarb.h>
#include "radeon_reg.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "atom.h"
/*
* Regist... |
google | android | radeon_semaphore | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_semaphore.c | 3,279 | utf_8 | 40097301db47971acb70f7a36d6931bc | /*
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_trace.h"
int radeon_semaphore_create(struct radeon_device *rdev,
struct radeon_semaphore **semaphore)
{
int r;
*semaphore = kmalloc(sizeof(struct radeon_semaphore), GFP_KERNEL);
if (*semaphore == NULL) {
return -ENOMEM;
}
r = radeon_sa_bo_n... |
google | android | rv6xx_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/rv6xx_dpm.c | 64,032 | utf_8 | 137e6ef87b3ec83deda4cf3466cd512e | /*
*
* Authors: Alex Deucher
*/
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "rv6xxd.h"
#include "r600_dpm.h"
#include "rv6xx_dpm.h"
#include "atom.h"
#include <linux/seq_file.h>
static u32 rv6xx_scale_count_given_unit(struct radeon_device *rdev,
u32 unscaled_count, u32 unit);
static ... |
google | android | radeon_fb | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_fb.c | 10,906 | utf_8 | a437b90cf192dfa044bfc9ea24030a1d | /*
*
* Authors:
* David Airlie
*/
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/fb.h>
#include <drm/drmP.h>
#include <drm/drm_crtc.h>
#include <drm/drm_crtc_helper.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include <drm/drm_fb_helper.h>
#include <linux/vga_switcheroo.h>
/* object hi... |
google | android | mkregtable | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/mkregtable.c | 19,691 | utf_8 | 85bb4aefa7c636ec1107f08bc0ba6c76 | /* utility to create the register check tables
* this includes inlined list.h safe for userspace.
*
*
* Authors:
* Jerome Glisse
* Dave Airlie
*/
#include <sys/types.h>
#include <stdlib.h>
#include <string.h>
#include <stdio.h>
#include <regex.h>
#include <libgen.h>
#define offsetof(TYPE, MEMBER) ((size_t) &((... |
google | android | radeon_test | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_test.c | 15,294 | iso_8859_1 | 8fd71c2a0ecf9f3312cccd61a8c1be84 | /*
*
* Authors: Michel Dänzer
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_reg.h"
#include "radeon.h"
#define RADEON_TEST_COPY_BLIT 1
#define RADEON_TEST_COPY_DMA 0
static void radeon_do_test_moves(struct radeon_device *rdev, int flag)
{
struct radeon_bo *vram_obj = NULL;
struct radeon_bo... |
google | android | evergreen_cs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/evergreen_cs.c | 104,852 | utf_8 | 28bae54ae86af1e33d2279ed3f507435 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "evergreend.h"
#include "evergreen_reg_safe.h"
#include "cayman_reg_safe.h"
#define MAX(a,b) (((a)>(b))?(a):(b))
#define MIN(a,b) (((a)<(b))?(a):(b)... |
google | android | radeon_ttm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_ttm.c | 31,077 | utf_8 | a5b4af67fa87807b27e6947a92b330a5 | /*
* Thomas Hellstrom <thomas-at-tungstengraphics-dot-com>
* Dave Airlie
*/
#include <ttm/ttm_bo_api.h>
#include <ttm/ttm_bo_driver.h>
#include <ttm/ttm_placement.h>
#include <ttm/ttm_module.h>
#include <ttm/ttm_page_alloc.h>
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include <linux/seq_file.h>
#includ... |
google | android | rv770_smc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/rv770_smc.c | 15,434 | utf_8 | 491a5e6bbb3db278b9ca28257214ab14 | /*
*
* Authors: Alex Deucher
*/
#include <linux/firmware.h>
#include "drmP.h"
#include "radeon.h"
#include "rv770d.h"
#include "rv770_dpm.h"
#include "rv770_smc.h"
#include "atom.h"
#include "radeon_ucode.h"
#define FIRST_SMC_INT_VECT_REG 0xFFD8
#define FIRST_INT_VECT_S19 0xFFC0
static const u8 rv770_smc_int_vec... |
google | android | btc_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/btc_dpm.c | 87,990 | utf_8 | b774238d9b174b554c077b33b43d32ad | /*
*
* Authors: Alex Deucher
*/
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "btcd.h"
#include "r600_dpm.h"
#include "cypress_dpm.h"
#include "btc_dpm.h"
#include "atom.h"
#include <linux/seq_file.h>
#define MC_CG_ARB_FREQ_F0 0x0a
#define MC_CG_ARB_FREQ_F1 0x0b
#define ... |
google | android | radeon_sync | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_sync.c | 5,779 | ibm852 | dac24df43dd3330fa197e73e5056d2b9 | /*
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_trace.h"
/**
* radeon_sync_create - zero init sync object
*
*
* Just clear the sync object for now.
*/
void radeon_sync_create(struct radeon_sync *sync)
{
unsigned i;
for (i = 0; i < RADEON_NUM_SYNCS; ++i)
sync->semaphores[i] = NULL;
for (i = 0... |
google | android | evergreen_blit_shaders | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/evergreen_blit_shaders.c | 7,202 | utf_8 | a7240409e92751a297fba396c159d88d | /*
*/
#include <linux/bug.h>
#include <linux/types.h>
#include <linux/kernel.h>
/*
* evergreen cards need to use the 3D engine to blit data which requires
* quite a bit of hw state setup. Rather than pull the whole 3D driver
* (which normally generates the 3D state) into the DRM, we opt to use
* statically genera... |
google | android | atom | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/atom.c | 35,540 | utf_8 | e3ca90da2564471228dc5f322828c6b0 | /*
*
* Author: Stanislaw Skowronek
*/
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/slab.h>
#include <asm/unaligned.h>
#define ATOM_DEBUG
#include "atom.h"
#include "atom-names.h"
#include "atom-bits.h"
#include "radeon.h"
#define ATOM_COND_ABOVE 0
#define ATOM_COND_ABOVEOREQUAL 1
#define ATOM_... |
google | android | r600_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600_dpm.c | 43,880 | utf_8 | de0317a8a57250d79215965623913c62 | /*
*
* Authors: Alex Deucher
*/
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "r600d.h"
#include "r600_dpm.h"
#include "atom.h"
const u32 r600_utc[R600_PM_NUMBER_OF_TC] =
{
R600_UTC_DFLT_00,
R600_UTC_DFLT_01,
R600_UTC_DFLT_02,
R600_UTC_DFLT_03,
R600_UTC_DFLT_04,
R600_UTC_DFLT_05,
R60... |
google | android | ci_smc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/ci_smc.c | 6,917 | utf_8 | 624960dbb51c71d6eeeadcd7909f65c5 | /*
*
* Authors: Alex Deucher
*/
#include <linux/firmware.h>
#include "drmP.h"
#include "radeon.h"
#include "cikd.h"
#include "ppsmc.h"
#include "radeon_ucode.h"
#include "ci_dpm.h"
static int ci_set_smc_sram_address(struct radeon_device *rdev,
u32 smc_address, u32 limit)
{
if (smc_address & 3)
return -EINV... |
google | android | rv730_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/rv730_dpm.c | 16,889 | utf_8 | 6209296e2b38e6eb18d01660a3af1ca9 | /*
*
* Authors: Alex Deucher
*/
#include "drmP.h"
#include "radeon.h"
#include "rv730d.h"
#include "r600_dpm.h"
#include "rv770_dpm.h"
#include "atom.h"
#define MC_CG_ARB_FREQ_F0 0x0a
#define MC_CG_ARB_FREQ_F1 0x0b
#define MC_CG_ARB_FREQ_F2 0x0c
#define MC_CG_ARB_FREQ_F3 0x0d
... |
google | android | sumo_smc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/sumo_smc.c | 5,665 | utf_8 | b090eee056dad8cbb2de607edba66880 | /*
*
*/
#include "drmP.h"
#include "radeon.h"
#include "sumod.h"
#include "sumo_dpm.h"
#include "ppsmc.h"
#define SUMO_SMU_SERVICE_ROUTINE_PG_INIT 1
#define SUMO_SMU_SERVICE_ROUTINE_ALTVDDNB_NOTIFY 27
#define SUMO_SMU_SERVICE_ROUTINE_GFX_SRV_ID_20 20
struct sumo_power_info *sumo_get_pi(struct radeon_device *... |
google | android | radeon_kfd | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_kfd.c | 23,027 | utf_8 | 4be2b99677a351d8855fd5901f9e2df0 | /*
*/
#include <linux/module.h>
#include <linux/fdtable.h>
#include <linux/uaccess.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "cikd.h"
#include "cik_reg.h"
#include "radeon_kfd.h"
#include "radeon_ucode.h"
#include <linux/firmware.h>
#include "cik_structs.h"
#define CIK_PIPE_PER_MEC (4)
static const uint32_... |
google | android | ni_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/ni_dpm.c | 132,908 | utf_8 | d9cd91834156c3b419b20b5f5e8d707d | /*
*
*/
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "nid.h"
#include "r600_dpm.h"
#include "ni_dpm.h"
#include "atom.h"
#include <linux/math64.h>
#include <linux/seq_file.h>
#define MC_CG_ARB_FREQ_F0 0x0a
#define MC_CG_ARB_FREQ_F1 0x0b
#define MC_CG_ARB_FREQ_F2 ... |
google | android | radeon_i2c | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_i2c.c | 29,352 | utf_8 | d5f6709abd8a49197634711ebae7f1ef | /*
*
* Authors: Dave Airlie
* Alex Deucher
*/
#include <linux/export.h>
#include <drm/drmP.h>
#include <drm/drm_edid.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "atom.h"
extern int radeon_atom_hw_i2c_xfer(struct i2c_adapter *i2c_adap,
struct i2c_msg *msgs, int num);
extern u32 radeon... |
google | android | radeon_gart | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_gart.c | 10,759 | utf_8 | 7b98095b3d4f17dc6ef124dc777ae5c0 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
/*
* GART
* The GART (Graphics Aperture Remapping Table) is an aperture
* in the GPU's address space. System pages can be mapped into
* the aperture and look li... |
google | android | radeon_display | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_display.c | 63,128 | utf_8 | 08c17050143aedc1f8bdc7d1d6bf5b47 | /*
*
* Authors: Dave Airlie
* Alex Deucher
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "atom.h"
#include <asm/div64.h>
#include <linux/pm_runtime.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_edid.h>
#include <linux/gcd.h>
stat... |
google | android | radeon_dp_mst | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_dp_mst.c | 23,671 | utf_8 | 174c9de7239c14691bff1aa5dd74a910 | #include <drm/drmP.h>
#include <drm/drm_dp_mst_helper.h>
#include <drm/drm_fb_helper.h>
#include "radeon.h"
#include "atom.h"
#include "ni_reg.h"
static struct radeon_encoder *radeon_dp_create_fake_mst_encoder(struct radeon_connector *connector);
static int radeon_atom_set_enc_offset(int id)
{
static const int offsets... |
google | android | rv740_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/rv740_dpm.c | 12,768 | utf_8 | 7b0497acf8be57065fa79283bb8b4d02 | /*
*
* Authors: Alex Deucher
*/
#include "drmP.h"
#include "radeon.h"
#include "rv740d.h"
#include "r600_dpm.h"
#include "rv770_dpm.h"
#include "atom.h"
struct rv7xx_power_info *rv770_get_pi(struct radeon_device *rdev);
u32 rv740_get_decoded_reference_divider(u32 encoded_ref)
{
u32 ref = 0;
switch (encoded_ref) {
... |
google | android | radeon_acpi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_acpi.c | 22,354 | utf_8 | 56be77dee038d72c3f58ae5bf361cd90 | /*
*
*/
#include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/slab.h>
#include <linux/power_supply.h>
#include <acpi/video.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "radeon.h"
#include "radeon_acpi.h"
#include "atom.h"
#define ACPI_AC_CLASS "ac_adapter"
extern void radeon_p... |
google | android | r200 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r200.c | 15,584 | utf_8 | 0ad5b9d4b5d86a1f4f3500eae545a2b8 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_reg.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "r100d.h"
#include "r200_reg_safe.h"
#include "r100_track.h"
static int r200_get_vtx_size_0(uint32_t vtx_fm... |
google | android | radeon_mem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_mem.c | 7,412 | utf_8 | 1492b4d2b3c1a7a3883cd00d757a5b56 | /* radeon_mem.c -- Simple GART/fb memory manager for radeon -*- linux-c -*- */
/*
*
* ------------------------ This file is DEPRECATED! -------------------------
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_drv.h"
/* Very simple allocator for GART memory, working on a static range
* already... |
google | android | cik_blit_shaders | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/cik_blit_shaders.c | 5,796 | utf_8 | 8e9a0c3a10898a5b5cfa0da3b46a5195 | /*
*/
#include <linux/types.h>
#include <linux/bug.h>
#include <linux/kernel.h>
const u32 cik_default_state[] =
{
0xc0066900,
0x00000000,
0x00000060, /* DB_RENDER_CONTROL */
0x00000000, /* DB_COUNT_CONTROL */
0x00000000, /* DB_DEPTH_VIEW */
0x0000002a, /* DB_RENDER_OVERRIDE */
0x00000000, /* DB_RENDER_OVERRIDE2... |
google | android | uvd_v2_2 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/uvd_v2_2.c | 5,386 | ibm852 | 14c9c69ee5b78000f547ae5c9e50df40 | /*
*/
#include <linux/firmware.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "rv770d.h"
/**
* uvd_v2_2_fence_emit - emit an fence & trap command
*
*
* Write a fence and a trap command to the ring.
*/
void uvd_v2_2_fence_emit(struct radeon_device *rdev,
struct radeon_fence *fen... |
google | android | r600_hdmi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600_hdmi.c | 15,805 | utf_8 | e14c7ee1429eaf5ae19605de93b933e5 | /*
*
* Authors: Christian König
*/
#include <linux/hdmi.h>
#include <linux/gcd.h>
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_audio.h"
#include "r600d.h"
#include "atom.h"
/*
* HDMI color format
*/
enum r600_hdmi_color_format {
RGB = 0,
YCC_422 ... |
google | android | r600_blit | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600_blit.c | 22,984 | utf_8 | 2d77cd71e7a575433f51a5a90cc02dee | /*
*
* ------------------------ This file is DEPRECATED! -------------------------
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_drv.h"
#include "r600_blit_shaders.h"
/* 23 bits of float fractional data */
#define I2F_FRAC_BITS 23
#define I2F_MASK ((1 << I2F_FRAC_BITS) - 1)
/*
* Converts un... |
google | android | r600_cp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600_cp.c | 80,288 | utf_8 | cabbccb66dfda57acbac3624d6cc5140 | /*
*
* ------------------------ This file is DEPRECATED! -------------------------
*/
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_drv.h"
#define PFP_UCODE_SIZE 576
#define PM4_UCODE_SIZE 1792
#define R700_PFP_UCODE_SIZE 848
#define R700_PM4_UCODE_SIZE 1360
/* Firmware... |
google | android | atombios_dp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/atombios_dp.c | 25,536 | utf_8 | da7e4ae0ba8e049f7fe017f0017522a5 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "atom.h"
#include "atom-bits.h"
#include <drm/drm_dp_helper.h>
/* move these to drm_dp_helper.c/h */
#define DP_LINK_CONFIGURATION_SIZE 9
#define DP_DPCD_SI... |
google | android | radeon_cursor | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_cursor.c | 10,736 | utf_8 | d190b1a23bfffde4aba82d904413fc4e | /*
*
* Authors: Dave Airlie
* Alex Deucher
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
static void radeon_lock_cursor(struct drm_crtc *crtc, bool lock)
{
struct radeon_device *rdev = crtc->dev->dev_private;
struct radeon_crtc *radeon_crtc = to_radeon_crtc(crtc);
uint32_t cur... |
google | android | rv770 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/rv770.c | 59,921 | utf_8 | 39cc47e7ed80f440dd059baec179e34c | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <linux/firmware.h>
#include <linux/slab.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_audio.h"
#include <drm/radeon_drm.h>
#include "rv770d.h"
#include "atom.h"
#include "avivod.h"
#def... |
google | android | radeon_connectors | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_connectors.c | 84,224 | utf_8 | c608b7da33cb3c461b9a76a887378589 | /*
*
* Authors: Dave Airlie
* Alex Deucher
*/
#include <drm/drmP.h>
#include <drm/drm_edid.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_fb_helper.h>
#include <drm/drm_dp_mst_helper.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "radeon_audio.h"
#include "atom.h"
#include <linux/pm_run... |
google | android | vce_v2_0 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/vce_v2_0.c | 5,227 | ibm852 | 93f15999a090763064d209d4b986a8cd | /*
*/
#include <linux/firmware.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "cikd.h"
#define VCE_V2_0_FW_SIZE (256 * 1024)
#define VCE_V2_0_STACK_SIZE (64 * 1024)
#define VCE_V2_0_DATA_SIZE (23552 * RADEON_MAX_VCE_HANDLES)
static void vce_v2_0_set_sw_cg(struct radeon_device *rdev, boo... |
google | android | radeon_trace_points | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_trace_points.c | 205 | utf_8 | 82b53cb011f635c95a7d086205a574fe | */
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#define CREATE_TRACE_POINTS
#include "radeon_trace.h" |
google | android | radeon_legacy_tv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_legacy_tv.c | 27,657 | utf_8 | e25cf495369b22a274d59bfa62b89075 | #include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "radeon.h"
/*
* Integrated TV out support based on the GATOS code by
*/
/*
* Limits of h/v positions (hPos & vPos)
*/
#define MAX_H_POSITION 5 /* Range: [-5..5], negative is on the left, 0 is default, positive is on the right */
#define MAX_V_POSITION ... |
google | android | ci_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/ci_dpm.c | 177,974 | utf_8 | 5ae38beacbf78d0bc5ec804eff4bd149 | /*
*
*/
#include <linux/firmware.h>
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_ucode.h"
#include "cikd.h"
#include "r600_dpm.h"
#include "ci_dpm.h"
#include "atom.h"
#include <linux/seq_file.h>
#define MC_CG_ARB_FREQ_F0 0x0a
#define MC_CG_ARB_FREQ_F1 0x0b
#defi... |
google | android | radeon_combios | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_combios.c | 104,396 | utf_8 | c5ad060c6dd39da5f97dba5b45815c1e | /*
*
* Authors: Dave Airlie
* Alex Deucher
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "atom.h"
#ifdef CONFIG_PPC_PMAC
/* not sure which of these are needed */
#include <asm/machdep.h>
#include <asm/pmac_feature.h>
#include <asm/prom.h>
#include <asm/pci-bridge.h>
#end... |
google | android | evergreen_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/evergreen_dma.c | 6,046 | utf_8 | bd295475c24b9ec4fd4e227e46a1ad9a | /*
*
* Authors: Alex Deucher
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "evergreend.h"
u32 evergreen_gpu_check_soft_reset(struct radeon_device *rdev);
/**
* evergreen_dma_fence_ring_emit - emit a fence on the DMA ring
*
*
* Add a DMA fence packet to the ring to write
* the fe... |
google | android | dce6_afmt | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/dce6_afmt.c | 10,092 | utf_8 | 368603efd4f46b409eb02ee8136d0483 | /*
*
*/
#include <linux/hdmi.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_audio.h"
#include "sid.h"
#define DCE8_DCCG_AUDIO_DTO1_PHASE 0x05b8
#define DCE8_DCCG_AUDIO_DTO1_MODULE 0x05bc
u32 dce6_endpoint_rreg(struct radeon_device *rdev,
u32 block_offset, u32 reg)
{
unsigned long flags;
u32 ... |
google | android | radeon_encoders | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_encoders.c | 14,430 | utf_8 | 837a7b6a1bdd8d434fa60575a22d68c1 | /*
*
* Authors: Dave Airlie
* Alex Deucher
*/
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "atom.h"
extern void
radeon_legacy_backlight_init(struct radeon_encoder *radeon_encoder,
struct drm_connector *drm_connector);
extern void
ra... |
google | android | ni | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/ni.c | 71,913 | utf_8 | e51bd8a3b01ceca49c1c6cb0f72f0889 | /*
*
* Authors: Alex Deucher
*/
#include <linux/firmware.h>
#include <linux/slab.h>
#include <linux/module.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_audio.h"
#include <drm/radeon_drm.h>
#include "nid.h"
#include "atom.h"
#include "ni_reg.h"
#include "cayman_blit_shaders.h... |
google | android | trinity_smc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/trinity_smc.c | 3,491 | utf_8 | cbfcb0a8e23e5fc8d7ad69217130a8b4 | /*
*
*/
#include "drmP.h"
#include "radeon.h"
#include "trinityd.h"
#include "trinity_dpm.h"
#include "ppsmc.h"
static int trinity_notify_message_to_smu(struct radeon_device *rdev, u32 id)
{
int i;
u32 v = 0;
WREG32(SMC_MESSAGE_0, id);
for (i = 0; i < rdev->usec_timeout; i++) {
if (RREG32(SMC_RESP_0) != 0)
b... |
google | android | radeon_benchmark | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_benchmark.c | 6,973 | utf_8 | 018bdd6475234046e47f40783d9fe805 | /*
*
* Authors: Jerome Glisse
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_reg.h"
#include "radeon.h"
#define RADEON_BENCHMARK_COPY_BLIT 1
#define RADEON_BENCHMARK_COPY_DMA 0
#define RADEON_BENCHMARK_ITERATIONS 1024
#define RADEON_BENCHMARK_COMMON_MODES_N 17
static int radeon_benchmark_do_m... |
google | android | radeon_vm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_vm.c | 32,543 | utf_8 | 4247708089c04c262feb89db13efc690 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "radeon_trace.h"
/*
* GPUVM
* GPUVM is similar to the legacy gart on older asics, however
* rather than there being a single global gart table
* for the... |
google | android | radeon_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_drv.c | 23,206 | utf_8 | 79138248c34f857a19b7181f3de9f319 | /**
* \file radeon_drv.c
* ATI Radeon driver
*
*/
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_drv.h"
#include <drm/drm_pciids.h>
#include <linux/console.h>
#include <linux/module.h>
#include <linux/pm_runtime.h>
#include <linux/vga_switcheroo.h>
#include <drm/drm_gem.h>
#include "drm_crtc_hel... |
google | android | radeon_ioc32 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_ioc32.c | 13,453 | utf_8 | fd23e283ba4f474b56b06ae62d142dee | /**
* \file radeon_ioc32.c
*
* 32-bit ioctl compatibility routines for the Radeon DRM.
*
*/
#include <linux/compat.h>
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon_drv.h"
typedef struct drm_radeon_init32 {
int func;
u32 sarea_priv_offset;
int is_pci;
int cp_mode;
int gart_size;
int ring_... |
google | android | radeon_pm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_pm.c | 56,877 | utf_8 | 61f5d72684ea307d1e6e1e639372c787 | /*
* Permission is hereby granted, free of charge, to any person obtaining a
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "avivod.h"
#include "atom.h"
#include "r600_dpm.h"
#include <linux/power_supply.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#define RADEON_IDLE_LOOP_MS 100
#define RADEON_R... |
google | android | r600_blit_shaders | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600_blit_shaders.c | 14,723 | utf_8 | 7723e71e8e98ca15b1f58b80a2b27b59 | /*
*/
#include <linux/bug.h>
#include <linux/types.h>
#include <linux/kernel.h>
/*
* R6xx+ cards need to use the 3D engine to blit data which requires
* quite a bit of hw state setup. Rather than pull the whole 3D driver
* (which normally generates the 3D state) into the DRM, we opt to use
* statically generated ... |
google | android | si_smc | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/si_smc.c | 7,364 | utf_8 | fad70404cef16779a6f428f7e0dd06a8 | /*
*
* Authors: Alex Deucher
*/
#include <linux/firmware.h>
#include "drmP.h"
#include "radeon.h"
#include "sid.h"
#include "ppsmc.h"
#include "radeon_ucode.h"
#include "sislands_smc.h"
static int si_set_smc_sram_address(struct radeon_device *rdev,
u32 smc_address, u32 limit)
{
if (smc_address & 3)
return ... |
google | android | radeon_atpx_handler | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_atpx_handler.c | 14,568 | utf_8 | d1535f74c6d80426b5026901e3c3b4c3 | /*
*
* ATPX support for both Intel/ATI
*/
#include <linux/vga_switcheroo.h>
#include <linux/slab.h>
#include <linux/acpi.h>
#include <linux/pci.h>
#include "radeon_acpi.h"
struct radeon_atpx_functions {
bool px_params;
bool power_cntl;
bool disp_mux_cntl;
bool i2c_mux_cntl;
bool switch_start;
bool switch_end;
... |
google | android | ni_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/ni_dma.c | 13,556 | utf_8 | cf2109959f4a98917062f313bda17924 | /*
*
* Authors: Alex Deucher
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_trace.h"
#include "nid.h"
u32 cayman_gpu_check_soft_reset(struct radeon_device *rdev);
/*
* DMA
* Starting with R600, the GPU has an asynchronous
* DMA engine. The programming model is very similar... |
google | android | radeon_device | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_device.c | 51,892 | utf_8 | d159d8ba80b5d9e316b5f58d911f49b0 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <linux/console.h>
#include <linux/slab.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/radeon_drm.h>
#include <linux/vgaarb.h>
#include <linux/vga_switcheroo.h>
#include <linux/efi.h>
#include "radeon_r... |
google | android | r600_cs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600_cs.c | 79,181 | utf_8 | 2ad265f830abc835b1970cd712b7c7e2 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <linux/kernel.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "r600d.h"
#include "r600_reg_safe.h"
static int r600_nomm;
extern void r600_cs_legacy_get_tiling_conf(struct drm_device *dev, u32 *npipes, u32 *nbanks, u32 *g... |
google | android | radeon_vce | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_vce.c | 20,971 | ibm852 | e8bfbe1f19ec22fb4eaf511c7e5c8a44 | /*
*/
#include <linux/firmware.h>
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/drm.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "sid.h"
/* 1 second timeout */
#define VCE_IDLE_TIMEOUT_MS 1000
/* Firmware Names */
#define FIRMWARE_TAHITI "radeon/TAHITI_vce.bin"
#define FIRMWARE_BONAIRE "rad... |
google | android | rs780_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/rs780_dpm.c | 33,262 | utf_8 | 82739853ce745bed3ca226c5d79ed740 | /*
*
* Authors: Alex Deucher
*/
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "rs780d.h"
#include "r600_dpm.h"
#include "rs780_dpm.h"
#include "atom.h"
#include <linux/seq_file.h>
static struct igp_ps *rs780_get_ps(struct radeon_ps *rps)
{
struct igp_ps *ps = rps->ps_priv;
return ps;
}
st... |
google | android | r600 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600.c | 137,562 | utf_8 | d1731371046954f42030d9e7db6c4407 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <linux/slab.h>
#include <linux/seq_file.h>
#include <linux/firmware.h>
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/radeon_drm.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_audio.h"
#include... |
google | android | kv_dpm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/kv_dpm.c | 80,538 | utf_8 | c25d058b737f9d7ca1e4ea7790eb3a2f | /*
*
*/
#include "drmP.h"
#include "radeon.h"
#include "cikd.h"
#include "r600_dpm.h"
#include "kv_dpm.h"
#include "radeon_asic.h"
#include <linux/seq_file.h>
#define KV_MAX_DEEPSLEEP_DIVIDER_ID 5
#define KV_MINIMUM_ENGINE_CLOCK 800
#define SMC_RAM_END 0x40000
static int kv_enable_nb_d... |
google | android | cik | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/cik.c | 291,258 | utf_8 | bc92bcc8ad7c95350da0750097842f54 | /*
*
* Authors: Alex Deucher
*/
#include <linux/firmware.h>
#include <linux/slab.h>
#include <linux/module.h>
#include "drmP.h"
#include "radeon.h"
#include "radeon_asic.h"
#include "radeon_audio.h"
#include "cikd.h"
#include "atom.h"
#include "cik_blit_shaders.h"
#include "radeon_ucode.h"
#include "clearstate_ci.h"... |
google | android | r520 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r520.c | 8,861 | utf_8 | c7309b5b311dea76a950ddfc1519ba56 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "atom.h"
#include "r520d.h"
/* This files gather functions specifics to: r520,rv530,rv560,rv570,r580 */
int r520_mc_wait_for_idle(struct radeon_device *rdev)
{... |
google | android | uvd_v4_2 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/uvd_v4_2.c | 2,271 | ibm852 | ffa8e29b4e14a308a39f950d9bf333c7 | /*
*/
#include <linux/firmware.h>
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "cikd.h"
/**
* uvd_v4_2_resume - memory controller programming
*
*
* Let the UVD memory controller know it's offsets
*/
int uvd_v4_2_resume(struct radeon_device *rdev)
{
uint64_t addr;
uint32_t size;
/... |
google | android | r600_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/r600_dma.c | 13,661 | utf_8 | 890faca19bb5c9db8b6089454979f73e | /*
*
* Authors: Alex Deucher
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "r600d.h"
u32 r600_gpu_check_soft_reset(struct radeon_device *rdev);
/*
* DMA
* Starting with R600, the GPU has an asynchronous
* DMA engine. The programming model is very similar
* to the 3D engine (ring... |
google | android | radeon_irq_kms | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/radeon_irq_kms.c | 14,975 | utf_8 | beb88a1a5b39b682b833525eed82df08 | /*
*
* Authors: Dave Airlie
* Alex Deucher
* Jerome Glisse
*/
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/radeon_drm.h>
#include "radeon_reg.h"
#include "radeon.h"
#include "atom.h"
#include <linux/pm_runtime.h>
#define RADEON_WAIT_IDLE_TIMEOUT 200
/**
* radeon_driver_ir... |
google | android | rv770_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/radeon/rv770_dma.c | 3,261 | utf_8 | 6755153f7b20757949bd223b88bda659 | /*
*
* Authors: Alex Deucher
*/
#include <drm/drmP.h>
#include "radeon.h"
#include "radeon_asic.h"
#include "rv770d.h"
/**
* rv770_copy_dma - copy pages using the DMA engine
*
*
* Copy GPU paging using the DMA engine (r7xx).
* Used by the radeon ttm implementation to move pages if
* registered as the asic copy... |
google | android | mga_state | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mga/mga_state.c | 29,201 | utf_8 | 00269d5b185364d303f5ca10f5a46efd | /* mga_state.c -- State support for MGA G200/G400 -*- linux-c -*-
*/
#include <drm/drmP.h>
#include <drm/mga_drm.h>
#include "mga_drv.h"
/* ================================================================
* DMA hardware state programming functions
*/
static void mga_emit_clip_rect(drm_mga_private_t *dev_priv,
... |
google | android | mga_warp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mga/mga_warp.c | 4,823 | utf_8 | 3a9a70dd5284aefa90d2daa32fe9889c | /* mga_warp.c -- Matrox G200/G400 WARP engine management -*- linux-c -*-
*/
#include <linux/firmware.h>
#include <linux/ihex.h>
#include <linux/platform_device.h>
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/mga_drm.h>
#include "mga_drv.h"
#define FIRMWARE_G200 "matrox/g200_warp.fw"
#define FIRMWARE_G... |
google | android | mga_ioc32 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mga/mga_ioc32.c | 7,482 | utf_8 | cd38f5feae4ab0c4c3a014d724c336ba | /**
* \file mga_ioc32.c
*
* 32-bit ioctl compatibility routines for the MGA DRM.
*
*/
#include <linux/compat.h>
#include <drm/drmP.h>
#include <drm/mga_drm.h>
#include "mga_drv.h"
typedef struct drm32_mga_init {
int func;
u32 sarea_priv_offset;
int chipset;
int sgram;
unsigned int maccess;
unsigned int fb_cp... |
google | android | mga_dma | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mga/mga_dma.c | 29,848 | utf_8 | 16c8dca6dffbde4bdace49bbb2c6cfeb | /* mga_dma.c -- DMA support for mga g200/g400 -*- linux-c -*-
*/
#include <drm/drmP.h>
#include <drm/mga_drm.h>
#include "mga_drv.h"
#define MGA_DEFAULT_USEC_TIMEOUT 10000
#define MGA_FREELIST_DEBUG 0
#define MINIMAL_CLEANUP 0
#define FULL_CLEANUP 1
static int mga_do_cleanup_dma(struct drm_device *dev, int full_clean... |
google | android | mga_irq | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mga/mga_irq.c | 4,990 | utf_8 | 08ec3a4541c68fa6cf11407ee20814db | /* mga_irq.c -- IRQ handling for radeon -*- linux-c -*-
*/
/*
*/
#include <drm/drmP.h>
#include <drm/mga_drm.h>
#include "mga_drv.h"
u32 mga_get_vblank_counter(struct drm_device *dev, unsigned int pipe)
{
const drm_mga_private_t *const dev_priv =
(drm_mga_private_t *) dev->dev_private;
if (pipe != 0)
return 0;
... |
google | android | mga_drv | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/mga/mga_drv.c | 4,495 | utf_8 | d9ecca47a2b2dad6596d7fed0fd3a902 | /* mga_drv.c -- Matrox G200/G400 driver -*- linux-c -*-
*/
#include <linux/module.h>
#include <drm/drmP.h>
#include <drm/mga_drm.h>
#include "mga_drv.h"
#include <drm/drm_pciids.h>
static int mga_driver_device_is_agp(struct drm_device *dev);
static struct pci_device_id pciidlist[] = {
mga_PCI_IDS
};
static const stru... |
google | android | nouveau_ioc32 | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_ioc32.c | 2,216 | utf_8 | e062dae27ab039f4a7de53d6c1dd3975 | /**
* \file mga_ioc32.c
*
* 32-bit ioctl compatibility routines for the MGA DRM.
*
*/
#include <linux/compat.h>
#include <drm/drmP.h>
#include "nouveau_ioctl.h"
/**
* Called whenever a 32-bit process running under a 64-bit kernel
* performs an ioctl on /dev/dri/card<n>.
*
* \param filp file pointer.
* \param ... |
google | android | nouveau_platform | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_platform.c | 2,385 | utf_8 | 67f3c15a5a1bed5f08f156120e4beaf3 | /*
*/
#include "nouveau_platform.h"
static int nouveau_platform_probe(struct platform_device *pdev)
{
const struct nvkm_device_tegra_func *func;
struct nvkm_device *device = NULL;
struct drm_device *drm;
int ret;
func = of_device_get_match_data(&pdev->dev);
drm = nouveau_platform_device_create(func, pdev, &devic... |
google | android | nv50_display | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nv50_display.c | 71,656 | utf_8 | 094aaed2fff1bdff1c6cbcad924d552d | /*
*
* Authors: Ben Skeggs
*/
#include <linux/dma-mapping.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <drm/drm_plane_helper.h>
#include <drm/drm_dp_helper.h>
#include <nvif/class.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_gem.h"
#include "nouveau_connector.h"
#inclu... |
google | android | nvc0_fence | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nvc0_fence.c | 2,656 | utf_8 | 4ed0a46dc1e047e1ee6816756dd198b6 | /*
*
* Authors: Ben Skeggs
*/
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_fence.h"
#include "nv50_display.h"
static int
nvc0_fence_emit32(struct nouveau_channel *chan, u64 virtual, u32 sequence)
{
int ret = RING_SPACE(chan, 6);
if (ret == 0) {
BEGIN_NVC0(chan, 0, NV84_SUBCHAN_SEMAPHORE_AD... |
google | android | nouveau_connector | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_connector.c | 37,015 | utf_8 | 7fd875d690f4789ab02452758523a279 | /*
*
*/
#include <acpi/button.h>
#include <linux/pm_runtime.h>
#include <drm/drmP.h>
#include <drm/drm_edid.h>
#include <drm/drm_crtc_helper.h>
#include "nouveau_reg.h"
#include "nouveau_drm.h"
#include "dispnv04/hw.h"
#include "nouveau_acpi.h"
#include "nouveau_display.h"
#include "nouveau_connector.h"
#include "nou... |
google | android | nv50_fence | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nv50_fence.c | 3,717 | utf_8 | 8ef45746a901fc70270532c0c44093f1 | /*
*/
#include <nvif/os.h>
#include <nvif/class.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nv10_fence.h"
#include "nv50_display.h"
static int
nv50_fence_context_new(struct nouveau_channel *chan)
{
struct drm_device *dev = chan->drm->dev;
struct nv10_fence_priv *priv = chan->drm->fence;
struct nv... |
google | android | nouveau_fence | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_fence.c | 14,390 | utf_8 | 3c51c7e8694fa7e77f65e6d76264a0e9 | /*
*
*/
#include <drm/drmP.h>
#include <linux/ktime.h>
#include <linux/hrtimer.h>
#include <trace/events/fence.h>
#include <nvif/notify.h>
#include <nvif/event.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_fence.h"
static const struct fence_ops nouveau_fence_ops_uevent;
static const struct fe... |
google | android | nv17_fence | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nv17_fence.c | 4,198 | utf_8 | 2f549e49e98a61cbddeefb1b4e973d78 | /*
*/
#include <nvif/os.h>
#include <nvif/class.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nv10_fence.h"
int
nv17_fence_sync(struct nouveau_fence *fence,
struct nouveau_channel *prev, struct nouveau_channel *chan)
{
struct nouveau_cli *cli = (void *)prev->user.client;
struct nv10_fence_priv *pr... |
google | android | nouveau_debugfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_debugfs.c | 2,099 | utf_8 | 13f7952fd2b29d24f40a7056bb1f2f21 | /*
*/
#include "nouveau_debugfs.h"
#include "nouveau_drm.h"
static int
nouveau_debugfs_vbios_image(struct seq_file *m, void *data)
{
struct drm_info_node *node = (struct drm_info_node *) m->private;
struct nouveau_drm *drm = nouveau_drm(node->minor->dev);
int i;
for (i = 0; i < drm->vbios.length; i++)
seq_printf... |
google | android | nouveau_acpi | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_acpi.c | 11,209 | utf_8 | facaa5b1a5ee9809312d622485912aaf | #include <linux/pci.h>
#include <linux/acpi.h>
#include <linux/slab.h>
#include <linux/mxm-wmi.h>
#include <linux/vga_switcheroo.h>
#include <drm/drm_edid.h>
#include <acpi/video.h>
#include "nouveau_drm.h"
#include "nouveau_acpi.h"
#define NOUVEAU_DSM_LED 0x02
#define NOUVEAU_DSM_LED_STATE 0x00
#define NOUVEAU_DSM_L... |
google | android | nvc0_fbcon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nvc0_fbcon.c | 7,075 | utf_8 | 9a18f68be569ddf2c7d05673da5d6d06 | /*
*
* Authors: Ben Skeggs
*/
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_fbcon.h"
int
nvc0_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
{
struct nouveau_fbdev *nfbdev = info->par;
struct nouveau_drm *drm = nouveau_drm(nfbdev->dev);
struct nouveau_channel *chan = dr... |
google | android | nouveau_backlight | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_backlight.c | 7,104 | utf_8 | e19db47380fd5c8572500ab10fb3efdb | /*
*
* Register locations derived from NVClock by Roderick Colenbrander
*/
#include <linux/backlight.h>
#include "nouveau_drm.h"
#include "nouveau_reg.h"
#include "nouveau_encoder.h"
static int
nv40_get_intensity(struct backlight_device *bd)
{
struct nouveau_drm *drm = bl_get_data(bd);
struct nvif_object *device =... |
google | android | nouveau_drm | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_drm.c | 28,774 | utf_8 | fed42e4b8a5a2cb063978472ee150df2 | /*
*
* Authors: Ben Skeggs
*/
#include <linux/console.h>
#include <linux/delay.h>
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/pm_runtime.h>
#include <linux/vga_switcheroo.h>
#include "drmP.h"
#include "drm_crtc_helper.h"
#include <core/gpuobj.h>
#include <core/option.h>
#include <core/pci.h>
#in... |
google | android | nouveau_sysfs | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_sysfs.c | 5,335 | utf_8 | d0d2e12ca7826266b75efd03d6cc94c7 | /*
*/
#include <nvif/os.h>
#include <nvif/class.h>
#include <nvif/ioctl.h>
#include "nouveau_sysfs.h"
MODULE_PARM_DESC(pstate, "enable sysfs pstate file, which will be moved in the future");
int nouveau_pstate;
module_param_named(pstate, nouveau_pstate, int, 0400);
static inline struct drm_device *
drm_device(struct d... |
google | android | nv04_fence | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nv04_fence.c | 3,104 | utf_8 | 77fd82ef61860433f9c73e448a09042f | /*
*
* Authors: Ben Skeggs
*/
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_fence.h"
struct nv04_fence_chan {
struct nouveau_fence_chan base;
};
struct nv04_fence_priv {
struct nouveau_fence_priv base;
};
static int
nv04_fence_emit(struct nouveau_fence *fence)
{
struct nouveau_channel *chan ... |
google | android | nouveau_dp | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_dp.c | 2,868 | utf_8 | 31d1c58cdb340f6b507ab5c1c0a383f8 | /*
*
* Authors: Ben Skeggs
*/
#include <drm/drmP.h>
#include <drm/drm_dp_helper.h>
#include "nouveau_drm.h"
#include "nouveau_connector.h"
#include "nouveau_encoder.h"
#include "nouveau_crtc.h"
static void
nouveau_dp_probe_oui(struct drm_device *dev, struct nvkm_i2c_aux *aux, u8 *dpcd)
{
struct nouveau_drm *drm = n... |
google | android | nouveau_display | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_display.c | 24,202 | utf_8 | 5ebca8d9c6a0e4dceacd4342b4f7aebe | /*
*
*/
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include <nvif/class.h>
#include "nouveau_fbcon.h"
#include "dispnv04/hw.h"
#include "nouveau_crtc.h"
#include "nouveau_dma.h"
#include "nouveau_gem.h"
#include "nouveau_connector.h"
#include "nv50_display.h"
#include "nouveau_fence.h"
#include <nvif/even... |
google | android | nouveau_usif | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_usif.c | 9,938 | utf_8 | 28b71ca9384672e684f155b67b3e8ac3 | /*
*/
#include "nouveau_drm.h"
#include "nouveau_usif.h"
#include "nouveau_abi16.h"
#include <nvif/notify.h>
#include <nvif/unpack.h>
#include <nvif/client.h>
#include <nvif/event.h>
#include <nvif/ioctl.h>
struct usif_notify_p {
struct drm_pending_event base;
struct {
struct drm_event base;
u8 data[];
} e;
};
... |
google | android | nouveau_bios | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_bios.c | 60,387 | utf_8 | 32fbe12d1fadeda0cb5be642e079c96f | /*
*/
#include <drm/drmP.h>
#include "nouveau_drm.h"
#include "nouveau_reg.h"
#include "dispnv04/hw.h"
#include "nouveau_encoder.h"
#include <linux/io-mapping.h>
#include <linux/firmware.h>
/* these defines are made up */
#define NV_CIO_CRE_44_HEADA 0x0
#define NV_CIO_CRE_44_HEADB 0x3
#define FEATURE_MOBILE 0x10 /* al... |
google | android | nouveau_gem | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_gem.c | 23,855 | utf_8 | 78a72718898ff26c5a7ab269779c9d45 | /*
*
*/
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_fence.h"
#include "nouveau_abi16.h"
#include "nouveau_ttm.h"
#include "nouveau_gem.h"
void
nouveau_gem_object_del(struct drm_gem_object *gem)
{
struct nouveau_bo *nvbo = nouveau_gem_object(gem);
struct nouveau_drm *drm = nouveau_bdev(nvbo->... |
google | android | nouveau_fbcon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_fbcon.c | 15,571 | utf_8 | a127fdb8f3b93db204aef3745fdbe6d1 | /*
*
* Authors:
* David Airlie
*/
#include <linux/module.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/string.h>
#include <linux/mm.h>
#include <linux/tty.h>
#include <linux/sysrq.h>
#include <linux/delay.h>
#include <linux/fb.h>
#include <linux/init.h>
#include <linux/screen_info.h>
#in... |
google | android | nouveau_hwmon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_hwmon.c | 18,708 | utf_8 | b44521f7426790b3d1806e250662af68 | /*
*
* Authors: Ben Skeggs
*/
#ifdef CONFIG_ACPI
#include <linux/acpi.h>
#endif
#include <linux/power_supply.h>
#include <linux/hwmon.h>
#include <linux/hwmon-sysfs.h>
#include <drm/drmP.h>
#include "nouveau_drm.h"
#include "nouveau_hwmon.h"
#if defined(CONFIG_HWMON) || (defined(MODULE) && defined(CONFIG_HWMON_MODUL... |
google | android | nv50_fbcon | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nv50_fbcon.c | 7,022 | utf_8 | cd7cddc6ef2b7346f476ce82a328ac6a | /*
*
* Authors: Ben Skeggs
*/
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_fbcon.h"
int
nv50_fbcon_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
{
struct nouveau_fbdev *nfbdev = info->par;
struct nouveau_drm *drm = nouveau_drm(nfbdev->dev);
struct nouveau_channel *chan = dr... |
google | android | nouveau_bo | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_bo.c | 42,719 | utf_8 | fa1fef42be56a4e56249ebbabf9a4dba | /*
*/
#include <linux/dma-mapping.h>
#include <linux/swiotlb.h>
#include "nouveau_drm.h"
#include "nouveau_dma.h"
#include "nouveau_fence.h"
#include "nouveau_bo.h"
#include "nouveau_ttm.h"
#include "nouveau_gem.h"
/*
* NV10-NV40 tiling helpers
*/
static void
nv10_bo_update_tile_region(struct drm_device *dev, struct... |
google | android | nouveau_vga | .c | platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/nouveau/nouveau_vga.c | 3,557 | utf_8 | 0748b1b63ce7ad7e6268deb393c01e65 | #include <linux/vgaarb.h>
#include <linux/vga_switcheroo.h>
#include <drm/drmP.h>
#include <drm/drm_crtc_helper.h>
#include "nouveau_drm.h"
#include "nouveau_acpi.h"
#include "nouveau_fbcon.h"
#include "nouveau_vga.h"
static unsigned int
nouveau_vga_set_decode(void *priv, bool state)
{
struct nouveau_drm *drm = nou... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.