/linux-6.6.21/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 | 11 obj-$(CONFIG_AGP_ALI) += ali-agp.o 12 obj-$(CONFIG_AGP_ATI) += ati-agp.o 13 obj-$(CONFIG_AGP_AMD) += amd-k7-agp.o 14 obj-$(CONFIG_AGP_AMD64) += amd64-agp.o 15 obj-$(CONFIG_AGP_ALPHA_CORE) += alpha-agp.o 16 obj-$(CONFIG_AGP_EFFICEON) += efficeon-agp.o 17 obj-$(CONFIG_AGP_HP_ZX1) += hp-agp.o 18 obj-$(CONFIG_AGP_PARISC) += parisc-agp.o 19 obj-$(CONFIG_AGP_I460) += i460-agp.o 20 obj-$(CONFIG_AGP_INTEL) += intel-agp.o [all …]
|
D | uninorth-agp.c | 294 u8 agp; in agp_uninorth_suspend() local 318 agp = pci_find_capability(device, PCI_CAP_ID_AGP); in agp_uninorth_suspend() 319 if (!agp) in agp_uninorth_suspend() 321 pci_read_config_dword(device, agp + PCI_AGP_COMMAND, &cmd); in agp_uninorth_suspend() 327 pci_write_config_dword(device, agp + PCI_AGP_COMMAND, cmd); in agp_uninorth_suspend() 331 agp = pci_find_capability(pdev, PCI_CAP_ID_AGP); in agp_uninorth_suspend() 332 pci_read_config_dword(pdev, agp + PCI_AGP_COMMAND, &cmd); in agp_uninorth_suspend() 337 pci_write_config_dword(pdev, agp + PCI_AGP_COMMAND, cmd); in agp_uninorth_suspend()
|
D | backend.c | 103 static const struct { int mem, agp; } maxes_table[] = { member 129 result = maxes_table[index - 1].agp + in agp_find_max() 131 (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-6.6.21/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 | 81 if (pci->agp.bridge) in nvkm_pci_fini() 91 if (pci->agp.bridge) in nvkm_pci_preinit() 117 if (pci->agp.bridge) { in nvkm_pci_init()
|
/linux-6.6.21/drivers/gpio/ |
D | gpio-amd8111.c | 78 struct amd_gpio *agp = gpiochip_get_data(chip); in amd_gpio_request() local 80 agp->orig[offset] = ioread8(agp->pm + AMD_REG_GPIO(offset)) & in amd_gpio_request() 83 dev_dbg(&agp->pdev->dev, "Requested gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_request() 90 struct amd_gpio *agp = gpiochip_get_data(chip); in amd_gpio_free() local 92 dev_dbg(&agp->pdev->dev, "Freed gpio %d, data %x\n", offset, agp->orig[offset]); in amd_gpio_free() 94 iowrite8(agp->orig[offset], agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_free() 99 struct amd_gpio *agp = gpiochip_get_data(chip); in amd_gpio_set() local 103 spin_lock_irqsave(&agp->lock, flags); in amd_gpio_set() 104 temp = ioread8(agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() 106 iowrite8(temp, agp->pm + AMD_REG_GPIO(offset)); in amd_gpio_set() [all …]
|
/linux-6.6.21/drivers/gpu/drm/ |
D | drm_agpsupport.c | 63 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_info() 66 kern = &dev->agp->agp_info; in drm_legacy_agp_info() 107 if (!dev->agp) in drm_legacy_agp_acquire() 109 if (dev->agp->acquired) in drm_legacy_agp_acquire() 111 dev->agp->bridge = agp_backend_acquire(pdev); in drm_legacy_agp_acquire() 112 if (!dev->agp->bridge) in drm_legacy_agp_acquire() 114 dev->agp->acquired = 1; in drm_legacy_agp_acquire() 143 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_release() 145 agp_backend_release(dev->agp->bridge); in drm_legacy_agp_release() 146 dev->agp->acquired = 0; in drm_legacy_agp_release() [all …]
|
D | drm_memory.c | 74 list_for_each_entry(agpmem, &dev->agp->memory, head) in agp_remap() 79 if (&agpmem->head == &dev->agp->memory) in agp_remap() 112 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremap() 121 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremap_wc() 133 if (dev->agp && dev->agp->cant_use_aperture && map->type == _DRM_AGP) in drm_legacy_ioremapfree()
|
D | drm_pci.c | 125 if (dev->agp) { in drm_legacy_pci_agp_destroy() 126 arch_phys_wc_del(dev->agp->agp_mtrr); in drm_legacy_pci_agp_destroy() 128 kfree(dev->agp); in drm_legacy_pci_agp_destroy() 129 dev->agp = NULL; in drm_legacy_pci_agp_destroy() 137 dev->agp = drm_legacy_agp_init(dev); in drm_legacy_pci_agp_init() 138 if (dev->agp) { in drm_legacy_pci_agp_init() 139 dev->agp->agp_mtrr = arch_phys_wc_add( in drm_legacy_pci_agp_init() 140 dev->agp->agp_info.aper_base, in drm_legacy_pci_agp_init() 141 dev->agp->agp_info.aper_size * in drm_legacy_pci_agp_init()
|
D | drm_vm.c | 122 if (!dev->agp) in drm_vm_fault() 125 if (!dev->agp || !dev->agp->cant_use_aperture) in drm_vm_fault() 154 list_for_each_entry(agpmem, &dev->agp->memory, head) { in drm_vm_fault() 160 if (&agpmem->head == &dev->agp->memory) in drm_vm_fault() 543 && (!dev->agp in drm_mmap_locked() 544 || dev->agp->agp_info.device->vendor != PCI_VENDOR_ID_APPLE) in drm_mmap_locked() 580 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() 746 agp_offset = dev->agp->base + request->agp_start; in drm_legacy_addbufs_agp() 761 list_for_each_entry(agp_entry, &dev->agp->memory, head) { in drm_legacy_addbufs_agp() [all …]
|
/linux-6.6.21/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 | 860 marvel_agp_setup(alpha_agp_info *agp) in marvel_agp_setup() argument 870 aper->arena = agp->hose->sg_pci; in marvel_agp_setup() 881 agp->aperture.bus_base = in marvel_agp_setup() 883 agp->aperture.size = aper->pg_count * PAGE_SIZE; in marvel_agp_setup() 884 agp->aperture.sysdata = aper; in marvel_agp_setup() 890 marvel_agp_cleanup(alpha_agp_info *agp) in marvel_agp_cleanup() argument 892 struct marvel_agp_aperture *aper = agp->aperture.sysdata; in marvel_agp_cleanup() 907 kfree(agp); in marvel_agp_cleanup() 911 marvel_agp_configure(alpha_agp_info *agp) in marvel_agp_configure() argument 913 io7_ioport_csrs *csrs = ((struct io7_port *)agp->hose->sysdata)->csrs; in marvel_agp_configure() [all …]
|
/linux-6.6.21/drivers/gpu/drm/radeon/ |
D | radeon_agp.c | 167 if (!rdev->agp) in radeon_agp_head_acquire() 169 if (rdev->agp->acquired) in radeon_agp_head_acquire() 171 rdev->agp->bridge = agp_backend_acquire(pdev); in radeon_agp_head_acquire() 172 if (!rdev->agp->bridge) in radeon_agp_head_acquire() 174 rdev->agp->acquired = 1; in radeon_agp_head_acquire() 180 if (!rdev->agp || !rdev->agp->acquired) in radeon_agp_head_release() 182 agp_backend_release(rdev->agp->bridge); in radeon_agp_head_release() 183 rdev->agp->acquired = 0; in radeon_agp_head_release() 189 if (!rdev->agp || !rdev->agp->acquired) in radeon_agp_head_enable() 192 rdev->agp->mode = mode.mode; in radeon_agp_head_enable() [all …]
|
D | radeon_kms.c | 81 if (rdev->agp) in radeon_driver_unload_kms() 82 arch_phys_wc_del(rdev->agp->agp_mtrr); in radeon_driver_unload_kms() 83 kfree(rdev->agp); in radeon_driver_unload_kms() 84 rdev->agp = NULL; in radeon_driver_unload_kms() 121 rdev->agp = radeon_agp_head_init(dev); in radeon_driver_load_kms() 122 if (rdev->agp) { in radeon_driver_load_kms() 123 rdev->agp->agp_mtrr = arch_phys_wc_add( in radeon_driver_load_kms() 124 rdev->agp->agp_info.aper_base, in radeon_driver_load_kms() 125 rdev->agp->agp_info.aper_size * in radeon_driver_load_kms()
|
/linux-6.6.21/drivers/gpu/drm/nouveau/ |
D | nouveau_ttm.c | 226 else if (!drm->agp.bridge) in nouveau_ttm_init_gtt() 250 drm->agp.bridge) in nouveau_ttm_fini_gtt() 295 if (pci && pci->agp.bridge) { in nouveau_ttm_init() 296 drm->agp.bridge = pci->agp.bridge; in nouveau_ttm_init() 297 drm->agp.base = pci->agp.base; in nouveau_ttm_init() 298 drm->agp.size = pci->agp.size; in nouveau_ttm_init() 299 drm->agp.cma = pci->agp.cma; in nouveau_ttm_init() 328 if (!drm->agp.bridge) { in nouveau_ttm_init() 331 drm->gem.gart_available = drm->agp.size; in nouveau_ttm_init()
|
D | nouveau_chan.c | 231 if (chan->drm->agp.bridge) { in nouveau_channel_prep() 234 args.start = chan->drm->agp.base; in nouveau_channel_prep() 235 args.limit = chan->drm->agp.base + in nouveau_channel_prep() 236 chan->drm->agp.size - 1; in nouveau_channel_prep() 422 if (chan->drm->agp.bridge) { in nouveau_channel_init() 425 args.start = chan->drm->agp.base; in nouveau_channel_init() 426 args.limit = chan->drm->agp.base + in nouveau_channel_init() 427 chan->drm->agp.size - 1; in nouveau_channel_init()
|
/linux-6.6.21/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-6.6.21/arch/ia64/include/asm/ |
D | Kbuild | 3 generic-y += agp.h
|
/linux-6.6.21/arch/sparc/include/asm/ |
D | Kbuild | 4 generic-y += agp.h
|
/linux-6.6.21/arch/alpha/include/asm/ |
D | Kbuild | 4 generic-y += agp.h
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | Kbuild | 4 generic-y += agp.h
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | Kbuild | 5 generic-y += agp.h
|