Lines Matching refs:memic
85 int mlx5_cmd_alloc_memic(struct mlx5_memic *memic, phys_addr_t *addr, in mlx5_cmd_alloc_memic() argument
88 struct mlx5_core_dev *dev = memic->dev; in mlx5_cmd_alloc_memic()
118 spin_lock(&memic->memic_lock); in mlx5_cmd_alloc_memic()
119 page_idx = bitmap_find_next_zero_area(memic->memic_alloc_pages, in mlx5_cmd_alloc_memic()
125 bitmap_set(memic->memic_alloc_pages, in mlx5_cmd_alloc_memic()
128 spin_unlock(&memic->memic_lock); in mlx5_cmd_alloc_memic()
138 spin_lock(&memic->memic_lock); in mlx5_cmd_alloc_memic()
139 bitmap_clear(memic->memic_alloc_pages, in mlx5_cmd_alloc_memic()
141 spin_unlock(&memic->memic_lock); in mlx5_cmd_alloc_memic()
160 int mlx5_cmd_dealloc_memic(struct mlx5_memic *memic, u64 addr, u64 length) in mlx5_cmd_dealloc_memic() argument
162 struct mlx5_core_dev *dev = memic->dev; in mlx5_cmd_dealloc_memic()
180 spin_lock(&memic->memic_lock); in mlx5_cmd_dealloc_memic()
181 bitmap_clear(memic->memic_alloc_pages, in mlx5_cmd_dealloc_memic()
183 spin_unlock(&memic->memic_lock); in mlx5_cmd_dealloc_memic()