Searched refs:ocmem (Results 1 – 14 of 14) sorted by relevance
/linux-6.1.9/drivers/soc/qcom/ |
D | ocmem.c | 52 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 …]
|
D | Makefile | 9 obj-$(CONFIG_QCOM_OCMEM) += ocmem.o
|
/linux-6.1.9/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.1.9/Documentation/devicetree/bindings/sram/ |
D | qcom,ocmem.yaml | 4 $id: http://devicetree.org/schemas/sram/qcom,ocmem.yaml# 18 const: qcom,msm8974-ocmem 79 compatible = "qcom,msm8974-ocmem";
|
/linux-6.1.9/drivers/gpu/drm/msm/adreno/ |
D | adreno_gpu.h | 122 struct ocmem *ocmem; member 315 struct adreno_ocmem *ocmem); 316 void adreno_gpu_ocmem_cleanup(struct adreno_ocmem *ocmem);
|
D | adreno_gpu.c | 997 struct ocmem *ocmem; in adreno_gpu_ocmem_init() local 999 ocmem = of_get_ocmem(dev); in adreno_gpu_ocmem_init() 1000 if (IS_ERR(ocmem)) { in adreno_gpu_ocmem_init() 1001 if (PTR_ERR(ocmem) == -ENODEV) { in adreno_gpu_ocmem_init() 1010 return PTR_ERR(ocmem); in adreno_gpu_ocmem_init() 1013 ocmem_hdl = ocmem_allocate(ocmem, OCMEM_GRAPHICS, adreno_gpu->gmem); in adreno_gpu_ocmem_init() 1017 adreno_ocmem->ocmem = ocmem; in adreno_gpu_ocmem_init() 1028 ocmem_free(adreno_ocmem->ocmem, OCMEM_GRAPHICS, in adreno_gpu_ocmem_cleanup()
|
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() 553 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() 682 &a4xx_gpu->ocmem); in a4xx_gpu_init()
|
/linux-6.1.9/Documentation/devicetree/bindings/display/msm/ |
D | gpu.yaml | 58 - const: ocmem 74 Documentation/devicetree/bindings/sram/qcom,ocmem.yaml 200 ocmem@fdd00000 { 201 compatible = "qcom,msm8974-ocmem";
|
/linux-6.1.9/arch/arm64/boot/dts/qcom/ |
D | msm8992.dtsi | 27 &ocmem {
|
D | msm8994.dtsi | 1068 ocmem: sram@fdd00000 { label 1069 compatible = "qcom,msm8974-ocmem";
|
/linux-6.1.9/arch/arm/boot/dts/ |
D | qcom-msm8974.dtsi | 1638 interconnect-names = "gfx-mem", "ocmem"; 1662 compatible = "qcom,msm8974-ocmem";
|