Lines Matching refs:global_dev
35 static struct viafb_dev global_dev;
43 iowrite32(v, global_dev.engine_mmio + reg);
48 return ioread32(global_dev.engine_mmio + reg);
147 spin_lock(&global_dev.reg_lock);
154 spin_unlock(&global_dev.reg_lock);
168 if (global_dev.chip_type != UNICHROME_VX855)
177 ret = request_irq(global_dev.pdev->irq, viafb_dma_irq,
195 free_irq(global_dev.pdev->irq, &viafb_dma_users);
220 descrpages = dma_alloc_coherent(&global_dev.pdev->dev,
224 dev_err(&global_dev.pdev->dev, "Unable to get descr page.\n");
251 spin_lock_irqsave(&global_dev.reg_lock, flags);
261 spin_unlock_irqrestore(&global_dev.reg_lock, flags);
278 dma_free_coherent(&global_dev.pdev->dev,
533 memset(&global_dev, 0, sizeof(global_dev));
534 global_dev.pdev = pdev;
535 global_dev.chip_type = ent->driver_data;
536 global_dev.port_cfg = adap_configs;
537 spin_lock_init(&global_dev.reg_lock);
538 ret = via_pci_setup_mmio(&global_dev);
546 via_setup_subdevs(&global_dev);
550 ret = via_fb_pci_probe(&global_dev);
557 via_pci_teardown_mmio(&global_dev);
567 via_pci_teardown_mmio(&global_dev);