aperture
} aperture;
agp->aperture.bus_base = 0;
agp->aperture.size = 0;
agp->aperture.sysdata = NULL;
agp->aperture.bus_base =
agp->aperture.size = aper->pg_count * PAGE_SIZE;
agp->aperture.sysdata = aper;
struct marvel_agp_aperture *aper = agp->aperture.sysdata;
struct marvel_agp_aperture *aper = agp->aperture.sysdata;
struct marvel_agp_aperture *aper = agp->aperture.sysdata;
struct marvel_agp_aperture *aper = agp->aperture.sysdata;
if (addr < agp->aperture.bus_base ||
addr >= agp->aperture.bus_base + agp->aperture.size) {
agp->aperture.bus_base =
agp->aperture.size = aper->pg_count * PAGE_SIZE;
agp->aperture.sysdata = aper;
struct titan_agp_aperture *aper = agp->aperture.sysdata;
struct titan_agp_aperture *aper = agp->aperture.sysdata;
struct titan_agp_aperture *aper = agp->aperture.sysdata;
struct titan_agp_aperture *aper = agp->aperture.sysdata;
if (addr < agp->aperture.bus_base ||
addr >= agp->aperture.bus_base + agp->aperture.size) {
agp->aperture.bus_base = 0;
agp->aperture.size = 0;
agp->aperture.sysdata = NULL;
static const struct aperture axc001_memmap[16] = {
static const struct aperture axc001_axi_tunnel_memmap[16] = {
static const struct aperture axs_mb_memmap[16] = {
axs101_set_memmap(void __iomem *base, const struct aperture map[16])
void *aperture;
aper_size->size = agp->aperture.size / (1024 * 1024);
aper_size->num_entries = agp->aperture.size / PAGE_SIZE;
dma_addr = vmf->address - vmf->vma->vm_start + agp->aperture.bus_base;
agp_bridge->gart_bus_addr = agp->aperture.bus_base;
nvidia_private.aperture =
if (!nvidia_private.aperture)
iounmap((void __iomem *) nvidia_private.aperture);
temp = readl(nvidia_private.aperture+(i * PAGE_SIZE / sizeof(u32)));
temp = readl(nvidia_private.aperture+(i * PAGE_SIZE / sizeof(u32)));
volatile u32 __iomem *aperture;
static char *aperture = NULL;
if (aperture) {
char *save = aperture;
size = memparse(aperture, &aperture) >> 20;
aperture = save;
aperture = NULL;
module_param(aperture, charp, 0);
MODULE_PARM_DESC(aperture,
NvU32 aperture;
ctrl->levels[i].aperture = 1;
struct resource aperture;
aperture = DEFINE_RES_MEM(address, size);
if (!resource_contains(mem, &aperture)) {
drm_err(dev, "framebuffer aperture at invalid memory range %pr\n", &aperture);
aperture = ilog2(sz) - 7; /* 128B -> 0, 256B -> 1, 512B -> 2, ... */
cfg |= (CDNS_PCIE_LM_EP_FUNC_BAR_CFG_BAR_APERTURE(b, aperture) |
u32 addr0, addr1, reg, cfg, b, aperture, ctrl;
u32 addr0, addr1, aperture, value;
aperture = ilog2(size);
addr0 = CDNS_PCIE_HPA_AT_IB_RP_BAR_ADDR0_NBITS(aperture) |
value |= HPA_LM_RC_BAR_CFG_APERTURE(bar, aperture);
u32 addr0, addr1, aperture, value;
aperture = ilog2(size);
addr0 = CDNS_PCIE_AT_IB_RP_BAR_ADDR0_NBITS(aperture) |
value |= LM_RC_BAR_CFG_APERTURE(bar, aperture);
#define HPA_LM_RC_BAR_CFG_APERTURE(bar, aperture) \
(((aperture) - 7) << (((bar) * 10) + 4))
#define LM_RC_BAR_CFG_APERTURE(bar, aperture) \
(((aperture) - 2) << ((bar) * 8))
u32 addr0, addr1, reg, cfg, b, aperture, ctrl;
aperture = ilog2(sz) - 7; /* 128B -> 0, 256B -> 1, 512B -> 2, ... */
cfg |= (ROCKCHIP_PCIE_CORE_EP_FUNC_BAR_CFG_BAR_APERTURE(b, aperture) |
const struct tegra194_cbb_aperture *aperture, unsigned int max)
addr += get_init_localaddress(info, aperture, max);
unsigned int aperture;
struct heap_data aperture;
par->fb.physical = par->aperture.physical+(par->fb.offset << 12);
par->fb.virtual = par->aperture.virtual+(par->fb.offset << 12);
par->iring.physical = par->aperture.physical +
par->iring.virtual = par->aperture.virtual +
par->cursor_heap.virtual = par->aperture.virtual+
if (vram + 1 > par->aperture.size >> 20)
vram = (par->aperture.size >> 20) - 1;
if (v_offset_default > (par->aperture.size >> 20))
v_offset_default = (par->aperture.size >> 20);
if (vram + v_offset_default + 1 > par->aperture.size >> 20)
v_offset_default = (par->aperture.size >> 20) - (vram + 1);
else if (par->aperture.size > 32 * 1024 * 1024)
par->wc_cookie= arch_phys_wc_add((u32) par->aperture.physical,
par->aperture.size);
par->aperture.physical = pci_resource_start(par->dev, 0);
par->aperture.size = pci_resource_len(par->dev, 0);
par->aperture.physical = pci_resource_start(par->dev, 1);
par->aperture.size = pci_resource_len(par->dev, 1);
if (!par->aperture.size) {
if (!request_mem_region(par->aperture.physical,
par->aperture.size,
par->aperture.virtual = ioremap_wc(par->aperture.physical,
par->aperture.size);
if (!par->aperture.virtual) {
if (par->aperture.virtual)
iounmap(par->aperture.virtual);
release_mem_region(par->aperture.physical,
par->aperture.size);