Home
last modified time | relevance | path

Searched refs:objagg_obj (Results 1 – 5 of 5) sorted by relevance

/linux-6.1.9/lib/
Dobjagg.c54 struct objagg_obj { struct
57 struct objagg_obj *parent; /* if the object is nested, this argument
72 static unsigned int objagg_obj_ref_inc(struct objagg_obj *objagg_obj) in objagg_obj_ref_inc() argument
74 return ++objagg_obj->refcount; in objagg_obj_ref_inc()
77 static unsigned int objagg_obj_ref_dec(struct objagg_obj *objagg_obj) in objagg_obj_ref_dec() argument
79 return --objagg_obj->refcount; in objagg_obj_ref_dec()
82 static void objagg_obj_stats_inc(struct objagg_obj *objagg_obj) in objagg_obj_stats_inc() argument
84 objagg_obj->stats.user_count++; in objagg_obj_stats_inc()
85 objagg_obj->stats.delta_user_count++; in objagg_obj_stats_inc()
86 if (objagg_obj->parent) in objagg_obj_stats_inc()
[all …]
Dtest_objagg.c33 struct objagg_obj *objagg_objs[NUM_KEYS];
46 static struct objagg_obj *world_obj_get(struct world *world, in world_obj_get()
50 struct objagg_obj *objagg_obj; in world_obj_get() local
55 objagg_obj = objagg_obj_get(objagg, &key); in world_obj_get()
56 if (IS_ERR(objagg_obj)) { in world_obj_get()
58 return objagg_obj; in world_obj_get()
61 world->objagg_objs[key_id_index(key_id)] = objagg_obj; in world_obj_get()
62 } else if (world->objagg_objs[key_id_index(key_id)] != objagg_obj) { in world_obj_get()
69 return objagg_obj; in world_obj_get()
72 objagg_obj_put(objagg, objagg_obj); in world_obj_get()
[all …]
/linux-6.1.9/include/linux/
Dobjagg.h20 struct objagg_obj;
23 const void *objagg_obj_root_priv(const struct objagg_obj *objagg_obj);
24 const void *objagg_obj_delta_priv(const struct objagg_obj *objagg_obj);
25 const void *objagg_obj_raw(const struct objagg_obj *objagg_obj);
27 struct objagg_obj *objagg_obj_get(struct objagg *objagg, void *obj);
28 void objagg_obj_put(struct objagg *objagg, struct objagg_obj *objagg_obj);
40 struct objagg_obj *objagg_obj; /* associated object */ member
/linux-6.1.9/include/trace/events/
Dobjagg.h13 struct objagg_obj;
49 const struct objagg_obj *obj),
68 const struct objagg_obj *obj),
87 const struct objagg_obj *obj,
110 const struct objagg_obj *obj,
133 const struct objagg_obj *obj,
134 const struct objagg_obj *parent,
160 const struct objagg_obj *obj,
161 const struct objagg_obj *parent,
187 const struct objagg_obj *obj),
[all …]
/linux-6.1.9/drivers/net/ethernet/mellanox/mlxsw/
Dspectrum_acl_erp.c1008 struct objagg_obj *objagg_obj; in mlxsw_sp_acl_erp_mask_get() local
1013 objagg_obj = objagg_obj_get(erp_table->objagg, &key); in mlxsw_sp_acl_erp_mask_get()
1015 if (IS_ERR(objagg_obj)) in mlxsw_sp_acl_erp_mask_get()
1016 return ERR_CAST(objagg_obj); in mlxsw_sp_acl_erp_mask_get()
1017 return (struct mlxsw_sp_acl_erp_mask *) objagg_obj; in mlxsw_sp_acl_erp_mask_get()
1023 struct objagg_obj *objagg_obj = (struct objagg_obj *) erp_mask; in mlxsw_sp_acl_erp_mask_put() local
1027 objagg_obj_put(erp_table->objagg, objagg_obj); in mlxsw_sp_acl_erp_mask_put()
1036 struct objagg_obj *objagg_obj = (struct objagg_obj *) erp_mask; in mlxsw_sp_acl_erp_bf_insert() local
1037 const struct mlxsw_sp_acl_erp *erp = objagg_obj_root_priv(objagg_obj); in mlxsw_sp_acl_erp_bf_insert()
1054 struct objagg_obj *objagg_obj = (struct objagg_obj *) erp_mask; in mlxsw_sp_acl_erp_bf_remove() local
[all …]