/linux-6.3-rc2/drivers/char/agp/ |
A D | alpha-agp.c | 22 pa = agp->ops->translate(agp, dma_addr); in alpha_core_agp_vm_fault() 62 agp->ops->cleanup(agp); in alpha_core_agp_cleanup() 68 alpha_mv.mv_pci_tbi(agp->hose, 0, -1); in alpha_core_agp_tlbflush() 76 agp->capability.lw); in alpha_core_agp_enable() 78 agp->mode.bits.enable = 1; in alpha_core_agp_enable() 79 agp->ops->configure(agp); in alpha_core_agp_enable() 99 status = agp->ops->bind(agp, pg_start, mem); in alpha_core_agp_insert_memory() 112 status = agp->ops->unbind(agp, pg_start, mem); in alpha_core_agp_remove_memory() 159 if (!agp) in alpha_core_agp_setup() 161 if (agp->ops->setup(agp)) in alpha_core_agp_setup() [all …]
|
A 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 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 22 obj-$(CONFIG_AGP_NVIDIA) += nvidia-agp.o 23 obj-$(CONFIG_AGP_SIS) += sis-agp.o [all …]
|
A 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()
|
A 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()
|
A 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.3-rc2/drivers/gpu/drm/nouveau/nvkm/subdev/pci/ |
A D | agp.c | 46 if (pci->agp.acquired) { in nvkm_agp_fini() 48 pci->agp.acquired = false; in nvkm_agp_fini() 92 agp_enable(pci->agp.bridge, pci->agp.mode); in nvkm_agp_init() 93 pci->agp.acquired = true; in nvkm_agp_init() 132 pci->agp.mode = info.mode; in nvkm_agp_ctor() 133 pci->agp.base = info.aper_base; in nvkm_agp_ctor() 136 pci->agp.mtrr = -1; in nvkm_agp_ctor() 159 pci->agp.mode &= ~0x00000007; in nvkm_agp_ctor() 160 pci->agp.mode |= (mode & 0x7); in nvkm_agp_ctor() 163 pci->agp.bridge = NULL; in nvkm_agp_ctor() [all …]
|
A 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.3-rc2/drivers/gpio/ |
A 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() 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() 103 spin_lock_irqsave(&agp->lock, flags); in amd_gpio_set() 107 spin_unlock_irqrestore(&agp->lock, flags); in amd_gpio_set() 130 spin_lock_irqsave(&agp->lock, flags); in amd_gpio_dirout() 134 spin_unlock_irqrestore(&agp->lock, flags); in amd_gpio_dirout() 147 spin_lock_irqsave(&agp->lock, flags); in amd_gpio_dirin() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/ |
A D | drm_agpsupport.c | 63 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_info() 107 if (!dev->agp) in drm_legacy_agp_acquire() 112 if (!dev->agp->bridge) in drm_legacy_agp_acquire() 143 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_release() 169 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_enable() 174 dev->agp->enabled = 1; in drm_legacy_agp_enable() 202 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_alloc() 272 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_unbind() 308 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_bind() 347 if (!dev->agp || !dev->agp->acquired) in drm_legacy_agp_free() [all …]
|
A 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()
|
A 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()
|
A 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()
|
A 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() 768 if (!list_empty(&dev->agp->memory) && !valid) { in drm_legacy_addbufs_agp() [all …]
|
/linux-6.3-rc2/arch/alpha/kernel/ |
A D | core_titan.c | 637 kfree(agp); in titan_agp_cleanup() 706 addr >= agp->aperture.bus_base + agp->aperture.size) { in titan_agp_translate() 733 alpha_agp_info *agp; in titan_agp_info() local 763 agp = kmalloc(sizeof(*agp), GFP_KERNEL); in titan_agp_info() 764 if (!agp) in titan_agp_info() 770 agp->hose = hose; in titan_agp_info() 771 agp->private = port; in titan_agp_info() 780 agp->aperture.size = 0; in titan_agp_info() 786 agp->capability.lw = 0; in titan_agp_info() 795 agp->mode.lw = 0; in titan_agp_info() [all …]
|
A D | core_marvel.c | 907 kfree(agp); in marvel_agp_cleanup() 966 agp->hose->index, agp->mode.bits.rate, in marvel_agp_configure() 967 agp->mode.bits.sba ? " - SBA" : "", agp->mode.bits.rq); in marvel_agp_configure() 998 addr >= agp->aperture.bus_base + agp->aperture.size) { in marvel_agp_translate() 1026 alpha_agp_info *agp; in marvel_agp_info() local 1065 agp = kmalloc(sizeof(*agp), GFP_KERNEL); in marvel_agp_info() 1066 if (!agp) in marvel_agp_info() 1072 agp->hose = hose; in marvel_agp_info() 1073 agp->private = NULL; in marvel_agp_info() 1080 agp->aperture.size = 0; in marvel_agp_info() [all …]
|
/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
A D | radeon_agp.c | 167 if (!rdev->agp) in radeon_agp_head_acquire() 169 if (rdev->agp->acquired) 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() 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() 194 rdev->agp->enabled = 1; in radeon_agp_head_enable() 202 if (!rdev->agp || !rdev->agp->acquired) in radeon_agp_head_info() [all …]
|
A D | radeon_kms.c | 82 if (rdev->agp) in radeon_driver_unload_kms() 83 arch_phys_wc_del(rdev->agp->agp_mtrr); in radeon_driver_unload_kms() 84 kfree(rdev->agp); in radeon_driver_unload_kms() 85 rdev->agp = NULL; in radeon_driver_unload_kms() 122 rdev->agp = radeon_agp_head_init(dev); in radeon_driver_load_kms() 123 if (rdev->agp) { in radeon_driver_load_kms() 124 rdev->agp->agp_mtrr = arch_phys_wc_add( in radeon_driver_load_kms() 125 rdev->agp->agp_info.aper_base, in radeon_driver_load_kms() 126 rdev->agp->agp_info.aper_size * in radeon_driver_load_kms()
|
/linux-6.3-rc2/drivers/gpu/drm/nouveau/ |
A D | nouveau_ttm.c | 226 else if (!drm->agp.bridge) in nouveau_ttm_init_gtt() 250 drm->agp.bridge) in nouveau_ttm_fini_gtt() 296 if (pci && pci->agp.bridge) { in nouveau_ttm_init() 297 drm->agp.bridge = pci->agp.bridge; in nouveau_ttm_init() 298 drm->agp.base = pci->agp.base; in nouveau_ttm_init() 299 drm->agp.size = pci->agp.size; in nouveau_ttm_init() 300 drm->agp.cma = pci->agp.cma; in nouveau_ttm_init() 332 if (!drm->agp.bridge) { in nouveau_ttm_init() 335 drm->gem.gart_available = drm->agp.size; in nouveau_ttm_init()
|
A D | nouveau_chan.c | 222 if (chan->drm->agp.bridge) { in nouveau_channel_prep() 225 args.start = chan->drm->agp.base; in nouveau_channel_prep() 226 args.limit = chan->drm->agp.base + in nouveau_channel_prep() 227 chan->drm->agp.size - 1; in nouveau_channel_prep() 416 if (chan->drm->agp.bridge) { in nouveau_channel_init() 419 args.start = chan->drm->agp.base; in nouveau_channel_init() 420 args.limit = chan->drm->agp.base + in nouveau_channel_init() 421 chan->drm->agp.size - 1; in nouveau_channel_init()
|
/linux-6.3-rc2/arch/powerpc/kernel/ |
A 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.3-rc2/arch/ia64/include/asm/ |
A D | Kbuild | 3 generic-y += agp.h
|
/linux-6.3-rc2/arch/sparc/include/asm/ |
A D | Kbuild | 4 generic-y += agp.h
|
/linux-6.3-rc2/arch/parisc/include/asm/ |
A D | Kbuild | 4 generic-y += agp.h
|
/linux-6.3-rc2/arch/alpha/include/asm/ |
A D | Kbuild | 4 generic-y += agp.h
|
/linux-6.3-rc2/arch/powerpc/include/asm/ |
A D | Kbuild | 5 generic-y += agp.h
|