Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/soc/qcom/
Docmem.c54 struct ocmem { struct
102 static inline void ocmem_write(struct ocmem *ocmem, u32 reg, u32 data) in ocmem_write() argument
104 writel(data, ocmem->mmio + reg); in ocmem_write()
107 static inline u32 ocmem_read(struct ocmem *ocmem, u32 reg) in ocmem_read() argument
109 return readl(ocmem->mmio + reg); in ocmem_read()
112 static void update_ocmem(struct ocmem *ocmem) in update_ocmem() argument
118 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
119 struct ocmem_region *region = &ocmem->regions[i]; in update_ocmem()
125 dev_dbg(ocmem->dev, "ocmem_region_mode_control %x\n", in update_ocmem()
127 ocmem_write(ocmem, OCMEM_REG_REGION_MODE_CTL, region_mode_ctrl); in update_ocmem()
[all …]
DMakefile9 obj-$(CONFIG_QCOM_OCMEM) += ocmem.o
/linux-6.12.1/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
/linux-6.12.1/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c1031 struct ocmem *ocmem; in adreno_gpu_ocmem_init() local
1033 ocmem = of_get_ocmem(dev); in adreno_gpu_ocmem_init()
1034 if (IS_ERR(ocmem)) { in adreno_gpu_ocmem_init()
1035 if (PTR_ERR(ocmem) == -ENODEV) { in adreno_gpu_ocmem_init()
1044 return PTR_ERR(ocmem); in adreno_gpu_ocmem_init()
1047 ocmem_hdl = ocmem_allocate(ocmem, OCMEM_GRAPHICS, adreno_gpu->info->gmem); in adreno_gpu_ocmem_init()
1051 adreno_ocmem->ocmem = ocmem; in adreno_gpu_ocmem_init()
1064 ocmem_free(adreno_ocmem->ocmem, OCMEM_GRAPHICS, in adreno_gpu_ocmem_cleanup()
Da4xx_gpu.h19 struct adreno_ocmem ocmem; member
Da3xx_gpu.h22 struct adreno_ocmem ocmem; member
Dadreno_gpu.h245 struct ocmem *ocmem; member
572 struct adreno_ocmem *ocmem);
573 void adreno_gpu_ocmem_cleanup(struct adreno_ocmem *ocmem);
Da3xx_gpu.c261 if (a3xx_gpu->ocmem.hdl) { in a3xx_hw_init()
263 (unsigned int)(a3xx_gpu->ocmem.base >> 14)); in a3xx_hw_init()
396 adreno_gpu_ocmem_cleanup(&a3xx_gpu->ocmem); in a3xx_destroy()
579 adreno_gpu, &a3xx_gpu->ocmem); in a3xx_gpu_init()
Da4xx_gpu.c240 (unsigned int)(a4xx_gpu->ocmem.base >> 14)); in a4xx_hw_init()
380 adreno_gpu_ocmem_cleanup(&a4xx_gpu->ocmem); in a4xx_destroy()
692 &a4xx_gpu->ocmem); in a4xx_gpu_init()
/linux-6.12.1/drivers/gpu/drm/msm/registers/
D.gitignore4 adreno/ocmem.xml
/linux-6.12.1/arch/arm64/boot/dts/qcom/
Dmsm8992.dtsi28 &ocmem {
Dmsm8994.dtsi1075 ocmem: sram@fdd00000 { label
1076 compatible = "qcom,msm8974-ocmem";
/linux-6.12.1/arch/arm/boot/dts/qcom/
Dqcom-msm8974.dtsi2151 interconnect-names = "gfx-mem", "ocmem";
2175 compatible = "qcom,msm8974-ocmem";
Dqcom-msm8226.dtsi1192 compatible = "qcom,msm8226-ocmem";