Lines Matching refs:U32

108   U32      base_addr;
110 U32 *bitmap;
114 U32 ncmem_addr_init;
115 U32 ncmem_addr;
116 U32 ncmem_base;
132 U32 alloc_addr; in init_cache_memory()
136 alloc_addr = (U32)Usb_AllocateNonCachedMemory(NOCACHE_MEMORY_SIZE + PAGE_SIZE); in init_cache_memory()
138 ncmem_addr=(U32)KSEG02KSEG1(alloc_addr); in init_cache_memory()
149 mapsize *= sizeof (U32); in init_cache_memory()
151 ncmem_pool.base_addr =(U32) KSEG02KSEG1(ncmem_base); // convert cached address to uncached in init_cache_memory()
153 ncmem_pool.bitmap = (U32*)Usb_AllocateNonCachedMemory(mapsize); in init_cache_memory()
154 memset(ncmem_pool.bitmap, ((U32)-1), mapsize);//Bitmap: 0-used 1-unused in init_cache_memory()
175 U32 i; in ncmem_alloc_page()
179 U32 flags; in ncmem_alloc_page()
192 ms_clear_bit ( page, &ncmem_pool.bitmap [map],U32); in ncmem_alloc_page()
205 *dma_addr = (dma_addr_t)USB_VA2PA((U32)retval); // Convert to physical address for DMA in ncmem_alloc_page()
208 …NCM_Dbg("The allocated addr is %p, bit_map[%d] is 0x%08lX\n",retval,map,(U32)(ncmem_pool.bitmap[ma… in ncmem_alloc_page()
222 void ncmem_free_page(U32 addr) in ncmem_free_page()
224 U32 flags; in ncmem_free_page()
232 ms_set_bit (page, &(ncmem_pool.bitmap[map]), U32); in ncmem_free_page()
233 NCM_Dbg("Free Block: bitmap[%d] is 0x%08lX\n",map,(U32)ncmem_pool.bitmap[map]); in ncmem_free_page()
249 void *ncmem_alloc(dma_addr_t *dma_addr, U32 size) in ncmem_alloc()
251 U32 flags; in ncmem_alloc()
252 U32 i; in ncmem_alloc()
253 U32 map, page; in ncmem_alloc()
254 U32 num_of_pages; in ncmem_alloc()
293 ms_clear_bit ( page++, &ncmem_pool.bitmap [map],U32); in ncmem_alloc()
296 *dma_addr = (dma_addr_t)USB_VA2PA((U32)retval); in ncmem_alloc()
299 …ages = %ld, end of bitmap[%ld]=0x%08lX\n",retval ,size, num_of_pages, map,(U32)ncmem_pool.bitmap[m… in ncmem_alloc()
314 void ncmem_free(U32 addr,U32 size) in ncmem_free()
316 U32 flags; in ncmem_free()
338 ms_set_bit (page, &(ncmem_pool.bitmap[map]), U32); in ncmem_free()
340 …ze = %ld = %d pages, end of bitmap[%d]=0x%08lX\n",size, num_of_pages, map,(U32)ncmem_pool.bitmap[m… in ncmem_free()
354 for (i=0; i<ncmem_mapsize/sizeof(U32); i++) in destroy_NC_mem()