/linux-6.6.21/drivers/soc/qcom/ |
D | ocmem.c | 53 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 …]
|
D | Makefile | 8 obj-$(CONFIG_QCOM_OCMEM) += ocmem.o
|
/linux-6.6.21/include/soc/qcom/ |
D | ocmem.h | 28 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/ |
D | qcom,ocmem.yaml | 4 $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/ |
D | adreno_gpu.c | 1015 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()
|
D | adreno_gpu.h | 177 struct ocmem *ocmem; member 427 struct adreno_ocmem *ocmem); 428 void adreno_gpu_ocmem_cleanup(struct adreno_ocmem *ocmem);
|
D | a3xx_gpu.h | 22 struct adreno_ocmem ocmem; member
|
D | a4xx_gpu.h | 19 struct adreno_ocmem ocmem; member
|
D | a3xx_gpu.c | 248 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()
|
D | a4xx_gpu.c | 240 (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/ |
D | gpu.yaml | 61 - 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/ |
D | msm8992.dtsi | 28 &ocmem {
|
D | msm8994.dtsi | 1075 ocmem: sram@fdd00000 { label 1076 compatible = "qcom,msm8974-ocmem";
|
/linux-6.6.21/arch/arm/boot/dts/qcom/ |
D | qcom-msm8226.dtsi | 788 compatible = "qcom,msm8226-ocmem";
|
D | qcom-msm8974.dtsi | 2117 interconnect-names = "gfx-mem", "ocmem"; 2141 compatible = "qcom,msm8974-ocmem";
|