Lines Matching refs:soc
27 const struct tegra_smmu_soc *soc; member
75 ((smmu)->soc->num_tlb_lines & (smmu)->tlb_mask)
172 offset &= ~(smmu->mc->soc->atom_size - 1); in smmu_flush_ptc()
174 if (smmu->mc->soc->num_address_bits > 32) { in smmu_flush_ptc()
235 id = find_first_zero_bit(smmu->asids, smmu->soc->num_asids); in tegra_smmu_alloc_asid()
236 if (id >= smmu->soc->num_asids) { in tegra_smmu_alloc_asid()
317 for (i = 0; i < smmu->soc->num_swgroups; i++) { in tegra_smmu_find_swgroup()
318 if (smmu->soc->swgroups[i].swgroup == swgroup) { in tegra_smmu_find_swgroup()
319 group = &smmu->soc->swgroups[i]; in tegra_smmu_find_swgroup()
334 for (i = 0; i < smmu->soc->num_clients; i++) { in tegra_smmu_enable()
335 const struct tegra_mc_client *client = &smmu->soc->clients[i]; in tegra_smmu_enable()
371 for (i = 0; i < smmu->soc->num_clients; i++) { in tegra_smmu_disable()
372 const struct tegra_mc_client *client = &smmu->soc->clients[i]; in tegra_smmu_disable()
775 for (i = 0; i < smmu->soc->num_swgroups; i++) { in tegra_smmu_swgroups_show()
776 const struct tegra_smmu_swgroup *group = &smmu->soc->swgroups[i]; in tegra_smmu_swgroups_show()
817 for (i = 0; i < smmu->soc->num_clients; i++) { in tegra_smmu_clients_show()
818 const struct tegra_mc_client *client = &smmu->soc->clients[i]; in tegra_smmu_clients_show()
864 const struct tegra_smmu_soc *soc, in tegra_smmu_probe() argument
873 if (!soc) in tegra_smmu_probe()
890 size = BITS_TO_LONGS(soc->num_asids) * sizeof(long); in tegra_smmu_probe()
899 smmu->soc = soc; in tegra_smmu_probe()
903 smmu->pfn_mask = BIT_MASK(mc->soc->num_address_bits - PAGE_SHIFT) - 1; in tegra_smmu_probe()
905 mc->soc->num_address_bits, smmu->pfn_mask); in tegra_smmu_probe()
906 smmu->tlb_mask = (smmu->soc->num_tlb_lines << 1) - 1; in tegra_smmu_probe()
907 dev_dbg(dev, "TLB lines: %u, mask: %#lx\n", smmu->soc->num_tlb_lines, in tegra_smmu_probe()
912 if (soc->supports_request_limit) in tegra_smmu_probe()
920 if (soc->supports_round_robin_arbitration) in tegra_smmu_probe()