Searched refs:malloc_ptr (Results 1 – 3 of 3) sorted by relevance
8 void *malloc_ptr = NULL; in dma_free_coherent() local13 malloc_ptr = (void *)*(unsigned long *)((unsigned long *)addr - 1); in dma_free_coherent()14 hal_free(malloc_ptr); in dma_free_coherent()20 void *malloc_ptr = NULL; in dma_alloc_coherent() local22 malloc_ptr = hal_malloc(size + 2 * CACHELINE_LEN); in dma_alloc_coherent()23 if ((unsigned long)malloc_ptr & (sizeof(long) - 1)) in dma_alloc_coherent()29 if (!malloc_ptr) { in dma_alloc_coherent()33 fake_ptr = (void *)((unsigned long)(malloc_ptr + CACHELINE_LEN) & (~(CACHELINE_LEN - 1))); in dma_alloc_coherent()34 *(unsigned long *)((unsigned long *)fake_ptr - 1) = (unsigned long)malloc_ptr; in dma_alloc_coherent()
45 void *malloc_ptr = NULL;48 malloc_ptr = *(uint32_t *)((uint32_t *)addr - 1);49 hal_free(malloc_ptr);55 void *malloc_ptr = NULL;57 malloc_ptr = hal_malloc(size + 64);58 if ((uint32_t)malloc_ptr & 0x3) {61 fake_ptr = (uint32_t)(malloc_ptr + 64) & (~63);62 *(uint32_t *)((uint32_t *)fake_ptr - 1) = malloc_ptr;
178 void *malloc_ptr = NULL; in malloc_align_buf() local181 malloc_ptr = hal_malloc(size + OS_CACHE_ALIGN_BYTES); in malloc_align_buf()182 if (HAL_PT_TO_U(malloc_ptr) & 0x3) { in malloc_align_buf()185 …fake_ptr = (void *)(HAL_PT_TO_U(malloc_ptr + OS_CACHE_ALIGN_BYTES) & (~(OS_CACHE_ALIGN_BYTES -1))); in malloc_align_buf()186 *(uint32_t *)((uint32_t *)fake_ptr - 1) = HAL_PT_TO_U(malloc_ptr); in malloc_align_buf()193 void *malloc_ptr = NULL; in free_align_buf() local196 malloc_ptr = (void *)HAL_PT_TO_U(*(uint32_t *)((uint32_t *)addr - 1)); in free_align_buf()198 hal_free(malloc_ptr); in free_align_buf()
Completed in 8 milliseconds