• Home
  • Raw
  • Download

Lines Matching refs:global_dev

51 static struct viafb_dev global_dev;  variable
59 iowrite32(v, global_dev.engine_mmio + reg); in viafb_mmio_write()
64 return ioread32(global_dev.engine_mmio + reg); in viafb_mmio_read()
170 spin_lock(&global_dev.reg_lock); in viafb_dma_irq()
177 spin_unlock(&global_dev.reg_lock); in viafb_dma_irq()
191 if (global_dev.chip_type != UNICHROME_VX855) in viafb_request_dma()
200 ret = request_irq(global_dev.pdev->irq, viafb_dma_irq, in viafb_request_dma()
218 free_irq(global_dev.pdev->irq, &viafb_dma_users); in viafb_release_dma()
241 descrpages = dma_alloc_coherent(&global_dev.pdev->dev, in viafb_dma_copy_out_sg()
245 dev_err(&global_dev.pdev->dev, "Unable to get descr page.\n"); in viafb_dma_copy_out_sg()
272 spin_lock_irqsave(&global_dev.reg_lock, flags); in viafb_dma_copy_out_sg()
282 spin_unlock_irqrestore(&global_dev.reg_lock, flags); in viafb_dma_copy_out_sg()
299 dma_free_coherent(&global_dev.pdev->dev, in viafb_dma_copy_out_sg()
627 memset(&global_dev, 0, sizeof(global_dev)); in via_pci_probe()
628 global_dev.pdev = pdev; in via_pci_probe()
629 global_dev.chip_type = ent->driver_data; in via_pci_probe()
630 global_dev.port_cfg = adap_configs; in via_pci_probe()
632 global_dev.port_cfg = olpc_adap_configs; in via_pci_probe()
634 spin_lock_init(&global_dev.reg_lock); in via_pci_probe()
635 ret = via_pci_setup_mmio(&global_dev); in via_pci_probe()
643 via_setup_subdevs(&global_dev); in via_pci_probe()
647 ret = via_fb_pci_probe(&global_dev); in via_pci_probe()
654 via_pci_teardown_mmio(&global_dev); in via_pci_probe()
664 via_pci_teardown_mmio(&global_dev); in via_pci_remove()