Searched refs:s_grdma (Results 1 – 1 of 1) sorted by relevance
132 static gralloc_dmaregion_t* s_grdma = NULL; variable141 if (s_grdma) return; in init_gralloc_dmaregion()143 s_grdma = new gralloc_dmaregion_t; in init_gralloc_dmaregion()144 s_grdma->sz = INITIAL_DMA_REGION_SIZE; in init_gralloc_dmaregion()145 s_grdma->refcount = 0; in init_gralloc_dmaregion()147 pthread_mutex_init(&s_grdma->lock, NULL); in init_gralloc_dmaregion()148 pthread_mutex_lock(&s_grdma->lock); in init_gralloc_dmaregion()149 goldfish_dma_create_region(s_grdma->sz, &s_grdma->goldfish_dma); in init_gralloc_dmaregion()150 pthread_mutex_unlock(&s_grdma->lock); in init_gralloc_dmaregion()154 if (!s_grdma) return; in get_gralloc_dmaregion()[all …]