/Linux-v5.10/drivers/char/agp/ |
D | alpha-agp.c | 16 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_vm_fault() local 21 dma_addr = vmf->address - vmf->vma->vm_start + agp->aperture.bus_base; in alpha_core_agp_vm_fault() 22 pa = agp->ops->translate(agp, dma_addr); in alpha_core_agp_vm_fault() 53 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_configure() local 54 agp_bridge->gart_bus_addr = agp->aperture.bus_base; in alpha_core_agp_configure() 60 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_cleanup() local 62 agp->ops->cleanup(agp); in alpha_core_agp_cleanup() 67 alpha_agp_info *agp = agp_bridge->dev_private_data; in alpha_core_agp_tlbflush() local 68 alpha_mv.mv_pci_tbi(agp->hose, 0, -1); in alpha_core_agp_tlbflush() 73 alpha_agp_info *agp = bridge->dev_private_data; in alpha_core_agp_enable() local [all …]
|
D | Makefile | 7 obj-$(CONFIG_AGP_ALI) += ali-agp.o 8 obj-$(CONFIG_AGP_ATI) += ati-agp.o 9 obj-$(CONFIG_AGP_AMD) += amd-k7-agp.o 10 obj-$(CONFIG_AGP_AMD64) += amd64-agp.o 11 obj-$(CONFIG_AGP_ALPHA_CORE) += alpha-agp.o 12 obj-$(CONFIG_AGP_EFFICEON) += efficeon-agp.o 13 obj-$(CONFIG_AGP_HP_ZX1) += hp-agp.o 14 obj-$(CONFIG_AGP_PARISC) += parisc-agp.o 15 obj-$(CONFIG_AGP_I460) += i460-agp.o 16 obj-$(CONFIG_AGP_INTEL) += intel-agp.o [all …]
|
D | uninorth-agp.c | 293 u8 agp; in agp_uninorth_suspend() local 317 agp = pci_find_capability(device, PCI_CAP_ID_AGP); in agp_uninorth_suspend() 318 if (!agp) in agp_uninorth_suspend() 320 pci_read_config_dword(device, agp + PCI_AGP_COMMAND, &cmd); in agp_uninorth_suspend() 326 pci_write_config_dword(device, agp + PCI_AGP_COMMAND, cmd); in agp_uninorth_suspend() 330 agp = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_uninorth_suspend() 331 pci_read_config_dword(pdev, agp + PCI_AGP_COMMAND, &cmd); in agp_uninorth_suspend() 336 pci_write_config_dword(pdev, agp + PCI_AGP_COMMAND, cmd); in agp_uninorth_suspend()
|
D | backend.c | 101 static const struct { int mem, agp; } maxes_table[] = { member 127 result = maxes_table[index - 1].agp + in agp_find_max() 129 (maxes_table[index].agp - maxes_table[index - 1].agp)) / in agp_find_max()
|
D | amd64-agp.c | 271 static int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp, u16 cap) in fix_northbridge() argument 285 pci_read_config_word(agp, cap+0x14, &apsize); in fix_northbridge() 298 aper = pci_bus_address(agp, AGP_APERTURE_BAR); in fix_northbridge() 305 dev_info(&agp->dev, "aperture size %u MB is not right, using settings from NB\n", in fix_northbridge() 315 dev_info(&agp->dev, "aperture from AGP @ %Lx size %u MB\n", in fix_northbridge()
|
/Linux-v5.10/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
D | agp.c | 46 if (pci->agp.acquired) { in nvkm_agp_fini() 47 agp_backend_release(pci->agp.bridge); in nvkm_agp_fini() 48 pci->agp.acquired = false; in nvkm_agp_fini() 66 if ((mode | pci->agp.mode) & PCI_AGP_COMMAND_FW) { in nvkm_agp_preinit() 67 mode = pci->agp.mode & ~PCI_AGP_COMMAND_FW; in nvkm_agp_preinit() 68 agp_enable(pci->agp.bridge, mode); in nvkm_agp_preinit() 92 agp_enable(pci->agp.bridge, pci->agp.mode); in nvkm_agp_init() 93 pci->agp.acquired = true; in nvkm_agp_init() 100 arch_phys_wc_del(pci->agp.mtrr); in nvkm_agp_dtor() 125 if (!(pci->agp.bridge = agp_backend_acquire(pci->pdev))) { in nvkm_agp_ctor() [all …]
|
D | base.c | 91 if (pci->agp.bridge) in nvkm_pci_fini() 101 if (pci->agp.bridge) in nvkm_pci_preinit() 133 if (pci->agp.bridge) { in nvkm_pci_init()
|
/Linux-v5.10/drivers/gpio/ |
D | gpio-amd8111.c | 81 struct amd_gpio *agp = gpiochip_get_data(chip); in amd_gpio_request() local 83 agp->orig[offset] = ioread8(agp->pm + AMD_REG_GPIO(offset)) & in amd_gpio_request() 86 dev_dbg(&agp->pdev->dev, "Requested gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_request() 93 struct amd_gpio *agp = gpiochip_get_data(chip); in amd_gpio_free() local 95 dev_dbg(&agp->pdev->dev, "Freed gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_free() 97 iowrite8(agp->orig[offset], agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_free() 102 struct amd_gpio *agp = gpiochip_get_data(chip); in amd_gpio_set() local 106 spin_lock_irqsave(&agp->lock, flags); in amd_gpio_set() 107 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 109 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() [all …]
|
/Linux-v5.10/drivers/gpu/drm/ |
D | drm_agpsupport.c | 64 if (!dev->agp || !dev->agp->acquired) in drm_agp_info() 67 kern = &dev->agp->agp_info; in drm_agp_info() 106 if (!dev->agp) in drm_agp_acquire() 108 if (dev->agp->acquired) in drm_agp_acquire() 110 dev->agp->bridge = agp_backend_acquire(dev->pdev); in drm_agp_acquire() 111 if (!dev->agp->bridge) in drm_agp_acquire() 113 dev->agp->acquired = 1; in drm_agp_acquire() 146 if (!dev->agp || !dev->agp->acquired) in drm_agp_release() 148 agp_backend_release(dev->agp->bridge); in drm_agp_release() 149 dev->agp->acquired = 0; in drm_agp_release() [all …]
|
D | drm_memory.c | 76 list_for_each_entry(agpmem, &dev->agp->memory, head) in agp_remap() 81 if (&agpmem->head == &dev->agp->memory) in agp_remap() 132 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremap() 141 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremap_wc() 153 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremapfree()
|
D | drm_pci.c | 173 if (dev->agp) { in drm_pci_agp_destroy() 174 arch_phys_wc_del(dev->agp->agp_mtrr); in drm_pci_agp_destroy() 176 kfree(dev->agp); in drm_pci_agp_destroy() 177 dev->agp = NULL; in drm_pci_agp_destroy() 187 dev->agp = drm_agp_init(dev); in drm_pci_agp_init() 188 if (dev->agp) { in drm_pci_agp_init() 189 dev->agp->agp_mtrr = arch_phys_wc_add( in drm_pci_agp_init() 190 dev->agp->agp_info.aper_base, in drm_pci_agp_init() 191 dev->agp->agp_info.aper_size * in drm_pci_agp_init()
|
D | drm_vm.c | 127 if (!dev->agp) in drm_vm_fault() 130 if (!dev->agp || !dev->agp->cant_use_aperture) in drm_vm_fault() 159 list_for_each_entry(agpmem, &dev->agp->memory, head) { in drm_vm_fault() 165 if (&agpmem->head == &dev->agp->memory) in drm_vm_fault() 548 && (!dev->agp in drm_mmap_locked() 549 || dev->agp->agp_info.device->vendor != PCI_VENDOR_ID_APPLE) in drm_mmap_locked() 585 if (dev->agp && dev->agp->cant_use_aperture) { in drm_mmap_locked()
|
D | drm_bufs.c | 274 if (!dev->agp) { in drm_addmap_core() 287 if (map->offset < dev->agp->base || in drm_addmap_core() 288 map->offset > dev->agp->base + in drm_addmap_core() 289 dev->agp->agp_info.aper_size * 1024 * 1024 - 1) { in drm_addmap_core() 290 map->offset += dev->agp->base; in drm_addmap_core() 292 map->mtrr = dev->agp->agp_mtrr; /* for getmap */ in drm_addmap_core() 300 list_for_each_entry(entry, &dev->agp->memory, head) { in drm_addmap_core() 307 if (!list_empty(&dev->agp->memory) && !valid) { in drm_addmap_core() 743 agp_offset = dev->agp->base + request->agp_start; in drm_legacy_addbufs_agp() 758 list_for_each_entry(agp_entry, &dev->agp->memory, head) { in drm_legacy_addbufs_agp() [all …]
|
/Linux-v5.10/arch/alpha/kernel/ |
D | core_titan.c | 590 titan_agp_setup(alpha_agp_info *agp) in titan_agp_setup() argument 601 aper->arena = agp->hose->sg_pci; in titan_agp_setup() 611 agp->aperture.bus_base = in titan_agp_setup() 613 agp->aperture.size = aper->pg_count * PAGE_SIZE; in titan_agp_setup() 614 agp->aperture.sysdata = aper; in titan_agp_setup() 620 titan_agp_cleanup(alpha_agp_info *agp) in titan_agp_cleanup() argument 622 struct titan_agp_aperture *aper = agp->aperture.sysdata; in titan_agp_cleanup() 637 kfree(agp); in titan_agp_cleanup() 641 titan_agp_configure(alpha_agp_info *agp) in titan_agp_configure() argument 644 titan_pachip_port *port = agp->private; in titan_agp_configure() [all …]
|
D | core_marvel.c | 907 marvel_agp_setup(alpha_agp_info *agp) in marvel_agp_setup() argument 917 aper->arena = agp->hose->sg_pci; in marvel_agp_setup() 928 agp->aperture.bus_base = in marvel_agp_setup() 930 agp->aperture.size = aper->pg_count * PAGE_SIZE; in marvel_agp_setup() 931 agp->aperture.sysdata = aper; in marvel_agp_setup() 937 marvel_agp_cleanup(alpha_agp_info *agp) in marvel_agp_cleanup() argument 939 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_cleanup() 954 kfree(agp); in marvel_agp_cleanup() 958 marvel_agp_configure(alpha_agp_info *agp) in marvel_agp_configure() argument 960 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure() [all …]
|
/Linux-v5.10/fs/xfs/ |
D | xfs_filestream.c | 101 xfs_agnumber_t *agp, in xfs_filestream_pick_ag() argument 118 *agp = NULLAGNUMBER; in xfs_filestream_pick_ag() 167 *agp = ag; in xfs_filestream_pick_ag() 202 *agp = max_ag; in xfs_filestream_pick_ag() 207 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag() 208 *agp = 0; in xfs_filestream_pick_ag() 212 trace_xfs_filestream_pick(ip, *agp, free, nscan); in xfs_filestream_pick_ag() 214 if (*agp == NULLAGNUMBER) in xfs_filestream_pick_ag() 222 item->ag = *agp; in xfs_filestream_pick_ag() 236 xfs_filestream_put_ag(mp, *agp); in xfs_filestream_pick_ag() [all …]
|
/Linux-v5.10/drivers/gpu/drm/nouveau/ |
D | nouveau_ttm.c | 240 else if (!drm->agp.bridge) in nouveau_ttm_init_gtt() 264 drm->agp.bridge) in nouveau_ttm_fini_gtt() 309 if (pci && pci->agp.bridge) { in nouveau_ttm_init() 310 drm->agp.bridge = pci->agp.bridge; in nouveau_ttm_init() 311 drm->agp.base = pci->agp.base; in nouveau_ttm_init() 312 drm->agp.size = pci->agp.size; in nouveau_ttm_init() 313 drm->agp.cma = pci->agp.cma; in nouveau_ttm_init() 342 if (!drm->agp.bridge) { in nouveau_ttm_init() 345 drm->gem.gart_available = drm->agp.size; in nouveau_ttm_init()
|
D | nouveau_chan.c | 233 if (chan->drm->agp.bridge) { in nouveau_channel_prep() 236 args.start = chan->drm->agp.base; in nouveau_channel_prep() 237 args.limit = chan->drm->agp.base + in nouveau_channel_prep() 238 chan->drm->agp.size - 1; in nouveau_channel_prep() 438 if (chan->drm->agp.bridge) { in nouveau_channel_init() 441 args.start = chan->drm->agp.base; in nouveau_channel_init() 442 args.limit = chan->drm->agp.base + in nouveau_channel_init() 443 chan->drm->agp.size - 1; in nouveau_channel_init()
|
D | nouveau_bo.c | 368 if (drm->agp.bridge) in set_placement_list() 709 if (drm->agp.bridge) { in nouveau_ttm_tt_create() 710 return ttm_agp_tt_create(bo, drm->agp.bridge, page_flags); in nouveau_ttm_tt_create() 727 if (drm->agp.bridge) in nouveau_ttm_tt_bind() 739 if (drm->agp.bridge) { in nouveau_ttm_tt_unbind() 1163 if (drm->agp.bridge) { in nouveau_ttm_io_mem_reserve() 1165 drm->agp.base; in nouveau_ttm_io_mem_reserve() 1166 reg->bus.is_iomem = !drm->agp.cma; in nouveau_ttm_io_mem_reserve() 1325 if (drm->agp.bridge) { in nouveau_ttm_tt_populate() 1354 if (drm->agp.bridge) { in nouveau_ttm_tt_unpopulate() [all …]
|
/Linux-v5.10/drivers/gpu/drm/radeon/ |
D | radeon_agp.c | 157 if (rdev->ddev->agp->agp_info.aper_size < 32) { in radeon_agp_init() 161 rdev->ddev->agp->agp_info.aper_size); in radeon_agp_init() 249 rdev->mc.agp_base = rdev->ddev->agp->agp_info.aper_base; in radeon_agp_init() 250 rdev->mc.gtt_size = rdev->ddev->agp->agp_info.aper_size << 20; in radeon_agp_init() 281 if (rdev->ddev->agp && rdev->ddev->agp->acquired) { in radeon_agp_fini()
|
D | radeon_drv.c | 378 dev->agp = drm_agp_init(dev); in radeon_pci_probe() 379 if (dev->agp) { in radeon_pci_probe() 380 dev->agp->agp_mtrr = arch_phys_wc_add( in radeon_pci_probe() 381 dev->agp->agp_info.aper_base, in radeon_pci_probe() 382 dev->agp->agp_info.aper_size * in radeon_pci_probe() 393 if (dev->agp) in radeon_pci_probe() 394 arch_phys_wc_del(dev->agp->agp_mtrr); in radeon_pci_probe() 395 kfree(dev->agp); in radeon_pci_probe()
|
/Linux-v5.10/drivers/gpu/drm/via/ |
D | via_mm.c | 47 drm_via_agp_t *agp = data; in via_agp_init() local 51 drm_mm_init(&dev_priv->agp_mm, 0, agp->size >> VIA_MM_ALIGN_SHIFT); in via_agp_init() 54 dev_priv->agp_offset = agp->offset; in via_agp_init() 57 DRM_DEBUG("offset = %u, size = %u\n", agp->offset, agp->size); in via_agp_init()
|
D | via_verifier.h | 53 int agp; member 58 struct drm_device *dev, int agp);
|
/Linux-v5.10/arch/powerpc/kernel/ |
D | pci_64.c | 239 struct device_node *agp; in SYSCALL_DEFINE3() local 241 agp = of_find_compatible_node(NULL, NULL, "u3-agp"); in SYSCALL_DEFINE3() 242 if (agp) in SYSCALL_DEFINE3() 244 of_node_put(agp); in SYSCALL_DEFINE3()
|
/Linux-v5.10/drivers/gpu/drm/sis/ |
D | sis_mm.c | 204 drm_sis_agp_t *agp = data; in sis_ioctl_agp_init() local 208 drm_mm_init(&dev_priv->agp_mm, 0, agp->size >> SIS_MM_ALIGN_SHIFT); in sis_ioctl_agp_init() 211 dev_priv->agp_offset = agp->offset; in sis_ioctl_agp_init() 214 DRM_DEBUG("offset = %lu, size = %lu\n", agp->offset, agp->size); in sis_ioctl_agp_init()
|