Lines Matching refs:agaw
239 int r, agaw;
244 agaw = gaw;
246 agaw = gaw + 9 - r;
248 if (agaw > 64)
249 agaw = 64;
251 return (agaw);
256 * calculate agaw for a IOMMU unit
261 int mgaw, magaw, agaw;
310 agaw = 0;
315 agaw = 30 + (bitpos * 9);
319 /* calculated agaw can be > 64 */
320 agaw = (agaw > 64) ? 64 : agaw;
322 if (agaw < 30 || agaw > magaw) {
325 "and magaw", immu->immu_name, agaw, magaw);
337 "level (%d), agaw = %d", nlevels, agaw);
340 immu->immu_dvma_agaw = agaw;
420 * calculate the agaw