Lines Matching refs:new_sz

278 static void resize_gralloc_dmaregion_locked(gralloc_dmaregion_t* grdma, uint32_t new_sz) {  in resize_gralloc_dmaregion_locked()  argument
279 grdma->sz = new_sz; in resize_gralloc_dmaregion_locked()
327 … gralloc_dmaregion_register_ashmem_direct_mem_locked(gralloc_dmaregion_t* grdma, uint32_t new_sz) { in gralloc_dmaregion_register_ashmem_direct_mem_locked() argument
328 if (new_sz == grdma->sz) return; in gralloc_dmaregion_register_ashmem_direct_mem_locked()
333 allocator->hostMalloc(block, new_sz); in gralloc_dmaregion_register_ashmem_direct_mem_locked()
334 grdma->sz = new_sz; in gralloc_dmaregion_register_ashmem_direct_mem_locked()
337 …ic void gralloc_dmaregion_register_ashmem_dma_locked(gralloc_dmaregion_t* grdma, uint32_t new_sz) { in gralloc_dmaregion_register_ashmem_dma_locked() argument
338 if (new_sz != grdma->sz) { in gralloc_dmaregion_register_ashmem_dma_locked()
339 if (new_sz > MAX_DMA_SIZE) { in gralloc_dmaregion_register_ashmem_dma_locked()
341 __func__, new_sz, MAX_DMA_SIZE); in gralloc_dmaregion_register_ashmem_dma_locked()
344 D("%s: change sz from %u to %u", __func__, grdma->sz, new_sz); in gralloc_dmaregion_register_ashmem_dma_locked()
345 resize_gralloc_dmaregion_locked(grdma, new_sz); in gralloc_dmaregion_register_ashmem_dma_locked()
355 const uint32_t new_sz = std::max(grdma->sz, sz); in gralloc_dmaregion_register_ashmem() local
358 gralloc_dmaregion_register_ashmem_direct_mem_locked(grdma, new_sz); in gralloc_dmaregion_register_ashmem()
360 gralloc_dmaregion_register_ashmem_dma_locked(grdma, new_sz); in gralloc_dmaregion_register_ashmem()