Lines Matching full:ocmem
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_GRAPHICS, adreno_gpu->gmem); in adreno_gpu_ocmem_init()
879 adreno_ocmem->ocmem = ocmem; in adreno_gpu_ocmem_init()
890 ocmem_free(adreno_ocmem->ocmem, OCMEM_GRAPHICS, in adreno_gpu_ocmem_cleanup()
934 gpu->ocmem_icc_path = of_icc_get(dev, "ocmem"); in adreno_gpu_init()
946 /* allow -ENODATA, ocmem icc is optional */ in adreno_gpu_init()