Lines Matching defs:lkey_id
41 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id);
105 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id)
171 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id;
182 lkey_id = kzalloc(sizeof(*lkey_id), GFP_KERNEL);
183 if (!lkey_id) {
188 lkey_id->id = id;
189 memcpy(&lkey_id->ht_key, ht_key, sizeof(*ht_key));
190 refcount_set(&lkey_id->refcnt, 1);
193 &lkey_id->ht_node,
198 return lkey_id;
201 kfree(lkey_id);
209 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id)
212 u32 id = lkey_id->id;
214 rhashtable_remove_fast(®ion_12kb->lkey_ht, &lkey_id->ht_node,
216 kfree(lkey_id);
229 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id;
236 lkey_id = rhashtable_lookup_fast(®ion_12kb->lkey_ht, &ht_key,
238 if (lkey_id) {
239 refcount_inc(&lkey_id->refcnt);
240 return lkey_id;
248 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id)
250 if (refcount_dec_and_test(&lkey_id->refcnt))
251 mlxsw_sp_acl_atcam_lkey_id_destroy(aregion, lkey_id);
385 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id;
394 lkey_id = aregion->ops->lkey_id_get(aregion, aentry->enc_key, erp_id);
395 if (IS_ERR(lkey_id))
396 return PTR_ERR(lkey_id);
397 aentry->lkey_id = lkey_id;
406 refcount_read(&lkey_id->refcnt) != 1, lkey_id->id,
415 aregion->ops->lkey_id_put(aregion, lkey_id);
424 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id = aentry->lkey_id;
435 refcount_read(&lkey_id->refcnt) != 1,
436 lkey_id->id, 0);
438 aregion->ops->lkey_id_put(aregion, lkey_id);
447 struct mlxsw_sp_acl_atcam_lkey_id *lkey_id = aentry->lkey_id;
464 refcount_read(&lkey_id->refcnt) != 1, lkey_id->id,