Home
last modified time | relevance | path

Searched refs:ocmem (Results 1 – 11 of 11) sorted by relevance

/kernel/linux/linux-5.10/drivers/soc/qcom/
Docmem.c52 struct ocmem { struct
104 static inline void ocmem_write(struct ocmem *ocmem, u32 reg, u32 data) in ocmem_write() argument
106 writel(data, ocmem->mmio + reg); in ocmem_write()
109 static inline u32 ocmem_read(struct ocmem *ocmem, u32 reg) in ocmem_read() argument
111 return readl(ocmem->mmio + reg); in ocmem_read()
114 static void update_ocmem(struct ocmem *ocmem) in update_ocmem() argument
120 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
121 struct ocmem_region *region = &ocmem->regions[i]; in update_ocmem()
127 dev_dbg(ocmem->dev, "ocmem_region_mode_control %x\n", in update_ocmem()
129 ocmem_write(ocmem, OCMEM_REG_REGION_MODE_CTL, region_mode_ctrl); in update_ocmem()
[all …]
DMakefile9 obj-$(CONFIG_QCOM_OCMEM) += ocmem.o
/kernel/linux/linux-5.10/include/soc/qcom/
Docmem.h28 struct ocmem;
38 struct ocmem *of_get_ocmem(struct device *dev);
39 struct ocmem_buf *ocmem_allocate(struct ocmem *ocmem, enum ocmem_client client,
41 void ocmem_free(struct ocmem *ocmem, enum ocmem_client client,
46 static inline struct ocmem *of_get_ocmem(struct device *dev) in of_get_ocmem()
51 static inline struct ocmem_buf *ocmem_allocate(struct ocmem *ocmem, in ocmem_allocate() argument
58 static inline void ocmem_free(struct ocmem *ocmem, enum ocmem_client client, in ocmem_free() argument
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c859 struct ocmem *ocmem; in adreno_gpu_ocmem_init() local
861 ocmem = of_get_ocmem(dev); in adreno_gpu_ocmem_init()
862 if (IS_ERR(ocmem)) { in adreno_gpu_ocmem_init()
863 if (PTR_ERR(ocmem) == -ENODEV) { in adreno_gpu_ocmem_init()
872 return PTR_ERR(ocmem); in adreno_gpu_ocmem_init()
875 ocmem_hdl = ocmem_allocate(ocmem, OCMEM_GRAPHICS, adreno_gpu->gmem); in adreno_gpu_ocmem_init()
879 adreno_ocmem->ocmem = ocmem; in adreno_gpu_ocmem_init()
890 ocmem_free(adreno_ocmem->ocmem, OCMEM_GRAPHICS, in adreno_gpu_ocmem_cleanup()
Dadreno_gpu.h117 struct ocmem *ocmem; member
251 struct adreno_ocmem *ocmem);
252 void adreno_gpu_ocmem_cleanup(struct adreno_ocmem *ocmem);
Da3xx_gpu.h22 struct adreno_ocmem ocmem; member
Da4xx_gpu.h19 struct adreno_ocmem ocmem; member
Da3xx_gpu.c249 if (a3xx_gpu->ocmem.hdl) { in a3xx_hw_init()
251 (unsigned int)(a3xx_gpu->ocmem.base >> 14)); in a3xx_hw_init()
382 adreno_gpu_ocmem_cleanup(&a3xx_gpu->ocmem); in a3xx_destroy()
551 adreno_gpu, &a3xx_gpu->ocmem); in a3xx_gpu_init()
Da4xx_gpu.c241 (unsigned int)(a4xx_gpu->ocmem.base >> 14)); in a4xx_hw_init()
381 adreno_gpu_ocmem_cleanup(&a4xx_gpu->ocmem); in a4xx_destroy()
680 &a4xx_gpu->ocmem); in a4xx_gpu_init()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/display/msm/
Dgpu.txt29 interconnects property. Values must be gfx-mem and ocmem.
40 Documentation/devicetree/bindings/sram/qcom,ocmem.yaml.
66 gpu_sram: ocmem@fdd00000 {
67 compatible = "qcom,msm8974-ocmem";
/kernel/linux/linux-5.10/arch/arm/boot/dts/
Dqcom-msm8974.dtsi1329 ocmem@fdd00000 {
1330 compatible = "qcom,msm8974-ocmem";