Lines Matching refs:dma_bs

455 				    drm_mga_dma_bootstrap_t *dma_bs)  in mga_do_agp_dma_bootstrap()  argument
462 const unsigned secondary_size = dma_bs->secondary_bin_count in mga_do_agp_dma_bootstrap()
463 * dma_bs->secondary_bin_size; in mga_do_agp_dma_bootstrap()
464 const unsigned agp_size = (dma_bs->agp_size << 20); in mga_do_agp_dma_bootstrap()
484 mode.mode = (info.mode & ~0x07) | dma_bs->agp_mode; in mga_do_agp_dma_bootstrap()
509 dma_bs->agp_size); in mga_do_agp_dma_bootstrap()
539 err = drm_legacy_addmap(dev, offset, dma_bs->primary_size, in mga_do_agp_dma_bootstrap()
546 offset += dma_bs->primary_size; in mga_do_agp_dma_bootstrap()
555 req.count = dma_bs->secondary_bin_count; in mga_do_agp_dma_bootstrap()
556 req.size = dma_bs->secondary_bin_size; in mga_do_agp_dma_bootstrap()
608 drm_mga_dma_bootstrap_t *dma_bs) in mga_do_agp_dma_bootstrap() argument
629 drm_mga_dma_bootstrap_t *dma_bs) in mga_do_pci_dma_bootstrap() argument
664 for (primary_size = dma_bs->primary_size; primary_size != 0; in mga_do_pci_dma_bootstrap()
678 if (dev_priv->primary->size != dma_bs->primary_size) { in mga_do_pci_dma_bootstrap()
680 dma_bs->primary_size, in mga_do_pci_dma_bootstrap()
682 dma_bs->primary_size = dev_priv->primary->size; in mga_do_pci_dma_bootstrap()
685 for (bin_count = dma_bs->secondary_bin_count; bin_count > 0; in mga_do_pci_dma_bootstrap()
689 req.size = dma_bs->secondary_bin_size; in mga_do_pci_dma_bootstrap()
701 if (bin_count != dma_bs->secondary_bin_count) { in mga_do_pci_dma_bootstrap()
703 "to %u.\n", dma_bs->secondary_bin_count, bin_count); in mga_do_pci_dma_bootstrap()
705 dma_bs->secondary_bin_count = bin_count; in mga_do_pci_dma_bootstrap()
711 dma_bs->agp_mode = 0; in mga_do_pci_dma_bootstrap()
718 drm_mga_dma_bootstrap_t *dma_bs) in mga_do_dma_bootstrap() argument
720 const int is_agp = (dma_bs->agp_mode != 0) && dev->agp; in mga_do_dma_bootstrap()
752 err = mga_do_agp_dma_bootstrap(dev, dma_bs); in mga_do_dma_bootstrap()
770 err = mga_do_pci_dma_bootstrap(dev, dma_bs); in mga_do_dma_bootstrap()