Home
last modified time | relevance | path

Searched refs:gpu (Results 1 – 25 of 28) sorted by relevance

12

/drivers/gpu/drm/msm/
Dmsm_gpu.c29 static void bs_init(struct msm_gpu *gpu) in bs_init() argument
31 if (gpu->bus_scale_table) { in bs_init()
32 gpu->bsc = msm_bus_scale_register_client(gpu->bus_scale_table); in bs_init()
33 DBG("bus scale client: %08x", gpu->bsc); in bs_init()
37 static void bs_fini(struct msm_gpu *gpu) in bs_fini() argument
39 if (gpu->bsc) { in bs_fini()
40 msm_bus_scale_unregister_client(gpu->bsc); in bs_fini()
41 gpu->bsc = 0; in bs_fini()
45 static void bs_set(struct msm_gpu *gpu, int idx) in bs_set() argument
47 if (gpu->bsc) { in bs_set()
[all …]
Dmsm_gpu.h45 int (*get_param)(struct msm_gpu *gpu, uint32_t param, uint64_t *value);
46 int (*hw_init)(struct msm_gpu *gpu);
47 int (*pm_suspend)(struct msm_gpu *gpu);
48 int (*pm_resume)(struct msm_gpu *gpu);
49 int (*submit)(struct msm_gpu *gpu, struct msm_gem_submit *submit,
51 void (*flush)(struct msm_gpu *gpu);
52 void (*idle)(struct msm_gpu *gpu);
54 uint32_t (*last_fence)(struct msm_gpu *gpu);
55 void (*recover)(struct msm_gpu *gpu);
56 void (*destroy)(struct msm_gpu *gpu);
[all …]
Dmsm_drv.c117 struct msm_gpu *gpu = priv->gpu; in msm_unload() local
135 if (gpu) { in msm_unload()
137 gpu->funcs->pm_suspend(gpu); in msm_unload()
138 gpu->funcs->destroy(gpu); in msm_unload()
321 if (!priv->gpu) in load_gpu()
322 priv->gpu = adreno_load_gpu(dev); in load_gpu()
430 struct msm_gpu *gpu = priv->gpu; in msm_gpu_show() local
432 if (gpu) { in msm_gpu_show()
433 seq_printf(m, "%s Status:\n", gpu->name); in msm_gpu_show()
434 gpu->funcs->show(gpu, m); in msm_gpu_show()
[all …]
Dmsm_perf.c72 struct msm_gpu *gpu = priv->gpu; in refill_buf() local
83 for (i = 0; i < gpu->num_perfcntrs; i++) { in refill_buf()
84 const struct msm_gpu_perfcntr *perfcntr = &gpu->perfcntrs[i]; in refill_buf()
101 ret = msm_gpu_perfcntr_sample(gpu, &activetime, &totaltime, in refill_buf()
165 struct msm_gpu *gpu = priv->gpu; in perf_open() local
170 if (perf->open || !gpu) { in perf_open()
180 msm_gpu_perfcntr_start(gpu); in perf_open()
192 msm_gpu_perfcntr_stop(priv->gpu); in perf_release()
Dmsm_ringbuffer.c21 struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int size) in msm_ringbuffer_new() argument
35 ring->gpu = gpu; in msm_ringbuffer_new()
36 ring->bo = msm_gem_new(gpu->dev, size, MSM_BO_WC); in msm_ringbuffer_new()
Dmsm_gem_submit.c37 struct msm_gpu *gpu, uint32_t nr) in submit_create() argument
48 submit->gpu = gpu; in submit_create()
148 msm_gem_put_iova(&msm_obj->base, submit->gpu->id); in submit_unlock_unpin_bo()
187 submit->gpu->id, &iova); in submit_validate_objects()
348 struct msm_gpu *gpu; in msm_ioctl_gem_submit() local
358 gpu = priv->gpu; in msm_ioctl_gem_submit()
365 submit = submit_create(dev, gpu, args->nr_bos); in msm_ioctl_gem_submit()
439 ret = msm_gpu_submit(gpu, submit, ctx); in msm_ioctl_gem_submit()
Dmsm_gem.h38 struct msm_gpu *gpu; /* non-null if active */ member
70 return msm_obj->gpu != NULL; in is_active()
82 struct msm_gpu *gpu; member
Dmsm_rd.c164 struct msm_gpu *gpu = priv->gpu; in rd_open() local
171 if (rd->open || !gpu) { in rd_open()
182 gpu->funcs->get_param(gpu, MSM_PARAM_GPU_ID, &val); in rd_open()
Dmsm_ringbuffer.h24 struct msm_gpu *gpu; member
30 struct msm_ringbuffer *msm_ringbuffer_new(struct msm_gpu *gpu, int size);
Dmsm_gem.c420 struct msm_gpu *gpu, bool write, uint32_t fence) in msm_gem_move_to_active() argument
423 msm_obj->gpu = gpu; in msm_gem_move_to_active()
429 list_add_tail(&msm_obj->mm_list, &gpu->active_list); in msm_gem_move_to_active()
440 msm_obj->gpu = NULL; in msm_gem_move_to_inactive()
DNOTES14 And on gpu side of things:
23 up gpu cmdstream to update scanout and write FLUSH register after).
27 And one or more 'struct msm_gpu' for the various different gpu sub-
Dmsm_drv.h81 struct msm_gpu *gpu; member
182 struct msm_gpu *gpu, bool write, uint32_t fence);
Dmsm_mmu.h46 struct msm_mmu *msm_gpummu_new(struct device *dev, struct msm_gpu *gpu);
DMakefile1 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/msm
/drivers/gpu/drm/msm/adreno/
Da3xx_gpu.c40 static void a3xx_dump(struct msm_gpu *gpu);
42 static void a3xx_me_init(struct msm_gpu *gpu) in a3xx_me_init() argument
44 struct msm_ringbuffer *ring = gpu->rb; in a3xx_me_init()
65 gpu->funcs->flush(gpu); in a3xx_me_init()
66 gpu->funcs->idle(gpu); in a3xx_me_init()
69 static int a3xx_hw_init(struct msm_gpu *gpu) in a3xx_hw_init() argument
71 struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu); in a3xx_hw_init()
76 DBG("%s", gpu->name); in a3xx_hw_init()
80 gpu_write(gpu, REG_A3XX_VBIF_IN_RD_LIM_CONF0, 0x10101010); in a3xx_hw_init()
81 gpu_write(gpu, REG_A3XX_VBIF_IN_RD_LIM_CONF1, 0x10101010); in a3xx_hw_init()
[all …]
Dadreno_gpu.c25 int adreno_get_param(struct msm_gpu *gpu, uint32_t param, uint64_t *value) in adreno_get_param() argument
27 struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu); in adreno_get_param()
43 DBG("%s: invalid param: %u", gpu->name, param); in adreno_get_param()
51 int adreno_hw_init(struct msm_gpu *gpu) in adreno_hw_init() argument
53 struct adreno_gpu *adreno_gpu = to_adreno_gpu(gpu); in adreno_hw_init()
56 DBG("%s", gpu->name); in adreno_hw_init()
58 ret = msm_gem_get_iova(gpu->rb->bo, gpu->id, &gpu->rb_iova); in adreno_hw_init()
60 gpu->rb_iova = 0; in adreno_hw_init()
61 dev_err(gpu->dev->dev, "could not map ringbuffer: %d\n", ret); in adreno_hw_init()
66 gpu_write(gpu, REG_AXXX_CP_RB_CNTL, in adreno_hw_init()
[all …]
Dadreno_gpu.h106 static inline bool adreno_is_a3xx(struct adreno_gpu *gpu) in adreno_is_a3xx() argument
108 return (gpu->revn >= 300) && (gpu->revn < 400); in adreno_is_a3xx()
111 static inline bool adreno_is_a305(struct adreno_gpu *gpu) in adreno_is_a305() argument
113 return gpu->revn == 305; in adreno_is_a305()
116 static inline bool adreno_is_a320(struct adreno_gpu *gpu) in adreno_is_a320() argument
118 return gpu->revn == 320; in adreno_is_a320()
121 static inline bool adreno_is_a330(struct adreno_gpu *gpu) in adreno_is_a330() argument
123 return gpu->revn == 330; in adreno_is_a330()
126 static inline bool adreno_is_a330v2(struct adreno_gpu *gpu) in adreno_is_a330v2() argument
128 return adreno_is_a330(gpu) && (gpu->rev.patchid > 0); in adreno_is_a330v2()
[all …]
Dadreno_device.c94 struct msm_gpu *gpu = NULL; in adreno_load_gpu() local
114 gpu = info->init(dev); in adreno_load_gpu()
115 if (IS_ERR(gpu)) { in adreno_load_gpu()
117 gpu = NULL; in adreno_load_gpu()
121 if (gpu) { in adreno_load_gpu()
124 gpu->funcs->pm_resume(gpu); in adreno_load_gpu()
126 ret = gpu->funcs->hw_init(gpu); in adreno_load_gpu()
129 gpu->funcs->destroy(gpu); in adreno_load_gpu()
130 gpu = NULL; in adreno_load_gpu()
133 msm_gpu_retire(gpu); in adreno_load_gpu()
[all …]
/drivers/gpu/drm/nouveau/
Dnouveau_platform.c35 static int nouveau_platform_power_up(struct nouveau_platform_gpu *gpu) in nouveau_platform_power_up() argument
39 err = regulator_enable(gpu->vdd); in nouveau_platform_power_up()
43 err = clk_prepare_enable(gpu->clk); in nouveau_platform_power_up()
46 err = clk_prepare_enable(gpu->clk_pwr); in nouveau_platform_power_up()
49 clk_set_rate(gpu->clk_pwr, 204000000); in nouveau_platform_power_up()
52 reset_control_assert(gpu->rst); in nouveau_platform_power_up()
60 reset_control_deassert(gpu->rst); in nouveau_platform_power_up()
66 clk_disable_unprepare(gpu->clk_pwr); in nouveau_platform_power_up()
68 clk_disable_unprepare(gpu->clk); in nouveau_platform_power_up()
70 regulator_disable(gpu->vdd); in nouveau_platform_power_up()
[all …]
Dnouveau_platform.h43 struct nouveau_platform_gpu *gpu; member
/drivers/gpu/drm/
DKconfig79 source "drivers/gpu/drm/i2c/Kconfig"
81 source "drivers/gpu/drm/bridge/Kconfig"
121 source "drivers/gpu/drm/radeon/Kconfig"
123 source "drivers/gpu/drm/nouveau/Kconfig"
134 source "drivers/gpu/drm/i915/Kconfig"
168 source "drivers/gpu/drm/exynos/Kconfig"
170 source "drivers/gpu/drm/vmwgfx/Kconfig"
172 source "drivers/gpu/drm/gma500/Kconfig"
174 source "drivers/gpu/drm/udl/Kconfig"
176 source "drivers/gpu/drm/ast/Kconfig"
[all …]
/drivers/video/
DKconfig20 source "drivers/gpu/vga/Kconfig"
22 source "drivers/gpu/host1x/Kconfig"
23 source "drivers/gpu/ipu-v3/Kconfig"
26 source "drivers/gpu/drm/Kconfig"
/drivers/video/fbdev/vermilion/
Dvermilion.c285 par->gpu = pci_get_device(PCI_VENDOR_ID_INTEL, VML_DEVICE_GPU, NULL); in vmlfb_get_gpu()
287 if (!par->gpu) { in vmlfb_get_gpu()
294 if (pci_enable_device(par->gpu) < 0) in vmlfb_get_gpu()
342 par->gpu_mem_base = pci_resource_start(par->gpu, 0); in vmlfb_enable_mmio()
343 par->gpu_mem_size = pci_resource_len(par->gpu, 0); in vmlfb_enable_mmio()
386 pci_disable_device(par->gpu); in vmlfb_release_devices()
Dvermilion.h197 struct pci_dev *gpu; member
/drivers/gpu/drm/exynos/
DMakefile5 ccflags-y := -Iinclude/drm -Idrivers/gpu/drm/exynos

12