Lines Matching refs:mem
35 void __iomem *INTCSR_reg = info->mem[0].internal_addr + INTCSR; in mf624_disable_interrupt()
63 void __iomem *INTCSR_reg = info->mem[0].internal_addr + INTCSR; in mf624_enable_interrupt()
90 void __iomem *INTCSR_reg = info->mem[0].internal_addr + INTCSR; in mf624_irq_handler()
117 static int mf624_setup_mem(struct pci_dev *dev, int bar, struct uio_mem *mem, const char *name) in mf624_setup_mem() argument
122 mem->name = name; in mf624_setup_mem()
123 mem->addr = start & PAGE_MASK; in mf624_setup_mem()
124 mem->offs = start & ~PAGE_MASK; in mf624_setup_mem()
125 if (!mem->addr) in mf624_setup_mem()
127 mem->size = ((start & ~PAGE_MASK) + len + PAGE_SIZE - 1) & PAGE_MASK; in mf624_setup_mem()
128 mem->memtype = UIO_MEM_PHYS; in mf624_setup_mem()
129 mem->internal_addr = pci_ioremap_bar(dev, bar); in mf624_setup_mem()
130 if (!mem->internal_addr) in mf624_setup_mem()
155 if (mf624_setup_mem(dev, 0, &info->mem[0], "PCI chipset, interrupts, status " in mf624_pci_probe()
159 if (mf624_setup_mem(dev, 2, &info->mem[1], "ADC, DAC, DIO")) in mf624_pci_probe()
163 if (mf624_setup_mem(dev, 4, &info->mem[2], "Counter/timer chip")) in mf624_pci_probe()
180 iounmap(info->mem[2].internal_addr); in mf624_pci_probe()
182 iounmap(info->mem[1].internal_addr); in mf624_pci_probe()
184 iounmap(info->mem[0].internal_addr); in mf624_pci_probe()
205 iounmap(info->mem[0].internal_addr); in mf624_pci_remove()
206 iounmap(info->mem[1].internal_addr); in mf624_pci_remove()
207 iounmap(info->mem[2].internal_addr); in mf624_pci_remove()