/kernel/linux/linux-6.6/drivers/soc/qcom/ |
H A D | ocmem.c | 24 #include <soc/qcom/ocmem.h> 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 142 phys_to_offset(struct ocmem *ocmem, unsigned long addr) phys_to_offset() argument 151 device_address(struct ocmem *ocmem, enum ocmem_client client, unsigned long addr) device_address() argument 161 update_range(struct ocmem *ocmem, struct ocmem_buf *buf, enum ocmem_macro_state mstate, enum region_mode rmode) update_range() argument 189 struct ocmem *ocmem; of_get_ocmem() local 216 ocmem_allocate(struct ocmem *ocmem, enum ocmem_client client, unsigned long size) ocmem_allocate() argument 272 ocmem_free(struct ocmem *ocmem, enum ocmem_client client, struct ocmem_buf *buf) ocmem_free() argument 304 struct ocmem *ocmem; ocmem_dev_probe() local 421 struct ocmem *ocmem = platform_get_drvdata(pdev); ocmem_dev_remove() local [all...] |
H A D | Makefile | 8 obj-$(CONFIG_QCOM_OCMEM) += ocmem.o
|
/kernel/linux/linux-5.10/drivers/soc/qcom/ |
H A D | ocmem.c | 23 #include <soc/qcom/ocmem.h> 52 struct ocmem { struct 108 static inline void ocmem_write(struct ocmem *ocmem, u32 reg, u32 data) in ocmem_write() argument 110 writel(data, ocmem->mmio + reg); in ocmem_write() 113 static inline u32 ocmem_read(struct ocmem *ocmem, u32 reg) in ocmem_read() argument 115 return readl(ocmem->mmio + reg); in ocmem_read() 118 static void update_ocmem(struct ocmem *ocmem) in update_ocmem() argument 149 phys_to_offset(struct ocmem *ocmem, unsigned long addr) phys_to_offset() argument 158 device_address(struct ocmem *ocmem, enum ocmem_client client, unsigned long addr) device_address() argument 168 update_range(struct ocmem *ocmem, struct ocmem_buf *buf, enum ocmem_macro_state mstate, enum region_mode rmode) update_range() argument 196 struct ocmem *ocmem; of_get_ocmem() local 223 ocmem_allocate(struct ocmem *ocmem, enum ocmem_client client, unsigned long size) ocmem_allocate() argument 279 ocmem_free(struct ocmem *ocmem, enum ocmem_client client, struct ocmem_buf *buf) ocmem_free() argument 312 struct ocmem *ocmem; ocmem_dev_probe() local [all...] |
H A D | Makefile | 9 obj-$(CONFIG_QCOM_OCMEM) += ocmem.o
|
/kernel/linux/linux-5.10/include/soc/qcom/ |
H A 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 *ocme argument [all...] |
/kernel/linux/linux-6.6/include/soc/qcom/ |
H A 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 *ocme argument [all...] |
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/adreno/ |
H A D | adreno_gpu.c | 17 #include <soc/qcom/ocmem.h> 859 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() 865 * Return success since either the ocmem property was in adreno_gpu_ocmem_init() 866 * not specified in device tree, or ocmem support is in adreno_gpu_ocmem_init() 872 return PTR_ERR(ocmem); in adreno_gpu_ocmem_init() 875 ocmem_hdl = ocmem_allocate(ocmem, OCMEM_GRAPHIC in adreno_gpu_ocmem_init() [all...] |
H A D | adreno_gpu.h | 117 struct ocmem *ocmem; member 251 struct adreno_ocmem *ocmem); 252 void adreno_gpu_ocmem_cleanup(struct adreno_ocmem *ocmem);
|
H A D | a3xx_gpu.h | 22 struct adreno_ocmem ocmem; member
|
H A D | a4xx_gpu.h | 19 struct adreno_ocmem ocmem; member
|
H A D | a3xx_gpu.c | 249 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()
|
H A D | a4xx_gpu.c | 241 (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-6.6/drivers/gpu/drm/msm/adreno/ |
H A D | adreno_gpu.c | 18 #include <soc/qcom/ocmem.h> 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() 1021 * Return success since either the ocmem property was in adreno_gpu_ocmem_init() 1022 * not specified in device tree, or ocmem support is in adreno_gpu_ocmem_init() 1028 return PTR_ERR(ocmem); in adreno_gpu_ocmem_init() 1031 ocmem_hdl = ocmem_allocate(ocmem, OCMEM_GRAPHIC in adreno_gpu_ocmem_init() [all...] |
H A D | a3xx_gpu.h | 22 struct adreno_ocmem ocmem; member
|
H A D | a4xx_gpu.h | 19 struct adreno_ocmem ocmem; member
|
H A D | adreno_gpu.h | 177 struct ocmem *ocmem; member 427 struct adreno_ocmem *ocmem); 428 void adreno_gpu_ocmem_cleanup(struct adreno_ocmem *ocmem);
|
H A 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() 590 ocmem_icc_path = devm_of_icc_get(&pdev->dev, "ocmem"); in a3xx_gpu_init() 593 /* allow -ENODATA, ocmem icc is optional */ in a3xx_gpu_init()
|
H A 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() 717 ocmem_icc_path = devm_of_icc_get(&pdev->dev, "ocmem"); in a4xx_gpu_init() 720 /* allow -ENODATA, ocmem icc is optional */ in a4xx_gpu_init()
|