rem: KPrintF("Got addr %08lx, dma handler %08lx\n", mem->addr, mem->dma_handle);
context: int emu10k1_voice_alloc_buffer(struct emu10k1_card *card, struct voice_mem *mem, u32 pages){	u32 pageindex, pagecount;	u32 busaddx;	int i;	DPD(2, "requested pages is: %d\n", pages);	if ((mem->emupageindex = emu10k1_addxmgr_alloc(pages * PAGE_SIZE, card)) < 0)	{		DPF(1, "couldn't allocate emu10k1 address space\n");		return -1;	}#ifdef AHI	if ((mem->addr = pci_alloc_consistent(card->pci_dev, pages * PAGE_SIZE, &mem->dma_handle))	    == NULL) {	  mem->pages = 0;	  DPF(1, "couldn't allocate dma memory\n");	  return -1;	}	KPrintF("Got addr %08lx, dma handler %08lx\n", mem->addr, mem->dma_handle);#endif		/* Fill in virtual memory table */	for (pagecount = 0; pagecount < pages; pagecount++) {#ifndef AHI		if ((mem->addr[pagecount] = pci_alloc_consistent(card->pci_dev, PAGE_SIZE, &mem->dma_handle[pagecount]))			== NULL) {			mem->pages = pagecount;			DPF(1, "couldn't allocate dma memory\n");			return -1;		}		DPD(2, "Virtual Addx: %p\n", mem->addr[pagecount]);#endif		for (i = 0; i < PAGE_SIZE / EMUPAGESIZE; i++) {#ifdef AHI			busaddx = (u32) pci_logic_to_physic_addr(			  mem->addr + pagecount * PAGE_SIZE, card->pci_dev )			  + i * EMUPAGESIZE;#else			busaddx = (u32) mem->dma_handle[pagecount] + i * EMUPAGESIZE;#endif	                KPrintF("Got bus addr %08lx for address %08lx\n", busaddx, mem->addr + pagecount * PAGE_SIZE);			DPD(3, "Bus Addx: %#x\n", busaddx);			pageindex = mem->emupageindex + pagecount * PAGE_SIZE / EMUPAGESIZE + i;			((u32 *) card->virtualpagetable.addr)[pageindex] = cpu_to_le32((busaddx * 2) | pageindex);		}	}	mem->pages = pagecount;	return 0;}