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
fiji_smc
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/fiji_smc.c
22,520
utf_8
655ef613c5ebcb14c0cafabfc91eef62
/* * */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "fiji_ppsmc.h" #include "fiji_smumgr.h" #include "smu_ucode_xfer_vi.h" #include "amdgpu_ucode.h" #include "smu/smu_7_1_3_d.h" #include "smu/smu_7_1_3_sh_mask.h" #define FIJI_SMC_SIZE 0x20000 static int fiji_set_smc_sram_address(struct ...
google
android
sdma_v2_4
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
40,338
utf_8
bcf161be47284deb110e649f6d9b8528
/* * * Authors: Alex Deucher */ #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_ucode.h" #include "amdgpu_trace.h" #include "vi.h" #include "vid.h" #include "oss/oss_2_4_d.h" #include "oss/oss_2_4_sh_mask.h" #include "gmc/gmc_7_1_d.h" #include "gmc/gmc_7_1_sh_mask.h" #include "...
google
android
vce_v3_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/vce_v3_0.c
18,096
ibm852
71623191d22b24e3e3563fc42b305486
/* */ #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_vce.h" #include "vid.h" #include "vce/vce_3_0_d.h" #include "vce/vce_3_0_sh_mask.h" #include "oss/oss_3_0_d.h" #include "oss/oss_3_0_sh_mask.h" #include "gca/gfx_8_0_d.h" #include "smu/smu_7_1_2_d.h" #include "smu/smu_7_1_2_sh...
google
android
amdgpu_ring
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_ring.c
15,589
ibm852
e4d20e60ed13271b4631558d72d05583
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse * Christian König */ #include <linux/seq_file.h> #include <linux/slab.h> #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "atom.h" /* * Rings * Most engines on the GPU are fed via ring buffers. R...
google
android
cik_sdma
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/cik_sdma.c
39,539
utf_8
af255818d14267a679f2e3a5cf19bcd8
/* * * Authors: Alex Deucher */ #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_ucode.h" #include "amdgpu_trace.h" #include "cikd.h" #include "cik.h" #include "bif/bif_4_1_d.h" #include "bif/bif_4_1_sh_mask.h" #include "gca/gfx_7_2_d.h" #include "gca/gfx_7_2_enum.h" #include "g...
google
android
atombios_encoders
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/atombios_encoders.c
68,520
utf_8
e4943ee05fa2c5ca35141d38b7efa779
/* * * Authors: Dave Airlie * Alex Deucher */ #include <drm/drmP.h> #include <drm/drm_crtc_helper.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_connectors.h" #include "atom.h" #include "atombios_encoders.h" #include "atombios_dp.h" #include <linux/backlight.h> #include "bif/bif_4_1_d....
google
android
amdgpu_vm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
34,852
utf_8
e80e72664bae611547e21527afa55548
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_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
amdgpu_semaphore
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_semaphore.c
3,118
utf_8
23d2ca3cf6852567f2528abe215b3cc2
/* */ #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_trace.h" int amdgpu_semaphore_create(struct amdgpu_device *adev, struct amdgpu_semaphore **semaphore) { int r; *semaphore = kmalloc(sizeof(struct amdgpu_semaphore), GFP_KERNEL); if (*semaphore == NULL) { return -ENOMEM; } r = amdgpu_sa_bo_n...
google
android
amdgpu_ttm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
32,371
utf_8
974389d6d02e91a2149ffaf2d4fd0713
/* * 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/amdgpu_drm.h> #include <linux/seq_file.h> #includ...
google
android
amdgpu_kms
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
23,335
utf_8
98d3e216f29e4b755d312b59e5d4a6cd
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <drm/drmP.h> #include "amdgpu.h" #include <drm/amdgpu_drm.h> #include "amdgpu_uvd.h" #include "amdgpu_vce.h" #include <linux/vga_switcheroo.h> #include <linux/slab.h> #include <linux/pm_runtime.h> #include "amdgpu_amdkfd.h" #i...
google
android
amdgpu_object
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
17,349
utf_8
f5a025d6085b3a25cf2a4b351a1b407f
/* * Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> * Dave Airlie */ #include <linux/list.h> #include <linux/slab.h> #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include <drm/drm_cache.h> #include "amdgpu.h" #include "amdgpu_trace.h" int amdgpu_ttm_init(struct amdgpu_device *adev); void amdgpu_ttm...
google
android
iceland_ih
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
12,918
utf_8
3e240666107168b7948d251fb75295d8
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_ih.h" #include "vid.h" #include "oss/oss_2_4_d.h" #include "oss/oss_2_4_sh_mask.h" #include "bif/bif_5_1_d.h" #include "bif/bif_5_1_sh_mask.h" /* * Interrupts * Starting with r6xx, interrupts are handled via a ring buffer. * Ring buffers are areas of G...
google
android
amdgpu_ih
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_ih.c
6,273
utf_8
212be4c57921533608f26eb9d371fbbf
/* * */ #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_ih.h" #include "amdgpu_amdkfd.h" /** * amdgpu_ih_ring_alloc - allocate memory for the IH ring * * * Allocate a ring buffer for the interrupt controller. * Returns 0 for success, errors for failure. */ static int amdgpu_ih_ring_alloc(struct amdgp...
google
android
amdgpu_display
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
27,905
utf_8
3dd43c7d085264eb8df0697cc1799d97
/* * * Authors: Dave Airlie * Alex Deucher */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_i2c.h" #include "atom.h" #include "amdgpu_connectors.h" #include <asm/div64.h> #include <linux/pm_runtime.h> #include <drm/drm_crtc_helper.h> #include <drm/drm_edid.h> static...
google
android
amdgpu_uvd
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_uvd.c
25,471
ibm852
cd40d9b181a702008fc1381eab1c3e60
/* */ #include <linux/firmware.h> #include <linux/module.h> #include <drm/drmP.h> #include <drm/drm.h> #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_uvd.h" #include "cikd.h" #include "uvd/uvd_4_2_d.h" /* 1 second timeout */ #define UVD_IDLE_TIMEOUT_MS 1000 /* Firmware Names */ #ifdef CONFIG_DRM_AMDGPU_CI...
google
android
amdgpu_test
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
14,304
iso_8859_1
787f2f1468cad692b6f12c73552bee86
/* * * Authors: Michel Dänzer */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_uvd.h" #include "amdgpu_vce.h" static void amdgpu_do_test_moves(struct amdgpu_device *adev) { struct amdgpu_ring *ring = adev->mman.buffer_funcs_ring; struct amdgpu_bo *vram_obj = NULL; struct a...
google
android
amdgpu_bios
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_bios.c
9,296
utf_8
7b8ecdcdb2949970474ffcbe8970ff9c
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <drm/drmP.h> #include "amdgpu.h" #include "atom.h" #include <linux/slab.h> #include <linux/acpi.h> /* * BIOS. */ /* If you boot an IGP board with a discrete card as the primary, * the IGP rom is not accessible via the rom b...
google
android
tonga_dpm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/tonga_dpm.c
4,567
utf_8
f16576f2d27cfbd158a2bf0de1e1be4f
/* * */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "tonga_smumgr.h" MODULE_FIRMWARE("amdgpu/tonga_smc.bin"); static void tonga_dpm_set_funcs(struct amdgpu_device *adev); static int tonga_dpm_early_init(void *handle) { struct amdgpu_device *adev = (struct amdgpu_device *)handle; tonga...
google
android
amdgpu_i2c
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_i2c.c
10,292
utf_8
5e0c5c54969aa6e1463c1f7b535a2577
/* * * Authors: Dave Airlie * Alex Deucher */ #include <linux/export.h> #include <drm/drmP.h> #include <drm/drm_edid.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_i2c.h" #include "amdgpu_atombios.h" #include "atom.h" #include "atombios_dp.h" #include "atombios_i2c.h" /* bit banging i2...
google
android
amdgpu_device
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
52,772
utf_8
ba19b55d0f7b0b2fc395d0bb0a7ccc61
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <linux/console.h> #include <linux/slab.h> #include <linux/debugfs.h> #include <drm/drmP.h> #include <drm/drm_crtc_helper.h> #include <drm/amdgpu_drm.h> #include <linux/vgaarb.h> #include <linux/vga_switcheroo.h> #include <linu...
google
android
amdgpu_dpm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.c
36,095
utf_8
286a098addd671e71fb4504261595805
/* * * Authors: Alex Deucher */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_atombios.h" #include "amdgpu_i2c.h" #include "amdgpu_dpm.h" #include "atom.h" void amdgpu_dpm_print_class_info(u32 class, u32 class2) { printk("\tui class: "); switch (class & ATOM_PPLIB_CLASSIFICATION_UI_MASK) { case ATOM_PPLI...
google
android
amdgpu_ib
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
9,092
ibm852
dc72e87d1af289748ae166edbfa07aaa
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse * Christian König */ #include <linux/seq_file.h> #include <linux/slab.h> #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "atom.h" /* * IB * IBs (Indirect Buffers) and areas of GPU accessible memo...
google
android
amdgpu_sync
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c
9,177
ibm852
8b7853c04070572ed74c475bc713ee29
/* */ #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_trace.h" struct amdgpu_sync_entry { struct hlist_node node; struct fence *fence; }; /** * amdgpu_sync_create - zero init sync object * * * Just clear the sync object for now. */ void amdgpu_sync_create(struct amdgpu_sync *sync) { unsigned i; fo...
google
android
amdgpu_encoders
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_encoders.c
8,616
utf_8
7d402c5e14c0f1f8fce0597612a796a5
/* * * Authors: Dave Airlie * Alex Deucher */ #include <drm/drmP.h> #include <drm/drm_crtc_helper.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_connectors.h" #include "atom.h" #include "atombios_encoders.h" void amdgpu_link_encoder_connector(struct drm_device *dev) { struct amdgpu_de...
google
android
cz_smc
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/cz_smc.c
28,486
utf_8
16a11986cbe1e155e8cdb15ea4062fc7
/* * */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "smu8.h" #include "smu8_fusion.h" #include "cz_ppsmc.h" #include "cz_smumgr.h" #include "smu_ucode_xfer_cz.h" #include "amdgpu_ucode.h" #include "smu/smu_8_0_d.h" #include "smu/smu_8_0_sh_mask.h" #include "gca/gfx_8_0_d.h" #include "gc...
google
android
dce_v10_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/dce_v10_0.c
119,210
utf_8
61c284451d8fa5583888b9b6fd6cbd4b
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_i2c.h" #include "vid.h" #include "atom.h" #include "amdgpu_atombios.h" #include "atombios_crtc.h" #include "atombios_encoders.h" #include "amdgpu_pll.h" #include "amdgpu_connectors.h" #include "dce/dce_10_0_d.h" #include "dce/dce_10...
google
android
amdgpu_atombios
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_atombios.c
49,637
utf_8
99eabe9f914096ff54af27f3cd3e0686
/* * * Authors: Dave Airlie * Alex Deucher */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_atombios.h" #include "amdgpu_i2c.h" #include "atom.h" #include "atom-bits.h" #include "atombios_encoders.h" #include "bif/bif_4_1_d.h" static void amdgpu_atombios_lookup_i2c_...
google
android
amdgpu_sa
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_sa.c
12,088
utf_8
424c4718a87c42c08d4b5fe4a91dbb00
/* */ /* Algorithm: * * We store the last allocated bo in "hole", we always try to allocate * after the last allocated bo. Principle is that in a linear GPU ring * progression was is after last is the oldest bo we allocated and thus * the first one that should no longer be in use by the GPU. * * If it's not the...
google
android
amdgpu_trace_points
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_trace_points.c
205
utf_8
8879629feb6984b7ef1035f32efd508d
*/ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #define CREATE_TRACE_POINTS #include "amdgpu_trace.h"
google
android
amdgpu_amdkfd_gfx_v7
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v7.c
19,129
utf_8
aaf18a5ec460d1421f7d412db8fdbd4c
/* */ #include <linux/fdtable.h> #include <linux/uaccess.h> #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_amdkfd.h" #include "cikd.h" #include "cik_sdma.h" #include "amdgpu_ucode.h" #include "gca/gfx_7_2_d.h" #include "gca/gfx_7_2_enum.h" #include "gca/gfx_7_2_sh_mask.h" #inclu...
google
android
amdgpu_benchmark
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_benchmark.c
6,262
utf_8
c0a2e2fedc6ea0c1cb2298996b7c5c8a
/* * * Authors: Jerome Glisse */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #define AMDGPU_BENCHMARK_ITERATIONS 1024 #define AMDGPU_BENCHMARK_COMMON_MODES_N 17 static int amdgpu_benchmark_do_move(struct amdgpu_device *adev, unsigned size, uint64_t saddr, uint64_t daddr, int n) { u...
google
android
uvd_v6_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/uvd_v6_0.c
22,797
ibm852
11136dd126b0e8a72291b574f1000f5a
/* */ #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_uvd.h" #include "vid.h" #include "uvd/uvd_6_0_d.h" #include "uvd/uvd_6_0_sh_mask.h" #include "oss/oss_2_0_d.h" #include "oss/oss_2_0_sh_mask.h" static void uvd_v6_0_set_ring_funcs(struct amdgpu_device *adev); static void uvd_v...
google
android
amdgpu_gem
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c
19,641
utf_8
ef7af16fb096fb13b204d08dfcc11aa8
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <linux/ktime.h> #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" void amdgpu_gem_object_free(struct drm_gem_object *gobj) { struct amdgpu_bo *robj = gem_to_amdgpu_bo(gobj); if (robj) { if (robj->gem_ba...
google
android
atom
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/atom.c
36,348
utf_8
7ab7813065e5d0ad89dfdb960a4c4c90
/* * * 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 "amdgpu.h" #define ATOM_COND_ABOVE 0 #define ATOM_COND_ABOVEOREQUAL 1 #define ATOM_...
google
android
ci_smc
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/ci_smc.c
6,990
utf_8
496d8ed40db5e0b63e89cf99b7c0f1f2
/* * * Authors: Alex Deucher */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "cikd.h" #include "ppsmc.h" #include "amdgpu_ucode.h" #include "ci_dpm.h" #include "smu/smu_7_0_1_d.h" #include "smu/smu_7_0_1_sh_mask.h" static int ci_set_smc_sram_address(struct amdgpu_device *adev, u3...
google
android
tonga_ih
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/tonga_ih.c
13,665
utf_8
1ea72a3ee59bb3d2cacba400fb882f6a
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_ih.h" #include "vid.h" #include "oss/oss_3_0_d.h" #include "oss/oss_3_0_sh_mask.h" #include "bif/bif_5_1_d.h" #include "bif/bif_5_1_sh_mask.h" /* * Interrupts * Starting with r6xx, interrupts are handled via a ring buffer. * Ring buffers are areas of G...
google
android
dce_v8_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/dce_v8_0.c
116,353
utf_8
841f03d55d30dffec65eb7b62c707259
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_i2c.h" #include "cikd.h" #include "atom.h" #include "amdgpu_atombios.h" #include "atombios_crtc.h" #include "atombios_encoders.h" #include "amdgpu_pll.h" #include "amdgpu_connectors.h" #include "dce/dce_8_0_d.h" #include "dce/dce_8_...
google
android
amdgpu_ctx
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
7,311
utf_8
707ffce829834e3c087fc6e0080e4344
/* */ #include <drm/drmP.h> #include "amdgpu.h" int amdgpu_ctx_init(struct amdgpu_device *adev, bool kernel, struct amdgpu_ctx *ctx) { unsigned i, j; int r; memset(ctx, 0, sizeof(*ctx)); ctx->adev = adev; kref_init(&ctx->refcount); spin_lock_init(&ctx->ring_lock); for (i = 0; i < AMDGPU_MAX_RINGS; ++i) ...
google
android
amdgpu_pll
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_pll.c
10,706
utf_8
df96931db9a2b6ece90aac304404d706
/* * */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "atom.h" #include "atombios_encoders.h" #include <asm/div64.h> #include <linux/gcd.h> /** * amdgpu_pll_reduce_ratio - fractional number reduction * * * Find the greatest common divisor and apply it on both nominator and * deno...
google
android
amdgpu_ioc32
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_ioc32.c
1,661
utf_8
dfe4244c6adce94d7d2688d1df7c2df7
/** * \file amdgpu_ioc32.c * * 32-bit ioctl compatibility routines for the AMDGPU DRM. * */ #include <linux/compat.h> #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu_drv.h" long amdgpu_kms_compat_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) { unsigned int nr = DRM_IOCTL_NR(cmd)...
google
android
amdgpu_fence
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_fence.c
23,021
utf_8
fc2ad544f95f413a3e782b5916e97cc4
/* * Dave Airlie */ #include <linux/seq_file.h> #include <linux/atomic.h> #include <linux/wait.h> #include <linux/kref.h> #include <linux/slab.h> #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_trace.h" /* * Fences * Fences mark an event in the GPUs pipeline and are used *...
google
android
cz_dpm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/cz_dpm.c
53,056
utf_8
2c06be264de029f80e73c2a484310360
/* * */ #include <linux/firmware.h> #include <linux/seq_file.h> #include "drmP.h" #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_atombios.h" #include "vid.h" #include "vi_dpm.h" #include "amdgpu_dpm.h" #include "cz_dpm.h" #include "cz_ppsmc.h" #include "atom.h" #include "smu/smu_8_0_d.h" #include "smu/sm...
google
android
cz_ih
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/cz_ih.c
12,646
utf_8
cceec66ca2e4440133c95b22654d523b
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_ih.h" #include "vid.h" #include "oss/oss_3_0_1_d.h" #include "oss/oss_3_0_1_sh_mask.h" #include "bif/bif_5_1_d.h" #include "bif/bif_5_1_sh_mask.h" /* * Interrupts * Starting with r6xx, interrupts are handled via a ring buffer. * Ring buffers are areas ...
google
android
amdgpu_fb
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_fb.c
11,065
utf_8
a92505ae51a3e9d19f20ccecb514f621
/* * * 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/amdgpu_drm.h> #include "amdgpu.h" #include "cikd.h" #include <drm/drm_fb_helper.h> #include <linux/vga_switcher...
google
android
amdgpu_ucode
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c
11,084
utf_8
6dc97ff5fa831c3bba6ab285e0b320a5
/* * */ #include <linux/firmware.h> #include <linux/slab.h> #include <linux/module.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_ucode.h" static void amdgpu_ucode_print_common_hdr(const struct common_firmware_header *hdr) { DRM_DEBUG("size_bytes: %u\n", le32_to_cpu(hdr->size_bytes)); DRM_DEBUG("head...
google
android
atombios_dp
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/atombios_dp.c
22,633
utf_8
c8113690809e7e8b1875153a55dcbeed
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "atom.h" #include "atom-bits.h" #include "atombios_encoders.h" #include "atombios_dp.h" #include "amdgpu_connectors.h" #include "amdgpu_atombios.h" #include...
google
android
vce_v2_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/vce_v2_0.c
16,974
ibm852
fc917756cafba3fdc5e4391a39d98e4c
/* */ #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_vce.h" #include "cikd.h" #include "vce/vce_2_0_d.h" #include "vce/vce_2_0_sh_mask.h" #include "oss/oss_2_0_d.h" #include "oss/oss_2_0_sh_mask.h" #define VCE_V2_0_FW_SIZE (256 * 1024) #define VCE_V2_0_STACK_SIZE (64 * 1024) #de...
google
android
amdgpu_vce
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_vce.c
21,998
ibm852
d17d9bf58d4b2a47b71c72b9dabbe96c
/* */ #include <linux/firmware.h> #include <linux/module.h> #include <drm/drmP.h> #include <drm/drm.h> #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_vce.h" #include "cikd.h" /* 1 second timeout */ #define VCE_IDLE_TIMEOUT_MS 1000 /* Firmware Names */ #ifdef CONFIG_DRM_AMDGPU_CIK #define FIRMWARE_BONAIRE ...
google
android
ci_dpm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/ci_dpm.c
204,336
utf_8
18ac8443f39eed839d96467eea01dfd4
/* * */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_ucode.h" #include "cikd.h" #include "amdgpu_dpm.h" #include "ci_dpm.h" #include "gfx_v7_0.h" #include "atom.h" #include <linux/seq_file.h> #include "smu/smu_7_0_1_d.h" #include "smu/smu_7_0_1_sh_mask.h" #...
google
android
amdgpu_irq
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
11,369
utf_8
1bb64e6ed7143a5acc8027fbd5985b07
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <drm/drmP.h> #include <drm/drm_crtc_helper.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_ih.h" #include "atom.h" #include "amdgpu_connectors.h" #include <linux/pm_runtime.h> #define AMDGPU_WAIT_IDLE_TIMEO...
google
android
amdgpu_cgs
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_cgs.c
20,414
utf_8
abec77b7cdde1caba4a15f8f563fa4e6
/* * * */ #include <linux/list.h> #include <linux/slab.h> #include <linux/pci.h> #include <drm/drmP.h> #include <linux/firmware.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "cgs_linux.h" #include "atom.h" #include "amdgpu_ucode.h" struct amdgpu_cgs_device { struct cgs_device base; struct amdgpu_devi...
google
android
amdgpu_cs
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
25,876
utf_8
537ce747b376feda61c70cc14fd347be
/* */ #include <linux/list_sort.h> #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.h" #include "amdgpu_trace.h" #define AMDGPU_CS_MAX_PRIORITY 32u #define AMDGPU_CS_NUM_BUCKETS (AMDGPU_CS_MAX_PRIORITY + 1) /* This is based on the bucket sort with O(n) time complexity. * An item with priority "i" ...
google
android
dce_v11_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/dce_v11_0.c
118,746
utf_8
088243bd6421ef1b581965dbb1a396f7
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_pm.h" #include "amdgpu_i2c.h" #include "vid.h" #include "atom.h" #include "amdgpu_atombios.h" #include "atombios_crtc.h" #include "atombios_encoders.h" #include "amdgpu_pll.h" #include "amdgpu_connectors.h" #include "dce/dce_11_0_d.h" #include "dce/dce_11...
google
android
amdgpu_connectors
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_connectors.c
63,841
utf_8
a619238972ae4ec274cd9e6deef02551
/* * * 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/amdgpu_drm.h> #include "amdgpu.h" #include "atom.h" #include "atombios_encoders.h" #include "atombios_dp.h" #include "amdgpu_connectors...
google
android
amdgpu_pm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
23,985
utf_8
1d66e3d3326b5661dc00b5dbb562dee7
/* * Permission is hereby granted, free of charge, to any person obtaining a */ #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_drv.h" #include "amdgpu_pm.h" #include "amdgpu_dpm.h" #include "atom.h" #include <linux/power_supply.h> #include <linux/hwmon.h> #include <linux/hwmon-sysfs.h> static int amdgpu_d...
google
android
amdgpu_mn
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_mn.c
8,041
ibm852
c329b5f09fed4a6dfddd7a2fca6b56e0
/* */ #include <linux/firmware.h> #include <linux/module.h> #include <linux/mmu_notifier.h> #include <drm/drmP.h> #include <drm/drm.h> #include "amdgpu.h" struct amdgpu_mn { /* constant after initialisation */ struct amdgpu_device *adev; struct mm_struct *mm; struct mmu_notifier mn; /* only used on destruction */...
google
android
amdgpu_atpx_handler
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c
14,571
utf_8
999d8196fe380e4f50f0f724a8f6e4d7
/* * * ATPX support for both Intel/ATI */ #include <linux/vga_switcheroo.h> #include <linux/slab.h> #include <linux/acpi.h> #include <linux/pci.h> #include "amdgpu_acpi.h" struct amdgpu_atpx_functions { bool px_params; bool power_cntl; bool disp_mux_cntl; bool i2c_mux_cntl; bool switch_start; bool switch_end; ...
google
android
amdgpu_amdkfd_gfx_v8
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd_gfx_v8.c
15,812
utf_8
cfdfcae9153fe7dc9bea6c26bd6ee1fb
/* */ #include <linux/module.h> #include <linux/fdtable.h> #include <linux/uaccess.h> #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_amdkfd.h" #include "amdgpu_ucode.h" #include "gca/gfx_8_0_sh_mask.h" #include "gca/gfx_8_0_d.h" #include "gca/gfx_8_0_enum.h" #include "oss/oss_3_...
google
android
cik_ih
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/cik_ih.c
13,066
utf_8
661e93398119db3fc4c6c10a0edf937e
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_ih.h" #include "cikd.h" #include "bif/bif_4_1_d.h" #include "bif/bif_4_1_sh_mask.h" #include "oss/oss_2_0_d.h" #include "oss/oss_2_0_sh_mask.h" /* * Interrupts * Starting with r6xx, interrupts are handled via a ring buffer. * Ring buffers are areas of ...
google
android
gmc_v7_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/gmc_v7_0.c
39,730
utf_8
01aab32027dec68b4ea7faa505ba080a
/* * */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "cikd.h" #include "cik.h" #include "gmc_v7_0.h" #include "amdgpu_ucode.h" #include "bif/bif_4_1_d.h" #include "bif/bif_4_1_sh_mask.h" #include "gmc/gmc_7_1_d.h" #include "gmc/gmc_7_1_sh_mask.h" #include "oss/oss_2_0_d.h" #include "oss/...
google
android
amdgpu_amdkfd
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_amdkfd.c
6,417
utf_8
bebf56cc8c221e5523de96428713b64a
/* */ #include "amdgpu_amdkfd.h" #include "amd_shared.h" #include <drm/drmP.h> #include "amdgpu.h" #include <linux/module.h> const struct kfd2kgd_calls *kfd2kgd; const struct kgd2kfd_calls *kgd2kfd; bool (*kgd2kfd_init_p)(unsigned, const struct kgd2kfd_calls**); bool amdgpu_amdkfd_init(void) { #if defined(CONFIG_HSA_A...
google
android
iceland_smc
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/iceland_smc.c
17,451
utf_8
1c8e77c5659d5869e1aa29f44e65611f
/* * */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "ppsmc.h" #include "iceland_smumgr.h" #include "smu_ucode_xfer_vi.h" #include "amdgpu_ucode.h" #include "smu/smu_7_1_1_d.h" #include "smu/smu_7_1_1_sh_mask.h" #define ICELAND_SMC_SIZE 0x20000 static int iceland_set_smc_sram_address(str...
google
android
kv_dpm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/kv_dpm.c
94,243
utf_8
7c0c679656c71e9db0e0b708987d1670
/* * */ #include "drmP.h" #include "amdgpu.h" #include "amdgpu_pm.h" #include "cikd.h" #include "atom.h" #include "amdgpu_atombios.h" #include "amdgpu_dpm.h" #include "kv_dpm.h" #include "gfx_v7_0.h" #include <linux/seq_file.h> #include "smu/smu_7_0_0_d.h" #include "smu/smu_7_0_0_sh_mask.h" #include "gca/gfx_7_2_d.h"...
google
android
amdgpu_prime
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_prime.c
3,588
utf_8
89d167edde0930f9078070ca547c495b
/* * * based on nouveau_prime.c * * Authors: Alex Deucher */ #include <drm/drmP.h> #include "amdgpu.h" #include <drm/amdgpu_drm.h> #include <linux/dma-buf.h> struct sg_table *amdgpu_gem_prime_get_sg_table(struct drm_gem_object *obj) { struct amdgpu_bo *bo = gem_to_amdgpu_bo(obj); int npages = bo->tbo.num_pages; ...
google
android
cik
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/cik.c
69,407
utf_8
7056c59a81130751f8971b92ce7896af
/* * * Authors: Alex Deucher */ #include <linux/firmware.h> #include <linux/slab.h> #include <linux/module.h> #include "drmP.h" #include "amdgpu.h" #include "amdgpu_atombios.h" #include "amdgpu_ih.h" #include "amdgpu_uvd.h" #include "amdgpu_vce.h" #include "cikd.h" #include "atom.h" #include "cik.h" #include "gmc_v7...
google
android
uvd_v4_2
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/uvd_v4_2.c
24,456
ibm852
e1659bdfa5fc423dc8cdc0b0af25cae2
/* */ #include <linux/firmware.h> #include <drm/drmP.h> #include "amdgpu.h" #include "amdgpu_uvd.h" #include "cikd.h" #include "uvd/uvd_4_2_d.h" #include "uvd/uvd_4_2_sh_mask.h" #include "oss/oss_2_0_d.h" #include "oss/oss_2_0_sh_mask.h" static void uvd_v4_2_mc_resume(struct amdgpu_device *adev); static void uvd_v4_2_...
google
android
gmc_v8_0
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/gmc_v8_0.c
39,796
utf_8
59229700b8efeff5d3f932d622e6db93
/* * */ #include <linux/firmware.h> #include "drmP.h" #include "amdgpu.h" #include "gmc_v8_0.h" #include "amdgpu_ucode.h" #include "gmc/gmc_8_1_d.h" #include "gmc/gmc_8_1_sh_mask.h" #include "bif/bif_5_0_d.h" #include "bif/bif_5_0_sh_mask.h" #include "oss/oss_3_0_d.h" #include "oss/oss_3_0_sh_mask.h" #include "vid.h"...
google
android
amdgpu_gart
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdgpu/amdgpu_gart.c
10,361
utf_8
7597d7583b670c373528f20443c2544f
/* * * Authors: Dave Airlie * Alex Deucher * Jerome Glisse */ #include <drm/drmP.h> #include <drm/amdgpu_drm.h> #include "amdgpu.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
kfd_module
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_module.c
4,129
utf_8
f798b5ab35f6eafde0409190c2e9ecb3
/* */ #include <linux/module.h> #include <linux/sched.h> #include <linux/moduleparam.h> #include <linux/device.h> #include "kfd_priv.h" #define KFD_DRIVER_AUTHOR "AMD Inc. and others" #define KFD_DRIVER_DESC "Standalone HSA driver for AMD's GPUs" #define KFD_DRIVER_DATE "20150421" #define KFD_DRIVER_MAJOR 0 #define ...
google
android
kfd_queue
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_queue.c
3,093
utf_8
ad6de159974d34ab0a7ca64b48d75a18
/* * */ #include <linux/slab.h> #include "kfd_priv.h" void print_queue_properties(struct queue_properties *q) { if (!q) return; pr_debug("Printing queue properties:\n"); pr_debug("Queue Type: %u\n", q->type); pr_debug("Queue Size: %llu\n", q->queue_size); pr_debug("Queue percent: %u\n", q->queue_percent); pr_...
google
android
kfd_packet_manager
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_packet_manager.c
18,620
utf_8
a41b86e23a746b4aaa3929e2b67ca979
/* * */ #include <linux/slab.h> #include <linux/mutex.h> #include "kfd_device_queue_manager.h" #include "kfd_kernel_queue.h" #include "kfd_priv.h" #include "kfd_pm4_headers.h" #include "kfd_pm4_headers_vi.h" #include "kfd_pm4_opcodes.h" static inline void inc_wptr(unsigned int *wptr, unsigned int increment_bytes, ...
google
android
kfd_dbgdev
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_dbgdev.c
25,649
utf_8
2f626545bd1887966c43dea843027143
/* * */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/log2.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/mutex.h> #include <linux/device.h> #include "kfd_pm4_headers.h" #include "kfd_pm4_headers_diq.h" #include "kfd_kernel_queue.h" #include "kfd_priv.h" #include "kfd_pm4_opc...
google
android
kfd_events
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_events.c
24,565
utf_8
87b9f9425bc4108ca6d99aedbf2e8fdd
/* */ #include <linux/mm_types.h> #include <linux/slab.h> #include <linux/types.h> #include <linux/sched.h> #include <linux/uaccess.h> #include <linux/mm.h> #include <linux/mman.h> #include <linux/memory.h> #include "kfd_priv.h" #include "kfd_events.h" #include <linux/device.h> /* * A task can only be on a single wai...
google
android
kfd_process
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_process.c
11,975
utf_8
bb1461fe0d08eb10d82d4fe417301cc1
/* */ #include <linux/mutex.h> #include <linux/log2.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/amd-iommu.h> #include <linux/notifier.h> #include <linux/compat.h> struct mm_struct; #include "kfd_priv.h" #include "kfd_dbgmgr.h" /* * Initial size for the array of queues. * The allocated size is...
google
android
kfd_topology
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_topology.c
32,959
utf_8
e01374b0b52d950437dc5de7a01d73a0
/* */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/pci.h> #include <linux/errno.h> #include <linux/acpi.h> #include <linux/hash.h> #include <linux/cpufreq.h> #include <linux/log2.h> #include "kfd_priv.h" #include "kfd_crat.h" #include "kfd_topology.h" static struct list_head topology_device_list;...
google
android
kfd_interrupt
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_interrupt.c
6,018
utf_8
3a491e659cdb0e6808d7b13d2ac3a5b9
/* */ /* * KFD Interrupts. * * AMD GPUs deliver interrupts by pushing an interrupt description onto the * interrupt ring and then sending an interrupt. KGD receives the interrupt * in ISR and sends us a pointer to each new entry on the interrupt ring. * * We generally can't process interrupt-signaled events fro...
google
android
kfd_device_queue_manager
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c
30,281
utf_8
cbe0f9f492e6767b4d4d0cf0ff1ca700
/* * */ #include <linux/slab.h> #include <linux/list.h> #include <linux/types.h> #include <linux/printk.h> #include <linux/bitops.h> #include <linux/sched.h> #include "kfd_priv.h" #include "kfd_device_queue_manager.h" #include "kfd_mqd_manager.h" #include "cik_regs.h" #include "kfd_kernel_queue.h" /* Size of the per-...
google
android
kfd_process_queue_manager
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_process_queue_manager.c
9,172
utf_8
02c9ef14637c539908128aa8b62e3181
/* * */ #include <linux/slab.h> #include <linux/list.h> #include "kfd_device_queue_manager.h" #include "kfd_priv.h" #include "kfd_kernel_queue.h" static inline struct process_queue_node *get_queue_by_qid( struct process_queue_manager *pqm, unsigned int qid) { struct process_queue_node *pqn; BUG_ON(!pqm); list_f...
google
android
cik_event_interrupt
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/cik_event_interrupt.c
2,452
utf_8
e14be2d40309695df2362c7d1bf21bea
/* */ #include "kfd_priv.h" #include "kfd_events.h" #include "cik_int.h" static bool cik_event_interrupt_isr(struct kfd_dev *dev, const uint32_t *ih_ring_entry) { unsigned int pasid; const struct cik_ih_ring_entry *ihre = (const struct cik_ih_ring_entry *)ih_ring_entry; pasid = (ihre->ring_id & 0xffff0000) ...
google
android
kfd_pasid
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_pasid.c
2,452
utf_8
c20b95bc66cb0919ce94f98c7daa3025
/* */ #include <linux/slab.h> #include <linux/types.h> #include "kfd_priv.h" static unsigned long *pasid_bitmap; static unsigned int pasid_limit; static DEFINE_MUTEX(pasid_mutex); int kfd_pasid_init(void) { pasid_limit = KFD_MAX_NUM_OF_PROCESSES; pasid_bitmap = kcalloc(BITS_TO_LONGS(pasid_limit), sizeof(long), GFP_K...
google
android
kfd_kernel_queue
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue.c
8,831
utf_8
92b0a7b8ea77c65c623df6d3d80efcb6
/* * */ #include <linux/types.h> #include <linux/mutex.h> #include <linux/slab.h> #include <linux/printk.h> #include <linux/sched.h> #include "kfd_kernel_queue.h" #include "kfd_priv.h" #include "kfd_device_queue_manager.h" #include "kfd_pm4_headers.h" #include "kfd_pm4_opcodes.h" #define PM4_COUNT_ZERO (((1 << 15) - ...
google
android
kfd_flat_memory
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_flat_memory.c
14,456
utf_8
d2f94e6ce8190bd6c1e16432197f25ff
/* * */ #include <linux/device.h> #include <linux/export.h> #include <linux/err.h> #include <linux/fs.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/uaccess.h> #include <linux/compat.h> #include <uapi/linux/kfd_ioctl.h> #include <linux/time.h> #include "kfd_priv.h" #include <linux/mm.h> #include ...
google
android
kfd_mqd_manager_cik
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_cik.c
12,592
utf_8
9399309c83658a40d2b3971fda9ac69a
/* * */ #include <linux/printk.h> #include <linux/slab.h> #include "kfd_priv.h" #include "kfd_mqd_manager.h" #include "cik_regs.h" #include "cik_structs.h" #include "oss/oss_2_4_sh_mask.h" static inline struct cik_mqd *get_mqd(void *mqd) { return (struct cik_mqd *)mqd; } static int init_mqd(struct mqd_manager *mm, v...
google
android
kfd_device_queue_manager_vi
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_vi.c
5,788
utf_8
d3bbe4d22b49130abaaedfec03c89dff
/* * */ #include "kfd_device_queue_manager.h" #include "gca/gfx_8_0_enum.h" #include "gca/gfx_8_0_sh_mask.h" #include "gca/gfx_8_0_enum.h" #include "oss/oss_3_0_sh_mask.h" static bool set_cache_memory_policy_vi(struct device_queue_manager *dqm, struct qcm_process_device *qpd, enum cache_policy default_p...
google
android
kfd_doorbell
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_doorbell.c
7,826
utf_8
e72af66026da29398f6682f1c187c5df
/* */ #include "kfd_priv.h" #include <linux/mm.h> #include <linux/mman.h> #include <linux/slab.h> #include <linux/io.h> /* * This extension supports a kernel level doorbells management for * the kernel queues. * Basically the last doorbells page is devoted to kernel queues * and that's assures that any user proces...
google
android
kfd_mqd_manager
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager.c
1,434
utf_8
f71b25b1ef5004b35e041cf86bc9500f
/* * */ #include "kfd_priv.h" struct mqd_manager *mqd_manager_init(enum KFD_MQD_TYPE type, struct kfd_dev *dev) { switch (dev->device_info->asic_family) { case CHIP_KAVERI: return mqd_manager_init_cik(type, dev); case CHIP_CARRIZO: return mqd_manager_init_vi(type, dev); } return NULL; }
google
android
kfd_device_queue_manager_cik
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager_cik.c
5,374
utf_8
5823598d54133c12e2caaead54ad8453
/* * */ #include "kfd_device_queue_manager.h" #include "cik_regs.h" #include "oss/oss_2_4_sh_mask.h" static bool set_cache_memory_policy_cik(struct device_queue_manager *dqm, struct qcm_process_device *qpd, enum cache_policy default_policy, enum cache_policy alternate_policy, void __user *...
google
android
kfd_device
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_device.c
16,079
utf_8
c5d72b92d0f2aef14f2df3768e3b99fd
/* */ #include <linux/amd-iommu.h> #include <linux/bsearch.h> #include <linux/pci.h> #include <linux/slab.h> #include "kfd_priv.h" #include "kfd_device_queue_manager.h" #include "kfd_pm4_headers.h" #define MQD_SIZE_ALIGNED 768 static const struct kfd_device_info kaveri_device_info = { .asic_family = CHIP_KAVERI, .ma...
google
android
kfd_kernel_queue_cik
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_cik.c
1,693
utf_8
955eadf3d08d36ebb18001f84e6545ff
/* * */ #include "kfd_kernel_queue.h" static bool initialize_cik(struct kernel_queue *kq, struct kfd_dev *dev, enum kfd_queue_type type, unsigned int queue_size); static void uninitialize_cik(struct kernel_queue *kq); void kernel_queue_init_cik(struct kernel_queue_ops *ops) { ops->initialize = initialize_cik; op...
google
android
kfd_chardev
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_chardev.c
27,432
utf_8
ce9f063a94b37342d42bf1ae432f5fd7
/* */ #include <linux/device.h> #include <linux/export.h> #include <linux/err.h> #include <linux/fs.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/uaccess.h> #include <linux/compat.h> #include <uapi/linux/kfd_ioctl.h> #include <linux/time.h> #include <linux/mm.h> #include <linux/mman.h> #include <...
google
android
kfd_kernel_queue_vi
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_kernel_queue_vi.c
1,970
utf_8
261df3e4ac1941feae120aa1b5bb7e3b
/* * */ #include "kfd_kernel_queue.h" static bool initialize_vi(struct kernel_queue *kq, struct kfd_dev *dev, enum kfd_queue_type type, unsigned int queue_size); static void uninitialize_vi(struct kernel_queue *kq); void kernel_queue_init_vi(struct kernel_queue_ops *ops) { ops->initialize = initialize_vi; ops->u...
google
android
kfd_mqd_manager_vi
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_mqd_manager_vi.c
7,688
utf_8
5146a5c2600a2567c0a2446f6759f337
/* * */ #include <linux/printk.h> #include <linux/slab.h> #include "kfd_priv.h" #include "kfd_mqd_manager.h" #include "vi_structs.h" #include "gca/gfx_8_0_sh_mask.h" #include "gca/gfx_8_0_enum.h" #define CP_MQD_CONTROL__PRIV_STATE__SHIFT 0x8 static inline struct vi_mqd *get_mqd(void *mqd) { return (struct vi_mqd *)m...
google
android
kfd_dbgmgr
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/amd/amdkfd/kfd_dbgmgr.c
4,437
utf_8
4b894bc2aa539c3d3acd860e302b76a4
/* * */ #include <linux/types.h> #include <linux/kernel.h> #include <linux/log2.h> #include <linux/sched.h> #include <linux/slab.h> #include <linux/device.h> #include "kfd_priv.h" #include "cik_regs.h" #include "kfd_pm4_headers.h" #include "kfd_pm4_headers_diq.h" #include "kfd_dbgmgr.h" #include "kfd_dbgdev.h" static...
google
android
via_irq
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/via/via_irq.c
11,249
utf_8
1ea48652d1360cf69ab97eb407c47b9e
/* via_irq.c * * * This code provides standard DRM access to the Via Unichrome / Pro Vertical blank * interrupt, as well as an infrastructure to handle other interrupts of the chip. * The refresh rate is also calculated for video playback sync purposes. */ #include <drm/drmP.h> #include <drm/via_drm.h> #include "...
google
android
via_map
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/via/via_map.c
3,347
utf_8
b3fb38b873cbb58da91b50e37da453d4
/* */ #include <drm/drmP.h> #include <drm/via_drm.h> #include "via_drv.h" static int via_do_init_map(struct drm_device *dev, drm_via_init_t *init) { drm_via_private_t *dev_priv = dev->dev_private; DRM_DEBUG("\n"); dev_priv->sarea = drm_legacy_getsarea(dev); if (!dev_priv->sarea) { DRM_ERROR("could not find sarea...
google
android
via_video
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/via/via_video.c
2,744
utf_8
12febcdac7b87961e8e4ccf3a1bd0c28
/* * * Author: Thomas Hellstrom 2005. * * Video and XvMC related functions. */ #include <drm/drmP.h> #include <drm/via_drm.h> #include "via_drv.h" void via_init_futex(drm_via_private_t *dev_priv) { unsigned int i; DRM_DEBUG("\n"); for (i = 0; i < VIA_NR_XVMC_LOCKS; ++i) { init_waitqueue_head(&(dev_priv->decod...
google
android
via_verifier
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/via/via_verifier.c
28,200
utf_8
8da6fee84df7a92db3ec59f90c37d4c6
/* * * Author: Thomas Hellstrom 2004, 2005. * This code was written using docs obtained under NDA from VIA Inc. * * Don't run this code directly on an AGP buffer. Due to cache problems it will * be very slow. */ #include "via_3d_reg.h" #include <drm/drmP.h> #include <drm/via_drm.h> #include <drm/drm_legacy.h> #i...
google
android
via_dmablit
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/via/via_dmablit.c
21,806
utf_8
f940716bc22bc8fe90e296d44a44fea4
/* via_dmablit.c -- PCI DMA BitBlt support for the VIA Unichrome/Pro * * * Authors: * Thomas Hellstrom. * Partially based on code obtained from Digeo Inc. */ /* * Unmaps the DMA mappings. * FIXME: Is this a NoOp on x86? Also * FIXME: What happens if this one is called and a pending blit has previously do...
google
android
via_mm
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/via/via_mm.c
6,521
iso_8859_1
2a232cef61383b7be844bc63b7a11e9c
/* */ /* * Authors: Thomas Hellström <thomas-at-tungstengraphics-dot-com> */ #include <drm/drmP.h> #include <drm/via_drm.h> #include "via_drv.h" #define VIA_MM_ALIGN_SHIFT 4 #define VIA_MM_ALIGN_MASK ((1 << VIA_MM_ALIGN_SHIFT) - 1) struct via_memblock { struct drm_mm_node mm_node; struct list_head owner_list; }; i...
google
android
via_drv
.c
platform/hardware/bsp/kernel/intel/edison-v4.4/drivers/gpu/drm/via/via_drv.c
3,615
utf_8
a5da56c2fedbd2161769db121a542f04
/* */ #include <linux/module.h> #include <drm/drmP.h> #include <drm/via_drm.h> #include "via_drv.h" #include <drm/drm_pciids.h> static int via_driver_open(struct drm_device *dev, struct drm_file *file) { struct via_file_private *file_priv; DRM_DEBUG_DRIVER("\n"); file_priv = kmalloc(sizeof(*file_priv), GFP_KERNEL);...