/linux/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 | .built-in.a.cmd | 1 …agp/built-in.a := echo >/dev/null; rm -f drivers/char/agp/built-in.a; /usr/bin/ccache /home/test/w…
|
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 | 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()
|
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/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 | 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/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/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() 750 agp_offset = dev->agp->base + request->agp_start; in drm_legacy_addbufs_agp() 772 if (!list_empty(&dev->agp->memory) && !valid) { in drm_legacy_addbufs_agp() [all …]
|
/linux/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/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/fs/xfs/ |
A 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() 208 *agp = 0; in xfs_filestream_pick_ag() 214 if (*agp == NULLAGNUMBER) in xfs_filestream_pick_ag() 222 item->ag = *agp; in xfs_filestream_pick_ag() 322 xfs_agnumber_t *agp) in xfs_filestream_new_ag() argument 332 *agp = NULLAGNUMBER; in xfs_filestream_new_ag() 360 if (*agp == NULLAGNUMBER) in xfs_filestream_new_ag() [all …]
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_ttm.c | 201 else if (!drm->agp.bridge) in nouveau_ttm_init_gtt() 225 drm->agp.bridge) in nouveau_ttm_fini_gtt() 271 if (pci && pci->agp.bridge) { in nouveau_ttm_init() 272 drm->agp.bridge = pci->agp.bridge; in nouveau_ttm_init() 273 drm->agp.base = pci->agp.base; in nouveau_ttm_init() 274 drm->agp.size = pci->agp.size; in nouveau_ttm_init() 275 drm->agp.cma = pci->agp.cma; in nouveau_ttm_init() 307 if (!drm->agp.bridge) { in nouveau_ttm_init() 310 drm->gem.gart_available = drm->agp.size; in nouveau_ttm_init()
|
A D | nouveau_chan.c | 224 if (chan->drm->agp.bridge) { in nouveau_channel_prep() 227 args.start = chan->drm->agp.base; in nouveau_channel_prep() 228 args.limit = chan->drm->agp.base + in nouveau_channel_prep() 229 chan->drm->agp.size - 1; in nouveau_channel_prep() 431 if (chan->drm->agp.bridge) { in nouveau_channel_init() 434 args.start = chan->drm->agp.base; in nouveau_channel_init() 435 args.limit = chan->drm->agp.base + in nouveau_channel_init() 436 chan->drm->agp.size - 1; in nouveau_channel_init()
|
/linux/drivers/gpu/drm/via/ |
A D | via_mm.c | 46 drm_via_agp_t *agp = data; in via_agp_init() local 50 drm_mm_init(&dev_priv->agp_mm, 0, agp->size >> VIA_MM_ALIGN_SHIFT); in via_agp_init() 53 dev_priv->agp_offset = agp->offset; in via_agp_init() 56 DRM_DEBUG("offset = %u, size = %u\n", agp->offset, agp->size); in via_agp_init()
|
A D | via_verifier.h | 53 int agp; member 58 struct drm_device *dev, int agp);
|
/linux/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/drivers/gpu/drm/sis/ |
A 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()
|