Lines Matching refs:msm_gpu

47 	int (*get_param)(struct msm_gpu *gpu, struct msm_file_private *ctx,
49 int (*set_param)(struct msm_gpu *gpu, struct msm_file_private *ctx,
51 int (*hw_init)(struct msm_gpu *gpu);
56 int (*ucode_load)(struct msm_gpu *gpu);
58 int (*pm_suspend)(struct msm_gpu *gpu);
59 int (*pm_resume)(struct msm_gpu *gpu);
60 void (*submit)(struct msm_gpu *gpu, struct msm_gem_submit *submit);
61 void (*flush)(struct msm_gpu *gpu, struct msm_ringbuffer *ring);
62 irqreturn_t (*irq)(struct msm_gpu *irq);
63 struct msm_ringbuffer *(*active_ring)(struct msm_gpu *gpu);
64 void (*recover)(struct msm_gpu *gpu);
65 void (*destroy)(struct msm_gpu *gpu);
68 void (*show)(struct msm_gpu *gpu, struct msm_gpu_state *state,
71 void (*debugfs_init)(struct msm_gpu *gpu, struct drm_minor *minor);
74 u64 (*gpu_busy)(struct msm_gpu *gpu, unsigned long *out_sample_rate);
75 struct msm_gpu_state *(*gpu_state_get)(struct msm_gpu *gpu);
77 unsigned long (*gpu_get_freq)(struct msm_gpu *gpu);
79 void (*gpu_set_freq)(struct msm_gpu *gpu, struct dev_pm_opp *opp,
82 (struct msm_gpu *gpu, struct platform_device *pdev);
84 (struct msm_gpu *gpu);
85 uint32_t (*get_rptr)(struct msm_gpu *gpu, struct msm_ringbuffer *ring);
94 bool (*progress)(struct msm_gpu *gpu, struct msm_ringbuffer *ring);
166 struct msm_gpu { struct
300 static inline struct msm_gpu *dev_to_gpu(struct device *dev) in dev_to_gpu() argument
307 return container_of(adreno_smmu, struct msm_gpu, adreno_smmu); in dev_to_gpu()
318 static inline bool msm_gpu_active(struct msm_gpu *gpu) in msm_gpu_active()
466 static inline int msm_gpu_convert_priority(struct msm_gpu *gpu, int prio, in msm_gpu_convert_priority()
565 static inline void gpu_write(struct msm_gpu *gpu, u32 reg, u32 data) in gpu_write()
570 static inline u32 gpu_read(struct msm_gpu *gpu, u32 reg) in gpu_read()
575 static inline void gpu_rmw(struct msm_gpu *gpu, u32 reg, u32 mask, u32 or) in gpu_rmw()
580 static inline u64 gpu_read64(struct msm_gpu *gpu, u32 reg) in gpu_read64()
604 static inline void gpu_write64(struct msm_gpu *gpu, u32 reg, u64 val) in gpu_write64()
611 int msm_gpu_pm_suspend(struct msm_gpu *gpu);
612 int msm_gpu_pm_resume(struct msm_gpu *gpu);
614 void msm_gpu_show_fdinfo(struct msm_gpu *gpu, struct msm_file_private *ctx,
631 struct msm_gpu *gpu, int sysprof);
646 void msm_devfreq_init(struct msm_gpu *gpu);
647 void msm_devfreq_cleanup(struct msm_gpu *gpu);
648 void msm_devfreq_resume(struct msm_gpu *gpu);
649 void msm_devfreq_suspend(struct msm_gpu *gpu);
650 void msm_devfreq_boost(struct msm_gpu *gpu, unsigned factor);
651 void msm_devfreq_active(struct msm_gpu *gpu);
652 void msm_devfreq_idle(struct msm_gpu *gpu);
654 int msm_gpu_hw_init(struct msm_gpu *gpu);
656 void msm_gpu_perfcntr_start(struct msm_gpu *gpu);
657 void msm_gpu_perfcntr_stop(struct msm_gpu *gpu);
658 int msm_gpu_perfcntr_sample(struct msm_gpu *gpu, uint32_t *activetime,
661 void msm_gpu_retire(struct msm_gpu *gpu);
662 void msm_gpu_submit(struct msm_gpu *gpu, struct msm_gem_submit *submit);
665 struct msm_gpu *gpu, const struct msm_gpu_funcs *funcs,
669 msm_gpu_create_private_address_space(struct msm_gpu *gpu, struct task_struct *task);
671 void msm_gpu_cleanup(struct msm_gpu *gpu);
673 struct msm_gpu *adreno_load_gpu(struct drm_device *dev);
683 static inline struct msm_gpu_state *msm_gpu_crashstate_get(struct msm_gpu *gpu) in msm_gpu_crashstate_get()
699 static inline void msm_gpu_crashstate_put(struct msm_gpu *gpu) in msm_gpu_crashstate_put()