Lines Matching defs:bpf_mprog_entry

23  *   struct bpf_mprog_entry *entry, *entry_new;
44 * struct bpf_mprog_entry *entry, *entry_new;
69 * struct bpf_mprog_entry *entry;
80 * struct bpf_mprog_entry *entry;
100 * bpf_mprog_entry pointer can be an __rcu annotated pointer (in case of tcx
102 * updated via rcu_assign_pointer() pointing to the active bpf_mprog_entry of
105 * Fast path accesses the active bpf_mprog_entry within RCU critical section
108 * assumes that for the old bpf_mprog_entry there are no inflight users
112 * the replacement case where we don't swap the bpf_mprog_entry.
139 struct bpf_mprog_entry {
145 struct bpf_mprog_entry a;
146 struct bpf_mprog_entry b;
158 static inline struct bpf_mprog_entry *
159 bpf_mprog_peer(const struct bpf_mprog_entry *entry)
179 static inline void bpf_mprog_inc(struct bpf_mprog_entry *entry)
184 static inline void bpf_mprog_dec(struct bpf_mprog_entry *entry)
191 return ARRAY_SIZE(((struct bpf_mprog_entry *)NULL)->fp_items) - 1;
194 static inline int bpf_mprog_total(struct bpf_mprog_entry *entry)
202 static inline bool bpf_mprog_exists(struct bpf_mprog_entry *entry,
215 static inline void bpf_mprog_mark_for_release(struct bpf_mprog_entry *entry,
223 static inline void bpf_mprog_complete_release(struct bpf_mprog_entry *entry)
226 * to the prog after the bpf_mprog_entry got swapped and the
237 static inline void bpf_mprog_revision_new(struct bpf_mprog_entry *entry)
242 static inline void bpf_mprog_commit(struct bpf_mprog_entry *entry)
248 static inline u64 bpf_mprog_revision(struct bpf_mprog_entry *entry)
253 static inline void bpf_mprog_entry_copy(struct bpf_mprog_entry *dst,
254 struct bpf_mprog_entry *src)
259 static inline void bpf_mprog_entry_clear(struct bpf_mprog_entry *dst)
264 static inline void bpf_mprog_clear_all(struct bpf_mprog_entry *entry,
265 struct bpf_mprog_entry **entry_new)
267 struct bpf_mprog_entry *peer;
275 static inline void bpf_mprog_entry_grow(struct bpf_mprog_entry *entry, int idx)
288 static inline void bpf_mprog_entry_shrink(struct bpf_mprog_entry *entry, int idx)
304 static inline void bpf_mprog_read(struct bpf_mprog_entry *entry, u32 idx,
320 int bpf_mprog_attach(struct bpf_mprog_entry *entry,
321 struct bpf_mprog_entry **entry_new,
326 int bpf_mprog_detach(struct bpf_mprog_entry *entry,
327 struct bpf_mprog_entry **entry_new,
332 struct bpf_mprog_entry *entry);