Home
last modified time | relevance | path

Searched refs:l2table (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dmpfs.c79 static int alloc_l2table_index(struct mlx5_mpfs *l2table, u32 *ix) in alloc_l2table_index() argument
83 *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() argument
94 __clear_bit(ix, l2table->bitmap); in free_l2table_index()
/linux/drivers/iommu/arm/arm-smmu-v3/
H A Darm-smmu-v3.c1706 struct arm_smmu_strtab_l2 **l2table; in arm_smmu_init_l2_strtab() local
1708 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()