Home
last modified time | relevance | path

Searched refs:asid (Results 1 – 9 of 9) sorted by relevance

/drivers/misc/sgi-gru/
Dgrumain.c106 static int gru_reset_asid_limit(struct gru_state *gru, int asid) in gru_reset_asid_limit() argument
110 gru_dbg(grudev, "gid %d, asid 0x%x\n", gru->gs_gid, asid); in gru_reset_asid_limit()
113 if (asid >= limit) in gru_reset_asid_limit()
114 asid = gru_wrap_asid(gru); in gru_reset_asid_limit()
125 if (inuse_asid == asid) { in gru_reset_asid_limit()
126 asid += ASID_INC; in gru_reset_asid_limit()
127 if (asid >= limit) { in gru_reset_asid_limit()
133 if (asid >= MAX_ASID) in gru_reset_asid_limit()
134 asid = gru_wrap_asid(gru); in gru_reset_asid_limit()
139 if ((inuse_asid > asid) && (inuse_asid < limit)) in gru_reset_asid_limit()
[all …]
Dgruhandles.c153 int asid, int pagesize, int global, int n, in tgh_invalidate() argument
157 tgh->asid = asid; in tgh_invalidate()
170 unsigned long vaddr, int asid, int dirty, in tfh_write_only() argument
173 tfh->fillasid = asid; in tfh_write_only()
186 unsigned long vaddr, int asid, int dirty, in tfh_write_restart() argument
189 tfh->fillasid = asid; in tfh_write_restart()
Dgrutlbpurge.c165 int grupagesize, pagesize, pageshift, gid, asid; in gru_flush_tlb_range() local
182 asid = asids->mt_asid; in gru_flush_tlb_range()
183 if (asids->mt_ctxbitmap && asid) { in gru_flush_tlb_range()
185 asid = GRUASID(asid, start); in gru_flush_tlb_range()
188 gid, asid, start, grupagesize, num, asids->mt_ctxbitmap); in gru_flush_tlb_range()
190 tgh_invalidate(tgh, start, ~0, asid, grupagesize, 0, in gru_flush_tlb_range()
199 gid, asid, asids->mt_ctxbitmap, in gru_flush_tlb_range()
Dgruhandles.h214 unsigned int asid:24; /* DW 2 */ member
388 unsigned int asid[8]; /* DW 2 - 5 */ member
521 unsigned long vaddrmask, int asid, int pagesize, int global, int n,
524 int gaa, unsigned long vaddr, int asid, int dirty, int pagesize);
526 int gaa, unsigned long vaddr, int asid, int dirty, int pagesize);
Dgrufault.c320 unsigned long fault_vaddr, int asid, int write, in gru_preload_tlb() argument
342 if (ret || tfh_write_only(tfh, gpa, GAA_RAM, vaddr, asid, write, in gru_preload_tlb()
348 vaddr, asid, write, pageshift, gpa); in gru_preload_tlb()
371 int pageshift = 0, asid, write, ret, atomic = !cbk, indexway; in gru_try_dropin() local
408 asid = tfh->missasid; in gru_try_dropin()
410 if (asid == 0) in gru_try_dropin()
437 gru_preload_tlb(gru, gts, atomic, vaddr, asid, write, tlb_preload_count, tfh, cbe); in gru_try_dropin()
443 tfh_write_restart(tfh, gpa, GAA_RAM, vaddr, asid, write, in gru_try_dropin()
448 atomic ? "atomic" : "non-atomic", gru->gs_gid, gts, tfh, vaddr, asid, in gru_try_dropin()
Dgrutables.h301 #define GRUASID(asid, addr) ((asid) + GRUREGION(addr)) argument
/drivers/iommu/
Dtegra-smmu.c227 #define SMMU_ASID_ENABLE(asid) ((asid) | (1 << 31)) argument
275 unsigned int asid; member
389 u32 val, offs, mask = SMMU_ASID_ENABLE(as->asid); in __smmu_client_set_hwgrp()
466 smmu_write(smmu, SMMU_PTB_ASID_CUR(as->asid), SMMU_PTB_ASID); in smmu_setup_regs()
502 (as->asid << SMMU_TLB_FLUSH_ASID_SHIFT); in flush_ptc_and_tlb()
668 (as->asid << SMMU_TLB_FLUSH_ASID_SHIFT); in alloc_pdir()
734 dev_dbg(as->smmu->dev, "[%d] %08lx:%08x\n", as->asid, iova, pa); in smmu_iommu_map()
751 dev_dbg(as->smmu->dev, "[%d] %08lx\n", as->asid, iova); in smmu_iommu_unmap()
776 pfn, as->asid); in smmu_iommu_iova_to_phys()
900 smmu_write(smmu, SMMU_PTB_ASID_CUR(as->asid), SMMU_PTB_ASID); in smmu_iommu_domain_init()
[all …]
Dshmobile-ipmmu.c47 int asid) in ipmmu_tlb_set() argument
87 ipmmu_reg_write(ipmmu, IMASID, asid); in ipmmu_tlb_set()
Dshmobile-ipmmu.h25 int asid);