Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/soc/qcom/
Docmem.c53 struct ocmem { struct
101 static inline void ocmem_write(struct ocmem *ocmem, u32 reg, u32 data) in ocmem_write() argument
103 writel(data, ocmem->mmio + reg); in ocmem_write()
106 static inline u32 ocmem_read(struct ocmem *ocmem, u32 reg) in ocmem_read() argument
108 return readl(ocmem->mmio + reg); in ocmem_read()
111 static void update_ocmem(struct ocmem *ocmem) in update_ocmem() argument
117 for (i = 0; i < ocmem->config->num_regions; i++) { in update_ocmem()
118 struct ocmem_region *region = &ocmem->regions[i]; in update_ocmem()
124 dev_dbg(ocmem->dev, "ocmem_region_mode_control %x\n", in update_ocmem()
126 ocmem_write(ocmem, OCMEM_REG_REGION_MODE_CTL, region_mode_ctrl); in update_ocmem()
[all …]
DMakefile8 obj-$(CONFIG_QCOM_OCMEM) += ocmem.o
/linux-6.6.21/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.6.21/Documentation/devicetree/bindings/sram/
Dqcom,ocmem.yaml4 $id: http://devicetree.org/schemas/sram/qcom,ocmem.yaml#
19 - qcom,msm8226-ocmem # v1.1.0
20 - qcom,msm8974-ocmem # v1.4.0
71 - qcom,msm8974-ocmem
104 compatible = "qcom,msm8974-ocmem";
/linux-6.6.21/drivers/gpu/drm/msm/adreno/
Dadreno_gpu.c1015 struct ocmem *ocmem; in adreno_gpu_ocmem_init() local
1017 ocmem = of_get_ocmem(dev); in adreno_gpu_ocmem_init()
1018 if (IS_ERR(ocmem)) { in adreno_gpu_ocmem_init()
1019 if (PTR_ERR(ocmem) == -ENODEV) { in adreno_gpu_ocmem_init()
1028 return PTR_ERR(ocmem); in adreno_gpu_ocmem_init()
1031 ocmem_hdl = ocmem_allocate(ocmem, OCMEM_GRAPHICS, adreno_gpu->info->gmem); in adreno_gpu_ocmem_init()
1035 adreno_ocmem->ocmem = ocmem; in adreno_gpu_ocmem_init()
1048 ocmem_free(adreno_ocmem->ocmem, OCMEM_GRAPHICS, in adreno_gpu_ocmem_cleanup()
Dadreno_gpu.h177 struct ocmem *ocmem; member
427 struct adreno_ocmem *ocmem);
428 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.c248 if (a3xx_gpu->ocmem.hdl) { in a3xx_hw_init()
250 (unsigned int)(a3xx_gpu->ocmem.base >> 14)); in a3xx_hw_init()
381 adreno_gpu_ocmem_cleanup(&a3xx_gpu->ocmem); in a3xx_destroy()
564 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.6.21/Documentation/devicetree/bindings/display/msm/
Dgpu.yaml61 - const: ocmem
77 Documentation/devicetree/bindings/sram/qcom,ocmem.yaml
251 ocmem@fdd00000 {
252 compatible = "qcom,msm8974-ocmem";
/linux-6.6.21/arch/arm64/boot/dts/qcom/
Dmsm8992.dtsi28 &ocmem {
Dmsm8994.dtsi1075 ocmem: sram@fdd00000 { label
1076 compatible = "qcom,msm8974-ocmem";
/linux-6.6.21/arch/arm/boot/dts/qcom/
Dqcom-msm8226.dtsi788 compatible = "qcom,msm8226-ocmem";
Dqcom-msm8974.dtsi2117 interconnect-names = "gfx-mem", "ocmem";
2141 compatible = "qcom,msm8974-ocmem";