Lines Matching refs:soc

26 	const struct tegra_smmu_soc *soc;  member
70 ((smmu)->soc->num_tlb_lines & (smmu)->tlb_mask)
143 offset &= ~(smmu->mc->soc->atom_size - 1); in smmu_flush_ptc()
145 if (smmu->mc->soc->num_address_bits > 32) { in smmu_flush_ptc()
210 id = find_first_zero_bit(smmu->asids, smmu->soc->num_asids); in tegra_smmu_alloc_asid()
211 if (id >= smmu->soc->num_asids) { in tegra_smmu_alloc_asid()
301 for (i = 0; i < smmu->soc->num_swgroups; i++) { in tegra_smmu_find_swgroup()
302 if (smmu->soc->swgroups[i].swgroup == swgroup) { in tegra_smmu_find_swgroup()
303 group = &smmu->soc->swgroups[i]; in tegra_smmu_find_swgroup()
318 for (i = 0; i < smmu->soc->num_clients; i++) { in tegra_smmu_enable()
319 const struct tegra_mc_client *client = &smmu->soc->clients[i]; in tegra_smmu_enable()
355 for (i = 0; i < smmu->soc->num_clients; i++) { in tegra_smmu_disable()
356 const struct tegra_mc_client *client = &smmu->soc->clients[i]; in tegra_smmu_disable()
382 smmu->soc->ops->flush_dcache(as->pd, 0, SMMU_SIZE_PD); in tegra_smmu_as_prepare()
488 smmu->soc->ops->flush_dcache(page, 0, SMMU_SIZE_PT); in as_get_pte()
492 smmu->soc->ops->flush_dcache(as->pd, pde << 2, 4); in as_get_pte()
553 smmu->soc->ops->flush_dcache(page, offset, 4); in tegra_smmu_map()
577 smmu->soc->ops->flush_dcache(page, offset, 4); in tegra_smmu_unmap()
679 const struct tegra_smmu_soc *soc, in tegra_smmu_probe() argument
688 if (!soc) in tegra_smmu_probe()
705 size = BITS_TO_LONGS(soc->num_asids) * sizeof(long); in tegra_smmu_probe()
714 smmu->soc = soc; in tegra_smmu_probe()
718 smmu->pfn_mask = BIT_MASK(mc->soc->num_address_bits - PAGE_SHIFT) - 1; in tegra_smmu_probe()
720 mc->soc->num_address_bits, smmu->pfn_mask); in tegra_smmu_probe()
721 smmu->tlb_mask = (smmu->soc->num_tlb_lines << 1) - 1; in tegra_smmu_probe()
722 dev_dbg(dev, "TLB lines: %u, mask: %#lx\n", smmu->soc->num_tlb_lines, in tegra_smmu_probe()
727 if (soc->supports_request_limit) in tegra_smmu_probe()
735 if (soc->supports_round_robin_arbitration) in tegra_smmu_probe()