Searched refs:l2table (Results 1 – 2 of 2) sorted by relevance
79 static int alloc_l2table_index(struct mlx5_mpfs *l2table, u32 *ix) in alloc_l2table_index() argument83 *ix = find_first_zero_bit(l2table->bitmap, l2table->size); in alloc_l2table_index()84 if (*ix >= l2table->size) in alloc_l2table_index()87 __set_bit(*ix, l2table->bitmap); in alloc_l2table_index()92 static void free_l2table_index(struct mlx5_mpfs *l2table, u32 ix) in free_l2table_index() argument94 __clear_bit(ix, l2table->bitmap); in free_l2table_index()
1706 struct arm_smmu_strtab_l2 **l2table; in arm_smmu_init_l2_strtab() local1708 l2table = &cfg->l2.l2ptrs[arm_smmu_strtab_l1_idx(sid)]; in arm_smmu_init_l2_strtab()1709 if (*l2table) in arm_smmu_init_l2_strtab()1712 *l2table = dmam_alloc_coherent(smmu->dev, sizeof(**l2table), in arm_smmu_init_l2_strtab()1714 if (!*l2table) { in arm_smmu_init_l2_strtab()1721 arm_smmu_init_initial_stes((*l2table)->stes, in arm_smmu_init_l2_strtab()1722 ARRAY_SIZE((*l2table)->stes)); in arm_smmu_init_l2_strtab()